diff --git a/portal/bae-frontend/342.39e5f5eb31b3abad.js b/portal/bae-frontend/342.69a6e507070d1813.js similarity index 99% rename from portal/bae-frontend/342.39e5f5eb31b3abad.js rename to portal/bae-frontend/342.69a6e507070d1813.js index 07124d9d..4b723def 100644 --- a/portal/bae-frontend/342.39e5f5eb31b3abad.js +++ b/portal/bae-frontend/342.69a6e507070d1813.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[342],{5342:(B,d,a)=>{a.r(d),a.d(d,{LandingPageCustomersComponent:()=>K});var g=a(5312),r=a(3955),t=a(4438);const u=(e,o)=>o.key;function f(e,o){1&e&&t.nrm(0,"div",10)}function m(e,o){if(1&e&&(t.j41(0,"span",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n.badgeKey)," ")}}function h(e,o){if(1&e&&(t.j41(0,"article",8),t.nrm(1,"div",9),t.DNE(2,f,1,0,"div",10),t.j41(3,"div",11),t.DNE(4,m,3,3,"span",12),t.k0s(),t.j41(5,"div",13)(6,"h3",14)(7,"span",15),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"span",15),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"p",16),t.EFF(14),t.nI1(15,"translate"),t.k0s()()()),2&e){const n=o.$implicit;t.AVh("buy-card-featured",n.featured),t.R7$(2),t.vxM(2,n.featured?2:-1),t.R7$(2),t.vxM(4,n.badgeKey?4:-1),t.R7$(4),t.SpI(" ",t.bMT(9,7,"LANDINGPAGE.customers.buyOptions.cards."+n.key+"._titleLine1")," "),t.R7$(3),t.SpI(" ",t.bMT(12,9,"LANDINGPAGE.customers.buyOptions.cards."+n.key+"._titleLine2")," "),t.R7$(3),t.SpI(" ",t.bMT(15,11,"LANDINGPAGE.customers.buyOptions.cards."+n.key+"._description")," ")}}let b=(()=>{class e{constructor(){this.cards=[{key:"offTheShelf"},{key:"tailored",featured:!0,badgeKey:"LANDINGPAGE.customers.buyOptions.cards.tailored._badge"},{key:"tender"}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-buy-options"]],standalone:!0,features:[t.aNF],decls:13,vars:6,consts:[[1,"buy-options-section","relative","isolate","flex","w-full","flex-col","items-center","justify-center","gap-10","overflow-hidden","px-5","py-16","font-[Blinker]","sm:px-8","sm:py-20","lg:gap-[56px]","lg:px-[80px]","lg:py-[100px]","xl:px-[160px]"],["aria-hidden","true",1,"buy-options-blur","buy-options-blur-left"],["aria-hidden","true",1,"buy-options-blur","buy-options-blur-right"],[1,"relative","z-[2]","flex","w-full","max-w-[421px]","flex-col","items-center","gap-4"],[1,"m-0","w-full","text-center","text-[32px]","font-bold","leading-[40px]","text-white","sm:text-[40px]","sm:leading-[48px]","lg:w-[407px]","lg:text-[48px]","lg:leading-[58px]"],[1,"m-0","w-full","text-center","text-[18px]","font-normal","leading-[30px]","text-white","sm:text-[20px]","sm:leading-[32px]","lg:w-[421px]"],[1,"relative","z-[3]","flex","w-full","max-w-[1120px]","flex-col","items-stretch","gap-5","md:gap-6","lg:flex-row","lg:items-stretch"],[1,"buy-card","relative","isolate","flex","min-h-[280px]","w-full","flex-col","overflow-hidden","rounded-[16px]","px-5","py-5","sm:min-h-[300px]","sm:px-6","sm:py-6","lg:h-[320px]","lg:w-[357.33px]",3,"buy-card-featured"],[1,"buy-card","relative","isolate","flex","min-h-[280px]","w-full","flex-col","overflow-hidden","rounded-[16px]","px-5","py-5","sm:min-h-[300px]","sm:px-6","sm:py-6","lg:h-[320px]","lg:w-[357.33px]"],["aria-hidden","true",1,"buy-card-line"],["aria-hidden","true",1,"buy-card-inner-glow"],[1,"relative","z-[4]","min-h-[32px]"],[1,"buy-card-badge","inline-flex","h-6","items-center","justify-center","rounded-full","px-[10px]","py-1","text-[14px]","font-semibold","leading-4"],[1,"mt-6","flex","flex-1","flex-col"],[1,"buy-card-title","min-h-[118px]","pb-5"],[1,"block"],[1,"buy-card-text","mt-4"]],template:function(i,s){1&i&&(t.j41(0,"section",0),t.nrm(1,"div",1)(2,"div",2),t.j41(3,"div",3)(4,"h2",4),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",5),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"div",6),t.Z7z(11,h,16,13,"article",7,u),t.k0s()()),2&i&&(t.R7$(5),t.SpI(" ",t.bMT(6,2,"LANDINGPAGE.customers.buyOptions._title")," "),t.R7$(3),t.SpI(" ",t.bMT(9,4,"LANDINGPAGE.customers.buyOptions._subtitle")," "),t.R7$(3),t.Dyx(s.cards))},dependencies:[r.h,r.D9],styles:["[_nghost-%COMP%]{display:block;width:100%}.buy-options-section[_ngcontent-%COMP%]{min-height:682px;background:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.buy-options-blur[_ngcontent-%COMP%]{position:absolute;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);pointer-events:none;z-index:0}.buy-options-blur-left[_ngcontent-%COMP%]{width:520px;height:520px;left:0;top:-40px}.buy-options-blur-right[_ngcontent-%COMP%]{width:440px;height:440px;right:-80px;top:35px}.buy-card[_ngcontent-%COMP%]{box-sizing:border-box;background:linear-gradient(175.9deg,#14274a 3.34%,#0b1528 97.37%);border:.5px solid #234481;border-radius:16px}.buy-card-line[_ngcontent-%COMP%]{position:absolute;top:0;left:8px;width:calc(100% - 16px);height:2px;border-radius:0;opacity:.75;background:linear-gradient(90deg,#0000,#00add3,#0000);z-index:2}.buy-card-featured[_ngcontent-%COMP%]{background:linear-gradient(160deg,#0d2a4a 8.49%,#0b1f3a 91.51%);border:.5px solid rgba(0,173,211,.3);box-shadow:0 0 40px #00add314}.buy-card-featured[_ngcontent-%COMP%] .buy-card-line[_ngcontent-%COMP%]{left:0;width:100%;opacity:1}.buy-card-badge[_ngcontent-%COMP%]{box-sizing:border-box;background:#00add326;border:.666667px solid rgba(0,173,211,.25);color:#00add3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.buy-card-inner-glow[_ngcontent-%COMP%]{position:absolute;width:298px;height:298px;left:calc(50% - 106px);top:59px;background:#00add3;opacity:.11;filter:blur(80px);pointer-events:none;z-index:1}.buy-card-title[_ngcontent-%COMP%]{position:relative;z-index:3;width:100%;min-height:76px;display:flex;flex-direction:column;justify-content:flex-end;margin:0;font-family:Blinker,sans-serif;font-weight:700;font-size:28px;line-height:34px;color:#fff}.buy-card-text[_ngcontent-%COMP%]{position:relative;z-index:3;width:100%;margin:0;font-family:Blinker,sans-serif;font-weight:400;font-size:18px;line-height:30px;color:#fff}@media (min-width: 640px){.buy-card-title[_ngcontent-%COMP%]{font-size:30px;line-height:36px}.buy-card-text[_ngcontent-%COMP%]{font-size:19px;line-height:31px}}@media (min-width: 1024px){.buy-options-blur-right[_ngcontent-%COMP%]{width:440px;height:440px;left:auto;right:-18px;top:35px}.buy-card-title[_ngcontent-%COMP%]{width:309.33px;height:76px;min-height:76px;font-size:32px;line-height:38px}.buy-card-text[_ngcontent-%COMP%]{width:309.33px;font-size:20px;line-height:32px}.buy-card-line[_ngcontent-%COMP%]{left:8px;width:calc(100% - 16px)}.buy-card-featured[_ngcontent-%COMP%] .buy-card-line[_ngcontent-%COMP%]{left:.67px;width:calc(100% - 1.34px)}}@media (max-width: 1023.98px){.buy-options-blur-left[_ngcontent-%COMP%]{width:360px;height:360px;left:-80px;top:-40px;filter:blur(100px)}.buy-options-blur-right[_ngcontent-%COMP%]{width:320px;height:320px;right:-100px;top:120px;filter:blur(100px)}.buy-card-inner-glow[_ngcontent-%COMP%]{width:240px;height:240px;left:auto;right:-20px;top:50%;transform:translateY(-40%);filter:blur(70px)}}@media (max-width: 639.98px){.buy-options-section[_ngcontent-%COMP%]{min-height:auto}.buy-options-blur-left[_ngcontent-%COMP%]{width:260px;height:260px;left:-80px;top:-20px;filter:blur(80px)}.buy-options-blur-right[_ngcontent-%COMP%]{width:240px;height:240px;right:-80px;top:180px;filter:blur(80px)}.buy-card-title[_ngcontent-%COMP%]{min-height:auto;font-size:26px;line-height:32px;font-weight:700;color:#fff}.buy-card-text[_ngcontent-%COMP%]{font-size:17px;line-height:28px}.buy-card-inner-glow[_ngcontent-%COMP%]{width:200px;height:200px;right:-10px;top:56%;transform:translateY(-40%);filter:blur(60px)}}"]})}}return e})();var p=a(60),l=a(604);const y=(e,o)=>o.id;function _(e,o){if(1&e){const n=t.RV6();t.j41(0,"article",6)(1,"button",7),t.bIt("click",function(){const s=t.eBV(n).$implicit,z=t.XpG();return t.Njj(z.toggleFaq(s.id))}),t.j41(2,"span",8),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",9),t.nrm(6,"fa-icon",10),t.k0s()(),t.j41(7,"div",11)(8,"div",12),t.nrm(9,"div",13),t.j41(10,"div",14),t.nrm(11,"div",15),t.nI1(12,"translate"),t.k0s()()()()}if(2&e){const n=o.$implicit,i=t.XpG();t.AVh("faq-card--open",i.isOpen(n.id)),t.R7$(),t.BMQ("aria-expanded",i.isOpen(n.id)),t.R7$(2),t.SpI(" ",t.bMT(4,10,n.questionKey)," "),t.R7$(2),t.AVh("faq-icon--open",i.isOpen(n.id)),t.R7$(),t.Y8G("icon",i.isOpen(n.id)?i.faMinus:i.faPlus),t.R7$(),t.AVh("faq-answer--open",i.isOpen(n.id)),t.R7$(4),t.Y8G("innerHTML",t.bMT(12,12,n.answerKey),t.npT)}}let w=(()=>{class e{constructor(){this.faPlus=l.QLR,this.faMinus=l.EZy,this.openFaqId="",this.faqs=[{id:"eligibility",questionKey:"LANDINGPAGE.customers.faqs._items.eligibility.question",answerKey:"LANDINGPAGE.customers.faqs._items.eligibility.answer"},{id:"trustworthiness",questionKey:"LANDINGPAGE.customers.faqs._items.trustworthiness.question",answerKey:"LANDINGPAGE.customers.faqs._items.trustworthiness.answer"},{id:"fee",questionKey:"LANDINGPAGE.customers.faqs._items.fee.question",answerKey:"LANDINGPAGE.customers.faqs._items.fee.answer"},{id:"process",questionKey:"LANDINGPAGE.customers.faqs._items.process.question",answerKey:"LANDINGPAGE.customers.faqs._items.process.answer"},{id:"provider",questionKey:"LANDINGPAGE.customers.faqs._items.provider.question",answerKey:"LANDINGPAGE.customers.faqs._items.provider.answer"},{id:"dispute",questionKey:"LANDINGPAGE.customers.faqs._items.dispute.question",answerKey:"LANDINGPAGE.customers.faqs._items.dispute.answer"}]}toggleFaq(n){this.openFaqId=this.openFaqId===n?"":n}isOpen(n){return this.openFaqId===n}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-faqs"]],standalone:!0,features:[t.aNF],decls:9,vars:3,consts:[[1,"faq-section","w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-5","py-[64px]","sm:px-8","sm:py-[80px]","lg:px-[160px]","lg:py-[100px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","gap-8","lg:gap-10"],[1,"faq-heading"],[1,"flex","flex-col","gap-4","lg:gap-6"],[1,"faq-card",3,"faq-card--open"],[1,"faq-card"],["type","button",1,"faq-question",3,"click"],[1,"faq-question__title"],[1,"faq-icon"],[3,"icon"],[1,"faq-answer"],[1,"faq-answer__inner"],[1,"faq-divider"],[1,"faq-answer__content"],[3,"innerHTML"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",4),t.Z7z(7,_,13,14,"article",5,y),t.k0s()()()()),2&i&&(t.R7$(4),t.SpI(" ",t.bMT(5,1,"LANDINGPAGE.customers.faqs.title")," "),t.R7$(3),t.Dyx(s.faqs))},dependencies:[r.h,r.D9,p.dX,p.aY],styles:['[_nghost-%COMP%]{display:block}.faq-section[_ngcontent-%COMP%]{background:#ebf0f7}.faq-heading[_ngcontent-%COMP%]{color:#0b1528;font-weight:700;font-size:32px;line-height:38px}.faq-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;border:1px solid transparent}.faq-card--open[_ngcontent-%COMP%]{border:1px solid #D8DADE;box-shadow:0 0 16px #00000014}.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}.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,transform .25s ease}.faq-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:transform .25s ease}.faq-icon--open[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.faq-answer[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .35s ease,opacity .25s ease,margin-top .35s ease;margin-top:0}.faq-answer--open[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1;margin-top:16px}.faq-answer__inner[_ngcontent-%COMP%]{overflow:hidden}.faq-divider[_ngcontent-%COMP%]{height:1px;background:#d8dade;margin-bottom:16px;transform:scaleX(.96);transform-origin:left center;transition:transform .35s ease,opacity .25s ease;opacity:0}.faq-answer--open[_ngcontent-%COMP%] .faq-divider[_ngcontent-%COMP%]{transform:scaleX(1);opacity:1}.faq-answer__content[_ngcontent-%COMP%]{color:#324153;font-size:18px;line-height:30px;transform:translateY(-8px);opacity:0;transition:transform .35s ease,opacity .3s ease}.faq-answer--open[_ngcontent-%COMP%] .faq-answer__content[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}[_nghost-%COMP%] .faq-answer__content p{margin:0 0 16px}[_nghost-%COMP%] .faq-answer__content p:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content ul{margin:0 0 16px;padding-left:28px;list-style:disc outside}[_nghost-%COMP%] .faq-answer__content ul:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content li{display:list-item;margin:0 0 12px}[_nghost-%COMP%] .faq-answer__content li:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content strong, [_nghost-%COMP%] .faq-answer__content b{font-weight:700;color:#0b1528}[_nghost-%COMP%] .faq-answer__content br{display:block;content:"";margin-top:12px}@media (min-width: 1024px){.faq-heading[_ngcontent-%COMP%]{font-size:48px;line-height:58px}.faq-question__title[_ngcontent-%COMP%]{font-size:24px;line-height:29px}.faq-answer__content[_ngcontent-%COMP%]{font-size:20px;line-height:32px}[_nghost-%COMP%] .faq-answer__content ul{padding-left:30px}}']})}}return e})(),C=(()=>{class e{constructor(){this.url=t.hFB.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-finalCta"]],inputs:{url:[t.Mj6.SignalBased,"url"]},standalone:!0,features:[t.aNF],decls:24,vars:19,consts:[[1,"final-cta-section","w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-5","sm:px-8","lg:px-[160px]","py-[64px]","sm:py-[80px]","lg:py-[100px]"],[1,"final-cta-shell","mx-auto","w-full","max-w-[1120px]"],["aria-hidden","true",1,"final-cta-glow"],[1,"final-cta-content"],[1,"final-cta-text"],[1,"final-cta-title","flex"],[1,"final-cta-title-accent","ml-3"],[1,"final-cta-description"],[1,"final-cta-actions"],[1,"final-cta-btn","final-cta-btn--primary",3,"href"],["href","/contact-us",1,"final-cta-btn","final-cta-btn--secondary"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2),t.nrm(3,"div",3),t.j41(4,"div",4)(5,"div",5)(6,"h2",6),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"span",7),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"p",8),t.EFF(15),t.nI1(16,"translate"),t.k0s()(),t.j41(17,"div",9)(18,"a",10),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"a",11),t.EFF(22),t.nI1(23,"translate"),t.k0s()()()()()()),2&i&&(t.R7$(7),t.SpI(" ",t.bMT(8,7,"LANDINGPAGE.customers.finalCta.titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(11,9,"LANDINGPAGE.customers.finalCta.titleAccent")," "),t.R7$(2),t.SpI("",t.bMT(13,11,"LANDINGPAGE.customers.finalCta.titleEnd")," "),t.R7$(3),t.SpI(" ",t.bMT(16,13,"LANDINGPAGE.customers.finalCta.description")," "),t.R7$(3),t.Y8G("href",s.url(),t.B4B),t.R7$(),t.SpI(" ",t.bMT(20,15,"LANDINGPAGE.customers.finalCta.primaryCta")," "),t.R7$(3),t.SpI(" ",t.bMT(23,17,"LANDINGPAGE.customers.finalCta.secondaryCta")," "))},dependencies:[r.h,r.D9],styles:["[_nghost-%COMP%]{display:block}.final-cta-section[_ngcontent-%COMP%]{background:#ebf0f7}.final-cta-shell[_ngcontent-%COMP%]{position:relative;overflow:hidden;isolation:isolate;border-radius:16px;background:linear-gradient(134.43deg,#234481 -16.9%,#0b1528 40.69%,#1a3360 101.69%)}.final-cta-glow[_ngcontent-%COMP%]{position:absolute;width:520px;height:520px;left:-91px;top:-158px;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);z-index:0;pointer-events:none}.final-cta-content[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:40px;padding:40px 20px;text-align:center}.final-cta-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:20px;width:100%;max-width:930px}.final-cta-title[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:700;font-size:30px;line-height:1.15;text-align:center}.final-cta-title-accent[_ngcontent-%COMP%]{color:#10b7e8}.final-cta-description[_ngcontent-%COMP%]{margin:0;max-width:760px;color:#fff;font-weight:400;font-size:18px;line-height:1.4;text-align:center}.final-cta-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%;max-width:548px}.final-cta-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;width:100%;padding:12px 20px;border-radius:6px;text-align:center;text-decoration:none;font-weight:600;font-size:16px;line-height:24px;letter-spacing:.5px;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.final-cta-btn--primary[_ngcontent-%COMP%]{background:#2d58a7;color:#fff;border:2px solid #2D58A7}.final-cta-btn--primary[_ngcontent-%COMP%]:hover{background:#18b5d9;border-color:#18b5d9}.final-cta-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid #2D58A7}.final-cta-btn--secondary[_ngcontent-%COMP%]:hover{background:#5b6f8e;border-color:#2d58a7}@media (min-width: 640px){.final-cta-content[_ngcontent-%COMP%]{padding:52px 24px}.final-cta-title[_ngcontent-%COMP%]{font-size:36px}.final-cta-description[_ngcontent-%COMP%]{font-size:20px;line-height:1.45}.final-cta-actions[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;gap:24px}.final-cta-btn[_ngcontent-%COMP%]{width:262px}}@media (min-width: 1024px){.final-cta-shell[_ngcontent-%COMP%]{min-height:351px}.final-cta-content[_ngcontent-%COMP%]{padding:64px 24px;gap:40px}.final-cta-text[_ngcontent-%COMP%]{gap:24px}.final-cta-title[_ngcontent-%COMP%]{max-width:930px;font-size:44px;line-height:53px}.final-cta-description[_ngcontent-%COMP%]{max-width:930px;font-size:24px;line-height:29px}.final-cta-actions[_ngcontent-%COMP%]{width:548px}}"]})}}return e})(),P=(()=>{class e{constructor(){this.url=t.hFB.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-hero"]],inputs:{url:[t.Mj6.SignalBased,"url"]},standalone:!0,features:[t.aNF],decls:28,vars:22,consts:[[1,"relative","isolate","overflow-hidden","bg-[linear-gradient(180deg,#0C182D_0%,#1A3360_100%)]","font-[Blinker]"],[1,"absolute","inset-0","pointer-events-none"],[1,"absolute","left-[-213px]","top-[-95px]","h-[635px]","w-[635px]","rounded-full","bg-[#234481]/30","blur-[100px]"],[1,"absolute","right-[-187px]","top-[171px]","h-[553px]","w-[553px]","rounded-full","bg-[#234481]/30","blur-[100px]"],[1,"relative","z-10","mx-auto","w-full","max-w-[1440px]","px-6","pt-[140px]","pb-20","sm:px-10","sm:pt-[170px]","sm:pb-24","lg:px-20","lg:pt-[190px]","lg:pb-[90px]","xl:px-[160px]","xl:pt-[204px]","xl:pb-[100px]"],[1,"flex","max-w-[929px]","flex-col","items-start","gap-6","lg:gap-8","xl:gap-6"],[1,"inline-flex","min-h-[45px]","items-center","justify-center","rounded-full","border","border-[rgba(0,173,211,0.25)]","bg-[rgba(0,173,211,0.15)]","px-5","py-2","text-[20px]","font-bold","leading-none","text-[#00ADD3]","sm:px-6","sm:text-[22px]","lg:text-[24px]"],[1,"max-w-[738px]","text-[42px]","font-extrabold","leading-[1.05]","tracking-[0.5px]","text-white","sm:text-[52px]","lg:text-[60px]","xl:text-[64px]","xl:leading-[77px]","xl:tracking-[1px]"],[1,"text-[#00B5E2]"],[1,"max-w-[929px]","text-[22px]","font-normal","leading-[1.45]","text-white","sm:text-[24px]","lg:text-[28px]","xl:text-[32px]","xl:leading-[48px]"],[1,"flex","w-full","flex-col","gap-4","pt-4","sm:w-auto","sm:flex-row","sm:gap-6","sm:pt-8"],[1,"inline-flex","h-14","min-w-[262px]","items-center","justify-center","rounded-[8px]","bg-[#2D58A7]","px-6","text-center","text-[18px]","font-semibold","leading-[22px]","text-white","transition-colors","duration-200","hover:bg-[#18B5D9]",3,"href"],["href","/contact-us",1,"inline-flex","h-14","min-w-[262px]","items-center","justify-center","rounded-[8px]","border-[3px]","border-[#2D58A7]","px-6","text-center","text-[18px]","font-semibold","leading-[22px]","text-white","transition-colors","duration-200","hover:bg-[#5B6F8E]"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1),t.nrm(2,"div",2)(3,"div",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"span",6),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"h1",7),t.EFF(10),t.nI1(11,"translate"),t.nrm(12,"br"),t.j41(13,"span",8),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"p",9),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"div",10)(22,"a",11),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"a",12),t.EFF(26),t.nI1(27,"translate"),t.k0s()()()()()),2&i&&(t.R7$(7),t.SpI(" ",t.bMT(8,8,"LANDINGPAGE.customers.hero._badge")," "),t.R7$(3),t.SpI(" ",t.bMT(11,10,"LANDINGPAGE.customers.hero._titleLine1"),""),t.R7$(4),t.JRh(t.bMT(15,12,"LANDINGPAGE.customers.hero._titleAccent")),t.R7$(2),t.SpI(" ",t.bMT(17,14,"LANDINGPAGE.customers.hero._titleLine2")," "),t.R7$(3),t.SpI(" ",t.bMT(20,16,"LANDINGPAGE.customers.hero._desc")," "),t.R7$(3),t.Y8G("href",s.url(),t.B4B),t.R7$(),t.SpI(" ",t.bMT(24,18,"LANDINGPAGE.customers.hero._ctaPrimary")," "),t.R7$(3),t.SpI(" ",t.bMT(27,20,"LANDINGPAGE.customers.hero._ctaSecondary")," "))},dependencies:[r.h,r.D9]})}}return e})();const A=(e,o)=>o.key;function I(e,o){1&e&&t.nrm(0,"div",11)}function M(e,o){if(1&e&&(t.j41(0,"article",7),t.nrm(1,"fa-icon",8),t.j41(2,"div",9),t.EFF(3),t.k0s(),t.j41(4,"h3",10),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.DNE(7,I,1,0,"div",11)),2&e){const n=o.$implicit,i=o.$index,s=t.XpG();t.R7$(),t.Y8G("icon",n.icon),t.R7$(2),t.SpI(" ",i+1," "),t.R7$(2),t.SpI(" ",t.bMT(6,4,"LANDINGPAGE.customers.procureSteps.items."+n.key+"._title")," "),t.R7$(2),t.vxM(7,i{class e{constructor(){this.steps=[{key:"step1",icon:l.X46},{key:"step2",icon:l.$UM},{key:"step3",icon:l.WfV},{key:"step4",icon:l.Z8x}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-procure-steps"]],standalone:!0,features:[t.aNF],decls:15,vars:9,consts:[[1,"procure-steps-section","w-full","font-[Blinker]","px-5","py-16","sm:px-8","sm:py-20","lg:px-[80px]","lg:py-[100px]","xl:px-[160px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","items-start","gap-10"],[1,"flex","w-full","flex-col","items-start","gap-4"],[1,"m-0","w-full","text-[32px]","font-bold","leading-[40px]","text-[#0B1528]","sm:text-[40px]","sm:leading-[48px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[#2D58A7]"],[1,"m-0","w-full","text-[18px]","font-normal","leading-[30px]","text-[#0B1528]","sm:text-[20px]","sm:leading-[32px]"],[1,"procure-steps-grid"],[1,"procure-step-card"],["aria-hidden","true",1,"procure-step-icon",3,"icon"],[1,"procure-step-number"],[1,"procure-step-title"],["aria-hidden","true",1,"procure-step-connector"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span",4),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"p",5),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",6),t.Z7z(13,M,8,6,null,null,A),t.k0s()()()),2&i&&(t.R7$(4),t.SpI(" ",t.bMT(5,3,"LANDINGPAGE.customers.procureSteps._titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(8,5,"LANDINGPAGE.customers.procureSteps._titleAccent")," "),t.R7$(3),t.SpI(" ",t.bMT(11,7,"LANDINGPAGE.customers.procureSteps._subtitle")," "),t.R7$(3),t.Dyx(s.steps))},dependencies:[r.h,r.D9,p.dX,p.aY],styles:["[_nghost-%COMP%]{display:block;width:100%}.procure-steps-section[_ngcontent-%COMP%]{background:#ebf0f7}.procure-steps-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;width:100%}.procure-step-card[_ngcontent-%COMP%]{position:relative;isolation:isolate;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:40px;width:100%;min-height:240px;padding:24px;overflow:hidden;background:#f7f9fd;border:1px solid rgba(216,218,222,.6);border-radius:16px}.procure-step-icon[_ngcontent-%COMP%]{position:absolute;right:-14.52px;bottom:-2.52px;z-index:0;width:120px;height:120px;color:#2d58a7;opacity:.08;transform:rotate(-15deg);pointer-events:none;font-size:120px;line-height:1}.procure-step-number[_ngcontent-%COMP%]{position:relative;z-index:1;width:78px;height:80px;display:flex;align-items:center;margin:0;font-family:Blinker,sans-serif;font-style:normal;font-weight:800;font-size:96px;line-height:115px;letter-spacing:1px;background:linear-gradient(180deg,#1a3360,#00add3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent}.procure-step-title[_ngcontent-%COMP%]{position:relative;z-index:1;width:178px;min-height:72px;margin:0;font-family:Blinker,sans-serif;font-style:normal;font-weight:600;font-size:20px;line-height:24px;color:#0b1528}.procure-step-connector[_ngcontent-%COMP%]{display:none;width:56px;height:2px;align-self:center;background:linear-gradient(90deg,#ebf0f7,#00add3 50%,#ebf0f7 88.94%);border-radius:0}@media (min-width: 640px) and (max-width: 1023.98px){.procure-steps-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.procure-step-title[_ngcontent-%COMP%]{width:100%;max-width:178px}}@media (min-width: 1024px){.procure-steps-grid[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:8px;width:1120px;height:240px}.procure-step-card[_ngcontent-%COMP%]{width:226px;height:240px;min-height:240px;flex:1 1 0}.procure-step-connector[_ngcontent-%COMP%]{display:block;flex:0 0 56px}}@media (max-width: 639.98px){.procure-step-card[_ngcontent-%COMP%]{min-height:220px;gap:28px;padding:20px}.procure-step-icon[_ngcontent-%COMP%]{right:-10px;bottom:-6px;width:100px;height:100px;font-size:100px}.procure-step-number[_ngcontent-%COMP%]{width:64px;height:64px;font-size:76px;line-height:88px}.procure-step-title[_ngcontent-%COMP%]{width:100%;min-height:auto;font-size:22px;line-height:26px}}"]})}}return e})();var c=a(5383),G=a(5851),v=a(8620),k=a(7265);const F=(e,o)=>o.titleKey;function E(e,o){if(1&e&&(t.j41(0,"div",10)(1,"div",11)(2,"div",12),t.nrm(3,"fa-icon",13),t.k0s(),t.j41(4,"div",14)(5,"h3",15),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"p",16),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()()),2&e){const n=o.$implicit;t.R7$(3),t.Y8G("icon",n.icon),t.R7$(3),t.SpI(" ",t.bMT(7,3,n.titleKey)," "),t.R7$(3),t.SpI(" ",t.bMT(10,5,n.descKey)," ")}}let O=(()=>{class e{constructor(){this.cards=[{titleKey:"LANDINGPAGE.customers.rightForYou._regulatedIndustriesTitle",descKey:"LANDINGPAGE.customers.rightForYou._regulatedIndustriesDesc",icon:c.fLc},{titleKey:"LANDINGPAGE.customers.rightForYou._enterprisesTitle",descKey:"LANDINGPAGE.customers.rightForYou._enterprisesDesc",icon:c.URI},{titleKey:"LANDINGPAGE.customers.rightForYou._publicSectorTitle",descKey:"LANDINGPAGE.customers.rightForYou._publicSectorDesc",icon:c.IPD},{titleKey:"LANDINGPAGE.customers.rightForYou._complianceTeamsTitle",descKey:"LANDINGPAGE.customers.rightForYou._complianceTeamsDesc",icon:c.iRu},{titleKey:"LANDINGPAGE.customers.rightForYou._structuredProcurementTitle",descKey:"LANDINGPAGE.customers.rightForYou._structuredProcurementDesc",icon:c.JX9}]}get scrollHeight(){return window.innerWidth<768?460:window.innerWidth<1280?540:636}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landingpage-customers-right-for-you"]],standalone:!0,features:[t.aNF],decls:20,vars:15,consts:[[1,"right-for-you-section","relative","isolate","w-full","overflow-hidden","bg-white","font-[Blinker]"],[1,"right-for-you-watermark","pointer-events-none","select-none"],[1,"mx-auto","w-full","max-w-[1440px]","px-6","py-16","sm:px-8","lg:px-16","lg:py-[80px]","xl:px-[160px]"],[1,"right-for-you-layout"],[1,"right-for-you-copy"],[1,"text-[48px]","font-bold","leading-[58px]","text-[#0B1528]"],[1,"text-[#2D58A7]"],[1,"mt-4","text-[20px]","leading-[32px]","text-[#0B1528]"],[1,"right-for-you-cards-col"],[1,"right-for-you-scroll",3,"height","gap","indicatorLeft"],["verticalScrollCard","",1,"scroll-card"],[1,"flex","flex-col","gap-6"],[1,"flex","h-[72px]","w-[72px]","items-center","justify-center","rounded-[16px]","bg-[#DDE6F6]","text-[#2D58A7]"],[1,"text-[40px]",3,"icon"],[1,"flex","flex-col","gap-2"],[1,"text-[24px]","font-bold","leading-[29px]","text-[#0B1528]"],[1,"text-[20px]","leading-[32px]","text-[#324153]"]],template:function(i,s){1&i&&(t.j41(0,"section",0),t.nrm(1,"div",1),t.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5),t.EFF(6),t.nI1(7,"translate"),t.j41(8,"span",6),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"p",7),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",8)(17,"app-vertical-scroll-cards",9),t.Z7z(18,E,11,7,"div",10,F),t.k0s()()()()()),2&i&&(t.R7$(6),t.SpI(" ",t.bMT(7,7,"LANDINGPAGE.customers.rightForYou._titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(10,9,"LANDINGPAGE.customers.rightForYou._titleAccent")," "),t.R7$(2),t.SpI(" ",t.bMT(12,11,"LANDINGPAGE.customers.rightForYou._titleEnd")," "),t.R7$(3),t.SpI(" ",t.bMT(15,13,"LANDINGPAGE.customers.rightForYou._desc")," "),t.R7$(3),t.Y8G("height",s.scrollHeight)("gap",24)("indicatorLeft",14),t.R7$(),t.Dyx(s.cards))},dependencies:[r.h,r.D9,p.dX,p.aY,G.h,v.g,k.w],styles:[".right-for-you-section[_ngcontent-%COMP%]{min-height:920px}.right-for-you-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:453px 554px;justify-content:space-between;align-items:center;column-gap:24px}.right-for-you-copy[_ngcontent-%COMP%]{padding-top:80px}.right-for-you-watermark[_ngcontent-%COMP%]{position:absolute;left:-124px;bottom:-142px;width:511px;height:511px;opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;background-color:#dde6f6;mask-image:url(/assets/logos/DOME_Icon_White.svg);-webkit-mask-image:url(/assets/logos/DOME_Icon_White.svg);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}.right-for-you-cards-col[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.right-for-you-scroll[_ngcontent-%COMP%]{width:554px;max-width:100%}.scroll-card[_ngcontent-%COMP%]{width:548px;max-width:100%;background:#ebf0f7;border-radius:16px;padding:24px;box-sizing:border-box;position:relative;z-index:2;transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease}.scroll-card.is-active[_ngcontent-%COMP%]{background:#ebf0f7}@media (max-width: 1279px){.right-for-you-layout[_ngcontent-%COMP%]{grid-template-columns:1fr;row-gap:40px}.right-for-you-copy[_ngcontent-%COMP%]{padding-top:0;max-width:640px}.right-for-you-cards-col[_ngcontent-%COMP%]{justify-content:flex-start}.right-for-you-scroll[_ngcontent-%COMP%]{width:100%;max-width:554px}.scroll-card[_ngcontent-%COMP%]{width:100%}}@media (max-width: 640px){.right-for-you-section[_ngcontent-%COMP%]{min-height:auto}.right-for-you-watermark[_ngcontent-%COMP%]{width:320px;left:-90px;bottom:-100px;opacity:.35}.right-for-you-scroll[_ngcontent-%COMP%]{width:100%}}"]})}}return e})();const D=(e,o)=>o.key,x=(e,o)=>o.titleKey;function L(e,o){if(1&e&&(t.j41(0,"div",8)(1,"div",13),t.nrm(2,"fa-icon",14),t.k0s(),t.j41(3,"span",15),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&e){const n=o.$implicit,i=t.XpG();t.R7$(2),t.Y8G("icon",i.faCircleCheck),t.R7$(2),t.SpI(" ",t.bMT(5,2,n.key)," ")}}function T(e,o){if(1&e&&(t.j41(0,"div",11)(1,"div",16),t.nrm(2,"fa-icon",17),t.k0s(),t.j41(3,"div",18)(4,"h3",19),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",20),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()),2&e){const n=o.$implicit;t.R7$(2),t.Y8G("icon",n.icon),t.R7$(3),t.SpI(" ",t.bMT(6,3,n.titleKey)," "),t.R7$(3),t.SpI(" ",t.bMT(9,5,n.descKey)," ")}}function $(e,o){if(1&e&&(t.j41(0,"div",11)(1,"div",16),t.nrm(2,"fa-icon",21),t.k0s(),t.j41(3,"div",18)(4,"h3",19),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",20),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()),2&e){const n=o.$implicit;t.R7$(2),t.Y8G("icon",n.icon),t.R7$(3),t.SpI(" ",t.bMT(6,3,n.titleKey)," "),t.R7$(3),t.SpI(" ",t.bMT(9,5,n.descKey)," ")}}let j=(()=>{class e{constructor(){this.faCircleCheck=l.QRE,this.values=[{key:"LANDINGPAGE.customers.trusted.values.trustStandardised"},{key:"LANDINGPAGE.customers.trusted.values.evidenceVisible"},{key:"LANDINGPAGE.customers.trusted.values.comparisonSimplified"}],this.leftCards=[{titleKey:"LANDINGPAGE.customers.trusted.cards.verifiedServices.title",descKey:"LANDINGPAGE.customers.trusted.cards.verifiedServices.desc",icon:l.k1j},{titleKey:"LANDINGPAGE.customers.trusted.cards.trustIndicators.title",descKey:"LANDINGPAGE.customers.trusted.cards.trustIndicators.desc",icon:l.Wcv}],this.rightCards=[{titleKey:"LANDINGPAGE.customers.trusted.cards.documentation.title",descKey:"LANDINGPAGE.customers.trusted.cards.documentation.desc",icon:l.bLf},{titleKey:"LANDINGPAGE.customers.trusted.cards.crossBorderAccess.title",descKey:"LANDINGPAGE.customers.trusted.cards.crossBorderAccess.desc",icon:l.Bwz}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-trusted"]],standalone:!0,features:[t.aNF],decls:26,vars:12,consts:[[1,"w-full","bg-[#EBF0F7]","font-[Blinker]"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","items-center","gap-12","px-6","py-16","sm:px-8","md:py-20","lg:flex-row","lg:items-center","lg:gap-6","lg:px-16","lg:py-[100px]","xl:px-[160px]"],[1,"w-full","max-w-[548px]","flex-1"],[1,"flex","flex-col","items-start","gap-6"],[1,"flex","flex-col","items-start","gap-4","pb-6"],[1,"max-w-[548px]","text-[38px]","font-bold","leading-[1.12]","text-[#0B1528]","sm:text-[42px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[#2D58A7]"],[1,"max-w-[548px]","text-[18px]","font-normal","leading-[1.6]","text-[#0B1528]","sm:text-[19px]","lg:text-[20px]","lg:leading-[32px]"],[1,"flex","items-center","gap-4"],[1,"mx-auto","flex","max-w-[548px]","flex-col","gap-6","sm:flex-row","sm:items-start"],[1,"flex","w-full","flex-col","gap-6","sm:w-1/2"],[1,"min-h-[221px]","rounded-[16px]","bg-white","p-6"],[1,"flex","w-full","flex-col","gap-6","pt-0","sm:w-1/2","sm:pt-12"],[1,"flex","items-center","justify-center","w-8","h-8"],[1,"text-[#2D58A7]","text-[32px]",3,"icon"],[1,"text-[18px]","font-semibold","leading-6","text-[#111827]","lg:text-[20px]"],[1,"mb-6","text-[#2D58A7]"],[1,"h-10","w-10","text-[40px]",3,"icon"],[1,"flex","flex-col","gap-2"],[1,"text-[24px]","font-bold","leading-[29px]","text-[#0B1528]"],[1,"text-[16px]","font-normal","leading-6","text-[#0B1528]"],[1,"flex","items-center","justify-center","w-10","h-10","text-[26px]",3,"icon"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5),t.EFF(6),t.nI1(7,"translate"),t.j41(8,"span",6),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"p",7),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.Z7z(16,L,6,4,"div",8,D),t.k0s()(),t.j41(18,"div",2)(19,"div",9)(20,"div",10),t.Z7z(21,T,10,7,"div",11,x),t.k0s(),t.j41(23,"div",12),t.Z7z(24,$,10,7,"div",11,x),t.k0s()()()()()),2&i&&(t.R7$(6),t.SpI(" ",t.bMT(7,4,"LANDINGPAGE.customers.trusted._titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(10,6,"LANDINGPAGE.customers.trusted._titleAccent")," "),t.R7$(2),t.SpI(" ",t.bMT(12,8,"LANDINGPAGE.customers.trusted._titleEnd")," "),t.R7$(3),t.SpI(" ",t.bMT(15,10,"LANDINGPAGE.customers.trusted._desc")," "),t.R7$(2),t.Dyx(s.values),t.R7$(5),t.Dyx(s.leftCards),t.R7$(3),t.Dyx(s.rightCards))},dependencies:[r.h,r.D9,p.dX,p.aY]})}}return e})();const R=(e,o)=>o.titleStartKey;function S(e,o){if(1&e&&(t.j41(0,"div",9),t.nrm(1,"div",10),t.j41(2,"h3",11),t.EFF(3),t.nI1(4,"translate"),t.j41(5,"span",12),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"p",13),t.EFF(11),t.nI1(12,"translate"),t.k0s()()),2&e){const n=o.$implicit;t.R7$(3),t.SpI(" ",t.bMT(4,4,n.titleStartKey)," "),t.R7$(3),t.SpI(" ",t.bMT(7,6,n.titleAccentKey)," "),t.R7$(2),t.SpI(" ",n.titleEndKey?t.bMT(9,8,n.titleEndKey):""," "),t.R7$(3),t.SpI(" ",t.bMT(12,10,n.descKey)," ")}}let q=(()=>{class e{constructor(){this.cards=[{titleStartKey:"LANDINGPAGE.customers.whyJoin._dataTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._dataTitleAccent",descKey:"LANDINGPAGE.customers.whyJoin._dataDesc"},{titleStartKey:"LANDINGPAGE.customers.whyJoin._crossTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._crossTitleAccent",descKey:"LANDINGPAGE.customers.whyJoin._crossDesc"},{titleStartKey:"LANDINGPAGE.customers.whyJoin._riskTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._riskTitleAccent",titleEndKey:"LANDINGPAGE.customers.whyJoin._riskTitleEnd",descKey:"LANDINGPAGE.customers.whyJoin._riskDesc"},{titleStartKey:"LANDINGPAGE.customers.whyJoin._actionTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._actionTitleAccent",descKey:"LANDINGPAGE.customers.whyJoin._actionDesc"}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landingpage-customers-why-join"]],standalone:!0,features:[t.aNF],decls:15,vars:6,consts:[[1,"relative","isolate","w-full","overflow-hidden","bg-[linear-gradient(180deg,#0E1E3C_0%,#14274A_50%,#0E1E3C_100%)]","font-[Blinker]"],[1,"pointer-events-none","absolute","inset-0"],[1,"absolute","left-0","top-[-40px]","h-[520px]","w-[520px]","rounded-full","bg-[#234481]","opacity-25","blur-[120px]"],[1,"absolute","right-[-18px]","top-[35px]","h-[440px]","w-[440px]","rounded-full","bg-[#234481]","opacity-25","blur-[120px]"],[1,"relative","z-10","mx-auto","flex","w-full","max-w-[1440px]","flex-col","items-center","gap-14","px-6","py-16","sm:px-8","lg:px-16","lg:py-[100px]","xl:px-[160px]"],[1,"flex","max-w-[421px]","flex-col","items-center","gap-4","text-center"],[1,"text-[38px]","font-bold","leading-[1.08]","text-white","sm:text-[42px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[18px]","font-normal","leading-[1.6]","text-white","sm:text-[19px]","lg:text-[20px]","lg:leading-[32px]"],[1,"grid","w-full","max-w-[1120px]","grid-cols-1","gap-6","md:grid-cols-2","xl:grid-cols-4"],[1,"relative","flex","min-h-[320px]","flex-col","justify-between","overflow-hidden","rounded-[16px]","border","border-[#234481]","bg-[linear-gradient(180deg,#14274A_0%,#0B1528_100%)]","p-6","xl:h-[384px]"],[1,"absolute","left-2","top-0","h-[2px]","w-[calc(100%-16px)]","bg-[linear-gradient(90deg,rgba(0,0,0,0)_0%,#00ADD3_50%,rgba(0,0,0,0)_100%)]","opacity-75"],[1,"max-w-[214px]","text-[34px]","font-bold","leading-[1.15]","text-white","sm:text-[36px]","lg:text-[40px]","lg:leading-[48px]"],[1,"text-[#00ADD3]"],[1,"max-w-[214px]","text-[22px]","font-normal","leading-[1.35]","text-white","lg:text-[24px]","lg:leading-[32px]"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1),t.nrm(2,"div",2)(3,"div",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"h2",6),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"p",7),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",8),t.Z7z(13,S,13,12,"div",9,R),t.k0s()()()),2&i&&(t.R7$(7),t.SpI(" ",t.bMT(8,2,"LANDINGPAGE.customers.whyJoin._title")," "),t.R7$(3),t.SpI(" ",t.bMT(11,4,"LANDINGPAGE.customers.whyJoin._subtitle")," "),t.R7$(3),t.Dyx(s.cards))},dependencies:[r.h,r.D9],encapsulation:2})}}return e})(),K=(()=>{class e{constructor(){this.ONBOARDING_CUSTOMERS_LINK=g.c.DOME_CUSTOMER_REGISTER_LINK}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-page-customers"]],standalone:!0,features:[t.aNF],decls:8,vars:2,consts:[[3,"url"]],template:function(i,s){1&i&&t.nrm(0,"app-landing-customers-hero",0)(1,"app-landing-customers-trusted")(2,"app-landingpage-customers-why-join")(3,"app-landingpage-customers-right-for-you")(4,"app-landing-customers-buy-options")(5,"app-landing-customers-procure-steps")(6,"app-landing-customers-faqs")(7,"app-landing-customers-finalCta",0),2&i&&(t.Y8G("url",s.ONBOARDING_CUSTOMERS_LINK),t.R7$(7),t.Y8G("url",s.ONBOARDING_CUSTOMERS_LINK))},dependencies:[P,j,q,O,b,N,w,C]})}}return e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[342],{5342:(B,d,a)=>{a.r(d),a.d(d,{LandingPageCustomersComponent:()=>K});var g=a(5312),r=a(3955),t=a(4438);const u=(e,o)=>o.key;function f(e,o){1&e&&t.nrm(0,"div",10)}function m(e,o){if(1&e&&(t.j41(0,"span",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n.badgeKey)," ")}}function h(e,o){if(1&e&&(t.j41(0,"article",8),t.nrm(1,"div",9),t.DNE(2,f,1,0,"div",10),t.j41(3,"div",11),t.DNE(4,m,3,3,"span",12),t.k0s(),t.j41(5,"div",13)(6,"h3",14)(7,"span",15),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"span",15),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"p",16),t.EFF(14),t.nI1(15,"translate"),t.k0s()()()),2&e){const n=o.$implicit;t.AVh("buy-card-featured",n.featured),t.R7$(2),t.vxM(2,n.featured?2:-1),t.R7$(2),t.vxM(4,n.badgeKey?4:-1),t.R7$(4),t.SpI(" ",t.bMT(9,7,"LANDINGPAGE.customers.buyOptions.cards."+n.key+"._titleLine1")," "),t.R7$(3),t.SpI(" ",t.bMT(12,9,"LANDINGPAGE.customers.buyOptions.cards."+n.key+"._titleLine2")," "),t.R7$(3),t.SpI(" ",t.bMT(15,11,"LANDINGPAGE.customers.buyOptions.cards."+n.key+"._description")," ")}}let b=(()=>{class e{constructor(){this.cards=[{key:"offTheShelf"},{key:"tailored",featured:!0,badgeKey:"LANDINGPAGE.customers.buyOptions.cards.tailored._badge"},{key:"tender"}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-buy-options"]],standalone:!0,features:[t.aNF],decls:13,vars:6,consts:[[1,"buy-options-section","relative","isolate","flex","w-full","flex-col","items-center","justify-center","gap-10","overflow-hidden","px-5","py-16","font-[Blinker]","sm:px-8","sm:py-20","lg:gap-[56px]","lg:px-[80px]","lg:py-[100px]","xl:px-[160px]"],["aria-hidden","true",1,"buy-options-blur","buy-options-blur-left"],["aria-hidden","true",1,"buy-options-blur","buy-options-blur-right"],[1,"relative","z-[2]","flex","w-full","max-w-[421px]","flex-col","items-center","gap-4"],[1,"m-0","w-full","text-center","text-[32px]","font-bold","leading-[40px]","text-white","sm:text-[40px]","sm:leading-[48px]","lg:w-[407px]","lg:text-[48px]","lg:leading-[58px]"],[1,"m-0","w-full","text-center","text-[18px]","font-normal","leading-[30px]","text-white","sm:text-[20px]","sm:leading-[32px]","lg:w-[421px]"],[1,"relative","z-[3]","flex","w-full","max-w-[1120px]","flex-col","items-stretch","gap-5","md:gap-6","lg:flex-row","lg:items-stretch"],[1,"buy-card","relative","isolate","flex","min-h-[280px]","w-full","flex-col","overflow-hidden","rounded-[16px]","px-5","py-5","sm:min-h-[300px]","sm:px-6","sm:py-6","lg:h-[320px]","lg:w-[357.33px]",3,"buy-card-featured"],[1,"buy-card","relative","isolate","flex","min-h-[280px]","w-full","flex-col","overflow-hidden","rounded-[16px]","px-5","py-5","sm:min-h-[300px]","sm:px-6","sm:py-6","lg:h-[320px]","lg:w-[357.33px]"],["aria-hidden","true",1,"buy-card-line"],["aria-hidden","true",1,"buy-card-inner-glow"],[1,"relative","z-[4]","min-h-[32px]"],[1,"buy-card-badge","inline-flex","h-6","items-center","justify-center","rounded-full","px-[10px]","py-1","text-[14px]","font-semibold","leading-4"],[1,"mt-6","flex","flex-1","flex-col"],[1,"buy-card-title","min-h-[118px]","pb-5"],[1,"block"],[1,"buy-card-text","mt-4"]],template:function(i,s){1&i&&(t.j41(0,"section",0),t.nrm(1,"div",1)(2,"div",2),t.j41(3,"div",3)(4,"h2",4),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",5),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.j41(10,"div",6),t.Z7z(11,h,16,13,"article",7,u),t.k0s()()),2&i&&(t.R7$(5),t.SpI(" ",t.bMT(6,2,"LANDINGPAGE.customers.buyOptions._title")," "),t.R7$(3),t.SpI(" ",t.bMT(9,4,"LANDINGPAGE.customers.buyOptions._subtitle")," "),t.R7$(3),t.Dyx(s.cards))},dependencies:[r.h,r.D9],styles:["[_nghost-%COMP%]{display:block;width:100%}.buy-options-section[_ngcontent-%COMP%]{min-height:682px;background:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.buy-options-blur[_ngcontent-%COMP%]{position:absolute;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);pointer-events:none;z-index:0}.buy-options-blur-left[_ngcontent-%COMP%]{width:520px;height:520px;left:0;top:-40px}.buy-options-blur-right[_ngcontent-%COMP%]{width:440px;height:440px;right:-80px;top:35px}.buy-card[_ngcontent-%COMP%]{box-sizing:border-box;background:linear-gradient(175.9deg,#14274a 3.34%,#0b1528 97.37%);border:.5px solid #234481;border-radius:16px}.buy-card-line[_ngcontent-%COMP%]{position:absolute;top:0;left:8px;width:calc(100% - 16px);height:2px;border-radius:0;opacity:.75;background:linear-gradient(90deg,#0000,#00add3,#0000);z-index:2}.buy-card-featured[_ngcontent-%COMP%]{background:linear-gradient(160deg,#0d2a4a 8.49%,#0b1f3a 91.51%);border:.5px solid rgba(0,173,211,.3);box-shadow:0 0 40px #00add314}.buy-card-featured[_ngcontent-%COMP%] .buy-card-line[_ngcontent-%COMP%]{left:0;width:100%;opacity:1}.buy-card-badge[_ngcontent-%COMP%]{box-sizing:border-box;background:#00add326;border:.666667px solid rgba(0,173,211,.25);color:#00add3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.buy-card-inner-glow[_ngcontent-%COMP%]{position:absolute;width:298px;height:298px;left:calc(50% - 106px);top:59px;background:#00add3;opacity:.11;filter:blur(80px);pointer-events:none;z-index:1}.buy-card-title[_ngcontent-%COMP%]{position:relative;z-index:3;width:100%;min-height:76px;display:flex;flex-direction:column;justify-content:flex-end;margin:0;font-family:Blinker,sans-serif;font-weight:700;font-size:28px;line-height:34px;color:#fff}.buy-card-text[_ngcontent-%COMP%]{position:relative;z-index:3;width:100%;margin:0;font-family:Blinker,sans-serif;font-weight:400;font-size:18px;line-height:30px;color:#fff}@media (min-width: 640px){.buy-card-title[_ngcontent-%COMP%]{font-size:30px;line-height:36px}.buy-card-text[_ngcontent-%COMP%]{font-size:19px;line-height:31px}}@media (min-width: 1024px){.buy-options-blur-right[_ngcontent-%COMP%]{width:440px;height:440px;left:auto;right:-18px;top:35px}.buy-card-title[_ngcontent-%COMP%]{width:309.33px;height:76px;min-height:76px;font-size:32px;line-height:38px}.buy-card-text[_ngcontent-%COMP%]{width:309.33px;font-size:20px;line-height:32px}.buy-card-line[_ngcontent-%COMP%]{left:8px;width:calc(100% - 16px)}.buy-card-featured[_ngcontent-%COMP%] .buy-card-line[_ngcontent-%COMP%]{left:.67px;width:calc(100% - 1.34px)}}@media (max-width: 1023.98px){.buy-options-blur-left[_ngcontent-%COMP%]{width:360px;height:360px;left:-80px;top:-40px;filter:blur(100px)}.buy-options-blur-right[_ngcontent-%COMP%]{width:320px;height:320px;right:-100px;top:120px;filter:blur(100px)}.buy-card-inner-glow[_ngcontent-%COMP%]{width:240px;height:240px;left:auto;right:-20px;top:50%;transform:translateY(-40%);filter:blur(70px)}}@media (max-width: 639.98px){.buy-options-section[_ngcontent-%COMP%]{min-height:auto}.buy-options-blur-left[_ngcontent-%COMP%]{width:260px;height:260px;left:-80px;top:-20px;filter:blur(80px)}.buy-options-blur-right[_ngcontent-%COMP%]{width:240px;height:240px;right:-80px;top:180px;filter:blur(80px)}.buy-card-title[_ngcontent-%COMP%]{min-height:auto;font-size:26px;line-height:32px;font-weight:700;color:#fff}.buy-card-text[_ngcontent-%COMP%]{font-size:17px;line-height:28px}.buy-card-inner-glow[_ngcontent-%COMP%]{width:200px;height:200px;right:-10px;top:56%;transform:translateY(-40%);filter:blur(60px)}}"]})}}return e})();var p=a(60),l=a(604);const y=(e,o)=>o.id;function _(e,o){if(1&e){const n=t.RV6();t.j41(0,"article",6)(1,"button",7),t.bIt("click",function(){const s=t.eBV(n).$implicit,z=t.XpG();return t.Njj(z.toggleFaq(s.id))}),t.j41(2,"span",8),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",9),t.nrm(6,"fa-icon",10),t.k0s()(),t.j41(7,"div",11)(8,"div",12),t.nrm(9,"div",13),t.j41(10,"div",14),t.nrm(11,"div",15),t.nI1(12,"translate"),t.k0s()()()()}if(2&e){const n=o.$implicit,i=t.XpG();t.AVh("faq-card--open",i.isOpen(n.id)),t.R7$(),t.BMQ("aria-expanded",i.isOpen(n.id)),t.R7$(2),t.SpI(" ",t.bMT(4,10,n.questionKey)," "),t.R7$(2),t.AVh("faq-icon--open",i.isOpen(n.id)),t.R7$(),t.Y8G("icon",i.isOpen(n.id)?i.faMinus:i.faPlus),t.R7$(),t.AVh("faq-answer--open",i.isOpen(n.id)),t.R7$(4),t.Y8G("innerHTML",t.bMT(12,12,n.answerKey),t.npT)}}let w=(()=>{class e{constructor(){this.faPlus=l.QLR,this.faMinus=l.EZy,this.openFaqId="",this.faqs=[{id:"eligibility",questionKey:"LANDINGPAGE.customers.faqs._items.eligibility.question",answerKey:"LANDINGPAGE.customers.faqs._items.eligibility.answer"},{id:"trustworthiness",questionKey:"LANDINGPAGE.customers.faqs._items.trustworthiness.question",answerKey:"LANDINGPAGE.customers.faqs._items.trustworthiness.answer"},{id:"fee",questionKey:"LANDINGPAGE.customers.faqs._items.fee.question",answerKey:"LANDINGPAGE.customers.faqs._items.fee.answer"},{id:"process",questionKey:"LANDINGPAGE.customers.faqs._items.process.question",answerKey:"LANDINGPAGE.customers.faqs._items.process.answer"},{id:"provider",questionKey:"LANDINGPAGE.customers.faqs._items.provider.question",answerKey:"LANDINGPAGE.customers.faqs._items.provider.answer"},{id:"dispute",questionKey:"LANDINGPAGE.customers.faqs._items.dispute.question",answerKey:"LANDINGPAGE.customers.faqs._items.dispute.answer"}]}toggleFaq(n){this.openFaqId=this.openFaqId===n?"":n}isOpen(n){return this.openFaqId===n}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-faqs"]],standalone:!0,features:[t.aNF],decls:9,vars:3,consts:[[1,"faq-section","w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-5","pt-[64px]","sm:px-8","sm:pt-[80px]","lg:px-[160px]","lg:pt-[100px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","gap-8","lg:gap-10"],[1,"faq-heading"],[1,"flex","flex-col","gap-4","lg:gap-6"],[1,"faq-card",3,"faq-card--open"],[1,"faq-card"],["type","button",1,"faq-question",3,"click"],[1,"faq-question__title"],[1,"faq-icon"],[3,"icon"],[1,"faq-answer"],[1,"faq-answer__inner"],[1,"faq-divider"],[1,"faq-answer__content"],[3,"innerHTML"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",4),t.Z7z(7,_,13,14,"article",5,y),t.k0s()()()()),2&i&&(t.R7$(4),t.SpI(" ",t.bMT(5,1,"LANDINGPAGE.customers.faqs.title")," "),t.R7$(3),t.Dyx(s.faqs))},dependencies:[r.h,r.D9,p.dX,p.aY],styles:['[_nghost-%COMP%]{display:block}.faq-section[_ngcontent-%COMP%]{background:#ebf0f7}.faq-heading[_ngcontent-%COMP%]{color:#0b1528;font-weight:700;font-size:32px;line-height:38px}.faq-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;border:1px solid transparent}.faq-card--open[_ngcontent-%COMP%]{border:1px solid #D8DADE;box-shadow:0 0 16px #00000014}.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}.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,transform .25s ease}.faq-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:transform .25s ease}.faq-icon--open[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.faq-answer[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .35s ease,opacity .25s ease,margin-top .35s ease;margin-top:0}.faq-answer--open[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1;margin-top:16px}.faq-answer__inner[_ngcontent-%COMP%]{overflow:hidden}.faq-divider[_ngcontent-%COMP%]{height:1px;background:#d8dade;margin-bottom:16px;transform:scaleX(.96);transform-origin:left center;transition:transform .35s ease,opacity .25s ease;opacity:0}.faq-answer--open[_ngcontent-%COMP%] .faq-divider[_ngcontent-%COMP%]{transform:scaleX(1);opacity:1}.faq-answer__content[_ngcontent-%COMP%]{color:#324153;font-size:18px;line-height:30px;transform:translateY(-8px);opacity:0;transition:transform .35s ease,opacity .3s ease}.faq-answer--open[_ngcontent-%COMP%] .faq-answer__content[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}[_nghost-%COMP%] .faq-answer__content p{margin:0 0 16px}[_nghost-%COMP%] .faq-answer__content p:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content ul{margin:0 0 16px;padding-left:28px;list-style:disc outside}[_nghost-%COMP%] .faq-answer__content ul:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content li{display:list-item;margin:0 0 12px}[_nghost-%COMP%] .faq-answer__content li:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content strong, [_nghost-%COMP%] .faq-answer__content b{font-weight:700;color:#0b1528}[_nghost-%COMP%] .faq-answer__content br{display:block;content:"";margin-top:12px}@media (min-width: 1024px){.faq-heading[_ngcontent-%COMP%]{font-size:48px;line-height:58px}.faq-question__title[_ngcontent-%COMP%]{font-size:24px;line-height:29px}.faq-answer__content[_ngcontent-%COMP%]{font-size:20px;line-height:32px}[_nghost-%COMP%] .faq-answer__content ul{padding-left:30px}}']})}}return e})(),C=(()=>{class e{constructor(){this.url=t.hFB.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-finalCta"]],inputs:{url:[t.Mj6.SignalBased,"url"]},standalone:!0,features:[t.aNF],decls:24,vars:19,consts:[[1,"final-cta-section","w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-5","sm:px-8","lg:px-[160px]","py-[64px]","sm:py-[80px]","lg:py-[100px]"],[1,"final-cta-shell","mx-auto","w-full","max-w-[1120px]"],["aria-hidden","true",1,"final-cta-glow"],[1,"final-cta-content"],[1,"final-cta-text"],[1,"final-cta-title","flex"],[1,"final-cta-title-accent","ml-3"],[1,"final-cta-description"],[1,"final-cta-actions"],[1,"final-cta-btn","final-cta-btn--primary",3,"href"],["href","/contact-us",1,"final-cta-btn","final-cta-btn--secondary"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2),t.nrm(3,"div",3),t.j41(4,"div",4)(5,"div",5)(6,"h2",6),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"span",7),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"p",8),t.EFF(15),t.nI1(16,"translate"),t.k0s()(),t.j41(17,"div",9)(18,"a",10),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"a",11),t.EFF(22),t.nI1(23,"translate"),t.k0s()()()()()()),2&i&&(t.R7$(7),t.SpI(" ",t.bMT(8,7,"LANDINGPAGE.customers.finalCta.titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(11,9,"LANDINGPAGE.customers.finalCta.titleAccent")," "),t.R7$(2),t.SpI("",t.bMT(13,11,"LANDINGPAGE.customers.finalCta.titleEnd")," "),t.R7$(3),t.SpI(" ",t.bMT(16,13,"LANDINGPAGE.customers.finalCta.description")," "),t.R7$(3),t.Y8G("href",s.url(),t.B4B),t.R7$(),t.SpI(" ",t.bMT(20,15,"LANDINGPAGE.customers.finalCta.primaryCta")," "),t.R7$(3),t.SpI(" ",t.bMT(23,17,"LANDINGPAGE.customers.finalCta.secondaryCta")," "))},dependencies:[r.h,r.D9],styles:["[_nghost-%COMP%]{display:block}.final-cta-section[_ngcontent-%COMP%]{background:#ebf0f7}.final-cta-shell[_ngcontent-%COMP%]{position:relative;overflow:hidden;isolation:isolate;border-radius:16px;background:linear-gradient(134.43deg,#234481 -16.9%,#0b1528 40.69%,#1a3360 101.69%)}.final-cta-glow[_ngcontent-%COMP%]{position:absolute;width:520px;height:520px;left:-91px;top:-158px;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);z-index:0;pointer-events:none}.final-cta-content[_ngcontent-%COMP%]{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:40px;padding:40px 20px;text-align:center}.final-cta-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:20px;width:100%;max-width:930px}.final-cta-title[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:700;font-size:30px;line-height:1.15;text-align:center}.final-cta-title-accent[_ngcontent-%COMP%]{color:#10b7e8}.final-cta-description[_ngcontent-%COMP%]{margin:0;max-width:760px;color:#fff;font-weight:400;font-size:18px;line-height:1.4;text-align:center}.final-cta-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%;max-width:548px}.final-cta-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;width:100%;padding:12px 20px;border-radius:6px;text-align:center;text-decoration:none;font-weight:600;font-size:16px;line-height:24px;letter-spacing:.5px;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.final-cta-btn--primary[_ngcontent-%COMP%]{background:#2d58a7;color:#fff;border:2px solid #2D58A7}.final-cta-btn--primary[_ngcontent-%COMP%]:hover{background:#18b5d9;border-color:#18b5d9}.final-cta-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid #2D58A7}.final-cta-btn--secondary[_ngcontent-%COMP%]:hover{background:#5b6f8e;border-color:#2d58a7}@media (min-width: 640px){.final-cta-content[_ngcontent-%COMP%]{padding:52px 24px}.final-cta-title[_ngcontent-%COMP%]{font-size:36px}.final-cta-description[_ngcontent-%COMP%]{font-size:20px;line-height:1.45}.final-cta-actions[_ngcontent-%COMP%]{flex-direction:row;justify-content:center;gap:24px}.final-cta-btn[_ngcontent-%COMP%]{width:262px}}@media (min-width: 1024px){.final-cta-shell[_ngcontent-%COMP%]{min-height:351px}.final-cta-content[_ngcontent-%COMP%]{padding:64px 24px;gap:40px}.final-cta-text[_ngcontent-%COMP%]{gap:24px}.final-cta-title[_ngcontent-%COMP%]{max-width:930px;font-size:44px;line-height:53px}.final-cta-description[_ngcontent-%COMP%]{max-width:930px;font-size:24px;line-height:29px}.final-cta-actions[_ngcontent-%COMP%]{width:548px}}"]})}}return e})(),P=(()=>{class e{constructor(){this.url=t.hFB.required()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-hero"]],inputs:{url:[t.Mj6.SignalBased,"url"]},standalone:!0,features:[t.aNF],decls:28,vars:22,consts:[[1,"relative","isolate","overflow-hidden","bg-[linear-gradient(180deg,#0C182D_0%,#1A3360_100%)]","font-[Blinker]"],[1,"absolute","inset-0","pointer-events-none"],[1,"absolute","left-[-213px]","top-[-95px]","h-[635px]","w-[635px]","rounded-full","bg-[#234481]/30","blur-[100px]"],[1,"absolute","right-[-187px]","top-[171px]","h-[553px]","w-[553px]","rounded-full","bg-[#234481]/30","blur-[100px]"],[1,"relative","z-10","mx-auto","w-full","max-w-[1440px]","px-6","pt-[140px]","pb-20","sm:px-10","sm:pt-[170px]","sm:pb-24","lg:px-20","lg:pt-[190px]","lg:pb-[90px]","xl:px-[160px]","xl:pt-[204px]","xl:pb-[100px]"],[1,"flex","max-w-[929px]","flex-col","items-start","gap-6","lg:gap-8","xl:gap-6"],[1,"inline-flex","min-h-[45px]","items-center","justify-center","rounded-full","border","border-[rgba(0,173,211,0.25)]","bg-[rgba(0,173,211,0.15)]","px-5","py-2","text-[20px]","font-bold","leading-none","text-[#00ADD3]","sm:px-6","sm:text-[22px]","lg:text-[24px]"],[1,"max-w-[738px]","text-[42px]","font-extrabold","leading-[1.05]","tracking-[0.5px]","text-white","sm:text-[52px]","lg:text-[60px]","xl:text-[64px]","xl:leading-[77px]","xl:tracking-[1px]"],[1,"text-[#00B5E2]"],[1,"max-w-[929px]","text-[22px]","font-normal","leading-[1.45]","text-white","sm:text-[24px]","lg:text-[28px]","xl:text-[32px]","xl:leading-[48px]"],[1,"flex","w-full","flex-col","gap-4","pt-4","sm:w-auto","sm:flex-row","sm:gap-6","sm:pt-8"],[1,"inline-flex","h-14","min-w-[262px]","items-center","justify-center","rounded-[8px]","bg-[#2D58A7]","px-6","text-center","text-[18px]","font-semibold","leading-[22px]","text-white","transition-colors","duration-200","hover:bg-[#18B5D9]",3,"href"],["href","/contact-us",1,"inline-flex","h-14","min-w-[262px]","items-center","justify-center","rounded-[8px]","border-[3px]","border-[#2D58A7]","px-6","text-center","text-[18px]","font-semibold","leading-[22px]","text-white","transition-colors","duration-200","hover:bg-[#5B6F8E]"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1),t.nrm(2,"div",2)(3,"div",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"span",6),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"h1",7),t.EFF(10),t.nI1(11,"translate"),t.nrm(12,"br"),t.j41(13,"span",8),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.j41(18,"p",9),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.j41(21,"div",10)(22,"a",11),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"a",12),t.EFF(26),t.nI1(27,"translate"),t.k0s()()()()()),2&i&&(t.R7$(7),t.SpI(" ",t.bMT(8,8,"LANDINGPAGE.customers.hero._badge")," "),t.R7$(3),t.SpI(" ",t.bMT(11,10,"LANDINGPAGE.customers.hero._titleLine1"),""),t.R7$(4),t.JRh(t.bMT(15,12,"LANDINGPAGE.customers.hero._titleAccent")),t.R7$(2),t.SpI(" ",t.bMT(17,14,"LANDINGPAGE.customers.hero._titleLine2")," "),t.R7$(3),t.SpI(" ",t.bMT(20,16,"LANDINGPAGE.customers.hero._desc")," "),t.R7$(3),t.Y8G("href",s.url(),t.B4B),t.R7$(),t.SpI(" ",t.bMT(24,18,"LANDINGPAGE.customers.hero._ctaPrimary")," "),t.R7$(3),t.SpI(" ",t.bMT(27,20,"LANDINGPAGE.customers.hero._ctaSecondary")," "))},dependencies:[r.h,r.D9]})}}return e})();const A=(e,o)=>o.key;function I(e,o){1&e&&t.nrm(0,"div",11)}function M(e,o){if(1&e&&(t.j41(0,"article",7),t.nrm(1,"fa-icon",8),t.j41(2,"div",9),t.EFF(3),t.k0s(),t.j41(4,"h3",10),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.DNE(7,I,1,0,"div",11)),2&e){const n=o.$implicit,i=o.$index,s=t.XpG();t.R7$(),t.Y8G("icon",n.icon),t.R7$(2),t.SpI(" ",i+1," "),t.R7$(2),t.SpI(" ",t.bMT(6,4,"LANDINGPAGE.customers.procureSteps.items."+n.key+"._title")," "),t.R7$(2),t.vxM(7,i{class e{constructor(){this.steps=[{key:"step1",icon:l.X46},{key:"step2",icon:l.$UM},{key:"step3",icon:l.WfV},{key:"step4",icon:l.Z8x}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-procure-steps"]],standalone:!0,features:[t.aNF],decls:15,vars:9,consts:[[1,"procure-steps-section","w-full","font-[Blinker]","px-5","pt-16","sm:px-8","sm:pt-20","lg:px-[80px]","lg:pt-[100px]","xl:px-[160px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","items-start","gap-10"],[1,"flex","w-full","flex-col","items-start","gap-4"],[1,"m-0","w-full","text-[32px]","font-bold","leading-[40px]","text-[#0B1528]","sm:text-[40px]","sm:leading-[48px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[#2D58A7]"],[1,"m-0","w-full","text-[18px]","font-normal","leading-[30px]","text-[#0B1528]","sm:text-[20px]","sm:leading-[32px]"],[1,"procure-steps-grid"],[1,"procure-step-card"],["aria-hidden","true",1,"procure-step-icon",3,"icon"],[1,"procure-step-number"],[1,"procure-step-title"],["aria-hidden","true",1,"procure-step-connector"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),t.EFF(4),t.nI1(5,"translate"),t.j41(6,"span",4),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"p",5),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",6),t.Z7z(13,M,8,6,null,null,A),t.k0s()()()),2&i&&(t.R7$(4),t.SpI(" ",t.bMT(5,3,"LANDINGPAGE.customers.procureSteps._titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(8,5,"LANDINGPAGE.customers.procureSteps._titleAccent")," "),t.R7$(3),t.SpI(" ",t.bMT(11,7,"LANDINGPAGE.customers.procureSteps._subtitle")," "),t.R7$(3),t.Dyx(s.steps))},dependencies:[r.h,r.D9,p.dX,p.aY],styles:["[_nghost-%COMP%]{display:block;width:100%}.procure-steps-section[_ngcontent-%COMP%]{background:#ebf0f7}.procure-steps-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:16px;width:100%}.procure-step-card[_ngcontent-%COMP%]{position:relative;isolation:isolate;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:40px;width:100%;min-height:240px;padding:24px;overflow:hidden;background:#f7f9fd;border:1px solid rgba(216,218,222,.6);border-radius:16px}.procure-step-icon[_ngcontent-%COMP%]{position:absolute;right:-14.52px;bottom:-2.52px;z-index:0;width:120px;height:120px;color:#2d58a7;opacity:.08;transform:rotate(-15deg);pointer-events:none;font-size:120px;line-height:1}.procure-step-number[_ngcontent-%COMP%]{position:relative;z-index:1;width:78px;height:80px;display:flex;align-items:center;margin:0;font-family:Blinker,sans-serif;font-style:normal;font-weight:800;font-size:96px;line-height:115px;letter-spacing:1px;background:linear-gradient(180deg,#1a3360,#00add3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent}.procure-step-title[_ngcontent-%COMP%]{position:relative;z-index:1;width:178px;min-height:72px;margin:0;font-family:Blinker,sans-serif;font-style:normal;font-weight:600;font-size:20px;line-height:24px;color:#0b1528}.procure-step-connector[_ngcontent-%COMP%]{display:none;width:56px;height:2px;align-self:center;background:linear-gradient(90deg,#ebf0f7,#00add3 50%,#ebf0f7 88.94%);border-radius:0}@media (min-width: 640px) and (max-width: 1023.98px){.procure-steps-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.procure-step-title[_ngcontent-%COMP%]{width:100%;max-width:178px}}@media (min-width: 1024px){.procure-steps-grid[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:8px;width:1120px;height:240px}.procure-step-card[_ngcontent-%COMP%]{width:226px;height:240px;min-height:240px;flex:1 1 0}.procure-step-connector[_ngcontent-%COMP%]{display:block;flex:0 0 56px}}@media (max-width: 639.98px){.procure-step-card[_ngcontent-%COMP%]{min-height:220px;gap:28px;padding:20px}.procure-step-icon[_ngcontent-%COMP%]{right:-10px;bottom:-6px;width:100px;height:100px;font-size:100px}.procure-step-number[_ngcontent-%COMP%]{width:64px;height:64px;font-size:76px;line-height:88px}.procure-step-title[_ngcontent-%COMP%]{width:100%;min-height:auto;font-size:22px;line-height:26px}}"]})}}return e})();var c=a(5383),G=a(5851),v=a(8620),k=a(7265);const F=(e,o)=>o.titleKey;function E(e,o){if(1&e&&(t.j41(0,"div",10)(1,"div",11)(2,"div",12),t.nrm(3,"fa-icon",13),t.k0s(),t.j41(4,"div",14)(5,"h3",15),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"p",16),t.EFF(9),t.nI1(10,"translate"),t.k0s()()()()),2&e){const n=o.$implicit;t.R7$(3),t.Y8G("icon",n.icon),t.R7$(3),t.SpI(" ",t.bMT(7,3,n.titleKey)," "),t.R7$(3),t.SpI(" ",t.bMT(10,5,n.descKey)," ")}}let O=(()=>{class e{constructor(){this.cards=[{titleKey:"LANDINGPAGE.customers.rightForYou._regulatedIndustriesTitle",descKey:"LANDINGPAGE.customers.rightForYou._regulatedIndustriesDesc",icon:c.fLc},{titleKey:"LANDINGPAGE.customers.rightForYou._enterprisesTitle",descKey:"LANDINGPAGE.customers.rightForYou._enterprisesDesc",icon:c.URI},{titleKey:"LANDINGPAGE.customers.rightForYou._publicSectorTitle",descKey:"LANDINGPAGE.customers.rightForYou._publicSectorDesc",icon:c.IPD},{titleKey:"LANDINGPAGE.customers.rightForYou._complianceTeamsTitle",descKey:"LANDINGPAGE.customers.rightForYou._complianceTeamsDesc",icon:c.iRu},{titleKey:"LANDINGPAGE.customers.rightForYou._structuredProcurementTitle",descKey:"LANDINGPAGE.customers.rightForYou._structuredProcurementDesc",icon:c.JX9}]}get scrollHeight(){return window.innerWidth<768?460:window.innerWidth<1280?540:636}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landingpage-customers-right-for-you"]],standalone:!0,features:[t.aNF],decls:20,vars:15,consts:[[1,"right-for-you-section","relative","isolate","w-full","overflow-hidden","bg-white","font-[Blinker]"],[1,"right-for-you-watermark","pointer-events-none","select-none"],[1,"mx-auto","w-full","max-w-[1440px]","px-6","py-16","sm:px-8","lg:px-16","lg:py-[80px]","xl:px-[160px]"],[1,"right-for-you-layout"],[1,"right-for-you-copy"],[1,"text-[48px]","font-bold","leading-[58px]","text-[#0B1528]"],[1,"text-[#2D58A7]"],[1,"mt-4","text-[20px]","leading-[32px]","text-[#0B1528]"],[1,"right-for-you-cards-col"],[1,"right-for-you-scroll",3,"height","gap","indicatorLeft"],["verticalScrollCard","",1,"scroll-card"],[1,"flex","flex-col","gap-6"],[1,"flex","h-[72px]","w-[72px]","items-center","justify-center","rounded-[16px]","bg-[#DDE6F6]","text-[#2D58A7]"],[1,"text-[40px]",3,"icon"],[1,"flex","flex-col","gap-2"],[1,"text-[24px]","font-bold","leading-[29px]","text-[#0B1528]"],[1,"text-[20px]","leading-[32px]","text-[#324153]"]],template:function(i,s){1&i&&(t.j41(0,"section",0),t.nrm(1,"div",1),t.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5),t.EFF(6),t.nI1(7,"translate"),t.j41(8,"span",6),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"p",7),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.j41(16,"div",8)(17,"app-vertical-scroll-cards",9),t.Z7z(18,E,11,7,"div",10,F),t.k0s()()()()()),2&i&&(t.R7$(6),t.SpI(" ",t.bMT(7,7,"LANDINGPAGE.customers.rightForYou._titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(10,9,"LANDINGPAGE.customers.rightForYou._titleAccent")," "),t.R7$(2),t.SpI(" ",t.bMT(12,11,"LANDINGPAGE.customers.rightForYou._titleEnd")," "),t.R7$(3),t.SpI(" ",t.bMT(15,13,"LANDINGPAGE.customers.rightForYou._desc")," "),t.R7$(3),t.Y8G("height",s.scrollHeight)("gap",24)("indicatorLeft",14),t.R7$(),t.Dyx(s.cards))},dependencies:[r.h,r.D9,p.dX,p.aY,G.h,v.g,k.w],styles:[".right-for-you-section[_ngcontent-%COMP%]{min-height:920px}.right-for-you-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:453px 554px;justify-content:space-between;align-items:center;column-gap:24px}.right-for-you-copy[_ngcontent-%COMP%]{padding-top:80px}.right-for-you-watermark[_ngcontent-%COMP%]{position:absolute;left:-124px;bottom:-142px;width:511px;height:511px;opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;background-color:#dde6f6;mask-image:url(/assets/logos/DOME_Icon_White.svg);-webkit-mask-image:url(/assets/logos/DOME_Icon_White.svg);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}.right-for-you-cards-col[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.right-for-you-scroll[_ngcontent-%COMP%]{width:554px;max-width:100%}.scroll-card[_ngcontent-%COMP%]{width:548px;max-width:100%;background:#ebf0f7;border-radius:16px;padding:24px;box-sizing:border-box;position:relative;z-index:2;transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease}.scroll-card.is-active[_ngcontent-%COMP%]{background:#ebf0f7}@media (max-width: 1279px){.right-for-you-layout[_ngcontent-%COMP%]{grid-template-columns:1fr;row-gap:40px}.right-for-you-copy[_ngcontent-%COMP%]{padding-top:0;max-width:640px}.right-for-you-cards-col[_ngcontent-%COMP%]{justify-content:flex-start}.right-for-you-scroll[_ngcontent-%COMP%]{width:100%;max-width:554px}.scroll-card[_ngcontent-%COMP%]{width:100%}}@media (max-width: 640px){.right-for-you-section[_ngcontent-%COMP%]{min-height:auto}.right-for-you-watermark[_ngcontent-%COMP%]{width:320px;left:-90px;bottom:-100px;opacity:.35}.right-for-you-scroll[_ngcontent-%COMP%]{width:100%}}"]})}}return e})();const D=(e,o)=>o.key,x=(e,o)=>o.titleKey;function L(e,o){if(1&e&&(t.j41(0,"div",8)(1,"div",13),t.nrm(2,"fa-icon",14),t.k0s(),t.j41(3,"span",15),t.EFF(4),t.nI1(5,"translate"),t.k0s()()),2&e){const n=o.$implicit,i=t.XpG();t.R7$(2),t.Y8G("icon",i.faCircleCheck),t.R7$(2),t.SpI(" ",t.bMT(5,2,n.key)," ")}}function T(e,o){if(1&e&&(t.j41(0,"div",11)(1,"div",16),t.nrm(2,"fa-icon",17),t.k0s(),t.j41(3,"div",18)(4,"h3",19),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",20),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()),2&e){const n=o.$implicit;t.R7$(2),t.Y8G("icon",n.icon),t.R7$(3),t.SpI(" ",t.bMT(6,3,n.titleKey)," "),t.R7$(3),t.SpI(" ",t.bMT(9,5,n.descKey)," ")}}function $(e,o){if(1&e&&(t.j41(0,"div",11)(1,"div",16),t.nrm(2,"fa-icon",21),t.k0s(),t.j41(3,"div",18)(4,"h3",19),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"p",20),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()),2&e){const n=o.$implicit;t.R7$(2),t.Y8G("icon",n.icon),t.R7$(3),t.SpI(" ",t.bMT(6,3,n.titleKey)," "),t.R7$(3),t.SpI(" ",t.bMT(9,5,n.descKey)," ")}}let j=(()=>{class e{constructor(){this.faCircleCheck=l.QRE,this.values=[{key:"LANDINGPAGE.customers.trusted.values.trustStandardised"},{key:"LANDINGPAGE.customers.trusted.values.evidenceVisible"},{key:"LANDINGPAGE.customers.trusted.values.comparisonSimplified"}],this.leftCards=[{titleKey:"LANDINGPAGE.customers.trusted.cards.verifiedServices.title",descKey:"LANDINGPAGE.customers.trusted.cards.verifiedServices.desc",icon:l.k1j},{titleKey:"LANDINGPAGE.customers.trusted.cards.trustIndicators.title",descKey:"LANDINGPAGE.customers.trusted.cards.trustIndicators.desc",icon:l.Wcv}],this.rightCards=[{titleKey:"LANDINGPAGE.customers.trusted.cards.documentation.title",descKey:"LANDINGPAGE.customers.trusted.cards.documentation.desc",icon:l.bLf},{titleKey:"LANDINGPAGE.customers.trusted.cards.crossBorderAccess.title",descKey:"LANDINGPAGE.customers.trusted.cards.crossBorderAccess.desc",icon:l.Bwz}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-customers-trusted"]],standalone:!0,features:[t.aNF],decls:26,vars:12,consts:[[1,"w-full","bg-[#EBF0F7]","font-[Blinker]"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","items-center","gap-12","px-6","py-16","sm:px-8","md:py-20","lg:flex-row","lg:items-center","lg:gap-6","lg:px-16","lg:py-[100px]","xl:px-[160px]"],[1,"w-full","max-w-[548px]","flex-1"],[1,"flex","flex-col","items-start","gap-6"],[1,"flex","flex-col","items-start","gap-4","pb-6"],[1,"max-w-[548px]","text-[38px]","font-bold","leading-[1.12]","text-[#0B1528]","sm:text-[42px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[#2D58A7]"],[1,"max-w-[548px]","text-[18px]","font-normal","leading-[1.6]","text-[#0B1528]","sm:text-[19px]","lg:text-[20px]","lg:leading-[32px]"],[1,"flex","items-center","gap-4"],[1,"mx-auto","flex","max-w-[548px]","flex-col","gap-6","sm:flex-row","sm:items-start"],[1,"flex","w-full","flex-col","gap-6","sm:w-1/2"],[1,"min-h-[221px]","rounded-[16px]","bg-white","p-6"],[1,"flex","w-full","flex-col","gap-6","pt-0","sm:w-1/2","sm:pt-12"],[1,"flex","items-center","justify-center","w-8","h-8"],[1,"text-[#2D58A7]","text-[32px]",3,"icon"],[1,"text-[18px]","font-semibold","leading-6","text-[#111827]","lg:text-[20px]"],[1,"mb-6","text-[#2D58A7]"],[1,"h-10","w-10","text-[40px]",3,"icon"],[1,"flex","flex-col","gap-2"],[1,"text-[24px]","font-bold","leading-[29px]","text-[#0B1528]"],[1,"text-[16px]","font-normal","leading-6","text-[#0B1528]"],[1,"flex","items-center","justify-center","w-10","h-10","text-[26px]",3,"icon"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5),t.EFF(6),t.nI1(7,"translate"),t.j41(8,"span",6),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"p",7),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.Z7z(16,L,6,4,"div",8,D),t.k0s()(),t.j41(18,"div",2)(19,"div",9)(20,"div",10),t.Z7z(21,T,10,7,"div",11,x),t.k0s(),t.j41(23,"div",12),t.Z7z(24,$,10,7,"div",11,x),t.k0s()()()()()),2&i&&(t.R7$(6),t.SpI(" ",t.bMT(7,4,"LANDINGPAGE.customers.trusted._titleStart")," "),t.R7$(3),t.SpI(" ",t.bMT(10,6,"LANDINGPAGE.customers.trusted._titleAccent")," "),t.R7$(2),t.SpI(" ",t.bMT(12,8,"LANDINGPAGE.customers.trusted._titleEnd")," "),t.R7$(3),t.SpI(" ",t.bMT(15,10,"LANDINGPAGE.customers.trusted._desc")," "),t.R7$(2),t.Dyx(s.values),t.R7$(5),t.Dyx(s.leftCards),t.R7$(3),t.Dyx(s.rightCards))},dependencies:[r.h,r.D9,p.dX,p.aY]})}}return e})();const R=(e,o)=>o.titleStartKey;function S(e,o){if(1&e&&(t.j41(0,"div",9),t.nrm(1,"div",10),t.j41(2,"h3",11),t.EFF(3),t.nI1(4,"translate"),t.j41(5,"span",12),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"p",13),t.EFF(11),t.nI1(12,"translate"),t.k0s()()),2&e){const n=o.$implicit;t.R7$(3),t.SpI(" ",t.bMT(4,4,n.titleStartKey)," "),t.R7$(3),t.SpI(" ",t.bMT(7,6,n.titleAccentKey)," "),t.R7$(2),t.SpI(" ",n.titleEndKey?t.bMT(9,8,n.titleEndKey):""," "),t.R7$(3),t.SpI(" ",t.bMT(12,10,n.descKey)," ")}}let q=(()=>{class e{constructor(){this.cards=[{titleStartKey:"LANDINGPAGE.customers.whyJoin._dataTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._dataTitleAccent",descKey:"LANDINGPAGE.customers.whyJoin._dataDesc"},{titleStartKey:"LANDINGPAGE.customers.whyJoin._crossTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._crossTitleAccent",descKey:"LANDINGPAGE.customers.whyJoin._crossDesc"},{titleStartKey:"LANDINGPAGE.customers.whyJoin._riskTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._riskTitleAccent",titleEndKey:"LANDINGPAGE.customers.whyJoin._riskTitleEnd",descKey:"LANDINGPAGE.customers.whyJoin._riskDesc"},{titleStartKey:"LANDINGPAGE.customers.whyJoin._actionTitleStart",titleAccentKey:"LANDINGPAGE.customers.whyJoin._actionTitleAccent",descKey:"LANDINGPAGE.customers.whyJoin._actionDesc"}]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landingpage-customers-why-join"]],standalone:!0,features:[t.aNF],decls:15,vars:6,consts:[[1,"relative","isolate","w-full","overflow-hidden","bg-[linear-gradient(180deg,#0E1E3C_0%,#14274A_50%,#0E1E3C_100%)]","font-[Blinker]"],[1,"pointer-events-none","absolute","inset-0"],[1,"absolute","left-0","top-[-40px]","h-[520px]","w-[520px]","rounded-full","bg-[#234481]","opacity-25","blur-[120px]"],[1,"absolute","right-[-18px]","top-[35px]","h-[440px]","w-[440px]","rounded-full","bg-[#234481]","opacity-25","blur-[120px]"],[1,"relative","z-10","mx-auto","flex","w-full","max-w-[1440px]","flex-col","items-center","gap-14","px-6","py-16","sm:px-8","lg:px-16","lg:py-[100px]","xl:px-[160px]"],[1,"flex","max-w-[421px]","flex-col","items-center","gap-4","text-center"],[1,"text-[38px]","font-bold","leading-[1.08]","text-white","sm:text-[42px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[18px]","font-normal","leading-[1.6]","text-white","sm:text-[19px]","lg:text-[20px]","lg:leading-[32px]"],[1,"grid","w-full","max-w-[1120px]","grid-cols-1","gap-6","md:grid-cols-2","xl:grid-cols-4"],[1,"relative","flex","min-h-[320px]","flex-col","justify-between","overflow-hidden","rounded-[16px]","border","border-[#234481]","bg-[linear-gradient(180deg,#14274A_0%,#0B1528_100%)]","p-6","xl:h-[384px]"],[1,"absolute","left-2","top-0","h-[2px]","w-[calc(100%-16px)]","bg-[linear-gradient(90deg,rgba(0,0,0,0)_0%,#00ADD3_50%,rgba(0,0,0,0)_100%)]","opacity-75"],[1,"max-w-[214px]","text-[34px]","font-bold","leading-[1.15]","text-white","sm:text-[36px]","lg:text-[40px]","lg:leading-[48px]"],[1,"text-[#00ADD3]"],[1,"max-w-[214px]","text-[22px]","font-normal","leading-[1.35]","text-white","lg:text-[24px]","lg:leading-[32px]"]],template:function(i,s){1&i&&(t.j41(0,"section",0)(1,"div",1),t.nrm(2,"div",2)(3,"div",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"h2",6),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"p",7),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",8),t.Z7z(13,S,13,12,"div",9,R),t.k0s()()()),2&i&&(t.R7$(7),t.SpI(" ",t.bMT(8,2,"LANDINGPAGE.customers.whyJoin._title")," "),t.R7$(3),t.SpI(" ",t.bMT(11,4,"LANDINGPAGE.customers.whyJoin._subtitle")," "),t.R7$(3),t.Dyx(s.cards))},dependencies:[r.h,r.D9],encapsulation:2})}}return e})(),K=(()=>{class e{constructor(){this.ONBOARDING_CUSTOMERS_LINK=g.c.DOME_CUSTOMER_REGISTER_LINK}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-landing-page-customers"]],standalone:!0,features:[t.aNF],decls:8,vars:2,consts:[[3,"url"]],template:function(i,s){1&i&&t.nrm(0,"app-landing-customers-hero",0)(1,"app-landing-customers-trusted")(2,"app-landingpage-customers-why-join")(3,"app-landingpage-customers-right-for-you")(4,"app-landing-customers-buy-options")(5,"app-landing-customers-procure-steps")(6,"app-landing-customers-faqs")(7,"app-landing-customers-finalCta",0),2&i&&(t.Y8G("url",s.ONBOARDING_CUSTOMERS_LINK),t.R7$(7),t.Y8G("url",s.ONBOARDING_CUSTOMERS_LINK))},dependencies:[P,j,q,O,b,N,w,C]})}}return e})()}}]); \ No newline at end of file diff --git a/portal/bae-frontend/365.37b75c6b9d41858c.js b/portal/bae-frontend/365.37b75c6b9d41858c.js new file mode 100644 index 00000000..41bdc3a2 --- /dev/null +++ b/portal/bae-frontend/365.37b75c6b9d41858c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[365],{4365:(Jt,A,c)=>{c.r(A),c.d(A,{TendersModule:()=>Xt});var _=c(177),T=c(1600),e=c(4438),b=c(9417),g=c(6354),S=c(7468),v=c(7673),x=c(9437),F=c(5558),$=c(8508),M=c(3077),P=c(7473),L=c(452),w=c(5312),k=c(3836),K=c(6964),Z=c(5586),ee=c(3636),m=c(467),G=c(1626);const N=[{code:"BL",label:"Baseline"},{code:"P",label:"Professional"},{code:"PP",label:"Professional+"}];function O(n){return!!(n.categories.length||n.countries.length||n.complianceLevels.length)}function q(n,a){return y.apply(this,arguments)}function y(){return(y=(0,m.A)(function*(n,a){if(!n.id)return[n.name];const t=yield a(n.id),i=Array.isArray(t)?t:[];return 0===i.length?[n.name]:(yield Promise.all(i.map(r=>q(r,a)))).flat()})).apply(this,arguments)}function I(){return(I=(0,m.A)(function*(n,a){const t=Array.isArray(n)?n:[],i=j(t,["DOME Categories"]),o=j(t,["Sector","Sectors","Addressable Sector","Addressable Sectors"]),r=j(t,["Framework","Frameworks","Integration Framework","Integration Frameworks","Integration Type","Integration Types"]),[s,d,u]=yield Promise.all([R(i,a),R(o,a),R(r,a)]);return{serviceCategories:s,addressableSectors:d,integrationFrameworks:u}})).apply(this,arguments)}function D(n){return Array.from(new Set(n.filter(Boolean)))}function j(n,a){const t=new Set(a.map(Q));return n.find(i=>t.has(Q(i?.name)))}function R(n,a){return B.apply(this,arguments)}function B(){return(B=(0,m.A)(function*(n,a){if(!n?.id)return[];try{const t=yield a(n.id);return Array.isArray(t)?t:[]}catch{return[]}})).apply(this,arguments)}function Q(n){return(n??"").normalize("NFKD").toLowerCase().replace(/[^a-z0-9]+/g,"")}new Intl.DisplayNames(["en"],{type:"region"});let de=(()=>{class n{constructor(){this.http=(0,e.WQX)(G.Qq),this.endpoint=`${w.c.BASE_URL}/party/organization`}getProviders(t={}){let i=new G.Nl;t.fields&&(i=i.set("fields",t.fields)),void 0!==t.offset&&(i=i.set("offset",t.offset.toString())),void 0!==t.limit&&(i=i.set("limit",t.limit.toString()));const o=`${this.endpoint}${i.toString()?"?"+i.toString():""}`;return this.http.get(o).pipe((0,g.T)(r=>Array.isArray(r)?r:[]),(0,x.W)(r=>(console.warn("Provider API failed:",r),(0,v.of)([]))))}getProviderById(t){const i=`${this.endpoint}/${t}`,o=i.startsWith("https://"),r=o?`https://api.allorigins.win/get?url=${encodeURIComponent(i)}`:i;return this.http.get(r).pipe((0,g.T)(s=>o?JSON.parse(s.contents):s),(0,x.W)(s=>{throw console.warn("Provider by ID API failed:",s),s}))}getProvidersForTender(){const t=this.endpoint,i=t.startsWith("https://"),o=i?`https://api.allorigins.win/get?url=${encodeURIComponent(t)}`:t;return this.http.get(o).pipe((0,g.T)(r=>{const s=i?JSON.parse(r.contents):r;return Array.isArray(s)?s:[]}),(0,x.W)(r=>(console.warn("Providers for tender API failed:",r),(0,v.of)([]))))}getProvidersForTenderNew(t){const i=this.buildBackendUrl(w.c.searchOrganizationsEndpoint);return this.http.post(i,t).pipe((0,g.T)(o=>Array.isArray(o)?o:o?.data&&Array.isArray(o.data)?o.data:[]))}getProviderCountryOptions(t="en"){return this.http.get(w.c.providerCountriesUrl||"https://raw.githubusercontent.com/DOME-Marketplace/eu-eea-countries/refs/heads/main/countries.json").pipe((0,g.T)(o=>function ne(n,a="en"){return Object.entries(n??{}).map(([t,i])=>({code:t.toUpperCase(),label:i?.[a]??i?.en??Object.values(i??{})[0]??t.toUpperCase()})).sort((t,i)=>t.label.localeCompare(i.label))}(o,t)),(0,x.W)(o=>(console.warn("Provider country list failed:",o),(0,v.of)([]))))}getFilterOptions(){const t=this.buildBackendUrl(w.c.searchOrganizationsEndpoint).replace(/\/searchOrganizations.*$/,""),i=this.http.get(`${t}/categories`).pipe((0,g.T)(s=>Array.isArray(s)?s:Array.isArray(s?.data)?s.data:[]),(0,x.W)(s=>(console.warn("Categories API failed:",s),(0,v.of)([])))),o=this.http.get(`${t}/countries`).pipe((0,g.T)(s=>Array.isArray(s)?s:Array.isArray(s?.data)?s.data:[]),(0,x.W)(s=>(console.warn("Countries API failed:",s),(0,v.of)([])))),r=this.http.get(`${t}/complianceLevels`).pipe((0,g.T)(s=>Array.isArray(s)?s:Array.isArray(s?.data)?s.data:[]),(0,x.W)(s=>(console.warn("ComplianceLevels API failed:",s),(0,v.of)([]))));return(0,S.p)({categories:i,countries:o,complianceLevels:r})}buildBackendUrl(t){return/^https?:\/\//i.test(t)?t:`${w.c.BASE_URL.replace(/\/+$/,"")}${t.startsWith("/")?t:`/${t}`}`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var le=c(7387),h=c(2087),l=c(8058);const Y=/^(\d{4})-(\d{2})-(\d{2})$/;function U(n){return`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}-${String(n.getDate()).padStart(2,"0")}`}function V(n){const a=Y.exec(n);if(!a)return null;const[,t,i,o]=a;return new Date(Number(t),Number(i)-1,Number(o))}function X(n,a){return!(!n||!a)&&n{class n{constructor(){this.value="",this.min="",this.placeholder="DD/MM/YYYY",this.disabled=!1,this.valueChange=new e.bkB,this.weekDayLabels=["Mo","Tu","We","Th","Fr","Sa","Su"],this.isCalendarOpen=!1,this.visibleMonth=new Date,this.todayIso=U(new Date)}ngOnChanges(t){if(t.value&&this.value){const i=V(this.value);i&&(this.visibleMonth=i)}}closeCalendar(){this.isCalendarOpen=!1}get selectedDateLabel(){return function ce(n,a="DD/MM/YYYY"){const t=Y.exec(n);if(!t)return a;const[,i,o,r]=t;return`${r}/${o}/${i}`}(this.value,this.placeholder)}get visibleMonthLabel(){return this.visibleMonth.toLocaleDateString("en-GB",{month:"long",year:"numeric"})}get calendarDays(){return function ue(n){const a=new Date(n.getFullYear(),n.getMonth(),1),t=(a.getDay()+6)%7,i=new Date(a);return i.setDate(a.getDate()-t),Array.from({length:42},(o,r)=>{const s=new Date(i);return s.setDate(i.getDate()+r),{iso:U(s),day:s.getDate(),inCurrentMonth:s.getMonth()===n.getMonth()}})}(this.visibleMonth)}get isTodayDisabled(){return X(this.todayIso,this.min)}toggleCalendar(){this.disabled||(this.visibleMonth=V(this.value)??new Date,this.isCalendarOpen=!this.isCalendarOpen)}showPreviousMonth(){this.visibleMonth=z(this.visibleMonth,-1)}showNextMonth(){this.visibleMonth=z(this.visibleMonth,1)}selectDay(t){this.isDisabled(t)||(this.valueChange.emit(t.iso),this.isCalendarOpen=!1)}selectToday(){this.isTodayDisabled||(this.valueChange.emit(this.todayIso),this.isCalendarOpen=!1)}clearDate(){this.valueChange.emit(""),this.isCalendarOpen=!1}isDisabled(t){return X(t.iso,this.min)}getDayClass(t){return t.iso===this.value?"bg-[#1f4fbf] text-white hover:bg-[#183f99]":this.isDisabled(t)?"text-[#CBD3DF]":t.iso===this.todayIso?"bg-[#EBF0F7] text-[#1f4fbf] hover:bg-[#DDE6F6]":t.inCurrentMonth?"text-[#0b1220] hover:bg-[#EBF0F7]":"text-[#9AA6B8] hover:bg-[#F7F9FD]"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-tender-date-field"]],hostBindings:function(i,o){1&i&&e.bIt("click",function(){return o.closeCalendar()},!1,e.EBC)},inputs:{value:"value",min:"min",placeholder:"placeholder",disabled:"disabled"},outputs:{valueChange:"valueChange"},standalone:!0,features:[e.OA$,e.aNF],decls:7,vars:4,consts:[[1,"relative",3,"click"],["type","button",1,"flex","h-12","w-full","items-center","justify-between","rounded-lg","border","border-[#EBECEE]","bg-white","px-4","text-left","text-[15px]","text-[#0b1220]","transition-colors","hover:border-[#1f4fbf]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]","disabled:cursor-not-allowed","disabled:bg-[#F7F9FD]","disabled:text-[#9AA6B8]",3,"click","disabled"],[3,"ngClass"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5","text-[#526179]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M8 7V3m8 4V3M4 11h16M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z"],["class","absolute left-0 top-full z-[80] mt-2 w-[320px] rounded-2xl border border-[#EBECEE] bg-white p-3 shadow-[0_12px_32px_rgba(11,18,32,0.16)]",4,"ngIf"],[1,"absolute","left-0","top-full","z-[80]","mt-2","w-[320px]","rounded-2xl","border","border-[#EBECEE]","bg-white","p-3","shadow-[0_12px_32px_rgba(11,18,32,0.16)]"],[1,"mb-3","flex","items-center","justify-between"],["type","button","aria-label","Previous month",1,"rounded-lg","p-2","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.2","d","M15 19l-7-7 7-7"],[1,"text-sm","font-semibold","text-[#0b1220]"],["type","button","aria-label","Next month",1,"rounded-lg","p-2","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.2","d","M9 5l7 7-7 7"],[1,"grid","grid-cols-7","gap-1","text-center","text-xs","font-semibold","text-[#526179]"],[4,"ngFor","ngForOf"],[1,"mt-2","grid","grid-cols-7","gap-1"],["type","button","class","flex h-9 items-center justify-center rounded-lg text-sm font-semibold transition-colors disabled:cursor-not-allowed",3,"disabled","ngClass","click",4,"ngFor","ngForOf"],[1,"mt-3","flex","items-center","justify-between","border-t","border-[#EBECEE]","pt-3"],["type","button",1,"rounded-lg","px-3","py-1.5","text-sm","font-semibold","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["type","button",1,"rounded-lg","px-3","py-1.5","text-sm","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]","disabled:cursor-not-allowed","disabled:text-[#9AA6B8]",3,"click","disabled"],["type","button",1,"flex","h-9","items-center","justify-center","rounded-lg","text-sm","font-semibold","transition-colors","disabled:cursor-not-allowed",3,"click","disabled","ngClass"]],template:function(i,o){1&i&&(e.j41(0,"div",0),e.bIt("click",function(s){return s.stopPropagation()}),e.j41(1,"button",1),e.bIt("click",function(){return o.toggleCalendar()}),e.j41(2,"span",2),e.EFF(3),e.k0s(),e.qSk(),e.j41(4,"svg",3),e.nrm(5,"path",4),e.k0s()(),e.DNE(6,he,19,4,"div",5),e.k0s()),2&i&&(e.R7$(),e.Y8G("disabled",o.disabled),e.R7$(),e.Y8G("ngClass",o.value?"font-semibold text-[#0b1220]":"text-[#9AA6B8]"),e.R7$(),e.SpI(" ",o.selectedDateLabel," "),e.R7$(3),e.Y8G("ngIf",o.isCalendarOpen))},dependencies:[_.MD,_.YU,_.Sq,_.bT],encapsulation:2})}}return n})();function me(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",12)(2,"label",13),e.EFF(3," Tender Title * "),e.k0s(),e.j41(4,"input",14),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.tenderTitle,o)||(r.tenderTitle=o),e.Njj(o)}),e.k0s(),e.j41(5,"p",15),e.EFF(6,"This will be the main description of your tender"),e.k0s()(),e.j41(7,"div",16)(8,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.closeTenderModal())}),e.EFF(9," Cancel "),e.k0s(),e.j41(10,"button",18),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.saveInitialTender())}),e.EFF(11),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(4),e.R50("ngModel",t.tenderTitle),e.R7$(6),e.Y8G("disabled",!t.tenderTitle.trim()||t.tenderLoading),e.R7$(),e.SpI(" ",t.tenderLoading?"Saving...":"Save"," ")}}function ve(n,a){if(1&n&&(e.j41(0,"p",35),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.step2ValidationError)}}function be(n,a){if(1&n&&(e.j41(0,"p",35),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.step2ValidationError)}}function xe(n,a){if(1&n&&(e.j41(0,"div",36)(1,"div",37)(2,"div",38),e.qSk(),e.j41(3,"svg",39),e.nrm(4,"path",40),e.k0s(),e.joV(),e.j41(5,"div",41)(6,"p",42),e.EFF(7,"Current PDF"),e.k0s(),e.j41(8,"p",43),e.EFF(9),e.k0s()()(),e.j41(10,"span",44),e.EFF(11,"Attached"),e.k0s()(),e.j41(12,"p",45),e.EFF(13,"Upload a new file to replace the existing attachment"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(9),e.JRh(t.existingAttachment.name)}}function Ce(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Fill in all fields to continue "),e.k0s())}function Ee(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",19)(2,"label",20),e.EFF(3,"Tender Title"),e.k0s(),e.j41(4,"p",21),e.EFF(5),e.k0s()(),e.j41(6,"div",22)(7,"p",23),e.EFF(8),e.k0s()(),e.j41(9,"div",12)(10,"label",24),e.EFF(11," Tender Start Date * "),e.k0s(),e.j41(12,"app-tender-date-field",25),e.mxI("valueChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.requestedCompletionDate,o)||(r.requestedCompletionDate=o),e.Njj(o)}),e.k0s(),e.j41(13,"p",26),e.EFF(14,"Format: DD/MM/YYYY"),e.k0s(),e.DNE(15,ve,2,1,"p",27),e.k0s(),e.j41(16,"div",12)(17,"label",28),e.EFF(18," Tender End Date * "),e.k0s(),e.j41(19,"app-tender-date-field",29),e.mxI("valueChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.expectedCompletionDate,o)||(r.expectedCompletionDate=o),e.Njj(o)}),e.k0s(),e.j41(20,"p",26),e.EFF(21,"Format: DD/MM/YYYY"),e.k0s(),e.DNE(22,be,2,1,"p",27),e.k0s(),e.j41(23,"div",12)(24,"label",30),e.EFF(25," PDF Attachment * "),e.k0s(),e.DNE(26,xe,14,1,"div",31),e.j41(27,"input",32),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onPdfFileSelected(o))}),e.k0s(),e.j41(28,"p",26),e.EFF(29),e.k0s()(),e.j41(30,"div",16)(31,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.closeTenderModal())}),e.EFF(32," Cancel "),e.k0s(),e.j41(33,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.proceedToProviderSelection())}),e.EFF(34),e.DNE(35,Ce,2,0,"span",34),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(5),e.JRh(t.tenderTitle),e.R7$(3),e.JRh(t.TENDER_STEP2_DESCRIPTION),e.R7$(4),e.R50("value",t.requestedCompletionDate),e.Y8G("min",t.minDate),e.R7$(3),e.Y8G("ngIf",t.requestedCompletionDate&&t.step2ValidationError&&t.step2ValidationError.includes("Start date")),e.R7$(4),e.R50("value",t.expectedCompletionDate),e.Y8G("min",t.minDate),e.R7$(3),e.Y8G("ngIf",t.expectedCompletionDate&&t.step2ValidationError&&(t.step2ValidationError.includes("End date")||t.step2ValidationError.includes("End Date must be after"))),e.R7$(4),e.Y8G("ngIf",t.existingAttachment),e.R7$(3),e.SpI(" ",t.existingAttachment?"Select a new file to upload or keep the current one":"Only PDF files allowed"," \u2014 Max size 10MB "),e.R7$(4),e.Y8G("disabled",!t.isStep2Complete()||t.tenderLoading)("title",t.step2ValidationError),e.R7$(),e.SpI(" ",t.tenderLoading?"Saving...":"Next: Select Providers"," "),e.R7$(),e.Y8G("ngIf",!t.isStep2Complete())}}function Fe(n,a){if(1&n&&(e.j41(0,"div",51)(1,"p",52),e.EFF(2,"PDF Attachment"),e.k0s(),e.j41(3,"div",62),e.qSk(),e.j41(4,"svg",63),e.nrm(5,"path",64)(6,"path",65),e.k0s(),e.joV(),e.j41(7,"p",66),e.EFF(8),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(8),e.JRh((null==t.existingAttachment?null:t.existingAttachment.name)||(null==t.selectedPdfFile?null:t.selectedPdfFile.name))}}function we(n,a){1&n&&(e.j41(0,"div",67),e.nrm(1,"div",68),e.k0s())}function Se(n,a){if(1&n&&(e.j41(0,"div",69)(1,"p",70),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(2),e.JRh(t.tenderError)}}function Te(n,a){if(1&n&&(e.j41(0,"p",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t.provider.externalReference||null==t.provider.externalReference[0]?null:t.provider.externalReference[0].name," ")}}function ke(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",100)(1,"div",101)(2,"p",42),e.EFF(3),e.k0s(),e.DNE(4,Te,2,1,"p",102),e.k0s(),e.j41(5,"button",103),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(5);return e.Njj(r.removeInvitedProvider(o.quoteId,o.provider.id))}),e.qSk(),e.j41(6,"svg",104),e.nrm(7,"path",9),e.k0s()()()}if(2&n){const t=a.$implicit;e.R7$(3),e.SpI(" ",t.provider.tradingName||"Unnamed Provider"," "),e.R7$(),e.Y8G("ngIf",null==t.provider.externalReference||null==t.provider.externalReference[0]?null:t.provider.externalReference[0].name)}}function ye(n,a){if(1&n&&(e.j41(0,"div",72)(1,"label",73),e.EFF(2),e.k0s(),e.j41(3,"div",98),e.DNE(4,ke,8,2,"div",99),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(2),e.SpI(" Already Invited Providers (",t.invitedProviders.length,") "),e.R7$(2),e.Y8G("ngForOf",t.invitedProviders)}}function Ie(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading categories..."),e.k0s())}function De(n,a){1&n&&(e.qSk(),e.j41(0,"svg",112),e.nrm(1,"path",113),e.k0s())}function je(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.selectServiceCategory(r,o))}),e.j41(1,"span",114),e.EFF(2),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",(null==i.selectedServiceCategory?null:i.selectedServiceCategory.id)===t.id?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(2),e.JRh(t.name)}}function Re(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No category options available"),e.k0s())}function Be(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",105),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Ie,2,0,"div",106),e.j41(2,"button",107),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.selectServiceCategory(null,o))}),e.j41(3,"span",108),e.EFF(4,"All Categories"),e.k0s(),e.DNE(5,De,2,0,"svg",109),e.k0s(),e.DNE(6,je,3,2,"button",110)(7,Re,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.catalogueOptionsLoading),e.R7$(),e.Y8G("ngClass",t.selectedServiceCategory?"hover:bg-[#EBF0F7]":"bg-[#DDE6F6]"),e.R7$(3),e.Y8G("ngIf",!t.selectedServiceCategory),e.R7$(),e.Y8G("ngForOf",t.serviceCategoryOptions),e.R7$(),e.Y8G("ngIf",!t.catalogueOptionsLoading&&0===t.serviceCategoryOptions.length)}}function Ae(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedComplianceLevels.length)}}function $e(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function Me(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",118),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleComplianceLevel(r.code,o))}),e.j41(1,"span",119),e.DNE(2,$e,2,0,"svg",120),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isComplianceSelected(t.code)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isComplianceSelected(t.code)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isComplianceSelected(t.code)),e.R7$(2),e.JRh(t.label)}}function Pe(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",116),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Me,5,4,"button",117),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngForOf",t.complianceLevelOptions)}}function Le(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedSectorIds.length)}}function Ge(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading sectors..."),e.k0s())}function Ne(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function Oe(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleAddressableSector(r,o))}),e.j41(1,"span",119),e.DNE(2,Ne,2,0,"svg",120),e.k0s(),e.j41(3,"span",78),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isSectorSelected(t)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isSectorSelected(t)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isSectorSelected(t)),e.R7$(2),e.JRh(t.name)}}function qe(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No sector options available"),e.k0s())}function Qe(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",122),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Ge,2,0,"div",106)(2,Oe,5,4,"button",110)(3,qe,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.catalogueOptionsLoading),e.R7$(),e.Y8G("ngForOf",t.addressableSectorOptions),e.R7$(),e.Y8G("ngIf",!t.catalogueOptionsLoading&&0===t.addressableSectorOptions.length)}}function Ye(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedCountryCodes.length)}}function Ue(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading countries..."),e.k0s())}function Ve(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function Xe(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleCountry(r.code,o))}),e.j41(1,"span",119),e.DNE(2,Ve,2,0,"svg",120),e.k0s(),e.j41(3,"span",78),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isCountrySelected(t.code)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isCountrySelected(t.code)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isCountrySelected(t.code)),e.R7$(2),e.JRh(t.label)}}function ze(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No country options available"),e.k0s())}function Je(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",123),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Ue,2,0,"div",106)(2,Xe,5,4,"button",110)(3,ze,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.countryOptionsLoading),e.R7$(),e.Y8G("ngForOf",t.countryOptions),e.R7$(),e.Y8G("ngIf",!t.countryOptionsLoading&&0===t.countryOptions.length)}}function We(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedFrameworkIds.length)}}function He(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading frameworks..."),e.k0s())}function Ke(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function Ze(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleIntegrationFramework(r,o))}),e.j41(1,"span",119),e.DNE(2,Ke,2,0,"svg",120),e.k0s(),e.j41(3,"span",78),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isFrameworkSelected(t)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isFrameworkSelected(t)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isFrameworkSelected(t)),e.R7$(2),e.JRh(t.name)}}function et(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No framework options available"),e.k0s())}function tt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",105),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,He,2,0,"div",106)(2,Ze,5,4,"button",110)(3,et,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.catalogueOptionsLoading),e.R7$(),e.Y8G("ngForOf",t.integrationFrameworkOptions),e.R7$(),e.Y8G("ngIf",!t.catalogueOptionsLoading&&0===t.integrationFrameworkOptions.length)}}function ot(n,a){if(1&n&&(e.j41(0,"div",124),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",t.providerSearchWarning," ")}}function it(n,a){if(1&n&&(e.j41(0,"p",130),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t.provider.externalReference||null==t.provider.externalReference[0]?null:t.provider.externalReference[0].name)}}function nt(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"input",126),e.bIt("change",function(){const o=e.eBV(t).ngIf,r=e.XpG(5);return e.Njj(r.toggleProviderSelection(o))}),e.k0s(),e.j41(2,"label",127)(3,"p",128),e.EFF(4),e.k0s(),e.DNE(5,it,2,1,"p",129),e.k0s(),e.bVm()}if(2&n){const t=a.ngIf,i=e.XpG().$implicit;e.R7$(),e.Y8G("id","provider-"+t)("checked",i.selected),e.R7$(),e.Y8G("for","provider-"+t),e.R7$(2),e.JRh(i.provider.tradingName||"Unnamed Provider"),e.R7$(),e.Y8G("ngIf",null==i.provider.externalReference||null==i.provider.externalReference[0]?null:i.provider.externalReference[0].name)}}function rt(n,a){if(1&n&&(e.j41(0,"div",125),e.DNE(1,nt,6,5,"ng-container",11),e.k0s()),2&n){const t=a.$implicit;e.Y8G("ngClass",t.selected?"border-l-[#1f4fbf] bg-[#EBF0F7]":"border-l-transparent hover:bg-[#F7F9FD]"),e.R7$(),e.Y8G("ngIf",t.provider.id)}}function st(n,a){1&n&&(e.j41(0,"p",133),e.EFF(1," No provider candidates match the selected filters. "),e.k0s())}function at(n,a){1&n&&(e.j41(0,"p",133),e.EFF(1,"No more providers available."),e.k0s())}function dt(n,a){if(1&n&&(e.j41(0,"div",131),e.DNE(1,st,2,0,"p",132)(2,at,2,0,"ng-template",null,0,e.C5r),e.k0s()),2&n){const t=e.sdS(3),i=e.XpG(4);e.R7$(),e.Y8G("ngIf",i.hasActiveFilters())("ngIfElse",t)}}function lt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div"),e.DNE(1,ye,5,2,"div",71),e.j41(2,"div",72)(3,"label",73),e.EFF(4," Select Providers to Invite "),e.k0s(),e.j41(5,"div",74)(6,"div",75)(7,"div",76)(8,"button",77),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("serviceCategory",o))}),e.j41(9,"span",78),e.EFF(10),e.k0s(),e.qSk(),e.j41(11,"svg",79),e.nrm(12,"path",80),e.k0s()(),e.DNE(13,Be,8,5,"div",81),e.k0s(),e.joV(),e.j41(14,"div",76)(15,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("compliance",o))}),e.EFF(16," Compliance Levels "),e.DNE(17,Ae,2,1,"span",83),e.qSk(),e.j41(18,"svg",84),e.nrm(19,"path",80),e.k0s()(),e.DNE(20,Pe,2,1,"div",85),e.k0s(),e.joV(),e.j41(21,"div",76)(22,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("sector",o))}),e.EFF(23," Addressable Sectors "),e.DNE(24,Le,2,1,"span",83),e.qSk(),e.j41(25,"svg",84),e.nrm(26,"path",80),e.k0s()(),e.DNE(27,Qe,4,3,"div",86),e.k0s(),e.joV(),e.j41(28,"div",76)(29,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("country",o))}),e.EFF(30," Country "),e.DNE(31,Ye,2,1,"span",83),e.qSk(),e.j41(32,"svg",84),e.nrm(33,"path",80),e.k0s()(),e.DNE(34,Je,4,3,"div",87),e.k0s(),e.joV(),e.j41(35,"div",76)(36,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("framework",o))}),e.EFF(37," Integration Framework "),e.DNE(38,We,2,1,"span",83),e.qSk(),e.j41(39,"svg",84),e.nrm(40,"path",80),e.k0s()(),e.DNE(41,tt,4,3,"div",81),e.k0s()(),e.joV(),e.j41(42,"div",88)(43,"p",89),e.EFF(44),e.k0s(),e.j41(45,"button",90),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.clearFilters())}),e.qSk(),e.j41(46,"svg",91),e.nrm(47,"path",92),e.k0s(),e.EFF(48," Clear all "),e.k0s()(),e.DNE(49,ot,2,1,"div",93),e.k0s(),e.joV(),e.j41(50,"div",94),e.DNE(51,rt,2,2,"div",95)(52,dt,4,2,"div",96),e.k0s(),e.j41(53,"p",97),e.EFF(54),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.invitedProviders.length>0),e.R7$(7),e.Y8G("ngClass",t.selectedServiceCategory?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.JRh((null==t.selectedServiceCategory?null:t.selectedServiceCategory.name)||"All Categories"),e.R7$(),e.Y8G("ngClass",t.showServiceCategoryDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showServiceCategoryDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedComplianceLevels.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedComplianceLevels.length>0),e.R7$(),e.Y8G("ngClass",t.showComplianceDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showComplianceDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedSectorIds.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedSectorIds.length>0),e.R7$(),e.Y8G("ngClass",t.showSectorDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showSectorDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedCountryCodes.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedCountryCodes.length>0),e.R7$(),e.Y8G("ngClass",t.showCountryDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showCountryDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedFrameworkIds.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedFrameworkIds.length>0),e.R7$(),e.Y8G("ngClass",t.showFrameworkDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showFrameworkDropdown),e.R7$(3),e.SpI("",t.availableProviders.length," provider candidate(s)"),e.R7$(5),e.Y8G("ngIf",t.providerSearchWarning),e.R7$(2),e.Y8G("ngForOf",t.availableProviders),e.R7$(),e.Y8G("ngIf",0===t.availableProviders.length),e.R7$(2),e.SpI(" ",t.selectedProviders.size," provider(s) selected ")}}function ct(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Please select at least one provider "),e.k0s())}function ut(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Please invite at least one provider first "),e.k0s())}function ft(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"section",47)(2,"div",48)(3,"p",49),e.EFF(4,"Tender Title"),e.k0s(),e.j41(5,"p",50),e.EFF(6),e.k0s()(),e.j41(7,"div",51)(8,"p",52),e.EFF(9,"Dates Set"),e.k0s(),e.j41(10,"div",53)(11,"div",41)(12,"span",54),e.EFF(13,"Start"),e.k0s(),e.j41(14,"span",55),e.EFF(15),e.k0s()(),e.j41(16,"div",41)(17,"span",54),e.EFF(18,"End"),e.k0s(),e.j41(19,"span",55),e.EFF(20),e.k0s()()()(),e.DNE(21,Fe,9,1,"div",56),e.k0s(),e.DNE(22,we,2,0,"div",57)(23,Se,3,1,"div",58)(24,lt,55,26,"div",11),e.j41(25,"div",59)(26,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.backToStep2())}),e.EFF(27," \u2190 Back "),e.k0s(),e.j41(28,"div",60)(29,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.closeTenderModal())}),e.EFF(30," Cancel "),e.k0s(),e.j41(31,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.saveProvidersList())}),e.EFF(32),e.DNE(33,ct,2,0,"span",34),e.k0s(),e.j41(34,"button",61),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.finalizeTender())}),e.EFF(35," Submit Tender "),e.DNE(36,ut,2,0,"span",34),e.k0s()()()()}if(2&n){const t=e.XpG(2);e.R7$(6),e.JRh(t.tenderTitle),e.R7$(9),e.JRh(t.formatDateForDisplay(t.requestedCompletionDate)),e.R7$(5),e.JRh(t.formatDateForDisplay(t.expectedCompletionDate)),e.R7$(),e.Y8G("ngIf",t.existingAttachment||t.pdfAttachmentSet),e.R7$(),e.Y8G("ngIf",t.providerSearchLoading),e.R7$(),e.Y8G("ngIf",t.tenderError),e.R7$(),e.Y8G("ngIf",!t.tenderError),e.R7$(7),e.Y8G("disabled",0===t.selectedProviders.size||t.providerInviteSaving||t.providerSearchLoading)("title",0===t.selectedProviders.size?"Please select at least one provider":""),e.R7$(),e.SpI(" ",t.providerInviteSaving?"Inviting...":"Save Providers List"," "),e.R7$(),e.Y8G("ngIf",0===t.selectedProviders.size),e.R7$(),e.Y8G("disabled",0===t.invitedProviders.length||t.tenderLoading||t.providerInviteSaving)("title",0===t.invitedProviders.length?"Please invite at least one provider first":""),e.R7$(2),e.Y8G("ngIf",0===t.invitedProviders.length)}}function pt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.closeTenderModal())}),e.j41(1,"div",4),e.bIt("click",function(o){return e.eBV(t),e.XpG().closeTenderFilterDropdowns(),e.Njj(o.stopPropagation())}),e.j41(2,"div",5)(3,"h3",6),e.EFF(4),e.k0s(),e.j41(5,"button",7),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.closeTenderModal())}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s()()(),e.joV(),e.j41(8,"div",10),e.DNE(9,me,12,3,"div",11)(10,Ee,36,14,"div",11)(11,ft,37,14,"div",11),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(4),e.JRh(t.editingTenderId?"Edit Tender":"Create New Tender"),e.R7$(5),e.Y8G("ngIf",1===t.tenderCreationStep),e.R7$(),e.Y8G("ngIf",2===t.tenderCreationStep),e.R7$(),e.Y8G("ngIf",3===t.tenderCreationStep)}}let ht=(()=>{class n{constructor(){this.isOpen=!1,this.customerId="",this.tenderToEdit=null,this.closeModal=new e.bkB,this.tenderCreated=new e.bkB,this.tenderUpdated=new e.bkB,this.quoteService=(0,e.WQX)($.K),this.notificationService=(0,e.WQX)(P.J),this.localStorage=(0,e.WQX)(M.s),this.providerService=(0,e.WQX)(de),this.api=(0,e.WQX)(le.F),this.accountService=(0,e.WQX)(L.O),this.router=(0,e.WQX)(T.Ix),this.tenderProviders=[],this.selectedProviders=new Set,this.invitedProviders=[],this.tenderLoading=!1,this.providerSearchLoading=!1,this.providerInviteSaving=!1,this.tenderError=null,this.providerSearchWarning=null,this.showGenericConfirm=!1,this.genericConfirmTitle="",this.genericConfirmMessage="",this.genericConfirmButtonText="Confirm",this.genericConfirmButtonClass="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.genericConfirmCallback=null,this.currentUserId=null,this.countryOptions=[],this.serviceCategoryOptions=[],this.addressableSectorOptions=[],this.integrationFrameworkOptions=[],this.countryOptionsLoading=!1,this.catalogueOptionsLoading=!1,this.complianceLevelOptions=N,this.showServiceCategoryDropdown=!1,this.showComplianceDropdown=!1,this.showSectorDropdown=!1,this.showCountryDropdown=!1,this.showFrameworkDropdown=!1,this.selectedServiceCategory=null,this.selectedServiceCategoryLeafNames=[],this.selectedComplianceLevels=[],this.selectedCountryCodes=[],this.selectedSectorIds=[],this.selectedSectorLeafNames=[],this.selectedFrameworkIds=[],this.selectedFrameworkLeafNames=[],this.leafNameCache=new Map,this.providerLoadSequence=0,this.serviceCategoryResolutionSequence=0,this.sectorResolutionSequence=0,this.frameworkResolutionSequence=0,this._safeInvitedList=[],this.orgFilters={categories:[],countries:[],complianceLevels:[]},this.availableProviders=[],this.tenderTitle="",this.expectedCompletionDate="",this.requestedCompletionDate="",this.expectedDateSet=!1,this.requestedDateSet=!1,this.selectedPdfFile=null,this.pdfAttachmentSet=!1,this.editingTenderId=null,this.existingAttachment=null,this.createdQuoteId=null,this.tenderCreationStep=1,this.TENDER_STEP2_DESCRIPTION=l.te}get minDate(){return(new Date).toISOString().split("T")[0]}ngOnInit(){if(this.customerId)this.currentUserId=this.customerId;else{const t=this.localStorage.getObject("login_items");if(t&&t.logged_as==t.id)this.currentUserId=t.partyId;else if(t&&t.logged_as){const i=t.organizations.find(o=>o.id==t.logged_as);this.currentUserId=i?.partyId}}}ngOnChanges(t){t.tenderToEdit&&this.tenderToEdit&&this.loadTenderForEdit(this.tenderToEdit),t.isOpen&&this.isOpen&&this.tenderToEdit&&this.loadTenderForEdit(this.tenderToEdit)}loadTenderForEdit(t){this.editingTenderId=t.id||null,this.createdQuoteId=t.id||null,this.tenderTitle=t.tenderNote||"",t.expectedFulfillmentStartDate&&(this.requestedCompletionDate=this.formatDateForInput(t.expectedFulfillmentStartDate),this.requestedDateSet=!0),t.effectiveQuoteCompletionDate&&(this.expectedCompletionDate=this.formatDateForInput(t.effectiveQuoteCompletionDate),this.expectedDateSet=!0),t.attachment&&(this.existingAttachment=t.attachment,this.pdfAttachmentSet=!0),this.tenderCreationStep=2}formatDateForInput(t){try{const i=new Date(t),o=i.getFullYear();return`${o}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`}catch(i){return console.error("Error formatting date:",i),""}}closeTenderModal(){this.isOpen=!1,this.tenderCreationStep=1,this.selectedProviders.clear(),this.invitedProviders=[],this.tenderProviders=[],this.tenderError=null,this.providerSearchLoading=!1,this.providerInviteSaving=!1,this.editingTenderId=null,this.resetTenderForm(),this.closeModal.emit()}showConfirmation(t,i,o,r="Confirm",s="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.genericConfirmTitle=t,this.genericConfirmMessage=i,this.genericConfirmButtonText=r,this.genericConfirmButtonClass=s,this.genericConfirmCallback=()=>{o(),this.showGenericConfirm=!1},this.showGenericConfirm=!0}resetTenderForm(){this.tenderTitle="",this.expectedCompletionDate="",this.requestedCompletionDate="",this.expectedDateSet=!1,this.requestedDateSet=!1,this.existingAttachment=null,this.createdQuoteId=null,this.selectedPdfFile=null,this.pdfAttachmentSet=!1,this.invitedProviders=[],this.providerSearchLoading=!1,this.providerInviteSaving=!1}saveInitialTender(){this.tenderTitle.trim()?this.currentUserId?(this.tenderLoading=!0,this.quoteService.createCoordinatorQuote(this.currentUserId,this.tenderTitle.trim()).subscribe({next:t=>{console.log("Coordinator tender created:",t),this.createdQuoteId=t.id||null,this.editingTenderId=t.id||null,this.notificationService.showSuccess("Tender created! Now set the completion dates."),this.tenderLoading=!1,this.tenderCreationStep=2,this.tenderUpdated.emit()},error:t=>{console.error("Error creating tender:",t),this.notificationService.showError("Failed to create tender: "+(t.message||"Unknown error")),this.tenderLoading=!1}})):this.notificationService.showError("User not logged in"):this.notificationService.showError("Tender title is required")}formatDateForAPI(t){if(!t)return"";const[i,o,r]=t.split("-");return`${r}-${o}-${i}`}setExpectedDate(){if(!this.expectedCompletionDate||!this.createdQuoteId)return void this.notificationService.showError("Please select a date");this.tenderLoading=!0;const t=this.formatDateForAPI(this.expectedCompletionDate);this.quoteService.updateQuoteDate(this.createdQuoteId,t,"effective").subscribe({next:i=>{this.expectedDateSet=!0,this.notificationService.showSuccess("Effective completion date set successfully!"),this.tenderLoading=!1,this.tenderUpdated.emit()},error:i=>{console.error("Error setting effective date:",i),this.notificationService.showError("Failed to set effective date: "+(i.message||"Unknown error")),this.tenderLoading=!1}})}setRequestedDate(){if(!this.requestedCompletionDate||!this.createdQuoteId)return void this.notificationService.showError("Please select a date");this.tenderLoading=!0;const t=this.formatDateForAPI(this.requestedCompletionDate);this.quoteService.updateQuoteDate(this.createdQuoteId,t,"expectedFulfillment").subscribe({next:i=>{this.requestedDateSet=!0,this.notificationService.showSuccess("Expected fulfillment start date set successfully!"),this.tenderLoading=!1,this.tenderUpdated.emit()},error:i=>{console.error("Error setting expected fulfillment date:",i),this.notificationService.showError("Failed to set expected fulfillment date: "+(i.message||"Unknown error")),this.tenderLoading=!1}})}onPdfFileSelected(t){const i=t.target,o=i.files?.[0];if(o){if("application/pdf"!==o.type)return this.notificationService.showError("Please select a valid PDF file"),this.selectedPdfFile=null,void(i.value="");this.selectedPdfFile=o,console.log("PDF file selected:",o.name)}else this.selectedPdfFile=null}setPdfAttachment(){this.selectedPdfFile&&this.createdQuoteId?(this.tenderLoading=!0,this.quoteService.addAttachmentToQuote(this.createdQuoteId,this.selectedPdfFile,"").subscribe({next:t=>{this.setAttachmentFromQuoteOrFile(t,this.selectedPdfFile),this.selectedPdfFile=null;const i=document.getElementById("pdfFile");i&&(i.value=""),this.notificationService.showSuccess("PDF attachment uploaded successfully!"),this.tenderLoading=!1},error:t=>{console.error("Error uploading PDF:",t),this.notificationService.showError("Failed to upload PDF: "+(t.message||"Unknown error")),this.tenderLoading=!1}})):this.notificationService.showError("Please select a PDF file")}setAttachmentFromQuoteOrFile(t,i){const o=t?.quoteItem?.flatMap(r=>r?.attachment??[])?.find(r=>r);o?this.existingAttachment={name:o.name||i?.name||"attachment.pdf",mimeType:o.mimeType||i?.type||"application/pdf",content:o.content||"",size:o.size?.amount??i?.size}:i&&(this.existingAttachment={name:i.name,mimeType:i.type||"application/pdf",content:"",size:i.size}),this.pdfAttachmentSet=!!this.existingAttachment}get step2ValidationError(){const t=(new Date).getFullYear(),i=t+10;if(this.requestedCompletionDate){const o=new Date(this.requestedCompletionDate).getFullYear();if(oi)return`Start date year must be between ${t} and ${i}.`}if(this.expectedCompletionDate){const o=new Date(this.expectedCompletionDate).getFullYear();if(oi)return`End date year must be between ${t} and ${i}.`}return this.requestedCompletionDate&&this.expectedCompletionDate&&new Date(this.expectedCompletionDate)<=new Date(this.requestedCompletionDate)?"Tender End Date must be after the Tender Start Date.":this.requestedCompletionDate&&this.expectedCompletionDate?this.selectedPdfFile||this.existingAttachment?"":"A PDF attachment is required.":"Both start and end dates are required."}isStep2Complete(){return""===this.step2ValidationError}proceedToProviderSelection(){if(!this.isStep2Complete()||!this.createdQuoteId)return;this.tenderLoading=!0;const t=this.selectedPdfFile,i=this.formatDateForAPI(this.requestedCompletionDate),o=this.formatDateForAPI(this.expectedCompletionDate);this.quoteService.updateQuoteDate(this.createdQuoteId,i,"expectedFulfillment").pipe((0,F.n)(()=>this.quoteService.updateQuoteDate(this.createdQuoteId,o,"effective")),(0,F.n)(()=>t?this.quoteService.addAttachmentToQuote(this.createdQuoteId,t,""):(0,v.of)(null))).subscribe({next:r=>{t&&(this.setAttachmentFromQuoteOrFile(r,t),this.selectedPdfFile=null),this.tenderLoading=!1,this.notificationService.showSuccess("Tender details saved successfully!"),this.tenderCreationStep=3,this.tenderUpdated.emit(),this.resetTenderFilters(),this.loadFilterOptions(),this.loadTenderProviders()},error:r=>{this.tenderLoading=!1,this.notificationService.showError("Failed to save tender details. Please try again."),console.error("Error saving tender step 2:",r)}})}loadTenderProviders(){const t=++this.providerLoadSequence;this.providerSearchLoading=!0,this.tenderError=null,this.providerSearchWarning=null,this.providerService.getProvidersForTenderNew(this.orgFilters).subscribe({next:i=>{this.isCurrentProviderLoad(t)&&(this.tenderProviders=i??[],console.log("Search loaded providers:",this.tenderProviders.length),this.updateAvailableProviders(),3===this.tenderCreationStep?this.loadInvitedProviders():this.providerSearchLoading=!1)},error:i=>{if(this.isCurrentProviderLoad(t)){if(!function se(n){return!O(n)}(this.orgFilters))return console.warn("Filtered search endpoint returned an error:",i),this.providerSearchWarning="Unable to apply the selected filters. Provider candidates were cleared to avoid showing unfiltered results.",this.tenderProviders=[],this.providerSearchLoading=!1,void this.updateAvailableProviders();console.warn("Search endpoint returned an error, falling back to full provider list:",i),this.providerService.getProvidersForTender().subscribe({next:o=>{this.isCurrentProviderLoad(t)&&(this.tenderProviders=o,console.log("Fallback loaded providers:",o.length),this.updateAvailableProviders(),3===this.tenderCreationStep?this.loadInvitedProviders():this.providerSearchLoading=!1)},error:o=>{this.isCurrentProviderLoad(t)&&(this.tenderError="Failed to load providers: "+(o.message||"Unknown error"),this.providerSearchLoading=!1,console.error("Fallback endpoint also failed:",o))}})}}})}isCurrentProviderLoad(t){return t===this.providerLoadSequence}emitFilters(){this.orgFilters=function re(n={}){return{categories:D([...n.serviceCategoryLeafNames??[],...n.addressableSectorLeafNames??[],...n.integrationFrameworkLeafNames??[]]),countries:D(n.countryCodes??[]),complianceLevels:D(n.complianceLevels??[])}}({serviceCategoryLeafNames:this.selectedServiceCategoryLeafNames,addressableSectorLeafNames:this.selectedSectorLeafNames,integrationFrameworkLeafNames:this.selectedFrameworkLeafNames,countryCodes:this.selectedCountryCodes,complianceLevels:this.selectedComplianceLevels}),this.loadTenderProviders()}hasActiveFilters(){return O(this.orgFilters)}clearFilters(){this.resetTenderFilters(),this.emitFilters()}resetTenderFilters(){this.serviceCategoryResolutionSequence++,this.sectorResolutionSequence++,this.frameworkResolutionSequence++,this.orgFilters={categories:[],countries:[],complianceLevels:[]},this.selectedServiceCategory=null,this.selectedServiceCategoryLeafNames=[],this.selectedComplianceLevels=[],this.selectedCountryCodes=[],this.selectedSectorIds=[],this.selectedSectorLeafNames=[],this.selectedFrameworkIds=[],this.selectedFrameworkLeafNames=[],this.closeTenderFilterDropdowns()}selectServiceCategory(t,i){var o=this;return(0,m.A)(function*(){i?.stopPropagation();const r=++o.serviceCategoryResolutionSequence;o.selectedServiceCategory=t;const s=t?yield o.resolveLeafNames(t):[];r===o.serviceCategoryResolutionSequence&&(o.selectedServiceCategoryLeafNames=s,o.showServiceCategoryDropdown=!1,o.emitFilters())})()}toggleComplianceLevel(t,i){i.stopPropagation(),this.selectedComplianceLevels=this.toggleValue(this.selectedComplianceLevels,t),this.emitFilters()}toggleCountry(t,i){i.stopPropagation(),this.selectedCountryCodes=this.toggleValue(this.selectedCountryCodes,t),this.emitFilters()}toggleAddressableSector(t,i){var o=this;return(0,m.A)(function*(){i.stopPropagation();const r=++o.sectorResolutionSequence;o.selectedSectorIds=o.toggleValue(o.selectedSectorIds,t.id??t.name);const d=yield o.resolveSelectedLeafNames(o.addressableSectorOptions,o.selectedSectorIds);r===o.sectorResolutionSequence&&(o.selectedSectorLeafNames=d,o.emitFilters())})()}toggleIntegrationFramework(t,i){var o=this;return(0,m.A)(function*(){i.stopPropagation();const r=++o.frameworkResolutionSequence;o.selectedFrameworkIds=o.toggleValue(o.selectedFrameworkIds,t.id??t.name);const d=yield o.resolveSelectedLeafNames(o.integrationFrameworkOptions,o.selectedFrameworkIds);r===o.frameworkResolutionSequence&&(o.selectedFrameworkLeafNames=d,o.emitFilters())})()}isComplianceSelected(t){return this.selectedComplianceLevels.includes(t)}isCountrySelected(t){return this.selectedCountryCodes.includes(t)}isSectorSelected(t){return this.selectedSectorIds.includes(t.id??t.name)}isFrameworkSelected(t){return this.selectedFrameworkIds.includes(t.id??t.name)}toggleTenderFilterDropdown(t,i){i.stopPropagation(),this.showServiceCategoryDropdown="serviceCategory"===t&&!this.showServiceCategoryDropdown,this.showComplianceDropdown="compliance"===t&&!this.showComplianceDropdown,this.showSectorDropdown="sector"===t&&!this.showSectorDropdown,this.showCountryDropdown="country"===t&&!this.showCountryDropdown,this.showFrameworkDropdown="framework"===t&&!this.showFrameworkDropdown}closeTenderFilterDropdowns(){this.showServiceCategoryDropdown=!1,this.showComplianceDropdown=!1,this.showSectorDropdown=!1,this.showCountryDropdown=!1,this.showFrameworkDropdown=!1}toggleValue(t,i){return t.includes(i)?t.filter(o=>o!==i):[...t,i]}resolveSelectedLeafNames(t,i){var o=this;return(0,m.A)(function*(){const r=t.filter(d=>i.includes(d.id??d.name)),s=yield Promise.all(r.map(d=>o.resolveLeafNames(d)));return Array.from(new Set(s.flat()))})()}resolveLeafNames(t){var i=this;return(0,m.A)(function*(){const o=t.id??t.name,r=i.leafNameCache.get(o);if(r)return r;const s=yield q(t,function(){var d=(0,m.A)(function*(u){const f=yield i.api.getCategoriesByParentId(u).catch(()=>[]);return Array.isArray(f)?f:[]});return function(u){return d.apply(this,arguments)}}());return i.leafNameCache.set(o,s),s})()}toggleProviderSelection(t){const i=this._safeInvitedList.findIndex(o=>o?.id===t);if(i>=0)this._safeInvitedList.splice(i,1);else{const o=this.tenderProviders.find(r=>r.id===t);o&&this._safeInvitedList.push(o)}this.rebuildSelectionAndAvailable()}rebuildSelectionAndAvailable(){this.selectedProviders=new Set(this._safeInvitedList.map(i=>i?.id).filter(i=>!!i));const t=new Set(this.invitedProviders.map(i=>i?.provider?.id).filter(i=>!!i));return this.availableProviders=function ge({tenderProviders:n,invitedProviderIds:a,selectedProviderIds:t}){return n.filter(i=>!!i.id&&!a.has(i.id)).map(i=>({provider:{...i},selected:t.has(i.id)}))}({tenderProviders:this.tenderProviders,invitedProviderIds:t,selectedProviderIds:this.selectedProviders}),this.availableProviders}loadInvitedProviders(){var i,t=this;if(!this.createdQuoteId||!this.currentUserId)return console.log("No coordinator quote ID or user ID, skipping invited providers load"),void(this.providerSearchLoading=!1);console.log("Loading invited providers for externalId:",this.createdQuoteId),this.providerSearchLoading=!0,this.quoteService.getTenderingQuotesByUser(this.currentUserId,h.XZ.BUYER).subscribe({next:(i=(0,m.A)(function*(o){console.log("Received tenders:",o);const r=o.filter(d=>d.external_id===t.createdQuoteId&&!!d.id),s=yield Promise.all(r.map(function(){var d=(0,m.A)(function*(u){const f=u.selectedProviders?.[0],p=f?t.tenderProviders.find(E=>E.id===f):void 0;if(p)return{provider:p,quoteId:u.id};let C=f||"Unknown Provider";if(f)try{const E=yield t.accountService.getOrgInfo(f);C=E?.tradingName||E?.name||f}catch{}return{provider:{id:f,tradingName:C},quoteId:u.id}});return function(u){return d.apply(this,arguments)}}()));t.invitedProviders=s,t.rebuildSelectionAndAvailable(),console.log("Total invited providers loaded:",t.invitedProviders.length),t.providerSearchLoading=!1}),function(r){return i.apply(this,arguments)}),error:i=>{console.error("Error loading invited providers:",i),this.providerSearchLoading=!1}})}backToStep2(){this.tenderCreationStep=2}formatDateForDisplay(t){if(!t)return"";const i=t.split("-");if(3===i.length){const[o,r,s]=i;return`${s}/${r}/${o}`}return t}updateAvailableProviders(){this.availableProviders=this.getAvailableProviders()}getAvailableProviders(){return this.rebuildSelectionAndAvailable()}saveProvidersList(){if(0===this.selectedProviders.size)return void this.notificationService.showError("Please select at least one provider");if(!this.createdQuoteId||!this.currentUserId)return void this.notificationService.showError("Coordinator quote not found. Please start over.");this.providerInviteSaving=!0;const t=Array.from(this.selectedProviders),i=this.tenderTitle;console.log("Creating tendering quotes for providers:",t);const o=t.map(r=>{const s=this._safeInvitedList.find(d=>d.id===r);return this.quoteService.createTenderingQuote(this.currentUserId,r,this.createdQuoteId,i).toPromise().then(d=>{if(!d||!d.id||!s)throw new Error("Failed to create quote for provider");return{provider:s,quoteId:d.id}})});Promise.all(o).then(r=>{console.log("Tendering quotes created:",r),this.invitedProviders.push(...r),this.selectedProviders.clear(),this._safeInvitedList=[],this.rebuildSelectionAndAvailable(),this.notificationService.showSuccess(`${t.length} provider(s) has been saved for invite`),this.tenderUpdated.emit(),this.providerInviteSaving=!1}).catch(r=>{console.error("Error creating tendering quotes:",r),this.notificationService.showError("Failed to invite providers: "+(r.message||"Unknown error")),this.providerInviteSaving=!1})}removeInvitedProvider(t,i){t&&this.showConfirmation("Remove Provider","Are you sure you want to remove this provider invitation? This will delete the quote.",()=>{this.providerInviteSaving=!0,this.quoteService.deleteQuote(t).subscribe({next:()=>{console.log("Quote deleted for provider:",i),this.completeInvitedProviderRemoval(t,i),this.notificationService.showSuccess("Provider invitation removed successfully"),this.providerInviteSaving=!1},error:o=>{this.isKnownDeleteQuoteFalsePositive(o)?(console.warn("[WORKAROUND] deleteQuote returned a false-positive error for quoteId:",t,"\u2014 removing from UI anyway."),this.completeInvitedProviderRemoval(t,i),this.notificationService.showSuccess("Provider invitation removed successfully")):(console.error("Error deleting quote:",o),this.notificationService.showError("Failed to remove provider invitation: "+(o.message||"Unknown error"))),this.providerInviteSaving=!1}})},"Remove","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")}completeInvitedProviderRemoval(t,i){const o=i??this.invitedProviders.find(r=>r.quoteId===t)?.provider?.id;this.invitedProviders=this.invitedProviders.filter(r=>r.quoteId!==t),o&&(this.selectedProviders.delete(o),this._safeInvitedList=this._safeInvitedList.filter(r=>r.id!==o)),this.rebuildSelectionAndAvailable()}isKnownDeleteQuoteFalsePositive(t){return 404===t?.status||504===t?.status||500===t?.status&&"Service unreachable"===t?.error?.error}finalizeTender(){0!==this.invitedProviders.length?this.createdQuoteId?this.showConfirmation("Finalize Tender","Are you sure you want to finalize the tender? This will notify all invited providers.",()=>this.executeFinalizeTender(),"Finalize","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50"):this.notificationService.showError("Coordinator quote not found"):this.notificationService.showError("Please invite at least one provider first")}executeFinalizeTender(){this.tenderLoading=!0,this.quoteService.getQuoteById(this.createdQuoteId).pipe((0,F.n)(t=>{console.log("Coordinator quote retrieved:",t);const i=this.formatDateForAPI(this.expectedCompletionDate),o=this.formatDateForAPI(this.requestedCompletionDate);console.log(`Copying dates to ${this.invitedProviders.length} provider quotes`);const r=this.invitedProviders.flatMap(s=>{const d=s.quoteId;return[this.quoteService.updateQuoteDate(d,i,"expected"),this.quoteService.updateQuoteDate(d,o,"requested")]});return 0===r.length?(0,v.of)([]):(0,S.p)(r)}),(0,F.n)(t=>(console.log(`Successfully updated dates for ${t.length/2} provider quotes`),this.quoteService.updateQuoteStatus(this.createdQuoteId,"inProgress")))).subscribe({next:t=>{console.log("Coordinator quote status updated to inProgress:",t),this.notificationService.showSuccess("Dates copied to all provider quotes and notifications sent to providers"),this.tenderLoading=!1,this.closeTenderModal(),this.tenderCreated.emit(t)},error:t=>{console.error("Error finalizing tender:",t),this.notificationService.showError("Failed to finalize tender: "+(t.message||"Unknown error")),this.tenderLoading=!1}})}loadFilterOptions(){this.countryOptionsLoading=!0,this.providerService.getProviderCountryOptions().subscribe({next:t=>{this.countryOptions=t,this.countryOptionsLoading=!1},error:t=>{console.warn("Failed to load provider countries",t),this.countryOptions=[],this.countryOptionsLoading=!1}}),this.loadCatalogueFacetOptions()}loadCatalogueFacetOptions(){var t=this;return(0,m.A)(function*(){t.catalogueOptionsLoading=!0;try{const i=yield t.api.getDefaultCategories(),o=yield function ae(n,a){return I.apply(this,arguments)}(Array.isArray(i)?i:[],r=>t.api.getCategoriesByParentId(r));t.serviceCategoryOptions=o.serviceCategories,t.addressableSectorOptions=o.addressableSectors,t.integrationFrameworkOptions=o.integrationFrameworks}catch(i){console.warn("Tender catalogue filters failed:",i),t.serviceCategoryOptions=[],t.addressableSectorOptions=[],t.integrationFrameworkOptions=[]}finally{t.catalogueOptionsLoading=!1}})()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-create-tender-modal"]],inputs:{isOpen:"isOpen",customerId:"customerId",tenderToEdit:"tenderToEdit"},outputs:{closeModal:"closeModal",tenderCreated:"tenderCreated",tenderUpdated:"tenderUpdated"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:6,consts:[["noMoreProviders",""],["class","fixed inset-0 z-50 flex h-full w-full items-start justify-center overflow-hidden bg-[#0b1220]/45 px-4 py-6 font-[Blinker]",3,"click",4,"ngIf"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],[1,"fixed","inset-0","z-50","flex","h-full","w-full","items-start","justify-center","overflow-hidden","bg-[#0b1220]/45","px-4","py-6","font-[Blinker]",3,"click"],[1,"relative","flex","max-h-[calc(100vh-3rem)]","w-full","max-w-[1280px]","flex-col","overflow-hidden","rounded-2xl","border","border-[#EBECEE]","bg-[#F7F9FD]","shadow-[0_20px_50px_rgba(11,18,32,0.24)]",3,"click"],[1,"flex","shrink-0","items-center","justify-between","border-b","border-[#EBECEE]","bg-[#F7F9FD]","px-6","py-5"],[1,"text-[24px]","font-bold","text-[#0b1220]"],["aria-label","Close tender modal",1,"rounded-lg","p-2","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["data-testid","tender-modal-body",1,"min-h-0","flex-1","overflow-y-auto","overflow-x-hidden","px-6","py-5"],[4,"ngIf"],[1,"mb-6"],["for","tenderTitle",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["type","text","id","tenderTitle","placeholder","Enter tender title or description...","autofocus","",1,"h-12","w-full","rounded-lg","border","border-[#EBECEE]","bg-white","px-4","text-[15px]","text-[#0b1220]","outline-none","transition-colors","placeholder:text-[#9AA6B8]","hover:border-[#1f4fbf]","focus:border-[#1f4fbf]","focus:ring-2","focus:ring-[#B6CAEC]",3,"ngModelChange","ngModel"],[1,"mt-2","text-sm","text-[#526179]"],[1,"mt-6","flex","justify-end","gap-3","border-t","border-[#EBECEE]","pt-4"],[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,"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,"mb-4","rounded-2xl","border","border-[#EBECEE]","bg-white","p-4","shadow-sm"],[1,"mb-2","block","text-sm","font-semibold","text-[#526179]"],[1,"break-words","text-[16px]","font-semibold","text-[#0b1220]","overflow-wrap-anywhere"],[1,"mb-6","rounded-2xl","border","border-[#F2D28A]","bg-[#FFF8E6]","p-4"],[1,"text-sm","font-semibold","text-[#7A4D00]"],["for","requestedDate",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["id","requestedDate",3,"valueChange","value","min"],[1,"mt-1","text-xs","text-[#526179]"],["class","mt-1 text-xs text-[#B42318]",4,"ngIf"],["for","expectedDate",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["id","expectedDate",3,"valueChange","value","min"],["for","pdfFile",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["class","mb-3 rounded-2xl border border-[#B6CAEC] bg-[#EBF0F7] p-4",4,"ngIf"],["type","file","id","pdfFile","accept",".pdf",1,"block","w-full","cursor-pointer","rounded-lg","border","border-[#EBECEE]","bg-white","text-sm","text-[#526179]","transition-colors","file:mr-4","file:h-12","file:cursor-pointer","file:border-0","file:bg-[#EBF0F7]","file:px-4","file:text-sm","file:font-semibold","file:text-[#1f4fbf]","hover:border-[#1f4fbf]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]",3,"change"],[1,"group","relative","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","title"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1 bg-gray-900 text-white text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",4,"ngIf"],[1,"mt-1","text-xs","text-[#B42318]"],[1,"mb-3","rounded-2xl","border","border-[#B6CAEC]","bg-[#EBF0F7]","p-4"],[1,"flex","items-center","justify-between"],[1,"flex","min-w-0","items-center","gap-3"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5","shrink-0","text-[#1f4fbf]"],["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,"min-w-0"],[1,"text-sm","font-semibold","text-[#0b1220]"],[1,"truncate","text-sm","text-[#526179]"],[1,"rounded-full","bg-white","px-2.5","py-1","text-xs","font-semibold","text-[#1f4fbf]"],[1,"mt-2","text-xs","text-[#526179]"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","px-3","py-1","bg-gray-900","text-white","text-xs","rounded","whitespace-nowrap","opacity-0","group-hover:opacity-100","transition-opacity","pointer-events-none"],["aria-label","Tender setup summary",1,"mb-5","grid","gap-3","xl:grid-cols-[minmax(0,1.35fr)_minmax(0,1fr)_minmax(0,1fr)]"],["data-summary-item","",1,"rounded-xl","border","border-[#EBECEE]","bg-white","px-4","py-3","shadow-sm"],[1,"text-xs","font-semibold","uppercase","tracking-[0.04em]","text-[#526179]"],[1,"mt-1","break-words","text-[15px]","font-semibold","leading-5","text-[#0b1220]","overflow-wrap-anywhere"],["data-summary-item","",1,"rounded-xl","border","border-[#CBEADB]","bg-[#F0FBF6]","px-4","py-3"],[1,"text-xs","font-semibold","uppercase","tracking-[0.04em]","text-[#006B4A]"],[1,"mt-2","grid","grid-cols-2","gap-x-4","gap-y-1","text-sm"],[1,"block","text-xs","text-[#526179]"],[1,"block","truncate","font-semibold","text-[#0b1220]"],["data-summary-item","","class","rounded-xl border border-[#CBEADB] bg-[#F0FBF6] px-4 py-3",4,"ngIf"],["class","flex justify-center py-8",4,"ngIf"],["class","mb-4 rounded-2xl border border-[#F4C7C7] bg-[#FFF1F1] p-4",4,"ngIf"],["data-testid","tender-modal-provider-footer",1,"sticky","bottom-0","mt-5","flex","flex-wrap","justify-between","gap-3","border-t","border-[#EBECEE]","bg-[#F7F9FD]/95","py-4","backdrop-blur"],[1,"flex","flex-wrap","justify-end","gap-3"],[1,"group","relative","inline-flex","h-10","items-center","rounded-lg","bg-[#006B4A]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#00523A]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled","title"],[1,"mt-2","flex","min-w-0","items-center","gap-2"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4","shrink-0","text-[#006B4A]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M7 3h7l5 5v13H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M14 3v5h5"],[1,"min-w-0","truncate","text-sm","font-semibold","text-[#0b1220]"],[1,"flex","justify-center","py-8"],[1,"h-8","w-8","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[1,"mb-4","rounded-2xl","border","border-[#F4C7C7]","bg-[#FFF1F1]","p-4"],[1,"text-sm","font-semibold","text-[#B42318]"],["class","mb-5",4,"ngIf"],[1,"mb-5"],[1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],[1,"rounded-xl","border","border-[#EBECEE]","bg-white","p-3","shadow-sm"],[1,"flex","flex-wrap","items-center","gap-2"],[1,"relative","shrink-0"],["type","button",1,"flex","h-10","max-w-[240px]","items-center","gap-2","rounded-lg","border","pl-4","pr-3","text-[15px]","transition-colors",3,"click","ngClass"],[1,"truncate"],["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","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"],["class","absolute left-0 top-full z-[70] mt-2 max-h-[360px] w-[280px] overflow-y-auto rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],["type","button",1,"flex","h-10","items-center","gap-2","rounded-lg","border","pl-4","pr-3","text-[15px]","transition-colors",3,"click","ngClass"],["class","inline-flex h-[22px] min-w-[22px] items-center justify-center rounded-full bg-[#B6CAEC] px-1.5 text-[12px] font-semibold text-[#1f4fbf]",4,"ngIf"],["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"],["class","absolute left-0 top-full z-[70] mt-2 w-[240px] rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],["class","absolute left-0 top-full z-[70] mt-2 max-h-[360px] w-[260px] overflow-y-auto rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],["class","absolute left-0 top-full z-[70] mt-2 max-h-[360px] w-[240px] overflow-y-auto rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],[1,"mt-3","flex","flex-wrap","items-center","justify-between","gap-2","border-t","border-[#EBECEE]","pt-3"],[1,"text-sm","text-[#526179]"],["type","button",1,"inline-flex","items-center","gap-2","rounded-lg","px-3","py-2","text-sm","font-medium","text-[#1f4fbf]","hover:bg-[#EBF0F7]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.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.7M21.015 4.356v4.992m0 0h-4.992m4.993 0-3.181-3.183a8.25 8.25 0 0 0-13.803 3.7"],["class","mt-3 rounded-xl border border-[#F2D28A] bg-[#FFF8E6] px-3 py-2 text-sm font-semibold text-[#7A4D00]",4,"ngIf"],[1,"mt-4","max-h-[30vh]","min-h-[156px]","overflow-y-auto","rounded-xl","border","border-[#EBECEE]","bg-white"],["data-testid","tender-provider-candidate","class","flex items-center gap-3 border-b border-l-4 border-b-[#EBECEE] px-4 py-3 transition-colors last:border-b-0",3,"ngClass",4,"ngFor","ngForOf"],["class","p-8 text-center text-[#526179]",4,"ngIf"],[1,"mt-2","text-sm","font-semibold","text-[#526179]"],[1,"max-h-40","overflow-y-auto","rounded-xl","border","border-[#CBEADB]","bg-[#F0FBF6]"],["class","flex items-center justify-between border-b border-[#CBEADB] px-4 py-3 transition-colors last:border-b-0 hover:bg-white",4,"ngFor","ngForOf"],[1,"flex","items-center","justify-between","border-b","border-[#CBEADB]","px-4","py-3","transition-colors","last:border-b-0","hover:bg-white"],[1,"flex-1"],["class","mt-1 text-xs text-[#526179]",4,"ngIf"],["title","Remove invitation",1,"ml-4","rounded-lg","p-2","text-[#B42318]","transition-colors","hover:bg-[#FFF1F1]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-5","h-5"],[1,"absolute","left-0","top-full","z-[70]","mt-2","max-h-[360px]","w-[280px]","overflow-y-auto","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],["class","px-3 py-2.5 text-[14px] text-[#526179]",4,"ngIf"],["type","button",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-left","text-[14px]","text-[#0b1220]","transition-colors",3,"click","ngClass"],[1,"min-w-0","flex-1"],["class","h-4 w-4 text-[#1f4fbf]","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",4,"ngIf"],["type","button","class","flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-[14px] text-[#0b1220] transition-colors",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"px-3","py-2.5","text-[14px]","text-[#526179]"],["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-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],[1,"min-w-0","flex-1","truncate"],[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,"absolute","left-0","top-full","z-[70]","mt-2","w-[240px]","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],["type","button","class","flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-[14px] text-[#0b1220] transition-colors",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",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"],["class","h-2.5 w-2.5","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",4,"ngIf"],["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,"absolute","left-0","top-full","z-[70]","mt-2","max-h-[360px]","w-[260px]","overflow-y-auto","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],[1,"absolute","left-0","top-full","z-[70]","mt-2","max-h-[360px]","w-[240px]","overflow-y-auto","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],[1,"mt-3","rounded-xl","border","border-[#F2D28A]","bg-[#FFF8E6]","px-3","py-2","text-sm","font-semibold","text-[#7A4D00]"],["data-testid","tender-provider-candidate",1,"flex","items-center","gap-3","border-b","border-l-4","border-b-[#EBECEE]","px-4","py-3","transition-colors","last:border-b-0",3,"ngClass"],["type","checkbox",1,"h-4","w-4","rounded","border-[#B6CAEC]","text-[#1f4fbf]","focus:ring-[#B6CAEC]",3,"change","id","checked"],[1,"min-w-0","flex-1","cursor-pointer",3,"for"],[1,"truncate","text-sm","font-semibold","text-[#0b1220]"],["class","mt-0.5 truncate text-xs text-[#526179]",4,"ngIf"],[1,"mt-0.5","truncate","text-xs","text-[#526179]"],[1,"p-8","text-center","text-[#526179]"],["class","text-sm",4,"ngIf","ngIfElse"],[1,"text-sm"]],template:function(i,o){1&i&&(e.DNE(0,pt,12,4,"div",1),e.j41(1,"app-confirm-dialog",2),e.bIt("confirm",function(){return o.genericConfirmCallback&&o.genericConfirmCallback()})("cancel",function(){return o.showGenericConfirm=!1}),e.k0s()),2&i&&(e.Y8G("ngIf",o.isOpen),e.R7$(),e.Y8G("isOpen",o.showGenericConfirm)("title",o.genericConfirmTitle)("message",o.genericConfirmMessage)("confirmText",o.genericConfirmButtonText)("confirmButtonClass",o.genericConfirmButtonClass))},dependencies:[_.MD,_.YU,_.Sq,_.bT,b.YN,b.me,b.BC,b.vS,k.w,_e],encapsulation:2})}}return n})();function _t(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openCreateTenderModal())}),e.qSk(),e.j41(1,"svg",19),e.nrm(2,"path",44),e.k0s(),e.EFF(3," Create Tender "),e.k0s()}}function gt(n,a){1&n&&(e.qSk(),e.j41(0,"svg",50),e.nrm(1,"path",51),e.k0s())}function mt(n,a){1&n&&(e.qSk(),e.j41(0,"svg",50),e.nrm(1,"path",51),e.k0s())}function vt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",46),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.selectStatusFilter(r.value,o))}),e.j41(1,"span",47),e.EFF(2),e.k0s(),e.DNE(3,mt,2,0,"svg",48),e.k0s()}if(2&n){const t=a.$implicit,i=e.XpG(2);e.Y8G("ngClass",i.statusFilter===t.value?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(2),e.JRh(t.label),e.R7$(),e.Y8G("ngIf",i.statusFilter===t.value)}}function bt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",45)(1,"button",46),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.selectStatusFilter("",o))}),e.j41(2,"span",47),e.EFF(3,"All Statuses"),e.k0s(),e.DNE(4,gt,2,0,"svg",48),e.k0s(),e.DNE(5,vt,4,3,"button",49),e.k0s()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("ngClass",t.statusFilter?"hover:bg-[#EBF0F7]":"bg-[#DDE6F6]"),e.R7$(3),e.Y8G("ngIf",!t.statusFilter),e.R7$(),e.Y8G("ngForOf",t.filterStatusOptions)}}function xt(n,a){1&n&&(e.j41(0,"div",52),e.nrm(1,"div",53),e.k0s())}function Ct(n,a){if(1&n&&(e.j41(0,"div",54)(1,"div",55)(2,"div",56),e.qSk(),e.j41(3,"svg",57),e.nrm(4,"path",58),e.k0s()(),e.joV(),e.j41(5,"div",59)(6,"h3",60),e.EFF(7,"Error loading quotes"),e.k0s(),e.j41(8,"p",61),e.EFF(9),e.k0s()()()()),2&n){const t=e.XpG();e.R7$(9),e.JRh(t.error)}}function Et(n,a){1&n&&(e.j41(0,"div",66),e.qSk(),e.j41(1,"svg",67),e.nrm(2,"path",68),e.k0s(),e.joV(),e.j41(3,"h3",69),e.EFF(4,"No tenders found"),e.k0s(),e.j41(5,"p",70),e.EFF(6,"No tender requests to display"),e.k0s()())}function Ft(n,a){1&n&&(e.j41(0,"div",71)(1,"div",72)(2,"div",73),e.EFF(3,"REQUEST DATE"),e.k0s(),e.j41(4,"div",74),e.EFF(5,"CUSTOMER"),e.k0s(),e.j41(6,"div",74),e.EFF(7,"TITLE"),e.k0s(),e.j41(8,"div",73),e.EFF(9,"STATUS"),e.k0s(),e.j41(10,"div",73),e.EFF(11,"ACTIONS"),e.k0s()()())}function wt(n,a){1&n&&(e.j41(0,"div",71)(1,"div",75)(2,"div",76),e.EFF(3,"EXPAND"),e.k0s(),e.j41(4,"div",74),e.EFF(5,"TITLE"),e.k0s(),e.j41(6,"div",73),e.EFF(7,"STATUS"),e.k0s(),e.j41(8,"div",73),e.EFF(9,"TENDER START DATE"),e.k0s(),e.j41(10,"div",73),e.EFF(11,"TENDER END DATE"),e.k0s(),e.j41(12,"div",73),e.EFF(13,"ATTACHMENTS"),e.k0s(),e.j41(14,"div",77),e.EFF(15,"ACTIONS"),e.k0s()()())}function St(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",79)(1,"div",80)(2,"div",81),e.EFF(3),e.nI1(4,"date"),e.k0s(),e.j41(5,"div",82),e.EFF(6),e.k0s(),e.j41(7,"div",83),e.EFF(8),e.k0s(),e.j41(9,"div",84)(10,"span",85),e.EFF(11),e.k0s()(),e.j41(12,"div",86)(13,"button",87),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.openChat(o))}),e.qSk(),e.j41(14,"svg",88),e.nrm(15,"path",89),e.k0s()(),e.joV(),e.j41(16,"button",90),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.viewDetails(o))}),e.EFF(17," Details "),e.qSk(),e.j41(18,"svg",91),e.nrm(19,"path",92),e.k0s()()()()()}if(2&n){const t=a.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngClass",i.isQuoteFinalized(t)?"bg-[#F7F9FD]":"bg-white hover:bg-[#EBF0F7]"),e.BMQ("data-quote-id",t.id),e.R7$(2),e.SpI(" ",e.i5U(4,18,t.quoteDate,"dd-MM-yyyy")," "),e.R7$(3),e.SpI(" ",i.getBuyerName(t)," "),e.R7$(),e.Y8G("title",t.description||"(no title)"),e.R7$(),e.SpI(" ",i.getTruncatedTitle(t.description)," "),e.R7$(2),e.Y8G("title",i.getStatusTooltip(t))("ngClass",i.getStateClass(i.getQuoteItemState(t))),e.BMQ("aria-label",i.getStatusTooltip(t)),e.R7$(),e.SpI(" ",i.getStatusLabel(t)," "),e.R7$(2),e.HbH(i.getIconButtonClass(t,"chat","text-[#526179] hover:text-[#1f4fbf]")),e.Y8G("disabled",i.isActionDisabled(t,"chat")),e.R7$(3),e.AVh("opacity-50",i.isActionDisabled(t,"viewDetails"))("cursor-not-allowed",i.isActionDisabled(t,"viewDetails")),e.Y8G("disabled",i.isActionDisabled(t,"viewDetails"))}}function Tt(n,a){if(1&n&&(e.qex(0),e.DNE(1,St,20,21,"div",78),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.filteredQuotes)}}function kt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.toggleExpand(o))}),e.qSk(),e.j41(1,"svg",108),e.nrm(2,"path",109),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.Y8G("title",i.isExpanded(t.id)?"Collapse related quotes":"Expand to view related quotes"),e.R7$(),e.AVh("rotate-180",i.isExpanded(t.id))}}function yt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",110)(1,"button",111),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.downloadAttachment(o))}),e.qSk(),e.j41(2,"svg",91),e.nrm(3,"path",112),e.k0s(),e.joV(),e.j41(4,"span",113),e.EFF(5),e.k0s()()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("disabled",i.isActionDisabled(t,"downloadAttachment")),e.R7$(4),e.JRh(i.getAttachmentName(t))}}function It(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",114),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.editTender(o))}),e.EFF(1," Edit "),e.k0s()}}function Dt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",115),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.openBroadcastModal(o))}),e.EFF(1," Broadcast "),e.k0s()}}function jt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",116),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.simulateStartTender(o))}),e.qSk(),e.j41(1,"svg",117),e.nrm(2,"path",118),e.k0s(),e.EFF(3," Start "),e.k0s()}}function Rt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",119),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.simulateCloseTender(o))}),e.qSk(),e.j41(1,"svg",117),e.nrm(2,"path",120),e.k0s(),e.EFF(3," Close "),e.k0s()}}function Bt(n,a){1&n&&(e.j41(0,"div",126),e.nrm(1,"div",127),e.j41(2,"span",128),e.EFF(3,"Loading related quotes..."),e.k0s()())}function At(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",140),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(6);return e.Njj(r.downloadAttachment(o))}),e.qSk(),e.j41(1,"svg",91),e.nrm(2,"path",112),e.k0s(),e.joV(),e.j41(3,"span",141),e.EFF(4),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(6);e.R7$(4),e.JRh(i.getAttachmentName(t))}}function $t(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",132)(1,"div",133)(2,"div",134),e.EFF(3),e.k0s(),e.j41(4,"div",97)(5,"span",135),e.EFF(6),e.k0s()(),e.j41(7,"div",74),e.DNE(8,At,5,1,"button",136),e.k0s(),e.j41(9,"div",137)(10,"button",138),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(6);return e.Njj(r.openChat(o))}),e.qSk(),e.j41(11,"svg",91),e.nrm(12,"path",89),e.k0s()(),e.joV(),e.j41(13,"button",139),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(6);return e.Njj(r.viewDetails(o))}),e.EFF(14," Details "),e.qSk(),e.j41(15,"svg",117),e.nrm(16,"path",92),e.k0s()()()()()}if(2&n){const t=a.$implicit,i=a.last,o=e.XpG(6);e.Y8G("ngClass",i?"":"border-b border-[#EBECEE]"),e.R7$(3),e.SpI(" ",o.getProviderName(t)," "),e.R7$(2),e.Y8G("title",o.getStatusTooltip(t))("ngClass",o.getStateClass(o.getQuoteItemState(t))),e.BMQ("aria-label",o.getStatusTooltip(t)),e.R7$(),e.SpI(" ",o.getStatusLabel(t)," "),e.R7$(2),e.Y8G("ngIf",o.hasAttachment(t))}}function Mt(n,a){if(1&n&&(e.j41(0,"div",62)(1,"div",129)(2,"div",130)(3,"div",77),e.EFF(4,"Provider"),e.k0s(),e.j41(5,"div",73),e.EFF(6,"Status"),e.k0s(),e.j41(7,"div",74),e.EFF(8,"Attachments"),e.k0s(),e.j41(9,"div",74),e.EFF(10,"Actions"),e.k0s()()(),e.DNE(11,$t,17,7,"div",131),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(3);e.R7$(11),e.Y8G("ngForOf",i.getRelatedQuotes(t.id))}}function Pt(n,a){1&n&&(e.j41(0,"div",142),e.qSk(),e.j41(1,"svg",143),e.nrm(2,"path",68),e.k0s(),e.joV(),e.j41(3,"p"),e.EFF(4,"No related provider quotes found"),e.k0s()())}function Lt(n,a){if(1&n&&(e.j41(0,"div",121)(1,"div",122)(2,"h4",123),e.EFF(3,"Related Provider Quotes"),e.k0s(),e.DNE(4,Bt,4,0,"div",124)(5,Mt,12,1,"div",35)(6,Pt,5,0,"div",125),e.k0s()()),2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(4),e.Y8G("ngIf",i.isLoadingRelatedQuotes(t.id)),e.R7$(),e.Y8G("ngIf",!i.isLoadingRelatedQuotes(t.id)&&i.getRelatedQuotes(t.id).length>0),e.R7$(),e.Y8G("ngIf",!i.isLoadingRelatedQuotes(t.id)&&0===i.getRelatedQuotes(t.id).length)}}function Gt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",79)(1,"div",93)(2,"div",94),e.DNE(3,kt,3,3,"button",95),e.k0s(),e.j41(4,"div",96),e.EFF(5),e.k0s(),e.j41(6,"div",97)(7,"span",85),e.EFF(8),e.k0s()(),e.j41(9,"div",81),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.j41(12,"div",81),e.EFF(13),e.nI1(14,"date"),e.k0s(),e.j41(15,"div",98),e.DNE(16,yt,6,2,"div",99),e.k0s(),e.j41(17,"div",100)(18,"button",101),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.viewDetails(o))}),e.EFF(19," Details "),e.qSk(),e.j41(20,"svg",91),e.nrm(21,"path",92),e.k0s()(),e.DNE(22,It,2,0,"button",102)(23,Dt,2,0,"button",103)(24,jt,4,0,"button",104)(25,Rt,4,0,"button",105),e.k0s()(),e.DNE(26,Lt,7,3,"div",106),e.k0s()}if(2&n){const t=a.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngClass",i.isQuoteFinalized(t)?"bg-[#F7F9FD]":"bg-white hover:bg-[#EBF0F7]"),e.BMQ("data-quote-id",t.id),e.R7$(2),e.Y8G("ngIf",i.isCoordinatorExpandable(t)),e.R7$(),e.Y8G("title",t.description||"(no title)"),e.R7$(),e.SpI(" ",i.getTruncatedTitle(t.description)," "),e.R7$(2),e.Y8G("title",i.getStatusTooltip(t))("ngClass",i.getStateClass(i.getQuoteItemState(t))),e.BMQ("aria-label",i.getStatusTooltip(t)),e.R7$(),e.SpI(" ",i.getStatusLabel(t)," "),e.R7$(2),e.SpI(" ",e.i5U(11,17,t.expectedFulfillmentStartDate,"dd/MM/yyyy")," "),e.R7$(3),e.SpI(" ",e.i5U(14,20,t.effectiveQuoteCompletionDate,"dd/MM/yyyy")," "),e.R7$(3),e.Y8G("ngIf",i.hasAttachment(t)),e.R7$(6),e.Y8G("ngIf",t.category===i.QUOTE_CATEGORIES.COORDINATOR&&!i.isCoordinatorExpandable(t)),e.R7$(),e.Y8G("ngIf",t.category===i.QUOTE_CATEGORIES.COORDINATOR&&i.isCoordinatorExpandable(t)&&i.isExpanded(t.id)),e.R7$(),e.Y8G("ngIf",i.environment.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED&&t.category===i.QUOTE_CATEGORIES.COORDINATOR&&i.getPrimaryState(t)===i.QUOTE_STATUSES.IN_PROGRESS),e.R7$(),e.Y8G("ngIf",i.environment.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED&&t.category===i.QUOTE_CATEGORIES.COORDINATOR&&i.getPrimaryState(t)===i.QUOTE_STATUSES.APPROVED),e.R7$(),e.Y8G("ngIf",i.isExpanded(t.id))}}function Nt(n,a){if(1&n&&(e.qex(0),e.DNE(1,Gt,27,23,"div",78),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.filteredQuotes)}}function Ot(n,a){if(1&n&&(e.j41(0,"div",62),e.DNE(1,Et,7,0,"div",63)(2,Ft,12,0,"div",64)(3,wt,16,0,"div",64)(4,Tt,2,1,"ng-container",65)(5,Nt,2,1,"ng-container",65),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",0===t.filteredQuotes.length),e.R7$(),e.Y8G("ngIf",t.filteredQuotes.length>0&&t.selectedRole===t.UI_ROLES.SELLER),e.R7$(),e.Y8G("ngIf",t.filteredQuotes.length>0&&t.selectedRole===t.UI_ROLES.BUYER),e.R7$(),e.Y8G("ngIf",t.selectedRole===t.UI_ROLES.SELLER),e.R7$(),e.Y8G("ngIf",t.selectedRole===t.UI_ROLES.BUYER)}}function qt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",153)(1,"input",154),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.selectedState,o)||(r.selectedState=o),e.Njj(o)}),e.k0s(),e.j41(2,"label",155),e.EFF(3),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("id","state-"+t),e.R50("ngModel",i.selectedState),e.Y8G("value",t),e.R7$(),e.Y8G("for","state-"+t),e.R7$(),e.SpI(" ",i.getStateDisplay(t)," ")}}function Qt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",144)(1,"div",145)(2,"div",146)(3,"h3",147),e.EFF(4,"Update Quote State"),e.k0s(),e.j41(5,"div",148),e.DNE(6,qt,4,5,"div",149),e.k0s(),e.j41(7,"div",150)(8,"button",151),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.showStateUpdate=!1)}),e.EFF(9," Cancel "),e.k0s(),e.j41(10,"button",152),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.confirmStateUpdate())}),e.EFF(11," Update "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(6),e.Y8G("ngForOf",t.availableStates),e.R7$(4),e.Y8G("disabled",!t.selectedState)}}function Yt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",144)(1,"div",145)(2,"div",156)(3,"h3",147),e.EFF(4,"Broadcast Message"),e.k0s(),e.j41(5,"textarea",157),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.broadcastMessage,o)||(r.broadcastMessage=o),e.Njj(o)}),e.k0s(),e.j41(6,"div",158)(7,"button",151),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.closeBroadcastModal())}),e.EFF(8," Cancel "),e.k0s(),e.j41(9,"button",152),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sendBroadcastMessage())}),e.EFF(10),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(5),e.R50("ngModel",t.broadcastMessage),e.R7$(4),e.Y8G("disabled",!t.broadcastMessage||t.isBroadcastSending),e.R7$(),e.SpI(" ",t.isBroadcastSending?"Sending...":"Send"," ")}}let J=(()=>{class n{constructor(){this.router=(0,e.WQX)(T.Ix),this.quoteService=(0,e.WQX)($.K),this.localStorage=(0,e.WQX)(M.s),this.notificationService=(0,e.WQX)(P.J),this.accountService=(0,e.WQX)(L.O),this.quotes=[],this.filteredQuotes=[],this.loading=!1,this.error=null,this.showDeleteConfirm=!1,this.deleteConfirmMessage="",this.quoteToDelete=null,this.showStateUpdate=!1,this.quoteToUpdate=null,this.selectedState=null,this.availableStates=["pending","inProgress","approved","rejected","cancelled","accepted"],this.selectedRole=h.Zk.BUYER,this.currentUserId=null,this.UI_ROLES=h.Zk,this.QUOTE_CATEGORIES=l.K0,this.QUOTE_STATUSES=l.yz,this.environment=w.c,this.statusFilter="",this.showStatusDropdown=!1,this.showQuoteDetailsModal=!1,this.selectedQuoteId=null,this.showChatModal=!1,this.selectedChatQuoteId=null,this.showAttachmentModal=!1,this.selectedAttachmentQuote=null,this.showBroadcastModal=!1,this.broadcastForCoordinatorId=null,this.broadcastMessage="",this.showGenericConfirm=!1,this.genericConfirmTitle="",this.genericConfirmMessage="",this.genericConfirmButtonText="Confirm",this.genericConfirmButtonClass="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.genericConfirmCallback=null,this.isBroadcastSending=!1,this.showCreateTenderModal=!1,this.tenderToEdit=null,this.expandedQuoteIds=new Set,this.relatedQuotesMap=new Map,this.loadingRelatedQuotes=new Set,this.coordinatorQuoteStatesMap=new Map,this.loadingCoordinatorStates=new Set,this.organizationNames=new Map}ngOnInit(){let t=this.localStorage.getObject("login_items");if(t&&t.logged_as==t.id)this.currentUserId=t.partyId;else if(t&&t.logged_as){let i=t.organizations.find(o=>o.id==t.logged_as);this.currentUserId=i?.partyId}this.currentUserId?this.loadQuotes():this.error="User not authenticated"}loadQuotes(){if(!this.currentUserId)return void(this.error="User not authenticated");let t;this.loading=!0,this.error=null,t=this.selectedRole===h.Zk.BUYER?this.quoteService.getCoordinatorQuotesByUser(this.currentUserId).pipe((0,g.T)(i=>i.map(o=>this.mapTenderToQuote(o)))):this.quoteService.getTenderingQuotesByUser(this.currentUserId,(0,h.E9)(this.selectedRole)).pipe((0,g.T)(i=>i.map(o=>this.mapTenderToQuote(o)))),t.subscribe({next:i=>{this.quotes=i,this.enrichQuoteData(i),console.log(`Loaded ${this.quotes.length} quotes as ${this.selectedRole}`),console.log(`Current user ID: ${this.currentUserId}`),this.quotes.forEach(o=>{if(console.log(`Quote ${this.extractShortId(o.id)}:`,{category:o.category,state:o.state,quoteItemState:this.getQuoteItemState(o),externalId:o.externalId,id:o.id,relatedParty:o.relatedParty}),this.selectedRole===h.Zk.SELLER){const r=o.relatedParty?.some(s=>s.id===this.currentUserId&&s.role?.toLowerCase()===h.Zk.SELLER);console.log(` -> Quote ${this.extractShortId(o.id)} related to current provider? ${r}`)}}),this.selectedRole===h.Zk.SELLER?this.loadCoordinatorStatesForTenderingQuotes().subscribe({next:()=>{console.log("All coordinator states loaded, filtering quotes..."),this.filterQuotesByStatus(),this.loading=!1},error:o=>{console.error("Error loading coordinator states:",o),this.filterQuotesByStatus(),this.loading=!1}}):(this.filterQuotesByStatus(),this.loading=!1)},error:i=>{console.error("Failed to load quotes:",i),this.error="Failed to load quotes. Please try again.",this.loading=!1}})}mapTenderToQuote(t){const i={state:this.mapTenderStateToQuoteState(t.state)};return t.attachment&&(i.attachment=[{name:t.attachment.name,mimeType:t.attachment.mimeType,content:t.attachment.content,size:t.attachment.size?{amount:t.attachment.size,units:"bytes"}:void 0}]),{id:t.id,href:"",description:t.tenderNote||"",quoteDate:t.createdAt||(new Date).toISOString(),effectiveQuoteCompletionDate:t.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:t.expectedFulfillmentStartDate,state:this.mapTenderStateToQuoteState(t.state),category:"tendering"===t.category?l.K0.TENDER:l.K0.COORDINATOR,externalId:t.external_id,relatedParty:[...t.selectedProviders.map(o=>({id:o,role:"Seller",name:t.provider,"@referredType":"Organization"})),...t.buyerPartyId?[{id:t.buyerPartyId,role:"Buyer","@referredType":"Organization"}]:[]],quoteItem:[i],note:[]}}mapTenderStateToQuoteState(t){switch(t){case"draft":case"pending":default:return"pending";case"pre-launched":return"inProgress";case"sent":return"approved";case"closed":return"accepted";case"cancelled":return"cancelled";case"rejected":return"rejected"}}refreshQuotes(){this.loadQuotes()}selectRole(t){this.selectedRole=t,this.loadQuotes()}getRoleTabClass(t){const i="inline-flex items-center justify-center gap-2 rounded-xl px-5 py-2.5 text-sm font-semibold transition-colors";return this.selectedRole===t?`${i} bg-[#EBF0F7] text-[#1f4fbf]`:`${i} text-[#526179] hover:bg-[#F7F9FD] hover:text-[#1f4fbf]`}filterQuotesByStatus(){let t;t=this.statusFilter?this.quotes.filter(i=>this.getPrimaryState(i)===this.statusFilter):[...this.quotes],this.filteredQuotes=this.selectedRole===h.Zk.SELLER?t.filter(i=>{if(i.category!==l.K0.TENDER)return console.log(`[FILTER] Quote ${this.extractShortId(i.id)} - category: ${i.category}, keeping (not tender)`),!0;if(!i.externalId)return console.log(`[FILTER] Tendering quote ${this.extractShortId(i.id)} - no externalId, keeping`),!0;const o=this.coordinatorQuoteStatesMap.get(i.externalId);if(console.log(`[FILTER] Tendering quote ${this.extractShortId(i.id)} - coordinator: ${this.extractShortId(i.externalId)}, state: ${o||"NOT_LOADED"}`),!o)return console.log(`[FILTER] Coordinator state not loaded yet for ${this.extractShortId(i.externalId)}, hiding`),!1;const r=o!==l.yz.PENDING;return console.log(`[FILTER] Coordinator state is ${o}, ${r?"SHOWING":"HIDING"} quote`),r}):t}get filterStatusOptions(){const t=this.selectedRole===h.Zk.BUYER?l.R4:l.NT;return[{value:l.yz.PENDING,label:t.PENDING},{value:l.yz.IN_PROGRESS,label:t.IN_PROGRESS},{value:l.yz.APPROVED,label:t.APPROVED},{value:l.yz.ACCEPTED,label:t.ACCEPTED},{value:l.yz.CANCELLED,label:t.CANCELLED},{value:l.yz.REJECTED,label:t.REJECTED}]}toggleStatusDropdown(t){t.stopPropagation(),this.showStatusDropdown=!this.showStatusDropdown}closeStatusDropdown(){this.showStatusDropdown=!1}selectStatusFilter(t,i){i?.stopPropagation(),this.statusFilter=t,this.showStatusDropdown=!1,this.filterQuotesByStatus()}getStatusFilterLabel(){return this.statusFilter?this.filterStatusOptions.find(t=>t.value===this.statusFilter)?.label??"All Statuses":"All Statuses"}viewDetails(t){this.selectedQuoteId=t.id,this.showQuoteDetailsModal=!0}editTender(t){let i;if(Array.isArray(t.quoteItem)&&t.quoteItem.length>0){const s=t.quoteItem[0];if(Array.isArray(s.attachment)&&s.attachment.length>0){const d=s.attachment[0];i={name:d.name||"attachment.pdf",mimeType:d.mimeType||"application/pdf",content:d.content||"",size:d.size?.amount}}}const o=this.getPrimaryState(t),r={id:t.id,category:t.category===l.K0.COORDINATOR?"coordinator":"tendering",state:this.mapQuoteStateToTenderState(o),responseDeadline:t.expectedFulfillmentStartDate||t.effectiveQuoteCompletionDate||(new Date).toISOString(),tenderNote:t.description||"",attachment:i,selectedProviders:t.relatedParty?.filter(s=>"seller"===s.role?.toLowerCase()).map(s=>s.id)||[],effectiveQuoteCompletionDate:t.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:t.expectedFulfillmentStartDate};this.tenderToEdit=r,this.showCreateTenderModal=!0}mapQuoteStateToTenderState(t){if(!t)return"draft";switch(t){case"pending":default:return"draft";case"inProgress":return"pre-launched";case"approved":return"sent";case"accepted":return"closed";case"cancelled":return"cancelled";case"rejected":return"rejected"}}viewQuote(t){this.selectedQuoteId=t.id,this.showQuoteDetailsModal=!0}closeQuoteDetailsModal(){this.showQuoteDetailsModal=!1,this.selectedQuoteId=null}showConfirmation(t,i,o,r="Confirm",s="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.genericConfirmTitle=t,this.genericConfirmMessage=i,this.genericConfirmButtonText=r,this.genericConfirmButtonClass=s,this.genericConfirmCallback=()=>{o(),this.showGenericConfirm=!1},this.showGenericConfirm=!0}getModalUserRole(){return this.selectedRole===h.Zk.BUYER?"customer":"seller"}onQuoteUpdated(t){for(const[s,d]of this.relatedQuotesMap.entries())if(d.some(u=>u.id===t.id)){const u=this.quotes.find(C=>C.id===s);u&&this.loadRelatedQuotes(u);const f=this.extractShortId(t.id),p=this.getPrimaryState(t);return void this.notificationService.showSuccess(`Quote ${f} has been updated to ${p}.`)}const i=this.quotes.findIndex(s=>s.id===t.id);-1!==i&&(this.quotes[i]=t,this.filterQuotesByStatus());const o=this.extractShortId(t.id),r=this.getPrimaryState(t);this.notificationService.showSuccess(`Quote ${o} has been updated to ${r}.`)}closeChatModal(){this.showChatModal=!1,this.selectedChatQuoteId=null}closeAttachmentModal(){this.showAttachmentModal=!1,this.selectedAttachmentQuote=null}openBroadcastModal(t){t.id&&(this.broadcastForCoordinatorId=t.id,this.broadcastMessage="",this.showBroadcastModal=!0)}closeBroadcastModal(){this.showBroadcastModal=!1,this.broadcastForCoordinatorId=null,this.broadcastMessage="",this.isBroadcastSending=!1}openCreateTenderModal(){this.currentUserId?this.showCreateTenderModal=!0:this.notificationService.showError("You must be logged in to create a tender.")}closeCreateTenderModal(){this.showCreateTenderModal=!1,this.tenderToEdit=null,this.loadQuotes()}onTenderCreated(t){console.log("Tender created successfully:",t),this.loadQuotes(),this.notificationService.showSuccess("Tender created successfully!")}onTenderUpdated(){this.loadQuotes()}sendBroadcastMessage(){!this.broadcastForCoordinatorId||!this.currentUserId||!this.broadcastMessage||this.showConfirmation("Broadcast Message","Are you sure you want to broadcast this message to all the invited providers?",()=>this.executeBroadcastMessage(),"Send","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")}executeBroadcastMessage(){this.isBroadcastSending=!0;const t=this.getRelatedQuotes(this.broadcastForCoordinatorId);if(!t||0===t.length){const r=this.quotes.find(s=>s.id===this.broadcastForCoordinatorId);r&&this.loadRelatedQuotes(r)}const i=this.getRelatedQuotes(this.broadcastForCoordinatorId).filter(r=>r.category===l.K0.TENDER);if(0===i.length)return this.notificationService.showError("No related provider quotes found to broadcast to."),void(this.isBroadcastSending=!1);const o=i.map(r=>this.quoteService.addNoteToQuote(r.id,this.broadcastMessage,this.currentUserId));(0,S.p)(o).subscribe({next:()=>{this.notificationService.showSuccess("Message broadcast sent to all invited providers."),this.closeBroadcastModal()},error:r=>{console.error("Failed to broadcast message:",r),this.notificationService.showError("Failed to broadcast message."),this.isBroadcastSending=!1}})}onAttachmentUploaded(t){const i=this.quotes.findIndex(o=>o.id===t.id);-1!==i&&(this.quotes[i]=t,this.filterQuotesByStatus()),this.selectedRole===h.Zk.SELLER&&this.getPrimaryState(t)===l.yz.IN_PROGRESS&&(console.log("Provider uploaded PDF, updating quote status to approved:",t.id),this.quoteService.updateQuoteStatus(t.id,l.yz.APPROVED).subscribe({next:o=>{const r=this.quotes.findIndex(d=>d.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus());const s=this.extractShortId(t.id);console.log("Quote status automatically updated to approved after PDF upload"),this.notificationService.showSuccess(`Quote ${s} has been approved after PDF upload.`)},error:o=>{console.error("Error updating quote status to approved:",o),this.notificationService.showError(`Error updating quote status: ${o?.message||"Unknown error"}`)}}))}updateQuoteState(t){this.quoteToUpdate=t,this.selectedState=t.state||null,this.showStateUpdate=!0}confirmStateUpdate(){this.quoteToUpdate&&this.selectedState&&this.quoteService.updateQuoteState(this.quoteToUpdate.id,this.selectedState).subscribe({next:t=>{const i=this.quotes.findIndex(o=>o.id===t.id);-1!==i&&(this.quotes[i]=t,this.filterQuotesByStatus()),this.showStateUpdate=!1,this.notificationService.showSuccess("Quote state updated successfully")},error:t=>{console.error("Failed to update quote state:",t),this.notificationService.showError("Failed to update quote state")}})}confirmDelete(t){this.quoteToDelete=t,this.deleteConfirmMessage=`Are you sure you want to delete Quote ${this.extractShortId(t.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(t=>t.id!==this.quoteToDelete.id),this.filterQuotesByStatus(),this.showDeleteConfirm=!1,this.notificationService.showSuccess("Quote deleted successfully")},error:t=>{console.error("Failed to delete quote:",t),this.notificationService.showError("Failed to delete quote")}})}openChat(t){this.selectedChatQuoteId=t.id,this.showChatModal=!0}downloadAttachment(t){try{this.quoteService.downloadAttachment(t),this.notificationService.showSuccess("Download started")}catch(i){console.error("Error downloading attachment:",i),this.notificationService.showError(i.message||"Error downloading attachment")}}downloadCustomerRequest(t){const i=t.externalId||t.id;i?this.quoteService.getQuoteById(i).subscribe({next:o=>{try{if(!o.quoteItem||0===o.quoteItem.length||!o.quoteItem[0].attachment||0===o.quoteItem[0].attachment.length)return void this.notificationService.showError("No buyer's request attachment found on coordinator quote.");this.quoteService.downloadAttachment(o),this.notificationService.showSuccess("Download started")}catch(r){console.error("Error downloading buyer request:",r),this.notificationService.showError(r.message||"Error downloading buyer request")}},error:o=>{console.error("Failed to fetch coordinator quote for download:",o),this.notificationService.showError("Failed to fetch coordinator quote")}}):this.notificationService.showError("No coordinator reference found for this quote.")}addAttachment(t){this.selectedAttachmentQuote=t,this.showAttachmentModal=!0}acceptTenderingQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Accept Tender Request","Are you sure you want to accept this tender request?",()=>{console.log("Accepting tendering quote:",t.id),this.quoteService.updateQuoteStatus(t.id,"inProgress").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Tendering quote successfully accepted"),this.notificationService.showSuccess(`Tender request ${i} has been accepted and is now in progress.`)},error:o=>{console.error("Error accepting tendering quote:",o),this.notificationService.showError(`Error accepting tender request: ${o.message||"Unknown error"}`)}})},"Accept","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50")}cancelTenderingQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Cancel Tender Request","Are you sure you want to cancel this tender request?\n\nThis action cannot be undone.",()=>{console.log("Cancelling tendering quote:",t.id),this.quoteService.updateQuoteStatus(t.id,"cancelled").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Tendering quote successfully cancelled"),this.notificationService.showSuccess(`Tender request ${i} has been cancelled.`)},error:o=>{console.error("Error cancelling tendering quote:",o),this.notificationService.showError(`Error cancelling tender request: ${o.message||"Unknown error"}`)}})},"Cancel Request","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")}simulateStartTender(t){const i=this.extractShortId(t.id),o=this.getTodayForAPI();this.showConfirmation("Start Tender",`Are you sure you want to start this tender?\n\nWarning: The Tender Start Date will be updated to today (${o}).`,()=>{this.quoteService.updateQuoteStatus(t.id,"approved").pipe((0,F.n)(r=>{const s=this.quotes.findIndex(d=>d.id===r.id);return-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.quoteService.updateQuoteDate(t.id,o,"expectedFulfillment")})).subscribe({next:r=>{const s=this.quotes.findIndex(d=>d.id===r.id);-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.notificationService.showSuccess(`Tender ${i} started. Start date set to today.`)},error:r=>{console.error("Error starting tender:",r),this.notificationService.showError(`Error starting tender: ${r.message||"Unknown error"}`)}})},"Start Tender","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")}simulateCloseTender(t){const i=this.extractShortId(t.id),o=this.getTodayForAPI();this.showConfirmation("Close Tender",`Are you sure you want to close this tender?\n\nWarning: The Tender End Date will be updated to today (${o}).`,()=>{this.quoteService.updateQuoteStatus(t.id,"accepted").pipe((0,F.n)(r=>{const s=this.quotes.findIndex(d=>d.id===r.id);return-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.quoteService.updateQuoteDate(t.id,o,"effective")})).subscribe({next:r=>{const s=this.quotes.findIndex(d=>d.id===r.id);-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.notificationService.showSuccess(`Tender ${i} closed. End date set to today.`)},error:r=>{console.error("Error closing tender:",r),this.notificationService.showError(`Error closing tender: ${r.message||"Unknown error"}`)}})},"Close Tender","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")}getTodayForAPI(){const t=new Date;return`${t.getDate().toString().padStart(2,"0")}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getFullYear()}`}acceptQuoteCustomer(t){const i=this.extractShortId(t.id);this.showConfirmation("Accept Quotation","Are you sure you want to accept the quotation?",()=>{console.log("Buyer accepting quotation:",t.id),this.quoteService.updateQuoteStatus(t.id,"accepted").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Quotation successfully accepted by buyer"),this.notificationService.showSuccess(`Quotation ${i} has been accepted successfully.`)},error:o=>{console.error("Error accepting quotation:",o),this.notificationService.showError(`Error accepting quotation: ${o?.message||"Unknown error"}`)}})},"Accept","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50")}acceptTenderQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Accept Tender Quote","Are you sure you want to accept this quote? Every other quote in this tender will be Rejected.",()=>this.executeAcceptTenderQuote(t,i),"Accept","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50")}executeAcceptTenderQuote(t,i){console.log("Buyer accepting tender:",t.id);const r=(()=>{if(t.externalId)return t.externalId;for(const[s,d]of this.relatedQuotesMap.entries())if(d.some(u=>u.id===t.id))return s;return null})();this.quoteService.updateQuoteStatus(t.id,"accepted").subscribe({next:s=>{if(r){const u=(this.relatedQuotesMap.get(r)||[]).filter(f=>f.id!==t.id).filter(f=>{const p=this.getPrimaryState(f);return p!==l.yz.ACCEPTED&&p!==l.yz.CANCELLED&&p!==l.yz.REJECTED});if(u.length>0){const f=u.map(p=>this.quoteService.updateQuoteStatus(p.id,"rejected"));(0,S.p)(f).subscribe({next:p=>{const W=(this.relatedQuotesMap.get(r)||[]).map(E=>E.id===s.id?s:p.find(zt=>zt.id===E.id)||E);this.relatedQuotesMap.set(r,W),this.notificationService.showSuccess(`Tender ${i} accepted. ${p.length} other quote(s) have been rejected.`)},error:p=>{console.error("Error rejecting sibling quotes:",p),this.notificationService.showError(`Accepted the selected quote, but failed rejecting other quotes: ${p.message||"Unknown error"}`)}})}else{const p=(this.relatedQuotesMap.get(r)||[]).map(C=>C.id===s.id?s:C);this.relatedQuotesMap.set(r,p),this.notificationService.showSuccess(`Tender ${i} has been accepted successfully.`)}}else{const d=this.quotes.findIndex(u=>u.id===s.id);-1!==d&&(this.quotes[d]=s,this.filterQuotesByStatus()),this.notificationService.showSuccess(`Tender ${i} has been accepted successfully.`)}},error:s=>{console.error("Error accepting tender:",s),this.notificationService.showError(`Error accepting tender: ${s?.message||"Unknown error"}`)}})}rejectTenderQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Reject Tender","Are you sure you want to reject this tender?\n\nThis action cannot be undone.",()=>{console.log("Buyer rejecting tender:",t.id),this.quoteService.updateQuoteStatus(t.id,"rejected").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Tender successfully rejected by buyer"),this.notificationService.showSuccess(`Tender ${i} has been rejected.`)},error:o=>{console.error("Error rejecting tender:",o),this.notificationService.showError(`Error rejecting tender: ${o?.message||"Unknown error"}`)}})},"Reject","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")}cancelQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Cancel Quote",`Are you sure you want to cancel quote ${i}?\n\nThis action cannot be undone and will disable all other quote actions.`,()=>{console.log("Cancelling quote:",t.id),this.quoteService.updateQuoteStatus(t.id,"cancelled").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Quote successfully cancelled"),this.notificationService.showSuccess(`Quote ${i} has been cancelled successfully.`)},error:o=>{console.error("Error cancelling quote:",o),this.notificationService.showError(`Error cancelling quote: ${o?.message||"Unknown error"}`)}})},"Cancel Quote","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")}extractShortId(t){return t?t.length>8?t.slice(-8):t:"N/A"}getPrimaryState(t){return Array.isArray(t.quoteItem)&&t.quoteItem.length>0?t.quoteItem[0].state||"unknown":t.state?t.state:"unknown"}getQuoteItemState(t){let i="unknown";if(Array.isArray(t.quoteItem)&&t.quoteItem.length>0)for(const o of t.quoteItem)if(o&&o.state){i=o.state;break}return t.category===l.K0.COORDINATOR?this.mapCoordinatorStatusToGUI(i):i}getStatusLabel(t){const i=this.getPrimaryState(t);let o;if(t.category===l.K0.COORDINATOR)o=l.R4;else{if(t.category!==l.K0.TENDER)return i;o=this.selectedRole===h.Zk.BUYER?l.kU:l.NT}switch(i){case l.yz.PENDING:return o.PENDING;case l.yz.IN_PROGRESS:return o.IN_PROGRESS;case l.yz.APPROVED:return o.APPROVED;case l.yz.ACCEPTED:return o.ACCEPTED;case l.yz.CANCELLED:return o.CANCELLED;case l.yz.REJECTED:return o.REJECTED;default:return i}}getStatusTooltip(t){const i=this.getPrimaryState(t),o=this.selectedRole===h.Zk.BUYER?"buyer":"provider",r=this.getStatusLabel(t),d=(t.category===l.K0.COORDINATOR?l.bJ:t.category===l.K0.TENDER?l.L9:null)?.[i]?.[o];if(!d)return r;const f="..."===d.availableActions?"":d.availableActions,p=["..."===d.explanation?"":d.explanation,f?`Available actions: ${f}`:""].filter(Boolean);return p.length>0?p.join("\n"):r}mapCoordinatorStatusToGUI(t){return{pending:"draft",inProgress:"pre-launched",approved:"launched",accepted:"closed",cancelled:"cancelled",rejected:"rejected"}[t]||t}hasAttachment(t){return Array.isArray(t.quoteItem)&&t.quoteItem.some(i=>i.attachment&&i.attachment.length>0)}getAttachmentName(t){if(!Array.isArray(t.quoteItem))return"";for(const i of t.quoteItem)if(i.attachment&&i.attachment.length>0)return i.attachment[0].name||"attachment.pdf";return""}isQuoteCancelled(t){return!!t.quoteItem?.some(i=>i.state===l.yz.CANCELLED)||t.state===l.yz.CANCELLED}isQuoteAccepted(t){return!!t.quoteItem?.some(i=>i.state===l.yz.ACCEPTED)||t.state===l.yz.ACCEPTED}isQuoteFinalized(t){return this.isQuoteCancelled(t)||this.isQuoteAccepted(t)}isActionDisabled(t,i){const o=this.isQuoteCancelled(t),s=(this.isQuoteAccepted(t),this.isQuoteFinalized(t));switch(i){case"viewDetails":case"downloadAttachment":return o;case"chat":case"accept":case"acceptCustomer":case"acceptTender":case"rejectTender":default:return!1;case"addAttachment":case"cancel":return s;case"addRequestedDate":case"addExpectedDate":return!0}}getButtonClass(t,i){const o="inline-flex items-center rounded-lg border px-2.5 py-1.5 text-xs font-semibold transition-colors";return this.isActionDisabled(t,i)?`${o} cursor-not-allowed border-[#EBECEE] text-[#9AA6B8]`:`${o} border-[#B6CAEC] text-[#1f4fbf] hover:bg-[#EBF0F7]`}getIconButtonClass(t,i,o){const r="cursor-pointer rounded-lg p-1.5 text-xs transition-colors hover:bg-[#EBF0F7]";return this.isActionDisabled(t,i)?`${r} cursor-not-allowed text-[#9AA6B8] hover:bg-transparent`:`${r} ${o}`}getActionTitle(t,i){return this.isActionDisabled(t,i)?"Action disabled - quote is "+(this.isQuoteCancelled(t)?"cancelled":"accepted"):""}getStateDisplay(t){return t?{pending:"Pending",inProgress:"In Progress",approved:"Approved",rejected:"Rejected",cancelled:"Cancelled",accepted:"Accepted"}[t]||t:"Unknown"}getStateClass(t){switch(t){case"pending":return"status-pending";case"inProgress":return"status-inProgress";case"approved":return"status-approved";case"rejected":return"status-rejected";case"cancelled":return"status-cancelled";case"accepted":return"status-accepted";case"draft":return"status-draft";case"pre-launched":return"status-pre-launched";case"launched":return"status-launched";case"closed":return"status-closed";default:return"status-unknown"}}canUpdateState(t){return t!==l.yz.CANCELLED&&t!==l.yz.ACCEPTED}isCoordinatorExpandable(t){return t.category===l.K0.COORDINATOR&&this.getPrimaryState(t)!==l.yz.PENDING}isExpanded(t){return!!t&&this.expandedQuoteIds.has(t)}toggleExpand(t){t.id&&(this.expandedQuoteIds.has(t.id)?(console.log(`Collapsing quote ${this.extractShortId(t.id)}`),this.expandedQuoteIds.delete(t.id)):(console.log(`Expanding quote ${this.extractShortId(t.id)}, externalId: ${t.externalId}`),this.expandedQuoteIds.add(t.id),this.relatedQuotesMap.has(t.id)?console.log(`Using cached ${this.relatedQuotesMap.get(t.id)?.length} related quotes`):(console.log("Fetching related quotes..."),this.loadRelatedQuotes(t))))}loadRelatedQuotes(t){if(!t.id||!this.currentUserId)return void console.error("Cannot load related quotes: missing id or userId",{id:t.id,userId:this.currentUserId});const i=t.externalId||t.id;console.log(`Loading related quotes for coordinator ${this.extractShortId(t.id)}:`,{userId:this.currentUserId,role:h.XZ.BUYER,externalId:i,coordinatorId:t.id}),this.loadingRelatedQuotes.add(t.id),this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,i,h.XZ.BUYER).subscribe({next:o=>{this.relatedQuotesMap.set(t.id,o),this.loadingRelatedQuotes.delete(t.id),this.enrichQuoteData(o),console.log(`\xe2\u0153\u2026 Successfully loaded ${o.length} related quotes for coordinator ${this.extractShortId(t.id)}`),o.length>0&&console.log("Related quotes:",o.map(r=>({id:this.extractShortId(r.id),provider:this.getProviderName(r),state:this.getQuoteItemState(r)})))},error:o=>{console.error("\xe2\u0152 Failed to load related quotes:",o),this.loadingRelatedQuotes.delete(t.id),this.notificationService.showError("Failed to load related quotes")}})}getRelatedQuotes(t){return t&&this.relatedQuotesMap.get(t)||[]}isLoadingRelatedQuotes(t){return!!t&&this.loadingRelatedQuotes.has(t)}isOrganizationId(t){return t.startsWith("urn:ngsi-ld:organization:")}enrichQuoteData(t){const i=new Set;if(t.forEach(r=>{r.relatedParty?.forEach(s=>{s.id&&!this.organizationNames.has(s.id)&&this.isOrganizationId(s.id)&&i.add(s.id)})}),0===i.size)return;const o=Array.from(i).map(r=>this.accountService.getOrgInfo(r).then(s=>({id:r,name:s?.tradingName||s?.name||r}),()=>({id:r,name:r})));Promise.all(o).then(r=>{r.forEach(({id:s,name:d})=>this.organizationNames.set(s,d)),this.filteredQuotes=[...this.filteredQuotes]})}getProviderName(t){if(!t.relatedParty||0===t.relatedParty.length)return"Unknown Provider";const i=t.relatedParty.find(r=>"seller"===r.role?.toLowerCase());if(!i?.id)return"Unknown Provider";const o=this.organizationNames.get(i.id);return o&&o!==i.id?o:"Loading..."}getBuyerName(t){if(!t.relatedParty||0===t.relatedParty.length)return"Unknown Customer";const i=t.relatedParty.find(r=>"buyer"===r.role?.toLowerCase());if(!i?.id)return"Unknown Customer";const o=this.organizationNames.get(i.id);return o&&o!==i.id?o:"Loading..."}canAcceptTenderingQuote(t){if(!t.externalId)return console.warn("Tendering quote has no externalId, cannot check coordinator state"),!1;const i=this.coordinatorQuoteStatesMap.get(t.externalId);return i?i===l.yz.IN_PROGRESS:(this.loadCoordinatorQuoteState(t.externalId),!1)}canAddAttachmentToTenderingQuote(t){if(!t.externalId)return console.warn("Tendering quote has no externalId, cannot check coordinator state"),!1;const i=this.coordinatorQuoteStatesMap.get(t.externalId);return i?i===l.yz.APPROVED:(this.loadCoordinatorQuoteState(t.externalId),!1)}loadCoordinatorQuoteState(t){this.loadingCoordinatorStates.has(t)||this.coordinatorQuoteStatesMap.has(t)||(console.log(`Loading coordinator quote state for: ${this.extractShortId(t)}`),this.loadingCoordinatorStates.add(t),this.quoteService.getQuoteById(t).subscribe({next:i=>{const o=this.getQuoteItemState(i),r=this.getPrimaryState(i);this.coordinatorQuoteStatesMap.set(t,r),this.loadingCoordinatorStates.delete(t),console.log(`Coordinator quote ${this.extractShortId(t)} state: ${r} (GUI: ${o})`)},error:i=>{console.error(`Failed to load coordinator quote state for ${this.extractShortId(t)}:`,i),this.loadingCoordinatorStates.delete(t),this.coordinatorQuoteStatesMap.set(t,"unknown")}}))}loadCoordinatorStatesForTenderingQuotes(){const t=new Set;if(this.quotes.forEach(o=>{o.category===l.K0.TENDER&&o.externalId&&t.add(o.externalId)}),0===t.size)return(0,v.of)(void 0);const i=Array.from(t).map(o=>this.coordinatorQuoteStatesMap.has(o)?(0,v.of)(void 0):(console.log(`Loading coordinator quote state for: ${this.extractShortId(o)}`),this.loadingCoordinatorStates.add(o),this.quoteService.getQuoteById(o).pipe((0,g.T)(r=>{const s=this.getPrimaryState(r);this.coordinatorQuoteStatesMap.set(o,s),this.loadingCoordinatorStates.delete(o),console.log(`Coordinator quote ${this.extractShortId(o)} state: ${s}`)}),(0,x.W)(r=>(console.error(`Failed to load coordinator quote state for ${this.extractShortId(o)}:`,r),this.loadingCoordinatorStates.delete(o),this.coordinatorQuoteStatesMap.set(o,"unknown"),(0,v.of)(void 0))))));return(0,S.p)(i).pipe((0,g.T)(()=>{}))}getTruncatedTitle(t){return t?t.length>50?t.substring(0,50)+"...":t:"(no title)"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-list"]],standalone:!0,features:[e.aNF],decls:52,vars:34,consts:[[1,"min-h-screen","bg-[#F7F9FD]","font-[Blinker]",3,"click"],[1,"mx-auto","max-w-[1440px]","px-6","py-8","sm:px-10","lg:px-20","xl:px-[160px]"],[1,"mb-6","flex","flex-wrap","items-center","justify-between","gap-4"],[1,"flex","min-w-0","items-center","gap-3"],[1,"flex","h-12","w-12","shrink-0","items-center","justify-center","rounded-xl","bg-[#eef2fb]","text-[#1f4fbf]"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414A1 1 0 0 1 19 9.414V19a2 2 0 0 1-2 2Z"],[1,"min-w-0"],[1,"flex","items-center","gap-2"],[1,"truncate","text-[28px]","font-bold","text-[#0b1220]"],["href","https://knowledgebase.dome-marketplace.eu/books/tailored-offering-guide","target","_blank","rel","noopener noreferrer","title","Click here for the Tender process guide",1,"rounded-lg","p-1","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]"],["fill","currentColor","viewBox","0 0 20 20",1,"h-5","w-5"],["fill-rule","evenodd","d","M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-3a1 1 0 0 0-.867.5 1 1 0 1 1-1.731-1A3 3 0 0 1 13 8a3.001 3.001 0 0 1-2 2.83V11a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1 1 1 0 1 0 0-2Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","clip-rule","evenodd"],[1,"flex","flex-wrap","items-center","gap-3"],["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] focus:outline-none focus:ring-2 focus:ring-[#B6CAEC] disabled:opacity-50",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]","disabled:opacity-50",3,"click","disabled"],[1,"mb-6"],[1,"inline-flex","rounded-2xl","border","border-[#EBECEE]","bg-white","p-1","shadow-sm"],[3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5"],["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,"mb-6","flex","flex-wrap","items-center","justify-between","gap-3","rounded-2xl","border","border-[#EBECEE]","bg-white","p-3","shadow-sm"],[1,"flex","items-center","gap-3"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5","text-[#526179]"],["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-[#526179]"],[1,"relative","min-w-[240px]",3,"click"],["type","button",1,"flex","h-10","w-full","items-center","justify-between","gap-3","rounded-lg","border","px-4","text-[15px]","font-semibold","transition-colors","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]",3,"click","ngClass"],[1,"truncate"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4","shrink-0","transition-transform",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","m19.5 8.25-7.5 7.5-7.5-7.5"],["class","absolute right-0 top-full z-40 mt-2 w-full rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",4,"ngIf"],["class","flex items-center justify-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","overflow-hidden rounded-2xl border border-[#EBECEE] bg-white shadow-sm",4,"ngIf"],["title","Delete Quote","confirmText","Delete","confirmButtonClass","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",3,"confirm","cancel","isOpen","message"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["class","fixed inset-0 z-50 h-full w-full overflow-y-auto bg-[#0b1220]/45 px-4 py-8",4,"ngIf"],[3,"close","quoteUpdated","isOpen","quoteId","currentUserRole","currentUserId"],[3,"close","isOpen","quoteId"],[3,"close","uploadSuccess","isOpen","quote"],[3,"closeModal","tenderCreated","tenderUpdated","isOpen","customerId","tenderToEdit"],[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]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]","disabled:opacity-50",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 4v16m8-8H4"],[1,"absolute","right-0","top-full","z-40","mt-2","w-full","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]"],["type","button",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-left","text-[14px]","text-[#0b1220]","transition-colors",3,"click","ngClass"],[1,"min-w-0","flex-1","truncate"],["class","h-4 w-4 text-[#1f4fbf]","fill","none","stroke","currentColor","viewBox","0 0 24 24",4,"ngIf"],["type","button","class","flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-[14px] text-[#0b1220] transition-colors",3,"ngClass","click",4,"ngFor","ngForOf"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","m4.5 12.75 6 6 9-13.5"],[1,"flex","items-center","justify-center","py-8"],[1,"h-8","w-8","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[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,"overflow-hidden","rounded-2xl","border","border-[#EBECEE]","bg-white","shadow-sm"],["class","text-center py-12",4,"ngIf"],["class","border-b border-[#DDE6F6] bg-[#EBF0F7] px-6 py-3",4,"ngIf"],[4,"ngIf"],[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-semibold","text-[#0b1220]"],[1,"mt-1","text-sm","text-[#526179]"],[1,"border-b","border-[#DDE6F6]","bg-[#EBF0F7]","px-6","py-3"],[1,"grid","grid-cols-12","gap-4","text-xs","font-semibold","uppercase","tracking-wider","text-[#526179]"],[1,"col-span-2"],[1,"col-span-3"],[1,"grid","grid-cols-16","gap-4","text-xs","font-semibold","uppercase","tracking-wider","text-[#526179]"],[1,"col-span-1"],[1,"col-span-4"],["class","quote-row",4,"ngFor","ngForOf"],[1,"quote-row"],[1,"grid","grid-cols-12","gap-4","items-center","px-6","py-4","border-b","border-[#EBECEE]","transition-colors",3,"ngClass"],[1,"col-span-2","text-sm","text-[#526179]"],[1,"col-span-3","text-sm","font-semibold","text-[#0b1220]"],[1,"col-span-3","text-sm","text-[#324153]",3,"title"],["data-testid","provider-tender-status-cell",1,"col-span-2","min-w-0"],[1,"status-badge","max-w-full","truncate","rounded-full","px-2","text-xs","font-semibold","leading-5",3,"title","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,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-3","py-1.5","text-sm","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",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,"grid","grid-cols-16","gap-4","items-center","px-6","py-4","border-b","border-[#EBECEE]","transition-colors",3,"ngClass"],[1,"col-span-1","flex","items-center","gap-1"],["class","rounded-lg p-1.5 text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]",3,"title","click",4,"ngIf"],[1,"col-span-3","text-sm","font-semibold","text-[#0b1220]",3,"title"],[1,"col-span-2","min-w-0"],[1,"col-span-2","text-sm"],["class","flex items-center space-x-1",4,"ngIf"],[1,"col-span-4","flex","flex-wrap","items-center","gap-2"],[1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-3","py-1.5","text-sm","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["class","inline-flex items-center rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","Edit tender",3,"click",4,"ngIf"],["class","inline-flex items-center rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","Broadcast message to all invited providers",3,"click",4,"ngIf"],["class","inline-flex items-center gap-1 rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","[TEST] Start tender - updates status to 'launched'",3,"click",4,"ngIf"],["class","inline-flex items-center gap-1 rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","[TEST] Close tender - updates status to 'closed'",3,"click",4,"ngIf"],["class","border-t border-[#EBECEE] bg-[#F7F9FD] px-6 py-4",4,"ngIf"],[1,"rounded-lg","p-1.5","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click","title"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4","transition-transform"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],[1,"flex","items-center","space-x-1"],["title","Download attachment",1,"flex","items-center","space-x-1","text-[#1f4fbf]","hover:text-[#183f99]","disabled:text-gray-300",3,"click","disabled"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"],[1,"text-xs","truncate","max-w-[100px]"],["title","Edit tender",1,"inline-flex","items-center","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["title","Broadcast message to all invited providers",1,"inline-flex","items-center","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["title","[TEST] Start tender - updates status to 'launched'",1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","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-3","w-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 10V3L4 14h7v7l9-11h-7z"],["title","[TEST] Close tender - updates status to 'closed'",1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"],[1,"border-t","border-[#EBECEE]","bg-[#F7F9FD]","px-6","py-4"],[1,"ml-8"],[1,"mb-3","text-sm","font-semibold","text-[#324153]"],["class","flex items-center justify-center py-4",4,"ngIf"],["class","rounded-2xl border border-[#EBECEE] bg-white py-6 text-center text-sm text-[#526179]",4,"ngIf"],[1,"flex","items-center","justify-center","py-4"],[1,"h-6","w-6","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[1,"ml-2","text-sm","text-[#526179]"],[1,"border-b","border-[#DDE6F6]","bg-[#EBF0F7]","px-4","py-2"],[1,"grid","grid-cols-12","gap-4","text-xs","font-semibold","uppercase","text-[#526179]"],["class","px-4 py-3 transition-colors hover:bg-[#EBF0F7]",3,"ngClass",4,"ngFor","ngForOf"],[1,"px-4","py-3","transition-colors","hover:bg-[#EBF0F7]",3,"ngClass"],[1,"grid","grid-cols-12","gap-4","items-center","text-sm"],[1,"col-span-4","font-semibold","text-[#0b1220]"],[1,"status-badge","max-w-full","truncate","rounded-full","px-2","py-0.5","text-xs","font-semibold","leading-5",3,"title","ngClass"],["class","flex items-center space-x-1 text-[#1f4fbf] hover:text-[#183f99]","title","Download attachment",3,"click",4,"ngIf"],[1,"col-span-3","flex","items-center","gap-2"],["title","Chat",1,"rounded-lg","p-1","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],[1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-2","py-1","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["title","Download attachment",1,"flex","items-center","space-x-1","text-[#1f4fbf]","hover:text-[#183f99]",3,"click"],[1,"text-xs","truncate","max-w-[80px]"],[1,"rounded-2xl","border","border-[#EBECEE]","bg-white","py-6","text-center","text-sm","text-[#526179]"],["fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"mx-auto","h-8","w-8","text-gray-400","mb-2"],[1,"fixed","inset-0","z-50","h-full","w-full","overflow-y-auto","bg-[#0b1220]/45","px-4","py-8"],[1,"relative","mx-auto","mt-12","w-full","max-w-md","rounded-2xl","border","border-[#EBECEE]","bg-white","p-6","shadow-[0_20px_50px_rgba(11,18,32,0.24)]"],[1,"mt-3"],[1,"mb-4","text-lg","font-bold","text-[#0b1220]"],[1,"space-y-3"],["class","flex items-center",4,"ngFor","ngForOf"],[1,"mt-6","flex","justify-end","gap-3","border-t","border-[#EBECEE]","pt-4"],[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,"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,"flex","items-center"],["type","radio",1,"h-4","w-4","border-[#B6CAEC]","text-[#1f4fbf]","focus:ring-[#B6CAEC]",3,"ngModelChange","id","ngModel","value"],[1,"ml-3","block","text-sm","font-semibold","text-[#324153]",3,"for"],[1,"mt-1"],["rows","4","placeholder","Type your message to all invited providers...",1,"w-full","rounded-lg","border","border-[#EBECEE]","bg-white","p-3","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"],[1,"mt-4","flex","justify-end","gap-3","border-t","border-[#EBECEE]","pt-4"]],template:function(i,o){1&i&&(e.j41(0,"div",0),e.bIt("click",function(){return o.closeStatusDropdown()}),e.j41(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.qSk(),e.j41(5,"svg",5),e.nrm(6,"path",6),e.k0s()(),e.joV(),e.j41(7,"div",7)(8,"div",8)(9,"h1",9),e.EFF(10,"Tenders Dashboard"),e.k0s(),e.j41(11,"a",10),e.qSk(),e.j41(12,"svg",11),e.nrm(13,"path",12),e.k0s()()()()(),e.joV(),e.j41(14,"div",13),e.DNE(15,_t,4,0,"button",14),e.j41(16,"button",15),e.bIt("click",function(){return o.refreshQuotes()}),e.EFF(17),e.k0s()()(),e.j41(18,"div",16)(19,"div",17)(20,"button",18),e.bIt("click",function(){return o.selectRole(o.UI_ROLES.BUYER)}),e.qSk(),e.j41(21,"svg",19),e.nrm(22,"path",20),e.k0s(),e.EFF(23," As Buyer "),e.k0s(),e.joV(),e.j41(24,"button",18),e.bIt("click",function(){return o.selectRole(o.UI_ROLES.SELLER)}),e.qSk(),e.j41(25,"svg",19),e.nrm(26,"path",21),e.k0s(),e.EFF(27," As Provider "),e.k0s()()(),e.joV(),e.j41(28,"div",22)(29,"div",23),e.qSk(),e.j41(30,"svg",24),e.nrm(31,"path",25),e.k0s(),e.joV(),e.j41(32,"span",26),e.EFF(33,"Status"),e.k0s()(),e.j41(34,"div",27),e.bIt("click",function(s){return s.stopPropagation()}),e.j41(35,"button",28),e.bIt("click",function(s){return o.toggleStatusDropdown(s)}),e.j41(36,"span",29),e.EFF(37),e.k0s(),e.qSk(),e.j41(38,"svg",30),e.nrm(39,"path",31),e.k0s()(),e.DNE(40,bt,6,3,"div",32),e.k0s()(),e.DNE(41,xt,2,0,"div",33)(42,Ct,10,1,"div",34)(43,Ot,6,5,"div",35),e.k0s()(),e.joV(),e.j41(44,"app-confirm-dialog",36),e.bIt("confirm",function(){return o.deleteQuote()})("cancel",function(){return o.showDeleteConfirm=!1}),e.k0s(),e.j41(45,"app-confirm-dialog",37),e.bIt("confirm",function(){return o.genericConfirmCallback&&o.genericConfirmCallback()})("cancel",function(){return o.showGenericConfirm=!1}),e.k0s(),e.DNE(46,Qt,12,2,"div",38),e.j41(47,"app-quote-details-modal",39),e.bIt("close",function(){return o.closeQuoteDetailsModal()})("quoteUpdated",function(s){return o.onQuoteUpdated(s)}),e.k0s(),e.j41(48,"app-chat-modal",40),e.bIt("close",function(){return o.closeChatModal()}),e.k0s(),e.j41(49,"app-attachment-modal",41),e.bIt("close",function(){return o.closeAttachmentModal()})("uploadSuccess",function(s){return o.onAttachmentUploaded(s)}),e.k0s(),e.DNE(50,Yt,11,3,"div",38),e.j41(51,"app-create-tender-modal",42),e.bIt("closeModal",function(){return o.closeCreateTenderModal()})("tenderCreated",function(s){return o.onTenderCreated(s)})("tenderUpdated",function(){return o.onTenderUpdated()}),e.k0s()),2&i&&(e.R7$(15),e.Y8G("ngIf",o.selectedRole===o.UI_ROLES.BUYER),e.R7$(),e.Y8G("disabled",o.loading),e.R7$(),e.SpI(" ",o.loading?"Loading...":"Refresh"," "),e.R7$(3),e.HbH(o.getRoleTabClass(o.UI_ROLES.BUYER)),e.R7$(4),e.HbH(o.getRoleTabClass(o.UI_ROLES.SELLER)),e.R7$(11),e.Y8G("ngClass",o.statusFilter?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] bg-white text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.JRh(o.getStatusFilterLabel()),e.R7$(),e.Y8G("ngClass",o.showStatusDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",o.showStatusDropdown),e.R7$(),e.Y8G("ngIf",o.loading),e.R7$(),e.Y8G("ngIf",o.error),e.R7$(),e.Y8G("ngIf",!o.loading&&!o.error),e.R7$(),e.Y8G("isOpen",o.showDeleteConfirm)("message",o.deleteConfirmMessage),e.R7$(),e.Y8G("isOpen",o.showGenericConfirm)("title",o.genericConfirmTitle)("message",o.genericConfirmMessage)("confirmText",o.genericConfirmButtonText)("confirmButtonClass",o.genericConfirmButtonClass),e.R7$(),e.Y8G("ngIf",o.showStateUpdate),e.R7$(),e.Y8G("isOpen",o.showQuoteDetailsModal)("quoteId",o.selectedQuoteId)("currentUserRole",o.getModalUserRole())("currentUserId",o.currentUserId||""),e.R7$(),e.Y8G("isOpen",o.showChatModal)("quoteId",o.selectedChatQuoteId),e.R7$(),e.Y8G("isOpen",o.showAttachmentModal)("quote",o.selectedAttachmentQuote),e.R7$(),e.Y8G("ngIf",o.showBroadcastModal),e.R7$(),e.Y8G("isOpen",o.showCreateTenderModal)("customerId",o.currentUserId||"")("tenderToEdit",o.tenderToEdit))},dependencies:[_.MD,_.YU,_.Sq,_.bT,_.vh,b.YN,b.me,b.Fm,b.BC,b.vS,k.w,K.h,Z.d,ee.w,ht],styles:[".status-badge[_ngcontent-%COMP%]{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;border-width:1px;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.status-pending[_ngcontent-%COMP%]{background-color:#fff8e6;border-color:#f2d28a;color:#7a4d00}.status-inProgress[_ngcontent-%COMP%]{background-color:#ebf0f7;border-color:#b6caec;color:#1f4fbf}.status-approved[_ngcontent-%COMP%]{background-color:#eaf8f1;border-color:#a8ddc8;color:#006b4a}.status-rejected[_ngcontent-%COMP%]{background-color:#fff1f1;border-color:#f4c7c7;color:#b42318}.status-cancelled[_ngcontent-%COMP%]{background-color:#f2f4f8;border-color:#cbd3df;color:#324153}.status-accepted[_ngcontent-%COMP%]{background-color:#eaf8f1;border-color:#a8ddc8;color:#006b4a}.status-unknown[_ngcontent-%COMP%]{background-color:#f2f4f8;border-color:#cbd3df;color:#526179}.status-draft[_ngcontent-%COMP%]{background-color:#fff8e6;border-color:#f2d28a;color:#7a4d00}.status-pre-launched[_ngcontent-%COMP%]{background-color:#ebf0f7;border-color:#b6caec;color:#1f4fbf}.status-launched[_ngcontent-%COMP%]{background-color:#eaf8f1;border-color:#a8ddc8;color:#006b4a}.status-closed[_ngcontent-%COMP%]{background-color:#f2f4f8;border-color:#cbd3df;color:#324153}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}"]})}}return n})();const Ut=[{path:"",component:J}];var Vt=c(8944);let Xt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[_.MD,T.iI.forChild(Ut),J,Vt.z,k.w]})}}return n})()}}]); \ No newline at end of file diff --git a/portal/bae-frontend/365.89ea9470c9c2384e.js b/portal/bae-frontend/365.89ea9470c9c2384e.js deleted file mode 100644 index 88b07db8..00000000 --- a/portal/bae-frontend/365.89ea9470c9c2384e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[365],{4365:(Jt,A,c)=>{c.r(A),c.d(A,{TendersModule:()=>Xt});var _=c(177),T=c(1600),e=c(4438),b=c(9417),g=c(6354),S=c(7468),v=c(7673),x=c(9437),F=c(5558),$=c(8508),M=c(3077),P=c(7473),L=c(452),w=c(5312),G=c(8944),k=c(3836),Z=c(6964),ee=c(5586),te=c(3636),m=c(467),N=c(1626);const O=[{code:"BL",label:"Baseline"},{code:"P",label:"Professional"},{code:"PP",label:"Professional+"}];function q(n){return!!(n.categories.length||n.countries.length||n.complianceLevels.length)}function Q(n,a){return y.apply(this,arguments)}function y(){return(y=(0,m.A)(function*(n,a){if(!n.id)return[n.name];const t=yield a(n.id),i=Array.isArray(t)?t:[];return 0===i.length?[n.name]:(yield Promise.all(i.map(r=>Q(r,a)))).flat()})).apply(this,arguments)}function I(){return(I=(0,m.A)(function*(n,a){const t=Array.isArray(n)?n:[],i=j(t,["DOME Categories"]),o=j(t,["Sector","Sectors","Addressable Sector","Addressable Sectors"]),r=j(t,["Framework","Frameworks","Integration Framework","Integration Frameworks","Integration Type","Integration Types"]),[s,d,u]=yield Promise.all([R(i,a),R(o,a),R(r,a)]);return{serviceCategories:s,addressableSectors:d,integrationFrameworks:u}})).apply(this,arguments)}function D(n){return Array.from(new Set(n.filter(Boolean)))}function j(n,a){const t=new Set(a.map(Y));return n.find(i=>t.has(Y(i?.name)))}function R(n,a){return B.apply(this,arguments)}function B(){return(B=(0,m.A)(function*(n,a){if(!n?.id)return[];try{const t=yield a(n.id);return Array.isArray(t)?t:[]}catch{return[]}})).apply(this,arguments)}function Y(n){return(n??"").normalize("NFKD").toLowerCase().replace(/[^a-z0-9]+/g,"")}new Intl.DisplayNames(["en"],{type:"region"});let le=(()=>{class n{constructor(){this.http=(0,e.WQX)(N.Qq),this.endpoint=`${w.c.BASE_URL}/party/organization`}getProviders(t={}){let i=new N.Nl;t.fields&&(i=i.set("fields",t.fields)),void 0!==t.offset&&(i=i.set("offset",t.offset.toString())),void 0!==t.limit&&(i=i.set("limit",t.limit.toString()));const o=`${this.endpoint}${i.toString()?"?"+i.toString():""}`;return this.http.get(o).pipe((0,g.T)(r=>Array.isArray(r)?r:[]),(0,x.W)(r=>(console.warn("Provider API failed:",r),(0,v.of)([]))))}getProviderById(t){const i=`${this.endpoint}/${t}`,o=i.startsWith("https://"),r=o?`https://api.allorigins.win/get?url=${encodeURIComponent(i)}`:i;return this.http.get(r).pipe((0,g.T)(s=>o?JSON.parse(s.contents):s),(0,x.W)(s=>{throw console.warn("Provider by ID API failed:",s),s}))}getProvidersForTender(){const t=this.endpoint,i=t.startsWith("https://"),o=i?`https://api.allorigins.win/get?url=${encodeURIComponent(t)}`:t;return this.http.get(o).pipe((0,g.T)(r=>{const s=i?JSON.parse(r.contents):r;return Array.isArray(s)?s:[]}),(0,x.W)(r=>(console.warn("Providers for tender API failed:",r),(0,v.of)([]))))}getProvidersForTenderNew(t){const i=this.buildBackendUrl(w.c.searchOrganizationsEndpoint);return this.http.post(i,t).pipe((0,g.T)(o=>Array.isArray(o)?o:o?.data&&Array.isArray(o.data)?o.data:[]))}getProviderCountryOptions(t="en"){return this.http.get(w.c.providerCountriesUrl||"https://raw.githubusercontent.com/DOME-Marketplace/eu-eea-countries/refs/heads/main/countries.json").pipe((0,g.T)(o=>function re(n,a="en"){return Object.entries(n??{}).map(([t,i])=>({code:t.toUpperCase(),label:i?.[a]??i?.en??Object.values(i??{})[0]??t.toUpperCase()})).sort((t,i)=>t.label.localeCompare(i.label))}(o,t)),(0,x.W)(o=>(console.warn("Provider country list failed:",o),(0,v.of)([]))))}getFilterOptions(){const t=this.buildBackendUrl(w.c.searchOrganizationsEndpoint).replace(/\/searchOrganizations.*$/,""),i=this.http.get(`${t}/categories`).pipe((0,g.T)(s=>Array.isArray(s)?s:Array.isArray(s?.data)?s.data:[]),(0,x.W)(s=>(console.warn("Categories API failed:",s),(0,v.of)([])))),o=this.http.get(`${t}/countries`).pipe((0,g.T)(s=>Array.isArray(s)?s:Array.isArray(s?.data)?s.data:[]),(0,x.W)(s=>(console.warn("Countries API failed:",s),(0,v.of)([])))),r=this.http.get(`${t}/complianceLevels`).pipe((0,g.T)(s=>Array.isArray(s)?s:Array.isArray(s?.data)?s.data:[]),(0,x.W)(s=>(console.warn("ComplianceLevels API failed:",s),(0,v.of)([]))));return(0,S.p)({categories:i,countries:o,complianceLevels:r})}buildBackendUrl(t){return/^https?:\/\//i.test(t)?t:`${w.c.BASE_URL.replace(/\/+$/,"")}${t.startsWith("/")?t:`/${t}`}`}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var ce=c(7387),h=c(2087),l=c(8058);const U=/^(\d{4})-(\d{2})-(\d{2})$/;function V(n){return`${n.getFullYear()}-${String(n.getMonth()+1).padStart(2,"0")}-${String(n.getDate()).padStart(2,"0")}`}function X(n){const a=U.exec(n);if(!a)return null;const[,t,i,o]=a;return new Date(Number(t),Number(i)-1,Number(o))}function z(n,a){return!(!n||!a)&&n{class n{constructor(){this.value="",this.min="",this.placeholder="DD/MM/YYYY",this.disabled=!1,this.valueChange=new e.bkB,this.weekDayLabels=["Mo","Tu","We","Th","Fr","Sa","Su"],this.isCalendarOpen=!1,this.visibleMonth=new Date,this.todayIso=V(new Date)}ngOnChanges(t){if(t.value&&this.value){const i=X(this.value);i&&(this.visibleMonth=i)}}closeCalendar(){this.isCalendarOpen=!1}get selectedDateLabel(){return function ue(n,a="DD/MM/YYYY"){const t=U.exec(n);if(!t)return a;const[,i,o,r]=t;return`${r}/${o}/${i}`}(this.value,this.placeholder)}get visibleMonthLabel(){return this.visibleMonth.toLocaleDateString("en-GB",{month:"long",year:"numeric"})}get calendarDays(){return function fe(n){const a=new Date(n.getFullYear(),n.getMonth(),1),t=(a.getDay()+6)%7,i=new Date(a);return i.setDate(a.getDate()-t),Array.from({length:42},(o,r)=>{const s=new Date(i);return s.setDate(i.getDate()+r),{iso:V(s),day:s.getDate(),inCurrentMonth:s.getMonth()===n.getMonth()}})}(this.visibleMonth)}get isTodayDisabled(){return z(this.todayIso,this.min)}toggleCalendar(){this.disabled||(this.visibleMonth=X(this.value)??new Date,this.isCalendarOpen=!this.isCalendarOpen)}showPreviousMonth(){this.visibleMonth=J(this.visibleMonth,-1)}showNextMonth(){this.visibleMonth=J(this.visibleMonth,1)}selectDay(t){this.isDisabled(t)||(this.valueChange.emit(t.iso),this.isCalendarOpen=!1)}selectToday(){this.isTodayDisabled||(this.valueChange.emit(this.todayIso),this.isCalendarOpen=!1)}clearDate(){this.valueChange.emit(""),this.isCalendarOpen=!1}isDisabled(t){return z(t.iso,this.min)}getDayClass(t){return t.iso===this.value?"bg-[#1f4fbf] text-white hover:bg-[#183f99]":this.isDisabled(t)?"text-[#CBD3DF]":t.iso===this.todayIso?"bg-[#EBF0F7] text-[#1f4fbf] hover:bg-[#DDE6F6]":t.inCurrentMonth?"text-[#0b1220] hover:bg-[#EBF0F7]":"text-[#9AA6B8] hover:bg-[#F7F9FD]"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-tender-date-field"]],hostBindings:function(i,o){1&i&&e.bIt("click",function(){return o.closeCalendar()},!1,e.EBC)},inputs:{value:"value",min:"min",placeholder:"placeholder",disabled:"disabled"},outputs:{valueChange:"valueChange"},standalone:!0,features:[e.OA$,e.aNF],decls:7,vars:4,consts:[[1,"relative",3,"click"],["type","button",1,"flex","h-12","w-full","items-center","justify-between","rounded-lg","border","border-[#EBECEE]","bg-white","px-4","text-left","text-[15px]","text-[#0b1220]","transition-colors","hover:border-[#1f4fbf]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]","disabled:cursor-not-allowed","disabled:bg-[#F7F9FD]","disabled:text-[#9AA6B8]",3,"click","disabled"],[3,"ngClass"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5","text-[#526179]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M8 7V3m8 4V3M4 11h16M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z"],["class","absolute left-0 top-full z-[80] mt-2 w-[320px] rounded-2xl border border-[#EBECEE] bg-white p-3 shadow-[0_12px_32px_rgba(11,18,32,0.16)]",4,"ngIf"],[1,"absolute","left-0","top-full","z-[80]","mt-2","w-[320px]","rounded-2xl","border","border-[#EBECEE]","bg-white","p-3","shadow-[0_12px_32px_rgba(11,18,32,0.16)]"],[1,"mb-3","flex","items-center","justify-between"],["type","button","aria-label","Previous month",1,"rounded-lg","p-2","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.2","d","M15 19l-7-7 7-7"],[1,"text-sm","font-semibold","text-[#0b1220]"],["type","button","aria-label","Next month",1,"rounded-lg","p-2","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.2","d","M9 5l7 7-7 7"],[1,"grid","grid-cols-7","gap-1","text-center","text-xs","font-semibold","text-[#526179]"],[4,"ngFor","ngForOf"],[1,"mt-2","grid","grid-cols-7","gap-1"],["type","button","class","flex h-9 items-center justify-center rounded-lg text-sm font-semibold transition-colors disabled:cursor-not-allowed",3,"disabled","ngClass","click",4,"ngFor","ngForOf"],[1,"mt-3","flex","items-center","justify-between","border-t","border-[#EBECEE]","pt-3"],["type","button",1,"rounded-lg","px-3","py-1.5","text-sm","font-semibold","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["type","button",1,"rounded-lg","px-3","py-1.5","text-sm","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]","disabled:cursor-not-allowed","disabled:text-[#9AA6B8]",3,"click","disabled"],["type","button",1,"flex","h-9","items-center","justify-center","rounded-lg","text-sm","font-semibold","transition-colors","disabled:cursor-not-allowed",3,"click","disabled","ngClass"]],template:function(i,o){1&i&&(e.j41(0,"div",0),e.bIt("click",function(s){return s.stopPropagation()}),e.j41(1,"button",1),e.bIt("click",function(){return o.toggleCalendar()}),e.j41(2,"span",2),e.EFF(3),e.k0s(),e.qSk(),e.j41(4,"svg",3),e.nrm(5,"path",4),e.k0s()(),e.DNE(6,_e,19,4,"div",5),e.k0s()),2&i&&(e.R7$(),e.Y8G("disabled",o.disabled),e.R7$(),e.Y8G("ngClass",o.value?"font-semibold text-[#0b1220]":"text-[#9AA6B8]"),e.R7$(),e.SpI(" ",o.selectedDateLabel," "),e.R7$(3),e.Y8G("ngIf",o.isCalendarOpen))},dependencies:[_.MD,_.YU,_.Sq,_.bT],encapsulation:2})}}return n})();function ve(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",12)(2,"label",13),e.EFF(3," Tender Title * "),e.k0s(),e.j41(4,"input",14),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.tenderTitle,o)||(r.tenderTitle=o),e.Njj(o)}),e.k0s(),e.j41(5,"p",15),e.EFF(6,"This will be the main description of your tender"),e.k0s()(),e.j41(7,"div",16)(8,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.closeTenderModal())}),e.EFF(9," Cancel "),e.k0s(),e.j41(10,"button",18),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.saveInitialTender())}),e.EFF(11),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(4),e.R50("ngModel",t.tenderTitle),e.R7$(6),e.Y8G("disabled",!t.tenderTitle.trim()||t.tenderLoading),e.R7$(),e.SpI(" ",t.tenderLoading?"Saving...":"Save"," ")}}function be(n,a){if(1&n&&(e.j41(0,"p",35),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.step2ValidationError)}}function xe(n,a){if(1&n&&(e.j41(0,"p",35),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(t.step2ValidationError)}}function Ce(n,a){if(1&n&&(e.j41(0,"div",36)(1,"div",37)(2,"div",38),e.qSk(),e.j41(3,"svg",39),e.nrm(4,"path",40),e.k0s(),e.joV(),e.j41(5,"div",41)(6,"p",42),e.EFF(7,"Current PDF"),e.k0s(),e.j41(8,"p",43),e.EFF(9),e.k0s()()(),e.j41(10,"span",44),e.EFF(11,"Attached"),e.k0s()(),e.j41(12,"p",45),e.EFF(13,"Upload a new file to replace the existing attachment"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(9),e.JRh(t.existingAttachment.name)}}function Ee(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Fill in all fields to continue "),e.k0s())}function Fe(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",19)(2,"label",20),e.EFF(3,"Tender Title"),e.k0s(),e.j41(4,"p",21),e.EFF(5),e.k0s()(),e.j41(6,"div",22)(7,"p",23),e.EFF(8),e.k0s()(),e.j41(9,"div",12)(10,"label",24),e.EFF(11," Tender Start Date * "),e.k0s(),e.j41(12,"app-tender-date-field",25),e.mxI("valueChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.requestedCompletionDate,o)||(r.requestedCompletionDate=o),e.Njj(o)}),e.k0s(),e.j41(13,"p",26),e.EFF(14,"Format: DD/MM/YYYY"),e.k0s(),e.DNE(15,be,2,1,"p",27),e.k0s(),e.j41(16,"div",12)(17,"label",28),e.EFF(18," Tender End Date * "),e.k0s(),e.j41(19,"app-tender-date-field",29),e.mxI("valueChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.expectedCompletionDate,o)||(r.expectedCompletionDate=o),e.Njj(o)}),e.k0s(),e.j41(20,"p",26),e.EFF(21,"Format: DD/MM/YYYY"),e.k0s(),e.DNE(22,xe,2,1,"p",27),e.k0s(),e.j41(23,"div",12)(24,"label",30),e.EFF(25," PDF Attachment * "),e.k0s(),e.DNE(26,Ce,14,1,"div",31),e.j41(27,"input",32),e.bIt("change",function(o){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onPdfFileSelected(o))}),e.k0s(),e.j41(28,"p",26),e.EFF(29),e.k0s()(),e.j41(30,"div",16)(31,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.closeTenderModal())}),e.EFF(32," Cancel "),e.k0s(),e.j41(33,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.proceedToProviderSelection())}),e.EFF(34),e.DNE(35,Ee,2,0,"span",34),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(5),e.JRh(t.tenderTitle),e.R7$(3),e.JRh(t.TENDER_STEP2_DESCRIPTION),e.R7$(4),e.R50("value",t.requestedCompletionDate),e.Y8G("min",t.minDate),e.R7$(3),e.Y8G("ngIf",t.requestedCompletionDate&&t.step2ValidationError&&t.step2ValidationError.includes("Start date")),e.R7$(4),e.R50("value",t.expectedCompletionDate),e.Y8G("min",t.minDate),e.R7$(3),e.Y8G("ngIf",t.expectedCompletionDate&&t.step2ValidationError&&(t.step2ValidationError.includes("End date")||t.step2ValidationError.includes("End Date must be after"))),e.R7$(4),e.Y8G("ngIf",t.existingAttachment),e.R7$(3),e.SpI(" ",t.existingAttachment?"Select a new file to upload or keep the current one":"Only PDF files allowed"," \u2014 Max size 10MB "),e.R7$(4),e.Y8G("disabled",!t.isStep2Complete()||t.tenderLoading)("title",t.step2ValidationError),e.R7$(),e.SpI(" ",t.tenderLoading?"Saving...":"Next: Select Providers"," "),e.R7$(),e.Y8G("ngIf",!t.isStep2Complete())}}function we(n,a){if(1&n&&(e.j41(0,"div",51)(1,"p",52),e.EFF(2,"PDF Attachment"),e.k0s(),e.j41(3,"div",62),e.qSk(),e.j41(4,"svg",63),e.nrm(5,"path",64)(6,"path",65),e.k0s(),e.joV(),e.j41(7,"p",66),e.EFF(8),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(8),e.JRh((null==t.existingAttachment?null:t.existingAttachment.name)||(null==t.selectedPdfFile?null:t.selectedPdfFile.name))}}function Se(n,a){1&n&&(e.j41(0,"div",67),e.nrm(1,"div",68),e.k0s())}function Te(n,a){if(1&n&&(e.j41(0,"div",69)(1,"p",70),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(2),e.JRh(t.tenderError)}}function ke(n,a){if(1&n&&(e.j41(0,"p",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",null==t.provider.externalReference||null==t.provider.externalReference[0]?null:t.provider.externalReference[0].name," ")}}function ye(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",100)(1,"div",101)(2,"p",42),e.EFF(3),e.k0s(),e.DNE(4,ke,2,1,"p",102),e.k0s(),e.j41(5,"button",103),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(5);return e.Njj(r.removeInvitedProvider(o.quoteId,o.provider.id))}),e.qSk(),e.j41(6,"svg",104),e.nrm(7,"path",9),e.k0s()()()}if(2&n){const t=a.$implicit;e.R7$(3),e.SpI(" ",t.provider.tradingName||"Unnamed Provider"," "),e.R7$(),e.Y8G("ngIf",null==t.provider.externalReference||null==t.provider.externalReference[0]?null:t.provider.externalReference[0].name)}}function Ie(n,a){if(1&n&&(e.j41(0,"div",72)(1,"label",73),e.EFF(2),e.k0s(),e.j41(3,"div",98),e.DNE(4,ye,8,2,"div",99),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(2),e.SpI(" Already Invited Providers (",t.invitedProviders.length,") "),e.R7$(2),e.Y8G("ngForOf",t.invitedProviders)}}function De(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading categories..."),e.k0s())}function je(n,a){1&n&&(e.qSk(),e.j41(0,"svg",112),e.nrm(1,"path",113),e.k0s())}function Re(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.selectServiceCategory(r,o))}),e.j41(1,"span",114),e.EFF(2),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",(null==i.selectedServiceCategory?null:i.selectedServiceCategory.id)===t.id?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(2),e.JRh(t.name)}}function Be(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No category options available"),e.k0s())}function Ae(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",105),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,De,2,0,"div",106),e.j41(2,"button",107),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(4);return e.Njj(r.selectServiceCategory(null,o))}),e.j41(3,"span",108),e.EFF(4,"All Categories"),e.k0s(),e.DNE(5,je,2,0,"svg",109),e.k0s(),e.DNE(6,Re,3,2,"button",110)(7,Be,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.catalogueOptionsLoading),e.R7$(),e.Y8G("ngClass",t.selectedServiceCategory?"hover:bg-[#EBF0F7]":"bg-[#DDE6F6]"),e.R7$(3),e.Y8G("ngIf",!t.selectedServiceCategory),e.R7$(),e.Y8G("ngForOf",t.serviceCategoryOptions),e.R7$(),e.Y8G("ngIf",!t.catalogueOptionsLoading&&0===t.serviceCategoryOptions.length)}}function $e(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedComplianceLevels.length)}}function Me(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function Pe(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",118),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleComplianceLevel(r.code,o))}),e.j41(1,"span",119),e.DNE(2,Me,2,0,"svg",120),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isComplianceSelected(t.code)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isComplianceSelected(t.code)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isComplianceSelected(t.code)),e.R7$(2),e.JRh(t.label)}}function Le(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",116),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Pe,5,4,"button",117),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngForOf",t.complianceLevelOptions)}}function Ge(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedSectorIds.length)}}function Ne(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading sectors..."),e.k0s())}function Oe(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function qe(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleAddressableSector(r,o))}),e.j41(1,"span",119),e.DNE(2,Oe,2,0,"svg",120),e.k0s(),e.j41(3,"span",78),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isSectorSelected(t)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isSectorSelected(t)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isSectorSelected(t)),e.R7$(2),e.JRh(t.name)}}function Qe(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No sector options available"),e.k0s())}function Ye(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",122),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Ne,2,0,"div",106)(2,qe,5,4,"button",110)(3,Qe,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.catalogueOptionsLoading),e.R7$(),e.Y8G("ngForOf",t.addressableSectorOptions),e.R7$(),e.Y8G("ngIf",!t.catalogueOptionsLoading&&0===t.addressableSectorOptions.length)}}function Ue(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedCountryCodes.length)}}function Ve(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading countries..."),e.k0s())}function Xe(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function ze(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleCountry(r.code,o))}),e.j41(1,"span",119),e.DNE(2,Xe,2,0,"svg",120),e.k0s(),e.j41(3,"span",78),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isCountrySelected(t.code)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isCountrySelected(t.code)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isCountrySelected(t.code)),e.R7$(2),e.JRh(t.label)}}function Je(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No country options available"),e.k0s())}function We(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",123),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Ve,2,0,"div",106)(2,ze,5,4,"button",110)(3,Je,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.countryOptionsLoading),e.R7$(),e.Y8G("ngForOf",t.countryOptions),e.R7$(),e.Y8G("ngIf",!t.countryOptionsLoading&&0===t.countryOptions.length)}}function He(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.JRh(t.selectedFrameworkIds.length)}}function Ke(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"Loading frameworks..."),e.k0s())}function Ze(n,a){1&n&&(e.qSk(),e.j41(0,"svg",121),e.nrm(1,"path",113),e.k0s())}function et(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(5);return e.Njj(s.toggleIntegrationFramework(r,o))}),e.j41(1,"span",119),e.DNE(2,Ze,2,0,"svg",120),e.k0s(),e.j41(3,"span",78),e.EFF(4),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(5);e.Y8G("ngClass",i.isFrameworkSelected(t)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("ngClass",i.isFrameworkSelected(t)?"border-[#1f4fbf] bg-[#1f4fbf] text-white":"border-[#B6CAEC] bg-white"),e.R7$(),e.Y8G("ngIf",i.isFrameworkSelected(t)),e.R7$(2),e.JRh(t.name)}}function tt(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1,"No framework options available"),e.k0s())}function ot(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",105),e.bIt("click",function(o){return e.eBV(t),e.Njj(o.stopPropagation())}),e.DNE(1,Ke,2,0,"div",106)(2,et,5,4,"button",110)(3,tt,2,0,"div",106),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",t.catalogueOptionsLoading),e.R7$(),e.Y8G("ngForOf",t.integrationFrameworkOptions),e.R7$(),e.Y8G("ngIf",!t.catalogueOptionsLoading&&0===t.integrationFrameworkOptions.length)}}function it(n,a){if(1&n&&(e.j41(0,"div",124),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",t.providerSearchWarning," ")}}function nt(n,a){if(1&n&&(e.j41(0,"p",130),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(null==t.provider.externalReference||null==t.provider.externalReference[0]?null:t.provider.externalReference[0].name)}}function rt(n,a){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"input",126),e.bIt("change",function(){const o=e.eBV(t).ngIf,r=e.XpG(5);return e.Njj(r.toggleProviderSelection(o))}),e.k0s(),e.j41(2,"label",127)(3,"p",128),e.EFF(4),e.k0s(),e.DNE(5,nt,2,1,"p",129),e.k0s(),e.bVm()}if(2&n){const t=a.ngIf,i=e.XpG().$implicit;e.R7$(),e.Y8G("id","provider-"+t)("checked",i.selected),e.R7$(),e.Y8G("for","provider-"+t),e.R7$(2),e.JRh(i.provider.tradingName||"Unnamed Provider"),e.R7$(),e.Y8G("ngIf",null==i.provider.externalReference||null==i.provider.externalReference[0]?null:i.provider.externalReference[0].name)}}function st(n,a){if(1&n&&(e.j41(0,"div",125),e.DNE(1,rt,6,5,"ng-container",11),e.k0s()),2&n){const t=a.$implicit;e.Y8G("ngClass",t.selected?"border-l-[#1f4fbf] bg-[#EBF0F7]":"border-l-transparent hover:bg-[#F7F9FD]"),e.R7$(),e.Y8G("ngIf",t.provider.id)}}function at(n,a){1&n&&(e.j41(0,"p",133),e.EFF(1," No provider candidates match the selected filters. "),e.k0s())}function dt(n,a){1&n&&(e.j41(0,"p",133),e.EFF(1,"No more providers available."),e.k0s())}function lt(n,a){if(1&n&&(e.j41(0,"div",131),e.DNE(1,at,2,0,"p",132)(2,dt,2,0,"ng-template",null,0,e.C5r),e.k0s()),2&n){const t=e.sdS(3),i=e.XpG(4);e.R7$(),e.Y8G("ngIf",i.hasActiveFilters())("ngIfElse",t)}}function ct(n,a){if(1&n){const t=e.RV6();e.j41(0,"div"),e.DNE(1,Ie,5,2,"div",71),e.j41(2,"div",72)(3,"label",73),e.EFF(4," Select Providers to Invite "),e.k0s(),e.j41(5,"div",74)(6,"div",75)(7,"div",76)(8,"button",77),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("serviceCategory",o))}),e.j41(9,"span",78),e.EFF(10),e.k0s(),e.qSk(),e.j41(11,"svg",79),e.nrm(12,"path",80),e.k0s()(),e.DNE(13,Ae,8,5,"div",81),e.k0s(),e.joV(),e.j41(14,"div",76)(15,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("compliance",o))}),e.EFF(16," Compliance Levels "),e.DNE(17,$e,2,1,"span",83),e.qSk(),e.j41(18,"svg",84),e.nrm(19,"path",80),e.k0s()(),e.DNE(20,Le,2,1,"div",85),e.k0s(),e.joV(),e.j41(21,"div",76)(22,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("sector",o))}),e.EFF(23," Addressable Sectors "),e.DNE(24,Ge,2,1,"span",83),e.qSk(),e.j41(25,"svg",84),e.nrm(26,"path",80),e.k0s()(),e.DNE(27,Ye,4,3,"div",86),e.k0s(),e.joV(),e.j41(28,"div",76)(29,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("country",o))}),e.EFF(30," Country "),e.DNE(31,Ue,2,1,"span",83),e.qSk(),e.j41(32,"svg",84),e.nrm(33,"path",80),e.k0s()(),e.DNE(34,We,4,3,"div",87),e.k0s(),e.joV(),e.j41(35,"div",76)(36,"button",82),e.bIt("click",function(o){e.eBV(t);const r=e.XpG(3);return e.Njj(r.toggleTenderFilterDropdown("framework",o))}),e.EFF(37," Integration Framework "),e.DNE(38,He,2,1,"span",83),e.qSk(),e.j41(39,"svg",84),e.nrm(40,"path",80),e.k0s()(),e.DNE(41,ot,4,3,"div",81),e.k0s()(),e.joV(),e.j41(42,"div",88)(43,"p",89),e.EFF(44),e.k0s(),e.j41(45,"button",90),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.clearFilters())}),e.qSk(),e.j41(46,"svg",91),e.nrm(47,"path",92),e.k0s(),e.EFF(48," Clear all "),e.k0s()(),e.DNE(49,it,2,1,"div",93),e.k0s(),e.joV(),e.j41(50,"div",94),e.DNE(51,st,2,2,"div",95)(52,lt,4,2,"div",96),e.k0s(),e.j41(53,"p",97),e.EFF(54),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.invitedProviders.length>0),e.R7$(7),e.Y8G("ngClass",t.selectedServiceCategory?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.JRh((null==t.selectedServiceCategory?null:t.selectedServiceCategory.name)||"All Categories"),e.R7$(),e.Y8G("ngClass",t.showServiceCategoryDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showServiceCategoryDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedComplianceLevels.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedComplianceLevels.length>0),e.R7$(),e.Y8G("ngClass",t.showComplianceDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showComplianceDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedSectorIds.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedSectorIds.length>0),e.R7$(),e.Y8G("ngClass",t.showSectorDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showSectorDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedCountryCodes.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedCountryCodes.length>0),e.R7$(),e.Y8G("ngClass",t.showCountryDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showCountryDropdown),e.R7$(2),e.Y8G("ngClass",t.selectedFrameworkIds.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.Y8G("ngIf",t.selectedFrameworkIds.length>0),e.R7$(),e.Y8G("ngClass",t.showFrameworkDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",t.showFrameworkDropdown),e.R7$(3),e.SpI("",t.availableProviders.length," provider candidate(s)"),e.R7$(5),e.Y8G("ngIf",t.providerSearchWarning),e.R7$(2),e.Y8G("ngForOf",t.availableProviders),e.R7$(),e.Y8G("ngIf",0===t.availableProviders.length),e.R7$(2),e.SpI(" ",t.selectedProviders.size," provider(s) selected ")}}function ut(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Please select at least one provider "),e.k0s())}function ft(n,a){1&n&&(e.j41(0,"span",46),e.EFF(1," Please invite at least one provider first "),e.k0s())}function pt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"section",47)(2,"div",48)(3,"p",49),e.EFF(4,"Tender Title"),e.k0s(),e.j41(5,"p",50),e.EFF(6),e.k0s()(),e.j41(7,"div",51)(8,"p",52),e.EFF(9,"Dates Set"),e.k0s(),e.j41(10,"div",53)(11,"div",41)(12,"span",54),e.EFF(13,"Start"),e.k0s(),e.j41(14,"span",55),e.EFF(15),e.k0s()(),e.j41(16,"div",41)(17,"span",54),e.EFF(18,"End"),e.k0s(),e.j41(19,"span",55),e.EFF(20),e.k0s()()()(),e.DNE(21,we,9,1,"div",56),e.k0s(),e.DNE(22,Se,2,0,"div",57)(23,Te,3,1,"div",58)(24,ct,55,26,"div",11),e.j41(25,"div",59)(26,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.backToStep2())}),e.EFF(27," \u2190 Back "),e.k0s(),e.j41(28,"div",60)(29,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.closeTenderModal())}),e.EFF(30," Cancel "),e.k0s(),e.j41(31,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.saveProvidersList())}),e.EFF(32),e.DNE(33,ut,2,0,"span",34),e.k0s(),e.j41(34,"button",61),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.finalizeTender())}),e.EFF(35," Submit Tender "),e.DNE(36,ft,2,0,"span",34),e.k0s()()()()}if(2&n){const t=e.XpG(2);e.R7$(6),e.JRh(t.tenderTitle),e.R7$(9),e.JRh(t.formatDateForDisplay(t.requestedCompletionDate)),e.R7$(5),e.JRh(t.formatDateForDisplay(t.expectedCompletionDate)),e.R7$(),e.Y8G("ngIf",t.existingAttachment||t.pdfAttachmentSet),e.R7$(),e.Y8G("ngIf",t.providerSearchLoading),e.R7$(),e.Y8G("ngIf",t.tenderError),e.R7$(),e.Y8G("ngIf",!t.tenderError),e.R7$(7),e.Y8G("disabled",0===t.selectedProviders.size||t.providerInviteSaving||t.providerSearchLoading)("title",0===t.selectedProviders.size?"Please select at least one provider":""),e.R7$(),e.SpI(" ",t.providerInviteSaving?"Inviting...":"Save Providers List"," "),e.R7$(),e.Y8G("ngIf",0===t.selectedProviders.size),e.R7$(),e.Y8G("disabled",0===t.invitedProviders.length||t.tenderLoading||t.providerInviteSaving)("title",0===t.invitedProviders.length?"Please invite at least one provider first":""),e.R7$(2),e.Y8G("ngIf",0===t.invitedProviders.length)}}function ht(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",3),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.closeTenderModal())}),e.j41(1,"div",4),e.bIt("click",function(o){return e.eBV(t),e.XpG().closeTenderFilterDropdowns(),e.Njj(o.stopPropagation())}),e.j41(2,"div",5)(3,"h3",6),e.EFF(4),e.k0s(),e.j41(5,"button",7),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.closeTenderModal())}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s()()(),e.joV(),e.j41(8,"div",10),e.DNE(9,ve,12,3,"div",11)(10,Fe,36,14,"div",11)(11,pt,37,14,"div",11),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(4),e.JRh(t.editingTenderId?"Edit Tender":"Create New Tender"),e.R7$(5),e.Y8G("ngIf",1===t.tenderCreationStep),e.R7$(),e.Y8G("ngIf",2===t.tenderCreationStep),e.R7$(),e.Y8G("ngIf",3===t.tenderCreationStep)}}let _t=(()=>{class n{constructor(){this.isOpen=!1,this.customerId="",this.tenderToEdit=null,this.closeModal=new e.bkB,this.tenderCreated=new e.bkB,this.tenderUpdated=new e.bkB,this.quoteService=(0,e.WQX)($.K),this.notificationService=(0,e.WQX)(P.J),this.localStorage=(0,e.WQX)(M.s),this.providerService=(0,e.WQX)(le),this.api=(0,e.WQX)(ce.F),this.accountService=(0,e.WQX)(L.O),this.router=(0,e.WQX)(T.Ix),this.tenderProviders=[],this.selectedProviders=new Set,this.invitedProviders=[],this.tenderLoading=!1,this.providerSearchLoading=!1,this.providerInviteSaving=!1,this.tenderError=null,this.providerSearchWarning=null,this.showGenericConfirm=!1,this.genericConfirmTitle="",this.genericConfirmMessage="",this.genericConfirmButtonText="Confirm",this.genericConfirmButtonClass="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.genericConfirmCallback=null,this.currentUserId=null,this.countryOptions=[],this.serviceCategoryOptions=[],this.addressableSectorOptions=[],this.integrationFrameworkOptions=[],this.countryOptionsLoading=!1,this.catalogueOptionsLoading=!1,this.complianceLevelOptions=O,this.showServiceCategoryDropdown=!1,this.showComplianceDropdown=!1,this.showSectorDropdown=!1,this.showCountryDropdown=!1,this.showFrameworkDropdown=!1,this.selectedServiceCategory=null,this.selectedServiceCategoryLeafNames=[],this.selectedComplianceLevels=[],this.selectedCountryCodes=[],this.selectedSectorIds=[],this.selectedSectorLeafNames=[],this.selectedFrameworkIds=[],this.selectedFrameworkLeafNames=[],this.leafNameCache=new Map,this.providerLoadSequence=0,this.serviceCategoryResolutionSequence=0,this.sectorResolutionSequence=0,this.frameworkResolutionSequence=0,this._safeInvitedList=[],this.orgFilters={categories:[],countries:[],complianceLevels:[]},this.availableProviders=[],this.tenderTitle="",this.expectedCompletionDate="",this.requestedCompletionDate="",this.expectedDateSet=!1,this.requestedDateSet=!1,this.selectedPdfFile=null,this.pdfAttachmentSet=!1,this.editingTenderId=null,this.existingAttachment=null,this.createdQuoteId=null,this.tenderCreationStep=1,this.TENDER_STEP2_DESCRIPTION=l.te}get minDate(){return(new Date).toISOString().split("T")[0]}ngOnInit(){if(this.customerId)this.currentUserId=this.customerId;else{const t=this.localStorage.getObject("login_items");if(t&&t.logged_as==t.id)this.currentUserId=t.partyId;else if(t&&t.logged_as){const i=t.organizations.find(o=>o.id==t.logged_as);this.currentUserId=i?.partyId}}}ngOnChanges(t){t.tenderToEdit&&this.tenderToEdit&&this.loadTenderForEdit(this.tenderToEdit),t.isOpen&&this.isOpen&&this.tenderToEdit&&this.loadTenderForEdit(this.tenderToEdit)}loadTenderForEdit(t){this.editingTenderId=t.id||null,this.createdQuoteId=t.id||null,this.tenderTitle=t.tenderNote||"",t.expectedFulfillmentStartDate&&(this.requestedCompletionDate=this.formatDateForInput(t.expectedFulfillmentStartDate),this.requestedDateSet=!0),t.effectiveQuoteCompletionDate&&(this.expectedCompletionDate=this.formatDateForInput(t.effectiveQuoteCompletionDate),this.expectedDateSet=!0),t.attachment&&(this.existingAttachment=t.attachment,this.pdfAttachmentSet=!0),this.tenderCreationStep=2}formatDateForInput(t){try{const i=new Date(t),o=i.getFullYear();return`${o}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`}catch(i){return console.error("Error formatting date:",i),""}}closeTenderModal(){this.isOpen=!1,this.tenderCreationStep=1,this.selectedProviders.clear(),this.invitedProviders=[],this.tenderProviders=[],this.tenderError=null,this.providerSearchLoading=!1,this.providerInviteSaving=!1,this.editingTenderId=null,this.resetTenderForm(),this.closeModal.emit()}showConfirmation(t,i,o,r="Confirm",s="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.genericConfirmTitle=t,this.genericConfirmMessage=i,this.genericConfirmButtonText=r,this.genericConfirmButtonClass=s,this.genericConfirmCallback=()=>{o(),this.showGenericConfirm=!1},this.showGenericConfirm=!0}resetTenderForm(){this.tenderTitle="",this.expectedCompletionDate="",this.requestedCompletionDate="",this.expectedDateSet=!1,this.requestedDateSet=!1,this.existingAttachment=null,this.createdQuoteId=null,this.selectedPdfFile=null,this.pdfAttachmentSet=!1,this.invitedProviders=[],this.providerSearchLoading=!1,this.providerInviteSaving=!1}saveInitialTender(){this.tenderTitle.trim()?this.currentUserId?(this.tenderLoading=!0,this.quoteService.createCoordinatorQuote(this.currentUserId,this.tenderTitle.trim()).subscribe({next:t=>{console.log("Coordinator tender created:",t),this.createdQuoteId=t.id||null,this.editingTenderId=t.id||null,this.notificationService.showSuccess("Tender created! Now set the completion dates."),this.tenderLoading=!1,this.tenderCreationStep=2,this.tenderUpdated.emit()},error:t=>{console.error("Error creating tender:",t),this.notificationService.showError("Failed to create tender: "+(t.message||"Unknown error")),this.tenderLoading=!1}})):this.notificationService.showError("User not logged in"):this.notificationService.showError("Tender title is required")}formatDateForAPI(t){if(!t)return"";const[i,o,r]=t.split("-");return`${r}-${o}-${i}`}setExpectedDate(){if(!this.expectedCompletionDate||!this.createdQuoteId)return void this.notificationService.showError("Please select a date");this.tenderLoading=!0;const t=this.formatDateForAPI(this.expectedCompletionDate);this.quoteService.updateQuoteDate(this.createdQuoteId,t,"effective").subscribe({next:i=>{this.expectedDateSet=!0,this.notificationService.showSuccess("Effective completion date set successfully!"),this.tenderLoading=!1,this.tenderUpdated.emit()},error:i=>{console.error("Error setting effective date:",i),this.notificationService.showError("Failed to set effective date: "+(i.message||"Unknown error")),this.tenderLoading=!1}})}setRequestedDate(){if(!this.requestedCompletionDate||!this.createdQuoteId)return void this.notificationService.showError("Please select a date");this.tenderLoading=!0;const t=this.formatDateForAPI(this.requestedCompletionDate);this.quoteService.updateQuoteDate(this.createdQuoteId,t,"expectedFulfillment").subscribe({next:i=>{this.requestedDateSet=!0,this.notificationService.showSuccess("Expected fulfillment start date set successfully!"),this.tenderLoading=!1,this.tenderUpdated.emit()},error:i=>{console.error("Error setting expected fulfillment date:",i),this.notificationService.showError("Failed to set expected fulfillment date: "+(i.message||"Unknown error")),this.tenderLoading=!1}})}onPdfFileSelected(t){const i=t.target,o=i.files?.[0];if(o){if("application/pdf"!==o.type)return this.notificationService.showError("Please select a valid PDF file"),this.selectedPdfFile=null,void(i.value="");this.selectedPdfFile=o,console.log("PDF file selected:",o.name)}else this.selectedPdfFile=null}setPdfAttachment(){this.selectedPdfFile&&this.createdQuoteId?(this.tenderLoading=!0,this.quoteService.addAttachmentToQuote(this.createdQuoteId,this.selectedPdfFile,"").subscribe({next:t=>{this.setAttachmentFromQuoteOrFile(t,this.selectedPdfFile),this.selectedPdfFile=null;const i=document.getElementById("pdfFile");i&&(i.value=""),this.notificationService.showSuccess("PDF attachment uploaded successfully!"),this.tenderLoading=!1},error:t=>{console.error("Error uploading PDF:",t),this.notificationService.showError("Failed to upload PDF: "+(t.message||"Unknown error")),this.tenderLoading=!1}})):this.notificationService.showError("Please select a PDF file")}setAttachmentFromQuoteOrFile(t,i){const o=t?.quoteItem?.flatMap(r=>r?.attachment??[])?.find(r=>r);o?this.existingAttachment={name:o.name||i?.name||"attachment.pdf",mimeType:o.mimeType||i?.type||"application/pdf",content:o.content||"",size:o.size?.amount??i?.size}:i&&(this.existingAttachment={name:i.name,mimeType:i.type||"application/pdf",content:"",size:i.size}),this.pdfAttachmentSet=!!this.existingAttachment}get step2ValidationError(){const t=(new Date).getFullYear(),i=t+10;if(this.requestedCompletionDate){const o=new Date(this.requestedCompletionDate).getFullYear();if(oi)return`Start date year must be between ${t} and ${i}.`}if(this.expectedCompletionDate){const o=new Date(this.expectedCompletionDate).getFullYear();if(oi)return`End date year must be between ${t} and ${i}.`}return this.requestedCompletionDate&&this.expectedCompletionDate&&new Date(this.expectedCompletionDate)<=new Date(this.requestedCompletionDate)?"Tender End Date must be after the Tender Start Date.":this.requestedCompletionDate&&this.expectedCompletionDate?this.selectedPdfFile||this.existingAttachment?"":"A PDF attachment is required.":"Both start and end dates are required."}isStep2Complete(){return""===this.step2ValidationError}proceedToProviderSelection(){if(!this.isStep2Complete()||!this.createdQuoteId)return;this.tenderLoading=!0;const t=this.selectedPdfFile,i=this.formatDateForAPI(this.requestedCompletionDate),o=this.formatDateForAPI(this.expectedCompletionDate);this.quoteService.updateQuoteDate(this.createdQuoteId,i,"expectedFulfillment").pipe((0,F.n)(()=>this.quoteService.updateQuoteDate(this.createdQuoteId,o,"effective")),(0,F.n)(()=>t?this.quoteService.addAttachmentToQuote(this.createdQuoteId,t,""):(0,v.of)(null))).subscribe({next:r=>{t&&(this.setAttachmentFromQuoteOrFile(r,t),this.selectedPdfFile=null),this.tenderLoading=!1,this.notificationService.showSuccess("Tender details saved successfully!"),this.tenderCreationStep=3,this.tenderUpdated.emit(),this.resetTenderFilters(),this.loadFilterOptions(),this.loadTenderProviders()},error:r=>{this.tenderLoading=!1,this.notificationService.showError("Failed to save tender details. Please try again."),console.error("Error saving tender step 2:",r)}})}loadTenderProviders(){const t=++this.providerLoadSequence;this.providerSearchLoading=!0,this.tenderError=null,this.providerSearchWarning=null,this.providerService.getProvidersForTenderNew(this.orgFilters).subscribe({next:i=>{this.isCurrentProviderLoad(t)&&(this.tenderProviders=i??[],console.log("Search loaded providers:",this.tenderProviders.length),this.updateAvailableProviders(),3===this.tenderCreationStep?this.loadInvitedProviders():this.providerSearchLoading=!1)},error:i=>{if(this.isCurrentProviderLoad(t)){if(!function ae(n){return!q(n)}(this.orgFilters))return console.warn("Filtered search endpoint returned an error:",i),this.providerSearchWarning="Unable to apply the selected filters. Provider candidates were cleared to avoid showing unfiltered results.",this.tenderProviders=[],this.providerSearchLoading=!1,void this.updateAvailableProviders();console.warn("Search endpoint returned an error, falling back to full provider list:",i),this.providerService.getProvidersForTender().subscribe({next:o=>{this.isCurrentProviderLoad(t)&&(this.tenderProviders=o,console.log("Fallback loaded providers:",o.length),this.updateAvailableProviders(),3===this.tenderCreationStep?this.loadInvitedProviders():this.providerSearchLoading=!1)},error:o=>{this.isCurrentProviderLoad(t)&&(this.tenderError="Failed to load providers: "+(o.message||"Unknown error"),this.providerSearchLoading=!1,console.error("Fallback endpoint also failed:",o))}})}}})}isCurrentProviderLoad(t){return t===this.providerLoadSequence}emitFilters(){this.orgFilters=function se(n={}){return{categories:D([...n.serviceCategoryLeafNames??[],...n.addressableSectorLeafNames??[],...n.integrationFrameworkLeafNames??[]]),countries:D(n.countryCodes??[]),complianceLevels:D(n.complianceLevels??[])}}({serviceCategoryLeafNames:this.selectedServiceCategoryLeafNames,addressableSectorLeafNames:this.selectedSectorLeafNames,integrationFrameworkLeafNames:this.selectedFrameworkLeafNames,countryCodes:this.selectedCountryCodes,complianceLevels:this.selectedComplianceLevels}),this.loadTenderProviders()}hasActiveFilters(){return q(this.orgFilters)}clearFilters(){this.resetTenderFilters(),this.emitFilters()}resetTenderFilters(){this.serviceCategoryResolutionSequence++,this.sectorResolutionSequence++,this.frameworkResolutionSequence++,this.orgFilters={categories:[],countries:[],complianceLevels:[]},this.selectedServiceCategory=null,this.selectedServiceCategoryLeafNames=[],this.selectedComplianceLevels=[],this.selectedCountryCodes=[],this.selectedSectorIds=[],this.selectedSectorLeafNames=[],this.selectedFrameworkIds=[],this.selectedFrameworkLeafNames=[],this.closeTenderFilterDropdowns()}selectServiceCategory(t,i){var o=this;return(0,m.A)(function*(){i?.stopPropagation();const r=++o.serviceCategoryResolutionSequence;o.selectedServiceCategory=t;const s=t?yield o.resolveLeafNames(t):[];r===o.serviceCategoryResolutionSequence&&(o.selectedServiceCategoryLeafNames=s,o.showServiceCategoryDropdown=!1,o.emitFilters())})()}toggleComplianceLevel(t,i){i.stopPropagation(),this.selectedComplianceLevels=this.toggleValue(this.selectedComplianceLevels,t),this.emitFilters()}toggleCountry(t,i){i.stopPropagation(),this.selectedCountryCodes=this.toggleValue(this.selectedCountryCodes,t),this.emitFilters()}toggleAddressableSector(t,i){var o=this;return(0,m.A)(function*(){i.stopPropagation();const r=++o.sectorResolutionSequence;o.selectedSectorIds=o.toggleValue(o.selectedSectorIds,t.id??t.name);const d=yield o.resolveSelectedLeafNames(o.addressableSectorOptions,o.selectedSectorIds);r===o.sectorResolutionSequence&&(o.selectedSectorLeafNames=d,o.emitFilters())})()}toggleIntegrationFramework(t,i){var o=this;return(0,m.A)(function*(){i.stopPropagation();const r=++o.frameworkResolutionSequence;o.selectedFrameworkIds=o.toggleValue(o.selectedFrameworkIds,t.id??t.name);const d=yield o.resolveSelectedLeafNames(o.integrationFrameworkOptions,o.selectedFrameworkIds);r===o.frameworkResolutionSequence&&(o.selectedFrameworkLeafNames=d,o.emitFilters())})()}isComplianceSelected(t){return this.selectedComplianceLevels.includes(t)}isCountrySelected(t){return this.selectedCountryCodes.includes(t)}isSectorSelected(t){return this.selectedSectorIds.includes(t.id??t.name)}isFrameworkSelected(t){return this.selectedFrameworkIds.includes(t.id??t.name)}toggleTenderFilterDropdown(t,i){i.stopPropagation(),this.showServiceCategoryDropdown="serviceCategory"===t&&!this.showServiceCategoryDropdown,this.showComplianceDropdown="compliance"===t&&!this.showComplianceDropdown,this.showSectorDropdown="sector"===t&&!this.showSectorDropdown,this.showCountryDropdown="country"===t&&!this.showCountryDropdown,this.showFrameworkDropdown="framework"===t&&!this.showFrameworkDropdown}closeTenderFilterDropdowns(){this.showServiceCategoryDropdown=!1,this.showComplianceDropdown=!1,this.showSectorDropdown=!1,this.showCountryDropdown=!1,this.showFrameworkDropdown=!1}toggleValue(t,i){return t.includes(i)?t.filter(o=>o!==i):[...t,i]}resolveSelectedLeafNames(t,i){var o=this;return(0,m.A)(function*(){const r=t.filter(d=>i.includes(d.id??d.name)),s=yield Promise.all(r.map(d=>o.resolveLeafNames(d)));return Array.from(new Set(s.flat()))})()}resolveLeafNames(t){var i=this;return(0,m.A)(function*(){const o=t.id??t.name,r=i.leafNameCache.get(o);if(r)return r;const s=yield Q(t,function(){var d=(0,m.A)(function*(u){const f=yield i.api.getCategoriesByParentId(u).catch(()=>[]);return Array.isArray(f)?f:[]});return function(u){return d.apply(this,arguments)}}());return i.leafNameCache.set(o,s),s})()}toggleProviderSelection(t){const i=this._safeInvitedList.findIndex(o=>o?.id===t);if(i>=0)this._safeInvitedList.splice(i,1);else{const o=this.tenderProviders.find(r=>r.id===t);o&&this._safeInvitedList.push(o)}this.rebuildSelectionAndAvailable()}rebuildSelectionAndAvailable(){this.selectedProviders=new Set(this._safeInvitedList.map(i=>i?.id).filter(i=>!!i));const t=new Set(this.invitedProviders.map(i=>i?.provider?.id).filter(i=>!!i));return this.availableProviders=function me({tenderProviders:n,invitedProviderIds:a,selectedProviderIds:t}){return n.filter(i=>!!i.id&&!a.has(i.id)).map(i=>({provider:{...i},selected:t.has(i.id)}))}({tenderProviders:this.tenderProviders,invitedProviderIds:t,selectedProviderIds:this.selectedProviders}),this.availableProviders}loadInvitedProviders(){var i,t=this;if(!this.createdQuoteId||!this.currentUserId)return console.log("No coordinator quote ID or user ID, skipping invited providers load"),void(this.providerSearchLoading=!1);console.log("Loading invited providers for externalId:",this.createdQuoteId),this.providerSearchLoading=!0,this.quoteService.getTenderingQuotesByUser(this.currentUserId,h.XZ.BUYER).subscribe({next:(i=(0,m.A)(function*(o){console.log("Received tenders:",o);const r=o.filter(d=>d.external_id===t.createdQuoteId&&!!d.id),s=yield Promise.all(r.map(function(){var d=(0,m.A)(function*(u){const f=u.selectedProviders?.[0],p=f?t.tenderProviders.find(E=>E.id===f):void 0;if(p)return{provider:p,quoteId:u.id};let C=f||"Unknown Provider";if(f)try{const E=yield t.accountService.getOrgInfo(f);C=E?.tradingName||E?.name||f}catch{}return{provider:{id:f,tradingName:C},quoteId:u.id}});return function(u){return d.apply(this,arguments)}}()));t.invitedProviders=s,t.rebuildSelectionAndAvailable(),console.log("Total invited providers loaded:",t.invitedProviders.length),t.providerSearchLoading=!1}),function(r){return i.apply(this,arguments)}),error:i=>{console.error("Error loading invited providers:",i),this.providerSearchLoading=!1}})}backToStep2(){this.tenderCreationStep=2}formatDateForDisplay(t){if(!t)return"";const i=t.split("-");if(3===i.length){const[o,r,s]=i;return`${s}/${r}/${o}`}return t}updateAvailableProviders(){this.availableProviders=this.getAvailableProviders()}getAvailableProviders(){return this.rebuildSelectionAndAvailable()}saveProvidersList(){if(0===this.selectedProviders.size)return void this.notificationService.showError("Please select at least one provider");if(!this.createdQuoteId||!this.currentUserId)return void this.notificationService.showError("Coordinator quote not found. Please start over.");this.providerInviteSaving=!0;const t=Array.from(this.selectedProviders),i=this.tenderTitle;console.log("Creating tendering quotes for providers:",t);const o=t.map(r=>{const s=this._safeInvitedList.find(d=>d.id===r);return this.quoteService.createTenderingQuote(this.currentUserId,r,this.createdQuoteId,i).toPromise().then(d=>{if(!d||!d.id||!s)throw new Error("Failed to create quote for provider");return{provider:s,quoteId:d.id}})});Promise.all(o).then(r=>{console.log("Tendering quotes created:",r),this.invitedProviders.push(...r),this.selectedProviders.clear(),this._safeInvitedList=[],this.rebuildSelectionAndAvailable(),this.notificationService.showSuccess(`${t.length} provider(s) has been saved for invite`),this.tenderUpdated.emit(),this.providerInviteSaving=!1}).catch(r=>{console.error("Error creating tendering quotes:",r),this.notificationService.showError("Failed to invite providers: "+(r.message||"Unknown error")),this.providerInviteSaving=!1})}removeInvitedProvider(t,i){t&&this.showConfirmation("Remove Provider","Are you sure you want to remove this provider invitation? This will delete the quote.",()=>{this.providerInviteSaving=!0,this.quoteService.deleteQuote(t).subscribe({next:()=>{console.log("Quote deleted for provider:",i),this.completeInvitedProviderRemoval(t,i),this.notificationService.showSuccess("Provider invitation removed successfully"),this.providerInviteSaving=!1},error:o=>{this.isKnownDeleteQuoteFalsePositive(o)?(console.warn("[WORKAROUND] deleteQuote returned a false-positive error for quoteId:",t,"\u2014 removing from UI anyway."),this.completeInvitedProviderRemoval(t,i),this.notificationService.showSuccess("Provider invitation removed successfully")):(console.error("Error deleting quote:",o),this.notificationService.showError("Failed to remove provider invitation: "+(o.message||"Unknown error"))),this.providerInviteSaving=!1}})},"Remove","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")}completeInvitedProviderRemoval(t,i){const o=i??this.invitedProviders.find(r=>r.quoteId===t)?.provider?.id;this.invitedProviders=this.invitedProviders.filter(r=>r.quoteId!==t),o&&(this.selectedProviders.delete(o),this._safeInvitedList=this._safeInvitedList.filter(r=>r.id!==o)),this.rebuildSelectionAndAvailable()}isKnownDeleteQuoteFalsePositive(t){return 404===t?.status||504===t?.status||500===t?.status&&"Service unreachable"===t?.error?.error}finalizeTender(){0!==this.invitedProviders.length?this.createdQuoteId?this.showConfirmation("Finalize Tender","Are you sure you want to finalize the tender? This will notify all invited providers.",()=>this.executeFinalizeTender(),"Finalize","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50"):this.notificationService.showError("Coordinator quote not found"):this.notificationService.showError("Please invite at least one provider first")}executeFinalizeTender(){this.tenderLoading=!0,this.quoteService.getQuoteById(this.createdQuoteId).pipe((0,F.n)(t=>{console.log("Coordinator quote retrieved:",t);const i=this.formatDateForAPI(this.expectedCompletionDate),o=this.formatDateForAPI(this.requestedCompletionDate);console.log(`Copying dates to ${this.invitedProviders.length} provider quotes`);const r=this.invitedProviders.flatMap(s=>{const d=s.quoteId;return[this.quoteService.updateQuoteDate(d,i,"expected"),this.quoteService.updateQuoteDate(d,o,"requested")]});return 0===r.length?(0,v.of)([]):(0,S.p)(r)}),(0,F.n)(t=>(console.log(`Successfully updated dates for ${t.length/2} provider quotes`),this.quoteService.updateQuoteStatus(this.createdQuoteId,"inProgress")))).subscribe({next:t=>{console.log("Coordinator quote status updated to inProgress:",t),this.notificationService.showSuccess("Dates copied to all provider quotes and notifications sent to providers"),this.tenderLoading=!1,this.closeTenderModal(),this.tenderCreated.emit(t)},error:t=>{console.error("Error finalizing tender:",t),this.notificationService.showError("Failed to finalize tender: "+(t.message||"Unknown error")),this.tenderLoading=!1}})}loadFilterOptions(){this.countryOptionsLoading=!0,this.providerService.getProviderCountryOptions().subscribe({next:t=>{this.countryOptions=t,this.countryOptionsLoading=!1},error:t=>{console.warn("Failed to load provider countries",t),this.countryOptions=[],this.countryOptionsLoading=!1}}),this.loadCatalogueFacetOptions()}loadCatalogueFacetOptions(){var t=this;return(0,m.A)(function*(){t.catalogueOptionsLoading=!0;try{const i=yield t.api.getDefaultCategories(),o=yield function de(n,a){return I.apply(this,arguments)}(Array.isArray(i)?i:[],r=>t.api.getCategoriesByParentId(r));t.serviceCategoryOptions=o.serviceCategories,t.addressableSectorOptions=o.addressableSectors,t.integrationFrameworkOptions=o.integrationFrameworks}catch(i){console.warn("Tender catalogue filters failed:",i),t.serviceCategoryOptions=[],t.addressableSectorOptions=[],t.integrationFrameworkOptions=[]}finally{t.catalogueOptionsLoading=!1}})()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-create-tender-modal"]],inputs:{isOpen:"isOpen",customerId:"customerId",tenderToEdit:"tenderToEdit"},outputs:{closeModal:"closeModal",tenderCreated:"tenderCreated",tenderUpdated:"tenderUpdated"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:6,consts:[["noMoreProviders",""],["class","fixed inset-0 z-50 flex h-full w-full items-start justify-center overflow-hidden bg-[#0b1220]/45 px-4 py-6 font-[Blinker]",3,"click",4,"ngIf"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],[1,"fixed","inset-0","z-50","flex","h-full","w-full","items-start","justify-center","overflow-hidden","bg-[#0b1220]/45","px-4","py-6","font-[Blinker]",3,"click"],[1,"relative","flex","max-h-[calc(100vh-3rem)]","w-full","max-w-[1280px]","flex-col","overflow-hidden","rounded-2xl","border","border-[#EBECEE]","bg-[#F7F9FD]","shadow-[0_20px_50px_rgba(11,18,32,0.24)]",3,"click"],[1,"flex","shrink-0","items-center","justify-between","border-b","border-[#EBECEE]","bg-[#F7F9FD]","px-6","py-5"],[1,"text-[24px]","font-bold","text-[#0b1220]"],["aria-label","Close tender modal",1,"rounded-lg","p-2","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["data-testid","tender-modal-body",1,"min-h-0","flex-1","overflow-y-auto","overflow-x-hidden","px-6","py-5"],[4,"ngIf"],[1,"mb-6"],["for","tenderTitle",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["type","text","id","tenderTitle","placeholder","Enter tender title or description...","autofocus","",1,"h-12","w-full","rounded-lg","border","border-[#EBECEE]","bg-white","px-4","text-[15px]","text-[#0b1220]","outline-none","transition-colors","placeholder:text-[#9AA6B8]","hover:border-[#1f4fbf]","focus:border-[#1f4fbf]","focus:ring-2","focus:ring-[#B6CAEC]",3,"ngModelChange","ngModel"],[1,"mt-2","text-sm","text-[#526179]"],[1,"mt-6","flex","justify-end","gap-3","border-t","border-[#EBECEE]","pt-4"],[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,"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,"mb-4","rounded-2xl","border","border-[#EBECEE]","bg-white","p-4","shadow-sm"],[1,"mb-2","block","text-sm","font-semibold","text-[#526179]"],[1,"break-words","text-[16px]","font-semibold","text-[#0b1220]","overflow-wrap-anywhere"],[1,"mb-6","rounded-2xl","border","border-[#F2D28A]","bg-[#FFF8E6]","p-4"],[1,"text-sm","font-semibold","text-[#7A4D00]"],["for","requestedDate",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["id","requestedDate",3,"valueChange","value","min"],[1,"mt-1","text-xs","text-[#526179]"],["class","mt-1 text-xs text-[#B42318]",4,"ngIf"],["for","expectedDate",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["id","expectedDate",3,"valueChange","value","min"],["for","pdfFile",1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],["class","mb-3 rounded-2xl border border-[#B6CAEC] bg-[#EBF0F7] p-4",4,"ngIf"],["type","file","id","pdfFile","accept",".pdf",1,"block","w-full","cursor-pointer","rounded-lg","border","border-[#EBECEE]","bg-white","text-sm","text-[#526179]","transition-colors","file:mr-4","file:h-12","file:cursor-pointer","file:border-0","file:bg-[#EBF0F7]","file:px-4","file:text-sm","file:font-semibold","file:text-[#1f4fbf]","hover:border-[#1f4fbf]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]",3,"change"],[1,"group","relative","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","title"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1 bg-gray-900 text-white text-xs rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",4,"ngIf"],[1,"mt-1","text-xs","text-[#B42318]"],[1,"mb-3","rounded-2xl","border","border-[#B6CAEC]","bg-[#EBF0F7]","p-4"],[1,"flex","items-center","justify-between"],[1,"flex","min-w-0","items-center","gap-3"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5","shrink-0","text-[#1f4fbf]"],["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,"min-w-0"],[1,"text-sm","font-semibold","text-[#0b1220]"],[1,"truncate","text-sm","text-[#526179]"],[1,"rounded-full","bg-white","px-2.5","py-1","text-xs","font-semibold","text-[#1f4fbf]"],[1,"mt-2","text-xs","text-[#526179]"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","px-3","py-1","bg-gray-900","text-white","text-xs","rounded","whitespace-nowrap","opacity-0","group-hover:opacity-100","transition-opacity","pointer-events-none"],["aria-label","Tender setup summary",1,"mb-5","grid","gap-3","xl:grid-cols-[minmax(0,1.35fr)_minmax(0,1fr)_minmax(0,1fr)]"],["data-summary-item","",1,"rounded-xl","border","border-[#EBECEE]","bg-white","px-4","py-3","shadow-sm"],[1,"text-xs","font-semibold","uppercase","tracking-[0.04em]","text-[#526179]"],[1,"mt-1","break-words","text-[15px]","font-semibold","leading-5","text-[#0b1220]","overflow-wrap-anywhere"],["data-summary-item","",1,"rounded-xl","border","border-[#CBEADB]","bg-[#F0FBF6]","px-4","py-3"],[1,"text-xs","font-semibold","uppercase","tracking-[0.04em]","text-[#006B4A]"],[1,"mt-2","grid","grid-cols-2","gap-x-4","gap-y-1","text-sm"],[1,"block","text-xs","text-[#526179]"],[1,"block","truncate","font-semibold","text-[#0b1220]"],["data-summary-item","","class","rounded-xl border border-[#CBEADB] bg-[#F0FBF6] px-4 py-3",4,"ngIf"],["class","flex justify-center py-8",4,"ngIf"],["class","mb-4 rounded-2xl border border-[#F4C7C7] bg-[#FFF1F1] p-4",4,"ngIf"],["data-testid","tender-modal-provider-footer",1,"sticky","bottom-0","mt-5","flex","flex-wrap","justify-between","gap-3","border-t","border-[#EBECEE]","bg-[#F7F9FD]/95","py-4","backdrop-blur"],[1,"flex","flex-wrap","justify-end","gap-3"],[1,"group","relative","inline-flex","h-10","items-center","rounded-lg","bg-[#006B4A]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#00523A]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled","title"],[1,"mt-2","flex","min-w-0","items-center","gap-2"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4","shrink-0","text-[#006B4A]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M7 3h7l5 5v13H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M14 3v5h5"],[1,"min-w-0","truncate","text-sm","font-semibold","text-[#0b1220]"],[1,"flex","justify-center","py-8"],[1,"h-8","w-8","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[1,"mb-4","rounded-2xl","border","border-[#F4C7C7]","bg-[#FFF1F1]","p-4"],[1,"text-sm","font-semibold","text-[#B42318]"],["class","mb-5",4,"ngIf"],[1,"mb-5"],[1,"mb-2","block","text-sm","font-semibold","text-[#324153]"],[1,"rounded-xl","border","border-[#EBECEE]","bg-white","p-3","shadow-sm"],[1,"flex","flex-wrap","items-center","gap-2"],[1,"relative","shrink-0"],["type","button",1,"flex","h-10","max-w-[240px]","items-center","gap-2","rounded-lg","border","pl-4","pr-3","text-[15px]","transition-colors",3,"click","ngClass"],[1,"truncate"],["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","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"],["class","absolute left-0 top-full z-[70] mt-2 max-h-[360px] w-[280px] overflow-y-auto rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],["type","button",1,"flex","h-10","items-center","gap-2","rounded-lg","border","pl-4","pr-3","text-[15px]","transition-colors",3,"click","ngClass"],["class","inline-flex h-[22px] min-w-[22px] items-center justify-center rounded-full bg-[#B6CAEC] px-1.5 text-[12px] font-semibold text-[#1f4fbf]",4,"ngIf"],["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"],["class","absolute left-0 top-full z-[70] mt-2 w-[240px] rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],["class","absolute left-0 top-full z-[70] mt-2 max-h-[360px] w-[260px] overflow-y-auto rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],["class","absolute left-0 top-full z-[70] mt-2 max-h-[360px] w-[240px] overflow-y-auto rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click",4,"ngIf"],[1,"mt-3","flex","flex-wrap","items-center","justify-between","gap-2","border-t","border-[#EBECEE]","pt-3"],[1,"text-sm","text-[#526179]"],["type","button",1,"inline-flex","items-center","gap-2","rounded-lg","px-3","py-2","text-sm","font-medium","text-[#1f4fbf]","hover:bg-[#EBF0F7]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.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.7M21.015 4.356v4.992m0 0h-4.992m4.993 0-3.181-3.183a8.25 8.25 0 0 0-13.803 3.7"],["class","mt-3 rounded-xl border border-[#F2D28A] bg-[#FFF8E6] px-3 py-2 text-sm font-semibold text-[#7A4D00]",4,"ngIf"],[1,"mt-4","max-h-[30vh]","min-h-[156px]","overflow-y-auto","rounded-xl","border","border-[#EBECEE]","bg-white"],["data-testid","tender-provider-candidate","class","flex items-center gap-3 border-b border-l-4 border-b-[#EBECEE] px-4 py-3 transition-colors last:border-b-0",3,"ngClass",4,"ngFor","ngForOf"],["class","p-8 text-center text-[#526179]",4,"ngIf"],[1,"mt-2","text-sm","font-semibold","text-[#526179]"],[1,"max-h-40","overflow-y-auto","rounded-xl","border","border-[#CBEADB]","bg-[#F0FBF6]"],["class","flex items-center justify-between border-b border-[#CBEADB] px-4 py-3 transition-colors last:border-b-0 hover:bg-white",4,"ngFor","ngForOf"],[1,"flex","items-center","justify-between","border-b","border-[#CBEADB]","px-4","py-3","transition-colors","last:border-b-0","hover:bg-white"],[1,"flex-1"],["class","mt-1 text-xs text-[#526179]",4,"ngIf"],["title","Remove invitation",1,"ml-4","rounded-lg","p-2","text-[#B42318]","transition-colors","hover:bg-[#FFF1F1]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-5","h-5"],[1,"absolute","left-0","top-full","z-[70]","mt-2","max-h-[360px]","w-[280px]","overflow-y-auto","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],["class","px-3 py-2.5 text-[14px] text-[#526179]",4,"ngIf"],["type","button",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-left","text-[14px]","text-[#0b1220]","transition-colors",3,"click","ngClass"],[1,"min-w-0","flex-1"],["class","h-4 w-4 text-[#1f4fbf]","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",4,"ngIf"],["type","button","class","flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-[14px] text-[#0b1220] transition-colors",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"px-3","py-2.5","text-[14px]","text-[#526179]"],["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-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],[1,"min-w-0","flex-1","truncate"],[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,"absolute","left-0","top-full","z-[70]","mt-2","w-[240px]","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],["type","button","class","flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-[14px] text-[#0b1220] transition-colors",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",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"],["class","h-2.5 w-2.5","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",4,"ngIf"],["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,"absolute","left-0","top-full","z-[70]","mt-2","max-h-[360px]","w-[260px]","overflow-y-auto","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],[1,"absolute","left-0","top-full","z-[70]","mt-2","max-h-[360px]","w-[240px]","overflow-y-auto","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]",3,"click"],[1,"mt-3","rounded-xl","border","border-[#F2D28A]","bg-[#FFF8E6]","px-3","py-2","text-sm","font-semibold","text-[#7A4D00]"],["data-testid","tender-provider-candidate",1,"flex","items-center","gap-3","border-b","border-l-4","border-b-[#EBECEE]","px-4","py-3","transition-colors","last:border-b-0",3,"ngClass"],["type","checkbox",1,"h-4","w-4","rounded","border-[#B6CAEC]","text-[#1f4fbf]","focus:ring-[#B6CAEC]",3,"change","id","checked"],[1,"min-w-0","flex-1","cursor-pointer",3,"for"],[1,"truncate","text-sm","font-semibold","text-[#0b1220]"],["class","mt-0.5 truncate text-xs text-[#526179]",4,"ngIf"],[1,"mt-0.5","truncate","text-xs","text-[#526179]"],[1,"p-8","text-center","text-[#526179]"],["class","text-sm",4,"ngIf","ngIfElse"],[1,"text-sm"]],template:function(i,o){1&i&&(e.DNE(0,ht,12,4,"div",1),e.j41(1,"app-confirm-dialog",2),e.bIt("confirm",function(){return o.genericConfirmCallback&&o.genericConfirmCallback()})("cancel",function(){return o.showGenericConfirm=!1}),e.k0s()),2&i&&(e.Y8G("ngIf",o.isOpen),e.R7$(),e.Y8G("isOpen",o.showGenericConfirm)("title",o.genericConfirmTitle)("message",o.genericConfirmMessage)("confirmText",o.genericConfirmButtonText)("confirmButtonClass",o.genericConfirmButtonClass))},dependencies:[_.MD,_.YU,_.Sq,_.bT,b.YN,b.me,b.BC,b.vS,k.w,ge],encapsulation:2})}}return n})();function gt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openCreateTenderModal())}),e.qSk(),e.j41(1,"svg",19),e.nrm(2,"path",44),e.k0s(),e.EFF(3," Create Tender "),e.k0s()}}function mt(n,a){1&n&&(e.qSk(),e.j41(0,"svg",50),e.nrm(1,"path",51),e.k0s())}function vt(n,a){1&n&&(e.qSk(),e.j41(0,"svg",50),e.nrm(1,"path",51),e.k0s())}function bt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",46),e.bIt("click",function(o){const r=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.selectStatusFilter(r.value,o))}),e.j41(1,"span",47),e.EFF(2),e.k0s(),e.DNE(3,vt,2,0,"svg",48),e.k0s()}if(2&n){const t=a.$implicit,i=e.XpG(2);e.Y8G("ngClass",i.statusFilter===t.value?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(2),e.JRh(t.label),e.R7$(),e.Y8G("ngIf",i.statusFilter===t.value)}}function xt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",45)(1,"button",46),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.selectStatusFilter("",o))}),e.j41(2,"span",47),e.EFF(3,"All Statuses"),e.k0s(),e.DNE(4,mt,2,0,"svg",48),e.k0s(),e.DNE(5,bt,4,3,"button",49),e.k0s()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("ngClass",t.statusFilter?"hover:bg-[#EBF0F7]":"bg-[#DDE6F6]"),e.R7$(3),e.Y8G("ngIf",!t.statusFilter),e.R7$(),e.Y8G("ngForOf",t.filterStatusOptions)}}function Ct(n,a){1&n&&(e.j41(0,"div",52),e.nrm(1,"div",53),e.k0s())}function Et(n,a){if(1&n&&(e.j41(0,"div",54)(1,"div",55)(2,"div",56),e.qSk(),e.j41(3,"svg",57),e.nrm(4,"path",58),e.k0s()(),e.joV(),e.j41(5,"div",59)(6,"h3",60),e.EFF(7,"Error loading quotes"),e.k0s(),e.j41(8,"p",61),e.EFF(9),e.k0s()()()()),2&n){const t=e.XpG();e.R7$(9),e.JRh(t.error)}}function Ft(n,a){1&n&&(e.j41(0,"div",66),e.qSk(),e.j41(1,"svg",67),e.nrm(2,"path",68),e.k0s(),e.joV(),e.j41(3,"h3",69),e.EFF(4,"No tenders found"),e.k0s(),e.j41(5,"p",70),e.EFF(6,"No tender requests to display"),e.k0s()())}function wt(n,a){1&n&&(e.j41(0,"div",71)(1,"div",72)(2,"div",73),e.EFF(3,"REQUEST DATE"),e.k0s(),e.j41(4,"div",74),e.EFF(5,"CUSTOMER"),e.k0s(),e.j41(6,"div",74),e.EFF(7,"TITLE"),e.k0s(),e.j41(8,"div",73),e.EFF(9,"STATUS"),e.k0s(),e.j41(10,"div",73),e.EFF(11,"ACTIONS"),e.k0s()()())}function St(n,a){1&n&&(e.j41(0,"div",71)(1,"div",75)(2,"div",76),e.EFF(3,"EXPAND"),e.k0s(),e.j41(4,"div",74),e.EFF(5,"TITLE"),e.k0s(),e.j41(6,"div",73),e.EFF(7,"STATUS"),e.k0s(),e.j41(8,"div",73),e.EFF(9,"TENDER START DATE"),e.k0s(),e.j41(10,"div",73),e.EFF(11,"TENDER END DATE"),e.k0s(),e.j41(12,"div",73),e.EFF(13,"ATTACHMENTS"),e.k0s(),e.j41(14,"div",77),e.EFF(15,"ACTIONS"),e.k0s()()())}function Tt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",79)(1,"div",80)(2,"div",81),e.EFF(3),e.nI1(4,"date"),e.k0s(),e.j41(5,"div",82),e.EFF(6),e.k0s(),e.j41(7,"div",83),e.EFF(8),e.k0s(),e.j41(9,"div",84)(10,"span",85),e.EFF(11),e.k0s()(),e.j41(12,"div",86)(13,"button",87),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.openChat(o))}),e.qSk(),e.j41(14,"svg",88),e.nrm(15,"path",89),e.k0s()(),e.joV(),e.j41(16,"button",90),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.viewDetails(o))}),e.EFF(17," Details "),e.qSk(),e.j41(18,"svg",91),e.nrm(19,"path",92),e.k0s()()()()()}if(2&n){const t=a.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngClass",i.isQuoteFinalized(t)?"bg-[#F7F9FD]":"bg-white hover:bg-[#EBF0F7]"),e.BMQ("data-quote-id",t.id),e.R7$(2),e.SpI(" ",e.i5U(4,18,t.quoteDate,"dd-MM-yyyy")," "),e.R7$(3),e.SpI(" ",i.getBuyerName(t)," "),e.R7$(),e.Y8G("title",t.description||"(no title)"),e.R7$(),e.SpI(" ",i.getTruncatedTitle(t.description)," "),e.R7$(2),e.Y8G("title",i.getStatusTooltip(t))("ngClass",i.getStateClass(i.getQuoteItemState(t))),e.BMQ("aria-label",i.getStatusTooltip(t)),e.R7$(),e.SpI(" ",i.getStatusLabel(t)," "),e.R7$(2),e.HbH(i.getIconButtonClass(t,"chat","text-[#526179] hover:text-[#1f4fbf]")),e.Y8G("disabled",i.isActionDisabled(t,"chat")),e.R7$(3),e.AVh("opacity-50",i.isActionDisabled(t,"viewDetails"))("cursor-not-allowed",i.isActionDisabled(t,"viewDetails")),e.Y8G("disabled",i.isActionDisabled(t,"viewDetails"))}}function kt(n,a){if(1&n&&(e.qex(0),e.DNE(1,Tt,20,21,"div",78),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.filteredQuotes)}}function yt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",107),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.toggleExpand(o))}),e.qSk(),e.j41(1,"svg",108),e.nrm(2,"path",109),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.Y8G("title",i.isExpanded(t.id)?"Collapse related quotes":"Expand to view related quotes"),e.R7$(),e.AVh("rotate-180",i.isExpanded(t.id))}}function It(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",110)(1,"button",111),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.downloadAttachment(o))}),e.qSk(),e.j41(2,"svg",91),e.nrm(3,"path",112),e.k0s(),e.joV(),e.j41(4,"span",113),e.EFF(5),e.k0s()()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(),e.Y8G("disabled",i.isActionDisabled(t,"downloadAttachment")),e.R7$(4),e.JRh(i.getAttachmentName(t))}}function Dt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",114),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.editTender(o))}),e.EFF(1," Edit "),e.k0s()}}function jt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",115),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.openBroadcastModal(o))}),e.EFF(1," Broadcast "),e.k0s()}}function Rt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",116),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.simulateStartTender(o))}),e.qSk(),e.j41(1,"svg",117),e.nrm(2,"path",118),e.k0s(),e.EFF(3," Start "),e.k0s()}}function Bt(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",119),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(3);return e.Njj(r.simulateCloseTender(o))}),e.qSk(),e.j41(1,"svg",117),e.nrm(2,"path",120),e.k0s(),e.EFF(3," Close "),e.k0s()}}function At(n,a){1&n&&(e.j41(0,"div",126),e.nrm(1,"div",127),e.j41(2,"span",128),e.EFF(3,"Loading related quotes..."),e.k0s()())}function $t(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",140),e.bIt("click",function(){e.eBV(t);const o=e.XpG().$implicit,r=e.XpG(6);return e.Njj(r.downloadAttachment(o))}),e.qSk(),e.j41(1,"svg",91),e.nrm(2,"path",112),e.k0s(),e.joV(),e.j41(3,"span",141),e.EFF(4),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(6);e.R7$(4),e.JRh(i.getAttachmentName(t))}}function Mt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",132)(1,"div",133)(2,"div",134),e.EFF(3),e.k0s(),e.j41(4,"div",97)(5,"span",135),e.EFF(6),e.k0s()(),e.j41(7,"div",74),e.DNE(8,$t,5,1,"button",136),e.k0s(),e.j41(9,"div",137)(10,"button",138),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(6);return e.Njj(r.openChat(o))}),e.qSk(),e.j41(11,"svg",91),e.nrm(12,"path",89),e.k0s()(),e.joV(),e.j41(13,"button",139),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(6);return e.Njj(r.viewDetails(o))}),e.EFF(14," Details "),e.qSk(),e.j41(15,"svg",117),e.nrm(16,"path",92),e.k0s()()()()()}if(2&n){const t=a.$implicit,i=a.last,o=e.XpG(6);e.Y8G("ngClass",i?"":"border-b border-[#EBECEE]"),e.R7$(3),e.SpI(" ",o.getProviderName(t)," "),e.R7$(2),e.Y8G("title",o.getStatusTooltip(t))("ngClass",o.getStateClass(o.getQuoteItemState(t))),e.BMQ("aria-label",o.getStatusTooltip(t)),e.R7$(),e.SpI(" ",o.getStatusLabel(t)," "),e.R7$(2),e.Y8G("ngIf",o.hasAttachment(t))}}function Pt(n,a){if(1&n&&(e.j41(0,"div",62)(1,"div",129)(2,"div",130)(3,"div",77),e.EFF(4,"Provider"),e.k0s(),e.j41(5,"div",73),e.EFF(6,"Status"),e.k0s(),e.j41(7,"div",74),e.EFF(8,"Attachments"),e.k0s(),e.j41(9,"div",74),e.EFF(10,"Actions"),e.k0s()()(),e.DNE(11,Mt,17,7,"div",131),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(3);e.R7$(11),e.Y8G("ngForOf",i.getRelatedQuotes(t.id))}}function Lt(n,a){1&n&&(e.j41(0,"div",142),e.qSk(),e.j41(1,"svg",143),e.nrm(2,"path",68),e.k0s(),e.joV(),e.j41(3,"p"),e.EFF(4,"No related provider quotes found"),e.k0s()())}function Gt(n,a){if(1&n&&(e.j41(0,"div",121)(1,"div",122)(2,"h4",123),e.EFF(3,"Related Provider Quotes"),e.k0s(),e.DNE(4,At,4,0,"div",124)(5,Pt,12,1,"div",35)(6,Lt,5,0,"div",125),e.k0s()()),2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.R7$(4),e.Y8G("ngIf",i.isLoadingRelatedQuotes(t.id)),e.R7$(),e.Y8G("ngIf",!i.isLoadingRelatedQuotes(t.id)&&i.getRelatedQuotes(t.id).length>0),e.R7$(),e.Y8G("ngIf",!i.isLoadingRelatedQuotes(t.id)&&0===i.getRelatedQuotes(t.id).length)}}function Nt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",79)(1,"div",93)(2,"div",94),e.DNE(3,yt,3,3,"button",95),e.k0s(),e.j41(4,"div",96),e.EFF(5),e.k0s(),e.j41(6,"div",97)(7,"span",85),e.EFF(8),e.k0s()(),e.j41(9,"div",81),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.j41(12,"div",81),e.EFF(13),e.nI1(14,"date"),e.k0s(),e.j41(15,"div",98),e.DNE(16,It,6,2,"div",99),e.k0s(),e.j41(17,"div",100)(18,"button",101),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.viewDetails(o))}),e.EFF(19," Details "),e.qSk(),e.j41(20,"svg",91),e.nrm(21,"path",92),e.k0s()(),e.DNE(22,Dt,2,0,"button",102)(23,jt,2,0,"button",103)(24,Rt,4,0,"button",104)(25,Bt,4,0,"button",105),e.k0s()(),e.DNE(26,Gt,7,3,"div",106),e.k0s()}if(2&n){const t=a.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngClass",i.isQuoteFinalized(t)?"bg-[#F7F9FD]":"bg-white hover:bg-[#EBF0F7]"),e.BMQ("data-quote-id",t.id),e.R7$(2),e.Y8G("ngIf",i.isCoordinatorExpandable(t)),e.R7$(),e.Y8G("title",t.description||"(no title)"),e.R7$(),e.SpI(" ",i.getTruncatedTitle(t.description)," "),e.R7$(2),e.Y8G("title",i.getStatusTooltip(t))("ngClass",i.getStateClass(i.getQuoteItemState(t))),e.BMQ("aria-label",i.getStatusTooltip(t)),e.R7$(),e.SpI(" ",i.getStatusLabel(t)," "),e.R7$(2),e.SpI(" ",e.i5U(11,17,t.expectedFulfillmentStartDate,"dd/MM/yyyy")," "),e.R7$(3),e.SpI(" ",e.i5U(14,20,t.effectiveQuoteCompletionDate,"dd/MM/yyyy")," "),e.R7$(3),e.Y8G("ngIf",i.hasAttachment(t)),e.R7$(6),e.Y8G("ngIf",t.category===i.QUOTE_CATEGORIES.COORDINATOR&&!i.isCoordinatorExpandable(t)),e.R7$(),e.Y8G("ngIf",t.category===i.QUOTE_CATEGORIES.COORDINATOR&&i.isCoordinatorExpandable(t)&&i.isExpanded(t.id)),e.R7$(),e.Y8G("ngIf",i.environment.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED&&t.category===i.QUOTE_CATEGORIES.COORDINATOR&&i.getPrimaryState(t)===i.QUOTE_STATUSES.IN_PROGRESS),e.R7$(),e.Y8G("ngIf",i.environment.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED&&t.category===i.QUOTE_CATEGORIES.COORDINATOR&&i.getPrimaryState(t)===i.QUOTE_STATUSES.APPROVED),e.R7$(),e.Y8G("ngIf",i.isExpanded(t.id))}}function Ot(n,a){if(1&n&&(e.qex(0),e.DNE(1,Nt,27,23,"div",78),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.filteredQuotes)}}function qt(n,a){if(1&n&&(e.j41(0,"div",62),e.DNE(1,Ft,7,0,"div",63)(2,wt,12,0,"div",64)(3,St,16,0,"div",64)(4,kt,2,1,"ng-container",65)(5,Ot,2,1,"ng-container",65),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",0===t.filteredQuotes.length),e.R7$(),e.Y8G("ngIf",t.filteredQuotes.length>0&&t.selectedRole===t.UI_ROLES.SELLER),e.R7$(),e.Y8G("ngIf",t.filteredQuotes.length>0&&t.selectedRole===t.UI_ROLES.BUYER),e.R7$(),e.Y8G("ngIf",t.selectedRole===t.UI_ROLES.SELLER),e.R7$(),e.Y8G("ngIf",t.selectedRole===t.UI_ROLES.BUYER)}}function Qt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",153)(1,"input",154),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG(2);return e.DH7(r.selectedState,o)||(r.selectedState=o),e.Njj(o)}),e.k0s(),e.j41(2,"label",155),e.EFF(3),e.k0s()()}if(2&n){const t=a.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("id","state-"+t),e.R50("ngModel",i.selectedState),e.Y8G("value",t),e.R7$(),e.Y8G("for","state-"+t),e.R7$(),e.SpI(" ",i.getStateDisplay(t)," ")}}function Yt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",144)(1,"div",145)(2,"div",146)(3,"h3",147),e.EFF(4,"Update Quote State"),e.k0s(),e.j41(5,"div",148),e.DNE(6,Qt,4,5,"div",149),e.k0s(),e.j41(7,"div",150)(8,"button",151),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.showStateUpdate=!1)}),e.EFF(9," Cancel "),e.k0s(),e.j41(10,"button",152),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.confirmStateUpdate())}),e.EFF(11," Update "),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(6),e.Y8G("ngForOf",t.availableStates),e.R7$(4),e.Y8G("disabled",!t.selectedState)}}function Ut(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",144)(1,"div",145)(2,"div",156)(3,"h3",147),e.EFF(4,"Broadcast Message"),e.k0s(),e.j41(5,"textarea",157),e.mxI("ngModelChange",function(o){e.eBV(t);const r=e.XpG();return e.DH7(r.broadcastMessage,o)||(r.broadcastMessage=o),e.Njj(o)}),e.k0s(),e.j41(6,"div",158)(7,"button",151),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.closeBroadcastModal())}),e.EFF(8," Cancel "),e.k0s(),e.j41(9,"button",152),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sendBroadcastMessage())}),e.EFF(10),e.k0s()()()()()}if(2&n){const t=e.XpG();e.R7$(5),e.R50("ngModel",t.broadcastMessage),e.R7$(4),e.Y8G("disabled",!t.broadcastMessage||t.isBroadcastSending),e.R7$(),e.SpI(" ",t.isBroadcastSending?"Sending...":"Send"," ")}}let W=(()=>{class n{constructor(){this.router=(0,e.WQX)(T.Ix),this.quoteService=(0,e.WQX)($.K),this.localStorage=(0,e.WQX)(M.s),this.notificationService=(0,e.WQX)(P.J),this.accountService=(0,e.WQX)(L.O),this.quotes=[],this.filteredQuotes=[],this.loading=!1,this.error=null,this.showDeleteConfirm=!1,this.deleteConfirmMessage="",this.quoteToDelete=null,this.showStateUpdate=!1,this.quoteToUpdate=null,this.selectedState=null,this.availableStates=["pending","inProgress","approved","rejected","cancelled","accepted"],this.selectedRole=h.Zk.BUYER,this.currentUserId=null,this.UI_ROLES=h.Zk,this.QUOTE_CATEGORIES=l.K0,this.QUOTE_STATUSES=l.yz,this.environment=w.c,this.statusFilter="",this.showStatusDropdown=!1,this.showQuoteDetailsModal=!1,this.selectedQuoteId=null,this.showChatModal=!1,this.selectedChatQuoteId=null,this.showAttachmentModal=!1,this.selectedAttachmentQuote=null,this.showBroadcastModal=!1,this.broadcastForCoordinatorId=null,this.broadcastMessage="",this.showGenericConfirm=!1,this.genericConfirmTitle="",this.genericConfirmMessage="",this.genericConfirmButtonText="Confirm",this.genericConfirmButtonClass="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.genericConfirmCallback=null,this.isBroadcastSending=!1,this.showCreateTenderModal=!1,this.tenderToEdit=null,this.expandedQuoteIds=new Set,this.relatedQuotesMap=new Map,this.loadingRelatedQuotes=new Set,this.coordinatorQuoteStatesMap=new Map,this.loadingCoordinatorStates=new Set,this.organizationNames=new Map}ngOnInit(){let t=this.localStorage.getObject("login_items");if(t&&t.logged_as==t.id)this.currentUserId=t.partyId;else if(t&&t.logged_as){let i=t.organizations.find(o=>o.id==t.logged_as);this.currentUserId=i?.partyId}this.currentUserId?this.loadQuotes():this.error="User not authenticated"}loadQuotes(){if(!this.currentUserId)return void(this.error="User not authenticated");let t;this.loading=!0,this.error=null,t=this.selectedRole===h.Zk.BUYER?this.quoteService.getCoordinatorQuotesByUser(this.currentUserId).pipe((0,g.T)(i=>i.map(o=>this.mapTenderToQuote(o)))):this.quoteService.getTenderingQuotesByUser(this.currentUserId,(0,h.E9)(this.selectedRole)).pipe((0,g.T)(i=>i.map(o=>this.mapTenderToQuote(o)))),t.subscribe({next:i=>{this.quotes=i,this.enrichQuoteData(i),console.log(`Loaded ${this.quotes.length} quotes as ${this.selectedRole}`),console.log(`Current user ID: ${this.currentUserId}`),this.quotes.forEach(o=>{if(console.log(`Quote ${this.extractShortId(o.id)}:`,{category:o.category,state:o.state,quoteItemState:this.getQuoteItemState(o),externalId:o.externalId,id:o.id,relatedParty:o.relatedParty}),this.selectedRole===h.Zk.SELLER){const r=o.relatedParty?.some(s=>s.id===this.currentUserId&&s.role?.toLowerCase()===h.Zk.SELLER);console.log(` -> Quote ${this.extractShortId(o.id)} related to current provider? ${r}`)}}),this.selectedRole===h.Zk.SELLER?this.loadCoordinatorStatesForTenderingQuotes().subscribe({next:()=>{console.log("All coordinator states loaded, filtering quotes..."),this.filterQuotesByStatus(),this.loading=!1},error:o=>{console.error("Error loading coordinator states:",o),this.filterQuotesByStatus(),this.loading=!1}}):(this.filterQuotesByStatus(),this.loading=!1)},error:i=>{console.error("Failed to load quotes:",i),this.error="Failed to load quotes. Please try again.",this.loading=!1}})}mapTenderToQuote(t){const i={state:this.mapTenderStateToQuoteState(t.state)};return t.attachment&&(i.attachment=[{name:t.attachment.name,mimeType:t.attachment.mimeType,content:t.attachment.content,size:t.attachment.size?{amount:t.attachment.size,units:"bytes"}:void 0}]),{id:t.id,href:"",description:t.tenderNote||"",quoteDate:t.createdAt||(new Date).toISOString(),effectiveQuoteCompletionDate:t.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:t.expectedFulfillmentStartDate,state:this.mapTenderStateToQuoteState(t.state),category:"tendering"===t.category?l.K0.TENDER:l.K0.COORDINATOR,externalId:t.external_id,relatedParty:[...t.selectedProviders.map(o=>({id:o,role:"Seller",name:t.provider,"@referredType":"Organization"})),...t.buyerPartyId?[{id:t.buyerPartyId,role:"Buyer","@referredType":"Organization"}]:[]],quoteItem:[i],note:[]}}mapTenderStateToQuoteState(t){switch(t){case"draft":case"pending":default:return"pending";case"pre-launched":return"inProgress";case"sent":return"approved";case"closed":return"accepted";case"cancelled":return"cancelled";case"rejected":return"rejected"}}refreshQuotes(){this.loadQuotes()}selectRole(t){this.selectedRole=t,this.loadQuotes()}getRoleTabClass(t){const i="inline-flex items-center justify-center gap-2 rounded-xl px-5 py-2.5 text-sm font-semibold transition-colors";return this.selectedRole===t?`${i} bg-[#EBF0F7] text-[#1f4fbf]`:`${i} text-[#526179] hover:bg-[#F7F9FD] hover:text-[#1f4fbf]`}filterQuotesByStatus(){let t;t=this.statusFilter?this.quotes.filter(i=>this.getPrimaryState(i)===this.statusFilter):[...this.quotes],this.filteredQuotes=this.selectedRole===h.Zk.SELLER?t.filter(i=>{if(i.category!==l.K0.TENDER)return console.log(`[FILTER] Quote ${this.extractShortId(i.id)} - category: ${i.category}, keeping (not tender)`),!0;if(!i.externalId)return console.log(`[FILTER] Tendering quote ${this.extractShortId(i.id)} - no externalId, keeping`),!0;const o=this.coordinatorQuoteStatesMap.get(i.externalId);if(console.log(`[FILTER] Tendering quote ${this.extractShortId(i.id)} - coordinator: ${this.extractShortId(i.externalId)}, state: ${o||"NOT_LOADED"}`),!o)return console.log(`[FILTER] Coordinator state not loaded yet for ${this.extractShortId(i.externalId)}, hiding`),!1;const r=o!==l.yz.PENDING;return console.log(`[FILTER] Coordinator state is ${o}, ${r?"SHOWING":"HIDING"} quote`),r}):t}get filterStatusOptions(){const t=this.selectedRole===h.Zk.BUYER?l.R4:l.NT;return[{value:l.yz.PENDING,label:t.PENDING},{value:l.yz.IN_PROGRESS,label:t.IN_PROGRESS},{value:l.yz.APPROVED,label:t.APPROVED},{value:l.yz.ACCEPTED,label:t.ACCEPTED},{value:l.yz.CANCELLED,label:t.CANCELLED},{value:l.yz.REJECTED,label:t.REJECTED}]}toggleStatusDropdown(t){t.stopPropagation(),this.showStatusDropdown=!this.showStatusDropdown}closeStatusDropdown(){this.showStatusDropdown=!1}selectStatusFilter(t,i){i?.stopPropagation(),this.statusFilter=t,this.showStatusDropdown=!1,this.filterQuotesByStatus()}getStatusFilterLabel(){return this.statusFilter?this.filterStatusOptions.find(t=>t.value===this.statusFilter)?.label??"All Statuses":"All Statuses"}viewDetails(t){this.selectedQuoteId=t.id,this.showQuoteDetailsModal=!0}editTender(t){let i;if(Array.isArray(t.quoteItem)&&t.quoteItem.length>0){const s=t.quoteItem[0];if(Array.isArray(s.attachment)&&s.attachment.length>0){const d=s.attachment[0];i={name:d.name||"attachment.pdf",mimeType:d.mimeType||"application/pdf",content:d.content||"",size:d.size?.amount}}}const o=this.getPrimaryState(t),r={id:t.id,category:t.category===l.K0.COORDINATOR?"coordinator":"tendering",state:this.mapQuoteStateToTenderState(o),responseDeadline:t.expectedFulfillmentStartDate||t.effectiveQuoteCompletionDate||(new Date).toISOString(),tenderNote:t.description||"",attachment:i,selectedProviders:t.relatedParty?.filter(s=>"seller"===s.role?.toLowerCase()).map(s=>s.id)||[],effectiveQuoteCompletionDate:t.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:t.expectedFulfillmentStartDate};this.tenderToEdit=r,this.showCreateTenderModal=!0}mapQuoteStateToTenderState(t){if(!t)return"draft";switch(t){case"pending":default:return"draft";case"inProgress":return"pre-launched";case"approved":return"sent";case"accepted":return"closed";case"cancelled":return"cancelled";case"rejected":return"rejected"}}viewQuote(t){this.selectedQuoteId=t.id,this.showQuoteDetailsModal=!0}closeQuoteDetailsModal(){this.showQuoteDetailsModal=!1,this.selectedQuoteId=null}showConfirmation(t,i,o,r="Confirm",s="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.genericConfirmTitle=t,this.genericConfirmMessage=i,this.genericConfirmButtonText=r,this.genericConfirmButtonClass=s,this.genericConfirmCallback=()=>{o(),this.showGenericConfirm=!1},this.showGenericConfirm=!0}getModalUserRole(){return this.selectedRole===h.Zk.BUYER?"customer":"seller"}onQuoteUpdated(t){for(const[s,d]of this.relatedQuotesMap.entries())if(d.some(u=>u.id===t.id)){const u=this.quotes.find(C=>C.id===s);u&&this.loadRelatedQuotes(u);const f=this.extractShortId(t.id),p=this.getPrimaryState(t);return void this.notificationService.showSuccess(`Quote ${f} has been updated to ${p}.`)}const i=this.quotes.findIndex(s=>s.id===t.id);-1!==i&&(this.quotes[i]=t,this.filterQuotesByStatus());const o=this.extractShortId(t.id),r=this.getPrimaryState(t);this.notificationService.showSuccess(`Quote ${o} has been updated to ${r}.`)}closeChatModal(){this.showChatModal=!1,this.selectedChatQuoteId=null}closeAttachmentModal(){this.showAttachmentModal=!1,this.selectedAttachmentQuote=null}openBroadcastModal(t){t.id&&(this.broadcastForCoordinatorId=t.id,this.broadcastMessage="",this.showBroadcastModal=!0)}closeBroadcastModal(){this.showBroadcastModal=!1,this.broadcastForCoordinatorId=null,this.broadcastMessage="",this.isBroadcastSending=!1}openCreateTenderModal(){this.currentUserId?this.showCreateTenderModal=!0:this.notificationService.showError("You must be logged in to create a tender.")}closeCreateTenderModal(){this.showCreateTenderModal=!1,this.tenderToEdit=null,this.loadQuotes()}onTenderCreated(t){console.log("Tender created successfully:",t),this.loadQuotes(),this.notificationService.showSuccess("Tender created successfully!")}onTenderUpdated(){this.loadQuotes()}sendBroadcastMessage(){!this.broadcastForCoordinatorId||!this.currentUserId||!this.broadcastMessage||this.showConfirmation("Broadcast Message","Are you sure you want to broadcast this message to all the invited providers?",()=>this.executeBroadcastMessage(),"Send","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")}executeBroadcastMessage(){this.isBroadcastSending=!0;const t=this.getRelatedQuotes(this.broadcastForCoordinatorId);if(!t||0===t.length){const r=this.quotes.find(s=>s.id===this.broadcastForCoordinatorId);r&&this.loadRelatedQuotes(r)}const i=this.getRelatedQuotes(this.broadcastForCoordinatorId).filter(r=>r.category===l.K0.TENDER);if(0===i.length)return this.notificationService.showError("No related provider quotes found to broadcast to."),void(this.isBroadcastSending=!1);const o=i.map(r=>this.quoteService.addNoteToQuote(r.id,this.broadcastMessage,this.currentUserId));(0,S.p)(o).subscribe({next:()=>{this.notificationService.showSuccess("Message broadcast sent to all invited providers."),this.closeBroadcastModal()},error:r=>{console.error("Failed to broadcast message:",r),this.notificationService.showError("Failed to broadcast message."),this.isBroadcastSending=!1}})}onAttachmentUploaded(t){const i=this.quotes.findIndex(o=>o.id===t.id);-1!==i&&(this.quotes[i]=t,this.filterQuotesByStatus()),this.selectedRole===h.Zk.SELLER&&this.getPrimaryState(t)===l.yz.IN_PROGRESS&&(console.log("Provider uploaded PDF, updating quote status to approved:",t.id),this.quoteService.updateQuoteStatus(t.id,l.yz.APPROVED).subscribe({next:o=>{const r=this.quotes.findIndex(d=>d.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus());const s=this.extractShortId(t.id);console.log("Quote status automatically updated to approved after PDF upload"),this.notificationService.showSuccess(`Quote ${s} has been approved after PDF upload.`)},error:o=>{console.error("Error updating quote status to approved:",o),this.notificationService.showError(`Error updating quote status: ${o?.message||"Unknown error"}`)}}))}updateQuoteState(t){this.quoteToUpdate=t,this.selectedState=t.state||null,this.showStateUpdate=!0}confirmStateUpdate(){this.quoteToUpdate&&this.selectedState&&this.quoteService.updateQuoteState(this.quoteToUpdate.id,this.selectedState).subscribe({next:t=>{const i=this.quotes.findIndex(o=>o.id===t.id);-1!==i&&(this.quotes[i]=t,this.filterQuotesByStatus()),this.showStateUpdate=!1,this.notificationService.showSuccess("Quote state updated successfully")},error:t=>{console.error("Failed to update quote state:",t),this.notificationService.showError("Failed to update quote state")}})}confirmDelete(t){this.quoteToDelete=t,this.deleteConfirmMessage=`Are you sure you want to delete Quote ${this.extractShortId(t.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(t=>t.id!==this.quoteToDelete.id),this.filterQuotesByStatus(),this.showDeleteConfirm=!1,this.notificationService.showSuccess("Quote deleted successfully")},error:t=>{console.error("Failed to delete quote:",t),this.notificationService.showError("Failed to delete quote")}})}openChat(t){this.selectedChatQuoteId=t.id,this.showChatModal=!0}downloadAttachment(t){try{this.quoteService.downloadAttachment(t),this.notificationService.showSuccess("Download started")}catch(i){console.error("Error downloading attachment:",i),this.notificationService.showError(i.message||"Error downloading attachment")}}downloadCustomerRequest(t){const i=t.externalId||t.id;i?this.quoteService.getQuoteById(i).subscribe({next:o=>{try{if(!o.quoteItem||0===o.quoteItem.length||!o.quoteItem[0].attachment||0===o.quoteItem[0].attachment.length)return void this.notificationService.showError("No buyer's request attachment found on coordinator quote.");this.quoteService.downloadAttachment(o),this.notificationService.showSuccess("Download started")}catch(r){console.error("Error downloading buyer request:",r),this.notificationService.showError(r.message||"Error downloading buyer request")}},error:o=>{console.error("Failed to fetch coordinator quote for download:",o),this.notificationService.showError("Failed to fetch coordinator quote")}}):this.notificationService.showError("No coordinator reference found for this quote.")}addAttachment(t){this.selectedAttachmentQuote=t,this.showAttachmentModal=!0}acceptTenderingQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Accept Tender Request","Are you sure you want to accept this tender request?",()=>{console.log("Accepting tendering quote:",t.id),this.quoteService.updateQuoteStatus(t.id,"inProgress").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Tendering quote successfully accepted"),this.notificationService.showSuccess(`Tender request ${i} has been accepted and is now in progress.`)},error:o=>{console.error("Error accepting tendering quote:",o),this.notificationService.showError(`Error accepting tender request: ${o.message||"Unknown error"}`)}})},"Accept","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50")}cancelTenderingQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Cancel Tender Request","Are you sure you want to cancel this tender request?\n\nThis action cannot be undone.",()=>{console.log("Cancelling tendering quote:",t.id),this.quoteService.updateQuoteStatus(t.id,"cancelled").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Tendering quote successfully cancelled"),this.notificationService.showSuccess(`Tender request ${i} has been cancelled.`)},error:o=>{console.error("Error cancelling tendering quote:",o),this.notificationService.showError(`Error cancelling tender request: ${o.message||"Unknown error"}`)}})},"Cancel Request","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")}simulateStartTender(t){const i=this.extractShortId(t.id),o=this.getTodayForAPI();this.showConfirmation("Start Tender",`Are you sure you want to start this tender?\n\nWarning: The Tender Start Date will be updated to today (${o}).`,()=>{this.quoteService.updateQuoteStatus(t.id,"approved").pipe((0,F.n)(r=>{const s=this.quotes.findIndex(d=>d.id===r.id);return-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.quoteService.updateQuoteDate(t.id,o,"expectedFulfillment")})).subscribe({next:r=>{const s=this.quotes.findIndex(d=>d.id===r.id);-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.notificationService.showSuccess(`Tender ${i} started. Start date set to today.`)},error:r=>{console.error("Error starting tender:",r),this.notificationService.showError(`Error starting tender: ${r.message||"Unknown error"}`)}})},"Start Tender","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")}simulateCloseTender(t){const i=this.extractShortId(t.id),o=this.getTodayForAPI();this.showConfirmation("Close Tender",`Are you sure you want to close this tender?\n\nWarning: The Tender End Date will be updated to today (${o}).`,()=>{this.quoteService.updateQuoteStatus(t.id,"accepted").pipe((0,F.n)(r=>{const s=this.quotes.findIndex(d=>d.id===r.id);return-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.quoteService.updateQuoteDate(t.id,o,"effective")})).subscribe({next:r=>{const s=this.quotes.findIndex(d=>d.id===r.id);-1!==s&&(this.quotes[s]=r,this.filterQuotesByStatus()),this.notificationService.showSuccess(`Tender ${i} closed. End date set to today.`)},error:r=>{console.error("Error closing tender:",r),this.notificationService.showError(`Error closing tender: ${r.message||"Unknown error"}`)}})},"Close Tender","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")}getTodayForAPI(){const t=new Date;return`${t.getDate().toString().padStart(2,"0")}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getFullYear()}`}acceptQuoteCustomer(t){const i=this.extractShortId(t.id);this.showConfirmation("Accept Quotation","Are you sure you want to accept the quotation?",()=>{console.log("Buyer accepting quotation:",t.id),this.quoteService.updateQuoteStatus(t.id,"accepted").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Quotation successfully accepted by buyer"),this.notificationService.showSuccess(`Quotation ${i} has been accepted successfully.`)},error:o=>{console.error("Error accepting quotation:",o),this.notificationService.showError(`Error accepting quotation: ${o?.message||"Unknown error"}`)}})},"Accept","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50")}acceptTenderQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Accept Tender Quote","Are you sure you want to accept this quote? Every other quote in this tender will be Rejected.",()=>this.executeAcceptTenderQuote(t,i),"Accept","inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00523A] focus:outline-none focus:ring-2 focus:ring-[#B8E6D1] disabled:cursor-not-allowed disabled:opacity-50")}executeAcceptTenderQuote(t,i){console.log("Buyer accepting tender:",t.id);const r=(()=>{if(t.externalId)return t.externalId;for(const[s,d]of this.relatedQuotesMap.entries())if(d.some(u=>u.id===t.id))return s;return null})();this.quoteService.updateQuoteStatus(t.id,"accepted").subscribe({next:s=>{if(r){const u=(this.relatedQuotesMap.get(r)||[]).filter(f=>f.id!==t.id).filter(f=>{const p=this.getPrimaryState(f);return p!==l.yz.ACCEPTED&&p!==l.yz.CANCELLED&&p!==l.yz.REJECTED});if(u.length>0){const f=u.map(p=>this.quoteService.updateQuoteStatus(p.id,"rejected"));(0,S.p)(f).subscribe({next:p=>{const H=(this.relatedQuotesMap.get(r)||[]).map(E=>E.id===s.id?s:p.find(zt=>zt.id===E.id)||E);this.relatedQuotesMap.set(r,H),this.notificationService.showSuccess(`Tender ${i} accepted. ${p.length} other quote(s) have been rejected.`)},error:p=>{console.error("Error rejecting sibling quotes:",p),this.notificationService.showError(`Accepted the selected quote, but failed rejecting other quotes: ${p.message||"Unknown error"}`)}})}else{const p=(this.relatedQuotesMap.get(r)||[]).map(C=>C.id===s.id?s:C);this.relatedQuotesMap.set(r,p),this.notificationService.showSuccess(`Tender ${i} has been accepted successfully.`)}}else{const d=this.quotes.findIndex(u=>u.id===s.id);-1!==d&&(this.quotes[d]=s,this.filterQuotesByStatus()),this.notificationService.showSuccess(`Tender ${i} has been accepted successfully.`)}},error:s=>{console.error("Error accepting tender:",s),this.notificationService.showError(`Error accepting tender: ${s?.message||"Unknown error"}`)}})}rejectTenderQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Reject Tender","Are you sure you want to reject this tender?\n\nThis action cannot be undone.",()=>{console.log("Buyer rejecting tender:",t.id),this.quoteService.updateQuoteStatus(t.id,"rejected").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Tender successfully rejected by buyer"),this.notificationService.showSuccess(`Tender ${i} has been rejected.`)},error:o=>{console.error("Error rejecting tender:",o),this.notificationService.showError(`Error rejecting tender: ${o?.message||"Unknown error"}`)}})},"Reject","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")}cancelQuote(t){const i=this.extractShortId(t.id);this.showConfirmation("Cancel Quote",`Are you sure you want to cancel quote ${i}?\n\nThis action cannot be undone and will disable all other quote actions.`,()=>{console.log("Cancelling quote:",t.id),this.quoteService.updateQuoteStatus(t.id,"cancelled").subscribe({next:o=>{const r=this.quotes.findIndex(s=>s.id===o.id);-1!==r&&(this.quotes[r]=o,this.filterQuotesByStatus()),console.log("Quote successfully cancelled"),this.notificationService.showSuccess(`Quote ${i} has been cancelled successfully.`)},error:o=>{console.error("Error cancelling quote:",o),this.notificationService.showError(`Error cancelling quote: ${o?.message||"Unknown error"}`)}})},"Cancel Quote","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")}extractShortId(t){return t?t.length>8?t.slice(-8):t:"N/A"}getPrimaryState(t){return Array.isArray(t.quoteItem)&&t.quoteItem.length>0?t.quoteItem[0].state||"unknown":t.state?t.state:"unknown"}getQuoteItemState(t){let i="unknown";if(Array.isArray(t.quoteItem)&&t.quoteItem.length>0)for(const o of t.quoteItem)if(o&&o.state){i=o.state;break}return t.category===l.K0.COORDINATOR?this.mapCoordinatorStatusToGUI(i):i}getStatusLabel(t){const i=this.getPrimaryState(t);let o;if(t.category===l.K0.COORDINATOR)o=l.R4;else{if(t.category!==l.K0.TENDER)return i;o=this.selectedRole===h.Zk.BUYER?l.kU:l.NT}switch(i){case l.yz.PENDING:return o.PENDING;case l.yz.IN_PROGRESS:return o.IN_PROGRESS;case l.yz.APPROVED:return o.APPROVED;case l.yz.ACCEPTED:return o.ACCEPTED;case l.yz.CANCELLED:return o.CANCELLED;case l.yz.REJECTED:return o.REJECTED;default:return i}}getStatusTooltip(t){const i=this.getPrimaryState(t),o=this.selectedRole===h.Zk.BUYER?"buyer":"provider",r=this.getStatusLabel(t),d=(t.category===l.K0.COORDINATOR?l.bJ:t.category===l.K0.TENDER?l.L9:null)?.[i]?.[o];if(!d)return r;const f="..."===d.availableActions?"":d.availableActions,p=["..."===d.explanation?"":d.explanation,f?`Available actions: ${f}`:""].filter(Boolean);return p.length>0?p.join("\n"):r}mapCoordinatorStatusToGUI(t){return{pending:"draft",inProgress:"pre-launched",approved:"launched",accepted:"closed",cancelled:"cancelled",rejected:"rejected"}[t]||t}hasAttachment(t){return Array.isArray(t.quoteItem)&&t.quoteItem.some(i=>i.attachment&&i.attachment.length>0)}getAttachmentName(t){if(!Array.isArray(t.quoteItem))return"";for(const i of t.quoteItem)if(i.attachment&&i.attachment.length>0)return i.attachment[0].name||"attachment.pdf";return""}isQuoteCancelled(t){return!!t.quoteItem?.some(i=>i.state===l.yz.CANCELLED)||t.state===l.yz.CANCELLED}isQuoteAccepted(t){return!!t.quoteItem?.some(i=>i.state===l.yz.ACCEPTED)||t.state===l.yz.ACCEPTED}isQuoteFinalized(t){return this.isQuoteCancelled(t)||this.isQuoteAccepted(t)}isActionDisabled(t,i){const o=this.isQuoteCancelled(t),s=(this.isQuoteAccepted(t),this.isQuoteFinalized(t));switch(i){case"viewDetails":case"downloadAttachment":return o;case"chat":case"accept":case"acceptCustomer":case"acceptTender":case"rejectTender":default:return!1;case"addAttachment":case"cancel":return s;case"addRequestedDate":case"addExpectedDate":return!0}}getButtonClass(t,i){const o="inline-flex items-center rounded-lg border px-2.5 py-1.5 text-xs font-semibold transition-colors";return this.isActionDisabled(t,i)?`${o} cursor-not-allowed border-[#EBECEE] text-[#9AA6B8]`:`${o} border-[#B6CAEC] text-[#1f4fbf] hover:bg-[#EBF0F7]`}getIconButtonClass(t,i,o){const r="cursor-pointer rounded-lg p-1.5 text-xs transition-colors hover:bg-[#EBF0F7]";return this.isActionDisabled(t,i)?`${r} cursor-not-allowed text-[#9AA6B8] hover:bg-transparent`:`${r} ${o}`}getActionTitle(t,i){return this.isActionDisabled(t,i)?"Action disabled - quote is "+(this.isQuoteCancelled(t)?"cancelled":"accepted"):""}getStateDisplay(t){return t?{pending:"Pending",inProgress:"In Progress",approved:"Approved",rejected:"Rejected",cancelled:"Cancelled",accepted:"Accepted"}[t]||t:"Unknown"}getStateClass(t){switch(t){case"pending":return"status-pending";case"inProgress":return"status-inProgress";case"approved":return"status-approved";case"rejected":return"status-rejected";case"cancelled":return"status-cancelled";case"accepted":return"status-accepted";case"draft":return"status-draft";case"pre-launched":return"status-pre-launched";case"launched":return"status-launched";case"closed":return"status-closed";default:return"status-unknown"}}canUpdateState(t){return t!==l.yz.CANCELLED&&t!==l.yz.ACCEPTED}isCoordinatorExpandable(t){return t.category===l.K0.COORDINATOR&&this.getPrimaryState(t)!==l.yz.PENDING}isExpanded(t){return!!t&&this.expandedQuoteIds.has(t)}toggleExpand(t){t.id&&(this.expandedQuoteIds.has(t.id)?(console.log(`Collapsing quote ${this.extractShortId(t.id)}`),this.expandedQuoteIds.delete(t.id)):(console.log(`Expanding quote ${this.extractShortId(t.id)}, externalId: ${t.externalId}`),this.expandedQuoteIds.add(t.id),this.relatedQuotesMap.has(t.id)?console.log(`Using cached ${this.relatedQuotesMap.get(t.id)?.length} related quotes`):(console.log("Fetching related quotes..."),this.loadRelatedQuotes(t))))}loadRelatedQuotes(t){if(!t.id||!this.currentUserId)return void console.error("Cannot load related quotes: missing id or userId",{id:t.id,userId:this.currentUserId});const i=t.externalId||t.id;console.log(`Loading related quotes for coordinator ${this.extractShortId(t.id)}:`,{userId:this.currentUserId,role:h.XZ.BUYER,externalId:i,coordinatorId:t.id}),this.loadingRelatedQuotes.add(t.id),this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,i,h.XZ.BUYER).subscribe({next:o=>{this.relatedQuotesMap.set(t.id,o),this.loadingRelatedQuotes.delete(t.id),this.enrichQuoteData(o),console.log(`\xe2\u0153\u2026 Successfully loaded ${o.length} related quotes for coordinator ${this.extractShortId(t.id)}`),o.length>0&&console.log("Related quotes:",o.map(r=>({id:this.extractShortId(r.id),provider:this.getProviderName(r),state:this.getQuoteItemState(r)})))},error:o=>{console.error("\xe2\u0152 Failed to load related quotes:",o),this.loadingRelatedQuotes.delete(t.id),this.notificationService.showError("Failed to load related quotes")}})}getRelatedQuotes(t){return t&&this.relatedQuotesMap.get(t)||[]}isLoadingRelatedQuotes(t){return!!t&&this.loadingRelatedQuotes.has(t)}isOrganizationId(t){return t.startsWith("urn:ngsi-ld:organization:")}enrichQuoteData(t){const i=new Set;if(t.forEach(r=>{r.relatedParty?.forEach(s=>{s.id&&!this.organizationNames.has(s.id)&&this.isOrganizationId(s.id)&&i.add(s.id)})}),0===i.size)return;const o=Array.from(i).map(r=>this.accountService.getOrgInfo(r).then(s=>({id:r,name:s?.tradingName||s?.name||r}),()=>({id:r,name:r})));Promise.all(o).then(r=>{r.forEach(({id:s,name:d})=>this.organizationNames.set(s,d)),this.filteredQuotes=[...this.filteredQuotes]})}getProviderName(t){if(!t.relatedParty||0===t.relatedParty.length)return"Unknown Provider";const i=t.relatedParty.find(r=>"seller"===r.role?.toLowerCase());if(!i?.id)return"Unknown Provider";const o=this.organizationNames.get(i.id);return o&&o!==i.id?o:"Loading..."}getBuyerName(t){if(!t.relatedParty||0===t.relatedParty.length)return"Unknown Customer";const i=t.relatedParty.find(r=>"buyer"===r.role?.toLowerCase());if(!i?.id)return"Unknown Customer";const o=this.organizationNames.get(i.id);return o&&o!==i.id?o:"Loading..."}canAcceptTenderingQuote(t){if(!t.externalId)return console.warn("Tendering quote has no externalId, cannot check coordinator state"),!1;const i=this.coordinatorQuoteStatesMap.get(t.externalId);return i?i===l.yz.IN_PROGRESS:(this.loadCoordinatorQuoteState(t.externalId),!1)}canAddAttachmentToTenderingQuote(t){if(!t.externalId)return console.warn("Tendering quote has no externalId, cannot check coordinator state"),!1;const i=this.coordinatorQuoteStatesMap.get(t.externalId);return i?i===l.yz.APPROVED:(this.loadCoordinatorQuoteState(t.externalId),!1)}loadCoordinatorQuoteState(t){this.loadingCoordinatorStates.has(t)||this.coordinatorQuoteStatesMap.has(t)||(console.log(`Loading coordinator quote state for: ${this.extractShortId(t)}`),this.loadingCoordinatorStates.add(t),this.quoteService.getQuoteById(t).subscribe({next:i=>{const o=this.getQuoteItemState(i),r=this.getPrimaryState(i);this.coordinatorQuoteStatesMap.set(t,r),this.loadingCoordinatorStates.delete(t),console.log(`Coordinator quote ${this.extractShortId(t)} state: ${r} (GUI: ${o})`)},error:i=>{console.error(`Failed to load coordinator quote state for ${this.extractShortId(t)}:`,i),this.loadingCoordinatorStates.delete(t),this.coordinatorQuoteStatesMap.set(t,"unknown")}}))}loadCoordinatorStatesForTenderingQuotes(){const t=new Set;if(this.quotes.forEach(o=>{o.category===l.K0.TENDER&&o.externalId&&t.add(o.externalId)}),0===t.size)return(0,v.of)(void 0);const i=Array.from(t).map(o=>this.coordinatorQuoteStatesMap.has(o)?(0,v.of)(void 0):(console.log(`Loading coordinator quote state for: ${this.extractShortId(o)}`),this.loadingCoordinatorStates.add(o),this.quoteService.getQuoteById(o).pipe((0,g.T)(r=>{const s=this.getPrimaryState(r);this.coordinatorQuoteStatesMap.set(o,s),this.loadingCoordinatorStates.delete(o),console.log(`Coordinator quote ${this.extractShortId(o)} state: ${s}`)}),(0,x.W)(r=>(console.error(`Failed to load coordinator quote state for ${this.extractShortId(o)}:`,r),this.loadingCoordinatorStates.delete(o),this.coordinatorQuoteStatesMap.set(o,"unknown"),(0,v.of)(void 0))))));return(0,S.p)(i).pipe((0,g.T)(()=>{}))}getTruncatedTitle(t){return t?t.length>50?t.substring(0,50)+"...":t:"(no title)"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-list"]],standalone:!0,features:[e.aNF],decls:53,vars:34,consts:[[1,"min-h-screen","bg-[#F7F9FD]","font-[Blinker]",3,"click"],[1,"mx-auto","max-w-[1440px]","px-6","py-8","sm:px-10","lg:px-20","xl:px-[160px]"],[1,"mb-6","flex","flex-wrap","items-center","justify-between","gap-4"],[1,"flex","min-w-0","items-center","gap-3"],[1,"flex","h-12","w-12","shrink-0","items-center","justify-center","rounded-xl","bg-[#eef2fb]","text-[#1f4fbf]"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","1.8","d","M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414A1 1 0 0 1 19 9.414V19a2 2 0 0 1-2 2Z"],[1,"min-w-0"],[1,"flex","items-center","gap-2"],[1,"truncate","text-[28px]","font-bold","text-[#0b1220]"],["href","https://knowledgebase.dome-marketplace.eu/books/tailored-offering-guide","target","_blank","rel","noopener noreferrer","title","Click here for the Tender process guide",1,"rounded-lg","p-1","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]"],["fill","currentColor","viewBox","0 0 20 20",1,"h-5","w-5"],["fill-rule","evenodd","d","M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-3a1 1 0 0 0-.867.5 1 1 0 1 1-1.731-1A3 3 0 0 1 13 8a3.001 3.001 0 0 1-2 2.83V11a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1 1 1 0 1 0 0-2Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","clip-rule","evenodd"],[1,"flex","flex-wrap","items-center","gap-3"],["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] focus:outline-none focus:ring-2 focus:ring-[#B6CAEC] disabled:opacity-50",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]","disabled:opacity-50",3,"click","disabled"],[1,"mb-6"],[1,"inline-flex","rounded-2xl","border","border-[#EBECEE]","bg-white","p-1","shadow-sm"],[3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5"],["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,"mb-6","flex","flex-wrap","items-center","justify-between","gap-3","rounded-2xl","border","border-[#EBECEE]","bg-white","p-3","shadow-sm"],[1,"flex","items-center","gap-3"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-5","w-5","text-[#526179]"],["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-[#526179]"],[1,"relative","min-w-[240px]",3,"click"],["type","button",1,"flex","h-10","w-full","items-center","justify-between","gap-3","rounded-lg","border","px-4","text-[15px]","font-semibold","transition-colors","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]",3,"click","ngClass"],[1,"truncate"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4","shrink-0","transition-transform",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","m19.5 8.25-7.5 7.5-7.5-7.5"],["class","absolute right-0 top-full z-40 mt-2 w-full rounded-xl bg-white p-2 shadow-[0_4px_12px_rgba(0,0,0,0.15)]",4,"ngIf"],["class","flex items-center justify-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","overflow-hidden rounded-2xl border border-[#EBECEE] bg-white shadow-sm",4,"ngIf"],["title","Delete Quote","confirmText","Delete","confirmButtonClass","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",3,"confirm","cancel","isOpen","message"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["class","fixed inset-0 z-50 h-full w-full overflow-y-auto bg-[#0b1220]/45 px-4 py-8",4,"ngIf"],[3,"close","quoteUpdated","isOpen","quoteId","currentUserRole","currentUserId"],[3,"close","isOpen","quoteId"],[3,"close","uploadSuccess","isOpen","quote"],[3,"closeModal","tenderCreated","tenderUpdated","isOpen","customerId","tenderToEdit"],[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]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]","disabled:opacity-50",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 4v16m8-8H4"],[1,"absolute","right-0","top-full","z-40","mt-2","w-full","rounded-xl","bg-white","p-2","shadow-[0_4px_12px_rgba(0,0,0,0.15)]"],["type","button",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-left","text-[14px]","text-[#0b1220]","transition-colors",3,"click","ngClass"],[1,"min-w-0","flex-1","truncate"],["class","h-4 w-4 text-[#1f4fbf]","fill","none","stroke","currentColor","viewBox","0 0 24 24",4,"ngIf"],["type","button","class","flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-[14px] text-[#0b1220] transition-colors",3,"ngClass","click",4,"ngFor","ngForOf"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"h-4","w-4","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","m4.5 12.75 6 6 9-13.5"],[1,"flex","items-center","justify-center","py-8"],[1,"h-8","w-8","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[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,"overflow-hidden","rounded-2xl","border","border-[#EBECEE]","bg-white","shadow-sm"],["class","text-center py-12",4,"ngIf"],["class","border-b border-[#DDE6F6] bg-[#EBF0F7] px-6 py-3",4,"ngIf"],[4,"ngIf"],[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-semibold","text-[#0b1220]"],[1,"mt-1","text-sm","text-[#526179]"],[1,"border-b","border-[#DDE6F6]","bg-[#EBF0F7]","px-6","py-3"],[1,"grid","grid-cols-12","gap-4","text-xs","font-semibold","uppercase","tracking-wider","text-[#526179]"],[1,"col-span-2"],[1,"col-span-3"],[1,"grid","grid-cols-16","gap-4","text-xs","font-semibold","uppercase","tracking-wider","text-[#526179]"],[1,"col-span-1"],[1,"col-span-4"],["class","quote-row",4,"ngFor","ngForOf"],[1,"quote-row"],[1,"grid","grid-cols-12","gap-4","items-center","px-6","py-4","border-b","border-[#EBECEE]","transition-colors",3,"ngClass"],[1,"col-span-2","text-sm","text-[#526179]"],[1,"col-span-3","text-sm","font-semibold","text-[#0b1220]"],[1,"col-span-3","text-sm","text-[#324153]",3,"title"],["data-testid","provider-tender-status-cell",1,"col-span-2","min-w-0"],[1,"status-badge","max-w-full","truncate","rounded-full","px-2","text-xs","font-semibold","leading-5",3,"title","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,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-3","py-1.5","text-sm","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",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,"grid","grid-cols-16","gap-4","items-center","px-6","py-4","border-b","border-[#EBECEE]","transition-colors",3,"ngClass"],[1,"col-span-1","flex","items-center","gap-1"],["class","rounded-lg p-1.5 text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]",3,"title","click",4,"ngIf"],[1,"col-span-3","text-sm","font-semibold","text-[#0b1220]",3,"title"],[1,"col-span-2","min-w-0"],[1,"col-span-2","text-sm"],["class","flex items-center space-x-1",4,"ngIf"],[1,"col-span-4","flex","flex-wrap","items-center","gap-2"],[1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-3","py-1.5","text-sm","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["class","inline-flex items-center rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","Edit tender",3,"click",4,"ngIf"],["class","inline-flex items-center rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","Broadcast message to all invited providers",3,"click",4,"ngIf"],["class","inline-flex items-center gap-1 rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","[TEST] Start tender - updates status to 'launched'",3,"click",4,"ngIf"],["class","inline-flex items-center gap-1 rounded-lg border border-[#B6CAEC] px-2.5 py-1.5 text-xs font-semibold text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","[TEST] Close tender - updates status to 'closed'",3,"click",4,"ngIf"],["class","border-t border-[#EBECEE] bg-[#F7F9FD] px-6 py-4",4,"ngIf"],[1,"rounded-lg","p-1.5","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click","title"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4","transition-transform"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],[1,"flex","items-center","space-x-1"],["title","Download attachment",1,"flex","items-center","space-x-1","text-[#1f4fbf]","hover:text-[#183f99]","disabled:text-gray-300",3,"click","disabled"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13"],[1,"text-xs","truncate","max-w-[100px]"],["title","Edit tender",1,"inline-flex","items-center","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["title","Broadcast message to all invited providers",1,"inline-flex","items-center","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["title","[TEST] Start tender - updates status to 'launched'",1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","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-3","w-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13 10V3L4 14h7v7l9-11h-7z"],["title","[TEST] Close tender - updates status to 'closed'",1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-2.5","py-1.5","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"],[1,"border-t","border-[#EBECEE]","bg-[#F7F9FD]","px-6","py-4"],[1,"ml-8"],[1,"mb-3","text-sm","font-semibold","text-[#324153]"],["class","flex items-center justify-center py-4",4,"ngIf"],["class","rounded-2xl border border-[#EBECEE] bg-white py-6 text-center text-sm text-[#526179]",4,"ngIf"],[1,"flex","items-center","justify-center","py-4"],[1,"h-6","w-6","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[1,"ml-2","text-sm","text-[#526179]"],[1,"border-b","border-[#DDE6F6]","bg-[#EBF0F7]","px-4","py-2"],[1,"grid","grid-cols-12","gap-4","text-xs","font-semibold","uppercase","text-[#526179]"],["class","px-4 py-3 transition-colors hover:bg-[#EBF0F7]",3,"ngClass",4,"ngFor","ngForOf"],[1,"px-4","py-3","transition-colors","hover:bg-[#EBF0F7]",3,"ngClass"],[1,"grid","grid-cols-12","gap-4","items-center","text-sm"],[1,"col-span-4","font-semibold","text-[#0b1220]"],[1,"status-badge","max-w-full","truncate","rounded-full","px-2","py-0.5","text-xs","font-semibold","leading-5",3,"title","ngClass"],["class","flex items-center space-x-1 text-[#1f4fbf] hover:text-[#183f99]","title","Download attachment",3,"click",4,"ngIf"],[1,"col-span-3","flex","items-center","gap-2"],["title","Chat",1,"rounded-lg","p-1","text-[#526179]","transition-colors","hover:bg-[#EBF0F7]","hover:text-[#1f4fbf]",3,"click"],[1,"inline-flex","items-center","gap-1","rounded-lg","border","border-[#B6CAEC]","px-2","py-1","text-xs","font-semibold","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["title","Download attachment",1,"flex","items-center","space-x-1","text-[#1f4fbf]","hover:text-[#183f99]",3,"click"],[1,"text-xs","truncate","max-w-[80px]"],[1,"rounded-2xl","border","border-[#EBECEE]","bg-white","py-6","text-center","text-sm","text-[#526179]"],["fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"mx-auto","h-8","w-8","text-gray-400","mb-2"],[1,"fixed","inset-0","z-50","h-full","w-full","overflow-y-auto","bg-[#0b1220]/45","px-4","py-8"],[1,"relative","mx-auto","mt-12","w-full","max-w-md","rounded-2xl","border","border-[#EBECEE]","bg-white","p-6","shadow-[0_20px_50px_rgba(11,18,32,0.24)]"],[1,"mt-3"],[1,"mb-4","text-lg","font-bold","text-[#0b1220]"],[1,"space-y-3"],["class","flex items-center",4,"ngFor","ngForOf"],[1,"mt-6","flex","justify-end","gap-3","border-t","border-[#EBECEE]","pt-4"],[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,"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,"flex","items-center"],["type","radio",1,"h-4","w-4","border-[#B6CAEC]","text-[#1f4fbf]","focus:ring-[#B6CAEC]",3,"ngModelChange","id","ngModel","value"],[1,"ml-3","block","text-sm","font-semibold","text-[#324153]",3,"for"],[1,"mt-1"],["rows","4","placeholder","Type your message to all invited providers...",1,"w-full","rounded-lg","border","border-[#EBECEE]","bg-white","p-3","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"],[1,"mt-4","flex","justify-end","gap-3","border-t","border-[#EBECEE]","pt-4"]],template:function(i,o){1&i&&(e.nrm(0,"app-notification"),e.j41(1,"div",0),e.bIt("click",function(){return o.closeStatusDropdown()}),e.j41(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s()(),e.joV(),e.j41(8,"div",7)(9,"div",8)(10,"h1",9),e.EFF(11,"Tenders Dashboard"),e.k0s(),e.j41(12,"a",10),e.qSk(),e.j41(13,"svg",11),e.nrm(14,"path",12),e.k0s()()()()(),e.joV(),e.j41(15,"div",13),e.DNE(16,gt,4,0,"button",14),e.j41(17,"button",15),e.bIt("click",function(){return o.refreshQuotes()}),e.EFF(18),e.k0s()()(),e.j41(19,"div",16)(20,"div",17)(21,"button",18),e.bIt("click",function(){return o.selectRole(o.UI_ROLES.BUYER)}),e.qSk(),e.j41(22,"svg",19),e.nrm(23,"path",20),e.k0s(),e.EFF(24," As Buyer "),e.k0s(),e.joV(),e.j41(25,"button",18),e.bIt("click",function(){return o.selectRole(o.UI_ROLES.SELLER)}),e.qSk(),e.j41(26,"svg",19),e.nrm(27,"path",21),e.k0s(),e.EFF(28," As Provider "),e.k0s()()(),e.joV(),e.j41(29,"div",22)(30,"div",23),e.qSk(),e.j41(31,"svg",24),e.nrm(32,"path",25),e.k0s(),e.joV(),e.j41(33,"span",26),e.EFF(34,"Status"),e.k0s()(),e.j41(35,"div",27),e.bIt("click",function(s){return s.stopPropagation()}),e.j41(36,"button",28),e.bIt("click",function(s){return o.toggleStatusDropdown(s)}),e.j41(37,"span",29),e.EFF(38),e.k0s(),e.qSk(),e.j41(39,"svg",30),e.nrm(40,"path",31),e.k0s()(),e.DNE(41,xt,6,3,"div",32),e.k0s()(),e.DNE(42,Ct,2,0,"div",33)(43,Et,10,1,"div",34)(44,qt,6,5,"div",35),e.k0s()(),e.joV(),e.j41(45,"app-confirm-dialog",36),e.bIt("confirm",function(){return o.deleteQuote()})("cancel",function(){return o.showDeleteConfirm=!1}),e.k0s(),e.j41(46,"app-confirm-dialog",37),e.bIt("confirm",function(){return o.genericConfirmCallback&&o.genericConfirmCallback()})("cancel",function(){return o.showGenericConfirm=!1}),e.k0s(),e.DNE(47,Yt,12,2,"div",38),e.j41(48,"app-quote-details-modal",39),e.bIt("close",function(){return o.closeQuoteDetailsModal()})("quoteUpdated",function(s){return o.onQuoteUpdated(s)}),e.k0s(),e.j41(49,"app-chat-modal",40),e.bIt("close",function(){return o.closeChatModal()}),e.k0s(),e.j41(50,"app-attachment-modal",41),e.bIt("close",function(){return o.closeAttachmentModal()})("uploadSuccess",function(s){return o.onAttachmentUploaded(s)}),e.k0s(),e.DNE(51,Ut,11,3,"div",38),e.j41(52,"app-create-tender-modal",42),e.bIt("closeModal",function(){return o.closeCreateTenderModal()})("tenderCreated",function(s){return o.onTenderCreated(s)})("tenderUpdated",function(){return o.onTenderUpdated()}),e.k0s()),2&i&&(e.R7$(16),e.Y8G("ngIf",o.selectedRole===o.UI_ROLES.BUYER),e.R7$(),e.Y8G("disabled",o.loading),e.R7$(),e.SpI(" ",o.loading?"Loading...":"Refresh"," "),e.R7$(3),e.HbH(o.getRoleTabClass(o.UI_ROLES.BUYER)),e.R7$(4),e.HbH(o.getRoleTabClass(o.UI_ROLES.SELLER)),e.R7$(11),e.Y8G("ngClass",o.statusFilter?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-[#EBECEE] bg-white text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.R7$(2),e.JRh(o.getStatusFilterLabel()),e.R7$(),e.Y8G("ngClass",o.showStatusDropdown?"rotate-180":""),e.R7$(2),e.Y8G("ngIf",o.showStatusDropdown),e.R7$(),e.Y8G("ngIf",o.loading),e.R7$(),e.Y8G("ngIf",o.error),e.R7$(),e.Y8G("ngIf",!o.loading&&!o.error),e.R7$(),e.Y8G("isOpen",o.showDeleteConfirm)("message",o.deleteConfirmMessage),e.R7$(),e.Y8G("isOpen",o.showGenericConfirm)("title",o.genericConfirmTitle)("message",o.genericConfirmMessage)("confirmText",o.genericConfirmButtonText)("confirmButtonClass",o.genericConfirmButtonClass),e.R7$(),e.Y8G("ngIf",o.showStateUpdate),e.R7$(),e.Y8G("isOpen",o.showQuoteDetailsModal)("quoteId",o.selectedQuoteId)("currentUserRole",o.getModalUserRole())("currentUserId",o.currentUserId||""),e.R7$(),e.Y8G("isOpen",o.showChatModal)("quoteId",o.selectedChatQuoteId),e.R7$(),e.Y8G("isOpen",o.showAttachmentModal)("quote",o.selectedAttachmentQuote),e.R7$(),e.Y8G("ngIf",o.showBroadcastModal),e.R7$(),e.Y8G("isOpen",o.showCreateTenderModal)("customerId",o.currentUserId||"")("tenderToEdit",o.tenderToEdit))},dependencies:[_.MD,_.YU,_.Sq,_.bT,_.vh,b.YN,b.me,b.Fm,b.BC,b.vS,G.z,k.w,Z.h,ee.d,te.w,_t],styles:[".status-badge[_ngcontent-%COMP%]{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;border-width:1px;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.status-pending[_ngcontent-%COMP%]{background-color:#fff8e6;border-color:#f2d28a;color:#7a4d00}.status-inProgress[_ngcontent-%COMP%]{background-color:#ebf0f7;border-color:#b6caec;color:#1f4fbf}.status-approved[_ngcontent-%COMP%]{background-color:#eaf8f1;border-color:#a8ddc8;color:#006b4a}.status-rejected[_ngcontent-%COMP%]{background-color:#fff1f1;border-color:#f4c7c7;color:#b42318}.status-cancelled[_ngcontent-%COMP%]{background-color:#f2f4f8;border-color:#cbd3df;color:#324153}.status-accepted[_ngcontent-%COMP%]{background-color:#eaf8f1;border-color:#a8ddc8;color:#006b4a}.status-unknown[_ngcontent-%COMP%]{background-color:#f2f4f8;border-color:#cbd3df;color:#526179}.status-draft[_ngcontent-%COMP%]{background-color:#fff8e6;border-color:#f2d28a;color:#7a4d00}.status-pre-launched[_ngcontent-%COMP%]{background-color:#ebf0f7;border-color:#b6caec;color:#1f4fbf}.status-launched[_ngcontent-%COMP%]{background-color:#eaf8f1;border-color:#a8ddc8;color:#006b4a}.status-closed[_ngcontent-%COMP%]{background-color:#f2f4f8;border-color:#cbd3df;color:#324153}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}"]})}}return n})();const Vt=[{path:"",component:W}];let Xt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[_.MD,T.iI.forChild(Vt),W,G.z,k.w]})}}return n})()}}]); \ No newline at end of file diff --git a/portal/bae-frontend/826.61f9f02069b6611d.js b/portal/bae-frontend/826.4c957d8027ea0960.js similarity index 53% rename from portal/bae-frontend/826.61f9f02069b6611d.js rename to portal/bae-frontend/826.4c957d8027ea0960.js index 739e8aab..42897e83 100644 --- a/portal/bae-frontend/826.61f9f02069b6611d.js +++ b/portal/bae-frontend/826.4c957d8027ea0960.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[826],{6826:(R,l,d)=>{d.r(l),d.d(l,{LandingPageProvidersComponent:()=>T});var x=d(5312),p=d(60),s=d(604),a=d(3955),e=d(4438);const f=(t,r)=>r.id;function h(t,r){if(1&t){const n=e.RV6();e.j41(0,"article",6)(1,"button",7),e.bIt("click",function(){const o=e.eBV(n).$implicit,g=e.XpG();return e.Njj(g.toggleFaq(o.id))}),e.j41(2,"span",8),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span",9),e.nrm(6,"fa-icon",10),e.k0s()(),e.j41(7,"div",11)(8,"div",12),e.nrm(9,"div",13),e.j41(10,"div",14),e.nrm(11,"div",15),e.nI1(12,"translate"),e.k0s()()()()}if(2&t){const n=r.$implicit,i=e.XpG();e.AVh("faq-card--open",i.isOpen(n.id)),e.R7$(),e.BMQ("aria-expanded",i.isOpen(n.id)),e.R7$(2),e.SpI(" ",e.bMT(4,10,n.questionKey)," "),e.R7$(2),e.AVh("faq-icon--open",i.isOpen(n.id)),e.R7$(),e.Y8G("icon",i.isOpen(n.id)?i.faMinus:i.faPlus),e.R7$(),e.AVh("faq-answer--open",i.isOpen(n.id)),e.R7$(4),e.Y8G("innerHTML",e.bMT(12,12,n.answerKey),e.npT)}}let m=(()=>{class t{constructor(){this.faPlus=s.QLR,this.faMinus=s.EZy,this.openFaqId="",this.faqs=[{id:"1",questionKey:"LANDINGPAGE.providers.faqs._items.1.question",answerKey:"LANDINGPAGE.providers.faqs._items.1.answer"},{id:"2",questionKey:"LANDINGPAGE.providers.faqs._items.2.question",answerKey:"LANDINGPAGE.providers.faqs._items.2.answer"},{id:"3",questionKey:"LANDINGPAGE.providers.faqs._items.3.question",answerKey:"LANDINGPAGE.providers.faqs._items.3.answer"},{id:"4",questionKey:"LANDINGPAGE.providers.faqs._items.4.question",answerKey:"LANDINGPAGE.providers.faqs._items.4.answer"},{id:"5",questionKey:"LANDINGPAGE.providers.faqs._items.5.question",answerKey:"LANDINGPAGE.providers.faqs._items.5.answer"},{id:"6",questionKey:"LANDINGPAGE.providers.faqs._items.6.question",answerKey:"LANDINGPAGE.providers.faqs._items.6.answer"}]}toggleFaq(n){this.openFaqId=this.openFaqId===n?"":n}isOpen(n){return this.openFaqId===n}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-faqs"]],standalone:!0,features:[e.aNF],decls:9,vars:3,consts:[[1,"faq-section","w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-5","py-[64px]","sm:px-8","sm:py-[80px]","lg:px-[160px]","lg:py-[100px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","gap-8","lg:gap-10"],[1,"faq-heading"],[1,"flex","flex-col","gap-4","lg:gap-6"],[1,"faq-card",3,"faq-card--open"],[1,"faq-card"],["type","button",1,"faq-question",3,"click"],[1,"faq-question__title"],[1,"faq-icon"],[3,"icon"],[1,"faq-answer"],[1,"faq-answer__inner"],[1,"faq-divider"],[1,"faq-answer__content"],[3,"innerHTML"]],template:function(i,o){1&i&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",4),e.Z7z(7,h,13,14,"article",5,f),e.k0s()()()()),2&i&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"LANDINGPAGE.providers.faqs.title")," "),e.R7$(3),e.Dyx(o.faqs))},dependencies:[a.h,a.D9,p.dX,p.aY],styles:['[_nghost-%COMP%]{display:block}.faq-section[_ngcontent-%COMP%]{background:#ebf0f7}.faq-heading[_ngcontent-%COMP%]{color:#0b1528;font-weight:700;font-size:32px;line-height:38px}.faq-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;border:1px solid transparent}.faq-card--open[_ngcontent-%COMP%]{border:1px solid #D8DADE;box-shadow:0 0 16px #00000014}.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}.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,transform .25s ease}.faq-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:transform .25s ease}.faq-icon--open[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.faq-answer[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .35s ease,opacity .25s ease,margin-top .35s ease;margin-top:0}.faq-answer--open[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1;margin-top:16px}.faq-answer__inner[_ngcontent-%COMP%]{overflow:hidden}.faq-divider[_ngcontent-%COMP%]{height:1px;background:#d8dade;margin-bottom:16px;transform:scaleX(.96);transform-origin:left center;transition:transform .35s ease,opacity .25s ease;opacity:0}.faq-answer--open[_ngcontent-%COMP%] .faq-divider[_ngcontent-%COMP%]{transform:scaleX(1);opacity:1}.faq-answer__content[_ngcontent-%COMP%]{color:#324153;font-size:18px;line-height:30px;transform:translateY(-8px);opacity:0;transition:transform .35s ease,opacity .3s ease}.faq-answer--open[_ngcontent-%COMP%] .faq-answer__content[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}[_nghost-%COMP%] .faq-answer__content p{margin:0 0 16px}[_nghost-%COMP%] .faq-answer__content p:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content ul{margin:0 0 16px;padding-left:28px;list-style:disc outside}[_nghost-%COMP%] .faq-answer__content ul:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content li{display:list-item;margin:0 0 12px}[_nghost-%COMP%] .faq-answer__content li:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content strong, [_nghost-%COMP%] .faq-answer__content b{font-weight:700;color:#0b1528}[_nghost-%COMP%] .faq-answer__content br{display:block;content:"";margin-top:12px}@media (min-width: 1024px){.faq-heading[_ngcontent-%COMP%]{font-size:48px;line-height:58px}.faq-question__title[_ngcontent-%COMP%]{font-size:24px;line-height:29px}.faq-answer__content[_ngcontent-%COMP%]{font-size:20px;line-height:32px}[_nghost-%COMP%] .faq-answer__content ul{padding-left:30px}}']})}}return t})();var u=d(5851),v=d(8620),w=d(7265);const P=(t,r)=>r.titleKey;function y(t,r){if(1&t&&(e.j41(0,"article",10)(1,"div",11)(2,"div",12),e.nrm(3,"fa-icon",13),e.k0s(),e.j41(4,"div",14)(5,"h3",15),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",16),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()()),2&t){const n=r.$implicit;e.R7$(3),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(7,3,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(10,5,n.descKey)," ")}}let b=(()=>{class t{constructor(){this.cards=[{titleKey:"LANDINGPAGE.providers.goodFit.cards.cloud.title",descKey:"LANDINGPAGE.providers.goodFit.cards.cloud.desc",icon:s.jBL},{titleKey:"LANDINGPAGE.providers.goodFit.cards.saas.title",descKey:"LANDINGPAGE.providers.goodFit.cards.saas.desc",icon:s._Xl},{titleKey:"LANDINGPAGE.providers.goodFit.cards.deepTech.title",descKey:"LANDINGPAGE.providers.goodFit.cards.deepTech.desc",icon:s.KMJ},{titleKey:"LANDINGPAGE.providers.goodFit.cards.publicSector.title",descKey:"LANDINGPAGE.providers.goodFit.cards.publicSector.desc",icon:s.PKn}]}get scrollHeight(){return window.innerWidth<768?460:window.innerWidth<1280?540:636}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-fit"]],standalone:!0,features:[e.aNF],decls:20,vars:15,consts:[[1,"good-fit-section","relative","isolate","w-full","overflow-hidden","bg-white","font-[Blinker]"],["aria-hidden","true",1,"good-fit-watermark","pointer-events-none","select-none"],[1,"mx-auto","w-full","max-w-[1440px]","px-6","py-16","sm:px-8","lg:px-16","lg:py-[100px]","xl:px-[160px]"],[1,"good-fit-layout"],[1,"good-fit-copy"],[1,"good-fit-title"],[1,"text-[#18A8D8]"],[1,"good-fit-description"],[1,"good-fit-cards-col"],[1,"good-fit-scroll",3,"height","gap","indicatorLeft"],["verticalScrollCard","",1,"good-fit-card"],[1,"flex","flex-col","gap-5","sm:gap-6"],[1,"good-fit-card__icon"],[1,"text-[32px]","sm:text-[36px]",3,"icon"],[1,"flex","flex-col","gap-3"],[1,"good-fit-card__title"],[1,"good-fit-card__desc"]],template:function(i,o){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5),e.EFF(6),e.nI1(7,"translate"),e.j41(8,"span",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"p",7),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",8)(17,"app-vertical-scroll-cards",9),e.Z7z(18,y,11,7,"article",10,P),e.k0s()()()()()),2&i&&(e.R7$(6),e.SpI(" ",e.bMT(7,7,"LANDINGPAGE.providers.goodFit.titleStart")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"LANDINGPAGE.providers.goodFit.titleAccent")," "),e.R7$(2),e.SpI(" ",e.bMT(12,11,"LANDINGPAGE.providers.goodFit.titleEnd")," "),e.R7$(3),e.SpI(" ",e.bMT(15,13,"LANDINGPAGE.providers.goodFit.description")," "),e.R7$(3),e.Y8G("height",o.scrollHeight)("gap",24)("indicatorLeft",14),e.R7$(),e.Dyx(o.cards))},dependencies:[a.h,a.D9,p.dX,p.aY,u.h,v.g,w.w],styles:[".good-fit-section[_ngcontent-%COMP%]{min-height:960px}.good-fit-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:454px 580px;justify-content:space-between;align-items:center;column-gap:40px}.good-fit-copy[_ngcontent-%COMP%]{max-width:454px}.good-fit-title[_ngcontent-%COMP%]{margin:0;color:#0b1528;font-size:48px;font-weight:700;line-height:58px;letter-spacing:-.02em}.good-fit-description[_ngcontent-%COMP%]{margin:24px 0 0;color:#1f2937;font-size:20px;line-height:1.6}.good-fit-cards-col[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;min-width:0}.good-fit-scroll[_ngcontent-%COMP%]{width:580px;max-width:100%}.good-fit-card[_ngcontent-%COMP%]{width:100%;background:#ebf0f7;border-radius:20px;padding:28px 30px;box-sizing:border-box;transition:background-color .2s ease,transform .2s ease}.good-fit-card__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:76px;height:76px;border-radius:18px;background:#dfe7f5;color:#2f58a7;flex:0 0 auto}.good-fit-card__title[_ngcontent-%COMP%]{margin:0;color:#0b1528;font-size:24px;font-weight:700;line-height:1.2}.good-fit-card__desc[_ngcontent-%COMP%]{margin:0;color:#4a5a70;font-size:20px;line-height:1.65}.good-fit-watermark[_ngcontent-%COMP%]{position:absolute;left:-120px;bottom:-140px;width:560px;height:560px;opacity:.5;background-color:#edf2f8;mask-image:url(/assets/logos/DOME_Icon_White.svg);-webkit-mask-image:url(/assets/logos/DOME_Icon_White.svg);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}@media (max-width: 1279px){.good-fit-section[_ngcontent-%COMP%]{min-height:auto}.good-fit-layout[_ngcontent-%COMP%]{grid-template-columns:1fr;row-gap:40px}.good-fit-copy[_ngcontent-%COMP%]{max-width:640px}.good-fit-cards-col[_ngcontent-%COMP%]{justify-content:flex-start}.good-fit-scroll[_ngcontent-%COMP%]{width:100%;max-width:580px}}@media (max-width: 767px){.good-fit-title[_ngcontent-%COMP%]{font-size:32px;line-height:40px}.good-fit-description[_ngcontent-%COMP%]{margin-top:16px;font-size:18px;line-height:1.6}.good-fit-card[_ngcontent-%COMP%]{padding:24px;border-radius:16px}.good-fit-card__icon[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:16px}.good-fit-card__title[_ngcontent-%COMP%]{font-size:22px}.good-fit-card__desc[_ngcontent-%COMP%]{font-size:18px;line-height:1.6}.good-fit-watermark[_ngcontent-%COMP%]{left:-90px;bottom:-100px;width:320px;height:320px;opacity:.35}}"]})}}return t})(),_=(()=>{class t{constructor(){this.url=e.hFB.required()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-grow"]],inputs:{url:[e.Mj6.SignalBased,"url"]},standalone:!0,features:[e.aNF],decls:18,vars:13,consts:[[1,"cta-provider-section","w-full","font-[Blinker]","bg-[linear-gradient(180deg,#EBF0F7_0%,#FFFFFF_100%)]"],[1,"mx-auto","flex","w-full","max-w-[1440px]","px-5","py-16","sm:px-8","sm:py-20","lg:px-[160px]","lg:py-[100px]"],[1,"cta-provider-card","relative","isolate","flex","w-full","flex-col","items-center","overflow-hidden","rounded-2xl","px-6","py-12","sm:px-8","lg:px-6","lg:py-16"],["aria-hidden","true",1,"cta-provider-blur"],[1,"relative","z-[1]","flex","w-full","max-w-[930px]","flex-col","items-center","gap-6","text-center"],[1,"flex","w-full","flex-col","items-center","gap-6"],[1,"m-0","w-full","text-center","text-[32px]","font-bold","leading-[1.1]","text-white","sm:text-[38px]","lg:text-[44px]","lg:leading-[53px]",3,"innerHTML"],[1,"m-0","w-full","text-center","text-[18px]","font-normal","leading-[1.2]","text-white","sm:text-[20px]","lg:text-[24px]","lg:leading-[29px]"],[1,"flex","w-full","max-w-[548px]","flex-col","items-stretch","justify-center","gap-4","sm:flex-row","sm:gap-6"],[1,"cta-btn","cta-btn--primary",3,"href"],["href","/contact-us",1,"cta-btn","cta-btn--secondary"]],template:function(i,o){1&i&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2),e.nrm(3,"div",3),e.j41(4,"div",4)(5,"div",5),e.nrm(6,"h2",6),e.nI1(7,"translate"),e.j41(8,"p",7),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",8)(12,"a",9),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"a",10),e.EFF(16),e.nI1(17,"translate"),e.k0s()()()()()()),2&i&&(e.R7$(6),e.Y8G("innerHTML",e.bMT(7,5,"LANDINGPAGE.providers.cta.title"),e.npT),e.R7$(3),e.SpI(" ",e.bMT(10,7,"LANDINGPAGE.providers.cta.subtitle")," "),e.R7$(3),e.Y8G("href",o.url(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(14,9,"LANDINGPAGE.providers.cta.primaryButton")," "),e.R7$(3),e.SpI(" ",e.bMT(17,11,"LANDINGPAGE.providers.cta.secondaryButton")," "))},dependencies:[a.h,a.D9],styles:["[_nghost-%COMP%]{display:block}.cta-provider-card[_ngcontent-%COMP%]{min-height:322px;background:linear-gradient(134.88deg,#1a3360 -34.11%,#0b1528 41.11%,#1a3360 120.81%)}.cta-provider-blur[_ngcontent-%COMP%]{position:absolute;width:520px;height:520px;left:-91px;top:-158px;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);z-index:0}.cta-btn[_ngcontent-%COMP%]{display:flex;height:48px;min-width:0;flex:1;align-items:center;justify-content:center;padding-left:20px;padding-right:20px;border-radius:6px;font-size:16px;font-weight:600;line-height:24px;letter-spacing:.5px;text-align:center;text-decoration:none;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.cta-btn--primary[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.cta-btn--primary[_ngcontent-%COMP%]:hover{background:#18b5d9;color:#fff}.cta-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid #2D58A7}.cta-btn--secondary[_ngcontent-%COMP%]:hover{background:#5b6f8e;color:#fff;border-color:#2d58a7}@media (max-width: 1023.98px){.cta-provider-card[_ngcontent-%COMP%]{min-height:auto}.cta-provider-blur[_ngcontent-%COMP%]{left:-180px;top:-180px;width:420px;height:420px}}"]})}}return t})(),G=(()=>{class t{constructor(){this.url=e.hFB.required()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-hero"]],inputs:{url:[e.Mj6.SignalBased,"url"]},standalone:!0,features:[e.aNF],decls:28,vars:22,consts:[[1,"provider-contact-section","relative","isolate","flex","w-full","items-center","justify-center","overflow-hidden","bg-[linear-gradient(180deg,#0C182D_0%,#1A3360_100%)]","font-[Blinker]"],[1,"provider-contact-blur-left","absolute","left-[-140px]","top-[-80px]","z-0","h-[280px]","w-[280px]","rounded-full","bg-[#234481]","opacity-30","sm:left-[-180px]","sm:top-[-60px]","sm:h-[380px]","sm:w-[380px]","lg:left-[-252px]","lg:top-[-73px]","lg:h-[561px]","lg:w-[561px]"],[1,"provider-contact-blur-right","absolute","bottom-[-60px]","right-[-80px]","z-[1]","h-[220px]","w-[220px]","rounded-full","bg-[#234481]","opacity-30","sm:bottom-[-80px]","sm:right-[-100px]","sm:h-[300px]","sm:w-[300px]","lg:bottom-auto","lg:left-[1187px]","lg:top-[268px]","lg:h-[440px]","lg:w-[440px]"],[1,"relative","z-[2]","flex","w-full","max-w-[1440px]","flex-col","items-start","justify-center","gap-10","px-5","py-16","sm:px-8","sm:py-20","md:gap-12","lg:gap-[93px]","lg:px-[80px]","lg:pb-[80px]","lg:pt-[160px]","xl:px-[160px]","xl:pt-[200px]"],[1,"flex","w-full","max-w-[1120px]","flex-col","items-start","gap-6"],[1,"flex","min-h-[38px]","items-center","justify-center","whitespace-nowrap","rounded-[50px]","border-[0.666667px]","border-[rgba(0,173,211,0.25)]","bg-[rgba(0,173,211,0.15)]","px-4","py-2","sm:min-h-[45px]","sm:px-6"],[1,"text-[16px]","font-bold","leading-none","text-[#00ADD3]","sm:text-[20px]","lg:text-[24px]"],[1,"m-0","w-full","max-w-[1120px]","text-[34px]","font-extrabold","leading-[1.08]","tracking-[0.2px]","text-white","sm:text-[46px]","sm:tracking-[0.4px]","md:text-[56px]","lg:text-[70px]","lg:leading-[84px]","lg:tracking-[1px]"],[1,"text-[#00ADD3]"],[1,"m-0","w-full","max-w-[1120px]","text-[18px]","font-normal","leading-[1.6]","text-white","sm:text-[22px]","md:text-[26px]","lg:text-[32px]","lg:leading-[48px]"],[1,"flex","w-full","max-w-[548px]","flex-col","items-stretch","gap-4","pt-2","sm:pt-4","md:flex-row","md:items-center","md:gap-6","lg:pt-8"],[1,"provider-btn","provider-btn--primary",3,"href"],["href","/contact-us",1,"provider-btn","provider-btn--secondary"]],template:function(i,o){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2),e.j41(3,"div",3)(4,"div",4)(5,"span",5)(6,"span",6),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"h2",7),e.EFF(10),e.nI1(11,"translate"),e.nrm(12,"br"),e.j41(13,"span",8),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"p",9),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"div",10)(22,"a",11),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"a",12),e.EFF(26),e.nI1(27,"translate"),e.k0s()()()()()),2&i&&(e.R7$(7),e.SpI(" ",e.bMT(8,8,"LANDINGPAGE.providers.badge")," "),e.R7$(3),e.SpI(" ",e.bMT(11,10,"LANDINGPAGE.providers.titleLine1"),""),e.R7$(4),e.JRh(e.bMT(15,12,"LANDINGPAGE.providers.titleHighlight")),e.R7$(2),e.SpI(" ",e.bMT(17,14,"LANDINGPAGE.providers.titleLine2")," "),e.R7$(3),e.SpI(" ",e.bMT(20,16,"LANDINGPAGE.providers.description")," "),e.R7$(3),e.Y8G("href",o.url(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(24,18,"LANDINGPAGE.providers.primaryCta")," "),e.R7$(3),e.SpI(" ",e.bMT(27,20,"LANDINGPAGE.providers.secondaryCta")," "))},dependencies:[a.h,a.D9],styles:[".provider-btn[_ngcontent-%COMP%]{display:flex;height:56px;min-width:0;flex:1;align-items:center;justify-content:center;padding:16px 24px;border-radius:8px;font-size:16px;font-weight:600;line-height:22px;text-align:center;text-decoration:none;transition:background-color .25s ease,border-color .25s ease,color .25s ease,transform .15s ease}.provider-btn--primary[_ngcontent-%COMP%]{background:#2d58a7;color:#fff;border:2px solid transparent}.provider-btn--primary[_ngcontent-%COMP%]:hover{background:#1ba6bd;color:#fff;transform:translateY(-1px)}.provider-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:3px solid #2D58A7}.provider-btn--secondary[_ngcontent-%COMP%]:hover{background:#4e678a;color:#fff;border-color:#2d58a7;transform:translateY(-1px)}.provider-btn[_ngcontent-%COMP%]:active{transform:translateY(0)}@media (min-width: 640px){.provider-btn[_ngcontent-%COMP%]{font-size:18px}}"]})}}return t})();var I=d(8338);const A=(t,r)=>r.titleKey;function M(t,r){if(1&t&&(e.j41(0,"div",8)(1,"article",9),e.nrm(2,"div",10),e.j41(3,"div",11),e.nrm(4,"fa-icon",12),e.k0s(),e.j41(5,"div",13)(6,"h3",14),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"p",15),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()),2&t){const n=r.$implicit,i=e.XpG();e.xc7("width",100/i.visibleItems,"%"),e.R7$(4),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(8,5,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(11,7,n.descriptionKey)," ")}}let N=(()=>{class t{constructor(){this.visibleItems=3,this.cards=[{titleKey:"LANDINGPAGE.providers.included.cards.onboarding.title",descriptionKey:"LANDINGPAGE.providers.included.cards.onboarding.description",icon:s.Zsp},{titleKey:"LANDINGPAGE.providers.included.cards.procurement.title",descriptionKey:"LANDINGPAGE.providers.included.cards.procurement.description",icon:s.KMJ},{titleKey:"LANDINGPAGE.providers.included.cards.trust.title",descriptionKey:"LANDINGPAGE.providers.included.cards.trust.description",icon:s.fLc},{titleKey:"LANDINGPAGE.providers.included.cards.performance.title",descriptionKey:"LANDINGPAGE.providers.included.cards.performance.description",icon:s.q9c},{titleKey:"LANDINGPAGE.providers.included.cards.advanced.title",descriptionKey:"LANDINGPAGE.providers.included.cards.advanced.description",icon:s.BH7},{titleKey:"LANDINGPAGE.providers.included.cards.commercial.title",descriptionKey:"LANDINGPAGE.providers.included.cards.commercial.description",icon:s.$O8},{titleKey:"LANDINGPAGE.providers.included.cards.operational.title",descriptionKey:"LANDINGPAGE.providers.included.cards.operational.description",icon:s.APe},{titleKey:"LANDINGPAGE.providers.included.cards.marketing.title",descriptionKey:"LANDINGPAGE.providers.included.cards.marketing.description",icon:s.e4L},{titleKey:"LANDINGPAGE.providers.included.cards.federated.title",descriptionKey:"LANDINGPAGE.providers.included.cards.federated.description",icon:s.Bwz}],this.updateVisibleItems()}onResize(){this.updateVisibleItems()}updateVisibleItems(){const n=window.innerWidth;this.visibleItems=n<768?1:n<1280?2:3}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-included"]],hostBindings:function(i,o){1&i&&e.bIt("resize",function(){return o.onResize()},!1,e.tSv)},standalone:!0,features:[e.aNF],decls:11,vars:6,consts:[[1,"providers-included-section","relative","isolate","flex","w-full","flex-col","items-center","overflow-hidden","px-5","py-16","sm:px-8","sm:py-20","lg:px-[80px]","lg:py-[100px]","xl:px-[160px]","font-[Blinker]"],["aria-hidden","true",1,"providers-included-glow","providers-included-glow--left"],["aria-hidden","true",1,"providers-included-glow","providers-included-glow--right"],[1,"relative","z-[2]","flex","w-full","max-w-[1120px]","items-center","justify-center"],[1,"text-center","text-[32px]","font-bold","leading-[40px]","text-white","sm:text-[40px]","sm:leading-[48px]","lg:text-[48px]","lg:leading-[58px]"],[1,"relative","z-[2]","mt-10","w-full","max-w-[1280px]","lg:mt-12"],["arrowTheme","dark","dotsTheme","accent",3,"items","visible","sidePadding"],[1,"shrink-0","px-3",3,"width"],[1,"shrink-0","px-3"],[1,"provider-card","relative","flex","h-[350px]","flex-col","items-start","gap-12","overflow-hidden","rounded-2xl","border","border-[#234481]","bg-[linear-gradient(175.9deg,#14274A_3.34%,#0B1528_97.37%)]","p-6"],["aria-hidden","true",1,"provider-card__top-line"],[1,"flex","h-[72px]","w-[72px]","items-center","justify-center","rounded-2xl","bg-[#1A3360]"],[1,"text-[40px]","text-[#00ADD3]",3,"icon"],[1,"flex","flex-col","items-start","gap-4"],[1,"m-0","min-h-[76px]","text-left","text-[28px]","font-bold","leading-[1.15]","text-white","lg:text-[32px]"],[1,"m-0","text-left","text-[18px]","font-normal","leading-8","text-white"]],template:function(i,o){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2),e.j41(3,"div",3)(4,"h2",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",5)(8,"app-carousel",6),e.Z7z(9,M,12,9,"div",7,A),e.k0s()()()),2&i&&(e.R7$(5),e.SpI(" ",e.bMT(6,4,"LANDINGPAGE.providers.included.title")," "),e.R7$(3),e.Y8G("items",o.cards)("visible",o.visibleItems)("sidePadding",!0),e.R7$(),e.Dyx(o.cards))},dependencies:[a.h,a.D9,p.dX,p.aY,I.g],styles:["[_nghost-%COMP%]{display:block}.providers-included-section[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.providers-included-glow[_ngcontent-%COMP%]{position:absolute;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);pointer-events:none}.providers-included-glow--left[_ngcontent-%COMP%]{width:520px;height:520px;left:0;top:-40px}.providers-included-glow--right[_ngcontent-%COMP%]{width:440px;height:440px;right:-18px;top:35px}.provider-card__top-line[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;width:calc(100% - 18px);height:2px;transform:translate(-50%);background:linear-gradient(90deg,#0000,#00add3,#0000);opacity:.75}"]})}}return t})();const C=(t,r)=>r.number;function O(t,r){1&t&&e.nrm(0,"div",12)}function F(t,r){if(1&t&&(e.j41(0,"div",7)(1,"div",8),e.nrm(2,"fa-icon",9),e.j41(3,"div",10),e.EFF(4),e.k0s(),e.j41(5,"div",11),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.DNE(8,O,1,0,"div",12)),2&t){const n=r.$implicit,i=e.XpG();e.R7$(2),e.Y8G("icon",n.icon),e.R7$(2),e.SpI(" ",n.number," "),e.R7$(2),e.SpI(" ",e.bMT(7,4,n.textKey)," "),e.R7$(2),e.vxM(8,n.number{class t{constructor(){this.steps=[{number:1,textKey:"LANDINGPAGE.providers.procureSteps.steps.step1",icon:s.X46},{number:2,textKey:"LANDINGPAGE.providers.procureSteps.steps.step2",icon:s.$UM},{number:3,textKey:"LANDINGPAGE.providers.procureSteps.steps.step3",icon:s.WfV},{number:4,textKey:"LANDINGPAGE.providers.procureSteps.steps.step4",icon:s.Z8x}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-procure"]],standalone:!0,features:[e.aNF],decls:12,vars:6,consts:[[1,"providers-steps-section","w-full","bg-[#EBF0F7]","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-6","py-16","sm:px-8","sm:py-20","lg:px-16","lg:py-[80px]","xl:px-[160px]","xl:py-[100px]"],[1,"providers-steps-layout"],[1,"providers-steps-copy"],[1,"text-[32px]","sm:text-[40px]","xl:text-[48px]","font-bold","leading-[1.2]","xl:leading-[58px]","text-[#0B1528]",3,"innerHTML"],[1,"mt-4","text-[18px]","sm:text-[20px]","leading-[1.6]","xl:leading-[32px]","text-[#0B1528]"],[1,"providers-steps-cards"],[1,"providers-step-wrapper"],[1,"providers-step-card"],[1,"providers-step-icon",3,"icon"],[1,"providers-step-number","gradient-number"],[1,"providers-step-text"],[1,"providers-step-separator"]],template:function(i,o){1&i&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"h2",4),e.nI1(5,"translate"),e.j41(6,"p",5),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",6),e.Z7z(10,F,9,6,null,null,C),e.k0s()()()()),2&i&&(e.R7$(4),e.Y8G("innerHTML",e.bMT(5,2,"LANDINGPAGE.providers.procureSteps.title"),e.npT),e.R7$(3),e.SpI(" ",e.bMT(8,4,"LANDINGPAGE.providers.procureSteps.subtitle")," "),e.R7$(3),e.Dyx(o.steps))},dependencies:[a.h,a.D9,p.dX,p.aY],styles:["[_nghost-%COMP%]{display:block}.providers-steps-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px}.providers-steps-copy[_ngcontent-%COMP%]{max-width:1120px}.providers-steps-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;align-items:stretch}.providers-step-wrapper[_ngcontent-%COMP%]{width:100%}.providers-step-card[_ngcontent-%COMP%]{position:relative;width:100%;min-height:190px;background:#f7f9fd;border:1px solid rgba(216,218,222,.6);border-radius:16px;padding:20px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:24px}.providers-step-icon[_ngcontent-%COMP%]{position:absolute;right:-8px;bottom:-8px;font-size:72px;color:#2d58a7;opacity:.07}.providers-step-number[_ngcontent-%COMP%]{display:inline-block;font-size:52px;font-weight:800;line-height:1;letter-spacing:.02em}.providers-step-text[_ngcontent-%COMP%]{max-width:180px;font-size:16px;font-weight:600;line-height:1.2;color:#0b1528}.providers-step-separator[_ngcontent-%COMP%]{display:none}.gradient-number[_ngcontent-%COMP%]{background:linear-gradient(180deg,#1a3360,#00add3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}@media (min-width: 640px){.providers-step-card[_ngcontent-%COMP%]{min-height:220px;padding:24px;gap:24px}.providers-step-icon[_ngcontent-%COMP%]{right:-16px;bottom:-16px;font-size:96px}.providers-step-number[_ngcontent-%COMP%]{font-size:72px}.providers-step-text[_ngcontent-%COMP%]{font-size:18px}}@media (min-width: 768px) and (max-width: 1279px){.providers-steps-cards[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap;gap:24px}.providers-step-wrapper[_ngcontent-%COMP%]{width:calc(50% - 12px)}}@media (min-width: 1280px){.providers-steps-layout[_ngcontent-%COMP%]{gap:40px}.providers-steps-cards[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:8px}.providers-step-wrapper[_ngcontent-%COMP%]{width:auto;flex:0 0 auto}.providers-step-card[_ngcontent-%COMP%]{width:226px;min-height:240px;padding:24px}.providers-step-icon[_ngcontent-%COMP%]{right:-22px;bottom:-20px;font-size:120px}.providers-step-number[_ngcontent-%COMP%]{font-size:96px}.providers-step-text[_ngcontent-%COMP%]{font-size:20px}.providers-step-separator[_ngcontent-%COMP%]{display:block;width:56px;height:2px;align-self:center;flex:0 0 auto;background:linear-gradient(90deg,#ebf0f7,#00add3,#ebf0f7)}}"]})}}return t})();const c=(t,r)=>r.titleKey;function E(t,r){if(1&t&&(e.j41(0,"article",11)(1,"div",12),e.nrm(2,"fa-icon",13),e.k0s(),e.j41(3,"div",14)(4,"h3",15),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",16),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&t){const n=r.$implicit;e.AVh("justify-end",n.alignEnd),e.R7$(2),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(6,5,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,n.descriptionKey)," ")}}function L(t,r){if(1&t&&(e.j41(0,"article",11)(1,"div",12),e.nrm(2,"fa-icon",13),e.k0s(),e.j41(3,"div",14)(4,"h3",15),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",16),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&t){const n=r.$implicit;e.R7$(2),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(6,3,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,n.descriptionKey)," ")}}let k=(()=>{class t{constructor(){this.leftCards=[{titleKey:"LANDINGPAGE.providers.trust.cards.euBasedProviders.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.euBasedProviders.description",icon:s.s6x,alignEnd:!0},{titleKey:"LANDINGPAGE.providers.trust.cards.transparency.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.transparency.description",icon:s.R1H}],this.rightCards=[{titleKey:"LANDINGPAGE.providers.trust.cards.trustedSourcing.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.trustedSourcing.description",icon:s.XYS},{titleKey:"LANDINGPAGE.providers.trust.cards.dataSovereignty.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.dataSovereignty.description",icon:s.hem}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-trust"]],standalone:!0,features:[e.aNF],decls:26,vars:15,consts:[[1,"w-full","bg-[#F1F5FB]","font-[Blinker]"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","gap-10","px-5","py-16","sm:px-8","sm:py-20","lg:flex-row","lg:items-center","lg:gap-8","lg:px-[80px]","lg:py-[80px]","xl:px-[160px]"],[1,"flex","w-full","flex-1","flex-col","items-start","gap-6","lg:max-w-[544px]"],[1,"flex","w-full","flex-col","items-start","gap-4","pb-2","sm:pb-4","lg:w-[544px]","lg:pb-6"],[1,"w-full","text-[32px]","font-bold","leading-[1.15]","text-[#0B1528]","sm:text-[40px]","md:text-[44px]","lg:w-[544px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[#2D58A7]"],[1,"w-full","text-[17px]","font-normal","leading-[28px]","text-[#0B1528]","sm:text-[18px]","sm:leading-[30px]","lg:w-[544px]","lg:text-[20px]","lg:leading-[32px]"],[1,"flex","w-full","flex-1","flex-col","gap-6","sm:gap-8","lg:max-w-[544px]","lg:flex-row","lg:items-start","lg:gap-6"],[1,"grid","w-full","grid-cols-1","gap-6","sm:grid-cols-2","lg:flex","lg:w-[260px]","lg:flex-col"],[1,"flex","min-h-[221px]","w-full","flex-col","items-start","rounded-2xl","bg-white","p-6","lg:w-[260px]",3,"justify-end"],[1,"grid","w-full","grid-cols-1","gap-6","sm:grid-cols-2","lg:flex","lg:w-[260px]","lg:flex-col","lg:pt-12"],[1,"flex","min-h-[221px]","w-full","flex-col","items-start","rounded-2xl","bg-white","p-6","lg:w-[260px]"],[1,"mb-6","flex","h-10","w-10","items-center","justify-center","text-[#2D58A7]"],[1,"text-[40px]","leading-none",3,"icon"],[1,"flex","w-full","flex-col","items-start","gap-2","self-stretch","lg:w-[212px]"],[1,"self-stretch","text-[22px]","font-bold","leading-[1.2]","text-[#0B1528]","lg:text-[24px]","lg:leading-[29px]"],[1,"self-stretch","text-[15px]","font-normal","leading-6","text-[#0B1528]","lg:text-[16px]"]],template:function(i,o){1&i&&(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.j41(7,"span",5),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"br"),e.EFF(11),e.nI1(12,"translate"),e.nrm(13,"br"),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"p",6),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"div",7)(20,"div",8),e.Z7z(21,E,10,9,"article",9,c),e.k0s(),e.j41(23,"div",10),e.Z7z(24,L,10,7,"article",11,c),e.k0s()()()()),2&i&&(e.R7$(5),e.SpI(" ",e.bMT(6,5,"LANDINGPAGE.providers.trust.titleStart")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"LANDINGPAGE.providers.trust.titleHighlight")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"LANDINGPAGE.providers.trust.titleLine2")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"LANDINGPAGE.providers.trust.titleLine3")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"LANDINGPAGE.providers.trust.description")," "),e.R7$(4),e.Dyx(o.leftCards),e.R7$(3),e.Dyx(o.rightCards))},dependencies:[a.h,a.D9,p.dX,p.aY]})}}return t})();const j=(t,r)=>r.titleKey;function K(t,r){if(1&t&&(e.j41(0,"article",8),e.nrm(1,"div",9)(2,"div",10),e.j41(3,"div",11)(4,"span",12),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"span",13),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"p",14),e.EFF(11),e.nI1(12,"translate"),e.k0s()()),2&t){const n=r.$implicit;e.R7$(5),e.SpI(" ",e.bMT(6,3,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,n.highlightKey)," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,n.descriptionKey)," ")}}let q=(()=>{class t{constructor(){this.cards=[{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.data.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.data.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.data.description"},{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.trust.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.trust.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.trust.description"},{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.easier.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.easier.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.easier.description"},{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.market.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.market.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.market.description"}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-why"]],standalone:!0,features:[e.aNF],decls:14,vars:6,consts:[[1,"why-join-section","relative","isolate","flex","w-full","justify-center","overflow-hidden","font-[Blinker]"],["aria-hidden","true",1,"why-join-glow","why-join-glow--left"],["aria-hidden","true",1,"why-join-glow","why-join-glow--right"],[1,"relative","z-[2]","flex","w-full","max-w-[1440px]","flex-col","items-center","gap-10","px-5","py-16","sm:px-8","sm:py-20","lg:gap-14","lg:px-[80px]","lg:py-[100px]","xl:px-[160px]"],[1,"why-join-header","flex","max-w-[729px]","flex-col","items-center","gap-4","text-center"],[1,"why-join-title"],[1,"why-join-subtitle"],[1,"grid","w-full","max-w-[1120px]","grid-cols-1","gap-6","md:grid-cols-2","xl:grid-cols-4"],[1,"why-card","relative","flex","h-[360px]","flex-col","justify-between","overflow-hidden","rounded-2xl","p-6"],["aria-hidden","true",1,"why-card-line"],["aria-hidden","true",1,"why-card-blur"],[1,"relative","z-[2]","flex","flex-col","gap-0"],[1,"why-card-title"],[1,"why-card-highlight"],[1,"relative","z-[2]","why-card-description"]],template:function(i,o){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2),e.j41(3,"div",3)(4,"div",4)(5,"h2",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.j41(11,"div",7),e.Z7z(12,K,13,9,"article",8,j),e.k0s()()()),2&i&&(e.R7$(6),e.SpI(" ",e.bMT(7,2,"LANDINGPAGE.providers.whyJoinDome.title")," "),e.R7$(3),e.SpI(" ",e.bMT(10,4,"LANDINGPAGE.providers.whyJoinDome.subtitle")," "),e.R7$(3),e.Dyx(o.cards))},dependencies:[a.h,a.D9,p.dX],styles:["[_nghost-%COMP%]{display:block}.why-join-section[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.why-join-glow[_ngcontent-%COMP%]{position:absolute;z-index:0;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);pointer-events:none}.why-join-glow--left[_ngcontent-%COMP%]{width:520px;height:520px;left:0;top:-40px}.why-join-glow--right[_ngcontent-%COMP%]{width:440px;height:440px;right:-18px;top:35px}.why-join-header[_ngcontent-%COMP%]{min-height:106px}.why-join-title[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:700;font-size:36px;line-height:44px;letter-spacing:0}.why-join-subtitle[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:400;font-size:18px;line-height:30px;max-width:729px}.why-card[_ngcontent-%COMP%]{box-sizing:border-box;border:.5px solid #234481;background:linear-gradient(180deg,#14274a,#0b1528);box-shadow:inset 0 1px #ffffff05,0 10px 40px #030a182e}.why-card[_ngcontent-%COMP%]:nth-child(2){background:linear-gradient(175.9deg,#14274a 3.34%,#0b1528 97.37%)}.why-card[_ngcontent-%COMP%]:nth-child(3){background:linear-gradient(161.4deg,#14274a 11.24%,#0b1528 98.7%)}.why-card[_ngcontent-%COMP%]:nth-child(4){background:linear-gradient(180deg,#14274a,#0b1528)}.why-card-line[_ngcontent-%COMP%]{position:absolute;left:8px;top:0;width:calc(100% - 16px);height:2px;background:linear-gradient(90deg,#0000,#00add3,#0000);opacity:.75;z-index:3}.why-card-blur[_ngcontent-%COMP%]{position:absolute;left:50%;top:28%;width:317px;height:317px;transform:translate(-42%,-50%);background:#2d58a7;opacity:.3;filter:blur(100px);border-radius:999999px;z-index:1;pointer-events:none}.why-card-title[_ngcontent-%COMP%], .why-card-highlight[_ngcontent-%COMP%]{display:block;font-weight:700;font-size:40px;line-height:48px}.why-card-title[_ngcontent-%COMP%]{color:#fff}.why-card-highlight[_ngcontent-%COMP%]{color:#00add3}.why-card-description[_ngcontent-%COMP%]{margin:0;max-width:214px;color:#fff;font-weight:400;font-size:24px;line-height:32px}@media (min-width: 1024px){.why-join-title[_ngcontent-%COMP%]{font-size:48px;line-height:58px}.why-join-subtitle[_ngcontent-%COMP%]{font-size:20px;line-height:32px}}@media (max-width: 1279px){.why-card[_ngcontent-%COMP%]{height:320px}.why-card-title[_ngcontent-%COMP%], .why-card-highlight[_ngcontent-%COMP%]{font-size:34px;line-height:40px}.why-card-description[_ngcontent-%COMP%]{max-width:100%;font-size:21px;line-height:30px}.why-card-blur[_ngcontent-%COMP%]{width:260px;height:260px}}@media (max-width: 767px){.why-join-glow--left[_ngcontent-%COMP%]{width:280px;height:280px;top:-30px;left:-40px}.why-join-glow--right[_ngcontent-%COMP%]{width:240px;height:240px;top:40px;right:-60px}.why-join-title[_ngcontent-%COMP%]{font-size:32px;line-height:40px}.why-join-subtitle[_ngcontent-%COMP%]{font-size:16px;line-height:26px}.why-card[_ngcontent-%COMP%]{height:auto;min-height:280px}.why-card-title[_ngcontent-%COMP%], .why-card-highlight[_ngcontent-%COMP%]{font-size:30px;line-height:36px}.why-card-description[_ngcontent-%COMP%]{font-size:20px;line-height:30px;max-width:100%}}"]})}}return t})(),T=(()=>{class t{constructor(){this.ONBOARDING_PROVIDERS_LINK=x.c.DOME_REGISTER_LINK}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers"]],standalone:!0,features:[e.aNF],decls:8,vars:2,consts:[[3,"url"]],template:function(i,o){1&i&&e.nrm(0,"app-landing-page-providers-hero",0)(1,"app-landing-page-providers-trust")(2,"app-landing-page-providers-why")(3,"app-landing-page-providers-fit")(4,"app-landing-page-providers-included")(5,"app-landing-page-providers-procure")(6,"app-landing-page-providers-faqs")(7,"app-landing-page-providers-grow",0),2&i&&(e.Y8G("url",o.ONBOARDING_PROVIDERS_LINK),e.R7$(7),e.Y8G("url",o.ONBOARDING_PROVIDERS_LINK))},dependencies:[G,k,q,b,N,D,m,_]})}}return t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[826],{6826:(T,l,p)=>{p.r(l),p.d(l,{LandingPageProvidersComponent:()=>R});var x=p(5312),d=p(60),s=p(604),a=p(3955),e=p(4438);const f=(t,o)=>o.id;function h(t,o){if(1&t){const n=e.RV6();e.j41(0,"article",6)(1,"button",7),e.bIt("click",function(){const r=e.eBV(n).$implicit,g=e.XpG();return e.Njj(g.toggleFaq(r.id))}),e.j41(2,"span",8),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span",9),e.nrm(6,"fa-icon",10),e.k0s()(),e.j41(7,"div",11)(8,"div",12),e.nrm(9,"div",13),e.j41(10,"div",14),e.nrm(11,"div",15),e.nI1(12,"translate"),e.k0s()()()()}if(2&t){const n=o.$implicit,i=e.XpG();e.AVh("faq-card--open",i.isOpen(n.id)),e.R7$(),e.BMQ("aria-expanded",i.isOpen(n.id)),e.R7$(2),e.SpI(" ",e.bMT(4,10,n.questionKey)," "),e.R7$(2),e.AVh("faq-icon--open",i.isOpen(n.id)),e.R7$(),e.Y8G("icon",i.isOpen(n.id)?i.faMinus:i.faPlus),e.R7$(),e.AVh("faq-answer--open",i.isOpen(n.id)),e.R7$(4),e.Y8G("innerHTML",e.bMT(12,12,n.answerKey),e.npT)}}let m=(()=>{class t{constructor(){this.faPlus=s.QLR,this.faMinus=s.EZy,this.openFaqId="",this.faqs=[{id:"1",questionKey:"LANDINGPAGE.providers.faqs._items.1.question",answerKey:"LANDINGPAGE.providers.faqs._items.1.answer"},{id:"2",questionKey:"LANDINGPAGE.providers.faqs._items.2.question",answerKey:"LANDINGPAGE.providers.faqs._items.2.answer"},{id:"3",questionKey:"LANDINGPAGE.providers.faqs._items.3.question",answerKey:"LANDINGPAGE.providers.faqs._items.3.answer"},{id:"4",questionKey:"LANDINGPAGE.providers.faqs._items.4.question",answerKey:"LANDINGPAGE.providers.faqs._items.4.answer"},{id:"5",questionKey:"LANDINGPAGE.providers.faqs._items.5.question",answerKey:"LANDINGPAGE.providers.faqs._items.5.answer"},{id:"6",questionKey:"LANDINGPAGE.providers.faqs._items.6.question",answerKey:"LANDINGPAGE.providers.faqs._items.6.answer"}]}toggleFaq(n){this.openFaqId=this.openFaqId===n?"":n}isOpen(n){return this.openFaqId===n}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-faqs"]],standalone:!0,features:[e.aNF],decls:9,vars:3,consts:[[1,"faq-section","w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-5","pt-[64px]","sm:px-8","sm:pt-[80px]","lg:px-[160px]","lg:pt-[100px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","gap-8","lg:gap-10"],[1,"faq-heading"],[1,"flex","flex-col","gap-4","lg:gap-6"],[1,"faq-card",3,"faq-card--open"],[1,"faq-card"],["type","button",1,"faq-question",3,"click"],[1,"faq-question__title"],[1,"faq-icon"],[3,"icon"],[1,"faq-answer"],[1,"faq-answer__inner"],[1,"faq-divider"],[1,"faq-answer__content"],[3,"innerHTML"]],template:function(i,r){1&i&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",4),e.Z7z(7,h,13,14,"article",5,f),e.k0s()()()()),2&i&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"LANDINGPAGE.providers.faqs.title")," "),e.R7$(3),e.Dyx(r.faqs))},dependencies:[a.h,a.D9,d.dX,d.aY],styles:['[_nghost-%COMP%]{display:block}.faq-section[_ngcontent-%COMP%]{background:#ebf0f7}.faq-heading[_ngcontent-%COMP%]{color:#0b1528;font-weight:700;font-size:32px;line-height:38px}.faq-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;border:1px solid transparent}.faq-card--open[_ngcontent-%COMP%]{border:1px solid #D8DADE;box-shadow:0 0 16px #00000014}.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}.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,transform .25s ease}.faq-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:transform .25s ease}.faq-icon--open[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.faq-answer[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .35s ease,opacity .25s ease,margin-top .35s ease;margin-top:0}.faq-answer--open[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1;margin-top:16px}.faq-answer__inner[_ngcontent-%COMP%]{overflow:hidden}.faq-divider[_ngcontent-%COMP%]{height:1px;background:#d8dade;margin-bottom:16px;transform:scaleX(.96);transform-origin:left center;transition:transform .35s ease,opacity .25s ease;opacity:0}.faq-answer--open[_ngcontent-%COMP%] .faq-divider[_ngcontent-%COMP%]{transform:scaleX(1);opacity:1}.faq-answer__content[_ngcontent-%COMP%]{color:#324153;font-size:18px;line-height:30px;transform:translateY(-8px);opacity:0;transition:transform .35s ease,opacity .3s ease}.faq-answer--open[_ngcontent-%COMP%] .faq-answer__content[_ngcontent-%COMP%]{transform:translateY(0);opacity:1}[_nghost-%COMP%] .faq-answer__content p{margin:0 0 16px}[_nghost-%COMP%] .faq-answer__content p:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content ul{margin:0 0 16px;padding-left:28px;list-style:disc outside}[_nghost-%COMP%] .faq-answer__content ul:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content li{display:list-item;margin:0 0 12px}[_nghost-%COMP%] .faq-answer__content li:last-child{margin-bottom:0}[_nghost-%COMP%] .faq-answer__content strong, [_nghost-%COMP%] .faq-answer__content b{font-weight:700;color:#0b1528}[_nghost-%COMP%] .faq-answer__content br{display:block;content:"";margin-top:12px}@media (min-width: 1024px){.faq-heading[_ngcontent-%COMP%]{font-size:48px;line-height:58px}.faq-question__title[_ngcontent-%COMP%]{font-size:24px;line-height:29px}.faq-answer__content[_ngcontent-%COMP%]{font-size:20px;line-height:32px}[_nghost-%COMP%] .faq-answer__content ul{padding-left:30px}}']})}}return t})();var u=p(5851),v=p(8620),w=p(7265);const P=(t,o)=>o.titleKey;function y(t,o){if(1&t&&(e.j41(0,"article",10)(1,"div",11)(2,"div",12),e.nrm(3,"fa-icon",13),e.k0s(),e.j41(4,"div",14)(5,"h3",15),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",16),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()()),2&t){const n=o.$implicit;e.R7$(3),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(7,3,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(10,5,n.descKey)," ")}}let b=(()=>{class t{constructor(){this.cards=[{titleKey:"LANDINGPAGE.providers.goodFit.cards.cloud.title",descKey:"LANDINGPAGE.providers.goodFit.cards.cloud.desc",icon:s.jBL},{titleKey:"LANDINGPAGE.providers.goodFit.cards.saas.title",descKey:"LANDINGPAGE.providers.goodFit.cards.saas.desc",icon:s._Xl},{titleKey:"LANDINGPAGE.providers.goodFit.cards.deepTech.title",descKey:"LANDINGPAGE.providers.goodFit.cards.deepTech.desc",icon:s.KMJ},{titleKey:"LANDINGPAGE.providers.goodFit.cards.publicSector.title",descKey:"LANDINGPAGE.providers.goodFit.cards.publicSector.desc",icon:s.PKn}]}get scrollHeight(){return window.innerWidth<768?460:window.innerWidth<1280?540:636}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-fit"]],standalone:!0,features:[e.aNF],decls:20,vars:15,consts:[[1,"good-fit-section","relative","isolate","w-full","overflow-hidden","bg-white","font-[Blinker]"],["aria-hidden","true",1,"good-fit-watermark","pointer-events-none","select-none"],[1,"mx-auto","w-full","max-w-[1440px]","px-6","py-16","sm:px-8","lg:px-16","lg:py-[100px]","xl:px-[160px]"],[1,"good-fit-layout"],[1,"good-fit-copy"],[1,"good-fit-title"],[1,"text-[#18A8D8]"],[1,"good-fit-description"],[1,"good-fit-cards-col"],[1,"good-fit-scroll",3,"height","gap","indicatorLeft"],["verticalScrollCard","",1,"good-fit-card"],[1,"flex","flex-col","gap-5","sm:gap-6"],[1,"good-fit-card__icon"],[1,"text-[32px]","sm:text-[36px]",3,"icon"],[1,"flex","flex-col","gap-3"],[1,"good-fit-card__title"],[1,"good-fit-card__desc"]],template:function(i,r){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5),e.EFF(6),e.nI1(7,"translate"),e.j41(8,"span",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"p",7),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",8)(17,"app-vertical-scroll-cards",9),e.Z7z(18,y,11,7,"article",10,P),e.k0s()()()()()),2&i&&(e.R7$(6),e.SpI(" ",e.bMT(7,7,"LANDINGPAGE.providers.goodFit.titleStart")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"LANDINGPAGE.providers.goodFit.titleAccent")," "),e.R7$(2),e.SpI(" ",e.bMT(12,11,"LANDINGPAGE.providers.goodFit.titleEnd")," "),e.R7$(3),e.SpI(" ",e.bMT(15,13,"LANDINGPAGE.providers.goodFit.description")," "),e.R7$(3),e.Y8G("height",r.scrollHeight)("gap",24)("indicatorLeft",14),e.R7$(),e.Dyx(r.cards))},dependencies:[a.h,a.D9,d.dX,d.aY,u.h,v.g,w.w],styles:[".good-fit-section[_ngcontent-%COMP%]{min-height:960px}.good-fit-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:454px 580px;justify-content:space-between;align-items:center;column-gap:40px}.good-fit-copy[_ngcontent-%COMP%]{max-width:454px}.good-fit-title[_ngcontent-%COMP%]{margin:0;color:#0b1528;font-size:48px;font-weight:700;line-height:58px;letter-spacing:-.02em}.good-fit-description[_ngcontent-%COMP%]{margin:24px 0 0;color:#1f2937;font-size:20px;line-height:1.6}.good-fit-cards-col[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;min-width:0}.good-fit-scroll[_ngcontent-%COMP%]{width:580px;max-width:100%}.good-fit-card[_ngcontent-%COMP%]{width:100%;background:#ebf0f7;border-radius:20px;padding:28px 30px;box-sizing:border-box;transition:background-color .2s ease,transform .2s ease}.good-fit-card__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:76px;height:76px;border-radius:18px;background:#dfe7f5;color:#2f58a7;flex:0 0 auto}.good-fit-card__title[_ngcontent-%COMP%]{margin:0;color:#0b1528;font-size:24px;font-weight:700;line-height:1.2}.good-fit-card__desc[_ngcontent-%COMP%]{margin:0;color:#4a5a70;font-size:20px;line-height:1.65}.good-fit-watermark[_ngcontent-%COMP%]{position:absolute;left:-120px;bottom:-140px;width:560px;height:560px;opacity:.5;background-color:#edf2f8;mask-image:url(/assets/logos/DOME_Icon_White.svg);-webkit-mask-image:url(/assets/logos/DOME_Icon_White.svg);mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}@media (max-width: 1279px){.good-fit-section[_ngcontent-%COMP%]{min-height:auto}.good-fit-layout[_ngcontent-%COMP%]{grid-template-columns:1fr;row-gap:40px}.good-fit-copy[_ngcontent-%COMP%]{max-width:640px}.good-fit-cards-col[_ngcontent-%COMP%]{justify-content:flex-start}.good-fit-scroll[_ngcontent-%COMP%]{width:100%;max-width:580px}}@media (max-width: 767px){.good-fit-title[_ngcontent-%COMP%]{font-size:32px;line-height:40px}.good-fit-description[_ngcontent-%COMP%]{margin-top:16px;font-size:18px;line-height:1.6}.good-fit-card[_ngcontent-%COMP%]{padding:24px;border-radius:16px}.good-fit-card__icon[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:16px}.good-fit-card__title[_ngcontent-%COMP%]{font-size:22px}.good-fit-card__desc[_ngcontent-%COMP%]{font-size:18px;line-height:1.6}.good-fit-watermark[_ngcontent-%COMP%]{left:-90px;bottom:-100px;width:320px;height:320px;opacity:.35}}"]})}}return t})(),_=(()=>{class t{constructor(){this.url=e.hFB.required()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-grow"]],inputs:{url:[e.Mj6.SignalBased,"url"]},standalone:!0,features:[e.aNF],decls:18,vars:13,consts:[[1,"cta-provider-section","w-full","font-[Blinker]","bg-[linear-gradient(180deg,#EBF0F7_0%,#FFFFFF_100%)]"],[1,"mx-auto","flex","w-full","max-w-[1440px]","px-5","py-16","sm:px-8","sm:py-20","lg:px-[160px]","lg:py-[100px]"],[1,"cta-provider-card","relative","isolate","flex","w-full","flex-col","items-center","overflow-hidden","rounded-2xl","px-6","py-12","sm:px-8","lg:px-6","lg:py-16"],["aria-hidden","true",1,"cta-provider-blur"],[1,"relative","z-[1]","flex","w-full","max-w-[930px]","flex-col","items-center","gap-6","text-center"],[1,"flex","w-full","flex-col","items-center","gap-6"],[1,"m-0","w-full","text-center","text-[32px]","font-bold","leading-[1.1]","text-white","sm:text-[38px]","lg:text-[44px]","lg:leading-[53px]",3,"innerHTML"],[1,"m-0","w-full","text-center","text-[18px]","font-normal","leading-[1.2]","text-white","sm:text-[20px]","lg:text-[24px]","lg:leading-[29px]"],[1,"flex","w-full","max-w-[548px]","flex-col","items-stretch","justify-center","gap-4","sm:flex-row","sm:gap-6"],[1,"cta-btn","cta-btn--primary",3,"href"],["href","/contact-us",1,"cta-btn","cta-btn--secondary"]],template:function(i,r){1&i&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2),e.nrm(3,"div",3),e.j41(4,"div",4)(5,"div",5),e.nrm(6,"h2",6),e.nI1(7,"translate"),e.j41(8,"p",7),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",8)(12,"a",9),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"a",10),e.EFF(16),e.nI1(17,"translate"),e.k0s()()()()()()),2&i&&(e.R7$(6),e.Y8G("innerHTML",e.bMT(7,5,"LANDINGPAGE.providers.cta.title"),e.npT),e.R7$(3),e.SpI(" ",e.bMT(10,7,"LANDINGPAGE.providers.cta.subtitle")," "),e.R7$(3),e.Y8G("href",r.url(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(14,9,"LANDINGPAGE.providers.cta.primaryButton")," "),e.R7$(3),e.SpI(" ",e.bMT(17,11,"LANDINGPAGE.providers.cta.secondaryButton")," "))},dependencies:[a.h,a.D9],styles:["[_nghost-%COMP%]{display:block}.cta-provider-card[_ngcontent-%COMP%]{min-height:322px;background:linear-gradient(134.88deg,#1a3360 -34.11%,#0b1528 41.11%,#1a3360 120.81%)}.cta-provider-blur[_ngcontent-%COMP%]{position:absolute;width:520px;height:520px;left:-91px;top:-158px;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);z-index:0}.cta-btn[_ngcontent-%COMP%]{display:flex;height:48px;min-width:0;flex:1;align-items:center;justify-content:center;padding-left:20px;padding-right:20px;border-radius:6px;font-size:16px;font-weight:600;line-height:24px;letter-spacing:.5px;text-align:center;text-decoration:none;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.cta-btn--primary[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.cta-btn--primary[_ngcontent-%COMP%]:hover{background:#18b5d9;color:#fff}.cta-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid #2D58A7}.cta-btn--secondary[_ngcontent-%COMP%]:hover{background:#5b6f8e;color:#fff;border-color:#2d58a7}@media (max-width: 1023.98px){.cta-provider-card[_ngcontent-%COMP%]{min-height:auto}.cta-provider-blur[_ngcontent-%COMP%]{left:-180px;top:-180px;width:420px;height:420px}}"]})}}return t})(),G=(()=>{class t{constructor(){this.url=e.hFB.required()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-hero"]],inputs:{url:[e.Mj6.SignalBased,"url"]},standalone:!0,features:[e.aNF],decls:28,vars:22,consts:[[1,"provider-contact-section","relative","isolate","flex","w-full","items-center","justify-center","overflow-hidden","bg-[linear-gradient(180deg,#0C182D_0%,#1A3360_100%)]","font-[Blinker]"],[1,"provider-contact-blur-left","absolute","left-[-140px]","top-[-80px]","z-0","h-[280px]","w-[280px]","rounded-full","bg-[#234481]","opacity-30","sm:left-[-180px]","sm:top-[-60px]","sm:h-[380px]","sm:w-[380px]","lg:left-[-252px]","lg:top-[-73px]","lg:h-[561px]","lg:w-[561px]"],[1,"provider-contact-blur-right","absolute","bottom-[-60px]","right-[-80px]","z-[1]","h-[220px]","w-[220px]","rounded-full","bg-[#234481]","opacity-30","sm:bottom-[-80px]","sm:right-[-100px]","sm:h-[300px]","sm:w-[300px]","lg:bottom-auto","lg:left-[1187px]","lg:top-[268px]","lg:h-[440px]","lg:w-[440px]"],[1,"relative","z-[2]","flex","w-full","max-w-[1440px]","flex-col","items-start","justify-center","gap-10","px-5","py-16","sm:px-8","sm:py-20","md:gap-12","lg:gap-[93px]","lg:px-[80px]","lg:pb-[80px]","lg:pt-[160px]","xl:px-[160px]","xl:pt-[200px]"],[1,"flex","w-full","max-w-[1120px]","flex-col","items-start","gap-6"],[1,"flex","min-h-[38px]","items-center","justify-center","whitespace-nowrap","rounded-[50px]","border-[0.666667px]","border-[rgba(0,173,211,0.25)]","bg-[rgba(0,173,211,0.15)]","px-4","py-2","sm:min-h-[45px]","sm:px-6"],[1,"text-[16px]","font-bold","leading-none","text-[#00ADD3]","sm:text-[20px]","lg:text-[24px]"],[1,"m-0","w-full","max-w-[1120px]","text-[34px]","font-extrabold","leading-[1.08]","tracking-[0.2px]","text-white","sm:text-[46px]","sm:tracking-[0.4px]","md:text-[56px]","lg:text-[70px]","lg:leading-[84px]","lg:tracking-[1px]"],[1,"text-[#00ADD3]"],[1,"m-0","w-full","max-w-[1120px]","text-[18px]","font-normal","leading-[1.6]","text-white","sm:text-[22px]","md:text-[26px]","lg:text-[32px]","lg:leading-[48px]"],[1,"flex","w-full","max-w-[548px]","flex-col","items-stretch","gap-4","pt-2","sm:pt-4","md:flex-row","md:items-center","md:gap-6","lg:pt-8"],[1,"provider-btn","provider-btn--primary",3,"href"],["href","/contact-us",1,"provider-btn","provider-btn--secondary"]],template:function(i,r){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2),e.j41(3,"div",3)(4,"div",4)(5,"span",5)(6,"span",6),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"h2",7),e.EFF(10),e.nI1(11,"translate"),e.nrm(12,"br"),e.j41(13,"span",8),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"p",9),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"div",10)(22,"a",11),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"a",12),e.EFF(26),e.nI1(27,"translate"),e.k0s()()()()()),2&i&&(e.R7$(7),e.SpI(" ",e.bMT(8,8,"LANDINGPAGE.providers.badge")," "),e.R7$(3),e.SpI(" ",e.bMT(11,10,"LANDINGPAGE.providers.titleLine1"),""),e.R7$(4),e.JRh(e.bMT(15,12,"LANDINGPAGE.providers.titleHighlight")),e.R7$(2),e.SpI(" ",e.bMT(17,14,"LANDINGPAGE.providers.titleLine2")," "),e.R7$(3),e.SpI(" ",e.bMT(20,16,"LANDINGPAGE.providers.description")," "),e.R7$(3),e.Y8G("href",r.url(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(24,18,"LANDINGPAGE.providers.primaryCta")," "),e.R7$(3),e.SpI(" ",e.bMT(27,20,"LANDINGPAGE.providers.secondaryCta")," "))},dependencies:[a.h,a.D9],styles:[".provider-btn[_ngcontent-%COMP%]{display:flex;height:56px;min-width:0;flex:1;align-items:center;justify-content:center;padding:16px 24px;border-radius:8px;font-size:16px;font-weight:600;line-height:22px;text-align:center;text-decoration:none;transition:background-color .25s ease,border-color .25s ease,color .25s ease,transform .15s ease}.provider-btn--primary[_ngcontent-%COMP%]{background:#2d58a7;color:#fff;border:2px solid transparent}.provider-btn--primary[_ngcontent-%COMP%]:hover{background:#1ba6bd;color:#fff;transform:translateY(-1px)}.provider-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:3px solid #2D58A7}.provider-btn--secondary[_ngcontent-%COMP%]:hover{background:#4e678a;color:#fff;border-color:#2d58a7;transform:translateY(-1px)}.provider-btn[_ngcontent-%COMP%]:active{transform:translateY(0)}@media (min-width: 640px){.provider-btn[_ngcontent-%COMP%]{font-size:18px}}"]})}}return t})();var M=p(8338);const I=(t,o)=>o.titleKey;function N(t,o){if(1&t&&(e.j41(0,"div",8)(1,"article",9),e.nrm(2,"div",10),e.j41(3,"div",11),e.nrm(4,"fa-icon",12),e.k0s(),e.j41(5,"div",13)(6,"h3",14),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"p",15),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()),2&t){const n=o.$implicit,i=e.XpG();e.xc7("width",100/i.visibleItems,"%"),e.R7$(4),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(8,5,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(11,7,n.descriptionKey)," ")}}let A=(()=>{class t{constructor(){this.visibleItems=3,this.cards=[{titleKey:"LANDINGPAGE.providers.included.cards.onboarding.title",descriptionKey:"LANDINGPAGE.providers.included.cards.onboarding.description",icon:s.Zsp},{titleKey:"LANDINGPAGE.providers.included.cards.procurement.title",descriptionKey:"LANDINGPAGE.providers.included.cards.procurement.description",icon:s.KMJ},{titleKey:"LANDINGPAGE.providers.included.cards.trust.title",descriptionKey:"LANDINGPAGE.providers.included.cards.trust.description",icon:s.fLc},{titleKey:"LANDINGPAGE.providers.included.cards.performance.title",descriptionKey:"LANDINGPAGE.providers.included.cards.performance.description",icon:s.q9c},{titleKey:"LANDINGPAGE.providers.included.cards.advanced.title",descriptionKey:"LANDINGPAGE.providers.included.cards.advanced.description",icon:s.BH7},{titleKey:"LANDINGPAGE.providers.included.cards.commercial.title",descriptionKey:"LANDINGPAGE.providers.included.cards.commercial.description",icon:s.$O8},{titleKey:"LANDINGPAGE.providers.included.cards.operational.title",descriptionKey:"LANDINGPAGE.providers.included.cards.operational.description",icon:s.APe},{titleKey:"LANDINGPAGE.providers.included.cards.marketing.title",descriptionKey:"LANDINGPAGE.providers.included.cards.marketing.description",icon:s.e4L},{titleKey:"LANDINGPAGE.providers.included.cards.federated.title",descriptionKey:"LANDINGPAGE.providers.included.cards.federated.description",icon:s.Bwz}],this.updateVisibleItems()}onResize(){this.updateVisibleItems()}updateVisibleItems(){const n=window.innerWidth;this.visibleItems=n<768?1:n<1280?2:3}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-included"]],hostBindings:function(i,r){1&i&&e.bIt("resize",function(){return r.onResize()},!1,e.tSv)},standalone:!0,features:[e.aNF],decls:11,vars:6,consts:[[1,"providers-included-section","relative","isolate","flex","w-full","flex-col","items-center","overflow-hidden","px-5","py-16","sm:px-8","sm:py-20","lg:px-[80px]","lg:py-[100px]","xl:px-[160px]","font-[Blinker]"],["aria-hidden","true",1,"providers-included-glow","providers-included-glow--left"],["aria-hidden","true",1,"providers-included-glow","providers-included-glow--right"],[1,"relative","z-[2]","flex","w-full","max-w-[1120px]","items-center","justify-center"],[1,"text-center","text-[32px]","font-bold","leading-[40px]","text-white","sm:text-[40px]","sm:leading-[48px]","lg:text-[48px]","lg:leading-[58px]"],[1,"relative","z-[2]","mt-10","w-full","max-w-[1280px]","lg:mt-12"],["arrowTheme","dark","dotsTheme","accent",3,"items","visible","sidePadding"],[1,"shrink-0","px-3",3,"width"],[1,"shrink-0","px-3"],[1,"provider-card","relative","flex","h-[350px]","flex-col","items-start","gap-12","overflow-hidden","rounded-2xl","border","border-[#234481]","bg-[linear-gradient(175.9deg,#14274A_3.34%,#0B1528_97.37%)]","p-6"],["aria-hidden","true",1,"provider-card__top-line"],[1,"flex","h-[72px]","w-[72px]","items-center","justify-center","rounded-2xl","bg-[#1A3360]"],[1,"text-[40px]","text-[#00ADD3]",3,"icon"],[1,"flex","flex-col","items-start","gap-4"],[1,"m-0","min-h-[76px]","text-left","text-[28px]","font-bold","leading-[1.15]","text-white","lg:text-[32px]"],[1,"m-0","text-left","text-[18px]","font-normal","leading-8","text-white"]],template:function(i,r){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2),e.j41(3,"div",3)(4,"h2",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",5)(8,"app-carousel",6),e.Z7z(9,N,12,9,"div",7,I),e.k0s()()()),2&i&&(e.R7$(5),e.SpI(" ",e.bMT(6,4,"LANDINGPAGE.providers.included.title")," "),e.R7$(3),e.Y8G("items",r.cards)("visible",r.visibleItems)("sidePadding",!0),e.R7$(),e.Dyx(r.cards))},dependencies:[a.h,a.D9,d.dX,d.aY,M.g],styles:["[_nghost-%COMP%]{display:block}.providers-included-section[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.providers-included-glow[_ngcontent-%COMP%]{position:absolute;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);pointer-events:none}.providers-included-glow--left[_ngcontent-%COMP%]{width:520px;height:520px;left:0;top:-40px}.providers-included-glow--right[_ngcontent-%COMP%]{width:440px;height:440px;right:-18px;top:35px}.provider-card__top-line[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;width:calc(100% - 18px);height:2px;transform:translate(-50%);background:linear-gradient(90deg,#0000,#00add3,#0000);opacity:.75}"]})}}return t})();const C=(t,o)=>o.number;function O(t,o){1&t&&e.nrm(0,"div",14)}function F(t,o){if(1&t&&(e.j41(0,"div",9)(1,"div",10),e.nrm(2,"fa-icon",11),e.j41(3,"div",12),e.EFF(4),e.k0s(),e.j41(5,"div",13),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.DNE(8,O,1,0,"div",14)),2&t){const n=o.$implicit,i=e.XpG();e.R7$(2),e.Y8G("icon",n.icon),e.R7$(2),e.SpI(" ",n.number," "),e.R7$(2),e.SpI(" ",e.bMT(7,4,n.textKey)," "),e.R7$(2),e.vxM(8,n.number{class t{constructor(){this.url=e.hFB.required(),this.steps=[{number:1,textKey:"LANDINGPAGE.providers.procureSteps.steps.step1",icon:s.X46},{number:2,textKey:"LANDINGPAGE.providers.procureSteps.steps.step2",icon:s.$UM},{number:3,textKey:"LANDINGPAGE.providers.procureSteps.steps.step3",icon:s.WfV},{number:4,textKey:"LANDINGPAGE.providers.procureSteps.steps.step4",icon:s.Z8x}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-procure"]],inputs:{url:[e.Mj6.SignalBased,"url"]},standalone:!0,features:[e.aNF],decls:16,vars:10,consts:[[1,"providers-steps-section","w-full","bg-[#EBF0F7]","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1440px]","px-6","pt-16","sm:px-8","sm:pt-20","lg:px-16","lg:pt-[80px]","xl:px-[160px]","xl:pt-[100px]"],[1,"providers-steps-layout"],[1,"providers-steps-copy"],[1,"text-[32px]","sm:text-[40px]","xl:text-[48px]","font-bold","leading-[1.2]","xl:leading-[58px]","text-[#0B1528]",3,"innerHTML"],[1,"mt-4","text-[18px]","sm:text-[20px]","leading-[1.6]","xl:leading-[32px]","text-[#0B1528]"],[1,"providers-steps-cards"],[1,"providers-steps-cta"],[1,"providers-steps-cta__button",3,"href"],[1,"providers-step-wrapper"],[1,"providers-step-card"],[1,"providers-step-icon",3,"icon"],[1,"providers-step-number","gradient-number"],[1,"providers-step-text"],[1,"providers-step-separator"]],template:function(i,r){1&i&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),e.nrm(4,"h2",4),e.nI1(5,"translate"),e.j41(6,"p",5),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",6),e.Z7z(10,F,9,6,null,null,C),e.k0s(),e.j41(12,"div",7)(13,"a",8),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()()()),2&i&&(e.R7$(4),e.Y8G("innerHTML",e.bMT(5,4,"LANDINGPAGE.providers.procureSteps.title"),e.npT),e.R7$(3),e.SpI(" ",e.bMT(8,6,"LANDINGPAGE.providers.procureSteps.subtitle")," "),e.R7$(3),e.Dyx(r.steps),e.R7$(3),e.Y8G("href",r.url(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(15,8,"LANDINGPAGE.providers.procureSteps.ctaButton")," "))},dependencies:[a.h,a.D9,d.dX,d.aY],styles:["[_nghost-%COMP%]{display:block}.providers-steps-layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px}.providers-steps-cta[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:20px;margin-top:32px;text-align:center}.providers-steps-cta__title[_ngcontent-%COMP%]{margin:0;color:#0b1528;font-weight:700;font-size:24px;line-height:1.25}.providers-steps-cta__button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 28px;border-radius:6px;background:#2d58a7;color:#fff;font-weight:600;font-size:16px;line-height:24px;letter-spacing:.5px;text-decoration:none;transition:background-color .2s ease,color .2s ease}.providers-steps-cta__button[_ngcontent-%COMP%]:hover{background:#18b5d9;color:#fff}@media (min-width: 1024px){.providers-steps-cta[_ngcontent-%COMP%]{margin-top:48px;gap:24px}.providers-steps-cta__title[_ngcontent-%COMP%]{font-size:30px}}.providers-steps-copy[_ngcontent-%COMP%]{max-width:1120px}.providers-steps-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;align-items:stretch}.providers-step-wrapper[_ngcontent-%COMP%]{width:100%}.providers-step-card[_ngcontent-%COMP%]{position:relative;width:100%;min-height:190px;background:#f7f9fd;border:1px solid rgba(216,218,222,.6);border-radius:16px;padding:20px;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:24px}.providers-step-icon[_ngcontent-%COMP%]{position:absolute;right:-8px;bottom:-8px;font-size:72px;color:#2d58a7;opacity:.07}.providers-step-number[_ngcontent-%COMP%]{display:inline-block;font-size:52px;font-weight:800;line-height:1;letter-spacing:.02em}.providers-step-text[_ngcontent-%COMP%]{max-width:180px;font-size:16px;font-weight:600;line-height:1.2;color:#0b1528}.providers-step-separator[_ngcontent-%COMP%]{display:none}.gradient-number[_ngcontent-%COMP%]{background:linear-gradient(180deg,#1a3360,#00add3);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}@media (min-width: 640px){.providers-step-card[_ngcontent-%COMP%]{min-height:220px;padding:24px;gap:24px}.providers-step-icon[_ngcontent-%COMP%]{right:-16px;bottom:-16px;font-size:96px}.providers-step-number[_ngcontent-%COMP%]{font-size:72px}.providers-step-text[_ngcontent-%COMP%]{font-size:18px}}@media (min-width: 768px) and (max-width: 1279px){.providers-steps-cards[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap;gap:24px}.providers-step-wrapper[_ngcontent-%COMP%]{width:calc(50% - 12px)}}@media (min-width: 1280px){.providers-steps-layout[_ngcontent-%COMP%]{gap:40px}.providers-steps-cards[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:8px}.providers-step-wrapper[_ngcontent-%COMP%]{width:auto;flex:0 0 auto}.providers-step-card[_ngcontent-%COMP%]{width:226px;min-height:240px;padding:24px}.providers-step-icon[_ngcontent-%COMP%]{right:-22px;bottom:-20px;font-size:120px}.providers-step-number[_ngcontent-%COMP%]{font-size:96px}.providers-step-text[_ngcontent-%COMP%]{font-size:20px}.providers-step-separator[_ngcontent-%COMP%]{display:block;width:56px;height:2px;align-self:center;flex:0 0 auto;background:linear-gradient(90deg,#ebf0f7,#00add3,#ebf0f7)}}"]})}}return t})();const c=(t,o)=>o.titleKey;function E(t,o){if(1&t&&(e.j41(0,"article",11)(1,"div",12),e.nrm(2,"fa-icon",13),e.k0s(),e.j41(3,"div",14)(4,"h3",15),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",16),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&t){const n=o.$implicit;e.AVh("justify-end",n.alignEnd),e.R7$(2),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(6,5,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,n.descriptionKey)," ")}}function L(t,o){if(1&t&&(e.j41(0,"article",11)(1,"div",12),e.nrm(2,"fa-icon",13),e.k0s(),e.j41(3,"div",14)(4,"h3",15),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",16),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&t){const n=o.$implicit;e.R7$(2),e.Y8G("icon",n.icon),e.R7$(3),e.SpI(" ",e.bMT(6,3,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,n.descriptionKey)," ")}}let k=(()=>{class t{constructor(){this.leftCards=[{titleKey:"LANDINGPAGE.providers.trust.cards.euBasedProviders.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.euBasedProviders.description",icon:s.s6x,alignEnd:!0},{titleKey:"LANDINGPAGE.providers.trust.cards.transparency.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.transparency.description",icon:s.R1H}],this.rightCards=[{titleKey:"LANDINGPAGE.providers.trust.cards.trustedSourcing.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.trustedSourcing.description",icon:s.XYS},{titleKey:"LANDINGPAGE.providers.trust.cards.dataSovereignty.title",descriptionKey:"LANDINGPAGE.providers.trust.cards.dataSovereignty.description",icon:s.hem}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-trust"]],standalone:!0,features:[e.aNF],decls:26,vars:15,consts:[[1,"w-full","bg-[#F1F5FB]","font-[Blinker]"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","gap-10","px-5","py-16","sm:px-8","sm:py-20","lg:flex-row","lg:items-center","lg:gap-8","lg:px-[80px]","lg:py-[80px]","xl:px-[160px]"],[1,"flex","w-full","flex-1","flex-col","items-start","gap-6","lg:max-w-[544px]"],[1,"flex","w-full","flex-col","items-start","gap-4","pb-2","sm:pb-4","lg:w-[544px]","lg:pb-6"],[1,"w-full","text-[32px]","font-bold","leading-[1.15]","text-[#0B1528]","sm:text-[40px]","md:text-[44px]","lg:w-[544px]","lg:text-[48px]","lg:leading-[58px]"],[1,"text-[#2D58A7]"],[1,"w-full","text-[17px]","font-normal","leading-[28px]","text-[#0B1528]","sm:text-[18px]","sm:leading-[30px]","lg:w-[544px]","lg:text-[20px]","lg:leading-[32px]"],[1,"flex","w-full","flex-1","flex-col","gap-6","sm:gap-8","lg:max-w-[544px]","lg:flex-row","lg:items-start","lg:gap-6"],[1,"grid","w-full","grid-cols-1","gap-6","sm:grid-cols-2","lg:flex","lg:w-[260px]","lg:flex-col"],[1,"flex","min-h-[221px]","w-full","flex-col","items-start","rounded-2xl","bg-white","p-6","lg:w-[260px]",3,"justify-end"],[1,"grid","w-full","grid-cols-1","gap-6","sm:grid-cols-2","lg:flex","lg:w-[260px]","lg:flex-col","lg:pt-12"],[1,"flex","min-h-[221px]","w-full","flex-col","items-start","rounded-2xl","bg-white","p-6","lg:w-[260px]"],[1,"mb-6","flex","h-10","w-10","items-center","justify-center","text-[#2D58A7]"],[1,"text-[40px]","leading-none",3,"icon"],[1,"flex","w-full","flex-col","items-start","gap-2","self-stretch","lg:w-[212px]"],[1,"self-stretch","text-[22px]","font-bold","leading-[1.2]","text-[#0B1528]","lg:text-[24px]","lg:leading-[29px]"],[1,"self-stretch","text-[15px]","font-normal","leading-6","text-[#0B1528]","lg:text-[16px]"]],template:function(i,r){1&i&&(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.j41(7,"span",5),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"br"),e.EFF(11),e.nI1(12,"translate"),e.nrm(13,"br"),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"p",6),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"div",7)(20,"div",8),e.Z7z(21,E,10,9,"article",9,c),e.k0s(),e.j41(23,"div",10),e.Z7z(24,L,10,7,"article",11,c),e.k0s()()()()),2&i&&(e.R7$(5),e.SpI(" ",e.bMT(6,5,"LANDINGPAGE.providers.trust.titleStart")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"LANDINGPAGE.providers.trust.titleHighlight")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"LANDINGPAGE.providers.trust.titleLine2")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"LANDINGPAGE.providers.trust.titleLine3")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"LANDINGPAGE.providers.trust.description")," "),e.R7$(4),e.Dyx(r.leftCards),e.R7$(3),e.Dyx(r.rightCards))},dependencies:[a.h,a.D9,d.dX,d.aY]})}}return t})();const j=(t,o)=>o.titleKey;function K(t,o){if(1&t&&(e.j41(0,"article",8),e.nrm(1,"div",9)(2,"div",10),e.j41(3,"div",11)(4,"span",12),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"span",13),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"p",14),e.EFF(11),e.nI1(12,"translate"),e.k0s()()),2&t){const n=o.$implicit;e.R7$(5),e.SpI(" ",e.bMT(6,3,n.titleKey)," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,n.highlightKey)," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,n.descriptionKey)," ")}}let q=(()=>{class t{constructor(){this.cards=[{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.data.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.data.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.data.description"},{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.trust.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.trust.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.trust.description"},{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.easier.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.easier.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.easier.description"},{titleKey:"LANDINGPAGE.providers.whyJoinDome.cards.market.title",highlightKey:"LANDINGPAGE.providers.whyJoinDome.cards.market.highlight",descriptionKey:"LANDINGPAGE.providers.whyJoinDome.cards.market.description"}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers-why"]],standalone:!0,features:[e.aNF],decls:14,vars:6,consts:[[1,"why-join-section","relative","isolate","flex","w-full","justify-center","overflow-hidden","font-[Blinker]"],["aria-hidden","true",1,"why-join-glow","why-join-glow--left"],["aria-hidden","true",1,"why-join-glow","why-join-glow--right"],[1,"relative","z-[2]","flex","w-full","max-w-[1440px]","flex-col","items-center","gap-10","px-5","py-16","sm:px-8","sm:py-20","lg:gap-14","lg:px-[80px]","lg:py-[100px]","xl:px-[160px]"],[1,"why-join-header","flex","max-w-[729px]","flex-col","items-center","gap-4","text-center"],[1,"why-join-title"],[1,"why-join-subtitle"],[1,"grid","w-full","max-w-[1120px]","grid-cols-1","gap-6","md:grid-cols-2","xl:grid-cols-4"],[1,"why-card","relative","flex","h-[360px]","flex-col","justify-between","overflow-hidden","rounded-2xl","p-6"],["aria-hidden","true",1,"why-card-line"],["aria-hidden","true",1,"why-card-blur"],[1,"relative","z-[2]","flex","flex-col","gap-0"],[1,"why-card-title"],[1,"why-card-highlight"],[1,"relative","z-[2]","why-card-description"]],template:function(i,r){1&i&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2),e.j41(3,"div",3)(4,"div",4)(5,"h2",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.j41(11,"div",7),e.Z7z(12,K,13,9,"article",8,j),e.k0s()()()),2&i&&(e.R7$(6),e.SpI(" ",e.bMT(7,2,"LANDINGPAGE.providers.whyJoinDome.title")," "),e.R7$(3),e.SpI(" ",e.bMT(10,4,"LANDINGPAGE.providers.whyJoinDome.subtitle")," "),e.R7$(3),e.Dyx(r.cards))},dependencies:[a.h,a.D9,d.dX],styles:["[_nghost-%COMP%]{display:block}.why-join-section[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.why-join-glow[_ngcontent-%COMP%]{position:absolute;z-index:0;border-radius:999999px;background:#234481;opacity:.25;filter:blur(120px);pointer-events:none}.why-join-glow--left[_ngcontent-%COMP%]{width:520px;height:520px;left:0;top:-40px}.why-join-glow--right[_ngcontent-%COMP%]{width:440px;height:440px;right:-18px;top:35px}.why-join-header[_ngcontent-%COMP%]{min-height:106px}.why-join-title[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:700;font-size:36px;line-height:44px;letter-spacing:0}.why-join-subtitle[_ngcontent-%COMP%]{margin:0;color:#fff;font-weight:400;font-size:18px;line-height:30px;max-width:729px}.why-card[_ngcontent-%COMP%]{box-sizing:border-box;border:.5px solid #234481;background:linear-gradient(180deg,#14274a,#0b1528);box-shadow:inset 0 1px #ffffff05,0 10px 40px #030a182e}.why-card[_ngcontent-%COMP%]:nth-child(2){background:linear-gradient(175.9deg,#14274a 3.34%,#0b1528 97.37%)}.why-card[_ngcontent-%COMP%]:nth-child(3){background:linear-gradient(161.4deg,#14274a 11.24%,#0b1528 98.7%)}.why-card[_ngcontent-%COMP%]:nth-child(4){background:linear-gradient(180deg,#14274a,#0b1528)}.why-card-line[_ngcontent-%COMP%]{position:absolute;left:8px;top:0;width:calc(100% - 16px);height:2px;background:linear-gradient(90deg,#0000,#00add3,#0000);opacity:.75;z-index:3}.why-card-blur[_ngcontent-%COMP%]{position:absolute;left:50%;top:28%;width:317px;height:317px;transform:translate(-42%,-50%);background:#2d58a7;opacity:.3;filter:blur(100px);border-radius:999999px;z-index:1;pointer-events:none}.why-card-title[_ngcontent-%COMP%], .why-card-highlight[_ngcontent-%COMP%]{display:block;font-weight:700;font-size:40px;line-height:48px}.why-card-title[_ngcontent-%COMP%]{color:#fff}.why-card-highlight[_ngcontent-%COMP%]{color:#00add3}.why-card-description[_ngcontent-%COMP%]{margin:0;max-width:214px;color:#fff;font-weight:400;font-size:24px;line-height:32px}@media (min-width: 1024px){.why-join-title[_ngcontent-%COMP%]{font-size:48px;line-height:58px}.why-join-subtitle[_ngcontent-%COMP%]{font-size:20px;line-height:32px}}@media (max-width: 1279px){.why-card[_ngcontent-%COMP%]{height:320px}.why-card-title[_ngcontent-%COMP%], .why-card-highlight[_ngcontent-%COMP%]{font-size:34px;line-height:40px}.why-card-description[_ngcontent-%COMP%]{max-width:100%;font-size:21px;line-height:30px}.why-card-blur[_ngcontent-%COMP%]{width:260px;height:260px}}@media (max-width: 767px){.why-join-glow--left[_ngcontent-%COMP%]{width:280px;height:280px;top:-30px;left:-40px}.why-join-glow--right[_ngcontent-%COMP%]{width:240px;height:240px;top:40px;right:-60px}.why-join-title[_ngcontent-%COMP%]{font-size:32px;line-height:40px}.why-join-subtitle[_ngcontent-%COMP%]{font-size:16px;line-height:26px}.why-card[_ngcontent-%COMP%]{height:auto;min-height:280px}.why-card-title[_ngcontent-%COMP%], .why-card-highlight[_ngcontent-%COMP%]{font-size:30px;line-height:36px}.why-card-description[_ngcontent-%COMP%]{font-size:20px;line-height:30px;max-width:100%}}"]})}}return t})(),R=(()=>{class t{constructor(){this.ONBOARDING_PROVIDERS_LINK=x.c.DOME_REGISTER_LINK}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-landing-page-providers"]],standalone:!0,features:[e.aNF],decls:8,vars:3,consts:[[3,"url"]],template:function(i,r){1&i&&e.nrm(0,"app-landing-page-providers-hero",0)(1,"app-landing-page-providers-trust")(2,"app-landing-page-providers-why")(3,"app-landing-page-providers-fit")(4,"app-landing-page-providers-included")(5,"app-landing-page-providers-procure",0)(6,"app-landing-page-providers-faqs")(7,"app-landing-page-providers-grow",0),2&i&&(e.Y8G("url",r.ONBOARDING_PROVIDERS_LINK),e.R7$(5),e.Y8G("url",r.ONBOARDING_PROVIDERS_LINK),e.R7$(2),e.Y8G("url",r.ONBOARDING_PROVIDERS_LINK))},dependencies:[G,k,q,b,A,D,m,_]})}}return t})()}}]); \ No newline at end of file diff --git a/portal/bae-frontend/assets/hero-logos/Altia.svg b/portal/bae-frontend/assets/hero-logos/Altia.svg new file mode 100644 index 00000000..97b199e5 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Altia.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/BS Outscale.svg b/portal/bae-frontend/assets/hero-logos/BS Outscale.svg new file mode 100644 index 00000000..720f916a --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/BS Outscale.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Beia.svg b/portal/bae-frontend/assets/hero-logos/Beia.svg new file mode 100644 index 00000000..c912dcff --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Beia.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/CSI.svg b/portal/bae-frontend/assets/hero-logos/CSI.svg new file mode 100644 index 00000000..59463608 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/CSI.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/CloudFerro.svg b/portal/bae-frontend/assets/hero-logos/CloudFerro.svg new file mode 100644 index 00000000..41e3dfb1 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/CloudFerro.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Digitanimal.svg b/portal/bae-frontend/assets/hero-logos/Digitanimal.svg new file mode 100644 index 00000000..53afa6a7 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Digitanimal.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Digitel TS.svg b/portal/bae-frontend/assets/hero-logos/Digitel TS.svg new file mode 100644 index 00000000..f5d84f37 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Digitel TS.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/E-group.svg b/portal/bae-frontend/assets/hero-logos/E-group.svg new file mode 100644 index 00000000..01c4b8f8 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/E-group.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Eht.svg b/portal/bae-frontend/assets/hero-logos/Eht.svg new file mode 100644 index 00000000..16f4ba88 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Eht.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Elliot Cloud.svg b/portal/bae-frontend/assets/hero-logos/Elliot Cloud.svg new file mode 100644 index 00000000..a818cd10 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Elliot Cloud.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Eng.svg b/portal/bae-frontend/assets/hero-logos/Eng.svg new file mode 100644 index 00000000..da19e328 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Eng.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/European Dynamics.svg b/portal/bae-frontend/assets/hero-logos/European Dynamics.svg new file mode 100644 index 00000000..69e87671 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/European Dynamics.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Golem.at.svg b/portal/bae-frontend/assets/hero-logos/Golem.at.svg new file mode 100644 index 00000000..ec21d9ed --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Golem.at.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Idom.svg b/portal/bae-frontend/assets/hero-logos/Idom.svg new file mode 100644 index 00000000..f5d4cd9b --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Idom.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Inno Focus.svg b/portal/bae-frontend/assets/hero-logos/Inno Focus.svg new file mode 100644 index 00000000..5314add0 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Inno Focus.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Ionos.svg b/portal/bae-frontend/assets/hero-logos/Ionos.svg new file mode 100644 index 00000000..ec6db3bc --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Ionos.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Libelium.svg b/portal/bae-frontend/assets/hero-logos/Libelium.svg new file mode 100644 index 00000000..64758d9d --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Libelium.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Madison MK.svg b/portal/bae-frontend/assets/hero-logos/Madison MK.svg new file mode 100644 index 00000000..7290ce89 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Madison MK.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Orange Business.svg b/portal/bae-frontend/assets/hero-logos/Orange Business.svg new file mode 100644 index 00000000..73f7c82b --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Orange Business.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Portel.svg b/portal/bae-frontend/assets/hero-logos/Portel.svg new file mode 100644 index 00000000..8eb4e686 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Portel.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Team Dev.svg b/portal/bae-frontend/assets/hero-logos/Team Dev.svg new file mode 100644 index 00000000..bec0fb40 --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Team Dev.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/hero-logos/Top ix.svg b/portal/bae-frontend/assets/hero-logos/Top ix.svg new file mode 100644 index 00000000..b4ac4dec --- /dev/null +++ b/portal/bae-frontend/assets/hero-logos/Top ix.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal/bae-frontend/assets/i18n/en.json b/portal/bae-frontend/assets/i18n/en.json index dd2b091b..7059c4a4 100644 --- a/portal/bae-frontend/assets/i18n/en.json +++ b/portal/bae-frontend/assets/i18n/en.json @@ -157,8 +157,8 @@ "hero": { "_titleLine1Part1": "The Trusted", "_titleLine1Accent": "European", - "_titleLine2": "Ecosystem for Cloud,", - "_titleLine3": "Edge & AI Services", + "_titleLine1Part2": "Ecosystem", + "_titleLine2": "for Cloud, Edge & AI Services", "_subtitleLine1": "Connecting providers and customers to discover, deliver and scale sovereign digital", "_subtitleLine2": "services across Europe.", "_customerCta": "Start your customer journey", @@ -386,7 +386,8 @@ "step2": "Verify your organisation", "step3": "Publish your services", "step4": "Start receiving requests" - } + }, + "ctaButton": "Start your onboarding journey" }, "included": { "title": "What's Included for Providers", diff --git a/portal/bae-frontend/assets/i18n/es.json b/portal/bae-frontend/assets/i18n/es.json index dd2b091b..7059c4a4 100644 --- a/portal/bae-frontend/assets/i18n/es.json +++ b/portal/bae-frontend/assets/i18n/es.json @@ -157,8 +157,8 @@ "hero": { "_titleLine1Part1": "The Trusted", "_titleLine1Accent": "European", - "_titleLine2": "Ecosystem for Cloud,", - "_titleLine3": "Edge & AI Services", + "_titleLine1Part2": "Ecosystem", + "_titleLine2": "for Cloud, Edge & AI Services", "_subtitleLine1": "Connecting providers and customers to discover, deliver and scale sovereign digital", "_subtitleLine2": "services across Europe.", "_customerCta": "Start your customer journey", @@ -386,7 +386,8 @@ "step2": "Verify your organisation", "step3": "Publish your services", "step4": "Start receiving requests" - } + }, + "ctaButton": "Start your onboarding journey" }, "included": { "title": "What's Included for Providers", diff --git a/portal/bae-frontend/common.3870fd15b728f51e.js b/portal/bae-frontend/common.3870fd15b728f51e.js new file mode 100644 index 00000000..a611505a --- /dev/null +++ b/portal/bae-frontend/common.3870fd15b728f51e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[76],{7265:(x,f,a)=>{a.d(f,{w:()=>d});var t=a(4438);let d=(()=>{class l{constructor(g){this.elementRef=g}static{this.\u0275fac=function(_){return new(_||l)(t.rXU(t.aKT))}}static{this.\u0275dir=t.FsC({type:l,selectors:[["","verticalScrollCard",""]],standalone:!0})}}return l})()},8620:(x,f,a)=>{a.d(f,{g:()=>w});var t=a(4438),d=a(60),l=a(604),h=a(7265);const g=["scrollContainer"],_=["*"];function v(r,C){if(1&r){const e=t.RV6();t.j41(0,"button",11),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.scrollPrev())}),t.nrm(1,"fa-icon",12),t.k0s()}if(2&r){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faChevronUp)}}function I(r,C){if(1&r&&t.nrm(0,"div",13),2&r){const e=t.XpG();t.xc7("height",e.fadeHeight,"px")}}function b(r,C){if(1&r&&t.nrm(0,"div",14),2&r){const e=t.XpG();t.xc7("height",e.fadeHeight,"px")}}function T(r,C){if(1&r){const e=t.RV6();t.j41(0,"button",15),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.scrollNext())}),t.nrm(1,"fa-icon",12),t.k0s()}if(2&r){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faChevronDown)}}let w=(()=>{class r{constructor(){this.height=636,this.gap=24,this.indicatorLeft=14,this.showFade=!0,this.fadeHeight=32,this.activeIndexChange=new t.bkB,this.activeIndex=0,this.indicatorTop=0,this.indicatorHeight=0,this.indicatorVisible=!1,this.stackPaddingTop=0,this.stackPaddingBottom=0,this.faChevronUp=l.w2A,this.faChevronDown=l.Jt$,this.wheelLocked=!1,this.rafId=null,this.scrollEndTimer=null,this.initialLayoutTimer=null}get canScrollUp(){return this.activeIndex>0}get canScrollDown(){return this.activeIndex<(this.itemDirectives?.length??0)-1}scrollPrev(){this.canScrollUp&&this.scrollToIndex(this.activeIndex-1,"smooth")}scrollNext(){this.canScrollDown&&this.scrollToIndex(this.activeIndex+1,"smooth")}ngAfterContentInit(){this.runInitialLayout(),this.itemDirectives.changes.subscribe(()=>{this.runInitialLayout(this.activeIndex)})}ngOnDestroy(){null!==this.rafId&&cancelAnimationFrame(this.rafId),this.scrollEndTimer&&clearTimeout(this.scrollEndTimer),this.initialLayoutTimer&&clearTimeout(this.initialLayoutTimer)}onResize(){this.runInitialLayout(this.activeIndex)}onWheel(e){if(e.preventDefault(),this.wheelLocked)return;const n=Math.sign(e.deltaY);if(0===n)return;const i=this.getItems(),o=n>0?Math.min(this.activeIndex+1,i.length-1):Math.max(this.activeIndex-1,0);o!==this.activeIndex&&(this.wheelLocked=!0,this.scrollToIndex(o,"smooth"),setTimeout(()=>{this.wheelLocked=!1},420))}onScroll(){null!==this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(()=>{this.syncActiveItemFromScroll(),this.rafId=null}),this.scrollEndTimer&&clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(()=>{this.snapToNearestItem()},90)}runInitialLayout(e=0){this.indicatorVisible=!1,this.initialLayoutTimer&&clearTimeout(this.initialLayoutTimer),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.updateStackPadding(),this.scrollToIndex(e,"auto"),this.initialLayoutTimer=setTimeout(()=>{this.updateStackPadding(),this.scrollToIndex(e,"auto"),this.indicatorVisible=!0},60)})})}getItems(){return this.itemDirectives?.toArray().map(e=>e.elementRef.nativeElement)??[]}updateStackPadding(){const e=this.scrollContainer?.nativeElement,n=this.getItems();if(!e||!n.length)return;const o=n[n.length-1];this.stackPaddingTop=Math.max(0,(e.clientHeight-n[0].offsetHeight)/2),this.stackPaddingBottom=Math.max(0,(e.clientHeight-o.offsetHeight)/2)}scrollToIndex(e,n){const i=this.scrollContainer?.nativeElement,o=this.getItems();if(!i||!o[e])return;const s=o[e],c=s.offsetTop-(i.clientHeight/2-s.offsetHeight/2),m=Math.max(0,i.scrollHeight-i.clientHeight),p=Math.max(0,Math.min(c,m));this.setActiveIndex(e),i.scrollTo({top:p,behavior:n}),this.updateIndicatorFromItem(s,p)}snapToNearestItem(){const e=this.scrollContainer?.nativeElement,n=this.getItems();if(!e||!n.length)return;const i=e.scrollTop+e.clientHeight/2;let o=0,s=1/0;n.forEach((c,m)=>{const u=Math.abs(c.offsetTop+c.offsetHeight/2-i);u{const u=Math.abs(c.offsetTop+c.offsetHeight/2-i);u{a.d(f,{h:()=>l});var t=a(8620),d=a(4438);let l=(()=>{class h{static{this.\u0275fac=function(v){return new(v||h)}}static{this.\u0275mod=d.$C({type:h})}static{this.\u0275inj=d.G2t({imports:[t.g]})}}return h})()}}]); \ No newline at end of file diff --git a/portal/bae-frontend/common.d1e100ea66dd55be.js b/portal/bae-frontend/common.d1e100ea66dd55be.js deleted file mode 100644 index 9d88ed62..00000000 --- a/portal/bae-frontend/common.d1e100ea66dd55be.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[76],{7265:(v,h,l)=>{l.d(h,{w:()=>f});var t=l(4438);let f=(()=>{class a{constructor(p){this.elementRef=p}static{this.\u0275fac=function(m){return new(m||a)(t.rXU(t.aKT))}}static{this.\u0275dir=t.FsC({type:a,selectors:[["","verticalScrollCard",""]],standalone:!0})}}return a})()},8620:(v,h,l)=>{l.d(h,{g:()=>C});var t=l(4438),f=l(7265);const a=["scrollContainer"],_=["*"];function p(r,I){if(1&r&&t.nrm(0,"div",7),2&r){const e=t.XpG();t.xc7("height",e.fadeHeight,"px")}}function m(r,I){if(1&r&&t.nrm(0,"div",8),2&r){const e=t.XpG();t.xc7("height",e.fadeHeight,"px")}}let C=(()=>{class r{constructor(){this.height=636,this.gap=24,this.indicatorLeft=14,this.showFade=!0,this.fadeHeight=32,this.activeIndexChange=new t.bkB,this.activeIndex=0,this.indicatorTop=0,this.indicatorHeight=0,this.indicatorVisible=!1,this.stackPaddingTop=0,this.stackPaddingBottom=0,this.wheelLocked=!1,this.rafId=null,this.scrollEndTimer=null,this.initialLayoutTimer=null}ngAfterContentInit(){this.runInitialLayout(),this.itemDirectives.changes.subscribe(()=>{this.runInitialLayout(this.activeIndex)})}ngOnDestroy(){null!==this.rafId&&cancelAnimationFrame(this.rafId),this.scrollEndTimer&&clearTimeout(this.scrollEndTimer),this.initialLayoutTimer&&clearTimeout(this.initialLayoutTimer)}onResize(){this.runInitialLayout(this.activeIndex)}onWheel(e){if(e.preventDefault(),this.wheelLocked)return;const n=Math.sign(e.deltaY);if(0===n)return;const i=this.getItems(),o=n>0?Math.min(this.activeIndex+1,i.length-1):Math.max(this.activeIndex-1,0);o!==this.activeIndex&&(this.wheelLocked=!0,this.scrollToIndex(o,"smooth"),setTimeout(()=>{this.wheelLocked=!1},420))}onScroll(){null!==this.rafId&&cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(()=>{this.syncActiveItemFromScroll(),this.rafId=null}),this.scrollEndTimer&&clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(()=>{this.snapToNearestItem()},90)}runInitialLayout(e=0){this.indicatorVisible=!1,this.initialLayoutTimer&&clearTimeout(this.initialLayoutTimer),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.updateStackPadding(),this.scrollToIndex(e,"auto"),this.initialLayoutTimer=setTimeout(()=>{this.updateStackPadding(),this.scrollToIndex(e,"auto"),this.indicatorVisible=!0},60)})})}getItems(){return this.itemDirectives?.toArray().map(e=>e.elementRef.nativeElement)??[]}updateStackPadding(){const e=this.scrollContainer?.nativeElement,n=this.getItems();if(!e||!n.length)return;const o=n[n.length-1];this.stackPaddingTop=Math.max(0,(e.clientHeight-n[0].offsetHeight)/2),this.stackPaddingBottom=Math.max(0,(e.clientHeight-o.offsetHeight)/2)}scrollToIndex(e,n){const i=this.scrollContainer?.nativeElement,o=this.getItems();if(!i||!o[e])return;const s=o[e],c=s.offsetTop-(i.clientHeight/2-s.offsetHeight/2),u=Math.max(0,i.scrollHeight-i.clientHeight),d=Math.max(0,Math.min(c,u));this.setActiveIndex(e),i.scrollTo({top:d,behavior:n}),this.updateIndicatorFromItem(s,d)}snapToNearestItem(){const e=this.scrollContainer?.nativeElement,n=this.getItems();if(!e||!n.length)return;const i=e.scrollTop+e.clientHeight/2;let o=0,s=1/0;n.forEach((c,u)=>{const g=Math.abs(c.offsetTop+c.offsetHeight/2-i);g{const g=Math.abs(c.offsetTop+c.offsetHeight/2-i);g{l.d(h,{h:()=>f});var t=l(4438);let f=(()=>{class a{static{this.\u0275fac=function(m){return new(m||a)}}static{this.\u0275mod=t.$C({type:a})}static{this.\u0275inj=t.G2t({})}}return a})()}}]); \ No newline at end of file diff --git a/portal/bae-frontend/index.html b/portal/bae-frontend/index.html index 24ab0377..c421c051 100644 --- a/portal/bae-frontend/index.html +++ b/portal/bae-frontend/index.html @@ -16,9 +16,9 @@ document.documentElement.classList.remove('dark') } - + - + diff --git a/portal/bae-frontend/main.17453db67d920623.js b/portal/bae-frontend/main.17453db67d920623.js deleted file mode 100644 index 76feb027..00000000 --- a/portal/bae-frontend/main.17453db67d920623.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[792],{8508:(k1,r1,v)=>{"use strict";v.d(r1,{K:()=>c1});var u=v(1626),g=v(1985),e=v(6354),p=v(7468),L=v(2087),S=v(8058),A=v(5312),V=v(4438);let c1=(()=>{class K{get apiUrl(){const j=A.c.quoteApi;return j.startsWith("http://")||j.startsWith("https://")?j:`${A.c.BASE_URL}${j}`}get httpOptions(){return{headers:new u.Lr({"Content-Type":"application/json"})}}constructor(j){this.http=j,console.log("\u{1f50d} [DEBUG] QuoteService constructor - BASE_URL:",A.c.BASE_URL)}createQuote(j){return this.http.post(`${this.apiUrl}/quote`,j,this.httpOptions)}createQuoteFromRequest(j){return this.http.post(`${this.apiUrl}${A.c.quoteEndpoints.createQuote}`,j,this.httpOptions)}listQuotes(j,l1,m1){let f1=new u.Nl;return j&&(f1=f1.set("fields",j)),void 0!==l1&&(f1=f1.set("offset",l1.toString())),void 0!==m1&&(f1=f1.set("limit",m1.toString())),this.http.get(`${this.apiUrl}/quote`,{params:f1,...this.httpOptions})}retrieveQuote(j,l1){let m1=new u.Nl;l1&&(m1=m1.set("fields",l1));const f1=encodeURIComponent(j);return console.log("Retrieving quote with URL:",`${this.apiUrl}/quoteById/${f1}`),this.http.get(`${this.apiUrl}/quoteById/${f1}`,{params:m1,...this.httpOptions})}patchQuote(j,l1){const m1=encodeURIComponent(j);return console.log("Updating quote with URL:",`${this.apiUrl}/updateQuoteStatus/${m1}`),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${m1}`,l1,this.httpOptions)}deleteQuote(j){const l1=encodeURIComponent(j);return console.log("Deleting quote with URL:",`${this.apiUrl}/quote/${l1}`),this.http.delete(`${this.apiUrl}/quote/${l1}`,this.httpOptions)}getAllQuotes(){return this.listQuotes()}getQuoteById(j){return this.retrieveQuote(j)}updateQuoteState(j,l1){return this.patchQuote(j,{state:l1})}updateQuoteDescription(j,l1){return this.patchQuote(j,{description:l1})}addNoteToQuote(j,l1,m1){let f1=new u.Nl;f1=f1.set("userId",m1||""),f1=f1.set("messageContent",l1);const $1=encodeURIComponent(j);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(j,l1,m1){const f1={};return l1&&(f1.expectedQuoteCompletionDate=l1),m1&&(f1.requestedQuoteCompletionDate=m1),this.patchQuote(j,f1)}getQuotesByUserAndRole(j,l1){let m1=new u.Nl;m1=m1.set("role","customer"===l1?A.c.BUYER_ROLE:A.c.SELLER_ROLE);const $1=encodeURIComponent(j);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(j){return new g.c(l1=>{this.listQuotes().subscribe({next:m1=>{let f1=m1;j.state&&(f1=f1.filter($1=>$1.state===j.state)),j.category&&(f1=f1.filter($1=>$1.category===j.category)),j.externalId&&(f1=f1.filter($1=>$1.externalId===j.externalId)),j.description&&(f1=f1.filter($1=>$1.description?.toLowerCase().includes(j.description.toLowerCase()))),l1.next(f1)},error:m1=>l1.error(m1)})})}updateQuoteStatus(j,l1){let m1=new u.Nl;m1=m1.set("statusValue",l1);const f1=encodeURIComponent(j);return console.log("Updating quote status with URL:",`${this.apiUrl}/updateQuoteStatus/${f1}`),console.log("Status value:",l1),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${f1}`,null,{params:m1,...this.httpOptions})}updateQuoteDate(j,l1,m1){let f1=new u.Nl;f1=f1.set("date",l1),f1=f1.set("dateType",m1);const $1=encodeURIComponent(j);return console.log("Updating quote date with URL:",`${this.apiUrl}/updateQuoteDate/${$1}`),console.log("Date:",l1,"DateType:",m1),this.http.patch(`${this.apiUrl}/updateQuoteDate/${$1}`,null,{params:f1,...this.httpOptions})}addNoteToQuoteOld(j,l1){return this.addNoteToQuote(j,l1)}addAttachmentToQuote(j,l1,m1){const f1=new FormData;f1.append("file",l1),m1&&f1.append("description",m1);const $1=encodeURIComponent(j);return this.http.patch(`${this.apiUrl}/addAttachmentToQuote/${$1}`,f1)}downloadAttachment(j){let l1=null;if(Array.isArray(j.quoteItem))for(const m1 of j.quoteItem)if(m1.attachment&&m1.attachment.length>0){l1=m1.attachment[0];break}if(!l1)throw new Error("No attachment found for this quote.");if(!l1.content)throw new Error("Attachment content not found or not embedded.");try{const m1=atob(l1.content),f1=new Uint8Array(m1.length);for(let s2=0;s28?j.id.slice(-8):j.id||"unknown",c0=l1.name||`quote-${r2}-attachment.pdf`;H1.download=c0,document.body.appendChild(H1),H1.click(),document.body.removeChild(H1),URL.revokeObjectURL(g1),console.log(`Downloaded attachment: ${c0}`)}catch(m1){throw console.error("Error decoding BASE64 content:",m1),new Error("Error decoding PDF content. The file may be corrupted.")}}getQuotesByUser(j){return new g.c(l1=>{this.listQuotes().subscribe({next:m1=>{const f1=m1.filter($1=>$1.relatedParty?.some(g1=>g1.id===j));l1.next(f1)},error:m1=>l1.error(m1)})})}isQuoteCancelled(j){return j.quoteItem?.some(l1=>l1.state===S.yz.CANCELLED)||!1}isQuoteAccepted(j){return j.quoteItem?.some(l1=>l1.state===S.yz.ACCEPTED)||!1}isQuoteFinalized(j){return this.isQuoteCancelled(j)||this.isQuoteAccepted(j)}updateQuote(j,l1){return this.patchQuote(j,l1)}createCoordinatorQuote(j,l1){const m1={customerMessage:l1,customerIdRef:j},f1=`${this.apiUrl}/tendering/createCoordinatorQuote`;return console.log("\u{1f50d} [DEBUG] QuoteService.createCoordinatorQuote:"),console.log("\u{1f50d} [DEBUG] this.apiUrl:",this.apiUrl),console.log("\u{1f50d} [DEBUG] Full URL being called:",f1),console.log("\u{1f50d} [DEBUG] environment.quoteApi:",A.c.quoteApi),this.http.post(f1,m1,this.httpOptions).pipe((0,e.T)($1=>this.mapQuoteToTender($1)))}createTenderingQuote(j,l1,m1,f1){return this.http.post(`${this.apiUrl}/tendering/createQuote`,{customerMessage:f1||"",customerIdRef:j,providerIdRef:l1,externalId:m1},this.httpOptions).pipe((0,e.T)(g1=>this.mapQuoteToTender(g1)))}createMultipleTenderingQuotes(j,l1,m1,f1){const $1=l1.map(g1=>this.createTenderingQuote(j,g1,m1,f1));return(0,p.p)($1)}getCoordinatorQuotesByUser(j){const l1=encodeURIComponent(j);return console.log("Getting coordinator quotes for user:",l1),this.http.get(`${this.apiUrl}/tendering/coordinatorQuotes/${l1}`,this.httpOptions).pipe((0,e.T)(m1=>m1.map(f1=>this.mapQuoteToTender(f1))))}getTenderingQuotesByUser(j,l1=L.XZ.SELLER,m1){const f1=encodeURIComponent(j);let $1=(new u.Nl).set("role",l1);return m1&&($1=$1.set("externalId",m1)),console.log("Getting tendering quotes for user:",f1,"role:",l1,"externalId:",m1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions}).pipe((0,e.T)(g1=>g1.map(H1=>this.mapQuoteToTender(H1))))}getTenderingQuotesByExternalId(j,l1,m1){const f1=encodeURIComponent(j);let $1=(new u.Nl).set("role",m1).set("externalId",l1);return console.log("Getting tendering quotes by external ID:",l1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions})}broadcastMessage(j,l1,m1){const f1={externalId:j,userId:l1,messageContent:m1};return console.log("Broadcasting message to external ID:",j),this.http.post(`${this.apiUrl}/tendering/broadcastMessage`,f1,this.httpOptions)}updateTenderStatus(j,l1){return this.updateQuoteStatus(j,l1).pipe((0,e.T)(m1=>this.mapQuoteToTender(m1)))}mapQuoteToTender(j){const l1=j.expectedFulfillmentStartDate||j.effectiveQuoteCompletionDate||(new Date).toISOString(),m1=j.description||void 0;let f1;if(j.quoteItem&&j.quoteItem.length>0){const P1=j.quoteItem[0];if(P1.attachment&&P1.attachment.length>0){const B2=P1.attachment[0];f1={name:B2.name||"attachment.pdf",mimeType:B2.mimeType||"application/pdf",content:B2.content||"",size:B2.size?.amount}}}const $1=j.relatedParty?.filter(P1=>P1.role?.toLowerCase()===L.XZ.SELLER.toLowerCase()).map(P1=>P1.id)||[];let g1="coordinator";j.category===S.K0.TENDER?g1="tendering":j.category===S.K0.COORDINATOR&&(g1="coordinator");let H1="pending";j.quoteItem&&j.quoteItem.length>0?H1=j.quoteItem[0].state||j.state||"pending":j.state&&(H1=j.state);let r2="draft";H1===S.yz.PENDING?r2="draft":H1===S.yz.IN_PROGRESS?r2="pre-launched":H1===S.yz.APPROVED?r2="sent":H1===S.yz.ACCEPTED?r2="closed":H1===S.yz.CANCELLED?r2="cancelled":H1===S.yz.REJECTED&&(r2="rejected");const c0=j.externalId,s2=j.relatedParty?.find(P1=>P1.role?.toLowerCase()===L.XZ.SELLER.toLowerCase())?.name,c2=j.relatedParty?.find(P1=>P1.role?.toLowerCase()===L.XZ.BUYER.toLowerCase())?.id;return{id:j.id,category:g1,state:r2,responseDeadline:l1,tenderNote:m1,attachment:f1,selectedProviders:$1,external_id:c0,provider:s2,buyerPartyId:c2,createdAt:j.quoteDate,updatedAt:j.quoteDate,effectiveQuoteCompletionDate:j.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:j.expectedFulfillmentStartDate,expectedQuoteCompletionDate:j.expectedQuoteCompletionDate,requestedQuoteCompletionDate:j.requestedQuoteCompletionDate}}static{this.\u0275fac=function(l1){return new(l1||K)(V.KVO(u.Qq))}}static{this.\u0275prov=V.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}return K})()},8058:(k1,r1,v)=>{"use strict";v.d(r1,{D5:()=>S,Ft:()=>L1,K0:()=>u,L9:()=>c1,NT:()=>L,R4:()=>e,Wc:()=>A,ZR:()=>V,ak:()=>l1,bJ:()=>K,kU:()=>p,te:()=>j,yz:()=>g});const u={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"},L={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"},V={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."}}},c1={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."}}},L1={STATUS_CHANGE:m1=>`Status changed to: ${m1}`,ATTACHMENT_UPLOADED:m1=>`Attachment uploaded: ${m1}`},j="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.",l1={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:(k1,r1,v)=>{"use strict";v.d(r1,{E9:()=>e,XZ:()=>u,Zk:()=>g});const u={BUYER:"Buyer",SELLER:"Seller"},g={BUYER:"buyer",SELLER:"seller"};function e(L){return L===g.BUYER?u.BUYER:u.SELLER}},452:(k1,r1,v)=>{"use strict";v.d(r1,{O:()=>S});var u=v(3207),g=v(5312),e=v(4438),p=v(1626),L=v(3077);class S{static{this.BASE_URL=g.c.BASE_URL}static{this.API_ACCOUNT=g.c.ACCOUNT}constructor(V,c1){this.http=V,this.localStorage=c1}getBillingAccount(){return(0,u.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`))}getBillingAccountById(V){return(0,u.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${V}`))}postBillingAccount(V){return this.http.post(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`,V)}updateBillingAccount(V,c1){return this.http.patch(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${V}`,c1)}deleteBillingAccount(V){return this.http.delete(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${V}`)}getUserInfo(V){return(0,u.s)(this.http.get(`${S.BASE_URL}/party/individual/${V}`))}getOrgInfo(V){return(0,u.s)(this.http.get(`${S.BASE_URL}/party/organization/${V}`))}getOrgList(){return(0,u.s)(this.http.get(`${S.BASE_URL}/party/organization`))}updateUserInfo(V,c1){return this.http.patch(`${S.BASE_URL}/party/individual/${V}`,c1)}updateOrgInfo(V,c1){return this.http.patch(`${S.BASE_URL}/party/organization/${V}`,c1)}static{this.\u0275fac=function(c1){return new(c1||S)(e.KVO(p.Qq),e.KVO(L.s))}}static{this.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}},3077:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>g});var u=v(4438);let g=(()=>{class e{constructor(){}setItem(L,S){localStorage.setItem(L,S)}getItem(L){return localStorage.getItem(L)}setObject(L,S){localStorage.setItem(L,JSON.stringify(S))}getObject(L){return JSON.parse(localStorage.getItem(L)||"{}")}removeItem(L){localStorage.removeItem(L)}clear(){localStorage.clear()}addCategoryFilter(L){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]");-1===S.findIndex(V=>V.id===L.id)&&(S.push(L),localStorage.setItem("selected_categories",JSON.stringify(S)))}removeCategoryFilter(L){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]"),A=S.findIndex(V=>V.id===L.id);A>-1&&(S.splice(A,1),localStorage.setItem("selected_categories",JSON.stringify(S)))}addCartItem(L){const S=JSON.parse(localStorage.getItem("cart_items")||"[]");-1===S.findIndex(V=>V.id===L.id)&&(S.push(L),localStorage.setItem("cart_items",JSON.stringify(S)))}removeCartItem(L){const S=JSON.parse(localStorage.getItem("cart_items")||"[]"),A=S.findIndex(V=>V.id===L.id);A>-1&&(S.splice(A,1),localStorage.setItem("cart_items",JSON.stringify(S)))}addLoginInfo(L){localStorage.setItem("login_items",JSON.stringify(L))}removeLoginInfo(){localStorage.setItem("login_items",JSON.stringify({}))}static{this.\u0275fac=function(S){return new(S||e)}}static{this.\u0275prov=u.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()},7473:(k1,r1,v)=>{"use strict";v.d(r1,{J:()=>e});var u=v(4412),g=v(4438);let e=(()=>{class p{constructor(){this.notificationSubject=new u.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:(k1,r1,v)=>{"use strict";v.d(r1,{F:()=>K});var u=v(467),g=v(8866),e=v(3207),p=v(9437),L=v(7673),S=v(5312),A=v(4438),V=v(1626),c1=v(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(j,l1){this.http=j,this.localStorage=l1}getAllProducts(){return this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/productOffering?lifecycleStatus=Launched&limit=100`)}getProducts(j,l1){let m1=`${K.BASE_URL}${K.API_PRODUCT}/productOffering?limit=${K.PRODUCT_LIMIT}&offset=${j}&lifecycleStatus=Launched`;return null!=l1&&(m1=m1+"&keyword="+l1),(0,e.s)(this.http.get(m1))}getProductsDetails(j){var l1=this;return(0,u.A)(function*(){let m1=[];return Array.isArray(j)?m1=j:j&&"object"==typeof j&&(m1=[j]),yield Promise.all(m1.map(function(){var f1=(0,u.A)(function*($1){try{const[g1,H1]=yield Promise.all([$1.productSpecification?.id?l1.getProductSpecification($1.productSpecification.id):Promise.resolve(void 0),$1.productOfferingPrice?Promise.all($1.productOfferingPrice.map(r2=>l1.getProductPrice(r2.id))):Promise.resolve([])]);return{id:$1.id,href:$1.href,name:$1.name,description:$1.description,isBundle:$1.isBundle,isSellable:$1.isSellable,lastUpdate:$1.lastUpdate,lifecycleStatus:$1.lifecycleStatus,statusReason:$1.statusReason,version:$1.version,agreement:$1.agreement??[],attachment:g1?.attachment??[],bundledProductOffering:$1.bundledProductOffering??[],category:$1.category??[],channel:$1.channel??[],marketSegment:$1.marketSegment??[],place:$1.place??[],prodSpecCharValueUse:$1.prodSpecCharValueUse??[],productOfferingPrice:H1??[],productOfferingRelationship:$1.productOfferingRelationship??[],productOfferingTerm:$1.productOfferingTerm??[],productSpecification:g1??$1.productSpecification,resourceCandidate:$1.resourceCandidate,serviceCandidate:$1.serviceCandidate,serviceLevelAgreement:$1.serviceLevelAgreement,validFor:$1.validFor,"@baseType":$1["@baseType"],"@schemaLocation":$1["@schemaLocation"],"@type":$1["@type"]}}catch(g1){return console.error(`Error processing product ${$1.id}:`,g1),$1}});return function($1){return f1.apply(this,arguments)}}()))})()}getProductsByCategory(j,l1,m1){let f1="";for(let r2=0;r20){for(let r2=0;r2(console.error("Error getting categories:",l1),(0,L.of)([])))))}getCategories(j){let l1=`${K.BASE_URL}${K.API_PRODUCT}/category?limit=${K.CATEGORY_LIMIT}`,m1="";if(j.length>0){for(let f1=0;f1(console.error("Error getting categories:",f1),(0,L.of)([])))))}getDefaultCategories(){var j=this;return(0,u.A)(function*(){let l1=[];if(S.c.DFT_CATALOG_ID&&""!==S.c.DFT_CATALOG_ID){const m1=yield j.getCatalog(S.c.DFT_CATALOG_ID);m1.category&&(l1=yield Promise.all(m1.category.map(function(){var f1=(0,u.A)(function*($1){return j.getCategoryById($1.id)});return function($1){return f1.apply(this,arguments)}}())))}else l1=yield j.getLaunchedCategories();return l1})()}getCategoryById(j){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category/${j}`))}getCategoriesByParentId(j){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category?parentId=${j}`))}postCategory(j){return this.http.post(`${K.BASE_URL}${K.API_PRODUCT}/category`,j)}updateCategory(j,l1){return this.http.patch(`${K.BASE_URL}${K.API_PRODUCT}/category/${l1}`,j)}getCatalogs(j,l1){let m1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${j}&lifecycleStatus=Launched`;return null!=l1&&(m1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${j}&lifecycleStatus=Launched&body=${l1}`),console.log("getcatalogs"),console.log(this),(0,e.s)(this.http.get(m1))}getCatalogsByUser(j,l1,m1,f1){let $1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${j}&relatedParty.id=${f1}`,g1="";if(m1&&m1.length>0){for(let H1=0;H1"Compliance:VC"===f1.name);if(m1){const f1=m1.productSpecCharacteristicValue?.at(0)?.value,$1=(0,g.s)(f1);let g1=null;if("verifiableCredential"in $1?g1=$1.verifiableCredential:"vc"in $1&&(g1=$1.vc),null!=g1){const H1=g1.credentialSubject;"gx:labelLevel"in H1&&(l1=H1["gx:labelLevel"])}}}return l1}static{this.\u0275fac=function(l1){return new(l1||K)(A.KVO(V.Qq),A.KVO(c1.s))}}static{this.\u0275prov=A.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}},3636:(k1,r1,v)=>{"use strict";v.d(r1,{w:()=>c1});var u=v(467),g=v(4438),e=v(177),p=v(9417),L=v(8508),S=v(7473);function A(K,L1){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 V(K,L1){if(1&K){const j=g.RV6();g.j41(0,"div",2),g.bIt("click",function(){g.eBV(j);const m1=g.XpG();return g.Njj(m1.closeModal())}),g.j41(1,"div",3),g.bIt("click",function(m1){return g.eBV(j),g.Njj(m1.stopPropagation())}),g.j41(2,"button",4),g.bIt("click",function(){g.eBV(j);const m1=g.XpG();return g.Njj(m1.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(m1){g.eBV(j);const f1=g.XpG();return g.Njj(f1.onFileSelected(m1))}),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(j);const m1=g.XpG();return g.Njj(m1.uploadAttachment())}),g.EFF(16),g.k0s(),g.j41(17,"button",13),g.bIt("click",function(){g.eBV(j);const m1=g.XpG();return g.Njj(m1.closeModal())}),g.EFF(18," Cancel "),g.k0s()()()()}if(2&K){const j=g.XpG();g.R7$(5),g.SpI(" Add Attachment to Quote ",j.getShortQuoteId()," "),g.R7$(),g.Y8G("ngIf",j.hasExistingAttachment),g.R7$(9),g.Y8G("disabled",!j.selectedFile||j.isUploading),g.R7$(),g.SpI(" ",j.isUploading?"Uploading...":"Upload"," ")}}let c1=(()=>{class K{constructor(j,l1){this.quoteService=j,this.notificationService=l1,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(j=>j.attachment&&j.attachment.length>0))}onFileSelected(j){const l1=j.target.files[0];if(l1){if("application/pdf"!==l1.type)return this.notificationService.showError("Please select a valid PDF file."),this.selectedFile=null,void(j.target.value="");this.selectedFile=l1}else this.selectedFile=null}uploadAttachment(){var j=this;return(0,u.A)(function*(){if(j.selectedFile&&j.quote?.id&&!j.isUploading){j.isUploading=!0;try{const l1=yield j.quoteService.addAttachmentToQuote(j.quote.id,j.selectedFile,"").toPromise();j.notificationService.showSuccess("Attachment uploaded successfully!"),j.uploadSuccess.emit(l1),j.closeModal()}catch(l1){console.error("Error uploading attachment:",l1),j.notificationService.showError("Error uploading attachment. Please try again.")}finally{j.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(l1){return new(l1||K)(g.rXU(L.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(l1,m1){1&l1&&g.DNE(0,V,19,4,"div",1),2&l1&&g.Y8G("ngIf",m1.isOpen)},dependencies:[e.MD,e.bT,p.YN],encapsulation:2})}}return K})()},8338:(k1,r1,v)=>{"use strict";v.d(r1,{g:()=>V});var u=v(60),g=v(604),e=v(4438);const p=["*"],L=()=>[];function S(c1,K){if(1&c1){const L1=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const l1=e.eBV(L1).$index,m1=e.XpG(2);return e.Njj(m1.goTo(l1))}),e.k0s()}if(2&c1){const L1=K.$index,j=e.XpG(2);e.HbH(j.dotClass(j.index===L1))}}function A(c1,K){if(1&c1&&(e.j41(0,"div",4),e.Z7z(1,S,1,2,"button",5,e.Vm6),e.k0s()),2&c1){const L1=e.XpG();e.R7$(),e.Dyx(e.lJ4(0,L).constructor(L1.pages))}}let V=(()=>{class c1{constructor(){this.visible=3,this.arrowTheme="light",this.dotsTheme="light",this.sidePadding=!0,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(L1){return"accent"===this.dotsTheme?L1?"bg-[#00ADD3]":"bg-[#D1F7FF]":L1?"bg-blue-700":"bg-slate-300"}next(){this.index=Math.min(this.index+1,this.maxIndex)}prev(){this.index=Math.max(this.index-1,0)}goTo(L1){this.index=Math.max(0,Math.min(L1,this.maxIndex))}ngOnChanges(L1){this.index=Math.min(this.index,this.maxIndex)}onResize(){this.index=Math.min(this.index,this.maxIndex)}static{this.\u0275fac=function(j){return new(j||c1)}}static{this.\u0275cmp=e.VBU({type:c1,selectors:[["app-carousel"]],hostBindings:function(j,l1){1&j&&e.bIt("resize",function(){return l1.onResize()},!1,e.tSv)},inputs:{items:"items",visible:"visible",arrowTheme:"arrowTheme",dotsTheme:"dotsTheme",sidePadding:"sidePadding"},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(j,l1){1&j&&(e.NAR(),e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return l1.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 l1.next()}),e.nrm(7,"fa-icon",1),e.k0s()(),e.DNE(8,A,3,1,"div",4)),2&j&&(e.HbH(l1.wrapperClass),e.R7$(),e.HbH(l1.leftButtonClass),e.Y8G("disabled",0===l1.index),e.R7$(),e.Y8G("icon",l1.faChevronLeft),e.R7$(2),e.xc7("transform",l1.trackTransform),e.R7$(2),e.HbH(l1.rightButtonClass),e.Y8G("disabled",l1.index===l1.maxIndex),e.R7$(),e.Y8G("icon",l1.faChevronRight),e.R7$(),e.vxM(8,l1.pages>1?8:-1))},dependencies:[u.dX,u.aY],encapsulation:2})}}return c1})()},5586:(k1,r1,v)=>{"use strict";v.d(r1,{d:()=>m1});var u=v(467),g=v(4438),e=v(177),p=v(9417),L=v(8508),S=v(3077),A=v(7473);function V(f1,$1){1&f1&&(g.j41(0,"div",19),g.EFF(1," Loading messages... "),g.k0s())}function c1(f1,$1){1&f1&&(g.j41(0,"div",20),g.EFF(1," Error loading messages "),g.k0s())}function K(f1,$1){1&f1&&(g.j41(0,"div",19),g.EFF(1," No messages yet. "),g.k0s())}function L1(f1,$1){if(1&f1&&(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&f1){const g1=$1.$implicit,H1=g.XpG(3);g.Y8G("ngClass",H1.isMyMessage(g1)?"justify-end":"justify-start"),g.R7$(),g.Y8G("ngClass",H1.isMyMessage(g1)?"bg-blue-100 text-blue-900":"bg-gray-200 text-gray-800"),g.R7$(2),g.JRh(g1.text),g.R7$(),g.Y8G("ngClass",H1.isMyMessage(g1)?"text-right":"text-left"),g.R7$(),g.SpI(" ",H1.formatMessageDate(g1.date)," ")}}function j(f1,$1){if(1&f1&&(g.j41(0,"div"),g.DNE(1,L1,6,5,"div",21),g.k0s()),2&f1){const g1=g.XpG(2);g.R7$(),g.Y8G("ngForOf",g1.messages)}}function l1(f1,$1){if(1&f1){const g1=g.RV6();g.j41(0,"div",3),g.bIt("click",function(){g.eBV(g1);const r2=g.XpG();return g.Njj(r2.closeModal())}),g.j41(1,"div",4),g.bIt("click",function(r2){return g.eBV(g1),g.Njj(r2.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(g1);const r2=g.XpG();return g.Njj(r2.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,V,2,0,"div",11)(11,c1,2,0,"div",12)(12,K,2,0,"div",11)(13,j,2,1,"div",13),g.k0s(),g.j41(14,"form",14,1),g.bIt("ngSubmit",function(){g.eBV(g1);const r2=g.XpG();return g.Njj(r2.sendMessage())}),g.j41(16,"input",15),g.mxI("ngModelChange",function(r2){g.eBV(g1);const c0=g.XpG();return g.DH7(c0.newMessage,r2)||(c0.newMessage=r2),g.Njj(r2)}),g.bIt("keydown.enter",function(r2){g.eBV(g1);const c0=g.XpG();return g.Njj(c0.onEnterKey(r2))}),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(g1);const r2=g.XpG();return g.Njj(r2.closeModal())}),g.EFF(21," Close "),g.k0s()()()()()}if(2&f1){const g1=g.XpG();g.R7$(4),g.SpI(" Chat for Quote ",g1.getShortQuoteId()," "),g.R7$(6),g.Y8G("ngIf",g1.isLoading),g.R7$(),g.Y8G("ngIf",g1.error),g.R7$(),g.Y8G("ngIf",!g1.isLoading&&!g1.error&&0===g1.messages.length),g.R7$(),g.Y8G("ngIf",!g1.isLoading&&!g1.error&&g1.messages.length>0),g.R7$(3),g.R50("ngModel",g1.newMessage),g.Y8G("disabled",g1.isSending),g.R7$(2),g.Y8G("disabled",g1.isSending||!g1.newMessage.trim()),g.R7$(),g.SpI(" ",g1.isSending?"Sending...":"Send"," ")}}let m1=(()=>{class f1{constructor(g1,H1,r2){this.quoteService=g1,this.localStorage=H1,this.notificationService=r2,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 g1=this.localStorage.getObject("login_items");if(g1.logged_as==g1.id)this.currentUserId=g1.partyId;else{let H1=g1.organizations.find(r2=>r2.id==g1.logged_as);this.currentUserId=H1.partyId}this.isOpen&&this.quoteId&&(this.loadMessages(),this.startPolling())}ngOnChanges(){if(this.isOpen&&this.quoteId){let g1=this.localStorage.getObject("login_items");if(g1.logged_as==g1.id)this.currentUserId=g1.partyId;else{let H1=g1.organizations.find(r2=>r2.id==g1.logged_as);this.currentUserId=H1.partyId}this.loadMessages(),this.startPolling()}else this.isOpen||(this.stopPolling(),this.resetState())}ngOnDestroy(){this.stopPolling()}loadMessages(){var g1=this;return(0,u.A)(function*(){if(g1.quoteId){g1.isLoading=!0,g1.error=!1;try{const H1=yield g1.quoteService.getQuoteById(g1.quoteId).toPromise();H1&&(g1.messages=Array.isArray(H1?.note)?H1.note:[]),g1.scrollToBottom()}catch(H1){console.error("Error loading messages:",H1),g1.error=!0}finally{g1.isLoading=!1}}})()}sendMessage(){var g1=this;return(0,u.A)(function*(){if(console.log("sendMessage called"),console.log("newMessage:",g1.newMessage),console.log("quoteId:",g1.quoteId),console.log("currentUserId:",g1.currentUserId),console.log("isSending:",g1.isSending),g1.newMessage.trim()&&g1.quoteId&&g1.currentUserId&&!g1.isSending){console.log("Starting to send message..."),g1.isSending=!0;try{console.log("Calling addNoteToQuote API..."),yield g1.quoteService.addNoteToQuote(g1.quoteId,g1.newMessage.trim(),g1.currentUserId).toPromise(),console.log("Message sent successfully"),g1.newMessage="",yield g1.loadMessages()}catch(H1){console.error("Error sending message:",H1),g1.notificationService.showError("Error sending message. Please try again.")}finally{g1.isSending=!1}}else console.log("Validation failed, returning early")})()}onEnterKey(g1){g1.preventDefault(),this.sendMessage()}isMyMessage(g1){return g1.author===this.currentUserId}formatMessageDate(g1){if(!g1)return"";try{const H1=new Date(g1),r2=H1.getDate().toString().padStart(2,"0"),c0=(H1.getMonth()+1).toString().padStart(2,"0"),s2=H1.getFullYear();return`${r2}/${c0}/${s2} ${H1.getHours().toString().padStart(2,"0")}:${H1.getMinutes().toString().padStart(2,"0")}`}catch{return g1}}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 g1=document.querySelector(".overflow-y-auto");g1&&(g1.scrollTop=g1.scrollHeight)},100)}static{this.\u0275fac=function(H1){return new(H1||f1)(g.rXU(L.K),g.rXU(S.s),g.rXU(A.J))}}static{this.\u0275cmp=g.VBU({type:f1,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(H1,r2){1&H1&&g.DNE(0,l1,22,9,"div",2),2&H1&&g.Y8G("ngIf",r2.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 f1})()},3836:(k1,r1,v)=>{"use strict";v.d(r1,{w:()=>p});var u=v(4438),g=v(177);function e(L,S){if(1&L){const A=u.RV6();u.j41(0,"div",1)(1,"div",2)(2,"h3",3),u.EFF(3),u.k0s(),u.j41(4,"p",4),u.EFF(5),u.k0s(),u.j41(6,"div",5)(7,"button",6),u.bIt("click",function(){u.eBV(A);const c1=u.XpG();return u.Njj(c1.onCancel())}),u.EFF(8," Cancel "),u.k0s(),u.j41(9,"button",7),u.bIt("click",function(){u.eBV(A);const c1=u.XpG();return u.Njj(c1.onConfirm())}),u.EFF(10),u.k0s()()()()}if(2&L){const A=u.XpG();u.R7$(3),u.JRh(A.title),u.R7$(2),u.JRh(A.message),u.R7$(4),u.HbH(A.confirmButtonClass),u.R7$(),u.SpI(" ",A.confirmText," ")}}let p=(()=>{class L{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 u.bkB,this.cancel=new u.bkB}onConfirm(){this.confirm.emit()}onCancel(){this.cancel.emit()}static{this.\u0275fac=function(V){return new(V||L)}}static{this.\u0275cmp=u.VBU({type:L,selectors:[["app-confirm-dialog"]],inputs:{isOpen:"isOpen",title:"title",message:"message",confirmText:"confirmText",confirmButtonClass:"confirmButtonClass"},outputs:{confirm:"confirm",cancel:"cancel"},standalone:!0,features:[u.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(V,c1){1&V&&u.DNE(0,e,11,5,"div",0),2&V&&u.Y8G("ngIf",c1.isOpen)},dependencies:[g.MD,g.bT],encapsulation:2})}}return L})()},8944:(k1,r1,v)=>{"use strict";v.d(r1,{z:()=>S});var u=v(177),g=v(4438),e=v(7473);const p=(A,V,c1)=>({"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":V,"bg-blue-100 text-blue-800":c1});function L(A,V){if(1&A&&(g.j41(0,"div",1),g.EFF(1),g.k0s()),2&A){const c1=V.ngIf;g.Y8G("ngClass",g.sMw(2,p,"success"===c1.type,"error"===c1.type,"info"===c1.type)),g.R7$(),g.SpI(" ",c1.message," ")}}let S=(()=>{class A{constructor(c1){this.notificationService=c1}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,L1){1&K&&(g.DNE(0,L,2,6,"div",0),g.nI1(1,"async")),2&K&&g.Y8G("ngIf",g.bMT(1,1,L1.notificationService.notification$))},dependencies:[u.MD,u.YU,u.bT,u.Jj],encapsulation:2})}}return A})()},6964:(k1,r1,v)=>{"use strict";v.d(r1,{h:()=>A1});var u=v(4438),g=v(177),e=v(9417),p=v(1600),L=v(5558),S=v(7468),A=v(7673),V=v(8508),c1=v(7473),K=v(452),L1=v(7387),j=v(8058),l1=v(2087),m1=v(5586),f1=v(3836);function $1(v1,Z1){1&v1&&(u.j41(0,"div",19),u.nrm(1,"div",20),u.k0s())}function g1(v1,Z1){if(1&v1&&(u.j41(0,"div",21),u.EFF(1),u.k0s()),2&v1){const Z=u.XpG(2);u.R7$(),u.SpI(" ",Z.error," ")}}function H1(v1,Z1){if(1&v1&&(u.j41(0,"div",36)(1,"p",37),u.EFF(2,"Buyer Information"),u.k0s(),u.j41(3,"div",38)(4,"div")(5,"p",39),u.EFF(6,"Buyer:"),u.k0s(),u.j41(7,"p",40),u.EFF(8),u.k0s(),u.j41(9,"p",41),u.EFF(10),u.k0s()(),u.j41(11,"div")(12,"p",39),u.EFF(13,"Buyer Operator:"),u.k0s(),u.j41(14,"p",40),u.EFF(15),u.k0s(),u.j41(16,"p",41),u.EFF(17),u.k0s()()()()),2&v1){const Z=u.XpG(3);u.R7$(8),u.JRh(Z.buyerName),u.R7$(2),u.SpI("VAT ID: ",Z.buyerVatId,""),u.R7$(5),u.JRh(Z.buyerOperatorName),u.R7$(2),u.SpI("VAT ID: ",Z.buyerOperatorVatId,"")}}function r2(v1,Z1){if(1&v1&&(u.j41(0,"div",36)(1,"p",37),u.EFF(2,"Seller Information"),u.k0s(),u.j41(3,"div",38)(4,"div")(5,"p",39),u.EFF(6,"Seller:"),u.k0s(),u.j41(7,"p",40),u.EFF(8),u.k0s(),u.j41(9,"p",41),u.EFF(10),u.k0s()(),u.j41(11,"div")(12,"p",39),u.EFF(13,"Seller Operator:"),u.k0s(),u.j41(14,"p",40),u.EFF(15),u.k0s(),u.j41(16,"p",41),u.EFF(17),u.k0s()()()()),2&v1){const Z=u.XpG(3);u.R7$(8),u.JRh(Z.sellerName),u.R7$(2),u.SpI("VAT ID: ",Z.sellerVatId,""),u.R7$(5),u.JRh(Z.sellerOperatorName),u.R7$(2),u.SpI("VAT ID: ",Z.sellerOperatorVatId,"")}}function c0(v1,Z1){if(1&v1&&(u.j41(0,"div")(1,"p",42),u.EFF(2,"Product:"),u.k0s(),u.j41(3,"p",43),u.EFF(4),u.k0s()()),2&v1){const Z=u.XpG(3);u.R7$(4),u.JRh(Z.productName)}}function s2(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"button",46),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.showExpectedDatePicker=!0)}),u.qSk(),u.j41(1,"svg",47),u.nrm(2,"path",48),u.k0s()()}}function c2(v1,Z1){if(1&v1&&(u.j41(0,"div",38)(1,"div")(2,"p",42),u.EFF(3,"Requested Date:"),u.k0s(),u.j41(4,"p",43),u.EFF(5),u.nI1(6,"date"),u.k0s()(),u.j41(7,"div")(8,"p",42),u.EFF(9,"Expected Date:"),u.k0s(),u.j41(10,"div",44)(11,"p",43),u.EFF(12),u.nI1(13,"date"),u.k0s(),u.DNE(14,s2,3,0,"button",45),u.k0s()()()),2&v1){const Z=u.XpG(3);u.R7$(5),u.SpI(" ",Z.quote.requestedQuoteCompletionDate?u.i5U(6,3,Z.quote.requestedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),u.R7$(7),u.SpI(" ",Z.quote.expectedQuoteCompletionDate?u.i5U(13,6,Z.quote.expectedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),u.R7$(2),u.Y8G("ngIf",Z.canEditExpectedDate())}}function P1(v1,Z1){if(1&v1&&(u.j41(0,"div",38)(1,"div")(2,"p",42),u.EFF(3,"Tender Start Date:"),u.k0s(),u.j41(4,"p",43),u.EFF(5),u.k0s()(),u.j41(6,"div")(7,"p",42),u.EFF(8,"Tender End Date:"),u.k0s(),u.j41(9,"p",43),u.EFF(10),u.k0s()()()),2&v1){const Z=u.XpG(3);u.R7$(5),u.SpI(" ",Z.getTenderStartDate()," "),u.R7$(5),u.SpI(" ",Z.getTenderEndDate()," ")}}function B2(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",51),u.qSk(),u.j41(1,"svg",52),u.nrm(2,"path",53),u.k0s(),u.joV(),u.j41(3,"span",31),u.EFF(4),u.k0s(),u.j41(5,"button",54),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.downloadCoordinatorAttachment())}),u.EFF(6," Download "),u.k0s()()}if(2&v1){const Z=u.XpG(4);u.R7$(4),u.SpI("Customer Request: ",Z.getCoordinatorAttachmentName(),"")}}function o2(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",51),u.qSk(),u.j41(1,"svg",55),u.nrm(2,"path",53),u.k0s(),u.joV(),u.j41(3,"span",31),u.EFF(4),u.k0s(),u.j41(5,"button",54),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.downloadAttachment())}),u.EFF(6," Download "),u.k0s()()}if(2&v1){const Z=u.XpG(4);u.R7$(4),u.JRh(Z.getAttachmentName())}}function C2(v1,Z1){1&v1&&(u.j41(0,"p",62),u.EFF(1,"Uploading..."),u.k0s())}function k2(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",56)(1,"label",57),u.qSk(),u.j41(2,"svg",16),u.nrm(3,"path",58),u.k0s(),u.joV(),u.j41(4,"span"),u.EFF(5,"Upload PDF attachment"),u.k0s(),u.j41(6,"input",59),u.bIt("change",function(O1){u.eBV(Z);const W2=u.XpG(4);return u.Njj(W2.onFileSelected(O1))}),u.k0s()(),u.j41(7,"p",60),u.EFF(8,"Maximum file size: 10MB"),u.k0s(),u.DNE(9,C2,2,0,"p",61),u.k0s()}if(2&v1){const Z=u.XpG(4);u.R7$(9),u.Y8G("ngIf",Z.isUploading)}}function g2(v1,Z1){if(1&v1&&(u.j41(0,"div",29)(1,"p",37),u.EFF(2,"Attachments"),u.k0s(),u.DNE(3,B2,7,1,"div",49)(4,o2,7,1,"div",49)(5,k2,10,1,"div",50),u.k0s()),2&v1){const Z=u.XpG(3);u.R7$(3),u.Y8G("ngIf",Z.hasCoordinatorAttachment()),u.R7$(),u.Y8G("ngIf",Z.hasAttachment()),u.R7$(),u.Y8G("ngIf",Z.canUploadAttachment())}}function K2(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",65)(1,"p",42),u.EFF(2),u.k0s(),u.j41(3,"button",66),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.acceptQuote())}),u.qSk(),u.j41(4,"svg",16),u.nrm(5,"path",67),u.k0s(),u.EFF(6),u.k0s()()}if(2&v1){const Z=u.XpG(4);u.R7$(2),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER?Z.ACTION_TEXTS.ACCEPT_TENDER_INVITE:Z.ACTION_TEXTS.ACCEPT_QUOTE_PROVIDER," "),u.R7$(),u.Y8G("disabled",Z.isProcessing||!Z.canAcceptQuote())("title",Z.getAcceptButtonTooltip()),u.R7$(3),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER?"Accept Invite":"Accept Quote"," ")}}function g4(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",65)(1,"p",42),u.EFF(2),u.k0s(),u.j41(3,"button",68),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.acceptProposal())}),u.qSk(),u.j41(4,"svg",16),u.nrm(5,"path",67),u.k0s(),u.EFF(6," Accept Quote "),u.k0s()()}if(2&v1){const Z=u.XpG(4);u.R7$(2),u.JRh(Z.ACTION_TEXTS.ACCEPT_PROPOSAL_CUSTOMER),u.R7$(),u.Y8G("disabled",Z.isProcessing)}}function F0(v1,Z1){if(1&v1&&(u.j41(0,"div",29)(1,"div",63),u.DNE(2,K2,7,4,"div",64)(3,g4,7,2,"div",64),u.k0s()()),2&v1){const Z=u.XpG(3);u.R7$(2),u.Y8G("ngIf","seller"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.PENDING&&(Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.TENDER||Z.getCoordinatorState()===Z.QUOTE_STATUSES.IN_PROGRESS)),u.R7$(),u.Y8G("ngIf","customer"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.APPROVED&&(Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.TENDER||Z.getCoordinatorState()===Z.QUOTE_STATUSES.ACCEPTED))}}function x4(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",65)(1,"p",42),u.EFF(2,"Send a message to all invited providers in this tender"),u.k0s(),u.j41(3,"button",69),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.openBroadcastMessage())}),u.qSk(),u.j41(4,"svg",16),u.nrm(5,"path",70),u.k0s(),u.EFF(6," Broadcast Message "),u.k0s()()}if(2&v1){const Z=u.XpG(4);u.R7$(3),u.Y8G("disabled",Z.isProcessing)}}function _2(v1,Z1){if(1&v1&&(u.j41(0,"div",29)(1,"div",63),u.DNE(2,x4,7,1,"div",64),u.k0s()()),2&v1){const Z=u.XpG(3);u.R7$(2),u.Y8G("ngIf","customer"===Z.currentUserRole&&Z.getPrimaryState()!==Z.QUOTE_STATUSES.PENDING)}}function D0(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",29)(1,"div",65)(2,"p",42),u.EFF(3),u.k0s(),u.j41(4,"button",71),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(3);return u.Njj(O1.cancelQuote())}),u.qSk(),u.j41(5,"svg",16),u.nrm(6,"path",10),u.k0s(),u.EFF(7),u.k0s()()()}if(2&v1){const Z=u.XpG(3);u.R7$(3),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR?"Cancel this tender and all the related quotes / invites":Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER&&"seller"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.PENDING?Z.ACTION_TEXTS.DECLINE_TENDER_INVITE:Z.ACTION_TEXTS.CANCEL_QUOTE_PROVIDER," "),u.R7$(),u.Y8G("disabled",Z.isProcessing),u.R7$(3),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR?"Cancel Tender":"Cancel Quote"," ")}}function F1(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",29)(1,"div",65)(2,"p",42),u.EFF(3),u.k0s(),u.j41(4,"button",15),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(3);return u.Njj(O1.createOffer())}),u.qSk(),u.j41(5,"svg",16),u.nrm(6,"path",58),u.k0s(),u.EFF(7," Create Offer "),u.k0s()()()}if(2&v1){const Z=u.XpG(3);u.R7$(3),u.JRh(Z.ACTION_TEXTS.CREATE_OFFER)}}function e2(v1,Z1){if(1&v1&&(u.j41(0,"div",22),u.DNE(1,H1,18,4,"div",23)(2,r2,18,4,"div",23)(3,c0,5,1,"div",24),u.j41(4,"div")(5,"p",25),u.EFF(6,"Request:"),u.k0s(),u.j41(7,"div",26)(8,"p",27),u.EFF(9),u.k0s()()(),u.DNE(10,c2,15,9,"div",28)(11,P1,11,2,"div",28),u.j41(12,"div",29)(13,"div",30)(14,"p",31),u.EFF(15,"The quote is in status:"),u.k0s(),u.j41(16,"span",32),u.EFF(17),u.k0s()(),u.j41(18,"p",33),u.EFF(19),u.k0s(),u.j41(20,"p",34),u.EFF(21),u.k0s()(),u.DNE(22,g2,6,3,"div",35)(23,F0,4,2,"div",35)(24,_2,3,1,"div",35)(25,D0,8,3,"div",35)(26,F1,8,1,"div",35),u.k0s()),2&v1){const Z=u.XpG(2);u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TAILORED),u.R7$(6),u.JRh(Z.quote.description||"No message provided"),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TAILORED),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER||Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(5),u.Y8G("ngClass",Z.getStatusBadgeClass()),u.R7$(),u.SpI(" ",Z.getStatusLabel()," "),u.R7$(2),u.JRh(Z.getStatusExplanation()),u.R7$(2),u.JRh(Z.getAvailableActionsText()),u.R7$(),u.Y8G("ngIf",Z.hasAttachment()||Z.canUploadAttachment()||Z.hasCoordinatorAttachment()),u.R7$(),u.Y8G("ngIf",Z.hasActionButtons()&&Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getPrimaryState()!==Z.QUOTE_STATUSES.ACCEPTED&&Z.getPrimaryState()!==Z.QUOTE_STATUSES.CANCELLED),u.R7$(),u.Y8G("ngIf","seller"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.ACCEPTED)}}function h2(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",4),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeModal())}),u.j41(1,"div",5),u.bIt("click",function(O1){return u.eBV(Z),u.Njj(O1.stopPropagation())}),u.j41(2,"div",6)(3,"h2",7),u.EFF(4),u.k0s(),u.j41(5,"button",8),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeModal())}),u.qSk(),u.j41(6,"svg",9),u.nrm(7,"path",10),u.k0s()()(),u.DNE(8,$1,2,0,"div",11)(9,g1,2,1,"div",12)(10,e2,27,15,"div",13),u.joV(),u.j41(11,"div",14)(12,"button",15),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.openChat())}),u.qSk(),u.j41(13,"svg",16),u.nrm(14,"path",17),u.k0s(),u.EFF(15," Chat "),u.k0s(),u.joV(),u.j41(16,"button",18),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeModal())}),u.EFF(17," Close "),u.k0s()()()()}if(2&v1){const Z=u.XpG();u.R7$(4),u.JRh(Z.getModalTitle()),u.R7$(4),u.Y8G("ngIf",Z.isLoading),u.R7$(),u.Y8G("ngIf",Z.error),u.R7$(),u.Y8G("ngIf",!Z.isLoading&&!Z.error&&Z.quote)}}function D1(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",72)(1,"div",73)(2,"h3",74),u.EFF(3,"Set Expected Completion Date"),u.k0s(),u.j41(4,"p",75),u.EFF(5,"Select when you expect to complete this quote:"),u.k0s(),u.j41(6,"input",76),u.mxI("ngModelChange",function(O1){u.eBV(Z);const W2=u.XpG();return u.DH7(W2.selectedExpectedDate,O1)||(W2.selectedExpectedDate=O1),u.Njj(O1)}),u.k0s(),u.j41(7,"div",77)(8,"button",18),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.showExpectedDatePicker=!1)}),u.EFF(9," Cancel "),u.k0s(),u.j41(10,"button",78),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.saveExpectedDate())}),u.EFF(11," Save "),u.k0s()()()()}if(2&v1){const Z=u.XpG();u.R7$(6),u.R50("ngModel",Z.selectedExpectedDate),u.Y8G("min",Z.minDate),u.R7$(4),u.Y8G("disabled",!Z.selectedExpectedDate)}}function j1(v1,Z1){if(1&v1){const Z=u.RV6();u.j41(0,"div",72)(1,"div",79)(2,"h3",74),u.EFF(3,"Broadcast Message"),u.k0s(),u.j41(4,"p",75),u.EFF(5,"This message will be sent to all invited providers in this tender:"),u.k0s(),u.j41(6,"textarea",80),u.mxI("ngModelChange",function(O1){u.eBV(Z);const W2=u.XpG();return u.DH7(W2.broadcastMessage,O1)||(W2.broadcastMessage=O1),u.Njj(O1)}),u.k0s(),u.j41(7,"div",77)(8,"button",18),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeBroadcastModal())}),u.EFF(9," Cancel "),u.k0s(),u.j41(10,"button",78),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.sendBroadcastMessage())}),u.EFF(11),u.k0s()()()()}if(2&v1){const Z=u.XpG();u.R7$(6),u.R50("ngModel",Z.broadcastMessage),u.R7$(4),u.Y8G("disabled",!Z.broadcastMessage||Z.isBroadcastSending),u.R7$(),u.SpI(" ",Z.isBroadcastSending?"Sending...":"Send"," ")}}let A1=(()=>{class v1{constructor(){this.isOpen=!1,this.quoteId=null,this.currentUserRole="customer",this.currentUserId="",this.close=new u.bkB,this.quoteUpdated=new u.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=j.ak,this.QUOTE_CATEGORIES=j.K0,this.QUOTE_STATUSES=j.yz,this.quoteService=(0,u.WQX)(V.K),this.notificationService=(0,u.WQX)(c1.J),this.accountService=(0,u.WQX)(K.O),this.productService=(0,u.WQX)(L1.F),this.router=(0,u.WQX)(p.Ix)}get minDate(){return(new Date).toISOString().split("T")[0]}ngOnInit(){this.isOpen&&this.quoteId&&this.loadQuote(this.quoteId)}ngOnChanges(Z){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(Z){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(Z).subscribe({next:X1=>{this.quote=X1,X1.category===j.K0.TENDER&&X1.externalId?this.quoteService.getQuoteById(X1.externalId).subscribe({next:O1=>{this.coordinatorQuote=O1,console.log("Loaded coordinator quote:",O1),this.isLoading=!1,this.enrichQuoteData()},error:O1=>{console.error("Failed to load coordinator quote:",O1),this.isLoading=!1,this.enrichQuoteData()}}):(this.isLoading=!1,this.enrichQuoteData())},error:X1=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}isOrganizationId(Z){return!!Z&&Z.startsWith("urn:ngsi-ld:organization:")}fetchPartyName(Z,X1,O1="N/A"){Z?this.isOrganizationId(Z)?this.accountService.getOrgInfo(Z).then(W2=>{X1(W2?.tradingName||W2?.name||Z)},()=>{X1(Z)}):X1(Z):X1(O1)}enrichQuoteData(){if(!this.quote)return;const Z=this.quote.relatedParty?.find(p0=>"buyer"===p0.role?.toLowerCase()),X1=this.quote.relatedParty?.find(p0=>"buyeroperator"===p0.role?.toLowerCase()),O1=this.quote.relatedParty?.find(p0=>"seller"===p0.role?.toLowerCase()),W2=this.quote.relatedParty?.find(p0=>"selleroperator"===p0.role?.toLowerCase()),V2=p0=>p0?p0.replace(/^did:elsi:/,""):"N/A";this.buyerVatId=V2(Z?.name),this.buyerOperatorVatId=V2(X1?.name),this.sellerVatId=V2(O1?.name),this.sellerOperatorVatId=V2(W2?.name),this.fetchPartyName(Z?.id,p0=>this.buyerName=p0,"N/A"),this.isOrganizationId(X1?.id)&&this.fetchPartyName(X1?.id,p0=>this.buyerOperatorName=p0,"N/A"),this.fetchPartyName(O1?.id,p0=>this.sellerName=p0,"N/A"),this.isOrganizationId(W2?.id)&&this.fetchPartyName(W2?.id,p0=>this.sellerOperatorName=p0,"N/A");const v0=this.quote.quoteItem?.[0]?.productOffering?.id;if(v0){const p0=this.quote.quoteItem?.[0]?.productOffering?.name;p0?this.productName=p0:this.productService.getProductById(v0).then(g0=>{this.productName=g0?.name||v0},()=>{this.productName=v0})}}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 Z=this.getPrimaryState();if(!this.quote)return Z;let X1;switch(X1=this.getQuoteCategory()===j.K0.COORDINATOR?j.R4:this.getQuoteCategory()===j.K0.TENDER?"customer"===this.currentUserRole?j.kU:j.NT:"customer"===this.currentUserRole?j.D5:j.Wc,Z){case j.yz.PENDING:return X1.PENDING;case j.yz.IN_PROGRESS:return X1.IN_PROGRESS;case j.yz.APPROVED:return X1.APPROVED;case j.yz.ACCEPTED:return X1.ACCEPTED;case j.yz.CANCELLED:return X1.CANCELLED;case j.yz.REJECTED:return X1.REJECTED;default:return Z}}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 Z=this.getPrimaryState();return{[j.yz.PENDING]:"border border-[#F2D28A] bg-[#FFF8E6] text-[#7A4D00]",[j.yz.IN_PROGRESS]:"border border-[#B6CAEC] bg-[#EBF0F7] text-[#1f4fbf]",[j.yz.APPROVED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[j.yz.ACCEPTED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[j.yz.REJECTED]:"border border-[#F4C7C7] bg-[#FFF1F1] text-[#B42318]",[j.yz.CANCELLED]:"border border-[#CBD3DF] bg-[#F2F4F8] text-[#324153]"}[Z]||"border border-[#CBD3DF] bg-[#F2F4F8] text-[#526179]"}getQuoteCategory(){return this.quote?.category||"tailored"}getModalTitle(){return this.getQuoteCategory()===j.K0.COORDINATOR?"Tender Details":"Quote Details"}getStatusExplanation(){const Z=this.getPrimaryState(),X1="customer"===this.currentUserRole?"buyer":"provider",O1=this.getQuoteCategory();let W2;return W2=O1===j.K0.COORDINATOR?j.bJ:O1===j.K0.TENDER?j.L9:j.ZR,W2[Z]?.[X1]?.explanation||"Status information unavailable."}getAvailableActionsText(){const Z=this.getPrimaryState(),X1="customer"===this.currentUserRole?"buyer":"provider",O1=this.getQuoteCategory();let W2;return W2=O1===j.K0.COORDINATOR?j.bJ:O1===j.K0.TENDER?j.L9:j.ZR,W2[Z]?.[X1]?.availableActions||""}isQuoteFinalized(){const Z=this.getPrimaryState();return Z===j.yz.CANCELLED||Z===j.yz.ACCEPTED||Z===j.yz.REJECTED}hasAttachment(){return this.quote?.quoteItem?.some(Z=>Z.attachment&&Z.attachment.length>0)||!1}getAttachmentName(){return this.quote?.quoteItem?.[0]?.attachment?.[0]?.name||"attachment.pdf"}hasCoordinatorAttachment(){return this.getQuoteCategory()===j.K0.TENDER&&(this.coordinatorQuote?.quoteItem?.some(Z=>Z.attachment&&Z.attachment.length>0)||!1)}getCoordinatorAttachmentName(){return this.coordinatorQuote?.quoteItem?.[0]?.attachment?.[0]?.name||"tender-request.pdf"}getTenderStartDate(){if(this.getQuoteCategory()===j.K0.TENDER&&this.coordinatorQuote){const X1=this.coordinatorQuote.expectedFulfillmentStartDate;return X1?new Date(X1).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Z=this.quote?.expectedFulfillmentStartDate;return Z?new Date(Z).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}getTenderEndDate(){if(this.getQuoteCategory()===j.K0.TENDER&&this.coordinatorQuote){const X1=this.coordinatorQuote.effectiveQuoteCompletionDate;return X1?new Date(X1).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Z=this.quote?.effectiveQuoteCompletionDate;return Z?new Date(Z).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}canUploadAttachment(){if("seller"!==this.currentUserRole)return!1;if(this.getQuoteCategory()===j.K0.TENDER)return this.getCoordinatorState()===j.yz.APPROVED;const Z=this.getPrimaryState();return Z===j.yz.IN_PROGRESS||Z===j.yz.APPROVED}canEditExpectedDate(){if("seller"!==this.currentUserRole)return!1;const Z=this.getPrimaryState();return!this.isQuoteFinalized()&&(Z===j.yz.PENDING||Z===j.yz.IN_PROGRESS||Z===j.yz.APPROVED)}canRejectOrCancel(){const Z=this.getPrimaryState();return"seller"===this.currentUserRole&&(Z===j.yz.PENDING||Z===j.yz.IN_PROGRESS)||Z===j.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 Z=this.getPrimaryState();return"seller"===this.currentUserRole&&Z===j.yz.PENDING||"customer"===this.currentUserRole&&Z===j.yz.APPROVED}downloadAttachment(){if(this.quote)try{this.quoteService.downloadAttachment(this.quote),this.notificationService.showSuccess("Download started")}catch(Z){this.notificationService.showError(Z.message||"Error downloading attachment")}}downloadCoordinatorAttachment(){if(this.coordinatorQuote)try{this.quoteService.downloadAttachment(this.coordinatorQuote),this.notificationService.showSuccess("Download started")}catch(Z){this.notificationService.showError(Z.message||"Error downloading customer request")}}onFileSelected(Z){const X1=Z.target;if(!X1.files?.length||!this.quote?.id)return;const O1=X1.files[0];if("application/pdf"!==O1.type)return void this.notificationService.showError("Only PDF files are allowed");if(O1.size>10485760)return void this.notificationService.showError("File size exceeds the maximum limit of 10MB");this.isUploading=!0;const s0=O1.name,V2=this.quote.id;this.quoteService.addAttachmentToQuote(V2,O1).pipe((0,L.n)(v0=>(this.quote=v0,this.quoteService.addNoteToQuote(V2,j.Ft.ATTACHMENT_UPLOADED(s0),this.currentUserId).pipe((0,L.n)(()=>this.getPrimaryState()===j.yz.IN_PROGRESS?this.quoteService.updateQuoteStatus(V2,j.yz.APPROVED).pipe((0,L.n)(p0=>(this.quote=p0,this.quoteService.addNoteToQuote(V2,j.Ft.STATUS_CHANGE(j.yz.APPROVED),this.currentUserId)))):[v0]))))).subscribe({next:()=>{this.isUploading=!1,this.notificationService.showSuccess("Attachment uploaded successfully"),this.getPrimaryState()===j.yz.APPROVED&&this.notificationService.showSuccess("Quote has been approved and sent to customer"),this.quoteUpdated.emit(this.quote)},error:v0=>{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 Z=this.quote.id;this.quoteService.updateQuoteStatus(Z,j.yz.IN_PROGRESS).pipe((0,L.n)(X1=>(this.quote=X1,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(j.yz.IN_PROGRESS),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote request accepted"),this.quoteUpdated.emit(this.quote)},error:X1=>{this.isProcessing=!1,this.notificationService.showError("Failed to accept quote")}}),this.showConfirmDialog=!1},this.showConfirmDialog=!0)}acceptProposal(){!this.quote?.id||this.isProcessing||(this.confirmDialogTitle="Accept Quote Proposal",this.confirmDialogMessage="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 Z=this.quote.id;this.quoteService.updateQuoteStatus(Z,j.yz.ACCEPTED).pipe((0,L.n)(X1=>(this.quote=X1,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(j.yz.ACCEPTED),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote proposal accepted"),this.quoteUpdated.emit(this.quote)},error:X1=>{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 Z=this.getQuoteCategory()===j.K0.COORDINATOR;this.confirmDialogTitle=Z?"Cancel Tender":"Cancel Quote",this.confirmDialogMessage=Z?"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=Z?"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,Z?this.cancelCoordinatorWithCascade():this.cancelSingleQuote(this.quote.id)},this.showConfirmDialog=!0}cancelSingleQuote(Z){const X1=j.yz.CANCELLED;this.quoteService.updateQuoteStatus(Z,X1).pipe((0,L.n)(O1=>(this.quote=O1,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(X1),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 Z=this.quote.id,X1=j.yz.CANCELLED;this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,Z,l1.XZ.BUYER).subscribe({next:O1=>{console.log(`Found ${O1.length} related tendering quotes to cancel`);const W2=O1.map(V2=>this.quoteService.updateQuoteStatus(V2.id,X1));(W2.length>0?(0,S.p)(W2):(0,A.of)([])).pipe((0,L.n)(()=>this.quoteService.updateQuoteStatus(Z,X1)),(0,L.n)(V2=>(this.quote=V2,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(X1),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess(`Tender and ${O1.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 Z=new Date(this.selectedExpectedDate),X1=`${Z.getDate().toString().padStart(2,"0")}-${(Z.getMonth()+1).toString().padStart(2,"0")}-${Z.getFullYear()}`;this.quoteService.updateQuoteDate(this.quote.id,X1,"expected").subscribe({next:O1=>{this.quote=O1,this.showExpectedDatePicker=!1,this.selectedExpectedDate="",this.notificationService.showSuccess("Expected date updated"),this.quoteUpdated.emit(O1)},error:O1=>{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.broadcastMessage(this.quote.id,this.currentUserId,this.broadcastMessage).subscribe({next:()=>{this.notificationService.showSuccess("Message broadcast sent to all invited providers."),this.closeBroadcastModal()},error:Z=>{console.error("Failed to broadcast message:",Z),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(X1){return new(X1||v1)}}static{this.\u0275cmp=u.VBU({type:v1,selectors:[["app-quote-details-modal"]],inputs:{isOpen:"isOpen",quoteId:"quoteId",currentUserRole:"currentUserRole",currentUserId:"currentUserId"},outputs:{close:"close",quoteUpdated:"quoteUpdated"},standalone:!0,features:[u.OA$,u.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"],[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"],["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,"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]"],["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,"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(X1,O1){1&X1&&(u.DNE(0,h2,18,4,"div",0),u.j41(1,"app-chat-modal",1),u.bIt("close",function(){return O1.closeChatModal()}),u.k0s(),u.DNE(2,D1,12,3,"div",2)(3,j1,12,3,"div",2),u.j41(4,"app-confirm-dialog",3),u.bIt("confirm",function(){return O1.confirmDialogCallback&&O1.confirmDialogCallback()})("cancel",function(){return O1.showConfirmDialog=!1}),u.k0s()),2&X1&&(u.Y8G("ngIf",O1.isOpen),u.R7$(),u.Y8G("isOpen",O1.showChatModal)("quoteId",O1.quoteId),u.R7$(),u.Y8G("ngIf",O1.showExpectedDatePicker),u.R7$(),u.Y8G("ngIf",O1.showBroadcastModal),u.R7$(),u.Y8G("isOpen",O1.showConfirmDialog)("title",O1.confirmDialogTitle)("message",O1.confirmDialogMessage)("confirmText",O1.confirmDialogButtonText)("confirmButtonClass",O1.confirmDialogButtonClass))},dependencies:[g.MD,g.YU,g.bT,g.vh,e.YN,e.me,e.BC,e.vS,m1.d,f1.w],encapsulation:2})}}return v1})()},5312:(k1,r1,v)=>{"use strict";v.d(r1,{c:()=>u});const u={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?size=1000",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",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,analytics:"",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}},4622:(k1,r1,v)=>{"use strict";var u=v(345),g=v(1626),e=v(4438),p=v(9417),L=v(177),S=v(1413),A=v(5558),V=v(8750),c1=v(1985),K=v(1397),L1=v(7441),j=v(8071),l1=v(6450);const m1=["addListener","removeListener"],f1=["addEventListener","removeEventListener"],$1=["on","off"];function g1(t,a,c,n){if((0,j.T)(c)&&(n=c,c=void 0),n)return g1(t,a,c).pipe((0,l1.I)(n));const[l,r]=function s2(t){return(0,j.T)(t.addEventListener)&&(0,j.T)(t.removeEventListener)}(t)?f1.map(m=>z=>t[m](a,z,c)):function r2(t){return(0,j.T)(t.addListener)&&(0,j.T)(t.removeListener)}(t)?m1.map(H1(t,a)):function c0(t){return(0,j.T)(t.on)&&(0,j.T)(t.off)}(t)?$1.map(H1(t,a)):[];if(!l&&(0,L1.X)(t))return(0,K.Z)(m=>g1(m,a,c))((0,V.Tg)(t));if(!l)throw new TypeError("Invalid event target");return new c1.c(m=>{const z=(...F)=>m.next(1r(z)})}function H1(t,a){return c=>n=>t[c](a,n)}var c2=v(983),P1=v(6977);const B2=["button"],o2=["*","*"];function C2(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3);e.JRh(c.unified)}}function k2(t,a){if(1&t&&(e.j41(0,"button",4,1)(2,"span",5),e.DNE(3,C2,1,1,"ng-template",2),e.SdG(4),e.k0s()()),2&t){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 g2(t,a){if(1&t&&e.DNE(0,k2,5,8,"button",3),2&t){const c=e.XpG(),n=e.sdS(2);e.Y8G("ngIf",c.useButton)("ngIfElse",n)}}function K2(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2);e.JRh(c.unified)}}function g4(t,a){if(1&t&&(e.j41(0,"span",6,1)(2,"span",5),e.DNE(3,K2,1,1,"ng-template",2),e.SdG(4,1),e.k0s()()),2&t){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 F0=[{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"]}],x4=[{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-${t}@14.0.0/img/${t}/sheets-256/${a}.png`;let h2=(()=>{class t{uncompressed=!1;names={};emojis=[];constructor(){this.uncompressed||(this.uncompress(x4),this.uncompressed=!0)}uncompress(c){this.emojis=c.map(n=>{const l={...n};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 r=c.find(m=>m.unified===l.obsoletes);r&&(l.keywords=r.keywords?[...l.keywords,...r.keywords,r.shortName]:[...l.keywords,r.shortName])}this.names[l.unified]=l;for(const r of l.shortNames)this.names[r]=l;return l})}getData(c,n,l){let r;if("string"==typeof c){const z=c.match(D0);if(z&&(c=z[1],z[2]&&(n=parseInt(z[2],10))),!this.names.hasOwnProperty(c))return null;r=this.names[c]}else c.id?r=this.names[c.id]:c.unified&&(r=this.names[c.unified.toUpperCase()]);if(r||(r=c,r.custom=!0),r.skinVariations&&r.skinVariations.length&&n&&n>1&&l){r={...r};const z=F1[n-1],F=r.skinVariations.find(I=>I.unified.includes(z));(!F.hidden||!F.hidden.includes(l))&&(r.skinTone=n,r={...r,...F}),r.native=this.unifiedToNative(r.unified)}return r.set=l||"",r}unifiedToNative(c){const n=c.split("-").map(l=>parseInt(`0x${l}`,16));return String.fromCodePoint(...n)}emojiSpriteStyles(c,n="apple",l=24,r=64,m=60,z=e2,F=61,I){const J=!!I;return{width:`${l}px`,height:`${l}px`,display:"inline-block","background-image":`url(${I=I||z(n,r)})`,"background-size":J?"100% 100%":`${100*F}% ${100*m}%`,"background-position":J?void 0:this.getSpritePosition(c,F)}}getSpritePosition(c,n){const[l,r]=c,m=100/(n-1);return`${m*l}% ${m*r}%`}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,n,l){return this.sanitize(this.getData(c,n,l))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),D1=(()=>{class t{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)(h2);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=n=>this.button$.pipe((0,A.n)(l=>l?g1(l,n):c2.w),(0,P1.Q)(this.destroy$));c("click").subscribe(n=>{const l=this.getSanitizedData();this.emojiClickOutsideAngular.emit({emoji:l,$event:n}),this.emojiClick.observed&&this.ngZone.run(()=>this.emojiClick.emit({emoji:l,$event:n}))}),c("mouseenter").subscribe(n=>{const l=this.getSanitizedData();this.emojiOverOutsideAngular.emit({emoji:l,$event:n}),this.emojiOver.observed&&this.ngZone.run(()=>this.emojiOver.emit({emoji:l,$event:n}))}),c("mouseleave").subscribe(n=>{const l=this.getSanitizedData();this.emojiLeaveOutsideAngular.emit({emoji:l,$event:n}),this.emojiLeave.observed&&this.ngZone.run(()=>this.emojiLeave.emit({emoji:l,$event:n}))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=e.VBU({type:t,selectors:[["ngx-emoji"]],viewQuery:function(n,l){if(1&n&&e.GBs(B2,5),2&n){let r;e.mGM(r=e.lsd())&&(l.button=r.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:o2,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(n,l){1&n&&(e.NAR(o2),e.DNE(0,g2,1,2,"ng-template",2)(1,g4,5,8,"ng-template",null,0,e.C5r)),2&n&&e.Y8G("ngIf",l.isVisible)},dependencies:[L.MD,L.bT,L.B3],encapsulation:2,changeDetection:0})}return t})();function A1(t,a){if(1&t){const c=e.RV6();e.j41(0,"span",3),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().index,m=e.XpG();return e.Njj(m.handleClick(l,r))}),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&t){const c=e.XpG().$implicit,n=e.XpG();e.xc7("color",c.name===n.selected?n.color:null),e.AVh("emoji-mart-anchor-selected",c.name===n.selected),e.BMQ("title",n.i18n.categories[c.id]),e.R7$(3),e.BMQ("d",n.icons[c.id]),e.R7$(),e.xc7("background-color",n.color)}}function v1(t,a){1&t&&e.DNE(0,A1,5,8,"span",2),2&t&&e.Y8G("ngIf",!1!==a.$implicit.anchor)}const Z1=["container"],Z=["label"];function X1(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("emoji",c)("size",n.emojiSize)("skin",n.emojiSkin)("isNative",n.emojiIsNative)("set",n.emojiSet)("sheetSize",n.emojiSheetSize)("forceSize",n.emojiForceSize)("tooltip",n.emojiTooltip)("backgroundImageFn",n.emojiBackgroundImageFn)("imageUrlFn",n.emojiImageUrlFn)("hideObsolete",n.hideObsolete)("useButton",n.emojiUseButton)}}function O1(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,X1,1,12,"ngx-emoji",8),e.k0s()),2&t){const c=a.ngIf,n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c)("ngForTrackBy",n.trackById)}}function W2(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,O1,2,2,"div",7),e.nI1(2,"async"),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,c.filteredEmojis$))}}function s0(t,a){if(1&t&&(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&t){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 V2(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("emoji",c)("size",n.emojiSize)("skin",n.emojiSkin)("isNative",n.emojiIsNative)("set",n.emojiSet)("sheetSize",n.emojiSheetSize)("forceSize",n.emojiForceSize)("tooltip",n.emojiTooltip)("backgroundImageFn",n.emojiBackgroundImageFn)("imageUrlFn",n.emojiImageUrlFn)("hideObsolete",n.hideObsolete)("useButton",n.emojiUseButton)}}function v0(t,a){if(1&t&&e.DNE(0,V2,1,12,"ngx-emoji",8),2&t){const c=e.XpG();e.Y8G("ngForOf",c.emojisToDisplay)("ngForTrackBy",c.trackById)}}function p0(t,a){if(1&t){const c=e.RV6();e.j41(0,"span",2)(1,"span",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.handleClick(l))})("keyup.enter",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.handleClick(l))})("keyup.space",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.handleClick(l))}),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG();e.AVh("selected",c===n.skin),e.R7$(),e.ZvI("emoji-mart-skin emoji-mart-skin-tone-",c,""),e.Y8G("tabIndex",n.tabIndex(c)),e.BMQ("aria-hidden",!n.isVisible(c))("aria-pressed",n.pressed(c))("aria-haspopup",!!n.isSelected(c))("aria-expanded",n.expanded(c))("aria-label",n.i18n.skintones[c])("title",n.i18n.skintones[c])}}function g0(t,a){if(1&t&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" :",c,": ")}}function Y0(t,a){if(1&t&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function _4(t,a){if(1&t&&(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,g0,2,1,"span",12),e.k0s(),e.j41(8,"div",13),e.DNE(9,Y0,2,1,"span",14),e.k0s()()()),2&t){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(t,a){if(1&t&&e.nrm(0,"ngx-emoji",16),2&t){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"],L4=["scrollRef"];function H3(t,a){if(1&t){const c=e.RV6();e.j41(0,"emoji-search",8),e.bIt("searchResults",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleSearch(l))})("enterKeyOutsideAngular",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleEnterKey(l))}),e.k0s()}if(2&t){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 X4(t,a){if(1&t){const c=e.RV6();e.j41(0,"emoji-category",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleEmojiOver(l))})("emojiLeaveOutsideAngular",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.handleEmojiLeave())})("emojiClickOutsideAngular",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleEmojiClick(l))}),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG();e.Y8G("id",c.id)("name",c.name)("emojis",c.emojis)("perLine",n.perLine)("totalFrequentLines",n.totalFrequentLines)("hasStickyPosition",n.isNative)("i18n",n.i18n)("hideObsolete",n.hideObsolete)("notFoundEmoji",n.notFoundEmoji)("custom",c.id===n.RECENT_CATEGORY.id?n.CUSTOM_CATEGORY.emojis:void 0)("recent",c.id===n.RECENT_CATEGORY.id?n.recent:void 0)("virtualize",n.virtualize)("virtualizeOffset",n.virtualizeOffset)("emojiIsNative",n.isNative)("emojiSkin",n.skin)("emojiSize",n.emojiSize)("emojiSet",n.set)("emojiSheetSize",n.sheetSize)("emojiForceSize",n.isNative)("emojiTooltip",n.emojiTooltip)("emojiBackgroundImageFn",n.backgroundImageFn)("emojiImageUrlFn",n.imageUrlFn)("emojiUseButton",n.useButton)}}function J6(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",2)(1,"emoji-preview",10),e.bIt("skinChange",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleSkinChange(l))}),e.k0s()()}if(2&t){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 H4=(()=>{class t{categories=[];color;selected;i18n;icons={};anchorClick=new e.bkB;trackByFn(c,n){return n.id}handleClick(c,n){this.anchorClick.emit({category:this.categories[n],index:n})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,v1,1,1,"ng-template",1),e.k0s()),2&n&&(e.R7$(),e.Y8G("ngForOf",l.categories)("ngForTrackBy",l.trackByFn))},dependencies:[L.MD,L.Sq,L.bT],encapsulation:2,changeDetection:0})}return t})(),t0=(()=>{class t{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,L.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,L.UE)(this.platformId)&&(localStorage.setItem(`${this.NAMESPACE}.last`,c.id),localStorage.setItem(`${this.NAMESPACE}.frequently`,JSON.stringify(this.frequently)))}get(c,n){if(this.initialized||this.init(),null===this.frequently){this.defaults={};const I=[];for(let J=0;Jthis.frequently[I]-this.frequently[J]).reverse().slice(0,l),F=(0,L.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.last`);return F&&!z.includes(F)&&(z.pop(),z.push(F)),z}static \u0275fac=function(n){return new(n||t)(e.KVO(e.Agw))};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),o0=(()=>{class t{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,n,l){this.ref=c,this.emojiService=n,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(),n=Math.floor(c/(this.emojiSize+12));this.rows=Math.ceil(this.emojisToDisplay.length/n),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:n,height:l}=this.container.nativeElement.getBoundingClientRect(),r=c.getBoundingClientRect().top,m=this.label.nativeElement.getBoundingClientRect().height;this.top=n-r+c.scrollTop,this.maxMargin=0===l?0:l-m}handleScroll(c){let n=c-this.top;if(n=nthis.maxMargin?this.maxMargin:n,this.virtualize){const{top:l,height:r}=this.container.nativeElement.getBoundingClientRect(),m=this.container.nativeElement.parentNode.parentNode.clientHeight;this.filteredEmojisSubject.next(m+(m+this.virtualizeOffset)>=l&&-r-(m+this.virtualizeOffset)<=l?this.emojisToDisplay:[])}return n===this.margin?(this.ref.detectChanges(),!1):(this.hasStickyPosition||(this.label.nativeElement.style.top=`${n}px`),this.margin=n,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(n=>this.custom.filter(r=>r.id===n)[0]||n).filter(n=>!!this.emojiService.getData(n)))}updateDisplay(c){this.containerStyles.display=c,this.updateRecentEmojis(),this.ref.detectChanges()}trackById(c,n){return n}filterEmojis(){const c=[];for(const n of this.emojis||[]){if(!n)continue;const l=this.emojiService.getData(n);!l||l.obsoletedBy&&this.hideObsolete||!l.unified&&!l.custom||c.push(n)}return c}static \u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(h2),e.rXU(t0))};static \u0275cmp=e.VBU({type:t,selectors:[["emoji-category"]],viewQuery:function(n,l){if(1&n&&(e.GBs(Z1,7),e.GBs(Z,7)),2&n){let r;e.mGM(r=e.lsd())&&(l.container=r.first),e.mGM(r=e.lsd())&&(l.label=r.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(n,l){if(1&n&&(e.j41(0,"section",3,0)(2,"div",4)(3,"span",5,1),e.EFF(5),e.k0s()(),e.DNE(6,W2,3,3,"div",6)(7,s0,5,11,"div",7),e.k0s(),e.DNE(8,v0,1,2,"ng-template",null,2,e.C5r)),2&n){const r=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",r),e.R7$(),e.Y8G("ngIf",l.noEmojiToDisplay)}},dependencies:[L.MD,L.Sq,L.bT,L.B3,L.Jj,D1],encapsulation:2,changeDetection:0})}return t})();function K4(t){return t.reduce((a,c)=>(a.includes(c)||a.push(c),a),[])}function $4(t,a){const c=K4(t),n=K4(a);return c.filter(l=>n.indexOf(l)>=0)}let U0=(()=>{class t{emojiService;originalPool={};index={};emojisList={};emoticonsList={};emojiSearch={};constructor(c){this.emojiService=c;for(const n of this.emojiService.emojis){const{shortNames:l,emoticons:r}=n,m=l[0];for(const z of r)this.emoticonsList[z]||(this.emoticonsList[z]=m);this.emojisList[m]=this.emojiService.getSanitizedData(m),this.originalPool[m]=n}}addCustomToPool(c,n){for(const l of c){const r=l.id||l.shortNames[0];r&&!n[r]&&(n[r]=this.emojiService.getData(l),this.emojisList[r]=this.emojiService.getSanitizedData(l))}}search(c,n,l=75,r=[],m=[],z=[]){this.addCustomToPool(z,this.originalPool);let F,I=this.originalPool;if(c.length){if("-"===c||"-1"===c)return[this.emojisList[-1]];if("+"===c||"+1"===c)return[this.emojisList["+1"]];let J=c.toLowerCase().split(/[\s|,|\-|_]+/),d1=[];if(J.length>2&&(J=[J[0],J[1]]),r.length||m.length){I={};for(const i1 of F0||[]){const N1=!r||!r.length||r.indexOf(i1.id)>-1,J1=!(!m||!m.length)&&m.indexOf(i1.id)>-1;if(N1&&!J1)for(const u2 of i1.emojis||[]){const v2=this.emojiService.getData(u2);I[v2?.id??""]=v2}}if(z.length){const i1=!r||!r.length||r.indexOf("custom")>-1,N1=!(!m||!m.length)&&m.indexOf("custom")>-1;i1&&!N1&&this.addCustomToPool(z,I)}}d1=J.map(i1=>{let N1=I,J1=this.index,u2=0;for(let v2=0;v2E0[d4.id]-E0[V0.id])}N1=J1.pool}return J1.results}).filter(i1=>i1),F=d1.length>1?$4.apply(null,d1):d1.length?d1[0]:[]}return F&&(n&&(F=F.filter(J=>!(!J||!J.id)&&n(this.emojiService.names[J.id]))),F&&F.length>l&&(F=F.slice(0,l))),F||null}buildSearch(c,n,l,r,m){const z=[],F=(I,J)=>{if(!I)return;const d1=Array.isArray(I)?I:[I];for(const i1 of d1){const N1=J?i1.split(/[-|_|\s]+/):[i1];for(let J1 of N1)J1=J1.toLowerCase(),z.includes(J1)||z.push(J1)}};return F(c,!0),F(n,!0),F(l,!0),F(r,!0),F(m,!1),z.join(",")}static \u0275fac=function(n){return new(n||t)(e.KVO(h2))};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),f4=(()=>{class t{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(n){return new(n||t)};static \u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"section",0),e.DNE(1,p0,2,12,"span",1),e.k0s()),2&n&&(e.AVh("opened",l.opened),e.R7$(),e.Y8G("ngForOf",l.skinTones))},dependencies:[L.MD,L.Sq],encapsulation:2,changeDetection:0})}return t})(),y3=(()=>{class t{ref;emojiService;title;emoji;idleEmoji;i18n;emojiIsNative;emojiSkin;emojiSize;emojiSet;emojiSheetSize;emojiBackgroundImageFn;emojiImageUrlFn;skinChange=new e.bkB;emojiData={};listedEmoticons;constructor(c,n){this.ref=c,this.emojiService=n}ngOnChanges(){if(!this.emoji)return;this.emojiData=this.emojiService.getData(this.emoji,this.emojiSkin,this.emojiSet);const c=[],n=[];(this.emojiData.emoticons||[]).forEach(r=>{c.indexOf(r.toLowerCase())>=0||(c.push(r.toLowerCase()),n.push(r))}),this.listedEmoticons=n,this.ref?.detectChanges()}static \u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(h2))};static \u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.DNE(0,_4,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(m){return l.skinChange.emit(m)}),e.k0s()()()),2&n&&(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:[L.MD,L.Sq,L.bT,D1,f4],encapsulation:2,changeDetection:0})}return t})(),n0=0,e3=(()=>{class t{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-"+ ++n0;destroy$=new S.B;constructor(c,n){this.ngZone=c,this.emojiSearch=n}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 n=this.emojiSearch.search(this.query,this.emojisToShowFilter,this.maxResults,this.include,this.exclude,this.custom);this.searchResults.emit(n)}handleChange(){this.handleSearch(this.query)}setupKeyupListener(){this.ngZone.runOutsideAngular(()=>g1(this.inputRef.nativeElement,"keyup").pipe((0,P1.Q)(this.destroy$)).subscribe(c=>{!this.query||"Enter"!==c.key||(this.enterKeyOutsideAngular.emit(c),c.preventDefault())}))}static \u0275fac=function(n){return new(n||t)(e.rXU(e.SKi),e.rXU(U0))};static \u0275cmp=e.VBU({type:t,selectors:[["emoji-search"]],viewQuery:function(n,l){if(1&n&&e.GBs(n4,7),2&n){let r;e.mGM(r=e.lsd())&&(l.inputRef=r.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(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.mxI("ngModelChange",function(z){return e.eBV(r),e.DH7(l.query,z)||(l.query=z),e.Njj(z)}),e.bIt("ngModelChange",function(){return e.eBV(r),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(r),e.Njj(l.clear())})("keyup.enter",function(){return e.eBV(r),e.Njj(l.clear())}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path"),e.k0s()()()}2&n&&(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 t})();const f0={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"},x0={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"},h3={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 t{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=f0;searchIcons=x0;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,n)=>`https://cdn.jsdelivr.net/npm/emoji-datasource-${c}@14.0.0/img/${c}/sheets-256/${n}.png`;constructor(c,n,l,r,m){this.ngZone=c,this.renderer=n,this.ref=l,this.frequently=r,this.platformId=m}ngOnInit(){this.measureScrollbar=function _0(){if(typeof document>"u")return 0;const t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const a=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),a}(),this.i18n={...h3,...this.i18n},this.i18n.categories={...h3.categories,...this.i18n.categories},this.skin=JSON.parse((0,L.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.skin`)||"null")||this.skin;const c=[...F0];this.custom.length>0&&(this.CUSTOM_CATEGORY.emojis=this.custom.map(z=>({...z,id:z.shortNames[0],custom:!0})),c.push(this.CUSTOM_CATEGORY)),void 0!==this.include&&c.sort((z,F)=>this.include.indexOf(z.id)>this.include.indexOf(F.id)?1:-1);for(const z of c){const F=!this.include||!this.include.length||this.include.indexOf(z.id)>-1,I=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(z.id)>-1;if(F&&!I){if(this.emojisToShowFilter){const J=[],{emojis:d1}=z;for(let i1=0;i1-1,l=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(this.RECENT_CATEGORY.id)>-1;n&&!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(z=>z.first)[0].name;const r=Math.min(this.categories.length,3);this.setActiveCategories(this.activeCategories=this.categories.slice(0,r));const m=this.categories[r-1].emojis.slice();this.categories[r-1].emojis=m.slice(0,60),setTimeout(()=>{this.categories[r-1].emojis=m,this.setActiveCategories(this.categories),this.ref.detectChanges(),(0,L.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(n=>n.name===this.selected||n===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 n=this.categoryRefs.find(l=>l.id===c.category.id);if(n){let{top:l}=n;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:m})=>m===l.id)?.handleScroll(this.scrollRef.nativeElement.scrollTop)}categoryTrack(c,n){return n.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 n;if(this.SEARCH_CATEGORY.emojis)n=this.SEARCH_CATEGORY;else{const l=this.scrollRef.nativeElement;if(0===l.scrollTop)n=this.categories.find(r=>!0===r.first);else if(l.scrollHeight-l.scrollTop===this.clientHeight)n=this.categories[this.categories.length-1];else for(const r of this.categories)this.categoryRefs.find(({id:F})=>F===r.id)?.handleScroll(l.scrollTop)&&(n=r);this.scrollTop=l.scrollTop}!c&&n&&n.name!==this.selected?(this.selected=n.name,this.ref.detectChanges()):c&&this.ref.detectChanges()}handleSearch(c){this.SEARCH_CATEGORY.emojis=c;for(const n of this.categoryRefs.toArray())"Search"===n.name?(n.emojis=c,n.updateDisplay(c?"block":"none")):n.updateDisplay(c?"none":"block");this.scrollRef.nativeElement.scrollTop=0,this.handleScroll()}handleEnterKey(c,n){if(!n&&null!==this.SEARCH_CATEGORY.emojis&&this.SEARCH_CATEGORY.emojis.length){if(!(n=this.SEARCH_CATEGORY.emojis[0]))return;v4(this.emojiSelect,this.ngZone,{$event:c,emoji:n})}!this.hideRecent&&!this.recent&&n&&this.frequently.add(n);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 n=this.CUSTOM_CATEGORY.emojis.find(l=>l.id===c.emoji.id);n&&(c.emoji={...n}),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(n){return new(n||t)(e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(t0),e.rXU(e.Agw))};static \u0275cmp=e.VBU({type:t,selectors:[["emoji-mart"]],viewQuery:function(n,l){if(1&n&&(e.GBs(L4,7),e.GBs(y3,5),e.GBs(e3,5),e.GBs(o0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.scrollRef=r.first),e.mGM(r=e.lsd())&&(l.previewRef=r.first),e.mGM(r=e.lsd())&&(l.searchRef=r.first),e.mGM(r=e.lsd())&&(l.categoryRefs=r)}},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(n,l){if(1&n){const r=e.RV6();e.j41(0,"section",1)(1,"div",2)(2,"emoji-mart-anchors",3),e.bIt("anchorClick",function(z){return e.eBV(r),e.Njj(l.handleAnchorClick(z))}),e.k0s()(),e.DNE(3,H3,1,7,"emoji-search",4),e.j41(4,"section",5,0),e.DNE(6,X4,1,23,"emoji-category",6),e.k0s(),e.DNE(7,J6,2,11,"div",7),e.k0s()}2&n&&(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:[L.MD,L.Sq,L.bT,L.B3,H4,e3,y3,o0],encapsulation:2,changeDetection:0})}return t})();function v4(t,a,c){t.observed&&a.run(()=>t.emit(c))}var J2=v(60),s1=v(3955),M1=v(8359);class u1 extends M1.yU{constructor(a,c){super()}schedule(a,c=0){return this}}const E1={setInterval(t,a,...c){const{delegate:n}=E1;return n?.setInterval?n.setInterval(t,a,...c):setInterval(t,a,...c)},clearInterval(t){const{delegate:a}=E1;return(a?.clearInterval||clearInterval)(t)},delegate:void 0};var K1=v(7908),M2=v(6129);class R0{constructor(a,c=R0.now){this.schedulerActionCtor=a,this.now=c}schedule(a,c=0,n){return new this.schedulerActionCtor(this,a).schedule(n,c)}}R0.now=M2.U.now;const l4=new class r0 extends R0{constructor(a,c=R0.now){super(a,c),this.actions=[],this._active=!1}flush(a){const{actions:c}=this;if(this._active)return void c.push(a);let n;this._active=!0;do{if(n=a.execute(a.state,a.delay))break}while(a=c.shift());if(this._active=!1,n){for(;a=c.shift();)a.unsubscribe();throw n}}}(class z2 extends u1{constructor(a,c){super(a,c),this.scheduler=a,this.work=c,this.pending=!1}schedule(a,c=0){var n;if(this.closed)return this;this.state=a;const l=this.id,r=this.scheduler;return null!=l&&(this.id=this.recycleAsyncId(r,l,c)),this.pending=!0,this.delay=c,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,c),this}requestAsyncId(a,c,n=0){return E1.setInterval(a.flush.bind(a,this),n)}recycleAsyncId(a,c,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return c;null!=c&&E1.clearInterval(c)}execute(a,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(a,c);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,c){let l,n=!1;try{this.work(a)}catch(r){n=!0,l=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),l}unsubscribe(){if(!this.closed){const{id:a,scheduler:c}=this,{actions:n}=c;this.work=this.state=this.scheduler=null,this.pending=!1,(0,K1.o)(n,this),null!=a&&(this.id=this.recycleAsyncId(c,a,null)),this.delay=null,super.unsubscribe()}}}),R3=l4;var C4=v(9470);function b4(t=0,a,c=R3){let n=-1;return null!=a&&((0,C4.m)(a)?c=a:n=a),new c1.c(l=>{let r=function p4(t){return t instanceof Date&&!isNaN(t)}(t)?+t-c.now():t;r<0&&(r=0);let m=0;return c.schedule(function(){l.closed||(l.next(m++),0<=n?this.schedule(void 0,n):l.complete())},r)})}const R2=["fileSelector"],L0=t=>({openFileSelector:t});function P2(t,a){if(1&t&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.dropZoneLabel)}}function I4(t,a){if(1&t){const c=e.RV6();e.j41(0,"div")(1,"input",9),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.openFileSelector(l))}),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(),e.FS9("value",c.browseBtnLabel),e.Y8G("className",c.browseBtnClassName)}}function s4(t,a){if(1&t&&e.DNE(0,P2,2,1,"div",6)(1,I4,2,2,"div",7),2&t){const c=e.XpG();e.Y8G("ngIf",c.dropZoneLabel),e.R7$(),e.Y8G("ngIf",c.showBrowseBtn)}}function b6(t,a){}class i6{constructor(a,c){this.relativePath=a,this.fileEntry=c}}let j4=(()=>{class t{constructor(c){this.template=c}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]})}}return t})(),b0=(()=>{class t{get disabled(){return this._disabled}set disabled(c){this._disabled=null!=c&&"false"!=`${c}`}constructor(c,n){this.zone=c,this.renderer=n,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 n;n=c.dataTransfer.items?c.dataTransfer.items:c.dataTransfer.files,this.preventAndStop(c),this.checkFiles(n)}}uploadFiles(c){!this.isDropzoneDisabled()&&c.target&&(this.checkFiles(c.target.files||[]),this.resetFileInput())}getFakeDropEntry(c){const n={name:c.name,isDirectory:!1,isFile:!0,file:l=>l(c)};return new i6(n.name,n)}checkFile(c){if(c){if("webkitGetAsEntry"in c){let n=c.webkitGetAsEntry();if(n){if(n.isFile){const l=new i6(n.name,n);this.addToQueue(l)}else n.isDirectory&&this.traverseFileTree(n,n.name);return}}this.addToQueue(this.getFakeDropEntry(c))}}checkFiles(c){for(let n=0;n{if(this.files.length>0&&0===this.numOfActiveReadEntries){const n=this.files;this.files=[],this.onFileDrop.emit(n)}})}traverseFileTree(c,n){if(c.isFile){const l=new i6(n,c);this.files.push(l)}else{n+="/";const l=c.createReader();let r=[];const m=()=>{this.numOfActiveReadEntries++,l.readEntries(z=>{if(z.length)r=r.concat(z),m();else if(0===r.length){const F=new i6(n,c);this.zone.run(()=>{this.addToQueue(F)})}else for(let F=0;F{this.traverseFileTree(r[F],n+r[F].name)});this.numOfActiveReadEntries--})};m()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const c=this.fileSelector.nativeElement,n=c.parentElement,l=this.getHelperFormElement(),r=this.getFileInputPlaceholderElement();n!==l&&(this.renderer.insertBefore(n,r,c),this.renderer.appendChild(l,c),l.reset(),this.renderer.insertBefore(n,c,r),this.renderer.removeChild(n,r))}}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(n){return new(n||t)(e.rXU(e.SKi),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(n,l,r){if(1&n&&e.wni(r,j4,5,e.C4Q),2&n){let m;e.mGM(m=e.lsd())&&(l.contentTemplate=m.first)}},viewQuery:function(n,l){if(1&n&&e.GBs(R2,7),2&n){let r;e.mGM(r=e.lsd())&&(l.fileSelector=r.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(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",2),e.bIt("drop",function(z){return e.eBV(r),e.Njj(l.dropFiles(z))})("dragover",function(z){return e.eBV(r),e.Njj(l.onDragOver(z))})("dragenter",function(z){return e.eBV(r),e.Njj(l.onDragEnter(z))})("dragleave",function(z){return e.eBV(r),e.Njj(l.onDragLeave(z))}),e.j41(1,"div",3)(2,"input",4,0),e.bIt("change",function(z){return e.eBV(r),e.Njj(l.uploadFiles(z))}),e.k0s(),e.DNE(4,s4,2,2,"ng-template",null,1,e.C5r)(6,b6,0,0,"ng-template",5),e.k0s()()}if(2&n){const r=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||r)("ngTemplateOutletContext",e.eq3(13,L0,l.openFileSelector))}},dependencies:[L.bT,L.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 t})(),G3=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t,bootstrap:[b0]})}static{this.\u0275inj=e.G2t({imports:[L.MD]})}}return t})();var b1=v(467),g3=v(6365),_3=v(9326),A3=v(6648);var F3=v(7673),a1=v(3703),x1=v(3669),y1=v(9974),W1=v(4360);function Y1(t,a=x1.D){return t=t??d2,(0,y1.N)((c,n)=>{let l,r=!0;c.subscribe((0,W1._)(n,m=>{const z=a(m);(r||!t(l,z))&&(r=!1,l=z,n.next(m))}))})}function d2(t,a){return t===a}var f2=v(253),C0=v(9172),$2=v(6354);v(1594);let a0={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function t4(t){a0=t}const z4=/[&<>"']/,c4=new RegExp(z4.source,"g"),A0=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,I0=new RegExp(A0.source,"g"),y4={"&":"&","<":"<",">":">",'"':""","'":"'"},P4=t=>y4[t];function q0(t,a){if(a){if(z4.test(t))return t.replace(c4,P4)}else if(A0.test(t))return t.replace(I0,P4);return t}const G4=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,O4=/(^|[^\[])\^/g;function y2(t,a){t="string"==typeof t?t:t.source,a=a||"";const c={replace:(n,l)=>(l=(l="object"==typeof l&&"source"in l?l.source:l).replace(O4,"$1"),t=t.replace(n,l),c),getRegex:()=>new RegExp(t,a)};return c}function P0(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const P6={exec:()=>null};function i3(t,a){const n=t.replace(/\|/g,(r,m,z)=>{let F=!1,I=m;for(;--I>=0&&"\\"===z[I];)F=!F;return F?"|":" |"}).split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),a)if(n.length>a)n.splice(a);else for(;n.length0)return{type:"space",raw:c[0]}}code(a){const c=this.rules.block.code.exec(a);if(c){const n=c[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:c[0],codeBlockStyle:"indented",text:this.options.pedantic?n:q3(n,"\n")}}}fences(a){const c=this.rules.block.fences.exec(a);if(c){const n=c[0],l=function y6(t,a){const c=t.match(/^(\s+)(?:```)/);if(null===c)return a;const n=c[1];return a.split("\n").map(l=>{const r=l.match(/^\s+/);if(null===r)return l;const[m]=r;return m.length>=n.length?l.slice(n.length):l}).join("\n")}(n,c[3]||"");return{type:"code",raw:n,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 n=c[2].trim();if(/#$/.test(n)){const l=q3(n,"#");(this.options.pedantic||!l||/ $/.test(l))&&(n=l.trim())}return{type:"heading",raw:c[0],depth:c[1].length,text:n,tokens:this.lexer.inline(n)}}}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 n=q3(c[0].replace(/^ *>[ \t]?/gm,""),"\n"),l=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(n);return this.lexer.state.top=l,{type:"blockquote",raw:c[0],tokens:r,text:n}}}list(a){let c=this.rules.block.list.exec(a);if(c){let n=c[1].trim();const l=n.length>1,r={type:"list",raw:"",ordered:l,start:l?+n.slice(0,-1):"",loose:!1,items:[]};n=l?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=l?n:"[*+-]");const m=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let z="",F="",I=!1;for(;a;){let J=!1;if(!(c=m.exec(a))||this.rules.block.hr.test(a))break;z=c[0],a=a.substring(z.length);let d1=c[2].split("\n",1)[0].replace(/^\t+/,G2=>" ".repeat(3*G2.length)),i1=a.split("\n",1)[0],N1=0;this.options.pedantic?(N1=2,F=d1.trimStart()):(N1=c[2].search(/[^ ]/),N1=N1>4?1:N1,F=d1.slice(N1),N1+=c[1].length);let J1=!1;if(!d1&&/^ *$/.test(i1)&&(z+=i1+"\n",a=a.substring(i1.length+1),J=!0),!J){const G2=new RegExp(`^ {0,${Math.min(3,N1-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),E0=new RegExp(`^ {0,${Math.min(3,N1-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),d4=new RegExp(`^ {0,${Math.min(3,N1-1)}}(?:\`\`\`|~~~)`),V0=new RegExp(`^ {0,${Math.min(3,N1-1)}}#`);for(;a;){const e4=a.split("\n",1)[0];if(i1=e4,this.options.pedantic&&(i1=i1.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),d4.test(i1)||V0.test(i1)||G2.test(i1)||E0.test(a))break;if(i1.search(/[^ ]/)>=N1||!i1.trim())F+="\n"+i1.slice(N1);else{if(J1||d1.search(/[^ ]/)>=4||d4.test(d1)||V0.test(d1)||E0.test(d1))break;F+="\n"+i1}!J1&&!i1.trim()&&(J1=!0),z+=e4+"\n",a=a.substring(e4.length+1),d1=i1.slice(N1)}}r.loose||(I?r.loose=!0:/\n *\n *$/.test(z)&&(I=!0));let v2,u2=null;this.options.gfm&&(u2=/^\[[ xX]\] /.exec(F),u2&&(v2="[ ] "!==u2[0],F=F.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:z,task:!!u2,checked:v2,loose:!1,text:F,tokens:[]}),r.raw+=z}r.items[r.items.length-1].raw=z.trimEnd(),r.items[r.items.length-1].text=F.trimEnd(),r.raw=r.raw.trimEnd();for(let J=0;J"space"===N1.type),i1=d1.length>0&&d1.some(N1=>/\n.*\n/.test(N1.raw));r.loose=i1}if(r.loose)for(let J=0;J$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline._escapes,"$1"):c[3];return{type:"def",tag:n,raw:c[0],href:l,title:r}}}table(a){const c=this.rules.block.table.exec(a);if(c){if(!/[:|]/.test(c[2]))return;const n={type:"table",raw:c[0],header:i3(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(n.header.length===n.align.length){let r,m,z,F,l=n.align.length;for(r=0;r({text:I,tokens:[]}));for(l=n.header.length,m=0;m/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 n=c[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const m=q3(n.slice(0,-1),"\\");if((n.length-m.length)%2==0)return}else{const m=function N8(t,a){if(-1===t.indexOf(a[1]))return-1;let c=0;for(let n=0;n-1){const F=(0===c[0].indexOf("!")?5:4)+c[1].length+m;c[2]=c[2].substring(0,m),c[0]=c[0].substring(0,F).trim(),c[3]=""}}let l=c[2],r="";if(this.options.pedantic){const m=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);m&&(l=m[1],r=m[3])}else r=c[3]?c[3].slice(1,-1):"";return l=l.trim(),/^$/.test(n)?l.slice(1):l.slice(1,-1)),E8(c,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},c[0],this.lexer)}}reflink(a,c){let n;if((n=this.rules.inline.reflink.exec(a))||(n=this.rules.inline.nolink.exec(a))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=c[l.toLowerCase()],!l){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return E8(n,l,n[0],this.lexer)}}emStrong(a,c,n=""){let l=this.rules.inline.emStrong.lDelim.exec(a);if(!(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))&&(!l[1]&&!l[2]||!n||this.rules.inline.punctuation.exec(n))){const m=[...l[0]].length-1;let z,F,I=m,J=0;const d1="*"===l[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d1.lastIndex=0,c=c.slice(-1*a.length+m);null!=(l=d1.exec(c));){if(z=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!z)continue;if(F=[...z].length,l[3]||l[4]){I+=F;continue}if((l[5]||l[6])&&m%3&&!((m+F)%3)){J+=F;continue}if(I-=F,I>0)continue;F=Math.min(F,F+I+J);const i1=[...l[0]][0].length,N1=a.slice(0,m+l.index+i1+F);if(Math.min(m,F)%2){const u2=N1.slice(1,-1);return{type:"em",raw:N1,text:u2,tokens:this.lexer.inlineTokens(u2)}}const J1=N1.slice(2,-2);return{type:"strong",raw:N1,text:J1,tokens:this.lexer.inlineTokens(J1)}}}}codespan(a){const c=this.rules.inline.code.exec(a);if(c){let n=c[2].replace(/\n/g," ");const l=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return l&&r&&(n=n.substring(1,n.length-1)),n=q0(n,!0),{type:"codespan",raw:c[0],text:n}}}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 n,l;return"@"===c[2]?(n=q0(c[1]),l="mailto:"+n):(n=q0(c[1]),l=n),{type:"link",raw:c[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}url(a){let c;if(c=this.rules.inline.url.exec(a)){let n,l;if("@"===c[2])n=q0(c[0]),l="mailto:"+n;else{let r;do{r=c[0],c[0]=this.rules.inline._backpedal.exec(c[0])[0]}while(r!==c[0]);n=q0(c[0]),l="www."===c[1]?"http://"+c[0]:c[0]}return{type:"link",raw:c[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(a){const c=this.rules.inline.text.exec(a);if(c){let n;return n=this.lexer.state.inRawBlock?c[0]:q0(c[0]),{type:"text",raw:c[0],text:n}}}}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:P6,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=y2(Q2.def).replace("label",Q2._label).replace("title",Q2._title).getRegex(),Q2.bullet=/(?:[*+-]|\d{1,9}[.)])/,Q2.listItemStart=y2(/^( *)(bull) */).replace("bull",Q2.bullet).getRegex(),Q2.list=y2(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=y2(Q2.html,"i").replace("comment",Q2._comment).replace("tag",Q2._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q2.lheading=y2(Q2.lheading).replace(/bull/g,Q2.bullet).getRegex(),Q2.paragraph=y2(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=y2(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=y2(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=y2(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:y2("^ *(?: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:P6,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:y2(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 N2={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:P6,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:P6,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~"};N2.punctuation=y2(N2.punctuation,"u").replace(/punctuation/g,N2._punctuation).getRegex(),N2.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,N2.anyPunctuation=/\\[punct]/g,N2._escapes=/\\([punct])/g,N2._comment=y2(Q2._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),N2.emStrong.lDelim=y2(N2.emStrong.lDelim,"u").replace(/punct/g,N2._punctuation).getRegex(),N2.emStrong.rDelimAst=y2(N2.emStrong.rDelimAst,"gu").replace(/punct/g,N2._punctuation).getRegex(),N2.emStrong.rDelimUnd=y2(N2.emStrong.rDelimUnd,"gu").replace(/punct/g,N2._punctuation).getRegex(),N2.anyPunctuation=y2(N2.anyPunctuation,"gu").replace(/punct/g,N2._punctuation).getRegex(),N2._escapes=y2(N2._escapes,"gu").replace(/punct/g,N2._punctuation).getRegex(),N2._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,N2._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])?)+(?![-_])/,N2.autolink=y2(N2.autolink).replace("scheme",N2._scheme).replace("email",N2._email).getRegex(),N2._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,N2.tag=y2(N2.tag).replace("comment",N2._comment).replace("attribute",N2._attribute).getRegex(),N2._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N2._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,N2._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,N2.link=y2(N2.link).replace("label",N2._label).replace("href",N2._href).replace("title",N2._title).getRegex(),N2.reflink=y2(N2.reflink).replace("label",N2._label).replace("ref",Q2._label).getRegex(),N2.nolink=y2(N2.nolink).replace("ref",Q2._label).getRegex(),N2.reflinkSearch=y2(N2.reflinkSearch,"g").replace("reflink",N2.reflink).replace("nolink",N2.nolink).getRegex(),N2.normal={...N2},N2.pedantic={...N2.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:y2(/^!?\[(label)\]\((.*?)\)/).replace("label",N2._label).getRegex(),reflink:y2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",N2._label).getRegex()},N2.gfm={...N2.normal,escape:y2(N2.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]*?(?:(?=[\\F+" ".repeat(I.length));a;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(z=>!!(n=z.call({lexer:this},a,c))&&(a=a.substring(n.raw.length),c.push(n),!0)))){if(n=this.tokenizer.space(a)){a=a.substring(n.raw.length),1===n.raw.length&&c.length>0?c[c.length-1].raw+="\n":c.push(n);continue}if(n=this.tokenizer.code(a)){a=a.substring(n.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?c.push(n):(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(n=this.tokenizer.fences(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.heading(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.hr(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.blockquote(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.list(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.html(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.def(a)){a=a.substring(n.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(l.raw+="\n"+n.raw,l.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(n=this.tokenizer.table(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.lheading(a)){a=a.substring(n.raw.length),c.push(n);continue}if(r=a,this.options.extensions&&this.options.extensions.startBlock){let z=1/0;const F=a.slice(1);let I;this.options.extensions.startBlock.forEach(J=>{I=J.call({lexer:this},F),"number"==typeof I&&I>=0&&(z=Math.min(z,I))}),z<1/0&&z>=0&&(r=a.substring(0,z+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){l=c[c.length-1],m&&"paragraph"===l.type?(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(n),m=r.length!==a.length,a=a.substring(n.raw.length);continue}if(n=this.tokenizer.text(a)){a=a.substring(n.raw.length),l=c[c.length-1],l&&"text"===l.type?(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(n);continue}if(a){const z="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(z);break}throw new Error(z)}}return this.state.top=!0,c}inline(a,c=[]){return this.inlineQueue.push({src:a,tokens:c}),c}inlineTokens(a,c=[]){let n,l,r,z,F,I,m=a;if(this.tokens.links){const J=Object.keys(this.tokens.links);if(J.length>0)for(;null!=(z=this.tokenizer.rules.inline.reflinkSearch.exec(m));)J.includes(z[0].slice(z[0].lastIndexOf("[")+1,-1))&&(m=m.slice(0,z.index)+"["+"a".repeat(z[0].length-2)+"]"+m.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(z=this.tokenizer.rules.inline.blockSkip.exec(m));)m=m.slice(0,z.index)+"["+"a".repeat(z[0].length-2)+"]"+m.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(z=this.tokenizer.rules.inline.anyPunctuation.exec(m));)m=m.slice(0,z.index)+"++"+m.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;a;)if(F||(I=""),F=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(J=>!!(n=J.call({lexer:this},a,c))&&(a=a.substring(n.raw.length),c.push(n),!0)))){if(n=this.tokenizer.escape(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.tag(a)){a=a.substring(n.raw.length),l=c[c.length-1],l&&"text"===n.type&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):c.push(n);continue}if(n=this.tokenizer.link(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(n.raw.length),l=c[c.length-1],l&&"text"===n.type&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):c.push(n);continue}if(n=this.tokenizer.emStrong(a,m,I)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.codespan(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.br(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.del(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.autolink(a)){a=a.substring(n.raw.length),c.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(a))){a=a.substring(n.raw.length),c.push(n);continue}if(r=a,this.options.extensions&&this.options.extensions.startInline){let J=1/0;const d1=a.slice(1);let i1;this.options.extensions.startInline.forEach(N1=>{i1=N1.call({lexer:this},d1),"number"==typeof i1&&i1>=0&&(J=Math.min(J,i1))}),J<1/0&&J>=0&&(r=a.substring(0,J+1))}if(n=this.tokenizer.inlineText(r)){a=a.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(I=n.raw.slice(-1)),F=!0,l=c[c.length-1],l&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):c.push(n);continue}if(a){const J="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(J);break}throw new Error(J)}}return c}}class r3{options;constructor(a){this.options=a||a0}code(a,c,n){const l=(c||"").match(/^\S*/)?.[0];return a=a.replace(/\n$/,"")+"\n",l?'
'+(n?a:q0(a,!0))+"
\n":"
"+(n?a:q0(a,!0))+"
\n"}blockquote(a){return`
\n${a}
\n`}html(a,c){return a}heading(a,c,n){return`${a}\n`}hr(){return"
\n"}list(a,c,n){const l=c?"ol":"ul";return"<"+l+(c&&1!==n?' start="'+n+'"':"")+">\n"+a+"\n"}listitem(a,c,n){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 n=c.header?"th":"td";return(c.align?`<${n} align="${c.align}">`:`<${n}>`)+a+`\n`}strong(a){return`${a}`}em(a){return`${a}`}codespan(a){return`${a}`}br(){return"
    "}del(a){return`${a}`}link(a,c,n){const l=P0(a);if(null===l)return n;let r='",r}image(a,c,n){const l=P0(a);if(null===l)return n;let r=`${n}"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":n+=this.renderer.code(r.text,r.lang,!!r.escaped);continue;case"table":{const m=r;let z="",F="";for(let J=0;J0&&"paragraph"===i1.tokens[0].type?(i1.tokens[0].text=v2+" "+i1.tokens[0].text,i1.tokens[0].tokens&&i1.tokens[0].tokens.length>0&&"text"===i1.tokens[0].tokens[0].type&&(i1.tokens[0].tokens[0].text=v2+" "+i1.tokens[0].tokens[0].text)):i1.tokens.unshift({type:"text",text:v2+" "}):u2+=v2+" "}u2+=this.parse(i1.tokens,I),J+=this.renderer.listitem(u2,J1,!!N1)}n+=this.renderer.list(J,z,F);continue}case"html":n+=this.renderer.html(r.text,r.block);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(r.tokens));continue;case"text":{let m=r,z=m.tokens?this.parseInline(m.tokens):m.text;for(;l+1{n=n.concat(this.walkTokens(r[m],c))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,c)))}}return n}use(...a){const c=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(n=>{const l={...n};if(l.async=this.defaults.async||l.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const m=c.renderers[r.name];c.renderers[r.name]=m?function(...z){let F=r.renderer.apply(this,z);return!1===F&&(F=m.apply(this,z)),F}:r.renderer}if("tokenizer"in r){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");const m=c[r.level];m?m.unshift(r.tokenizer):c[r.level]=[r.tokenizer],r.start&&("block"===r.level?c.startBlock?c.startBlock.push(r.start):c.startBlock=[r.start]:"inline"===r.level&&(c.startInline?c.startInline.push(r.start):c.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(c.childTokens[r.name]=r.childTokens)}),l.extensions=c),n.renderer){const r=this.defaults.renderer||new r3(this.defaults);for(const m in n.renderer){const z=n.renderer[m],I=r[m];r[m]=(...J)=>{let d1=z.apply(r,J);return!1===d1&&(d1=I.apply(r,J)),d1||""}}l.renderer=r}if(n.tokenizer){const r=this.defaults.tokenizer||new u0(this.defaults);for(const m in n.tokenizer){const z=n.tokenizer[m],I=r[m];r[m]=(...J)=>{let d1=z.apply(r,J);return!1===d1&&(d1=I.apply(r,J)),d1}}l.tokenizer=r}if(n.hooks){const r=this.defaults.hooks||new t3;for(const m in n.hooks){const z=n.hooks[m],I=r[m];r[m]=t3.passThroughHooks.has(m)?J=>{if(this.defaults.async)return Promise.resolve(z.call(r,J)).then(i1=>I.call(r,i1));const d1=z.call(r,J);return I.call(r,d1)}:(...J)=>{let d1=z.apply(r,J);return!1===d1&&(d1=I.apply(r,J)),d1}}l.hooks=r}if(n.walkTokens){const r=this.defaults.walkTokens,m=n.walkTokens;l.walkTokens=function(z){let F=[];return F.push(m.call(this,z)),r&&(F=F.concat(r.call(this,z))),F}}this.defaults={...this.defaults,...l}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,c){return a4.lex(a,c??this.defaults)}parser(a,c){return L3.parse(a,c??this.defaults)}#e(a,c){return(n,l)=>{const r={...l},m={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(m.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),m.async=!0);const z=this.#c(!!m.silent,!!m.async);if(typeof n>"u"||null===n)return z(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return z(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(m.hooks&&(m.hooks.options=m),m.async)return Promise.resolve(m.hooks?m.hooks.preprocess(n):n).then(F=>a(F,m)).then(F=>m.walkTokens?Promise.all(this.walkTokens(F,m.walkTokens)).then(()=>F):F).then(F=>c(F,m)).then(F=>m.hooks?m.hooks.postprocess(F):F).catch(z);try{m.hooks&&(n=m.hooks.preprocess(n));const F=a(n,m);m.walkTokens&&this.walkTokens(F,m.walkTokens);let I=c(F,m);return m.hooks&&(I=m.hooks.postprocess(I)),I}catch(F){return z(F)}}}#c(a,c){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",a){const l="

    An error occurred:

    "+q0(n.message+"",!0)+"
    ";return c?Promise.resolve(l):l}if(c)return Promise.reject(n);throw n}}};function Z0(t,a){return N4.parse(t,a)}Z0.options=Z0.setOptions=function(t){return N4.setOptions(t),t4(Z0.defaults=N4.defaults),Z0},Z0.getDefaults=function e0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Z0.defaults=a0,Z0.use=function(...t){return N4.use(...t),t4(Z0.defaults=N4.defaults),Z0},Z0.walkTokens=function(t,a){return N4.walkTokens(t,a)},Z0.parseInline=N4.parseInline,Z0.Parser=L3,Z0.parser=L3.parse,Z0.Renderer=r3,Z0.TextRenderer=v3,Z0.Lexer=a4,Z0.lexer=a4.lex,Z0.Tokenizer=u0,Z0.Hooks=t3,Z0.parse=Z0;const I3=["*"];let k3=(()=>{class t{constructor(){this._buttonClick$=new S.B,this.copied$=this._buttonClick$.pipe((0,A.n)(()=>function Y3(...t){const a=(0,_3.lI)(t),c=(0,_3.R0)(t,1/0),n=t;return n.length?1===n.length?(0,V.Tg)(n[0]):(0,g3.U)(c)((0,A3.H)(n,a)):c2.w}((0,F3.of)(!0),b4(3e3).pipe((0,a1.u)(!1)))),Y1(),(0,f2.t)(1)),this.copiedText$=this.copied$.pipe((0,C0.Z)(!1),(0,$2.T)(c=>c?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["markdown-clipboard"]],standalone:!0,features:[e.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(n,l){1&n&&(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&n&&(e.AVh("copied",e.bMT(1,3,l.copied$)),e.R7$(2),e.JRh(e.bMT(3,5,l.copiedText$)))},dependencies:[L.Jj],encapsulation:2,changeDetection:0})}}return t})();const g6=new e.nKC("CLIPBOARD_OPTIONS");var P3=function(t){return t.CommandLine="command-line",t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}(P3||{});const Y4=new e.nKC("MARKED_EXTENSIONS"),X0=new e.nKC("MARKED_OPTIONS"),B4=new e.nKC("SECURITY_CONTEXT");let L6=(()=>{class t{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,n,l,r,m,z,F){this.clipboardOptions=c,this.extensions=n,this.platform=r,this.securityContext=m,this.http=z,this.sanitizer=F,this.DEFAULT_MARKED_OPTIONS={renderer:new r3},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,n=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:l,inline:r,emoji:m,mermaid:z,disableSanitizer:F}=n,I={...this.options,...n.markedOptions},J=I.renderer||this.renderer||new r3;this.extensions&&(this.renderer=this.extendsRendererForExtensions(J)),z&&(this.renderer=this.extendsRendererForMermaid(J));const d1=this.trimIndentation(c),i1=l?this.decodeHtml(d1):d1,N1=m?this.parseEmoji(i1):i1,J1=this.parseMarked(N1,I,r);return(F?J1:this.sanitizer.sanitize(this.securityContext,J1))||""}render(c,n=this.DEFAULT_RENDER_OPTIONS,l){const{clipboard:r,clipboardOptions:m,katex:z,katexOptions:F,mermaid:I,mermaidOptions:J}=n;z&&this.renderKatex(c,{...this.DEFAULT_KATEX_OPTIONS,...F}),I&&this.renderMermaid(c,{...this.DEFAULT_MERMAID_OPTIONS,...J}),r&&this.renderClipboard(c,l,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...m}),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,$2.T)(n=>this.handleExtension(c,n)))}highlight(c){if(!(0,L.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;c||(c=document);const n=c.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(n,l=>l.classList.add("language-none")),Prism.highlightAllUnder(c)}decodeHtml(c){if(!(0,L.UE)(this.platform))return c;const n=document.createElement("textarea");return n.innerHTML=c,n.value}extendsRendererForExtensions(c){const n=c;return!0===n.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&Z0.use(...this.extensions),n.\u0275NgxMarkdownRendererExtendedForExtensions=!0),c}extendsRendererForMermaid(c){const n=c;if(!0===n.\u0275NgxMarkdownRendererExtendedForMermaid)return c;const l=c.code;return c.code=function(r,m,z){return"mermaid"===m?`
    ${r}
    `:l.call(this,r,m,z)},n.\u0275NgxMarkdownRendererExtendedForMermaid=!0,c}handleExtension(c,n){const l=c.lastIndexOf("://"),r=l>-1?c.substring(l+4):c,m=r.lastIndexOf("/"),z=m>-1?r.substring(m+1).split("?")[0]:"",F=z.lastIndexOf("."),I=F>-1?z.substring(F+1):"";return I&&"md"!==I?"```"+I+"\n"+n+"\n```":n}parseMarked(c,n,l=!1){if(n.renderer){const r={...n.renderer};delete r.\u0275NgxMarkdownRendererExtendedForExtensions,delete r.\u0275NgxMarkdownRendererExtendedForMermaid,delete n.renderer,Z0.use({renderer:r})}return l?Z0.parseInline(c,n):Z0.parse(c,n)}parseEmoji(c){if(!(0,L.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,n){if((0,L.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,n)}}renderClipboard(c,n,l){if(!(0,L.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(!n)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:r,buttonTemplate:m}=l,z=c.querySelectorAll("pre");for(let F=0;Fd1.style.opacity="1",I.onmouseout=()=>d1.style.opacity="0",r){const J1=n.createComponent(r);i1=J1.hostView,J1.changeDetectorRef.markForCheck()}else if(m)i1=n.createEmbeddedView(m);else{const J1=n.createComponent(k3);i1=J1.hostView,J1.changeDetectorRef.markForCheck()}i1.rootNodes.forEach(J1=>{J1.onmouseover=()=>d1.style.opacity="1",d1.appendChild(J1),N1=new ClipboardJS(J1,{text:()=>I.innerText})}),i1.onDestroy(()=>N1.destroy())}}renderMermaid(c,n=this.DEFAULT_MERMAID_OPTIONS){if(!(0,L.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(n),mermaid.run({nodes:l}))}trimIndentation(c){if(!c)return"";let n;return c.split("\n").map(l=>{let r=n;return l.length>0&&(r=isNaN(r)?l.search(/\S|$/):Math.min(l.search(/\S|$/),r)),isNaN(n)&&(n=r),r?l.substring(r):l}).join("\n")}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(g6,8),e.KVO(Y4,8),e.KVO(X0,8),e.KVO(e.Agw),e.KVO(B4),e.KVO(g.Qq,8),e.KVO(u.up))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac})}}return t})(),H0=(()=>{class t{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,n,l){this.element=c,this.markdownService=n,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,P1.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(c){var n=this;return(0,b1.A)(function*(l,r=!1){const m={decodeHtml:r,inline:n.inline,emoji:n.emoji,mermaid:n.mermaid,disableSanitizer:n.disableSanitizer},z={clipboard:n.clipboard,clipboardOptions:{buttonComponent:n.clipboardButtonComponent,buttonTemplate:n.clipboardButtonTemplate},katex:n.katex,katexOptions:n.katexOptions,mermaid:n.mermaid,mermaidOptions:n.mermaidOptions},F=yield n.markdownService.parse(l,m);n.element.nativeElement.innerHTML=F,n.handlePlugins(),n.markdownService.render(n.element.nativeElement,z,n.viewContainerRef),n.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,P3.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,P3.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(c,n){const l=c.querySelectorAll("pre");for(let r=0;r{const z=n[m];if(z){const F=this.toLispCase(m);l.item(r).setAttribute(F,z.toString())}})}toLispCase(c){const n=c.match(/([A-Z])/g);if(!n)return c;let l=c.toString();for(let r=0,m=n.length;r{class t{static forRoot(c){return{ngModule:t,providers:[p8(c)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({imports:[L.MD]})}}return t})();var Z4;function V4(t,a){const c=a?function j6(t){return"string"==typeof t?()=>{throw new Error(t)}:t}(a):()=>{};let n=!1;return(...l)=>n?c(...l):(n=!0,t(...l))}function f3(t){return t.endsWith("/")?t:`${t}/`}!function(t){let a;var l;let c,n;(l=a=t.SecurityLevel||(t.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=t.Theme||(t.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"}(n=t.LogLevel||(t.LogLevel={}))}(Z4||(Z4={}));const h8=(t,a)=>{const c=a.createElement("script");return c.type="text/javascript",c.defer=!0,c.async=!0,c.src=t,c},E4=new e.nKC("MATOMO_SCRIPT_FACTORY",{providedIn:"root",factory:()=>h8});function k0(t,a){if(null==t)throw new Error("Unexpected "+t+" value: "+a);return t}let e8=(()=>{class t{constructor(){this.scriptFactory=(0,e.WQX)(E4),this.injector=(0,e.WQX)(e.duS),this.document=(0,e.WQX)(L.qQ)}injectDOMScript(c){const n=(0,e.N4e)(this.injector,()=>this.scriptFactory(c,this.document)),l=k0(this.document.getElementsByTagName("script")[0],"no existing script found");k0(l.parentNode,"no script's parent node found").insertBefore(n,l)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const j3=new e.nKC("MATOMO_ROUTER_ENABLED",{factory:()=>!1}),O6=new e.nKC("MATOMO_CONFIGURATION"),S3=new e.nKC("INTERNAL_MATOMO_CONFIGURATION",{factory(){const{mode:t,requireConsent:a,...c}=k0((0,e.WQX)(O6,{optional:!0}),"No Matomo configuration found! Have you included Matomo module using MatomoModule.forRoot() or provideMatomo()?");return{mode:t?H(t):void 0,disabled:!1,enableLinkTracking:!0,trackAppInitialLoad:!(0,e.WQX)(j3),requireConsent:a?D(a):"none",enableJSErrorTracking:!1,runOutsideAngularZone:!1,disableCampaignParameters:!1,acceptDoNotTrack:!1,...c}}}),u3=new e.nKC("DEFERRED_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>{const t=(0,e.WQX)(S3);let a;return{configuration:new Promise(n=>a=n),markReady(n){k0(a,"resolveFn")({...t,...n})}}}});new e.nKC("ASYNC_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>(0,e.WQX)(u3).configuration});var m3=function(t){return t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t[t.AUTO_DEFERRED=2]="AUTO_DEFERRED",t}(m3||{});function H(t){switch(t){case m3.AUTO:return"auto";case m3.MANUAL:return"manual";case m3.AUTO_DEFERRED:return"deferred";default:return t}}var G=function(t){return t[t.NONE=0]="NONE",t[t.COOKIE=1]="COOKIE",t[t.TRACKING=2]="TRACKING",t}(G||{});function D(t){switch(t){case G.NONE:return"none";case G.COOKIE:return"cookie";case G.TRACKING:return"tracking";default:return t}}function w1(t){return null!=t.siteId&&null!=t.trackerUrl}function M3(t){return Array.isArray(t.trackers)}function q4(){window._paq=window._paq||[]}function c8(t){const a=[...t];for(;a.length>0&&void 0===a[a.length-1];)a.pop();return a}let q8=(()=>{class t{constructor(){this.ngZone=(0,e.WQX)(e.SKi),this.config=(0,e.WQX)(S3),q4()}get(c){return this.pushFn(n=>n[c]())}pushFn(c){return new Promise(n=>{this.push([function(){n(c(this))}])})}push(c){this.config.runOutsideAngularZone?this.ngZone.runOutsideAngular(()=>{window._paq.push(c8(c))}):window._paq.push(c8(c))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:()=>function o4(){const t=(0,e.WQX)(S3).disabled,a=(0,L.UE)((0,e.WQX)(e.Agw));return t||!a?new Oe:new q8}(),providedIn:"root"})}}return t})();class Oe{get(a){return(0,b1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}push(a){}pushFn(a){return(0,b1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}}let k6=(()=>{class t{constructor(){this.delegate=(0,e.WQX)(q8),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,n,l,r,m){this.delegate.push(["trackEvent",c,n,l,r,m])}trackSiteSearch(c,n,l,r){this.delegate.push(["trackSiteSearch",c,n,l,r])}trackGoal(c,n,l){this.delegate.push(["trackGoal",c,n,l])}trackLink(c,n,l){this.delegate.push(["trackLink",c,n,l])}trackAllContentImpressions(){this.delegate.push(["trackAllContentImpressions"])}trackVisibleContentImpressions(c,n){this.delegate.push(["trackVisibleContentImpressions",c,n])}trackContentImpressionsWithinNode(c){this.delegate.push(["trackContentImpressionsWithinNode",c])}trackContentInteractionNode(c,n){this.delegate.push(["trackContentInteractionNode",c,n])}trackContentImpression(c,n,l){this.delegate.push(["trackContentImpression",c,n,l])}trackContentInteraction(c,n,l,r){this.delegate.push(["trackContentInteraction",c,n,l,r])}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,n){this.delegate.push(["addTracker",c,n])}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,n,l,r,m,z){let F;"object"==typeof c&&c?(F=c.networkTimeInMs,n=c.serverTimeInMs,l=c.transferTimeInMs,r=c.domProcessingTimeInMs,m=c.domCompletionTimeInMs,z=c.onloadTimeInMs):F=c,this.delegate.push(["setPagePerformanceTiming",F,n,l,r,m,z])}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,n){this.delegate.push(["setHeartBeatTimer",c,n])}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,n,l,r){this.delegate.push(["setCustomVariable",c,n,l,r])}deleteCustomVariable(c,n){this.delegate.push(["deleteCustomVariable",c,n])}deleteCustomVariables(c){this.delegate.push(["deleteCustomVariables",c])}getCustomVariable(c,n){return this.delegate.pushFn(l=>l.getCustomVariable(c,n))}storeCustomVariablesInCookie(){this.delegate.push(["storeCustomVariablesInCookie"])}setCustomDimension(c,n){this.delegate.push(["setCustomDimension",c,n])}deleteCustomDimension(c){this.delegate.push(["deleteCustomDimension",c])}getCustomDimension(c){return this.delegate.pushFn(n=>n.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,n,l,r){!function Ve(t){return"object"==typeof t&&1===Object.keys(t).length&&null!=t.productCategory}(c)?function Ce(t){return"object"==typeof t&&"productSKU"in t}(c)?this.delegate.push(["setEcommerceView",c.productSKU,c.productName,c.productCategory,c.price]):this.delegate.push(["setEcommerceView",c,n,l,r]):this.delegate.push(["setEcommerceView",!1,!1,c.productCategory])}addEcommerceItem(c,n,l,r,m){this.delegate.push("string"==typeof c?["addEcommerceItem",c,n,l,r,m]:["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,n,l,r,m,z){this.delegate.push(["trackEcommerceOrder",c,n,l,r,m,z])}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 n=c.flat();this.delegate.push(["setExcludedReferrers",n])}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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function X8(t){return`${t}`}function ze(t,a){return null==a?f3(t)+Me:t+a}const Me="matomo.php";class t8{initialize(){}init(){}initializeTracker(a){}}let w6=(()=>{class t{constructor(){this.config=(0,e.WQX)(S3),this.deferredConfig=(0,e.WQX)(u3),this.tracker=(0,e.WQX)(k6),this.scriptInjector=(0,e.WQX)(e8),this.initialize=V4(()=>{this.runPreInitTasks(),function e1(t){return null==t.mode||"auto"===t.mode||t.mode===m3.AUTO}(this.config)&&this.injectMatomoScript(this.config)},"Matomo has already been initialized"),this.injectMatomoScript=V4(c=>{if(function y0(t){return w1(t)||M3(t)}(c)){const{scriptUrl:n}=c,[l,...r]=function e6(t){return M3(t)?t.trackers:[{trackerUrl:t.trackerUrl,siteId:t.siteId,trackerUrlSuffix:t.trackerUrlSuffix}]}(c),m=n??f3(l.trackerUrl)+"matomo.js";this.registerMainTracker(l),this.registerAdditionalTrackers(r),this.scriptInjector.injectDOMScript(m)}else if(function j2(t){return null!=t.scriptUrl&&!w1(t)}(c)){const{scriptUrl:n,trackers:l}={trackers:[],...c};this.registerAdditionalTrackers(l),this.scriptInjector.injectDOMScript(n)}this.deferredConfig.markReady(c)},"Matomo trackers have already been initialized"),q4()}init(){this.initialize()}initializeTracker(c){this.injectMatomoScript(c)}registerMainTracker(c){const n=ze(c.trackerUrl,c.trackerUrlSuffix),l=X8(c.siteId);this.tracker.setTrackerUrl(n),this.tracker.setSiteId(l)}registerAdditionalTrackers(c){c.forEach(({trackerUrl:n,siteId:l,trackerUrlSuffix:r})=>{const m=ze(n,r),z=X8(l);this.tracker.addTracker(m,z)})}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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:()=>function B6(){const t=(0,e.WQX)(S3).disabled,a=(0,L.UE)((0,e.WQX)(e.Agw));return t||!a?new t8:new w6}(),providedIn:"root"})}}return t})();const g8=Symbol("MATOMO_PROVIDERS"),$0=Symbol("MATOMO_CHECKS");function L8(t,a){const c=[];return a&&c.push(function W4(t){return function D4(t,a,c){return{kind:t,[g8]:a,[$0]:c}}("ScriptFactory",[{provide:E4,useValue:t}])}(a)),function T4(t,...a){const c=[{provide:e.Z63,multi:!0,useValue(){(0,e.WQX)(w6).initialize()}}],n=[];c.push("function"==typeof t?{provide:O6,useFactory:t}:{provide:O6,useValue:t});for(const l of a)c.push(...l[g8]),n.push(l.kind);for(const l of a)l[$0]?.(n);return(0,e.EmA)(c)}(t,...c)}let k5=(()=>{class t{static forRoot(c,n){return{ngModule:t,providers:[L8(c,n)]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({})}}return t})();var E2=v(1600),K8=v(7468),f6=v(4572),He=v(8793),C8=v(6697),ee=v(5343);function ce(t,a){return a?c=>(0,He.x)(a.pipe((0,C8.s)(1),function Ge(){return(0,y1.N)((t,a)=>{t.subscribe((0,W1._)(a,ee.l))})}()),c.pipe(ce(t))):(0,K.Z)((c,n)=>(0,V.Tg)(t(c,n)).pipe((0,C8.s)(1),(0,a1.u)(c)))}var N3=v(5964),T8=v(274),z8=v(8141),be=v(9901);const R8=new e.nKC("MATOMO_ROUTER_CONFIGURATION"),Ye={prependBaseHref:!0,trackPageTitle:!0,delay:0,exclude:[],navigationEndComparator:"fullUrl"},E3=new e.nKC("INTERNAL_ROUTER_CONFIGURATION",{factory:()=>{const{disabled:t,enableLinkTracking:a}=(0,e.WQX)(S3),c=(0,e.WQX)(R8,{optional:!0})||{};return{...Ye,...c,enableLinkTracking:a,disabled:t}}}),N6=new e.nKC("MATOMO_ROUTER_INTERCEPTORS");class c5{constructor(a,c){this.fn=a,this.injector=c}beforePageTrack(a){return(0,e.N4e)(this.injector,()=>this.fn(a))}}function M8(t){return function ye(t){return"function"!=typeof t.prototype?.beforePageTrack}(t)?{provide:N6,multi:!0,useFactory:()=>new c5(t,(0,e.WQX)(e.duS))}:{provide:N6,multi:!0,useClass:t}}function u6(t){return t?t.map(M8):[]}new e.nKC("MATOMO_ROUTE_DATA_KEY",{providedIn:"root",factory:()=>"matomo"});const l2=new e.nKC("MATOMO_PAGE_TITLE_PROVIDER",{factory:()=>new O2((0,e.WQX)(u.hE))});class O2{constructor(a){this.title=a}getCurrentPageTitle(a){return(0,F3.of)(this.title.getTitle())}}const M4=new e.nKC("MATOMO_PAGE_URL_PROVIDER",{factory:()=>new P((0,e.WQX)(E3),(0,e.WQX)(L.kB,{optional:!0}),(0,e.WQX)(L.hb))});class P{constructor(a,c,n){this.config=a,this.baseHref=c,this.locationStrategy=n}getCurrentPageUrl(a){const c=this.config.prependBaseHref?this.getBaseHrefWithoutTrailingSlash()+a.urlAfterRedirects:a.urlAfterRedirects;return(0,F3.of)(c)}getBaseHrefWithoutTrailingSlash(){return function i4(t){return t.endsWith("/")?t.slice(0,-1):t}(this.baseHref??this.locationStrategy.getBaseHref()??"")}}function X(t){return t instanceof E2.wF}function W(t){return"string"==typeof t?new RegExp(t):t}function z1(t){return(a,c)=>t(a)===t(c)}let x2=(()=>{class t{constructor(c,n,l,r,m,z,F){if(this.router=c,this.platformId=n,this.config=l,this.pageTitleProvider=r,this.pageUrlProvider=m,this.tracker=z,this.interceptors=F,this.initialize=V4(()=>{if(this.config.disabled||!(0,L.UE)(this.platformId))return;const I=-1===this.config.delay?x1.D:function n8(t,a=l4){const c=b4(t,a);return ce(()=>c)}(this.config.delay),J=function U1(t){switch(t.navigationEndComparator){case"fullUrl":return z1(a=>a.urlAfterRedirects);case"ignoreQueryParams":return z1(a=>function T1(t){return t.split("?")[0]}(a.urlAfterRedirects));default:return t.navigationEndComparator}}(this.config);this.router.events.pipe((0,N3.p)(X),(0,N3.p)(function p1(t){const a=function t1(t){return t?Array.isArray(t)?t.map(W):[W(t)]:[]}(t);return c=>!a.some(n=>c.urlAfterRedirects.match(n))}(this.config.exclude)),Y1(J),I,(0,A.n)(d1=>this.presetPageTitleAndUrl(d1).pipe((0,$2.T)(({pageUrl:i1})=>({pageUrl:i1,event:d1})))),(0,T8.H)(({event:d1,pageUrl:i1})=>this.callInterceptors(d1).pipe((0,z8.M)(()=>this.trackPageView(i1))))).subscribe()},"MatomoRouter has already been initialized"),F&&!Array.isArray(F))throw function q1(){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,K8.p)(this.interceptors.map(n=>{const l=n.beforePageTrack(c);return(null==l?(0,F3.of)(void 0):(0,A3.H)(l)).pipe((0,C8.s)(1),(0,be.U)(void 0))})).pipe((0,a1.u)(void 0),(0,be.U)(void 0)):(0,F3.of)(void 0)}presetPageTitleAndUrl(c){const n=this.config.trackPageTitle?this.pageTitleProvider.getCurrentPageTitle(c).pipe((0,z8.M)(r=>this.tracker.setDocumentTitle(r))):(0,F3.of)(void 0),l=this.pageUrlProvider.getCurrentPageUrl(c).pipe((0,z8.M)(r=>this.tracker.setCustomUrl(r)));return(0,f6.z)([n,l]).pipe((0,$2.T)(([r,m])=>({pageUrl:m})))}trackPageView(c){this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking("enable-pseudo"===this.config.enableLinkTracking),this.tracker.setReferrerUrl(c)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(E2.Ix),e.KVO(e.Agw),e.KVO(E3),e.KVO(l2),e.KVO(M4),e.KVO(k6),e.KVO(N6,8))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),j0=(()=>{class t{constructor(c,n,l){this.router=c,!n&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:t,providers:[{provide:R8,useValue:c},u6(c.interceptors)]}}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(x2),e.KVO(t,12),e.KVO((0,e.Rfq)(()=>W0),12))}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({providers:[{provide:j3,useValue:!0}]})}}return t})(),W0=(()=>{class t{constructor(c,n,l){this.router=c,!n&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:t,providers:[{provide:R8,useValue:c},u6(c.interceptors)]}}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(x2),e.KVO(j0,12),e.KVO((0,e.Rfq)(()=>t),12))}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({providers:[{provide:j3,useValue:!0}]})}}return t})(),M0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){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,"h3",4),e.EFF(5,"Error"),e.k0s()(),e.j41(6,"div",5),e.EFF(7),e.k0s()()),2&n&&(e.R7$(7),e.SpI(" ",l.message," "))}})}}return t})();function p3(t,a){return()=>t.init().then(c=>{a.initializeTracker({siteId:c.matomoId,trackerUrl:c.matomoUrl})})}var X2=v(8508),L2=v(3077),D3=v(7473),K0=v(452),F2=v(7387),O3=v(8944),C6=v(3836),z6=v(6964),Fe=v(5586),w5=v(3636),m0=v(8058),h1=v(5312);function te(t,a){if(1&t&&(e.j41(0,"option",32),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.value),e.R7$(),e.JRh(c.label)}}function w0(t,a){1&t&&(e.j41(0,"div",33),e.nrm(1,"div",34),e.k0s())}function S5(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(9),e.JRh(c.error)}}function ne(t,a){1&t&&(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 s8(t,a){if(1&t&&(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&t){const c=e.XpG(2);e.R7$(5),e.JRh("customer"===c.selectedRole?"PROVIDER":"CUSTOMER")}}function ve(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.viewDetails(l))}),e.EFF(17," Details "),e.qSk(),e.j41(18,"svg",69),e.nrm(19,"path",70),e.k0s()()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.AVh("bg-gray-50",n.isQuoteFinalized(c))("dark:bg-gray-800",n.isQuoteFinalized(c))("hover:bg-gray-50",!n.isQuoteFinalized(c))("dark:hover:bg-gray-800",!n.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(" ",n.getOtherPartyName(c)," "),e.R7$(2),e.SpI(" ",n.getProductName(c)," "),e.R7$(2),e.Y8G("ngClass",n.getStateClass(n.getPrimaryState(c))),e.R7$(),e.SpI(" ",n.getStatusLabel(c)," "),e.R7$(2),e.HbH(n.getIconButtonClass(c,"chat","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200")),e.Y8G("disabled",n.isActionDisabled(c,"chat")),e.R7$(3),e.AVh("opacity-50",n.isActionDisabled(c,"viewDetails"))("cursor-not-allowed",n.isActionDisabled(c,"viewDetails")),e.Y8G("disabled",n.isActionDisabled(c,"viewDetails"))}}function x8(t,a){if(1&t&&(e.j41(0,"div",43),e.DNE(1,ne,7,0,"div",44)(2,s8,12,1,"div",45)(3,ve,20,25,"div",46),e.k0s()),2&t){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 l3(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",80)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.selectedState,l)||(r.selectedState=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",82),e.EFF(3),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("id","state-"+c),e.R50("ngModel",n.selectedState),e.Y8G("value",c),e.R7$(),e.Y8G("for","state-"+c),e.R7$(),e.SpI(" ",n.getStateDisplay(c)," ")}}function t5(t,a){if(1&t){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,l3,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&t){const c=e.XpG();e.R7$(6),e.Y8G("ngForOf",c.availableStates),e.R7$(4),e.Y8G("disabled",!c.selectedState)}}function B3(t,a){if(1&t){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 r=e.XpG();return e.DH7(r.selectedDate,l)||(r.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&t){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 s3=(()=>{class t{constructor(){this.router=(0,e.WQX)(E2.Ix),this.quoteService=(0,e.WQX)(X2.K),this.localStorage=(0,e.WQX)(L2.s),this.notificationService=(0,e.WQX)(D3.J),this.accountService=(0,e.WQX)(K0.O),this.productService=(0,e.WQX)(F2.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=[m0.yz.PENDING,m0.yz.IN_PROGRESS,m0.yz.APPROVED,m0.yz.REJECTED,m0.yz.CANCELLED,m0.yz.ACCEPTED],this.QUOTE_STATUSES=m0.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 n=c.organizations.find(l=>l.id==c.logged_as);this.currentUserId=n.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 n=new Set,l=new Set;if(c.forEach(r=>{r.relatedParty?.forEach(m=>{m.id&&!this.organizationNames.has(m.id)&&this.isOrganizationId(m.id)&&n.add(m.id)}),r.quoteItem?.forEach(m=>{m.productOffering?.id&&!this.productNames.has(m.productOffering.id)&&l.add(m.productOffering.id)})}),n.size>0){const r=Array.from(n).map(m=>this.accountService.getOrgInfo(m).then(z=>({id:m,name:z?.tradingName||z?.name||m}),()=>({id:m,name:m})));Promise.all(r).then(m=>{m.forEach(({id:z,name:F})=>{this.organizationNames.set(z,F)}),this.filteredQuotes=[...this.filteredQuotes]})}if(console.log("Product IDs to fetch:",Array.from(l)),l.size>0){const r=Array.from(l).map(m=>(console.log("Fetching product:",m),this.productService.getProductById(m).then(z=>(console.log("Product fetched:",m,z?.name),{id:m,name:z?.name||"Product Name Unavailable"}),z=>(console.error("Product fetch error:",m,z),{id:m,name:"Product Name Unavailable"}))));Promise.all(r).then(m=>{m.forEach(({id:z,name:F})=>{this.productNames.set(z,F)}),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,n)=>{const l=c.quoteDate?new Date(c.quoteDate).getTime():0;return(n.quoteDate?new Date(n.quoteDate).getTime():0)-l})}get filterStatusOptions(){const c="customer"===this.selectedRole?m0.D5:m0.Wc;return[{value:m0.yz.PENDING,label:c.PENDING},{value:m0.yz.IN_PROGRESS,label:c.IN_PROGRESS},{value:m0.yz.APPROVED,label:c.APPROVED},{value:m0.yz.ACCEPTED,label:c.ACCEPTED},{value:m0.yz.CANCELLED,label:c.CANCELLED},{value:m0.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 n=this.quotes.findIndex(m=>m.id===c.id);-1!==n&&(this.quotes[n]=c,this.filterQuotesByStatus());const l=this.extractShortId(c.id),r=this.getPrimaryState(c);this.notificationService.showSuccess(`Quote ${l} has been updated to ${r}.`)}closeChatModal(){this.showChatModal=!1,this.selectedChatQuoteId=null}closeAttachmentModal(){this.showAttachmentModal=!1,this.selectedAttachmentQuote=null}onAttachmentUploaded(c){const n=this.quotes.findIndex(l=>l.id===c.id);-1!==n&&(this.quotes[n]=c,this.filterQuotesByStatus()),"seller"===this.selectedRole&&this.getPrimaryState(c)===m0.yz.IN_PROGRESS&&(console.log("Provider uploaded PDF, updating quote status to approved:",c.id),this.quoteService.updateQuoteStatus(c.id,m0.yz.APPROVED).subscribe({next:l=>{const r=this.quotes.findIndex(z=>z.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus());const m=this.extractShortId(c.id);console.log("Quote status automatically updated to approved after PDF upload"),this.notificationService.showSuccess(`Quote ${m} 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 n=this.quotes.findIndex(l=>l.id===c.id);-1!==n&&(this.quotes[n]=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){try{this.quoteService.downloadAttachment(c),this.notificationService.showSuccess("Download started")}catch(n){console.error("Error downloading attachment:",n),this.notificationService.showError(n.message||"Error downloading attachment")}}addAttachment(c){this.selectedAttachmentQuote=c,this.showAttachmentModal=!0}acceptQuote(c){const n=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,m0.yz.IN_PROGRESS).subscribe({next:l=>{const r=this.quotes.findIndex(m=>m.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus()),console.log("Quote request successfully accepted"),this.notificationService.showSuccess(`Quote request ${n} 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 n=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,m0.yz.ACCEPTED).subscribe({next:l=>{const r=this.quotes.findIndex(m=>m.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus()),console.log("Quotation successfully accepted by customer"),this.notificationService.showSuccess(`Quotation ${n} 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),n=new Date;return n.setHours(0,0,0,0),c>n}confirmDateUpdate(){if(!(this.selectedDateQuote&&this.datePickerType&&this.selectedDate&&this.isDateValid()))return;const c=this.extractShortId(this.selectedDateQuote.id),n=this.datePickerType,l=new Date(this.selectedDate),r=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log(`Setting ${n} completion date for quote:`,this.selectedDateQuote.id,"Date:",r),this.quoteService.updateQuoteDate(this.selectedDateQuote.id,r,n).subscribe({next:m=>{const z=this.quotes.findIndex(F=>F.id===m.id);-1!==z&&(this.quotes[z]=m,this.filterQuotesByStatus()),console.log(`${n} completion date successfully updated`),this.notificationService.showSuccess(`${"requested"===n?"Requested":"Expected"} completion date for quote ${c} has been set successfully.`),this.closeDatePickerModal()},error:m=>{console.error(`Error setting ${n} completion date:`,m),this.notificationService.showError(`Error setting ${n} completion date: ${m.message||"Unknown error"}`)}})}cancelQuote(c){const n=this.extractShortId(c.id);this.cancelConfirmMessage=`Are you sure you want to cancel quote ${n}? 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,m0.yz.CANCELLED).subscribe({next:l=>{const r=this.quotes.findIndex(m=>m.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus()),console.log("Quote successfully cancelled"),this.notificationService.showSuccess(`Quote ${n} 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 n="customer"===this.selectedRole?h1.c.SELLER_ROLE:h1.c.BUYER_ROLE,l=c.relatedParty.find(m=>m.role?.toLowerCase()===n.toLowerCase());if(!l?.id)return"Unknown";const r=this.organizationNames.get(l.id);return r&&r!==l.id?r:"Loading..."}getProductName(c){if(!c.quoteItem||0===c.quoteItem.length)return"Unknown Product";const n=c.quoteItem[0],l=n.productOffering?.id;return n.productOffering?.name?n.productOffering.name:l?this.productNames.get(l)||"Loading...":n.product?.name?n.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 n=this.getPrimaryState(c),l="customer"===this.selectedRole?m0.D5:m0.Wc;switch(n){case m0.yz.PENDING:return l.PENDING;case m0.yz.IN_PROGRESS:return l.IN_PROGRESS;case m0.yz.APPROVED:return l.APPROVED;case m0.yz.ACCEPTED:return l.ACCEPTED;case m0.yz.CANCELLED:return l.CANCELLED;case m0.yz.REJECTED:return l.REJECTED;default:return n}}hasAttachment(c){return Array.isArray(c.quoteItem)&&c.quoteItem.some(n=>n.attachment&&n.attachment.length>0)}isQuoteCancelled(c){return c.quoteItem?.some(n=>n.state===m0.yz.CANCELLED)||!1}isQuoteAccepted(c){return c.quoteItem?.some(n=>n.state===m0.yz.ACCEPTED)||!1}isQuoteFinalized(c){return this.isQuoteCancelled(c)||this.isQuoteAccepted(c)}isActionDisabled(c,n){const l=this.isQuoteCancelled(c),m=(this.isQuoteAccepted(c),this.isQuoteFinalized(c));switch(n){case"viewDetails":case"downloadAttachment":return l;case"chat":case"accept":case"acceptCustomer":case"addRequestedDate":case"addExpectedDate":default:return!1;case"addAttachment":case"cancel":return m}}getButtonClass(c,n){const l="px-2 py-1 text-xs font-medium transition-colors rounded border";return this.isActionDisabled(c,n)?`${l} text-gray-400 cursor-not-allowed border-gray-200`:"viewDetails"===n?`${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,n,l){const r="p-1.5 text-xs cursor-pointer rounded hover:bg-gray-100 transition-colors";return this.isActionDisabled(c,n)?`${r} text-gray-400 cursor-not-allowed hover:bg-transparent`:`${r} ${l}`}getActionTitle(c,n){return this.isActionDisabled(c,n)?"Action disabled - quote is "+(this.isQuoteCancelled(c)?"cancelled":"accepted"):""}getStateDisplay(c){return c?{[m0.yz.PENDING]:"Pending",[m0.yz.IN_PROGRESS]:"In Progress",[m0.yz.APPROVED]:"Approved",[m0.yz.REJECTED]:"Rejected",[m0.yz.CANCELLED]:"Cancelled",[m0.yz.ACCEPTED]:"Accepted"}[c]||c:"Unknown"}getStateClass(c){switch(c){case m0.yz.PENDING:return"status-pending";case m0.yz.IN_PROGRESS:return"status-inProgress";case m0.yz.APPROVED:return"status-approved";case m0.yz.REJECTED:return"status-rejected";case m0.yz.CANCELLED:return"status-cancelled";case m0.yz.ACCEPTED:return"status-accepted";default:return"status-unknown"}}canUpdateState(c){return c!==m0.yz.CANCELLED&&c!==m0.yz.ACCEPTED}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-quote-list"]],standalone:!0,features:[e.aNF],decls:43,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(n,l){1&n&&(e.nrm(0,"app-notification"),e.j41(1,"div",0)(2,"div",1)(3,"div",2)(4,"h1",3),e.EFF(5,"Tailored offerings Dashboard"),e.k0s(),e.j41(6,"a",4),e.qSk(),e.j41(7,"svg",5),e.nrm(8,"path",6),e.k0s()()(),e.joV(),e.j41(9,"div",7)(10,"button",8),e.bIt("click",function(){return l.refreshQuotes()}),e.EFF(11),e.k0s()()(),e.j41(12,"div",9)(13,"div",10)(14,"button",11),e.bIt("click",function(){return l.selectRole("customer")}),e.qSk(),e.j41(15,"svg",12),e.nrm(16,"path",13),e.k0s(),e.EFF(17," As Customer "),e.k0s(),e.joV(),e.j41(18,"button",11),e.bIt("click",function(){return l.selectRole("seller")}),e.qSk(),e.j41(19,"svg",12),e.nrm(20,"path",14),e.k0s(),e.EFF(21," As Provider "),e.k0s()()(),e.joV(),e.j41(22,"div",9)(23,"div",15),e.qSk(),e.j41(24,"svg",16),e.nrm(25,"path",17),e.k0s(),e.joV(),e.j41(26,"span",18),e.EFF(27,"Filter by status"),e.k0s(),e.j41(28,"select",19),e.mxI("ngModelChange",function(m){return e.DH7(l.statusFilter,m)||(l.statusFilter=m),m}),e.bIt("ngModelChange",function(){return l.filterQuotesByStatus()}),e.j41(29,"option",20),e.EFF(30,"All Statuses"),e.k0s(),e.DNE(31,te,2,2,"option",21),e.k0s()()(),e.DNE(32,w0,2,0,"div",22)(33,S5,10,1,"div",23)(34,x8,4,3,"div",24),e.k0s(),e.j41(35,"app-confirm-dialog",25),e.bIt("confirm",function(){return l.deleteQuote()})("cancel",function(){return l.showDeleteConfirm=!1}),e.k0s(),e.j41(36,"app-confirm-dialog",26),e.bIt("confirm",function(){return l.acceptConfirmCallback&&l.acceptConfirmCallback()})("cancel",function(){return l.showAcceptConfirm=!1}),e.k0s(),e.j41(37,"app-confirm-dialog",27),e.bIt("confirm",function(){return l.cancelConfirmCallback&&l.cancelConfirmCallback()})("cancel",function(){return l.showCancelConfirm=!1}),e.k0s(),e.DNE(38,t5,12,2,"div",28),e.j41(39,"app-quote-details-modal",29),e.bIt("close",function(){return l.closeQuoteDetailsModal()})("quoteUpdated",function(m){return l.onQuoteUpdated(m)}),e.k0s(),e.j41(40,"app-chat-modal",30),e.bIt("close",function(){return l.closeChatModal()}),e.k0s(),e.j41(41,"app-attachment-modal",31),e.bIt("close",function(){return l.closeAttachmentModal()})("uploadSuccess",function(m){return l.onAttachmentUploaded(m)}),e.k0s(),e.DNE(42,B3,18,5,"div",28)),2&n&&(e.R7$(10),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:[L.MD,L.YU,L.Sq,L.bT,L.vh,p.YN,p.xH,p.y7,p.me,p.wz,p.Fm,p.BC,p.vS,O3.z,C6.w,z6.h,Fe.d,w5.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 t})();var D2=v(604);let A8=(()=>{class t{constructor(){this.faFileCertificate=D2.LP,this.faBadgeCheck=D2.Zsp,this.faHandHoldingCircleDollar=D2.EEq,this.faChartNetwork=D2.Qux,this.domePublish=h1.c.DOME_PUBLISH_LINK}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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 t})();var Y2=v(7586),U2=v(3207);class c6{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}createBlogEntry(a){return this.http.post(`${c6.BASE_URL}/domeblog`,a)}getBlogEntries(){return(0,U2.s)(this.http.get(`${c6.BASE_URL}/domeblog`))}getBlogEntryById(a){return(0,U2.s)(this.http.get(`${c6.BASE_URL}/domeblog/${a}`))}updateBlogEntry(a,c){return(0,U2.s)(this.http.patch(`${c6.BASE_URL}/domeblog/${c}`,a))}deleteBlogEntry(a){return(0,U2.s)(this.http.delete(`${c6.BASE_URL}/domeblog/${a}`))}static{this.\u0275fac=function(c){return new(c||c6)(e.KVO(g.Qq),e.KVO(L2.s))}}static{this.\u0275prov=e.jDH({token:c6,factory:c6.\u0275fac,providedIn:"root"})}}function N5(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(4),e.Y8G("disabled",c.deleting)}}function N7(t,a){if(1&t&&(e.j41(0,"span",31),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function E5(t,a){if(1&t&&(e.j41(0,"div",30),e.Z7z(1,N7,2,1,"span",31,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c)}}function D5(t,a){1&t&&e.DNE(0,E5,3,0,"div",30),2&t&&e.vxM(0,a.length>0?0:-1)}function I8(t,a){if(1&t&&(e.j41(0,"div",21),e.nrm(1,"img",32),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("src",a,e.B4B)("alt",c.entry.title+" featured image")}}let T5=(()=>{class t{constructor(c,n,l,r,m,z){this.route=c,this.router=n,this.domeBlogService=l,this.localStorage=r,this.titleService=m,this.metaService=z,this.entry={},this.blogId="",this.partyId="",this.checkAdmin=!1,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,b1.A)(function*(){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(["/blog"])}goToUpdate(){const c=this.entry?._id||(this.isObjectId(this.blogId)?this.blogId:null);c&&this.router.navigate(["/blog-entry/",c])}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,b1.A)(function*(){const n=c.entry?._id||(c.isObjectId(c.blogId)?c.blogId:null);if(n){c.closeDeleteDialog(),c.deleting=!0;try{yield c.domeBlogService.deleteBlogEntry(n),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 n=this;return(0,b1.A)(function*(){if(!c)return{};if(n.isObjectId(c))try{return yield n.domeBlogService.getBlogEntryById(c)}catch{}try{const r=(yield n.domeBlogService.getBlogEntries()).find(m=>m.slug===c);if(r?._id)try{return yield n.domeBlogService.getBlogEntryById(r._id)}catch{return r}if(r)return r}catch{}try{return yield n.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-Y2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.checkAdmin=c.roles.some(n=>"admin"===n.name)}}applySeoMetadata(){const c=(this.entry?.title||"").toString().trim(),n=this.getEntryMetaDescription();c&&this.titleService.setTitle(c),n&&this.metaService.updateTag({name:"description",content:n})}getEntryMetaDescription(){const c=(this.entry?.metaDescription||"").toString().trim();if(c)return this.truncateText(c,160);const n=(this.entry?.excerpt||"").toString().trim();if(n)return this.truncateText(n,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(n=>(n??"").toString().trim()).filter(n=>n.length>0):"string"==typeof c?c.split(",").map(n=>n.trim()).filter(n=>n.length>0):[]}stripMarkdown(c){return c.replace(/!\[[^\]]*]\([^)]*\)/g," ").replace(/\[[^\]]*]\([^)]*\)/g," ").replace(/[`*_>#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,n){return!c||c.length<=n?c:`${c.slice(0,n).trim()}...`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(c6),e.rXU(L2.s),e.rXU(u.hE),e.rXU(u.W8))}}static{this.\u0275cmp=e.VBU({type:t,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-[#DDE6F6]"],[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-[#0B1528]","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(n,l){if(1&n&&(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,N5,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,D5,1,1)(29,I8,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&n){let r,m;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,(r=l.getEntryTags())?28:-1,r),e.R7$(),e.vxM(29,(m=l.getFeaturedImage())?29:-1,m),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:[L.MD,L.vh,H0,C6.w]})}}return t})(),H2=(()=>{class t{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,n){this.eventMessageSubject.next({type:"SellerCreateCustomOffer",value:{offer:c,partyId:n}})}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})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function S9(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCreate())}),e.j41(1,"p",11),e.EFF(2,"Add a new entry"),e.k0s(),e.qSk(),e.j41(3,"svg",12),e.nrm(4,"path",13),e.k0s()()}}function Ms(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",16)(1,"button",24),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG();return e.Njj(r.goToUpdate(l._id))}),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().$implicit,r=e.XpG();return e.Njj(r.openDeleteDialog(l))}),e.qSk(),e.j41(5,"svg",28),e.nrm(6,"path",29),e.k0s()()()}if(2&t){const c=e.XpG().$implicit,n=e.XpG();e.R7$(4),e.Y8G("disabled",n.isDeletingEntry(c))}}function b2(t,a){if(1&t&&(e.j41(0,"span",31),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function N9(t,a){if(1&t&&(e.j41(0,"div",30),e.Z7z(1,b2,2,1,"span",31,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c)}}function x(t,a){1&t&&e.DNE(0,N9,3,0,"div",30),2&t&&e.vxM(0,a.length>0?0:-1)}function N(t,a){if(1&t&&e.nrm(0,"img",20),2&t){const c=e.XpG().$implicit;e.Y8G("src",a,e.B4B)("alt",c.title+" featured image")}}function b(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",8)(1,"div",14)(2,"h2",15),e.EFF(3),e.k0s(),e.DNE(4,Ms,7,1,"div",16),e.k0s(),e.j41(5,"h4",17),e.EFF(6," Created by "),e.j41(7,"b",18),e.EFF(8),e.k0s(),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.DNE(11,x,1,1),e.j41(12,"div",19),e.DNE(13,N,1,2,"img",20),e.j41(14,"div",21)(15,"p",22),e.EFF(16),e.k0s(),e.j41(17,"button",23),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.goToDetails(l))}),e.j41(18,"p",11),e.EFF(19,"View details"),e.k0s()()()()()}if(2&t){let c,n;const l=a.$implicit,r=e.XpG();e.R7$(3),e.JRh(l.title),e.R7$(),e.vxM(4,r.canManageEntry(l)?4:-1),e.R7$(4),e.JRh(l.author),e.R7$(),e.SpI(" on ",e.i5U(10,7,l.date,"EEEE, dd/MM/yy, HH:mm"),". "),e.R7$(2),e.vxM(11,(c=r.getEntryTags(l))?11:-1,c),e.R7$(2),e.vxM(13,(n=r.getFeaturedImage(l))?13:-1,n),e.R7$(3),e.SpI(" ",r.getEntryExcerpt(l)," ")}}let E=(()=>{class t{constructor(c,n,l,r){this.router=c,this.eventMessage=n,this.localStorage=l,this.domeBlogService=r,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.eventMessage.messages$.subscribe(m=>{"ChangedSession"===m.type&&this.initPartyInfo()})}ngOnInit(){var c=this;return(0,b1.A)(function*(){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-Y2().unix()-4>0){if(console.log("user info ---"),console.log(c),c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.checkAdmin=c.roles.some(n=>"admin"===n.name)}}goToDetails(c){this.router.navigate(["/blog/",this.getEntryRouteId(c)])}goToCreate(){this.router.navigate(["/blog-entry"])}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,b1.A)(function*(){if(c.pendingDeleteEntry?._id){c.deletingEntryId=c.pendingDeleteEntry._id,c.closeDeleteDialog();try{yield c.domeBlogService.deleteBlogEntry(c.deletingEntryId),yield c.loadEntries()}catch(n){console.error("There was an error while deleting the entry!",n)}finally{c.deletingEntryId=null}}else c.closeDeleteDialog()})()}loadEntries(){var c=this;return(0,b1.A)(function*(){try{let n=yield c.domeBlogService.getBlogEntries();c.entries=Array.isArray(n)?n:[]}catch{c.entries=[]}})()}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 n=c?.tags;return Array.isArray(n)?n.map(l=>(l??"").toString().trim()).filter(l=>l.length>0):"string"==typeof n?n.split(",").map(l=>l.trim()).filter(l=>l.length>0):[]}getEntryExcerpt(c){const n=(c?.excerpt||"").toString().trim();if(n)return n;const l=(c?.metaDescription||"").toString().trim();if(l)return l;const r=this.stripMarkdown((c?.content||"").toString());return this.truncateText(r,260)}stripMarkdown(c){return c.replace(/!\[[^\]]*]\([^)]*\)/g," ").replace(/\[[^\]]*]\([^)]*\)/g," ").replace(/[`*_>#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,n){return!c||c.length<=n?c:`${c.slice(0,n).trim()}...`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(H2),e.rXU(L2.s),e.rXU(c6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dome-blog"]],standalone:!0,features:[e.aNF],decls:12,vars:6,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-[#DDE6F6]"],[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-[#0B1528]"],["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"],[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,"text-2xl","font-bold","mb-4","dark:text-white","break-words"],[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"],[1,"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",3,"src","alt"],[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"]],template:function(n,l){1&n&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),e.EFF(6," Blog "),e.k0s()(),e.DNE(7,S9,5,0,"button",6),e.k0s()()(),e.j41(8,"div",7),e.Z7z(9,b,20,10,"div",8,e.fX1),e.k0s()(),e.j41(11,"app-confirm-dialog",9),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&n&&(e.R7$(7),e.vxM(7,l.checkAdmin?7:-1),e.R7$(2),e.Dyx(l.entries),e.R7$(2),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass))},dependencies:[L.MD,L.vh,C6.w]})}}return t})();const xn={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"]},Xe={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"]},Om={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"]},vi={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"]},oc={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"]},BD={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"]},sT={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"]},qT={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"]},AA={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"]},AL={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"]},Hy={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"]},FO={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"]},BV={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"]},Ok={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"]},Af1={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"]},qf1={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"]},M9={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 pe{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_CATALOG=h1.c.PRODUCT_CATALOG}constructor(a){this.http=a}formatCheapestPricePlan(a){var c={},n=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(m=>m.priceType===M9.PRICE.ONE_TIME)).length>0){for(var r=0;rNumber(l[r].price?.value))&&(n=a.productOfferingPrice[r]);c={priceType:n?.priceType,price:n?.price?.value,unit:n?.price?.unit,text:"one time"}}else l=a.productOfferingPrice.filter(function(m){return void 0!==m.priceType?-1!==[M9.PRICE.RECURRING,M9.PRICE.USAGE].indexOf(m.priceType?.toLocaleLowerCase()):""}),c={priceType:l[0]?.priceType,price:l[0]?.price?.value,unit:l[0]?.price?.unit,text:l[0]?.priceType?.toLocaleLowerCase()==M9.PRICE.RECURRING?l[0]?.recurringChargePeriodType:l[0]?.priceType?.toLocaleLowerCase()==M9.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 n=0;n0&&(n="custom"===(yield c.getProductPrice(a.productOfferingPrice[0].id)).priceType?.toLowerCase()),n})()}calculatePrice(a){return console.log("Simulating HTTP call with payload:",a),this.http.post(`${pe.BASE_URL}/billing/order/`,a)}static{this.\u0275fac=function(c){return new(c||pe)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}}var ku1=v(4412);class r8{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_CART=h1.c.SHOPPING_CART}constructor(a){this.http=a,this.cartSubject=new ku1.t([]),this.cart$=this.cartSubject.asObservable()}getShoppingCart(){var a=this;return(0,b1.A)(function*(){let c=`${r8.BASE_URL}${r8.API_CART}/item/`;const n=yield(0,U2.s)(a.http.get(c));return a.cartSubject.next(n),n})()}addItemShoppingCart(a){var c=this;return(0,b1.A)(function*(){console.log("adding to cart"),console.log(a);let n=`${r8.BASE_URL}${r8.API_CART}/item/`;yield(0,U2.s)(c.http.post(n,a)),yield c.refreshCart()})()}removeItemShoppingCart(a){var c=this;return(0,b1.A)(function*(){let n=`${r8.BASE_URL}${r8.API_CART}/item/${a}`;yield(0,U2.s)(c.http.delete(n)),yield c.refreshCart()})()}emptyShoppingCart(){var a=this;return(0,b1.A)(function*(){console.log("removing cart");let c=`${r8.BASE_URL}${r8.API_CART}/empty/`;yield(0,U2.s)(a.http.post(c,{})),yield a.refreshCart()})()}refreshCart(){var a=this;return(0,b1.A)(function*(){const c=yield a.getShoppingCart();a.cartSubject.next(c)})()}static{this.\u0275fac=function(c){return new(c||r8)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:r8,factory:r8.\u0275fac,providedIn:"root"})}}const gI1=(t,a)=>({"break-all":t,"break-words":a});function _I1(t,a){1&t&&(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 LI1(t,a){if(1&t&&e.nrm(0,"img",22),2&t){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function CI1(t,a){1&t&&e.nrm(0,"img",30)}function zI1(t,a){1&t&&e.EFF(0," Estimated price: ")}function MI1(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function xI1(t,a){if(1&t&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2),e.k0s(),e.j41(3,"span",33),e.DNE(4,zI1,1,0),e.EFF(5),e.DNE(6,MI1,1,1),e.k0s()()),2&t){const c=a.$implicit,n=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,n.hasKey(c,"recurringChargePeriod")?6:-1)}}function bI1(t,a){if(1&t&&(e.j41(0,"div",26),e.Z7z(1,xI1,7,5,"div",31,e.fX1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function yI1(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"div",20)(3,"div",21),e.DNE(4,LI1,1,1,"img",22)(5,CI1,1,0),e.k0s(),e.j41(6,"div",23)(7,"p",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.goToProdDetails(l))}),e.EFF(8),e.k0s()()(),e.j41(9,"div",25),e.DNE(10,bI1,3,0,"div",26),e.k0s()(),e.j41(11,"div",27)(12,"button",28),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.deleteProduct(l))}),e.qSk(),e.j41(13,"svg",29),e.nrm(14,"path",6),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,gI1,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(10,c.options.pricing?10:-1)}}function FI1(t,a){if(1&t&&e.Z7z(0,yI1,15,7,"div",18,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c)}}function vI1(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",13),e.DNE(1,FI1,2,0),e.j41(2,"div",14)(3,"button",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.goToShoppingCart(r.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&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.vxM(1,n.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 kI1(t,a){if(1&t&&e.Z7z(0,vI1,8,6,"div",13,e.fX1),2&t){const c=e.XpG(2);e.Dyx(c.items)}}function wI1(t,a){1&t&&(e.j41(0,"p",34),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI("",e.bMT(2,1,"CART_DRAWER._empty"),"."))}function SI1(t,a){if(1&t&&(e.j41(0,"div",12),e.DNE(1,kI1,2,0)(2,wI1,3,3),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.items.length>0?1:2)}}let wu1=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.eventMessage=n,this.priceService=l,this.cartService=r,this.api=m,this.cdr=z,this.router=F,this.faCartShopping=AL,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,P1.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 n=(0,b1.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 n.apply(this,arguments)}}())}catch(n){this.loading=!1,this.handleError(n,"There was an error while retrieving the cart!")}}handleError(c,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}hasKey(c,n){return n in c}deleteProduct(c){var n=this;return(0,b1.A)(function*(){yield n.cartService.removeItemShoppingCart(c.id),console.log("deleted"),n.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===h1.c.SELLER_ROLE).id}goToShoppingCart(c){this.hideCart(),this.router.navigate(["/checkout",c])}getProviderInfo(){var c=this;return(0,b1.A)(function*(){for(let n=0;n{const r=l.relatedParty?.find(m=>m.role===h1.c.SELLER_ROLE)?.id;return r&&(n[r]||(n[r]=[]),n[r].push(l)),n},{}));console.log(c),this.items=c}isArray(c){return Array.isArray(c)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(H2),e.rXU(pe),e.rXU(r8),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.bIt("click",function(m){return m.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,_I1,6,0,"div",8)(13,SI1,3,1),e.k0s()),2&n&&(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:[L.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 t})();const OL1={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"]},vr1={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"]},gC1={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"]},AC1={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"]},ax1={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"]},Mv1={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"]},pI2=(t,a)=>a.id,Jv1=(t,a)=>({"break-all":t,"break-words":a});function hI2(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.FS9("title",null==c?null:c.name),e.Y8G("ngClass",e.l_i(10,Jv1,l.hasLongWord(null==c?null:c.name,20),!l.hasLongWord(null==c?null:c.name,20)))("id","badge-dismiss-"+n),e.R7$(),e.Y8G("ngClass",e.l_i(13,Jv1,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-"+n),e.R7$(4),e.JRh(e.bMT(9,8,"CATEGORIES_FILTER._remove_badge"))}}function gI2(t,a){if(1&t&&e.Z7z(0,hI2,10,16,"span",5,pI2),2&t){const c=e.XpG();e.Dyx(c.selected)}}let CE=(()=>{class t{constructor(c,n){this.localStorage=c,this.eventMessage=n,this.selected=[],this.destroy$=new S.B,this.faAddressCard=oc,this.faFilterList=ax1,this.faTag=D2._2z,this.selected=[],this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(l=>{if("AddedFilter"===l.type){const r=l.value;-1==this.selected.findIndex(z=>z.id===r.id)&&this.selected.push(l.value)}else if("RemovedFilter"===l.type){const r=l.value,m=this.selected.findIndex(z=>z.id===r.id);m>-1&&this.selected.splice(m,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)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,gI2,2,0),e.k0s()()()),2&n&&(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,L.YU]})}}return t})(),Qv1=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"europeTrademark")," "))},dependencies:[s1.D9],encapsulation:2})}}return t})();class Uk{static{this.BASE_URL=h1.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(L2.s))}}static{this.\u0275prov=e.jDH({token:Uk,factory:Uk.\u0275fac,providedIn:"root"})}}const _I2=()=>[1,2,3,4,5];function LI2(t,a){if(1&t&&(e.j41(0,"h5",9),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.rateMessage)}}function CI2(t,a){if(1&t&&(e.j41(0,"h5",9),e.EFF(1),e.k0s(),e.j41(2,"p",13),e.EFF(3,"(optional)"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.writeMessage)}}function zI2(t,a){if(1&t){const c=e.RV6();e.qSk(),e.j41(0,"svg",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.setRating(l))}),e.nrm(1,"path",18),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",n.rating>=c?"text-primary-100":"text-gray-300 dark:text-gray-500")}}function MI2(t,a){1&t&&(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,zI2,2,1,":svg:svg",16,e.fX1),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._tap")),e.R7$(3),e.Dyx(e.lJ4(3,_I2)))}function xI2(t,a){1&t&&(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&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._write")))}function bI2(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"FEEDBACK._send")," "))}function yI2(t,a){if(1&t&&(e.j41(0,"div",7),e.nrm(1,"fa-icon",8),e.DNE(2,LI2,2,1,"h5",9)(3,CI2,4,1),e.k0s(),e.j41(4,"div",10),e.DNE(5,MI2,7,4,"div",11)(6,xI2,6,3)(7,bI2,6,3,"div",12),e.k0s()),2&t){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 FI2(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faHandsHoldingHeart),e.R7$(2),e.JRh(e.bMT(4,2,"FEEDBACK._thanks"))}}function vI2(t,a){if(1&t){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 r=e.XpG();return e.DH7(r.wantsFeedback,l)||(r.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 r=e.XpG();return e.DH7(r.wantsFeedback,l)||(r.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&t){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 SH=(()=>{class t{constructor(c,n,l){this.eventMessage=c,this.feedbackService=n,this.localStorage=l,this.faMessagePen=D2.a5l,this.faHandsHoldingHeart=D2.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,b1.A)(function*(){if(0==c.addComment)c.addComment=!0;else{let n={rating:c.rating,type:c.type};null!=document.getElementById("message")&&(n.description=document.getElementById("message")?.value),yield(0,U2.s)(c.feedbackService.sendFeedback(n)),c.showThanksMessage=!0,yield(0,U2.s)(c.feedbackService.sendFeedback(n)),c.showThanksMessage=!0}})()}hide(){let l={expire:this.localStorage.getObject("feedback")?.expire??h1.c?.feedbackCampaignExpiration??0,approval:!1};this.localStorage.setObject("feedback",l),this.eventMessage.emitCloseFeedback(!0)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2),e.rXU(Uk),e.rXU(L2.s))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["feedback-modal"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(m){return m.stopPropagation()}),e.j41(2,"div",2)(3,"button",3),e.bIt("click",function(m){return l.hide(),m.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,yI2,8,4)(10,FI2,5,4)(11,vI2,19,6),e.k0s()()()),2&n&&(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:[L.YU,p.me,p.Fm,p.BC,p.vS,J2.aY,s1.D9]})}}return t})();const Lk1={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"]},xk1={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"]},Sk1={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"]},Rk1=[{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.support",url:"https://dome-marketplace.eu/contact-us",isRouterLink:!1},{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}]}],iG2=[{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}],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._marketplaceH",children:[{label:"HEADER._browse_serv",url:"/search",isRouterLink:!0},{label:"HEADER._catalogs",url:"/catalogues",isRouterLink:!0}]},{label:"HEADER._resources",url:"https://knowledgebase.dome-marketplace-prd.org/"},{label:"HEADER._blog",url:"/blog",isRouterLink:!0}],footerLinks:Rk1,footerLinksColsNumber:Rk1.length,linkedin:h1.c.DOME_LINKEDIN,youtube:h1.c.DOME_YOUTUBE,twitter:h1.c.DOME_X,privacyPolicy:"assets/documents/privacy.pdf"},dashboard:{showFeaturedOfferings:!0,showPlatformBenefits:!0}}];let Hk=(()=>{class t{constructor(c,n,l,r){this.rendererFactory=c,this.document=n,this.platformId=l,this.injector=r,this.availableThemes=iG2,this.renderer=this.rendererFactory.createRenderer(null,null),this.currentThemeSubject=new ku1.t(null),this.currentTheme$=this.currentThemeSubject.asObservable(),this.defaultTheme=this.availableThemes.find(m=>m.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,n){if((0,L.UE)(this.platformId)&&this.document?.body){const l=this.document.body;n&&n!==c&&this.renderer.removeClass(l,`theme-${n.toLowerCase()}`),this.renderer.addClass(l,`theme-${c.toLowerCase()}`)}}applyThemeBrowserMetadata(c){if(!(0,L.UE)(this.platformId)||!this.document)return;const n=c.browserTitle||c.displayName;n&&(this.document.title=n);const l=c.assets?.faviconUrl;if(!l)return;const r=l.startsWith("/")?l:`/${l}`;let m=this.document.querySelector("link[rel*='icon']");!m&&this.document.head&&(m=this.renderer.createElement("link"),this.renderer.setAttribute(m,"rel","icon"),this.renderer.appendChild(this.document.head,m)),m&&this.renderer.setAttribute(m,"href",r)}initializeProviderTheme(c){let n;if(c&&(n=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),n||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),n||(n=this.defaultTheme),!n&&this.availableThemes.length>0&&(n=this.availableThemes[0]),n){const l=this.currentThemeSubject.value;this.applyThemeClassToBody(n.name,l?.name),this.applyThemeBrowserMetadata(n),this.currentThemeSubject.next(n);try{const r=this.injector.get(s1.c$);r.currentLang&&r.reloadLang(r.currentLang)}catch(r){console.error("No se pudo obtener TranslateService. \xbfEst\xe1 importado el TranslateModule correctamente?",r)}}else console.error("ThemeService: No se pudo determinar un tema para aplicar.")}findTheme(c){let n;return c&&(n=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),n||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),n||(n=this.defaultTheme),n}getCurrentThemeConfig(){return this.currentThemeSubject.value}getAvailableThemes(){return this.availableThemes}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(e._9s),e.KVO(L.qQ),e.KVO(e.Agw),e.KVO(e.zZn))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Ak1=(t,a)=>a.label,Ik1=(t,a)=>a.url,rG2=(t,a)=>a.label+(a.url||""),dG2=t=>({"mr-4":t});function fG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"fa-icon",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.openNewTab(l.url))}),e.k0s()}2&t&&e.Y8G("icon",a.$implicit.icon)}function uG2(t,a){if(1&t&&(e.j41(0,"div",9),e.Z7z(1,fG2,1,1,"fa-icon",14,Ik1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.socialLinks)}}function mG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",19),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(4);return r.feedback=!r.feedback,e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function pG2(t,a){if(1&t&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(2).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function hG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",21),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,r=e.XpG(3);return e.Njj(r.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function gG2(t,a){if(1&t&&e.DNE(0,pG2,3,4,"a",20)(1,hG2,3,3),2&t){const c=e.XpG().$implicit;e.vxM(0,c.isRouterLink?1:0)}}function _G2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,mG2,3,3,"a",18)(2,gG2,2,1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,"Feedback"===c.label?1:2)}}function LG2(t,a){if(1&t&&(e.j41(0,"div")(1,"h3",16),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ul",17),e.Z7z(5,_G2,3,1,"li",null,Ak1),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,c.label)," "),e.R7$(3),e.Dyx(c.navLinks)}}function CG2(t,a){if(1&t&&(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,uG2,3,0,"div",9),e.k0s(),e.j41(10,"div",10)(11,"div",11),e.Z7z(12,LG2,7,3,"div",null,Ak1),e.k0s()()()(),e.j41(14,"div",12)(15,"div",13),e.nrm(16,"app-europe-trademark"),e.k0s()()()()),2&t){const c=e.XpG();e.R7$(9),e.vxM(9,c.socialLinks.length?9:-1),e.R7$(3),e.Dyx(c.footerLinks)}}function zG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"fa-icon",26),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.openNewTab(l.url))}),e.k0s()}if(2&t){const c=a.$implicit;e.Y8G("ngClass",e.eq3(2,dG2,a.$index!==a.$count-1))("icon",c.icon)}}function MG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",27),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(2);return r.feedback=!r.feedback,e.Njj(l.stopPropagation())}),e.EFF(2," Feedback "),e.k0s()()}}function xG2(t,a){if(1&t&&(e.j41(0,"a",28),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function bG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function yG2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,xG2,3,4,"a",28)(2,bG2,3,3),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function FG2(t,a){if(1&t&&(e.j41(0,"div")(1,"div",22)(2,"div",23),e.Z7z(3,zG2,1,4,"fa-icon",24,Ik1),e.k0s(),e.j41(5,"ul",25),e.DNE(6,MG2,3,0,"li"),e.Z7z(7,yG2,3,1,"li",null,rG2),e.k0s()()()),2&t){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 vG2(t,a){1&t&&(e.nrm(0,"feedback-modal",1),e.nI1(1,"translate"),e.nI1(2,"translate")),2&t&&e.Y8G("rateMessage",e.bMT(1,2,"FEEDBACK._footer_title"))("writeMessage",e.bMT(2,4,"FEEDBACK._footer_improve"))}let Pk1=(()=>{class t{constructor(c,n,l,r){this.themeService=c,this.localStorage=n,this.eventMessage=l,this.router=r,this.faLinkedin=xk1,this.faYoutube=Sk1,this.faXTwitter=Lk1,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-Y2().unix()-4>0&&(this.checkLogged=!0)}checkEventMessages(){this.eventMessage.messages$.pipe((0,P1.Q)(this.unSub)).subscribe(c=>{"CloseFeedback"===c.type&&(this.feedback=!1),this.checkIfLogged()})}getCurrentThemeData(){this.themeService.currentTheme$.pipe((0,P1.Q)(this.unSub)).subscribe(c=>{this.isDomeTheme="DOME"===(c?.name||"").toUpperCase(),this.footerLinks=c?.links?.footerLinks||[],this.defaultFooterLinks=this.footerLinks.flatMap(n=>n.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(n){return new(n||t)(e.rXU(Hk),e.rXU(L2.s),e.rXU(H2),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,CG2,17,1,"footer",0)(1,FG2,9,1)(2,vG2,3,6,"feedback-modal",1),2&n&&(e.vxM(0,l.isDomeTheme?0:1),e.R7$(2),e.vxM(2,l.feedback?2:-1))},dependencies:[L.YU,J2.aY,Qv1,SH,s1.D9]})}}return t})();const wG2=function(){function t(a,c){void 0===c&&(c=[]),this._eventType=a,this._eventFunctions=c}return t.prototype.init=function(){var a=this;this._eventFunctions.forEach(function(c){typeof window<"u"&&window.addEventListener(a._eventType,c)})},t}();var NH=function(){return NH=Object.assign||function(t){for(var a,c=1,n=arguments.length;c"u")&&(t instanceof ic(t).ShadowRoot||t instanceof ShadowRoot)}typeof window<"u"&&(window.Dismiss=Uk1,window.initDismisses=Ld1);var Xy=Math.max,AH=Math.min,Gk=Math.round;function zd1(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function Hk1(){return!/^((?!chrome|android).)*safari/i.test(zd1())}function Yk(t,a,c){void 0===a&&(a=!1),void 0===c&&(c=!1);var n=t.getBoundingClientRect(),l=1,r=1;a&&k7(t)&&(l=t.offsetWidth>0&&Gk(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Gk(n.height)/t.offsetHeight||1);var z=(qy(t)?ic(t):window).visualViewport,F=!Hk1()&&c,I=(n.left+(F&&z?z.offsetLeft:0))/l,J=(n.top+(F&&z?z.offsetTop:0))/r,d1=n.width/l,i1=n.height/r;return{width:d1,height:i1,top:J,right:I+d1,bottom:J+i1,left:I,x:I,y:J}}function Md1(t){var a=ic(t);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function Cs(t){return t?(t.nodeName||"").toLowerCase():null}function jL(t){return((qy(t)?t.ownerDocument:t.document)||window.document).documentElement}function xd1(t){return Yk(jL(t)).left+Md1(t).scrollLeft}function Kd(t){return ic(t).getComputedStyle(t)}function bd1(t){var a=Kd(t);return/auto|scroll|overlay|hidden/.test(a.overflow+a.overflowY+a.overflowX)}function DG2(t,a,c){void 0===c&&(c=!1);var n=k7(a),l=k7(a)&&function EG2(t){var a=t.getBoundingClientRect(),c=Gk(a.width)/t.offsetWidth||1,n=Gk(a.height)/t.offsetHeight||1;return 1!==c||1!==n}(a),r=jL(a),m=Yk(t,l,c),z={scrollLeft:0,scrollTop:0},F={x:0,y:0};return(n||!n&&!c)&&(("body"!==Cs(a)||bd1(r))&&(z=function NG2(t){return t!==ic(t)&&k7(t)?function SG2(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):Md1(t)}(a)),k7(a)?((F=Yk(a,!0)).x+=a.clientLeft,F.y+=a.clientTop):r&&(F.x=xd1(r))),{x:m.left+z.scrollLeft-F.x,y:m.top+z.scrollTop-F.y,width:m.width,height:m.height}}function yd1(t){var a=Yk(t),c=t.offsetWidth,n=t.offsetHeight;return Math.abs(a.width-c)<=1&&(c=a.width),Math.abs(a.height-n)<=1&&(n=a.height),{x:t.offsetLeft,y:t.offsetTop,width:c,height:n}}function IH(t){return"html"===Cs(t)?t:t.assignedSlot||t.parentNode||(Cd1(t)?t.host:null)||jL(t)}function Gk1(t){return["html","body","#document"].indexOf(Cs(t))>=0?t.ownerDocument.body:k7(t)&&bd1(t)?t:Gk1(IH(t))}function zE(t,a){var c;void 0===a&&(a=[]);var n=Gk1(t),l=n===(null==(c=t.ownerDocument)?void 0:c.body),r=ic(n),m=l?[r].concat(r.visualViewport||[],bd1(n)?n:[]):n,z=a.concat(m);return l?z:z.concat(zE(IH(m)))}function TG2(t){return["table","td","th"].indexOf(Cs(t))>=0}function Yk1(t){return k7(t)&&"fixed"!==Kd(t).position?t.offsetParent:null}function ME(t){for(var a=ic(t),c=Yk1(t);c&&TG2(c)&&"static"===Kd(c).position;)c=Yk1(c);return c&&("html"===Cs(c)||"body"===Cs(c)&&"static"===Kd(c).position)?a:c||function RG2(t){var a=/firefox/i.test(zd1());if(/Trident/i.test(zd1())&&k7(t)&&"fixed"===Kd(t).position)return null;var l=IH(t);for(Cd1(l)&&(l=l.host);k7(l)&&["html","body"].indexOf(Cs(l))<0;){var r=Kd(l);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||a&&"filter"===r.willChange||a&&r.filter&&"none"!==r.filter)return l;l=l.parentNode}return null}(t)||a}var b5="top",w7="bottom",S7="right",y5="left",xE=[b5,w7,S7,y5],qk="start",bE="end",qk1="viewport",yE="popper",Xk1=xE.reduce(function(t,a){return t.concat([a+"-"+qk,a+"-"+bE])},[]),Wk1=[].concat(xE,["auto"]).reduce(function(t,a){return t.concat([a,a+"-"+qk,a+"-"+bE])},[]),YG2=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function qG2(t){var a=new Map,c=new Set,n=[];function l(r){c.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(z){if(!c.has(z)){var F=a.get(z);F&&l(F)}}),n.push(r)}return t.forEach(function(r){a.set(r.name,r)}),t.forEach(function(r){c.has(r.name)||l(r)}),n}function WG2(t){var a;return function(){return a||(a=new Promise(function(c){Promise.resolve().then(function(){a=void 0,c(t())})})),a}}var Jk1={placement:"bottom",modifiers:[],strategy:"absolute"};function Qk1(){for(var t=arguments.length,a=new Array(t),c=0;c=0?"x":"y"}function Zk1(t){var F,a=t.reference,c=t.element,n=t.placement,l=n?zs(n):null,r=n?Xk(n):null,m=a.x+a.width/2-c.width/2,z=a.y+a.height/2-c.height/2;switch(l){case b5:F={x:m,y:a.y-c.height};break;case w7:F={x:m,y:a.y+a.height};break;case S7:F={x:a.x+a.width,y:z};break;case y5:F={x:a.x-c.width,y:z};break;default:F={x:a.x,y:a.y}}var I=l?vd1(l):null;if(null!=I){var J="y"===I?"height":"width";switch(r){case qk:F[I]=F[I]-(a[J]/2-c[J]/2);break;case bE:F[I]=F[I]+(a[J]/2-c[J]/2)}}return F}var tY2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kk1(t){var a,c=t.popper,n=t.popperRect,l=t.placement,r=t.variation,m=t.offsets,z=t.position,F=t.gpuAcceleration,I=t.adaptive,J=t.roundOffsets,d1=t.isFixed,i1=m.x,N1=void 0===i1?0:i1,J1=m.y,u2=void 0===J1?0:J1,v2="function"==typeof J?J({x:N1,y:u2}):{x:N1,y:u2};N1=v2.x,u2=v2.y;var G2=m.hasOwnProperty("x"),E0=m.hasOwnProperty("y"),d4=y5,V0=b5,e4=window;if(I){var l0=ME(c),q2="clientHeight",o6="clientWidth";l0===ic(c)&&"static"!==Kd(l0=jL(c)).position&&"absolute"===z&&(q2="scrollHeight",o6="scrollWidth"),(l===b5||(l===y5||l===S7)&&r===bE)&&(V0=w7,u2-=(d1&&l0===e4&&e4.visualViewport?e4.visualViewport.height:l0[q2])-n.height,u2*=F?1:-1),l!==y5&&(l!==b5&&l!==w7||r!==bE)||(d4=S7,N1-=(d1&&l0===e4&&e4.visualViewport?e4.visualViewport.width:l0[o6])-n.width,N1*=F?1:-1)}var Ke,je=Object.assign({position:z},I&&tY2),k9=!0===J?function nY2(t,a){var n=t.y,l=a.devicePixelRatio||1;return{x:Gk(t.x*l)/l||0,y:Gk(n*l)/l||0}}({x:N1,y:u2},ic(c)):{x:N1,y:u2};return N1=k9.x,u2=k9.y,Object.assign({},je,F?((Ke={})[V0]=E0?"0":"",Ke[d4]=G2?"0":"",Ke.transform=(e4.devicePixelRatio||1)<=1?"translate("+N1+"px, "+u2+"px)":"translate3d("+N1+"px, "+u2+"px, 0)",Ke):((a={})[V0]=E0?u2+"px":"",a[d4]=G2?N1+"px":"",a.transform="",a))}var uY2={left:"right",right:"left",bottom:"top",top:"bottom"};function $H(t){return t.replace(/left|right|bottom|top/g,function(a){return uY2[a]})}var mY2={start:"end",end:"start"};function ew1(t){return t.replace(/start|end/g,function(a){return mY2[a]})}function cw1(t,a){var c=a.getRootNode&&a.getRootNode();if(t.contains(a))return!0;if(c&&Cd1(c)){var n=a;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function kd1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tw1(t,a,c){return a===qk1?kd1(function pY2(t,a){var c=ic(t),n=jL(t),l=c.visualViewport,r=n.clientWidth,m=n.clientHeight,z=0,F=0;if(l){r=l.width,m=l.height;var I=Hk1();(I||!I&&"fixed"===a)&&(z=l.offsetLeft,F=l.offsetTop)}return{width:r,height:m,x:z+xd1(t),y:F}}(t,c)):qy(a)?function gY2(t,a){var c=Yk(t,!1,"fixed"===a);return c.top=c.top+t.clientTop,c.left=c.left+t.clientLeft,c.bottom=c.top+t.clientHeight,c.right=c.left+t.clientWidth,c.width=t.clientWidth,c.height=t.clientHeight,c.x=c.left,c.y=c.top,c}(a,c):kd1(function hY2(t){var a,c=jL(t),n=Md1(t),l=null==(a=t.ownerDocument)?void 0:a.body,r=Xy(c.scrollWidth,c.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),m=Xy(c.scrollHeight,c.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),z=-n.scrollLeft+xd1(t),F=-n.scrollTop;return"rtl"===Kd(l||c).direction&&(z+=Xy(c.clientWidth,l?l.clientWidth:0)-r),{width:r,height:m,x:z,y:F}}(jL(t)))}function lw1(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function sw1(t,a){return a.reduce(function(c,n){return c[n]=t,c},{})}function FE(t,a){void 0===a&&(a={});var n=a.placement,l=void 0===n?t.placement:n,r=a.strategy,m=void 0===r?t.strategy:r,z=a.boundary,F=void 0===z?"clippingParents":z,I=a.rootBoundary,J=void 0===I?qk1:I,d1=a.elementContext,i1=void 0===d1?yE:d1,N1=a.altBoundary,J1=void 0!==N1&&N1,u2=a.padding,v2=void 0===u2?0:u2,G2=lw1("number"!=typeof v2?v2:sw1(v2,xE)),d4=t.rects.popper,V0=t.elements[J1?i1===yE?"reference":yE:i1],e4=function LY2(t,a,c,n){var l="clippingParents"===a?function _Y2(t){var a=zE(IH(t)),n=["absolute","fixed"].indexOf(Kd(t).position)>=0&&k7(t)?ME(t):t;return qy(n)?a.filter(function(l){return qy(l)&&cw1(l,n)&&"body"!==Cs(l)}):[]}(t):[].concat(a),r=[].concat(l,[c]),z=r.reduce(function(F,I){var J=tw1(t,I,n);return F.top=Xy(J.top,F.top),F.right=AH(J.right,F.right),F.bottom=AH(J.bottom,F.bottom),F.left=Xy(J.left,F.left),F},tw1(t,r[0],n));return z.width=z.right-z.left,z.height=z.bottom-z.top,z.x=z.left,z.y=z.top,z}(qy(V0)?V0:V0.contextElement||jL(t.elements.popper),F,J,m),l0=Yk(t.elements.reference),q2=Zk1({reference:l0,element:d4,strategy:"absolute",placement:l}),o6=kd1(Object.assign({},d4,q2)),I6=i1===yE?o6:l0,S8={top:e4.top-I6.top+G2.top,bottom:I6.bottom-e4.bottom+G2.bottom,left:e4.left-I6.left+G2.left,right:I6.right-e4.right+G2.right},je=t.modifiersData.offset;if(i1===yE&&je){var k9=je[l];Object.keys(S8).forEach(function(Ke){var Ky=[S7,w7].indexOf(Ke)>=0?1:-1,eF=[b5,w7].indexOf(Ke)>=0?"y":"x";S8[Ke]+=k9[eF]*Ky})}return S8}function vE(t,a,c){return Xy(t,AH(a,c))}function aw1(t,a,c){return void 0===c&&(c={x:0,y:0}),{top:t.top-a.height-c.y,right:t.right-a.width+c.x,bottom:t.bottom-a.height+c.y,left:t.left-a.width-c.x}}function ow1(t){return[b5,S7,w7,y5].some(function(a){return t[a]>=0})}var wd1=QG2({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function ZG2(t){var a=t.state,c=t.instance,n=t.options,l=n.scroll,r=void 0===l||l,m=n.resize,z=void 0===m||m,F=ic(a.elements.popper),I=[].concat(a.scrollParents.reference,a.scrollParents.popper);return r&&I.forEach(function(J){J.addEventListener("scroll",c.update,PH)}),z&&F.addEventListener("resize",c.update,PH),function(){r&&I.forEach(function(J){J.removeEventListener("scroll",c.update,PH)}),z&&F.removeEventListener("resize",c.update,PH)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function eY2(t){var a=t.state;a.modifiersData[t.name]=Zk1({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function lY2(t){var a=t.state,c=t.options,n=c.gpuAcceleration,l=void 0===n||n,r=c.adaptive,m=void 0===r||r,z=c.roundOffsets,F=void 0===z||z,I={placement:zs(a.placement),variation:Xk(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,Kk1(Object.assign({},I,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:m,roundOffsets:F})))),null!=a.modifiersData.arrow&&(a.styles.arrow=Object.assign({},a.styles.arrow,Kk1(Object.assign({},I,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:F})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function aY2(t){var a=t.state;Object.keys(a.elements).forEach(function(c){var n=a.styles[c]||{},l=a.attributes[c]||{},r=a.elements[c];!k7(r)||!Cs(r)||(Object.assign(r.style,n),Object.keys(l).forEach(function(m){var z=l[m];!1===z?r.removeAttribute(m):r.setAttribute(m,!0===z?"":z)}))})},effect:function oY2(t){var a=t.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(n){var l=a.elements[n],r=a.attributes[n]||{},z=Object.keys(a.styles.hasOwnProperty(n)?a.styles[n]:c[n]).reduce(function(F,I){return F[I]="",F},{});!k7(l)||!Cs(l)||(Object.assign(l.style,z),Object.keys(r).forEach(function(F){l.removeAttribute(F)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function dY2(t){var a=t.state,n=t.name,l=t.options.offset,r=void 0===l?[0,0]:l,m=Wk1.reduce(function(J,d1){return J[d1]=function rY2(t,a,c){var n=zs(t),l=[y5,b5].indexOf(n)>=0?-1:1,r="function"==typeof c?c(Object.assign({},a,{placement:t})):c,m=r[0],z=r[1];return m=m||0,z=(z||0)*l,[y5,S7].indexOf(n)>=0?{x:z,y:m}:{x:m,y:z}}(d1,a.rects,r),J},{}),z=m[a.placement],I=z.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=z.x,a.modifiersData.popperOffsets.y+=I),a.modifiersData[n]=m}},{name:"flip",enabled:!0,phase:"main",fn:function MY2(t){var a=t.state,c=t.options,n=t.name;if(!a.modifiersData[n]._skip){for(var l=c.mainAxis,r=void 0===l||l,m=c.altAxis,z=void 0===m||m,F=c.fallbackPlacements,I=c.padding,J=c.boundary,d1=c.rootBoundary,i1=c.altBoundary,N1=c.flipVariations,J1=void 0===N1||N1,u2=c.allowedAutoPlacements,v2=a.options.placement,G2=zs(v2),d4=F||(G2!==v2&&J1?function zY2(t){if("auto"===zs(t))return[];var a=$H(t);return[ew1(t),a,ew1(a)]}(v2):[$H(v2)]),V0=[v2].concat(d4).reduce(function(ow,qL){return ow.concat("auto"===zs(qL)?function CY2(t,a){void 0===a&&(a={});var l=a.boundary,r=a.rootBoundary,m=a.padding,z=a.flipVariations,F=a.allowedAutoPlacements,I=void 0===F?Wk1:F,J=Xk(a.placement),d1=J?z?Xk1:Xk1.filter(function(J1){return Xk(J1)===J}):xE,i1=d1.filter(function(J1){return I.indexOf(J1)>=0});0===i1.length&&(i1=d1);var N1=i1.reduce(function(J1,u2){return J1[u2]=FE(t,{placement:u2,boundary:l,rootBoundary:r,padding:m})[zs(u2)],J1},{});return Object.keys(N1).sort(function(J1,u2){return N1[J1]-N1[u2]})}(a,{placement:qL,boundary:J,rootBoundary:d1,padding:I,flipVariations:J1,allowedAutoPlacements:u2}):qL)},[]),e4=a.rects.reference,l0=a.rects.popper,q2=new Map,o6=!0,I6=V0[0],S8=0;S8=0,eF=Ky?"width":"height",dc=FE(a,{placement:je,boundary:J,rootBoundary:d1,altBoundary:i1,padding:I}),w9=Ky?Ke?S7:y5:Ke?w7:b5;e4[eF]>l0[eF]&&(w9=$H(w9));var gG=$H(w9),cF=[];if(r&&cF.push(dc[k9]<=0),z&&cF.push(dc[w9]<=0,dc[gG]<=0),cF.every(function(ow){return ow})){I6=je,o6=!1;break}q2.set(je,cF)}if(o6)for(var uf1=function(qL){var OE=V0.find(function(CG){var tF=q2.get(CG);if(tF)return tF.slice(0,qL).every(function(mf1){return mf1})});if(OE)return I6=OE,"break"},jE=J1?3:1;jE>0&&"break"!==uf1(jE);jE--);a.placement!==I6&&(a.modifiersData[n]._skip=!0,a.placement=I6,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function FY2(t){var a=t.state,c=t.options,n=t.name,l=c.mainAxis,r=void 0===l||l,m=c.altAxis,z=void 0!==m&&m,i1=c.tether,N1=void 0===i1||i1,J1=c.tetherOffset,u2=void 0===J1?0:J1,v2=FE(a,{boundary:c.boundary,rootBoundary:c.rootBoundary,padding:c.padding,altBoundary:c.altBoundary}),G2=zs(a.placement),E0=Xk(a.placement),d4=!E0,V0=vd1(G2),e4=function bY2(t){return"x"===t?"y":"x"}(V0),l0=a.modifiersData.popperOffsets,q2=a.rects.reference,o6=a.rects.popper,I6="function"==typeof u2?u2(Object.assign({},a.rects,{placement:a.placement})):u2,S8="number"==typeof I6?{mainAxis:I6,altAxis:I6}:Object.assign({mainAxis:0,altAxis:0},I6),je=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,k9={x:0,y:0};if(l0){if(r){var Ke,Ky="y"===V0?b5:y5,eF="y"===V0?w7:S7,dc="y"===V0?"height":"width",w9=l0[V0],gG=w9+v2[Ky],cF=w9-v2[eF],_G=N1?-o6[dc]/2:0,uf1=E0===qk?q2[dc]:o6[dc],jE=E0===qk?-o6[dc]:-q2[dc],LG=a.elements.arrow,ow=N1&&LG?yd1(LG):{width:0,height:0},qL=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},OE=qL[Ky],CG=qL[eF],tF=vE(0,q2[dc],ow[dc]),mf1=d4?q2[dc]/2-_G-tF-OE-S8.mainAxis:uf1-tF-OE-S8.mainAxis,Fb0=d4?-q2[dc]/2+_G+tF+CG+S8.mainAxis:jE+tF+CG+S8.mainAxis,pf1=a.elements.arrow&&ME(a.elements.arrow),vb0=pf1?"y"===V0?pf1.clientTop||0:pf1.clientLeft||0:0,pE1=null!=(Ke=je?.[V0])?Ke:0,wb0=w9+Fb0-pE1,hE1=vE(N1?AH(gG,w9+mf1-pE1-vb0):gG,w9,N1?Xy(cF,wb0):cF);l0[V0]=hE1,k9[V0]=hE1-w9}if(z){var gE1,nF=l0[e4],zG="y"===e4?"height":"width",_E1=nF+v2["x"===V0?b5:y5],LE1=nF-v2["x"===V0?w7:S7],hf1=-1!==[b5,y5].indexOf(G2),CE1=null!=(gE1=je?.[e4])?gE1:0,zE1=hf1?_E1:nF-q2[zG]-o6[zG]-CE1+S8.altAxis,ME1=hf1?nF+q2[zG]+o6[zG]-CE1-S8.altAxis:LE1,xE1=N1&&hf1?function yY2(t,a,c){var n=vE(t,a,c);return n>c?c:n}(zE1,nF,ME1):vE(N1?zE1:_E1,nF,N1?ME1:LE1);l0[e4]=xE1,k9[e4]=xE1-nF}a.modifiersData[n]=k9}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function wY2(t){var a,c=t.state,n=t.name,l=t.options,r=c.elements.arrow,m=c.modifiersData.popperOffsets,z=zs(c.placement),F=vd1(z),J=[y5,S7].indexOf(z)>=0?"height":"width";if(r&&m){var d1=function(a,c){return lw1("number"!=typeof(a="function"==typeof a?a(Object.assign({},c.rects,{placement:c.placement})):a)?a:sw1(a,xE))}(l.padding,c),i1=yd1(r),N1="y"===F?b5:y5,J1="y"===F?w7:S7,u2=c.rects.reference[J]+c.rects.reference[F]-m[F]-c.rects.popper[J],v2=m[F]-c.rects.reference[F],G2=ME(r),E0=G2?"y"===F?G2.clientHeight||0:G2.clientWidth||0:0,l0=E0/2-i1[J]/2+(u2/2-v2/2),q2=vE(d1[N1],l0,E0-i1[J]-d1[J1]);c.modifiersData[n]=((a={})[F]=q2,a.centerOffset=q2-l0,a)}},effect:function SY2(t){var a=t.state,n=t.options.element,l=void 0===n?"[data-popper-arrow]":n;null!=l&&("string"==typeof l&&!(l=a.elements.popper.querySelector(l))||cw1(a.elements.popper,l)&&(a.elements.arrow=l))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function EY2(t){var a=t.state,c=t.name,n=a.rects.reference,l=a.rects.popper,r=a.modifiersData.preventOverflow,m=FE(a,{elementContext:"reference"}),z=FE(a,{altBoundary:!0}),F=aw1(m,n),I=aw1(z,l,r),J=ow1(F),d1=ow1(I);a.modifiersData[c]={referenceClippingOffsets:F,popperEscapeOffsets:I,isReferenceHidden:J,hasPopperEscaped:d1},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":J,"data-popper-escaped":d1})}}]}),OL=function(){return OL=Object.assign||function(t){for(var a,c=1,n=arguments.length;cconsole.log(c),error:c=>console.error(c),complete:()=>console.info("complete")})}logout(){let a=`${x9.BASE_URL}/logout`;return console.log("-- logout --"),(0,U2.s)(this.http.get(a))}static{this.\u0275fac=function(c){return new(c||x9)(e.KVO(g.Qq),e.KVO(L2.s))}}static{this.\u0275prov=e.jDH({token:x9,factory:x9.\u0275fac,providedIn:"root"})}}let $Y2=(()=>{class t{constructor(){}get intervalId(){return this._intervalId}set intervalId(c){this._intervalId=c}fetchServer(c,n,l,r){let z=new URL(window.location.href).origin;fetch(`${h1.c.BASE_URL}${l}?state=${n}&callback_url=${z}`).then(F=>{400!==F.status&&500!==F.status?401!==F.status&&(this.stopChecking(c),c.close(),r(F)):this.stopChecking(c)}).catch(F=>{this.stopChecking(c)})}poll(c,n,l,r){null!=c&&(this.intervalId=window.setInterval(()=>{this.fetchServer(c,n,l,r)},1e3,c,n),window.setTimeout(z=>{this.stopChecking(z)},45e3,c))}launchPopup(c,n,l,r){window,window,window,window;window.innerWidth?window:document.documentElement.clientWidth?document:screen;const N1=(window.innerHeight?window:document.documentElement.clientHeight?document:screen,window,window.open(c,"_blank"));return N1?.focus(),N1}pollCertCredential(c,n){return new Promise((l,r)=>{this.poll(c,n,h1.c.SIOP_INFO.pollCertPath,function(){var m=(0,b1.A)(function*(z){let F=yield z.json();l(F)});return function(z){return m.apply(this,arguments)}}())})}pollServer(c,n){this.poll(c,n,h1.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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const jY2=["navbarbutton"],_w1=(t,a)=>a.id,Lw1=(t,a)=>a.label,Cw1=()=>({mobile:!1}),zw1=()=>({mobile:!0});function OY2(t,a){if(1&t&&e.nrm(0,"img",7),2&t){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 BY2(t,a){if(1&t&&(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&t){e.XpG();const c=e.sdS(37),n=e.sdS(39);e.R7$(3),e.Y8G("ngTemplateOutlet",c)("ngTemplateOutletContext",e.lJ4(4,zw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.lJ4(5,zw1))}}function VY2(t,a){if(1&t){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("/my-offerings"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._offerings")," ")}}function UY2(t,a){if(1&t){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("/admin"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._admin")," ")}}function HY2(t,a){if(1&t){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("/quote-list"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Quotes "),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function GY2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",42),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&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function YY2(t,a){if(1&t){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&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faRuler)}}function qY2(t,a){if(1&t&&(e.j41(0,"button",37),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function XY2(t,a){if(1&t){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,VY2,5,4,"li")(14,UY2,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,HY2,4,1,"li")(21,GY2,4,1,"li"),e.j41(22,"li")(23,"a",34),e.nrm(24,"fa-icon",21),e.EFF(25,"Analytics "),e.k0s()(),e.DNE(26,YY2,4,1,"li"),e.j41(27,"li")(28,"button",35),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/product-inventory"))}),e.nrm(29,"fa-icon",21),e.EFF(30),e.nI1(31,"translate"),e.k0s()(),e.j41(32,"li")(33,"button",36),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/checkout"))}),e.nrm(34,"fa-icon",21),e.EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.nrm(37,"div",31),e.j41(38,"div",19),e.DNE(39,qY2,4,4,"button",37),e.j41(40,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.logout())}),e.nrm(41,"fa-icon",21),e.EFF(42),e.nI1(43,"translate"),e.k0s()()()}if(2&t){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,20,"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,22,"HEADER._orders")," "),e.R7$(2),e.vxM(20,c.quotesEnabled?20:-1),e.R7$(),e.vxM(21,c.tenderEnabled?21:-1),e.R7$(2),e.Y8G("href",c.analytics,e.B4B),e.R7$(),e.Y8G("icon",c.faPieChart),e.R7$(2),e.vxM(26,c.roles.includes(c.sellerRole)?26:-1),e.R7$(3),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(31,24,"HEADER._inventory")," "),e.R7$(4),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(36,26,"HEADER._cart")," "),e.R7$(4),e.vxM(39,c.orgs.length>0&&c.isAdmin?39:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(43,28,"HEADER._sign_out")," ")}}function WY2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,r=e.XpG();return r.changeSession(l,!1),e.Njj(r.hideDropdown("orgs-dropdown"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.k0s()()}if(2&t){const c=e.XpG().$implicit,n=e.XpG();e.R7$(2),e.Y8G("icon",n.faUsers),e.R7$(),e.SpI("",c.name," ")}}function JY2(t,a){if(1&t&&e.DNE(0,WY2,4,2,"li"),2&t){const c=a.$implicit,n=e.XpG();e.vxM(0,c.id!=(null==n.loginInfo?null:n.loginInfo.logged_as)||(null==n.loginInfo?null:n.loginInfo.logged_as)==(null==n.loginInfo?null:n.loginInfo.id)?0:-1)}}function QY2(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(2),e.Y8G("icon",c.faUser),e.R7$(),e.SpI("",null==c.loginInfo?null:c.loginInfo.user," ")}}function ZY2(t,a){if(1&t&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function KY2(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(3).$implicit,m=e.XpG(2);return e.Njj(m.goTo(l.url,r.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.BMQ("data-cy","/search"===c.url?"browseServices":"/catalogues"===c.url?"browseCatalogs":null),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function eq2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,ZY2,3,4,"a",20)(2,KY2,3,4),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function cq2(t,a){if(1&t&&(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,eq2,3,1,"li",null,Lw1),e.k0s()()()),2&t){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 tq2(t,a){if(1&t&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function nq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(3).$implicit,m=e.XpG(2);return e.Njj(m.goTo(l.url,r.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function lq2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,tq2,3,4,"a",50)(2,nq2,3,3),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function sq2(t,a){if(1&t&&e.Z7z(0,lq2,3,1,"li",null,Lw1),2&t){const c=e.XpG(2).$implicit;e.Dyx(c.children)}}function aq2(t,a){if(1&t&&e.DNE(0,cq2,10,8,"li",45)(1,sq2,2,0),2&t){const c=e.XpG(2).mobile;e.vxM(0,c?1:0)}}function oq2(t,a){if(1&t&&(e.j41(0,"a",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(3).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function iq2(t,a){if(1&t&&(e.j41(0,"a",53),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){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 rq2(t,a){if(1&t&&e.DNE(0,oq2,3,4,"a",52)(1,iq2,3,5),2&t){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function dq2(t,a){if(1&t&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){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(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3).$implicit,r=e.XpG(2);return e.Njj(r.goTo(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG(3).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function uq2(t,a){if(1&t&&e.DNE(0,dq2,3,4,"a",50)(1,fq2,3,3),2&t){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function mq2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,rq2,2,1)(2,uq2,2,1),e.k0s()),2&t){const c=e.XpG(2).mobile;e.R7$(),e.vxM(1,c?2:1)}}function pq2(t,a){if(1&t&&e.DNE(0,aq2,2,1)(1,mq2,3,1),2&t){const c=a.$implicit;e.vxM(0,null!=c.children&&c.children.length?0:1)}}function hq2(t,a){if(1&t&&e.Z7z(0,pq2,2,1,null,null,_w1),2&t){const c=e.XpG();e.Dyx(c.headerLinks)}}function gq2(t,a){if(1&t){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&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function _q2(t,a){if(1&t){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&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function Lq2(t,a){if(1&t&&e.DNE(0,gq2,3,3,"button",55)(1,_q2,3,3),2&t){const c=e.XpG(2).mobile;e.vxM(0,c?0:1)}}function Cq2(t,a){if(1&t){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 zq2(t,a){if(1&t){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 Mq2(t,a){if(1&t&&e.DNE(0,Lq2,2,1)(1,Cq2,2,0,"button",54)(2,zq2,2,0),2&t){const c=e.XpG().mobile,n=e.XpG();e.vxM(0,"DOME"===n.providerThemeName?0:-1),e.R7$(),e.vxM(1,c?1:2)}}function xq2(t,a){if(1&t&&e.nrm(0,"fa-layers-counter",62),2&t){const c=e.XpG(4);e.Y8G("content",c.cartCount.toString())}}function bq2(t,a){if(1&t){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,xq2,1,1,"fa-layers-counter",62),e.k0s()(),e.j41(4,"div",63)(5,"span",64),e.EFF(6),e.k0s()()}if(2&t){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 yq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._offerings")," ")}}function Fq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._admin")," ")}}function vq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function kq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function wq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faRuler)}}function Sq2(t,a){if(1&t&&(e.j41(0,"button",71),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function Nq2(t,a){if(1&t){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,yq2,4,4,"button",71)(13,Fq2,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,vq2,3,1,"button",71)(19,kq2,3,1,"button",71),e.j41(20,"a",50),e.nrm(21,"fa-icon",21),e.EFF(22,"Analytics "),e.k0s(),e.DNE(23,wq2,3,1,"button",71),e.j41(24,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/product-inventory"))}),e.nrm(25,"fa-icon",21),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/checkout"))}),e.nrm(29,"fa-icon",21),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"a",50),e.nrm(33,"fa-icon",21),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"a",50),e.nrm(37,"fa-icon",21),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.DNE(40,Sq2,4,4,"button",71),e.j41(41,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.logout())}),e.nrm(42,"fa-icon",21),e.EFF(43),e.nI1(44,"translate"),e.k0s()}if(2&t){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,27,"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,29,"HEADER._orders")," "),e.R7$(2),e.vxM(18,c.quotesEnabled?18:-1),e.R7$(),e.vxM(19,c.tenderEnabled?19:-1),e.R7$(),e.Y8G("href",c.analytics,e.B4B),e.R7$(),e.Y8G("icon",c.faPieChart),e.R7$(2),e.vxM(23,c.roles.includes(c.sellerRole)?23:-1),e.R7$(2),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(27,31,"HEADER._inventory")," "),e.R7$(3),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(31,33,"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(35,35,"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(39,37,"HEADER._ticketing")," "),e.R7$(2),e.vxM(40,c.orgs.length>0&&c.isAdmin?40:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(44,39,"HEADER._sign_out")," ")}}function Eq2(t,a){if(1&t&&e.DNE(0,bq2,7,4)(1,Nq2,45,41),2&t){const c=e.XpG().mobile;e.vxM(0,c?1:0)}}function Dq2(t,a){if(1&t&&e.DNE(0,Mq2,3,2)(1,Eq2,2,1),2&t){const c=e.XpG();e.vxM(0,c.is_logged?1:0)}}function Tq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",23)(1,"app-cart-drawer",72),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()()}}let Mw1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.translate=c,this.localStorage=n,this.api=l,this.loginService=r,this.cdr=m,this.route=z,this.eventMessage=F,this.router=I,this.qrVerifier=J,this.themeService=d1,this.sc=i1,this.providerThemeName=h1.c.providerThemeName,this.quotesEnabled=h1.c.QUOTES_ENABLED,this.tenderEnabled=h1.c.TENDER_ENABLED,this.knowledge=h1.c.KNOWLEDGE_BASE_URL,this.knowledge_onboarding=h1.c.KB_ONBOARDING_GUIDELINES_URL,this.knowledge_guidelines=h1.c.KB_GUIDELNES_URL,this.registration=h1.c.REGISTRATION_FORM_URL,this.ticketing=h1.c.TICKETING_SYSTEM_URL,this.analytics=h1.c.analytics,this.domeAbout=h1.c.DOME_ABOUT_LINK,this.domePublish=h1.c.DOME_PUBLISH_LINK,this.sellerRole=h1.c.SELLER_ROLE,this.orgAdminRole=h1.c.ORG_ADMIN_ROLE,this.certifierRole=h1.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 M1.yU,this.destroy$=new S.B,this.faCartShopping=AL,this.faHandHoldingBox=Af1,this.faAddressCard=oc,this.faArrowRightFromBracket=Xe,this.faBoxesStacked=Hy,this.faClipboardCheck=qT,this.faBrain=qf1,this.faAnglesLeft=Ok,this.faUser=vi,this.faUsers=Om,this.faCogs=BV,this.faReceipt=FO,this.faRuler=AA,this.faPieChart=BD,this.faBars=xn,this.faArrowRight=sT}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(n=>{this.currentTheme=n,this.themeAuthUrls=n?.authUrls,this.headerLinks=this.resolveLinksEnv(n?.links?.headerLinks||[]),n?.links&&(n.links.headerLinks=this.headerLinks)}),this.hydrateLoginFromStorage(),this.sc.cart$.pipe((0,P1.Q)(this.destroy$)).subscribe(n=>{this.cartCount=n.length,this.cdr.detectChanges()}),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(n=>{"ToggleCartDrawer"===n.type&&(this.showCart=!1,this.cdr.detectChanges()),"LoginProcess"===n.type&&this.hydrateLoginFromStorage()}),S2()}ngAfterViewInit(){S2()}ngOnDestroy(){this.qrWindow?.close(),this.qrWindow=null,this.themeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}resolveLinksEnv(c){const n=l=>l.map(r=>{const m={...r};return r.environmentName&&(m.url=h1.c[r.environmentName]||""),r.children?.length&&(m.children=n(r.children)),m});return n(c)}hydrateLoginFromStorage(){const c=this.localStorage.getObject("login_items");if("{}"!==JSON.stringify(c))if(c.expire-Y2().unix()-4<=0)this.resetLoginState();else{if(this.loginInfo=c,this.is_logged=!0,this.orgs=c.organizations??[],this.isAdmin=(c.roles??[]).some(n=>n.name===h1.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(n=>n.name);else{const n=this.orgs.find(l=>l.id===c.logged_as);this.loggedAsOrg=!0,this.username=n?.name??"",this.usercharacters=(this.username.slice(0,2)||"").toUpperCase(),this.email=n?.description??"",this.roles=(n?.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,n){this.closeUserDropdown(),n&&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,b1.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,n){this.closeUserDropdown();const l=this.localStorage.getObject("login_items");if("{}"===JSON.stringify(l))return;if(n)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 S2();const r=this.orgs[c];r&&(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:r.id},this.localStorage.setObject("login_items",this.loginInfo),this.eventMessage.emitChangedSession(this.loginInfo),this.hydrateLoginFromStorage(),S2())}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===h1.c.SIOP_INFO.enabled&&void 0===this.qrVerifier.intervalId){this.statePair=A4();let c=`${h1.c.SIOP_INFO.verifierHost}${h1.c.SIOP_INFO.verifierQRCodePath}?state=${this.statePair}&client_id=${h1.c.SIOP_INFO.clientID}`;if(h1.c.SIOP_INFO.isRedirection){const m=new URL(window.location.href),z=new URL(m.origin);return z.pathname=h1.c.SIOP_INFO.requestUri,c=`${c}&response_type=code&request_uri=${z.toString()}&scope=openid%20learcredential&nonce=${A4()}`,void(window.location.href=c)}const n=new URL(h1.c.SIOP_INFO.callbackURL),l=new URL(window.location.href);return l.pathname=n.pathname,l.search=n.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===h1.c.SIOP_INFO.enabled&&window.location.replace(`${h1.c.BASE_URL}/login`)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(s1.c$),e.rXU(L2.s),e.rXU(F2.F),e.rXU(x9),e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(H2),e.rXU(E2.Ix),e.rXU($Y2),e.rXU(Hk),e.rXU(r8))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-header"]],viewQuery:function(n,l){if(1&n&&e.GBs(jY2,5),2&n){let r;e.mGM(r=e.lsd())&&(l.navbarbutton=r.first)}},hostBindings:function(n,l){1&n&&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","analytics","target","_blank",1,"dropdown-item",3,"href"],["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","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","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"],[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(n,l){if(1&n){const r=e.RV6();e.j41(0,"nav",3)(1,"div",4)(2,"div",5)(3,"a",6),e.bIt("click",function(){return e.eBV(r),e.Njj(l.goTo("/dashboard"))}),e.DNE(4,OY2,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(z){return e.eBV(r),l.toggleNavBar(),e.Njj(z.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,BY2,7,6,"div",16)(18,XY2,44,30,"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,JY2,1,1,null,null,_w1),e.DNE(35,QY2,4,2,"li"),e.k0s()(),e.DNE(36,hq2,2,0,"ng-template",null,1,e.C5r)(38,Dq2,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(40,Tq2,2,0,"div",23)}if(2&n){const r=e.sdS(37),m=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",r)("ngTemplateOutletContext",e.lJ4(28,Cw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(29,Cw1)),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:[L.T3,J2.aY,J2.d0,J2.VA,E2.Wk,wu1,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 t})();function Rq2(t,a){1&t&&(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 Aq2(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(4),e.SpI(" ",c.errorMessage||"Error during the creation of the quote"," ")}}function Iq2(t,a){1&t&&(e.j41(0,"p",26),e.EFF(1,"Message is required (minimum 10 characters)"),e.k0s())}function Pq2(t,a){1&t&&(e.j41(0,"p",26),e.EFF(1,"Request date is required"),e.k0s())}function $q2(t,a){if(1&t){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,Iq2,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,Pq2,2,0,"p",26),e.k0s()()()}if(2&t){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 jq2(t,a){if(1&t){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 Oq2(t,a){1&t&&(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 Bq2(t,a){1&t&&e.EFF(0," Send Request ")}function Vq2(t,a){if(1&t){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,Oq2,5,0,"span",32)(5,Bq2,1,0),e.k0s()()}if(2&t){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 $d1=(()=>{class t{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)(X2.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 n=this.quoteForm.get(c);return!(!n||!n.invalid||!n.dirty&&!n.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,n={customerMessage:c.customerMessage,customerIdRef:this.customerId,providerIdRef:this.orgInfo?.id||"",productOfferingId:this.productOff.id||this.productOff?.productSpecification?.id||""},l=new Date(c.requestDate),r=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log("Submitting quote request with data:",n),console.log("Request date:",r),this.quoteService.createQuoteFromRequest(n).pipe((0,A.n)(m=>{const z=m?.id;return console.log("Quote created successfully with ID:",z),z?(console.log("Updating quote with request date:",r),this.quoteService.updateQuoteDate(z,r,"requested")):(console.warn("No quote ID returned, skipping date update"),[m])})).subscribe({next:m=>{console.log("Quote creation and date update completed:",m),this.quoteCreated.emit(m),this.submitRequest.emit(n),this.isSubmitting=!1,this.showSuccessMessage=!0},error:m=>{console.error("Error creating quote or updating date:",m),this.isSubmitting=!1,this.showErrorMessage=!0,this.errorMessage=m?.error?.message||m?.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 n=this.quoteForm.get(c);n&&n.markAsTouched()}),this.customerId||(this.showErrorMessage=!0,this.errorMessage="Customer ID is required. Please log in first.")}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.bIt("click",function(m){return l.onBackdropClick(m)}),e.j41(1,"div",1),e.bIt("click",function(m){return m.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,Rq2,5,0,"div",8)(10,Aq2,5,1,"div",8)(11,$q2,28,10,"div",9),e.k0s(),e.j41(12,"div",10),e.DNE(13,jq2,3,0,"div",11)(14,Vq2,6,2,"div",12),e.k0s()()()),2&n&&(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:[L.MD,p.YN,p.qT,p.me,p.BC,p.cb,p.X1,p.j4,p.JD],encapsulation:2})}}return t})();const Uq2=[L.MD,p.YN,p.X1,J2.dX,s1.h,g.q1,$d1];let HL=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({providers:[L.vh,s1.c$],imports:[Uq2,CE,L.MD,p.YN,p.X1,J2.dX,s1.h,g.q1]})}}return t})();const Hq2=(t,a)=>({"break-all":t,"break-words":a});function Gq2(t,a){if(1&t&&e.nrm(0,"markdown",30),2&t){const c=e.XpG();e.Y8G("ngClass",e.l_i(2,Hq2,c.hasLongWord(c.value,20),!c.hasLongWord(c.value,20)))("data",c.value)}}function Yq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"textarea",32),e.bIt("input",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.updateValue(l))}),e.k0s()}if(2&t){const c=e.XpG();e.FS9("placeholder",c.placeholder),e.Y8G("value",c.value)}}function qq2(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.addEmoji(l))}),e.k0s()()}2&t&&(e.R7$(),e.Y8G("darkMode",!1))}let ge=(()=>{class t{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 n=c.target.value;this.value=n,this.onChange(n),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 n=document.getElementById("editor");if(!n)return;const l=n.selectionStart,r=n.selectionEnd,m=this.value.substring(0,l);let z=this.value.substring(l,r);const F=this.value.substring(r);switch(c){case"bold":z=`**${z||"bold text"}**`;break;case"italic":z=`*${z||"italic text"}*`;break;case"link":z=`[${z||"link text"}](http://)`;break;case"list":z=`- ${z||"list item"}`;break;case"orderedList":z=`1. ${z||"ordered item"}`;break;case"blockquote":z=`> ${z||"blockquote"}`;break;case"code":z=`\`${z||"inline code"}\``;break;case"codeBlock":z=`\`\`\`\n${z||"code block"}\n\`\`\``;break;case"table":z=`| Column 1 | Column 2 | Column 3 |\n|----------|----------|----------|\n| ${z||"data"} | data | data |`}this.value=m+z+F,this.onChange(this.value),setTimeout(()=>{n.selectionStart=n.selectionEnd=l+z.length,n.focus()},0)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-markdown-textarea"]],hostBindings:function(n,l){1&n&&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)(()=>t),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(n,l){1&n&&(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(m){return l.showEmoji=!l.showEmoji,m.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,Gq2,1,5,"markdown",30)(69,Yq2,1,2)(70,qq2,2,1,"div",31),e.k0s()()),2&n&&(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:[H0,L.YU,T0,HL,s1.D9]})}}return t})();class b9{static{this.BASE_URL=h1.c.BASE_URL}constructor(a){this.http=a}uploadFile(a){return this.http.post(`${b9.BASE_URL}/charging/api/assetManagement/assets/uploadJob`,a)}static{this.\u0275fac=function(c){return new(c||b9)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:b9,factory:b9.\u0275fac,providedIn:"root"})}}function Xq2(t,a){1&t&&(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 Wq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"Use only lowercase letters, numbers and hyphens."),e.k0s())}function Jq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"This slug is already in use. Pick a different one."),e.k0s())}function Qq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"Meta description cannot exceed 160 characters."),e.k0s())}function Zq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"Excerpt cannot exceed 300 characters."),e.k0s())}function Kq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",43),e.nrm(1,"img",51),e.j41(2,"button",52),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeFeaturedImage())}),e.qSk(),e.j41(3,"svg",53),e.nrm(4,"path",54),e.k0s()()()}if(2&t){const c=e.XpG(2);e.R7$(),e.Y8G("src",c.getFeaturedImageUrl(),e.B4B)}}function eX2(t,a){1&t&&(e.j41(0,"p",47),e.EFF(1,"Uploading featured image..."),e.k0s())}function cX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",50)(1,"button",55),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",56),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&t){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",c.loading),e.R7$(2),e.Y8G("disabled",!c.canSubmit())}}function tX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",50)(1,"button",56),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&t){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",!c.canSubmit())}}function nX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",24)(1,"form",25)(2,"label",26),e.EFF(3,"Title"),e.k0s(),e.nrm(4,"input",27),e.j41(5,"label",28),e.EFF(6,"URL slug"),e.k0s(),e.nrm(7,"input",29),e.j41(8,"p",30),e.EFF(9),e.k0s(),e.DNE(10,Wq2,2,0,"p",31)(11,Jq2,2,0,"p",31),e.j41(12,"label",32),e.EFF(13,"Meta description (extract)"),e.k0s(),e.nrm(14,"textarea",33),e.j41(15,"p",30),e.EFF(16),e.k0s(),e.DNE(17,Qq2,2,0,"p",31),e.j41(18,"label",34),e.EFF(19,"Excerpt"),e.k0s(),e.nrm(20,"textarea",35),e.j41(21,"p",30),e.EFF(22),e.k0s(),e.DNE(23,Zq2,2,0,"p",31),e.j41(24,"label",36),e.EFF(25,"Tags"),e.k0s(),e.nrm(26,"input",37),e.j41(27,"p",30),e.EFF(28,"Separate tags with commas."),e.k0s(),e.j41(29,"label",38),e.EFF(30,"Author"),e.k0s(),e.nrm(31,"input",39),e.j41(32,"label",40),e.EFF(33,"Date"),e.k0s(),e.nrm(34,"input",41),e.j41(35,"p",30),e.EFF(36,"Optional. Leave empty to avoid sending a date."),e.k0s(),e.j41(37,"label",42),e.EFF(38,"Featured image"),e.k0s(),e.DNE(39,Kq2,5,1,"div",43),e.j41(40,"div",44)(41,"input",45),e.bIt("change",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.onFeaturedImageSelected(l))}),e.k0s(),e.j41(42,"p",46),e.EFF(43,"Upload to media manager (max 3MB)"),e.k0s(),e.DNE(44,eX2,2,0,"p",47),e.k0s(),e.j41(45,"label",48),e.EFF(46,"Content"),e.k0s(),e.nrm(47,"app-markdown-textarea",49),e.k0s(),e.DNE(48,cX2,5,2,"div",50)(49,tX2,3,1),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("formGroup",c.entryForm),e.R7$(),e.Y8G("formGroup",c.entryForm),e.R7$(8),e.SpI("Blog URL preview: /blog/",c.entryForm.controls.slug.value||"my-blog-entry",""),e.R7$(),e.vxM(10,c.entryForm.controls.slug.touched&&c.entryForm.controls.slug.invalid?10:-1),e.R7$(),e.vxM(11,c.isSlugTaken()?11:-1),e.R7$(5),e.SpI("",(c.entryForm.controls.metaDescription.value||"").length,"/160"),e.R7$(),e.vxM(17,c.entryForm.controls.metaDescription.touched&&c.entryForm.controls.metaDescription.hasError("maxlength")?17:-1),e.R7$(5),e.SpI("",(c.entryForm.controls.excerpt.value||"").length,"/300"),e.R7$(),e.vxM(23,c.entryForm.controls.excerpt.touched&&c.entryForm.controls.excerpt.hasError("maxlength")?23:-1),e.R7$(16),e.vxM(39,c.getFeaturedImageUrl()?39:-1),e.R7$(2),e.Y8G("disabled",c.uploadingFeaturedImage),e.R7$(3),e.vxM(44,c.uploadingFeaturedImage?44:-1),e.R7$(4),e.vxM(48,c.blogId?48:49)}}function lX2(t,a){if(1&t&&(e.j41(0,"div",19)(1,"div",57)(2,"div",10),e.qSk(),e.j41(3,"svg",58),e.nrm(4,"path",59),e.k0s(),e.joV(),e.j41(5,"h3",60),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",61),e.EFF(8),e.k0s()()()),2&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let xw1=(()=>{class t{constructor(c,n,l,r,m){this.route=c,this.router=n,this.localStorage=l,this.domeBlogService=r,this.attachmentService=m,this.slugRegex=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.maxFileSize=h1.c.MAX_FILE_SIZE,this.entryForm=new p.gE({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}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(c.setupSlugHandlers(),c.blogId=c.route.snapshot.paramMap.get("id"),yield c.loadExistingEntries(),c.blogId){let n=yield c.domeBlogService.getBlogEntryById(c.blogId);c.entryForm.controls.title.setValue(n.title);const l=c.slugify(n.slug||n.title||"");c.entryForm.controls.slug.setValue(l,{emitEvent:!1}),c.entryForm.controls.featuredImage.setValue(c.extractFeaturedImageUrl(n.featuredImage)),c.entryForm.controls.metaDescription.setValue(n.metaDescription||""),c.entryForm.controls.excerpt.setValue(n.excerpt||""),c.entryForm.controls.tags.setValue(c.formatTagsForInput(n.tags)),c.entryForm.controls.author.setValue((n.author||"").toString().trim()),c.entryForm.controls.date.setValue(c.formatDateForInput(n.date)),c.slugManuallyEdited=l.length>0&&l!==c.slugify(n.title||""),c.entryForm.controls.content.setValue(n.content)}else c.entryForm.controls.slug.setValue(c.slugify(c.entryForm.value.title||""),{emitEvent:!1});c.initPartyInfo()})()}goBack(){this.router.navigate(["/blog"])}create(){var c=this;return(0,b1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const n=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let r={title:c.entryForm.value.title,slug:c.entryForm.value.slug,featuredImage:c.getFeaturedImageUrl(),metaDescription:c.entryForm.value.metaDescription,excerpt:c.entryForm.value.excerpt,tags:c.parseTagsFromForm(),partyId:c.partyId,author:n||c.name,content:c.entryForm.value.content};l&&(r.date=l),c.domeBlogService.createBlogEntry(r).subscribe({next:m=>{c.loading=!1,c.goBack()},error:m=>{console.error("There was an error while creating!",m),m.error.error?(console.log(m),c.errorMessage="Error: "+m.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,b1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const n=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let r={title:c.entryForm.value.title,slug:c.entryForm.value.slug,featuredImage:c.getFeaturedImageUrl(),metaDescription:c.entryForm.value.metaDescription,excerpt:c.entryForm.value.excerpt,tags:c.parseTagsFromForm(),content:c.entryForm.value.content};n&&(r.author=n),l&&(r.date=l);try{yield c.domeBlogService.updateBlogEntry(r,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,b1.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId,this.name=c.user;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,this.name=n.name}}loadExistingEntries(){var c=this;return(0,b1.A)(function*(){try{const n=yield c.domeBlogService.getBlogEntries();c.existingEntries=Array.isArray(n)?n:[]}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 n=this.slugify(c||"");c!==n&&this.entryForm.controls.slug.setValue(n,{emitEvent:!1});const l=this.slugify(this.entryForm.controls.title.value||"");this.slugManuallyEdited=n.length>0&&n!==l})}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||"");return!!c&&this.existingEntries.some(n=>this.slugify(n.slug||n.title||"")===c&&n._id!==this.blogId)}canSubmit(){return!this.loading&&!this.uploadingFeaturedImage&&this.entryForm.valid&&!this.isSlugTaken()}onFeaturedImageSelected(c){const n=c.target,l=n.files?.[0];if(!l)return;if(!l.type.startsWith("image/"))return this.showTemporaryError("File must have a valid image format!"),void(n.value="");if(l.size>this.maxFileSize)return this.showTemporaryError("File size must be under 3MB."),void(n.value="");const r=l.name.replace(/[^A-Za-z0-9_.-]/g,"_"),m=`blogcover_${Date.now()}_${r}`;if(!this.filenameRegex.test(m))return this.showTemporaryError("File name contains unsupported characters."),void(n.value="");const z=new FileReader;z.onload=F=>{const I=F.target?.result;if("string"!=typeof I||!I.includes(","))return this.showTemporaryError("There was an error while processing the image file."),void(n.value="");const J=I.split(",")[1],d1={content:{name:m,data:J},contentType:l.type,isPublic:!0};this.uploadingFeaturedImage=!0,this.attachmentService.uploadFile(d1).subscribe({next:i1=>{const N1=(i1?.content||"").toString();N1?this.entryForm.controls.featuredImage.setValue(N1):this.showTemporaryError("There was an error while uploading the featured image.")},error:i1=>{console.error("There was an error while uploading featured image!",i1),this.showTemporaryError(413!==i1.status?i1?.error?.error?`Error: ${i1.error.error}`:"There was an error while uploading the featured image.":"File size too large! Must be under 3MB.")},complete:()=>{this.uploadingFeaturedImage=!1,n.value=""}})},z.onerror=()=>{this.showTemporaryError("There was an error while reading the image file."),n.value=""},z.readAsDataURL(l)}removeFeaturedImage(){this.entryForm.controls.featuredImage.setValue("")}getFeaturedImageUrl(){return this.extractFeaturedImageUrl(this.entryForm.controls.featuredImage.value)}parseTagsFromForm(){const c=(this.entryForm.controls.tags.value||"").toString();if(!c.trim())return[];const n=new Map;return c.split(",").forEach(l=>{const r=l.trim().replace(/\s+/g," ");if(!r)return;const m=r.toLowerCase();n.has(m)||n.set(m,r)}),Array.from(n.values())}formatTagsForInput(c){return Array.isArray(c)?c.map(n=>(n??"").toString().trim()).filter(n=>n.length>0).join(", "):"string"==typeof c?c.split(",").map(n=>n.trim()).filter(n=>n.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()}formatDateForInput(c){const n=this.normalizeOptionalText(c);if(!n)return"";if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(n))return n;const l=Y2(n);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(n){return new(n||t)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(L2.s),e.rXU(c6),e.rXU(b9))}}static{this.\u0275cmp=e.VBU({type:t,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-[#DDE6F6]"],[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-[#0B1528]","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","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"],["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"],[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"],["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(n,l){1&n&&(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,Xq2,6,0,"div",17)(21,nX2,50,13),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,lX2,9,1,"div",19)),2&n&&(e.R7$(19),e.SpI(" ",l.blogId?"Update blog entry":"Create blog 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:[ge,p.X1,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,C6.w]})}}return t})();class Ze{static{this.BASE_URL=h1.c.BASE_URL}static{this.USAGE_SPEC_LIMIT=h1.c.USAGE_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getUsageSpec(a){return(0,U2.s)(this.http.get(`${Ze.BASE_URL}/usage/usageSpecification/${a}`))}getUsageSpecs(a,c){return(0,U2.s)(this.http.get(`${Ze.BASE_URL}/usage/usageSpecification?limit=${Ze.USAGE_SPEC_LIMIT}&offset=${a}&relatedParty.id=${c}`))}getAllUsageSpecs(a){return(0,U2.s)(this.http.get(`${Ze.BASE_URL}/usage/usageSpecification?relatedParty.id=${a}`))}postUsageSpec(a){return this.http.post(`${Ze.BASE_URL}/usage/usageSpecification`,a)}updateUsageSpec(a,c){return this.http.patch(`${Ze.BASE_URL}/usage/usageSpecification/${c}`,a)}static{this.\u0275fac=function(c){return new(c||Ze)(e.KVO(g.Qq),e.KVO(L2.s))}}static{this.\u0275prov=e.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}class w8{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_ORDERING=h1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=h1.c.ORDER_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}postProductOrder(a){return this.http.post(`${w8.BASE_URL}${w8.API_ORDERING}/productOrder`,a,{observe:"response"})}getProductOrders(a,c,n,l,r=[]){console.log("getProductOrders");let m=`${w8.BASE_URL}${w8.API_ORDERING}/productOrder?limit=${w8.ORDER_LIMIT}&offset=${c}&relatedParty.id=${a}&relatedParty.role=${l}`,z="";if(n.length>0){for(let F=0;F0&&(m=m+"&productOrderItem.action="+r.join(",")),(0,U2.s)(this.http.get(m))}updateOrder(a,c){return console.log("updatingOrder..."),console.log(a),console.log(c),(0,U2.s)(this.http.patch(`${w8.BASE_URL}${w8.API_ORDERING}/productOrder/${a}`,c))}static{this.\u0275fac=function(c){return new(c||w8)(e.KVO(g.Qq),e.KVO(L2.s))}}static{this.\u0275prov=e.jDH({token:w8,factory:w8.\u0275fac,providedIn:"root"})}}class d8{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_INVENTORY=h1.c.INVENTORY}static{this.INVENTORY_LIMIT=h1.c.INVENTORY_LIMIT}static{this.INVENTORY_RES_LIMIT=h1.c.INVENTORY_RES_LIMIT}static{this.INVENTORY_SERV_LIMIT=h1.c.INVENTORY_SERV_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getInventory(a,c,n,l){let r=`${d8.BASE_URL}${d8.API_INVENTORY}/product?limit=${d8.INVENTORY_LIMIT}&offset=${a}&relatedParty.id=${c}`,m="";if(n.length>0){for(let z=0;z0){for(let m=0;m0){for(let m=0;m{class t{constructor(c,n,l,r,m){this.api=c,this.accountService=n,this.orderService=l,this.inventoryService=r,this.invoicesService=m,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=h1.c.CATALOG_LIMIT}getItemsPaginated(c,n,l,r,m,z,F){return(0,b1.A)(function*(){console.log("options"),console.log(z);try{let I=[c];if("keywords"in z&&I.push(z.keywords),"filters"in z&&I.push(z.filters),"partyId"in z&&I.push(z.partyId.toString()),"catalogId"in z&&I.push(z.catalogId.toString()),"sort"in z&&I.push(z.sort),"isBundle"in z&&I.push(z.isBundle),"selectedDate"in z&&I.push(z.selectedDate),"orders"in z&&I.push(z.orders),"role"in z&&I.push(z.role),"actionFilters"in z&&I.push(z.actionFilters),0==l)r=[],m=[],I[0]=c=0,console.log("------ Calling handler"),console.log(I),r=yield F(...I),c+=n;else for(let d1=0;d1null!=d1);return{page:c,items:r,nextItems:m,page_check:I}}})()}getProducts(c,n,l){var r=this;return(0,b1.A)(function*(){try{return console.log("-------------------------- getProducts ----------------------------"),l&&l.length>0?yield r.api.getProductsByCategory(l,c,n):yield r.api.getProducts(c,n)}catch(m){return console.error("Error fetching products:",m),[]}})()}getProductsByCatalog(c,n,l,r){var m=this;return(0,b1.A)(function*(){try{return console.log("-------------------------- getProductsByCatalog ----------------------------"),console.log(c),l&&l.length>0?yield m.api.getProductsByCategoryAndCatalog(l,r,c):yield m.api.getProductsByCatalog(r,c)}catch(z){return console.error("Error fetching products:",z),[]}})()}getOrders(c,n,l,r,m){var z=this;return(0,b1.A)(function*(F,I,J,d1,i1,N1=[]){try{d1=yield z.orderService.getProductOrders(J,F,I,i1,N1),console.log("getOrders",d1);const J1=yield Promise.all(d1.map(v2=>z.accountService.getBillingAccountById(v2.billingAccount.id))),u2=yield Promise.all(d1.map(function(){var v2=(0,b1.A)(function*(G2,E0){const d4=yield Promise.all(G2.productOrderItem.map(function(){var V0=(0,b1.A)(function*(e4){try{console.log("Soy un productOrderItem???????: ",e4);const l0=yield z.api.getProductById(e4.productOffering.id),q2=yield z.api.getProductSpecification(l0.productSpecification.id);if(!l0.productOfferingPrice||0===l0.productOfferingPrice.length)return{id:l0.id,name:l0.name,category:l0.category,description:l0.description,lastUpdate:l0.lastUpdate,attachment:q2.attachment,productSpecification:l0.productSpecification,productOfferingTerm:l0.productOfferingTerm,version:l0.version,productOrderItem:e4};let o6={};if(o6={id:l0.id,name:l0.name,category:l0.category,description:l0.description,lastUpdate:l0.lastUpdate,attachment:q2.attachment,productSpecification:l0.productSpecification,productOfferingTerm:l0.productOfferingTerm,version:l0.version,productOrderItem:e4},l0.productOfferingPrice?.[0]){const I6=yield z.api.getProductPrice(l0.productOfferingPrice[0].id);o6.productOfferingPrice=I6,I6.priceType&&(o6.priceType=I6.priceType)}return o6}catch(l0){return console.error(`Error fetching product details for ${e4.id}:`,l0),null}});return function(e4){return V0.apply(this,arguments)}}()));return{...G2,billingAccount:J1[E0],productOrderItems:d4.filter(Boolean)}});return function(G2,E0){return v2.apply(this,arguments)}}()));return console.log("Orders processed:",u2),u2}catch(J1){return console.error("Error fetching orders:",J1),[]}}).apply(this,arguments)}getOffers(c){var n=this;return(0,b1.A)(function*(){try{return yield Promise.all(c.map(function(){var r=(0,b1.A)(function*(m){const z=yield n.api.getProductById(m.productOffering.id),I=(yield n.api.getProductSpecification(z.productSpecification.id))?.attachment??[];return m.product={id:m.id,name:z.name,category:z.category,description:z.description,lastUpdate:z.lastUpdate,attachment:I,productSpecification:z.productSpecification,productOfferingTerm:z.productOfferingTerm,version:z.version},m});return function(m){return r.apply(this,arguments)}}()))}catch(l){throw console.error("Error fetching offers:",l),l}})()}getInventory(c,n,l,r){var m=this;return(0,b1.A)(function*(){try{console.log("Fetching inventory...");const z=yield m.inventoryService.getInventory(c,r,l,n);return console.log("Inventory received:",z),yield m.getOffers(z)}catch(z){return console.error("Error fetching inventory:",z),[]}})()}getInvoices(c,n,l,r,m){var z=this;return(0,b1.A)(function*(){console.log("---getInvoices---");let F=[];try{F=yield z.invoicesService.getInvoices(l,c,n,r,m)}finally{return console.log("params:",l,c,n,r,m),console.log("---getInvoices result:---",F),console.log(F),F}})()}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(F2.F),e.KVO(K0.O),e.KVO(w8),e.KVO(d8),e.KVO(F5))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const sX2=(t,a)=>a.id,aX2=(t,a)=>({"break-all":t,"break-words":a});function oX2(t,a){1&t&&(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 iX2(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(7,"svg",25),e.nrm(8,"path",26),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,aX2,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function rX2(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"USAGE_SPECS._no_usage")," "))}function dX2(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._load_more")," "))}function fX2(t,a){if(1&t&&e.DNE(0,dX2,6,3,"div",30),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function uX2(t,a){1&t&&(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 mX2(t,a){if(1&t&&(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,iX2,9,6,"tr",19,sX2,!1,rX2,7,3,"div",20),e.k0s()()(),e.DNE(18,fX2,1,1)(19,uX2,6,0),e.k0s()),2&t){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 pX2=(()=>{class t{constructor(c,n,l,r){this.eventMessage=c,this.usageService=n,this.localStorage=l,this.paginationService=r,this.usageSpecs=[],this.nextUsageSpecs=[],this.loading=!1,this.loading_more=!1,this.partyId="",this.page=0,this.page_check=!0,this.USAGE_SPEC_LIMIT=h1.c.USAGE_SPEC_LIMIT}ngOnInit(){var c=this;return(0,b1.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}getUsageSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.USAGE_SPEC_LIMIT,c,n.usageSpecs,n.nextUsageSpecs,{partyId:n.partyId},n.usageService.getUsageSpecs.bind(n.usageService)).then(r=>{n.page_check=r.page_check,n.usageSpecs=r.items,n.nextUsageSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getUsageSpecs(!0)})()}goToCreate(){this.eventMessage.emitCreateUsageSpec(!0)}goToUpdate(c){this.eventMessage.emitUpdateUsageSpec(c)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2),e.rXU(Ze),e.rXU(L2.s),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,oX2,6,0,"div",9)(15,mX2,20,11),e.k0s()),2&n&&(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,L.MD,L.YU]})}}return t})();function QH(t,a=l4){return(0,y1.N)((c,n)=>{let l=null,r=null,m=null;const z=()=>{if(l){l.unsubscribe(),l=null;const I=r;r=null,n.next(I)}};function F(){const I=m+t,J=a.now();if(J{r=I,m=a.now(),l||(l=a.schedule(F,t),n.add(l))},()=>{z(),n.complete()},void 0,()=>{r=l=null}))})}const hX2=t=>{const a=t.get("paymentOnline")?.value,c=t.get("priceComponents")?.value;return!a||c&&0!==c.length?null:{priceComponentsRequired:!0}};function gX2(t){return a=>{const c=a.get("name");if(!c)return null;const n=c.value?.trim().toLowerCase();return n&&t().map(r=>r?.trim().toLowerCase()).includes(n)?{nonUniqueName:!0}:null}}function s6(t){return 0!==(t.value||"").trim().length?null:{whitespace:!0}}function _X2(t,a){if(1&t&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function LX2(t,a){if(1&t&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",3)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let CX2=(()=>{class t{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),s6])),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),s6])),this.formGroup.addControl("description",new p.MJ(""))),this.isEditMode&&this.formGroup.valueChanges.pipe(QH(500),(0,P1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const n=this.getDirtyFields(c);if(n.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:n,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(n=>{const r=this.originalValue[n];return JSON.stringify(c[n])!==JSON.stringify(r)})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,_X2,4,4)(1,LX2,4,4),2&n&&(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_,HL,s1.D9,ge]})}}return t})();const bw1=(t,a)=>({"break-all":t,"break-words":a});function zX2(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"USAGE_SPECS._no_metrics")," "))}function MX2(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.deleteMetric(l))}),e.qSk(),e.j41(7,"svg",14),e.nrm(8,"path",15),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,bw1,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,bw1,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function xX2(t,a){if(1&t&&(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,MX2,9,10,"tr",10,e.fX1),e.k0s()()()),2&t){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 bX2(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._create_metric")," "))}function yX2(t,a){if(1&t){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&t){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 FX2=(()=>{class t{constructor(c,n,l){this.eventMessage=c,this.fb=n,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),s6]),description:new p.MJ("")})}ngOnInit(){var c=this;return(0,b1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,console.log(c.metrics)})()}deleteMetric(c){const n=this.metrics.findIndex(z=>z.id===c.id);-1!==n&&this.metrics.splice(n,1),this.onChange([...this.metrics]);const l=[...this.metrics],m={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting change state:",m),this.eventMessage.emitSubformChange(m)}saveMetric(){this.metrics.push({id:A4(),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],n=this.getDirtyFields(c);if(n.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:n,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 n=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&n.push("creatingMetrics"),n}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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2),e.rXU(p.ok),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&e.DNE(0,zX2,9,3,"div",0)(1,xX2,16,9)(2,bX2,6,3,"div",1)(3,yX2,17,12),2&n&&(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,L.YU]})}}return t})();const ZH=(t,a)=>({"break-all":t,"break-words":a});function vX2(t,a){if(1&t&&(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&t){let c,n;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,ZH,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==(n=l.usageSpecForm.get("generalInfo.description"))?null:n.value)}}function kX2(t,a){if(1&t&&(e.j41(0,"tr",11)(1,"td",12),e.EFF(2),e.k0s(),e.j41(3,"td",13),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,ZH,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,ZH,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function wX2(t,a){if(1&t&&(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&t){let c;const n=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=n.usageSpecForm.get("metrics"))?null:c.value)}}let SX2=(()=>{class t{ngOnInit(){var c=this;return(0,b1.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["usage-spec-summary"]],inputs:{usageSpecForm:"usageSpecForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){if(1&n&&(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,vX2,5,8)(8,wX2,15,6),e.k0s()),2&n){let r,m,z,F;e.R7$(3),e.JRh(e.bMT(4,5,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(7,ZH,l.hasLongWord(null==(r=l.usageSpecForm.get("generalInfo.name"))?null:r.value,20),!l.hasLongWord(null==(r=l.usageSpecForm.get("generalInfo.name"))?null:r.value,20))),e.R7$(),e.SpI(" ",null==(m=l.usageSpecForm.get("generalInfo.name"))?null:m.value," "),e.R7$(),e.vxM(7,""!=(null==(z=l.usageSpecForm.get("generalInfo.description"))?null:z.value)?7:-1),e.R7$(),e.vxM(8,null!=(F=l.usageSpecForm.get("metrics"))&&F.value?8:-1)}},dependencies:[s1.h,s1.D9,H0,L.YU,HL]})}}return t})();const NX2=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),EX2=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a});function DX2(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._update")," "))}function TX2(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._create")," "))}function RX2(t,a){1&t&&(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 AX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",22),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(2);return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",23),e.EFF(2),e.k0s(),e.j41(3,"span",24),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function IX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"usage-spec-general-info",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)("form",c.usageSpecForm.controls.generalInfo)}}function PX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"usage-spec-metrics",26),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)}}function $X2(t,a){if(1&t&&e.nrm(0,"usage-spec-summary",27),2&t){const c=e.XpG(2);e.Y8G("usageSpecForm",c.usageSpecForm)}}function jX2(t,a){if(1&t){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&t){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 OX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,AX2,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,IX2,1,3,"usage-spec-general-info",13)(8,PX2,1,2)(9,$X2,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,jX2,2,3,"button",21),e.k0s()()}if(2&t){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,NX2,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,EX2,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 BX2(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let yw1=(()=>{class t{constructor(c,n,l,r,m){this.api=c,this.eventMessage=n,this.fb=l,this.accService=r,this.usageSpecService=m,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,P1.Q)(this.destroy$)).subscribe(z=>{this.isFormValid="VALID"===z}),this.formSubscription=this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(z=>{if("SubformChange"===z.type){const F=z.value;console.log("Received subform change:",F),this.handleSubformChange(F)}})}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,b1.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(n=>({...n,id:A4()}));this.usageSpecForm.patchValue({generalInfo:{name:this.usageSpec.name,description:this.usageSpec.description},metrics:c})}}createUsageSpec(){var c=this;return(0,b1.A)(function*(){const n=c.usageSpecForm.value,l=n.generalInfo,r=n.metrics.map(({id:z,...F})=>F),m={name:l.name,description:l.description||"",specCharacteristic:r,relatedParty:[{id:c.partyId,href:c.partyId,role:h1.c.SELLER_ROLE}]};console.log(m),c.usageSpecService.postUsageSpec(m).subscribe({next:z=>{console.log("usageSpec created:"),console.log(z),c.goBack()},error:z=>{console.error("There was an error while creating the usageSpec!",z),z.error.error?(console.log(z),c.errorMessage="Error: "+z.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,b1.A)(function*(){console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const n={name:c.usageSpec.name,description:c.usageSpec.description,specCharacteristic:c.usageSpec.specCharacteristic};for(const[l,r]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,r),l){case"generalInfo":n.name=r.currentValue.name,n.description=r.currentValue.description;break;case"metrics":const m=r.currentValue.map(z=>({name:z.name,description:z.description,valueType:"number"}));n.specCharacteristic=m,console.log("------ here"),console.log(m)}console.log("\u{1f4dd} Final update payload:",n);try{yield(0,U2.s)(c.usageSpecService.updateUsageSpec(n,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(n){return new(n||t)(e.rXU(F2.F),e.rXU(H2),e.rXU(p.ok),e.rXU(K0.O),e.rXU(Ze))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,DX2,3,3,"h2",1)(2,TX2,3,3)(3,RX2,6,0,"div",2)(4,OX2,22,20),e.k0s(),e.DNE(5,BX2,9,1,"div",3)),2&n&&(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:[CX2,FX2,SX2,s1.h,s1.D9,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,L.YU]})}}return t})(),VX2=(()=>{class t{constructor(c,n,l,r){this.cdr=c,this.el=n,this.localStorage=l,this.eventMessage=r,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(L2.s),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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:[yw1,s1.h,s1.D9,p.X1]})}}return t})(),UX2=(()=>{class t{constructor(c,n,l,r){this.cdr=c,this.el=n,this.localStorage=l,this.eventMessage=r,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(L2.s),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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:[yw1,s1.h,s1.D9,p.X1]})}}return t})();function HX2(t,a){1&t&&e.nrm(0,"usage-list")}function GX2(t,a){1&t&&e.nrm(0,"create-usage-spec")}function YX2(t,a){if(1&t&&e.nrm(0,"update-usage-spec",16),2&t){const c=e.XpG();e.Y8G("usageSpec",c.usageSpecToUpdate)}}let qX2=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.cdr=n,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,P1.Q)(this.destroy$)).subscribe(r=>{"UsageSpecList"===r.type&&1==r.value?this.goToUsageSpec():"UpdateUsageSpec"===r.type&&r.value?(this.show_update_usage=!0,this.show_usage_specs=!1,this.show_create_usage=!1,this.usageSpecToUpdate=r.value):"CreateUsageSpec"===r.type&&1==r.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(e.gRc),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-usage-specs"]],standalone:!0,features:[e.Jv_([L.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(n,l){1&n&&(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,HX2,1,0,"usage-list")(29,GX2,1,0,"create-usage-spec")(30,YX2,1,1,"update-usage-spec",16),e.k0s()()),2&n&&(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,L.MD,pX2,VX2,UX2]})}}return t})(),rc=(()=>{class t{constructor(c,n){this.localStorage=c,this.router=n}canActivate(c,n){let l=this.localStorage.getObject("login_items");const r=c.data.roles;let m=[];const z={admin:h1.c.ADMIN_ROLE.toLowerCase(),seller:h1.c.SELLER_ROLE.toLowerCase(),buyer:h1.c.BUYER_ROLE.toLowerCase(),orgAdmin:h1.c.ORG_ADMIN_ROLE.toLowerCase(),certifier:h1.c.CERTIFIER_ROLE.toLowerCase(),individual:"individual"};return"{}"!=JSON.stringify(l)&&l.expire-Y2().unix()-4>0?(l.logged_as==l.id?(m.push("individual"),l.roles.forEach(F=>m.push(F.name.toLowerCase()))):(l.organizations.find(I=>I.id==l.logged_as).roles.forEach(I=>m.push(I.name.toLowerCase())),l.roles.some(I=>I.name.toLowerCase()===h1.c.ADMIN_ROLE.toLowerCase())&&m.push(h1.c.ADMIN_ROLE.toLowerCase())),!(0!=r.length&&!r.some(I=>m.includes(z[I]))&&(this.router.navigate(["/dashboard"]),1))):(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(L2.s),e.KVO(E2.Ix))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Fw1=(()=>{class t{constructor(c){this.router=c}canActivate(){return!!h1.c.QUOTES_ENABLED||(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(E2.Ix))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function XX2(t,a){1&t&&(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 WX2(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(2),e.JRh(c.title),e.R7$(3),e.SpI(" ",c.description," ")}}function JX2(t,a){if(1&t&&(e.j41(0,"h2",6),e.EFF(1,"Operator revenue sharing"),e.k0s(),e.Z7z(2,WX2,6,2,"div",7,e.fX1)),2&t){const c=e.XpG();e.R7$(2),e.Dyx(c.items)}}let vw1=(()=>{class t{constructor(){this.loading=!1,this.items=[{title:"Total Subcription Revenue",description:"\u20ac45.000 (Q2 2025)"}]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,XX2,6,0,"div",1)(2,JX2,4,0),e.k0s()),2&n&&(e.R7$(),e.vxM(1,l.loading?1:2))},dependencies:[s1.h,J2.dX,L.MD]})}}return t})();function QX2(t,a){if(1&t&&(e.j41(0,"span",3),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function ZX2(t,a){if(1&t&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function KX2(t,a){if(1&t&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function eW2(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function cW2(t,a){if(1&t&&e.nrm(0,"categories-recursion-list",11),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("child",c)("parent",n.child)("path",n.path+" / "+n.child.name)}}function tW2(t,a){if(1&t&&e.Z7z(0,cW2,1,3,"categories-recursion-list",11,e.fX1),2&t){const c=e.XpG();e.Dyx(c.child.children)}}let nW2=(()=>{class t{constructor(c,n){this.cdr=c,this.eventMessage=n}addCategory(c){this.eventMessage.emitCategoryAdded(c)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["categories-recursion-list"]],inputs:{child:"child",parent:"parent",path:"path"},decls:18,vars:8,consts:[[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"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[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"],["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,"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"],[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"],[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(n,l){1&n&&(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.DNE(6,QX2,2,1,"span",3)(7,ZX2,2,1)(8,KX2,2,1)(9,eW2,2,1),e.k0s(),e.j41(10,"td",2),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",4)(14,"button",5),e.bIt("click",function(){return l.goToUpdate(l.child)}),e.qSk(),e.j41(15,"svg",6),e.nrm(16,"path",7),e.k0s()()()(),e.DNE(17,tW2,2,0)),2&n&&(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:[t,L.vh]})}}return t})();const lW2=(t,a)=>a.id;function sW2(t,a){1&t&&(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 aW2(t,a){if(1&t&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function oW2(t,a){if(1&t&&(e.j41(0,"span",33),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function iW2(t,a){if(1&t&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function rW2(t,a){if(1&t&&(e.j41(0,"span",35),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function dW2(t,a){if(1&t&&(e.j41(0,"tr")(1,"td",36),e.nrm(2,"categories-recursion-list",37),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2).$implicit;e.R7$(2),e.Y8G("child",c)("parent",n)("path",n.name)}}function fW2(t,a){if(1&t&&e.Z7z(0,dW2,3,3,"tr",null,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c.children)}}function uW2(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",24)(1,"td",25)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",26),e.DNE(5,aW2,2,1,"span",27)(6,oW2,2,1)(7,iW2,2,1)(8,rW2,2,1),e.k0s(),e.j41(9,"td",28),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.j41(12,"td",29)(13,"button",30),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(14,"svg",31),e.nrm(15,"path",32),e.k0s()()()(),e.DNE(16,fW2,2,0)}if(2&t){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 mW2(t,a){1&t&&(e.j41(0,"div",23)(1,"div",38),e.qSk(),e.j41(2,"svg",39),e.nrm(3,"path",40),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CATEGORIES._no_cat")," "))}function pW2(t,a){if(1&t&&(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"),e.Z7z(18,uW2,17,7,null,null,lW2,!1,mW2,7,3,"div",23),e.k0s()()()()),2&t){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 hW2=(()=>{class t{constructor(c,n,l,r,m){this.router=c,this.api=n,this.cdr=l,this.localStorage=r,this.eventMessage=m,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.searchField=new p.MJ,this.categories=[],this.unformattedCategories=[],this.page=0,this.CATEGOY_LIMIT=h1.c.CATEGORY_LIMIT,this.loading=!1,this.status=["Active","Launched"],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(z=>{"ChangedSession"===z.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 n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getCategories(),S2()}createCategory(){this.eventMessage.emitCreateCategory(!0)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}getCategories(){var c=this;return(0,b1.A)(function*(){console.log("Getting categories...");const n=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(n)?n:[];c.unformattedCategories=[...l];const r=yield Promise.all(l.map(m=>c.loadCategorySubtree(m)));c.categories=r.filter(m=>!!m),c.loading=!1,c.cdr.detectChanges(),S2()})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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"],[1,"flex","justify-center","m-4"],[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","adminTableOfferStatus",1,"hidden","md:flex","px-6","py-4","w-fit"],[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"],[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"],[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"],[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(n,l){1&n&&(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,sW2,6,0,"div",9)(15,pW2,21,13),e.k0s()),2&n&&(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:[nW2,L.vh,s1.D9]})}}return t})();function gW2(t,a){if(1&t&&e.nrm(0,"categories-recursion",5),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("child",c)("selected",n.selected)("parent",n.child)("path",n.path+" / "+n.child.name)}}function _W2(t,a){if(1&t&&e.Z7z(0,gW2,1,4,"categories-recursion",5,e.fX1),2&t){const c=e.XpG();e.Dyx(c.child.children)}}let kw1=(()=>{class t{constructor(c,n){this.cdr=c,this.eventMessage=n}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(n){return new(n||t)(e.rXU(e.gRc),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["categories-recursion"]],inputs:{child:"child",parent:"parent",selected:"selected",path:"path"},decls:11,vars:8,consts:[[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-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","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(n,l){1&n&&(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,_W2,2,0)),2&n&&(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:[t,L.vh]})}}return t})();const LW2=(t,a)=>a.id;function CW2(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function zW2(t,a){if(1&t&&(e.j41(0,"tr")(1,"td",56),e.nrm(2,"categories-recursion",57),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",n)("selected",l.selected)("path",n.name)}}function MW2(t,a){if(1&t&&e.Z7z(0,zW2,3,4,"tr",null,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c.children)}}function xW2(t,a){if(1&t){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,r=e.XpG(4);return e.Njj(r.addCategory(l))}),e.k0s()()(),e.DNE(9,MW2,2,0)}if(2&t){const c=a.$implicit,n=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",n.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function bW2(t,a){if(1&t&&(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,xW2,10,7,null,null,LW2),e.k0s()()()),2&t){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 yW2(t,a){if(1&t&&e.DNE(0,CW2,7,3,"div",40)(1,bW2,16,9),2&t){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function FW2(t,a){if(1&t){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,yW2,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&t){let c;const n=e.XpG();e.R7$(),e.JRh(e.bMT(2,11,"CREATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(6,13,"CREATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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",n.parentSelectionCheck),e.R7$(2),e.vxM(18,n.parentSelectionCheck?18:-1),e.R7$(2),e.Y8G("disabled",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory)("ngClass",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(22,19,"CREATE_CATEGORIES._next")," ")}}function vW2(t,a){if(1&t&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function kW2(t,a){if(1&t&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function wW2(t,a){if(1&t&&(e.j41(0,"span",66),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function SW2(t,a){if(1&t&&(e.j41(0,"span",67),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function NW2(t,a){if(1&t&&(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&t){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 EW2(t,a){if(1&t&&(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&t){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 DW2(t,a){if(1&t){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,vW2,2,1,"span",62)(15,kW2,2,1)(16,wW2,2,1)(17,SW2,2,1),e.k0s(),e.DNE(18,NW2,5,4)(19,EW2,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&t){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 TW2(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let RW2=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initPartyInfo(),"CategoryAdded"===F.type&&this.addCategory(F.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getCategories()}goBack(){this.eventMessage.emitAdminCategories(!0)}getCategories(){var c=this;return(0,b1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const n=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(n)?n:[];c.unformattedCategories=[...l];const r=yield Promise.all(l.map(m=>c.loadCategorySubtree(m)));c.categories=r.filter(Boolean),c.loading=!1,c.cdr.detectChanges(),S2()})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(F2.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-category"]],hostBindings:function(n,l){1&n&&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"],["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"],["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"],[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"],[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","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(n,l){1&n&&(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,FW2,25,21)(50,DW2,26,16),e.k0s()()()(),e.DNE(51,TW2,1,1,"error-message",27)),2&n&&(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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,H0,ge,kw1,M0,L.vh,s1.D9]})}}return t})();const AW2=(t,a)=>a.id;function IW2(t,a){if(1&t){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 PW2(t,a){if(1&t){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 $W2(t,a){if(1&t){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 jW2(t,a){if(1&t){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("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function OW2(t,a){if(1&t){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("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function BW2(t,a){if(1&t){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("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function VW2(t,a){if(1&t){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.setCatStatus("Obsolete"))}),e.j41(1,"span",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function UW2(t,a){if(1&t){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.setCatStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function HW2(t,a){1&t&&(e.j41(0,"div",57)(1,"div",58),e.qSk(),e.j41(2,"svg",59),e.nrm(3,"path",60),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function GW2(t,a){if(1&t&&(e.j41(0,"tr")(1,"td",73),e.nrm(2,"categories-recursion",74),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",n)("selected",l.selected)("path",n.name)}}function YW2(t,a){if(1&t&&e.Z7z(0,GW2,3,4,"tr",null,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c.children)}}function qW2(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",70),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td",71)(8,"input",72),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addCategory(l))}),e.k0s()()(),e.DNE(9,YW2,2,0)}if(2&t){const c=a.$implicit,n=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",n.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function XW2(t,a){if(1&t&&(e.j41(0,"div",61)(1,"table",62)(2,"thead",63)(3,"tr",64)(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,"tbody"),e.Z7z(14,qW2,10,7,null,null,AW2),e.k0s()()()),2&t){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 WW2(t,a){if(1&t&&e.DNE(0,HW2,7,3,"div",57)(1,XW2,16,9),2&t){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function JW2(t,a){if(1&t){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,IW2,5,0,"li",34)(14,PW2,3,0)(15,$W2,5,0,"li",35)(16,jW2,3,0)(17,OW2,5,0,"li",36)(18,BW2,3,0)(19,VW2,5,0,"li",37)(20,UW2,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,WW2,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&t){let c;const n=e.XpG();e.R7$(),e.JRh(e.bMT(2,17,"UPDATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(6,19,"UPDATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.catStatus?13:14),e.R7$(2),e.vxM(15,"Launched"==n.catStatus?15:16),e.R7$(2),e.vxM(17,"Retired"==n.catStatus?17:18),e.R7$(2),e.vxM(19,"Obsolete"==n.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",n.checkDisableParent)("checked",n.parentSelectionCheck),e.R7$(2),e.vxM(31,n.parentSelectionCheck?31:-1),e.R7$(2),e.Y8G("disabled",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory)("ngClass",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(35,27,"UPDATE_CATEGORIES._next")," ")}}function QW2(t,a){if(1&t&&(e.j41(0,"span",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function ZW2(t,a){if(1&t&&(e.j41(0,"span",82),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function KW2(t,a){if(1&t&&(e.j41(0,"span",83),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function eJ2(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function cJ2(t,a){if(1&t&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",85),e.nrm(4,"markdown",86),e.k0s()),2&t){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 tJ2(t,a){if(1&t&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",87)(4,"label",88),e.EFF(5),e.k0s()()),2&t){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 nJ2(t,a){if(1&t){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",75)(4,"div")(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"label",76),e.EFF(9),e.k0s()(),e.j41(10,"div",77)(11,"label",78),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.DNE(14,QW2,2,1,"span",79)(15,ZW2,2,1)(16,KW2,2,1)(17,eJ2,2,1),e.k0s(),e.DNE(18,cJ2,5,4)(19,tJ2,6,4),e.j41(20,"div",80)(21,"button",81),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&t){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 lJ2(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let sJ2=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initPartyInfo(),"CategoryAdded"===F.type&&this.addCategory(F.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,b1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const n=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(n)?n:[];c.unformattedCategories=[...l];const r=yield Promise.all(l.map(m=>c.loadCategorySubtree(m)));if(c.categories=c.removeCategoryFromTree(r.filter(Boolean),c.category?.id),c.loading=!1,0==c.category.isRoot){const m=c.findCategoryById(c.categories,c.category.parentId);m&&(c.selectedCategory=m,c.selected=[m])}c.cdr.detectChanges(),S2()})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}findCategoryById(c,n){for(const l of c||[]){if(l?.id===n)return l;const r=this.findCategoryById(l?.children||[],n);if(r)return r}}removeCategoryFromTree(c,n){return n?(c||[]).filter(l=>l?.id!==n).map(l=>({...l,children:this.removeCategoryFromTree(l?.children||[],n)})):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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(F2.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-category"]],hostBindings:function(n,l){1&n&&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"],["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"],[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,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["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"],["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,"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"],[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"],["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"],[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"],[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","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"],["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(n,l){1&n&&(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,JW2,38,29)(50,nJ2,26,16),e.k0s()()()(),e.DNE(51,lJ2,1,1,"error-message",27)),2&n&&(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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,H0,ge,kw1,M0,L.vh,s1.D9]})}}return t})();function aJ2(t,a){if(1&t&&e.nrm(0,"error-message",25),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let oJ2=(()=>{class t{constructor(c,n){this.eventMessage=c,this.http=n,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(`${h1.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(n){return new(n||t)(e.rXU(H2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){if(1&n&&(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,aJ2,1,1,"error-message",25)),2&n){let r;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==(r=l.verificationForm.get("productId"))?null:r.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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,M0,s1.D9]})}}return t})();function iJ2(t,a){if(1&t&&e.nrm(0,"error-message",31),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let rJ2=(()=>{class t{constructor(c,n){this.eventMessage=c,this.http=n,this.showError=!1,this.errorMessage="",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]),emailUser:new p.MJ("",[p.k0.required]),emailPassword:new p.MJ("",[p.k0.required])})}ngOnInit(){this.getConfig()}goBack(){this.eventMessage.emitAdminCategories(!0)}fillData(c){this.emailForm.setValue({smtpServer:c.smtpServer,smtpPort:c.smtpPort,email:c.email,emailUser:c.emailUser,emailPassword:""})}getConfig(){return this.http.get(`${h1.c.BASE_URL}/charging/api/orderManagement/notify/config`).subscribe({next:n=>{this.fillData(n)},error:n=>{console.error("There was an error while getting config!",n),n.error.error?(console.log(n),this.errorMessage="Error: "+n.error.error):this.errorMessage="There was an error while getting the config",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}addConfig(){return this.http.post(`${h1.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}).subscribe({next:l=>{this.fillData(l)},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 config",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["email"]],decls:52,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","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,"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(n,l){if(1&n&&(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.k0s(),e.j41(45,"div",27)(46,"button",28),e.bIt("click",function(){return l.addConfig()}),e.EFF(47),e.nI1(48,"translate"),e.qSk(),e.j41(49,"svg",29),e.nrm(50,"path",30),e.k0s()()()()()()(),e.DNE(51,iJ2,1,1,"error-message",31)),2&n){let r,m,z,F,I;e.R7$(8),e.SpI(" ",e.bMT(9,16,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,18,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(20,20,"ADMIN._verification")),e.R7$(5),e.Y8G("formGroup",l.emailForm),e.R7$(2),e.JRh(e.bMT(27,22,"ADMIN._smtpServer")),e.R7$(2),e.Y8G("ngClass",1==(null==(r=l.emailForm.get("smtpServer"))?null:r.invalid)&&""!=l.emailForm.value.smtpServer?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(31,24,"ADMIN._smtpPort")),e.R7$(2),e.Y8G("ngClass",1==(null==(m=l.emailForm.get("smtpPort"))?null:m.invalid)&&""!=l.emailForm.value.smtpPort?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(35,26,"ADMIN._email")),e.R7$(2),e.Y8G("ngClass",1==(null==(z=l.emailForm.get("email"))?null:z.invalid)&&""!=l.emailForm.value.email?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(39,28,"ADMIN._emailUser")),e.R7$(2),e.Y8G("ngClass",1==(null==(F=l.emailForm.get("emailUser"))?null:F.invalid)&&""!=l.emailForm.value.emailUser?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(43,30,"ADMIN._emailPass")),e.R7$(2),e.Y8G("ngClass",1==(null==(I=l.emailForm.get("emailPassword"))?null:I.invalid)&&""!=l.emailForm.value.emailPassword?"border-red-600":"border-gray-300"),e.R7$(3),e.SpI(" ",e.bMT(48,32,"ADMIN._add")," "),e.R7$(4),e.vxM(51,l.showError?51:-1)}},dependencies:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,M0,s1.D9]})}}return t})();function dJ2(t,a){1&t&&e.nrm(0,"admin-categories")}function fJ2(t,a){1&t&&e.nrm(0,"create-category")}function uJ2(t,a){if(1&t&&e.nrm(0,"update-category",19),2&t){const c=e.XpG();e.Y8G("category",c.category_to_update)}}function mJ2(t,a){1&t&&e.nrm(0,"verification")}function pJ2(t,a){1&t&&e.nrm(0,"operator-revenue-sharing")}function hJ2(t,a){1&t&&e.nrm(0,"email")}let gJ2=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.cdr=n,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.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{"AdminCategories"===r.type&&1==r.value&&this.goToCategories(),"CreateCategory"===r.type&&1==r.value&&this.goToCreateCategories(),"UpdateCategory"===r.type&&(this.category_to_update=r.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.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.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.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.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.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.cdr.detectChanges()}selectCategories(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectVerification(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectEmail(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.selectMenu(r,"text-white bg-primary-100")}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(e.gRc),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-admin"]],decls:53,vars:33,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","mb-8"],["id","categories-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"],["id","verify-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"],["id","revenue-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"],["id","email-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,"category"]],template:function(n,l){1&n&&(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")(17,"a",11),e.bIt("click",function(){return l.goToCategories()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"li")(21,"a",11),e.bIt("click",function(){return l.goToVerification()}),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"li")(25,"a",11),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li")(29,"a",11),e.bIt("click",function(){return l.goToEmail()}),e.EFF(30),e.nI1(31,"translate"),e.k0s()()()(),e.j41(32,"div",12)(33,"div",13)(34,"div",14)(35,"button",15),e.bIt("click",function(){return l.goToCategories()}),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.j41(38,"button",16),e.bIt("click",function(){return l.goToVerification()}),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"button",17),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"button",18),e.bIt("click",function(){return l.goToEmail()}),e.EFF(45),e.nI1(46,"translate"),e.k0s()()(),e.DNE(47,dJ2,1,0,"admin-categories")(48,fJ2,1,0,"create-category")(49,uJ2,1,1,"update-category",19)(50,mJ2,1,0,"verification")(51,pJ2,1,0,"operator-revenue-sharing")(52,hJ2,1,0,"email"),e.k0s()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,15,"ADMIN._admin")),e.R7$(15),e.JRh(e.bMT(19,17,"ADMIN._categories")),e.R7$(4),e.JRh(e.bMT(23,19,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(27,21,"ADMIN._revenue")),e.R7$(4),e.JRh(e.bMT(31,23,"ADMIN._email")),e.R7$(6),e.SpI(" ",e.bMT(37,25,"ADMIN._categories")," "),e.R7$(3),e.SpI(" ",e.bMT(40,27,"ADMIN._verification")," "),e.R7$(3),e.SpI(" ",e.bMT(43,29,"ADMIN._revenue")," "),e.R7$(3),e.SpI(" ",e.bMT(46,31,"ADMIN._email")," "),e.R7$(2),e.vxM(47,l.show_categories?47:-1),e.R7$(),e.vxM(48,l.show_create_categories?48:-1),e.R7$(),e.vxM(49,l.show_update_categories?49:-1),e.R7$(),e.vxM(50,l.show_verification?50:-1),e.R7$(),e.vxM(51,l.show_revenue?51:-1),e.R7$(),e.vxM(52,l.show_email?52:-1))},dependencies:[vw1,hW2,RW2,sJ2,oJ2,rJ2,s1.D9]})}}return t})();const jd1=(t,a)=>a.id,KH=(t,a)=>({"break-all":t,"break-words":a});function _J2(t,a){1&t&&(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 LJ2(t,a){if(1&t&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",e.l_i(2,KH,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name)}}function CJ2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CATALOGS._no_cat")))}function zJ2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.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,LJ2,2,5,"span",18,jd1,!1,CJ2,3,3,"span",19),e.k0s(),e.j41(11,"div",20)(12,"button",21),e.bIt("click",function(l){const r=e.eBV(c).$implicit;return e.XpG(2).showFullDesc(r),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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(9,KH,n.hasLongWord(c.name,20),!n.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 MJ2(t,a){if(1&t&&(e.j41(0,"div",10),e.Z7z(1,zJ2,19,12,"div",11,jd1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.catalogs)}}function xJ2(t,a){if(1&t){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 bJ2(t,a){if(1&t&&e.DNE(0,xJ2,5,0,"div",26),2&t){const c=e.XpG();e.vxM(0,c.page_check?0:-1)}}function yJ2(t,a){1&t&&(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 FJ2(t,a){if(1&t&&(e.j41(0,"span",39),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("ngClass",e.l_i(2,KH,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function vJ2(t,a){1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CATALOGS._no_cat")," "))}function kJ2(t,a){if(1&t){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,FJ2,2,5,"span",39,jd1,!1,vJ2,3,3,"span",40),e.k0s()()()()}if(2&t){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,KH,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 wJ2=(()=>{class t{constructor(c,n,l,r){this.router=c,this.api=n,this.cdr=l,this.paginationService=r,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=h1.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=AC1,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",n=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))})}getCatalogs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:n.filter},n.api.getCatalogs.bind(n.api)).then(r=>{n.page_check=r.page_check,n.catalogs=r.items.filter(m=>m.id!==h1.c.DFT_CATALOG_ID),n.nextCatalogs=r.nextItems,n.page=r.page,n.loading=!1,n.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,b1.A)(function*(){yield c.getCatalogs(!0)})()}showFullDesc(c){this.showDesc=!0,this.showingCat=c}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-catalogs"]],hostBindings:function(n,l){1&n&&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",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(n,l){1&n&&(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,_J2,6,0,"div",4)(9,MJ2,3,0)(10,bJ2,1,1)(11,yJ2,6,0),e.k0s(),e.DNE(12,kJ2,16,10,"div",5)),2&n&&(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:[L.YU,H0,s1.D9]})}}return t})();var SJ2=v(9350),NJ2=v(7707);function wE(t,a){const c="object"==typeof a;return new Promise((n,l)=>{const r=new NJ2.Ms({next:m=>{n(m),r.unsubscribe()},error:l,complete:()=>{c?n(a.defaultValue):l(new SJ2.G)}});t.subscribe(r)})}class Jy{static{this.BASE_URL=h1.c.BASE_URL}static{this.CHARGING=h1.c.CHARGING}static{this.ORDER_LIMIT=h1.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),this.http.post(`${Jy.BASE_URL}${Jy.CHARGING}/api/orderManagement/orders/confirm/`,c,{observe:"response"})}static{this.\u0275fac=function(c){return new(c||Jy)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:Jy,factory:Jy.\u0275fac,providedIn:"root"})}}const eG=[{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"}],Qy=[{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"}],EJ2={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 ww1(t,a){t=t.split("-"),a=a.split("-");for(var c=t[0].split("."),n=a[0].split("."),l=0;l<3;l++){var r=Number(c[l]),m=Number(n[l]);if(r>m)return 1;if(m>r)return-1;if(!isNaN(r)&&isNaN(m))return 1;if(isNaN(r)&&!isNaN(m))return-1}return t[1]&&a[1]?t[1]>a[1]?1:t[1]t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(n=c()).done;)a+=yQ2(n.value,a)||"";return a}function yQ2(t,a,c){return"+"===t?a?void("function"==typeof c&&c("end")):"+":function $w1(t){return MQ2[t]}(t)}function Bw1(t,a){(null==a||a>t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}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=n()).done;){var r=l.value;t.indexOf(r)<0&&c.push(r)}return c.sort(function(m,z){return m-z})}(r,m.possibleLengths()))}else if(c&&!l)return"INVALID_LENGTH";var z=t.length,F=r[0];return F===z?"IS_POSSIBLE":F>z?"TOO_SHORT":r[r.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Uw1(t,a,c){return"IS_POSSIBLE"===Gd1(t,a,c)}function ef(t,a){return t=t||"",new RegExp("^(?:"+a+")$").test(t)}function Hw1(t,a){(null==a||a>t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(EQ2);!(r=l()).done;){var m=r.value;if(qd1(n,m,c))return m}}}}function qd1(t,a,c){return!(!(a=c.type(a))||!a.pattern()||a.possibleLengths()&&a.possibleLengths().indexOf(t.length)<0)&&ef(t,a.pattern())}var AQ2=new RegExp("(["+y9+"])");function Gw1(t,a){(null==a||a>t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}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);!(r=l()).done;){var m=r.value;if(n.selectNumberingPlan(m),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return m}else if(Yd1({phone:t,country:m},void 0,n.metadata))return m}}(c,{countries:l,metadata:n.metadata}):void 0}function Xd1(t,a,c){var n=function PQ2(t,a){if(t&&a.numberingPlan.nationalPrefixForParsing()){var c=new RegExp("^(?:"+a.numberingPlan.nationalPrefixForParsing()+")"),n=c.exec(t);if(n){var l,r,I,m=n.length-1,z=m>0&&n[m];if(a.nationalPrefixTransformRule()&&z?(l=t.replace(c,a.nationalPrefixTransformRule()),m>1&&(r=n[1])):(l=t.slice(n[0].length),z&&(r=n[1])),z){var J=t.indexOf(n[1]);t.slice(0,J)===a.numberingPlan.nationalPrefix()&&(I=a.numberingPlan.nationalPrefix())}else I=n[0];return{nationalNumber:l,nationalPrefix:I,carrierCode:r}}}return{nationalNumber:t}}(t,c),l=n.carrierCode,r=n.nationalNumber;if(r!==t){if(!function VQ2(t,a,c){return!(ef(t,c.nationalNumberPattern())&&!ef(a,c.nationalNumberPattern()))}(t,r,c))return{nationalNumber:t};if(c.numberingPlan.possibleLengths()&&(a||(a=Yw1(c.numberingPlan.callingCode(),{nationalNumber:r,metadata:c})),!function UQ2(t,a,c){switch(Gd1(t,a,c)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(r,a,c)))return{nationalNumber:t}}return{nationalNumber:r,carrierCode:l}}function qw1(t,a,c,n,l){if(!t)return{};var r;if("+"!==t[0]){var m=function IQ2(t,a,c,n){if(a){var l=new _e(n);l.selectNumberingPlan(a,c);var r=new RegExp(l.IDDPrefix());if(0===t.search(r)){var m=(t=t.slice(t.match(r)[0].length)).match(AQ2);if(!(m&&null!=m[1]&&m[1].length>0&&"0"===m[1]))return t}}}(t,a||c,n,l);if(!m||m===t){if(a||c||n){var z=function HQ2(t,a,c,n,l){var r=a||c?nG(a||c,l):n;if(0===t.indexOf(r)){(l=new _e(l)).selectNumberingPlan(a||c,r);var m=t.slice(r.length),F=Xd1(m,a,l).nationalNumber,J=Xd1(t,a,l).nationalNumber;if(!ef(J,l.nationalNumberPattern())&&ef(F,l.nationalNumberPattern())||"TOO_LONG"===Gd1(J,a,l))return{countryCallingCode:r,number:m}}return{number:t}}(t,a,c,n,l),F=z.countryCallingCode;if(F)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:F,number:z.number}}return{number:t}}r=!0,t="+"+m}if("0"===t[1])return{};l=new _e(l);for(var J=2;J-1<=qJ2&&J<=t.length;){var d1=t.slice(1,J);if(l.hasCallingCode(d1))return l.selectNumberingPlan(d1),{countryCallingCodeSource:r?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:d1,number:t.slice(J)};J++}return{}}var YQ2=/(\$\d)/;var XQ2=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,Jw1={formatExtension:function(a,c,n){return"".concat(a).concat(n.ext()).concat(c)}};function sG(t,a,c,n,l){var r=function nZ2(t,a){return function aZ2(t,a){for(var c=0;c0){var n=c.leadingDigitsPatterns()[c.leadingDigitsPatterns().length-1];if(0!==a.search(n))return!1}return ef(a,c.pattern())})}(n.formats(),t);return r?function qQ2(t,a,c){var n=c.useInternationalFormat,l=c.withNationalPrefix,z=t.replace(new RegExp(a.pattern()),n?a.internationalFormat():l&&a.nationalPrefixFormattingRule()?a.format().replace(YQ2,a.nationalPrefixFormattingRule()):a.format());return n?function GQ2(t){return t.replace(new RegExp("[".concat(lG,"]+"),"g")," ").trim()}(z):z}(t,r,{useInternationalFormat:"INTERNATIONAL"===c,withNationalPrefix:!(r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&l&&!1===l.nationalPrefix),carrierCode:a,metadata:n}):t}function Wd1(t,a,c,n){return a?n(t,a,c):t}function EE(t){return(EE="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})(t)}function Qw1(t,a){var c=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),c.push.apply(c,n)}return c}function Zw1(t){for(var a=1;a=0}(a,r,c)}):[]}(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function wQ2(t,a,c){if(void 0===a&&(a={}),c=new _e(c),a.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!c.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));c.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(t.countryCallingCode)}}if(c.possibleLengths())return Uw1(t.phone||t.nationalNumber,t.country,c);if(t.countryCallingCode&&c.isNonGeographicCallingCode(t.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 DQ2(t,a,c){return a=a||{},(c=new _e(c)).selectNumberingPlan(t.country,t.countryCallingCode),c.hasTypes()?void 0!==Yd1(t,a,c.metadata):ef(a.v2?t.nationalNumber:t.phone,c.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new _e(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(c){return this.number===c.number&&this.ext===c.ext}},{key:"getType",value:function(){return Yd1(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(c,n){return function tZ2(t,a,c,n){if(c=c?function sZ2(){for(var t=1,a=arguments.length,c=new Array(a),n=0;n=t.length)return"";var n=t.indexOf(";",c);return n>=0?t.substring(c,n):t.substring(c)}(t);if(!function vZ2(t){return null===t||0!==t.length&&(LZ2.test(t)||bZ2.test(t))}(n))throw new GL("NOT_A_NUMBER");if(null===n)l=c(t)||"";else{l="",n.charAt(0)===cS1&&(l+=n);var m,r=t.indexOf(nS1);m=r>=0?r+nS1.length:0;var z=t.indexOf(Qd1);l+=t.substring(m,z)}var F=l.indexOf(yZ2);if(F>0&&(l=l.substring(0,F)),""!==l)return l}(t,{extractFormattedPhoneNumber:function(m){return function TZ2(t,a,c){if(t){if(t.length>wZ2){if(c)throw new GL("TOO_LONG");return}if(!1===a)return t;var n=t.search(SZ2);if(!(n<0))return t.slice(n).replace(NZ2,"")}}(m,c,a)}});if(!n)return{};if(!function gQ2(t){return t.length>=Bd1&&hQ2.test(t)}(n))return function _Q2(t){return mQ2.test(t)}(n)?{error:"TOO_SHORT"}:{};var l=function LQ2(t){var a=t.search(Iw1);if(a<0)return{};for(var c=t.slice(0,a),n=t.match(Iw1),l=1;lYJ2){if(a.v2)throw new GL("TOO_LONG");return{}}if(a.v2){var N1=new uZ2(J,I,c.metadata);return F&&(N1.country=F),i1&&(N1.carrierCode=i1),r&&(N1.ext=r),N1.__countryCallingCodeSource=d1,N1}var J1=!!(a.extended?c.hasSelectedNumberingPlan():F)&&ef(I,c.nationalNumberPattern());return a.extended?{country:F,countryCallingCode:J,carrierCode:i1,valid:J1,possible:!!J1||!(!0!==a.extended||!c.possibleLengths()||!Uw1(I,F,c)),phone:I,ext:r}:J1?function AZ2(t,a,c){var n={country:t,phone:a};return c&&(n.ext=c),n}(F,I,r):{}}function DE(t){return(DE="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})(t)}function lS1(t,a){var c=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),c.push.apply(c,n)}return c}function sS1(t){for(var a=1;at.length)&&(a=t.length);for(var c=0,n=Array(a);ca.code;function eK2(t,a){1&t&&(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 cK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function tK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function nK2(t,a){if(1&t&&(e.j41(0,"option",45),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function lK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function sK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function aK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function oK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function iK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function rK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function dK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function fK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_larger")))}function uK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_email")))}function mK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._email_format")))}function pK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function hK2(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.selectPrefix(l))}),e.j41(1,"div",49),e.EFF(2),e.k0s()()}if(2&t){const c=a.$implicit;e.BMQ("data-country",c.country),e.R7$(2),e.SpI(" ",c.text," ")}}function gK2(t,a){if(1&t&&(e.j41(0,"div",40)(1,"ul",46,0)(3,"li"),e.Z7z(4,hK2,3,2,"button",47,KZ2),e.k0s()()()),2&t){const c=e.XpG(2);e.R7$(4),e.Dyx(c.prefixes)}}function _K2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2,"You cannot enter negative numbers."),e.k0s()())}function LK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function CK2(t,a){if(1&t){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&t){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 zK2(t,a){if(1&t){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&t){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 MK2(t,a){if(1&t){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,cK2,4,3,"p",12)(7,tK2,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,nK2,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,lK2,4,3,"p",12)(20,sK2,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,aK2,4,3,"p",12)(27,oK2,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,iK2,4,3,"p",12)(34,rK2,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,dK2,4,3,"p",12)(41,fK2,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,uK2,4,3,"p",12)(48,mK2,4,3,"p",12)(49,pK2,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,gK2,6,0,"div",40),e.joV(),e.nrm(76,"input",41),e.k0s(),e.DNE(77,_K2,3,0,"p",12)(78,LK2,4,3),e.k0s()(),e.j41(79,"div",42),e.DNE(80,CK2,3,5,"button",43)(81,zK2,3,5),e.k0s()()}if(2&t){let c,n,l,r,m,z,F,I,J,d1,i1,N1,J1,u2,v2,G2,E0,d4,V0,e4,l0;const q2=e.XpG();e.Y8G("formGroup",q2.billingForm),e.R7$(3),e.SpI("",e.bMT(4,36,"BILLING._title")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(c=q2.billingForm.get("name"))&&c.touched&&null!=(c=q2.billingForm.get("name"))&&c.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(6,null!=(n=q2.billingForm.get("name"))&&n.touched&&null!=(n=q2.billingForm.get("name"))&&n.hasError("required")?6:-1),e.R7$(),e.vxM(7,null!=(l=q2.billingForm.get("name"))&&l.invalid&&null!=(l=q2.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",q2.euCountries),e.R7$(3),e.SpI("",e.bMT(17,40,"BILLING._city")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(r=q2.billingForm.get("city"))&&r.touched&&null!=(r=q2.billingForm.get("city"))&&r.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(19,null!=(m=q2.billingForm.get("city"))&&m.touched&&null!=(m=q2.billingForm.get("city"))&&m.hasError("required")?19:-1),e.R7$(),e.vxM(20,null!=(z=q2.billingForm.get("city"))&&z.invalid&&null!=(z=q2.billingForm.get("city"))&&null!=z.errors&&z.errors.maxlength?20:-1),e.R7$(3),e.SpI("",e.bMT(24,42,"BILLING._state")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(F=q2.billingForm.get("stateOrProvince"))&&F.touched&&null!=(F=q2.billingForm.get("stateOrProvince"))&&F.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(26,null!=(I=q2.billingForm.get("stateOrProvince"))&&I.touched&&null!=(I=q2.billingForm.get("stateOrProvince"))&&I.hasError("required")?26:-1),e.R7$(),e.vxM(27,null!=(J=q2.billingForm.get("stateOrProvince"))&&J.invalid&&null!=(J=q2.billingForm.get("stateOrProvince"))&&null!=J.errors&&J.errors.maxlength?27:-1),e.R7$(3),e.SpI("",e.bMT(31,44,"BILLING._post_code")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(d1=q2.billingForm.get("postCode"))&&d1.touched&&null!=(d1=q2.billingForm.get("postCode"))&&d1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(33,null!=(i1=q2.billingForm.get("postCode"))&&i1.touched&&null!=(i1=q2.billingForm.get("postCode"))&&i1.hasError("required")?33:-1),e.R7$(),e.vxM(34,null!=(N1=q2.billingForm.get("postCode"))&&N1.invalid&&null!=(N1=q2.billingForm.get("postCode"))&&null!=N1.errors&&N1.errors.maxlength?34:-1),e.R7$(3),e.SpI("",e.bMT(38,46,"BILLING._street")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(J1=q2.billingForm.get("street"))&&J1.touched&&null!=(J1=q2.billingForm.get("street"))&&J1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(40,null!=(u2=q2.billingForm.get("street"))&&u2.touched&&null!=(u2=q2.billingForm.get("street"))&&u2.hasError("required")?40:-1),e.R7$(),e.vxM(41,null!=(v2=q2.billingForm.get("street"))&&v2.invalid&&null!=(v2=q2.billingForm.get("street"))&&null!=v2.errors&&v2.errors.maxlength?41:-1),e.R7$(3),e.SpI("",e.bMT(45,48,"BILLING._email")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(G2=q2.billingForm.get("email"))&&G2.touched&&null!=(G2=q2.billingForm.get("email"))&&G2.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(47,null!=(E0=q2.billingForm.get("email"))&&E0.invalid&&null!=(E0=q2.billingForm.get("email"))&&null!=E0.errors&&E0.errors.maxlength?47:-1),e.R7$(),e.vxM(48,null!=(d4=q2.billingForm.get("email"))&&d4.invalid&&null!=(d4=q2.billingForm.get("email"))&&null!=d4.errors&&d4.errors.pattern?48:-1),e.R7$(),e.vxM(49,null!=(V0=q2.billingForm.get("email"))&&V0.touched&&null!=(V0=q2.billingForm.get("email"))&&V0.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(" ",q2.phonePrefix.flag," ",q2.phonePrefix.code," "),e.R7$(3),e.vxM(75,1==q2.prefixCheck?75:-1),e.R7$(),e.Y8G("ngClass",null!=(e4=q2.billingForm.get("telephoneNumber"))&&e4.touched&&1==(null==(e4=q2.billingForm.get("telephoneNumber"))?null:e4.invalid)?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(77,null!=(l0=q2.billingForm.get("telephoneNumber"))&&l0.invalid&&null!=(l0=q2.billingForm.get("telephoneNumber"))&&null!=l0.errors&&l0.errors.min&&null!=(l0=q2.billingForm.get("telephoneNumber"))&&l0.touched?77:null!=(l0=q2.billingForm.get("telephoneNumber"))&&l0.touched&&null!=(l0=q2.billingForm.get("telephoneNumber"))&&l0.hasError("required")?78:-1),e.R7$(3),e.vxM(80,q2.is_create?80:81)}}function xK2(t,a){1&t&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_phone")))}function bK2(t,a){1&t&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_email")))}function yK2(t,a){if(1&t&&(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,xK2,3,3,"div",55)(6,bK2,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&t){let c,n;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==(n=l.billingForm.get("email"))?null:n.invalid)?6:-1)}}function FK2(t,a){if(1&t&&e.nrm(0,"error-message",3),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Zd1=(()=>{class t{constructor(c,n,l,r,m){this.localStorage=c,this.cdr=n,this.router=l,this.accountService=r,this.eventMessage=m,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=[...eG].sort((z,F)=>this.getCountryName(z.text).localeCompare(this.getCountryName(F.text))),this.countries=Qy,this.phonePrefix=eG[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,P1.Q)(this.destroy$)).subscribe(z=>{"ChangedSession"===z.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-Y2().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:h1.c.SELLER_ROLE};else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,console.log("loggedOrg info"),console.log(n),this.partyInfo={id:this.partyId,name:n.name,href:this.partyId,role:h1.c.SELLER_ROLE}}}setDefaultValues(){if(null!=this.billAcc){const c=ew(this.billAcc.telephoneNumber);if(c){let n=this.prefixes.filter(l=>l.code==="+"+c.countryCallingCode);n.length>0&&(this.phonePrefix=n[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 n=ew(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(n){if(!n.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 n=ew(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(n){if(!n.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 n=c.match(/\+\d+\s+(.+)$/);return n?n[1]:c}onKeydown(c){if(!this.prefixCheck)return;const n=c.key.toLowerCase();if(!/^[a-z]$/.test(n))return;const l=this.prefixes.find(m=>this.getCountryName(m.text).toLowerCase().startsWith(n));if(!l||!this.prefixListRef)return;const r=this.prefixListRef.nativeElement.querySelector(`[data-country="${l.country}"]`);r&&r.scrollIntoView({block:"nearest"})}selectPrefix(c){console.log(c),this.prefixCheck=!1,this.phonePrefix=c}detectCountry(){let r=function UJ2(){return function DJ2(t,a){var c=Array.prototype.slice.call(a);return c.push(EJ2),t.apply(this,c)}(nG,arguments)}(navigator.language.split("-")[1].toUpperCase());if(r){let m=this.prefixes.filter(z=>z.code==="+"+r);m.length>0&&(this.phonePrefix=m[0])}}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(K0.O),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-billing-account-form"]],viewQuery:function(n,l){if(1&n&&e.GBs(ZZ2,5),2&n){let r;e.mGM(r=e.lsd())&&(l.prefixListRef=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("keydown",function(m){return l.onKeydown(m)})},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(n,l){1&n&&e.DNE(0,eK2,6,0,"div",1)(1,MK2,82,54)(2,yK2,12,2,"div",2)(3,FK2,1,1,"error-message",3),2&n&&(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:[L.YU,L.Sq,p.qT,p.xH,p.y7,p.me,p.Q0,p.wz,p.BC,p.cb,p.j4,p.JD,M0,s1.D9]})}}return t})();const vK2=(t,a)=>({"break-all":t,"break-words":a});function kK2(t,a){if(1&t){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&t){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 wK2(t,a){if(1&t){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&t){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 iS1=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.accountService=n,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,P1.Q)(this.destroy$)).subscribe(r=>{0==r.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(K0.O),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-billing-address"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(m){return l.selectBillingAddress(m)}),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(m){return l.editBill=!0,m.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,kK2,14,8,"div",9)(14,wK2,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&n&&(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,vK2,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:[L.YU,Zd1,s1.D9]})}}return t})();const rS1=(t,a)=>a.id,SK2=(t,a)=>({"break-all":t,"break-words":a});function NK2(t,a){1&t&&(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&t&&(e.R7$(3),e.JRh(e.bMT(4,1,"SHOPPING_CART._loading_purchase")))}function EK2(t,a){if(1&t){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 DK2(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-billing-address",39),e.bIt("selectedEvent",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onSelected(l))})("deletedEvent",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onDeleted(l))}),e.k0s()}if(2&t){const n=a.$index;e.Y8G("data",a.$implicit)("position",n)}}function TK2(t,a){if(1&t&&(e.j41(0,"div",18),e.Z7z(1,DK2,1,2,"app-billing-address",38,rS1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.billingAddresses)}}function RK2(t,a){1&t&&e.nrm(0,"app-billing-account-form",40),2&t&&e.Y8G("preferred",!0)}function AK2(t,a){1&t&&(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 IK2(t,a){if(1&t&&e.nrm(0,"img",49),2&t){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function PK2(t,a){1&t&&e.nrm(0,"img",58)}function $K2(t,a){1&t&&e.EFF(0," Estimated price: ")}function jK2(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function OK2(t,a){if(1&t&&(e.j41(0,"div",59)(1,"span",60),e.EFF(2),e.k0s(),e.j41(3,"span",61),e.DNE(4,$K2,1,0),e.EFF(5),e.DNE(6,jK2,1,1),e.k0s()()),2&t){const c=a.$implicit,n=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,n.hasKey(c,"recurringChargePeriod")?6:-1)}}function BK2(t,a){if(1&t&&(e.j41(0,"div",54),e.Z7z(1,OK2,7,5,"div",59,e.fX1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function VK2(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.goToProdDetails(l))}),e.DNE(4,IK2,1,1,"img",49)(5,PK2,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,BK2,3,0,"div",54),e.k0s()()(),e.j41(12,"div",52)(13,"button",55),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.deleteProduct(l))}),e.qSk(),e.j41(14,"svg",56),e.nrm(15,"path",57),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,SK2,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.vxM(11,c.options.pricing?11:-1)}}function UK2(t,a){if(1&t&&e.Z7z(0,VK2,16,7,"div",45,rS1),2&t){const c=e.XpG();e.Dyx(c.items)}}function HK2(t,a){1&t&&(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 GK2(t,a){if(1&t){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&t){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 YK2(t,a){if(1&t&&e.nrm(0,"error-message",29),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}class RE{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c,n,l,r,m,z,F,I,J,d1){var i1=this;this.localStorage=a,this.account=c,this.orderService=n,this.eventMessage=l,this.priceService=r,this.cartService=m,this.paymentService=z,this.api=F,this.cdr=I,this.router=J,this.route=d1,this.faCartShopping=AL,this.PURCHASE_ENABLED=h1.c.PURCHASE_ENABLED,this.TAX_RATE=h1.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,P1.Q)(this.destroy$)).subscribe(function(){var N1=(0,b1.A)(function*(J1){"BillAccChanged"===J1.type&&i1.getBilling(),1==J1.value&&(i1.addBill=!1),"ChangedSession"===J1.type&&(console.log("changing session..."),yield i1.initCheckoutData()),"AddedCartItem"===J1.type&&(i1.loadingItems=!0,console.log("Elemento a\xf1adido"),i1.cartService.getShoppingCart().then(function(){var u2=(0,b1.A)(function*(v2){console.log("---CARRITO API---"),console.log(v2),i1.items=v2,i1.providerId&&(yield i1.getProviderInfo(),i1.groupItemsByOwner(i1.providerId)),i1.cdr.detectChanges(),i1.getTotalPrice(),i1.loadingItems=!1,console.log("------------------")});return function(v2){return u2.apply(this,arguments)}}())),"RemovedCartItem"===J1.type&&(i1.loadingItems=!0,i1.cartService.getShoppingCart().then(function(){var u2=(0,b1.A)(function*(v2){console.log("---CARRITO API---"),console.log(v2),i1.items=v2,i1.providerId&&(yield i1.getProviderInfo(),i1.groupItemsByOwner(i1.providerId)),i1.cdr.detectChanges(),i1.getTotalPrice(),i1.loadingItems=!1,console.log("------------------")});return function(v2){return u2.apply(this,arguments)}}()))});return function(J1){return N1.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()==M9.PRICE.RECURRING?a.options.pricing.recurringChargePeriodType:a.options.pricing.priceType?.toLocaleLowerCase()==M9.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 n=0;nn.options.pricing).map(n=>a.createProductPayload(n));console.log("Productos creados:",c);try{const n=a.createProductOrder(c);console.log("--- order ---"),console.log(n);const l=yield wE(a.orderService.postProductOrder(n)),r=l.headers.get("X-Redirect-URL");console.log(l.headers),console.log(r),console.log("PROD ORDER DONE"),r?(console.log("redirectURL"),window.location.href=r):(console.log("non-redirectURL"),yield a.emptyShoppingCart(),a.goToInventory())}catch(n){a.handleError(n,"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:h1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBillingAddress.id,href:this.selectedBillingAddress.id},notificationContact:this.selectedBillingAddress.email};if(""!=this.orderNote){const n={text:this.orderNote,id:`urn:ngsi-ld:note:${A4()}`,author:this.relatedParty,date:(new Date).toISOString()};c.note=[n]}return c}emptyShoppingCart(){var a=this;return(0,b1.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 n=c.ref.split("?jwt");c.ref=n[0],c.jwt=n[1]}this.loading_purchase=!0,wE(this.paymentService.completePayment(c)).then(n=>{this.loading_purchase=!1,console.log("--- Payment Response ---"),console.log(n),"accept"==a.action&&200==n.status?this.emptyShoppingCart().then(()=>this.goToInventory()):this.initCheckoutData()}).catch(n=>{this.loading_purchase=!0,console.log("--- Payment Error ---"),console.log(n),this.initCheckoutData()})}else this.initCheckoutData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initCheckoutData(){var a=this;return(0,b1.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(r=>r.id==c.logged_as);a.relatedParty=l.partyId}console.log("--- Login Info ---"),console.log(c);let n=yield a.cartService.getShoppingCart();console.log("---CARRITO API---"),console.log(n),a.items=n,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,b1.A)(function*(){for(let c=0;cn.relatedParty?.find(r=>r.role===h1.c.SELLER_ROLE)?.id===a);console.log(c),this.items=c}getBilling(){var a=this;return(0,b1.A)(function*(){a.selectedBillingAddress=null;let c=!1;a.billingAddresses=[];let n=yield a.account.getBillingAccount();for(let l=0;l0),a.validBillAddr=!!a.selectedBillingAddress?.id,a.cdr.detectChanges()})()}onSelected(a){var c=this;return(0,b1.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 n=JSON.parse(JSON.stringify(c.items));for(const l of n){console.log("---- cart item ----"),console.log(l);let m=(yield(0,U2.s)(c.priceService.calculatePrice({productOrder:{id:A4(),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;m=m.map(z=>({...z,id:l.options.pricing[0].id})),l.options.pricing=m}yield c.emptyShoppingCart(),c.items=n;for(const l of c.items)yield c.cartService.addItemShoppingCart(l);c.getTotalPrice(),c.cdr.detectChanges()}catch(n){c.validBillAddr=!1,c.cdr.detectChanges(),c.handleError(n,"Invalid biling address")}})()}buildUsageFromCartItem(a){var c=this;return(0,b1.A)(function*(){if(!a.options.pricing||0===a.options.pricing.length)return[];let n=[];const l=yield c.api.getOfferingPrice(a.options.pricing[0].id);if(l.isBundle)for(const r of l.bundledPopRelationship){const m=yield c.api.getOfferingPrice(r.id);m.usageSpecId&&m.unitOfMeasure&&n.push({usageSpecification:{id:m.usageSpecId},usageCharacteristic:[{name:m.unitOfMeasure.units,value:1}]})}else n.push(l);return n})()}onDeleted(a){console.log("Deleting billing account")}deleteProduct(a){var c=this;return(0,b1.A)(function*(){yield c.cartService.removeItemShoppingCart(a.id),console.log("deleted"),c.eventMessage.emitRemovedCartItem(a),c.cartService.getShoppingCart().then(function(){var n=(0,b1.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 n.apply(this,arguments)}}())})()}goToProdDetails(a){this.router.navigate(["/search/",a.id])}hasLongWord(a,c=20){return!!a&&a.split(/\s+/).some(n=>n.length>c)}static{this.\u0275fac=function(c){return new(c||RE)(e.rXU(L2.s),e.rXU(K0.O),e.rXU(w8),e.rXU(H2),e.rXU(pe),e.rXU(r8),e.rXU(Jy),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(E2.nX))}}static{this.\u0275cmp=e.VBU({type:RE,selectors:[["app-checkout"]],hostBindings:function(c,n){1&c&&e.bIt("click",function(){return n.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,n){1&c&&(e.DNE(0,NK2,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,EK2,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,TK2,3,0,"div",18)(37,RK2,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(r){return e.DH7(n.orderNote,r)||(n.orderNote=r),r}),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,AK2,6,0,"div",25)(58,UK2,2,0),e.k0s(),e.DNE(59,HK2,7,0,"div",26),e.j41(60,"button",27),e.bIt("click",function(){return n.orderProduct()}),e.EFF(61),e.nI1(62,"translate"),e.k0s()()()()(),e.DNE(63,GK2,14,8,"div",28)(64,YK2,1,1,"error-message",29)),2&c&&(e.vxM(0,n.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("",n.contact.username," ",n.contact.email,""),e.R7$(7),e.JRh(e.bMT(30,26,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(31,n.billingAddresses.length>0?31:-1),e.R7$(3),e.JRh(e.bMT(35,28,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(36,n.billingAddresses.length>0?36:37),e.R7$(8),e.JRh(e.bMT(45,30,"SHOPPING_CART._order_note")),e.R7$(4),e.R50("ngModel",n.orderNote),e.R7$(6),e.JRh(e.bMT(55,32,"SHOPPING_CART._your_order")),e.R7$(3),e.vxM(57,n.loadingItems?57:58),e.R7$(2),e.vxM(59,n.validBillAddr?-1:59),e.R7$(),e.Y8G("disabled",0==n.items.length||!n.validBillAddr)("ngClass",0!=n.items.length&&n.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,n.addBill?63:-1),e.R7$(),e.vxM(64,n.showError?64:-1))},dependencies:[L.YU,p.me,p.BC,p.vS,iS1,Zd1,M0,s1.D9]})}}let qK2=(()=>{class t{constructor(c){this.http=c,this.BASE_URL=h1.c.BASE_URL}sendEmail(c){return this.http.post(`${this.BASE_URL}/contact-us`,c)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function XK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function WK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function JK2(t,a){if(1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&t){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 QK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function ZK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function KK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function e10(t,a){1&t&&(e.j41(0,"span",29),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.privacyRequired")," "))}function c10(t,a){if(1&t){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,"div",16)(11,"label",17),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",18),e.nI1(15,"translate"),e.DNE(16,XK2,3,3,"span",19),e.k0s(),e.j41(17,"div",16)(18,"label",17),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"input",20),e.nI1(22,"translate"),e.DNE(23,WK2,3,3,"span",19),e.k0s()(),e.j41(24,"div",16)(25,"label",17),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",21),e.nI1(29,"translate"),e.DNE(30,JK2,4,5,"span",19),e.k0s(),e.j41(31,"div",15)(32,"div",16)(33,"label",17),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.nrm(36,"input",22),e.nI1(37,"translate"),e.DNE(38,QK2,3,3,"span",19),e.k0s(),e.j41(39,"div",16)(40,"label",17),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.nrm(43,"input",23),e.nI1(44,"translate"),e.DNE(45,ZK2,3,3,"span",19),e.k0s()(),e.j41(46,"div",16)(47,"label",17),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.nrm(50,"textarea",24),e.nI1(51,"translate"),e.DNE(52,KK2,3,3,"span",19),e.k0s(),e.j41(53,"label",25),e.nrm(54,"input",26),e.j41(55,"span"),e.EFF(56),e.nI1(57,"translate"),e.j41(58,"a",27),e.EFF(59),e.nI1(60,"translate"),e.k0s(),e.EFF(61),e.nI1(62,"translate"),e.j41(63,"a",28),e.EFF(64),e.nI1(65,"translate"),e.k0s(),e.EFF(66),e.nI1(67,"translate"),e.k0s()(),e.DNE(68,e10,3,3,"span",29),e.j41(69,"label",30),e.nrm(70,"input",31),e.j41(71,"span"),e.EFF(72),e.nI1(73,"translate"),e.k0s()(),e.j41(74,"button",32),e.EFF(75),e.nI1(76,"translate"),e.k0s()()()}if(2&t){const c=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,41,"ContactUs.form.title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,43,"ContactUs.form.subtitle")," "),e.R7$(2),e.Y8G("formGroup",c.form),e.R7$(4),e.SpI(" ",e.bMT(13,45,"ContactUs.fields.firstName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("firstName")),e.Y8G("placeholder",e.bMT(15,47,"ContactUs.fields.firstName.placeholder")),e.R7$(2),e.vxM(16,c.hasError("firstName")?16:-1),e.R7$(3),e.SpI(" ",e.bMT(20,49,"ContactUs.fields.lastName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("lastName")),e.Y8G("placeholder",e.bMT(22,51,"ContactUs.fields.lastName.placeholder")),e.R7$(2),e.vxM(23,c.hasError("lastName")?23:-1),e.R7$(3),e.SpI(" ",e.bMT(27,53,"ContactUs.fields.email.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("email")),e.Y8G("placeholder",e.bMT(29,55,"ContactUs.fields.email.placeholder")),e.R7$(2),e.vxM(30,c.hasError("email")?30:-1),e.R7$(4),e.SpI(" ",e.bMT(35,57,"ContactUs.fields.organization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("organization")),e.Y8G("placeholder",e.bMT(37,59,"ContactUs.fields.organization.placeholder")),e.R7$(2),e.vxM(38,c.hasError("organization")?38:-1),e.R7$(3),e.SpI(" ",e.bMT(42,61,"ContactUs.fields.roleInOrganization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("roleInOrganization")),e.Y8G("placeholder",e.bMT(44,63,"ContactUs.fields.roleInOrganization.placeholder")),e.R7$(2),e.vxM(45,c.hasError("roleInOrganization")?45:-1),e.R7$(3),e.SpI(" ",e.bMT(49,65,"ContactUs.fields.message.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("message")),e.Y8G("placeholder",e.bMT(51,67,"ContactUs.fields.message.placeholder")),e.R7$(2),e.vxM(52,c.hasError("message")?52:-1),e.R7$(4),e.SpI(" ",e.bMT(57,69,"ContactUs.checkboxes.privacy.prefix")," "),e.R7$(3),e.SpI(" ",e.bMT(60,71,"ContactUs.checkboxes.privacy.privacyPolicy")," "),e.R7$(2),e.SpI(" ",e.bMT(62,73,"ContactUs.checkboxes.privacy.middle")," "),e.R7$(3),e.SpI(" ",e.bMT(65,75,"ContactUs.checkboxes.privacy.termsOfService")," "),e.R7$(2),e.SpI(" ",e.bMT(67,77,"ContactUs.checkboxes.privacy.suffix")," "),e.R7$(2),e.vxM(68,c.hasError("privacyAccepted")?68:-1),e.R7$(4),e.SpI(" ",e.bMT(73,79,"ContactUs.checkboxes.marketing")," "),e.R7$(3),e.SpI(" ",e.bMT(76,81,"ContactUs.cta.submit")," ")}}function t10(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",33)(1,"div",34)(2,"div",35)(3,"div",36),e.nrm(4,"fa-icon",37),e.k0s()(),e.j41(5,"h3",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",39),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",40)(12,"button",41),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&t){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 n10=(()=>{class t{constructor(){this.fb=(0,e.WQX)(p.ok),this.router=(0,e.WQX)(E2.Ix),this.contactUsService=(0,e.WQX)(qK2),this.faThumbsUp=Mv1,this.unsub=new S.B,this.submitted=!1,this.submittedSuccessfully=!1,this.form=this.fb.nonNullable.group({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 n=this.form.controls[c];return!!n&&n.invalid&&(n.touched||this.submitted)}onSubmit(){this.submitted=!0,this.form.markAllAsTouched(),!this.form.invalid&&this.contactUsService.sendEmail(this.form.getRawValue()).pipe((0,P1.Q)(this.unsub)).subscribe({next:()=>{this.submittedSuccessfully=!0}})}onContinueBrowsing(){this.submittedSuccessfully=!1,this.submitted=!1,this.form.reset({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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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,"grid","grid-cols-1","gap-4","sm:grid-cols-2"],[1,"contact-field"],[1,"contact-label"],["type","text","formControlName","firstName",1,"contact-input",3,"placeholder"],[1,"contact-error"],["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(n,l){1&n&&(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,c10,77,83,"div",10)(17,t10,15,10),e.k0s()()),2&n&&(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:[L.MD,p.X1,p.qT,p.me,p.Zm,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-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 t})();const l10=(t,a)=>a.id;function s10(t,a){if(1&t){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,r=e.XpG();return e.Njj(r.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&t){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 a10=(()=>{class t{constructor(c,n,l,r){this.eventMessage=c,this.localStorage=n,this.router=l,this.api=r,this.categories=[]}ngOnInit(){this.api.getDefaultCategories().then(c=>{for(let n=0;n{class t{constructor(){this.customerLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.customers._cards.access.title",hoverText:"DASHBOARD.customers._cards.access.desc",icon:cf1},{html:"DASHBOARD.customers._cards.discovery.title",hoverText:"DASHBOARD.customers._cards.discovery.desc",icon:lN1},{html:"DASHBOARD.customers._cards.procurement.title",hoverText:"DASHBOARD.customers._cards.procurement.desc",icon:cw.b6I},{html:"DASHBOARD.customers._cards.ecosystem.title",hoverText:"DASHBOARD.customers._cards.ecosystem.desc",icon:cw.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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-customers"]],inputs:{customerLink:[e.Mj6.SignalBased,"customerLink"]},standalone:!0,features:[e.aNF],decls:24,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-10","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-12","gap-5","sm:gap-6","items-stretch"],[1,"lg:col-span-5","h-full"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-5","sm:gap-6","h-full","auto-rows-fr"],[1,"lg:col-span-7","h-full","lg:min-h-[384px]","rounded-[14px]","bg-white/95","shadow-[0_12px_34px_rgba(13,33,74,0.12)]","ring-1","ring-black/5"],[1,"p-6","sm:p-8","lg:p-10","h-full","flex","flex-col"],[1,"text-[clamp(28px,3vw,38px)]","leading-[1.15]","tracking-[-0.02em]","font-extrabold","text-[#0b1220]"],[1,"mt-6","sm:mt-7","space-y-5","sm:space-y-6"],[1,"mt-8","sm:mt-10","flex","justify-center","sm:justify-end","mt-auto"],["target","_blank",1,"inline-flex","items-center","justify-center","h-[42px]","w-full","sm:w-auto","px-6","rounded-[10px]","bg-[#1f4fbf]","text-white","text-[14px]","font-semibold","shadow-[0_10px_18px_rgba(31,79,191,0.25)]","hover:brightness-110","active:brightness-95","transition",3,"href"],[1,"dc-feature-card","cursor-pointer"],[1,"dc-feature-card__base"],[1,"dc-feature-card__content"],[1,"text-[clamp(24px,2.2vw,30px)]","leading-[1.15]","font-extrabold","text-[#1f4fbf]",3,"innerHTML"],[1,"dc-feature-card__icon",3,"icon"],[1,"dc-feature-card__hover"],[1,"dc-feature-card__hover-text"],[1,"dc-feature-card__hover-icon",3,"icon"],[1,"grid","grid-cols-[44px_1fr]","sm:grid-cols-[52px_1fr]","gap-4","sm:gap-5","items-start"],[1,"pt-[2px]","text-[18px]","font-extrabold","text-[#1f4fbf]"],[1,"text-[18px]","font-extrabold","text-[#0b1220]"],[1,"mt-1","text-[17px]","sm:text-[18px]","leading-[1.6]","text-[#526179]"]],template:function(n,l){1&n&&(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,p40,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,g40,3,0,"div",15),e.j41(20,"div",16)(21,"a",17),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()()()()),2&n&&(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$(2),e.Y8G("href",l.customerLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(23,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:180px;border-radius:12px;overflow:hidden;background:#fffffff2;box-shadow:0 10px 30px #0d214a1a;border:1px solid rgba(0,0,0,.05);transition:transform .22s ease,box-shadow .22s ease}.dc-feature-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 38px #0d214a24}.dc-feature-card__base[_ngcontent-%COMP%]{position:relative;z-index:1;height:100%;min-height:180px;transition:opacity .18s ease,transform .22s ease}.dc-feature-card__content[_ngcontent-%COMP%]{height:100%;display:flex;align-items:flex-end;padding:1.5rem}.dc-feature-card__icon[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;font-size:72px;color:#1f4fbf;opacity:.1;transition:opacity .22s ease,transform .22s ease}.dc-feature-card__hover[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;padding:2rem 1.9rem 1.8rem;background:#e2e9f5e6;opacity:0;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease;pointer-events:none}.dc-feature-card__hover-text[_ngcontent-%COMP%]{position:relative;z-index:2;max-width:250px;font-size:16px;line-height:1.55;font-weight:500;color:#1f2937}.dc-feature-card__hover-icon[_ngcontent-%COMP%]{position:absolute;right:-6px;bottom:-10px;font-size:122px;color:#1f4fbf;opacity:.1;z-index:1;transition:transform .22s ease,opacity .22s ease}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__base[_ngcontent-%COMP%]{opacity:0;transform:scale(.98)}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__icon[_ngcontent-%COMP%]{opacity:0;transform:scale(.9)}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__hover[_ngcontent-%COMP%]{opacity:1;transform:translateY(0)}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__hover-icon[_ngcontent-%COMP%]{opacity:.12;transform:scale(1.03)}@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:160px}.dc-feature-card__hover[_ngcontent-%COMP%]{padding:1.5rem}.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 t})();function L40(t,a){if(1&t&&(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&t){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 C40(t,a){if(1&t&&(e.j41(0,"div",14),e.Z7z(1,L40,7,10,"div",21,e.Vm6),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.milestones)}}let z40=(()=>{class t{constructor(){this.providersLink=e.hFB.required(),this.customersLink=e.hFB.required(),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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-ecosystem"]],inputs:{providersLink:[e.Mj6.SignalBased,"providersLink"],customersLink:[e.Mj6.SignalBased,"customersLink"]},standalone:!0,features:[e.aNF],decls:43,vars:33,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"],["target","_blank",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",3,"href"],["target","_blank",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",3,"href"],[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(n,l){1&n&&(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,C40,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&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,17,"DASHBOARD.ecosystem._title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,19,"DASHBOARD.ecosystem._subtitle")," "),e.R7$(4),e.AVh("text-[#2B5BB8]",l.milestones[0].active),e.R7$(),e.SpI(" ",e.bMT(12,21,"DASHBOARD.ecosystem._nowLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[1].active),e.R7$(),e.SpI(" ",e.bMT(15,23,"DASHBOARD.ecosystem._nextLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[2].active),e.R7$(),e.SpI(" ",e.bMT(18,25,"DASHBOARD.ecosystem._beyondLabel")," "),e.R7$(13),e.vxM(30,l.milestones.length?30:-1),e.R7$(4),e.SpI(" ",e.bMT(35,27,"DASHBOARD.ecosystem._ctaTitle")," "),e.R7$(3),e.Y8G("href",l.customersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(39,29,"DASHBOARD.ecosystem._ctaCustomers")," "),e.R7$(2),e.Y8G("href",l.providersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(42,31,"DASHBOARD.ecosystem._ctaProviders")," "))},dependencies:[s1.h,s1.D9],encapsulation:2})}}return t})(),M40=(()=>{class t{constructor(){this.providersLink=e.hFB.required(),this.customersLink=e.hFB.required()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-hero"]],inputs:{providersLink:[e.Mj6.SignalBased,"providersLink"],customersLink:[e.Mj6.SignalBased,"customersLink"]},standalone:!0,features:[e.aNF],decls:35,vars:26,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",""],["aria-hidden","true",1,"hero-fade","hero-fade-left"],["aria-hidden","true",1,"hero-fade","hero-fade-right"],[1,"relative","z-[5]","mx-auto","flex","h-[840px]","w-full","max-w-[1440px]","flex-col","items-center","px-5","pt-[144px]","pb-[80px]","text-center","sm:px-8","lg:px-[160px]"],[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"],["target","_blank","rel","noopener noreferrer",1,"hero-btn","hero-btn--primary",3,"href"],["target","_blank","rel","noopener noreferrer",1,"hero-btn","hero-btn--secondary",3,"href"]],template:function(n,l){1&n&&(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.nrm(6,"div",6)(7,"div",7),e.j41(8,"div",8)(9,"h1",9)(10,"span",10),e.EFF(11),e.nI1(12,"translate"),e.j41(13,"span",11),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"span",10),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"span",10),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"p",12),e.EFF(23),e.nI1(24,"translate"),e.nrm(25,"br",13),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",14)(29,"a",15),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"a",16),e.EFF(33),e.nI1(34,"translate"),e.k0s()()()()),2&n&&(e.R7$(11),e.SpI(" ",e.bMT(12,10,"DASHBOARD.hero._titleLine1Part1")," "),e.R7$(3),e.JRh(e.bMT(15,12,"DASHBOARD.hero._titleLine1Accent")),e.R7$(3),e.JRh(e.bMT(18,14,"DASHBOARD.hero._titleLine2")),e.R7$(3),e.JRh(e.bMT(21,16,"DASHBOARD.hero._titleLine3")),e.R7$(3),e.SpI(" ",e.bMT(24,18,"DASHBOARD.hero._subtitleLine1")," "),e.R7$(3),e.SpI(" ",e.bMT(27,20,"DASHBOARD.hero._subtitleLine2")," "),e.R7$(3),e.Y8G("href",l.customersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(31,22,"DASHBOARD.hero._customerCta")," "),e.R7$(2),e.Y8G("href",l.providersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(34,24,"DASHBOARD.hero._providerCta")," "))},dependencies:[s1.h,s1.D9],styles:["[_nghost-%COMP%]{display:block}.hero-shell[_ngcontent-%COMP%]{height:840px;background:linear-gradient(180deg,#0b1528,#14274a)}.hero-bg[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0b1528,#14274a)}.hero-blur[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%);pointer-events:none;border-radius:9999px}.hero-blur-main[_ngcontent-%COMP%]{top:572px;width:800px;height:303px;background:linear-gradient(180deg,#1a3360,#0b1528);filter:blur(125px);z-index:1}.hero-blur-core[_ngcontent-%COMP%]{top:702px;width:284px;height:76px;background:#ffffffe6;filter:blur(50px);z-index:2}.hero-title[_ngcontent-%COMP%]{width:100%;max-width:738px;margin:0;font-weight:800;font-size:70px;line-height:84px;letter-spacing:1px;text-align:center;color:#fff}.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:#2d58a7;color:#fff;border:2px solid #2d58a7}.hero-btn--primary[_ngcontent-%COMP%]:hover{background:#3565be;border-color:#3565be}.hero-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid #2d58a7}.hero-btn--secondary[_ngcontent-%COMP%]:hover{background:#2d58a71f}.hero-logos[_ngcontent-%COMP%]{position:relative;z-index:6;width:100%;max-width:897px;min-height:86px;padding-top:16px;display:flex;align-items:center;justify-content:center;gap:24px;filter:drop-shadow(0px 4px 4px rgba(0,0,0,.25));border-radius:100px}.hero-logo-item[_ngcontent-%COMP%]{width:129px;height:70px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.hero-logo-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:100%;object-fit:contain}.hero-logo-item--cyfronet[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:102px;max-height:49px}.earth-wrapper[_ngcontent-%COMP%]{position:absolute;left:50%;top:724px;width:1994.69px;transform:translate(-50%);z-index:3;pointer-events:none}.earth-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:auto}.hero-fade[_ngcontent-%COMP%]{position:absolute;top:609px;width:169px;height:85px;z-index:7;pointer-events:none}.hero-fade-left[_ngcontent-%COMP%]{left:238px;background:linear-gradient(90deg,#112241,#112241b3,#11224100)}.hero-fade-right[_ngcontent-%COMP%]{right:231px;background:linear-gradient(270deg,#112241,#112241b3,#11224100)}@media (max-width: 1279px){.hero-shell[_ngcontent-%COMP%]{height:auto;min-height:840px}.hero-title[_ngcontent-%COMP%]{font-size:58px;line-height:70px}.earth-wrapper[_ngcontent-%COMP%]{width:1700px}.hero-fade-left[_ngcontent-%COMP%]{left:80px}.hero-fade-right[_ngcontent-%COMP%]{right:80px}}@media (max-width: 1023px){.hero-shell[_ngcontent-%COMP%]{min-height:900px}.hero-title[_ngcontent-%COMP%]{max-width:700px;font-size:48px;line-height:58px;letter-spacing:.4px}.hero-sub[_ngcontent-%COMP%]{font-size:18px;line-height:30px;max-width:680px}.hero-actions[_ngcontent-%COMP%]{height:auto}.hero-logos[_ngcontent-%COMP%]{max-width:760px;gap:18px;flex-wrap:wrap;padding-top:12px}.hero-logo-item[_ngcontent-%COMP%]{width:112px;height:60px}.earth-wrapper[_ngcontent-%COMP%]{top:740px;width:1500px}.hero-fade[_ngcontent-%COMP%]{display:none}}@media (max-width: 767px){.hero-shell[_ngcontent-%COMP%]{min-height:920px}.hero-title[_ngcontent-%COMP%]{max-width:100%;font-size:40px;line-height:48px;letter-spacing:0}.hero-sub[_ngcontent-%COMP%]{max-width:100%;font-size:16px;line-height:26px}.hero-btn[_ngcontent-%COMP%]{width:100%}.hero-logos[_ngcontent-%COMP%]{max-width:100%;gap:16px;padding-top:8px}.hero-logo-item[_ngcontent-%COMP%]{width:96px;height:54px}.earth-wrapper[_ngcontent-%COMP%]{top:760px;width:1200px}.hero-blur-main[_ngcontent-%COMP%]{width:560px;height:220px}.hero-blur-core[_ngcontent-%COMP%]{width:220px;height:60px}}"],changeDetection:0})}}return t})();function x40(t,a){if(1&t&&(e.j41(0,"div",19)(1,"div",20)(2,"div",21),e.nrm(3,"div",22),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"fa-icon",23),e.k0s(),e.j41(6,"div",24)(7,"div",25),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"fa-icon",26),e.k0s()()),2&t){const c=a.$implicit;e.R7$(3),e.Y8G("innerHTML",e.bMT(4,4,c.html),e.npT),e.R7$(2),e.Y8G("icon",c.icon),e.R7$(3),e.SpI(" ",e.bMT(9,6,c.hoverText)," "),e.R7$(2),e.Y8G("icon",c.icon)}}function b40(t,a){if(1&t&&(e.j41(0,"div",11),e.Z7z(1,x40,11,8,"div",19,e.Vm6),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.featureCards)}}function y40(t,a){if(1&t&&(e.j41(0,"div",27)(1,"div",28),e.EFF(2),e.k0s(),e.j41(3,"div")(4,"div",29),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",30),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",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 F40(t,a){if(1&t&&(e.j41(0,"div",16),e.Z7z(1,y40,10,7,"div",27,e.Vm6),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.steps)}}let v40=(()=>{class t{constructor(){this.providersLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.providers.features.market.title",hoverText:"DASHBOARD.providers.features.market.desc",icon:cw.YSf},{html:"DASHBOARD.providers.features.trust.title",hoverText:"DASHBOARD.providers.features.trust.desc",icon:cw.Z8x},{html:"DASHBOARD.providers.features.tools.title",hoverText:"DASHBOARD.providers.features.tools.desc",icon:cw.f2_},{html:"DASHBOARD.providers.features.portfolio.title",hoverText:"DASHBOARD.providers.features.portfolio.desc",icon:cw.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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-providers"]],inputs:{providersLink:[e.Mj6.SignalBased,"providersLink"]},standalone:!0,features:[e.aNF],decls:25,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-10","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-12","gap-5","sm:gap-6","items-stretch"],[1,"lg:col-span-5","h-full"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-5","sm:gap-6","h-full","auto-rows-fr"],[1,"lg:col-span-7","h-full"],[1,"dp-big","h-full","min-h-[320px]","lg:min-h-[464px]","rounded-[16px]","overflow-hidden"],[1,"p-7","sm:p-9","lg:p-10","h-full","flex","flex-col"],[1,"text-[clamp(28px,3.2vw,42px)]","leading-[1.15]","tracking-[-0.02em]","font-extrabold","text-white"],[1,"mt-7","sm:mt-9","space-y-7","sm:space-y-8"],[1,"mt-auto","pt-8","flex","justify-center","sm:justify-end"],["target","_blank",1,"inline-flex","items-center","justify-center","h-[44px]","w-full","sm:w-auto","px-7","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",3,"href"],[1,"dp-card","dp-swap-card","relative","h-full","min-h-[200px]","sm:min-h-[220px]","rounded-[14px]","overflow-hidden","cursor-pointer"],[1,"dp-swap-card__base"],[1,"h-full","flex","items-end","p-7","sm:p-8"],[1,"text-[clamp(22px,2.1vw,30px)]","leading-[1.12]","font-extrabold","text-white",3,"innerHTML"],[1,"dp-icon","dp-swap-card__base-icon","absolute","right-6","-bottom-10","text-[98px]","sm:text-[112px]",3,"icon"],[1,"dp-swap-card__hover"],[1,"dp-swap-card__hover-text"],[1,"dp-icon","dp-swap-card__hover-icon","absolute","right-6","-bottom-10","text-[98px]","sm:text-[112px]",3,"icon"],[1,"grid","grid-cols-[54px_1fr]","sm:grid-cols-[64px_1fr]","gap-4","sm:gap-5","items-start"],[1,"pt-[2px]","text-[18px]","sm:text-[20px]","font-extrabold","text-[#19c6de]"],[1,"text-[18px]","sm:text-[19px]","font-extrabold","text-white"],[1,"mt-2","text-[16px]","sm:text-[17px]","leading-[1.65]","text-white/65"]],template:function(n,l){1&n&&(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,b40,3,0,"div",11),e.k0s(),e.j41(14,"div",12)(15,"div",13)(16,"div",14)(17,"h3",15),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.DNE(20,F40,3,0,"div",16),e.j41(21,"div",17)(22,"a",18),e.EFF(23),e.nI1(24,"translate"),e.k0s()()()()()()()()),2&n&&(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$(5),e.SpI(" ",e.bMT(19,8,"DASHBOARD.providers._howDomeWorks")," "),e.R7$(2),e.vxM(20,l.steps.length?20:-1),e.R7$(2),e.Y8G("href",l.providersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(24,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-card[_ngcontent-%COMP%]{background:#111827;border:.75px solid rgba(255,255,255,.07);box-shadow:0 22px 60px #00000073}.dp-big[_ngcontent-%COMP%]{background:#0812269e;border:1px solid rgba(255,255,255,.1);box-shadow:0 26px 70px #00000073;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.dp-icon[_ngcontent-%COMP%]{color:#ffffff1a}.dp-swap-card[_ngcontent-%COMP%]{transition:transform .22s ease,box-shadow .22s ease}.dp-swap-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dp-swap-card__base[_ngcontent-%COMP%]{position:relative;z-index:1;height:100%;min-height:inherit;transition:opacity .18s ease,transform .22s ease}.dp-swap-card__base-icon[_ngcontent-%COMP%]{transition:opacity .22s ease,transform .22s ease}.dp-swap-card__hover[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;padding:1.75rem 2rem 1.75rem 1.75rem;background:#ffffff0f;opacity:0;transform:translateY(8px);transition:opacity .22s ease,transform .22s ease;pointer-events:none}.dp-swap-card__hover-text[_ngcontent-%COMP%]{position:relative;z-index:2;max-width:250px;font-size:16px;line-height:1.55;font-weight:500;color:#ffffffe0}.dp-swap-card__hover-icon[_ngcontent-%COMP%]{opacity:.1;transition:opacity .22s ease,transform .22s ease}.dp-swap-card[_ngcontent-%COMP%]:hover .dp-swap-card__base[_ngcontent-%COMP%]{opacity:0;transform:scale(.98)}.dp-swap-card[_ngcontent-%COMP%]:hover .dp-swap-card__base-icon[_ngcontent-%COMP%]{opacity:0;transform:scale(.9)}.dp-swap-card[_ngcontent-%COMP%]:hover .dp-swap-card__hover[_ngcontent-%COMP%]{opacity:1;transform:translateY(0)}.dp-swap-card[_ngcontent-%COMP%]:hover .dp-swap-card__hover-icon[_ngcontent-%COMP%]{opacity:.12;transform:scale(1.03)}@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)}}@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-swap-card__hover[_ngcontent-%COMP%]{padding:1.5rem}.dp-swap-card__hover-text[_ngcontent-%COMP%]{font-size:16px;line-height:1.65}}"]})}}return t})();var k40=v(8338);const w40=(t,a)=>a.id;function S40(t,a){if(1&t&&(e.j41(0,"div",9)(1,"div",10)(2,"div",11),e.nrm(3,"img",12),e.k0s(),e.j41(4,"div",13)(5,"h3",14),e.EFF(6),e.k0s(),e.nrm(7,"p",15),e.j41(8,"a",16),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()()),2&t){const c=a.$implicit,n=e.XpG();e.xc7("width",100/n.visibleItems,"%"),e.R7$(3),e.Y8G("src",n.getProductImage(c),e.B4B),e.R7$(3),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("innerHTML",c.description,e.npT),e.R7$(),e.Y8G("href","/search;keywords="+c.name,e.B4B),e.R7$(),e.SpI(" ",e.bMT(10,7,"DASHBOARD.marketplace.viewService")," ")}}let N40=(()=>{class t{constructor(c){this.cdr=c,this.faArrowRight=OL1,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 n=[];if(c?.attachment){const l=c.attachment.filter(r=>"Profile Picture"===r.name)??[];n=c.attachment.filter(r=>"Picture"===r.attachmentType)??[],0!==l.length&&(n=l)}return n.length>0?n.at(0)?.url:"https://placehold.co/600x400/svg"}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-services"]],hostBindings:function(n,l){1&n&&e.bIt("resize",function(){return l.onResize()},!1,e.tSv)},inputs:{productOfferings:[e.Mj6.SignalBased,"productOfferings"]},standalone:!0,features:[e.aNF],decls:17,vars:12,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"],[1,"shrink-0","px-3","md:px-4",3,"width"],[1,"shrink-0","px-3","md:px-4"],[1,"bg-white","rounded-2xl","border","shadow-sm","hover:shadow-lg","transition-all","flex","flex-col","h-full"],[1,"h-52","rounded-t-2xl","overflow-hidden"],[1,"w-full","h-full","object-contain",3,"src"],[1,"p-6","flex","flex-col","flex-1"],[1,"text-xl","font-bold","text-slate-800"],[1,"mt-3","text-slate-600","text-sm","line-clamp-3",3,"innerHTML"],[1,"mt-auto","border-2","border-blue-700","text-blue-700","rounded-lg","py-3","font-semibold","flex","items-center","justify-center","gap-2","hover:bg-blue-700","hover:text-white","transition-all",3,"href"]],template:function(n,l){1&n&&(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,S40,11,9,"div",8,w40),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,6,"DASHBOARD.marketplace.title")," "),e.R7$(3),e.SpI(" ",e.bMT(9,8,"DASHBOARD.marketplace.subtitle")," "),e.R7$(3),e.SpI(" ",e.bMT(12,10,"DASHBOARD.marketplace.browseFullCatalog")," "),e.R7$(2),e.Y8G("icon",l.faArrowRight),e.R7$(),e.Y8G("items",l.productOfferings())("visible",l.visibleItems),e.R7$(),e.Dyx(l.productOfferings()))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9,k40.g],changeDetection:0})}}return t})(),E40=(()=>{class t{constructor(){this.stats=e.hFB.required()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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 t})(),D40=(()=>{class t{constructor(){this.faShieldCheck=D2.R1H,this.faEye=D2.pS3,this.faPuzzle=D2._Xl,this.faClipboard=gC1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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 t})();class tw{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}getStats(){return(0,U2.s)(this.http.get(`${tw.BASE_URL}/stats`))}static{this.\u0275fac=function(c){return new(c||tw)(e.KVO(g.Qq),e.KVO(L2.s))}}static{this.\u0275prov=e.jDH({token:tw,factory:tw.\u0275fac,providedIn:"root"})}}function T40(t,a){if(1&t&&e.nrm(0,"app-dashboard-stats",2),2&t){const c=e.XpG(2);e.Y8G("stats",c.stats)}}function R40(t,a){if(1&t&&e.nrm(0,"app-dashboard-services",3),2&t){const c=e.XpG(2);e.Y8G("productOfferings",c.productOfferings)}}function A40(t,a){if(1&t&&(e.j41(0,"div",0),e.nrm(1,"app-dashboard-hero",1),e.DNE(2,T40,1,1,"app-dashboard-stats",2),e.nrm(3,"app-dashboard-whatsdome"),e.DNE(4,R40,1,1,"app-dashboard-services",3),e.nrm(5,"app-dashboard-customers",4)(6,"app-dashboard-providers",5)(7,"app-dashboard-ecosystem",1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("providersLink",c.providersLink)("customersLink",c.customersLink),e.R7$(),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),e.R7$(),e.Y8G("providersLink",c.providersLink)("customersLink",c.customersLink)}}function I40(t,a){if(1&t&&(e.j41(0,"a",25),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",n.hasLongWord(c,20))("break-words",!n.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function P40(t,a){if(1&t&&e.DNE(0,I40,2,11,"a",24),2&t){const c=a.$index,n=e.XpG(2);e.vxM(0,n.currentIndexServ===c?0:-1)}}function $40(t,a){if(1&t&&(e.j41(0,"a",27),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",n.hasLongWord(c,20))("break-words",!n.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function j40(t,a){if(1&t&&e.DNE(0,$40,2,11,"a",26),2&t){const c=a.$index,n=e.XpG(2);e.vxM(0,n.currentIndexPub===c?0:-1)}}function O40(t,a){if(1&t){const c=e.RV6();e.j41(0,"section",22)(1,"form",28)(2,"div",29)(3,"div",30)(4,"input",31),e.nI1(5,"translate"),e.bIt("keydown.enter",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.filterSearch(l))}),e.k0s(),e.j41(6,"button",32),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.filterSearch(l))}),e.qSk(),e.j41(7,"svg",33),e.nrm(8,"path",34),e.k0s(),e.joV(),e.j41(9,"span",35),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()()()}if(2&t){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 B40(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",6)(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"h1",11),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",12),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToSearch())}),e.qSk(),e.j41(12,"svg",14),e.nrm(13,"path",15),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.joV(),e.j41(16,"div",16)(17,"div",17)(18,"div",18)(19,"p",19),e.EFF(20),e.k0s(),e.Z7z(21,P40,1,1,null,null,e.fX1),e.k0s(),e.j41(23,"div",18)(24,"p",20),e.EFF(25),e.k0s(),e.Z7z(26,j40,1,1,null,null,e.fX1),e.k0s(),e.j41(28,"a",21),e.qSk(),e.j41(29,"svg",14),e.nrm(30,"path",15),e.k0s(),e.EFF(31),e.nI1(32,"translate"),e.k0s()()()()()(),e.DNE(33,O40,12,8,"section",22),e.joV(),e.nrm(34,"bae-off-featured",23),e.k0s()}if(2&t){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 V40=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.productService=c,this.domSanitizer=n,this.route=l,this.loginService=r,this.localStorage=m,this.eventMessage=z,this.cdr=F,this.router=I,this.statsService=J,this.themeService=d1,this.customersLink=h1.c.DOME_CUSTOMER_REGISTER_LINK,this.providersLink=h1.c.DOME_REGISTER_LINK,this.unSub=new S.B,this.MAX_CATEGORIES_PER_PRODUCT_OFFERING=3,this.providerThemeName=h1.c.providerThemeName,this.currentTheme=null,this.isFilterPanelShown=!1,this.searchField=new p.MJ,this.searchEnabled=h1.c.SEARCH_ENABLED,this.domeRegister=h1.c.DOME_REGISTER_LINK,this.services=[],this.publishers=[],this.currentIndexServ=0,this.currentIndexPub=0,this.delay=2e3}ngOnInit(){this.themeService.currentTheme$.pipe((0,P1.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 n={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!=n.organizations&&n.organizations.length>0&&(n.logged_as=n.organizations[0].id),this.localStorage.addLoginInfo(n),this.eventMessage.emitLogin(n),S2()}),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(Y2().unix()),console.log(c.expire-Y2().unix()),console.log(c.expire-Y2().unix()<=5))}this.cdr.detectChanges(),console.log("----")}getFirstThreeRandomProductOfferings(){this.productService.getAllProducts().pipe((0,$2.T)(c=>c.map(n=>({...n,description:n.description?this.domSanitizer.sanitize(e.WPN.HTML,n.description)??void 0:n.description}))),(0,$2.T)(c=>{const n=new Set,l=Math.min(15,c.length);for(;n.sizec[r])}),(0,P1.Q)(this.unSub)).subscribe(c=>{this.productService.getProductsDetails(c).then(n=>{this.productOfferings=n.filter(l=>l.attachment?.some(r=>"Picture"===r.attachmentType||"Profile Picture"===r.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}ngOnDestroy(){this.rotationIntervalId&&clearInterval(this.rotationIntervalId),this.unSub.next(),this.unSub.complete()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(F2.F),e.rXU(u.up),e.rXU(E2.nX),e.rXU(x9),e.rXU(L2.s),e.rXU(H2),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(tw),e.rXU(Hk))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard"]],standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"page"],[3,"providersLink","customersLink"],[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(n,l){1&n&&e.DNE(0,A40,8,8,"div",0)(1,B40,35,18),2&n&&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_,a10,L.YU,D40,M40,E40,N40,_40,v40,z40],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 t})();const af1=(t,a)=>({"break-all":t,"break-words":a});function U40(t,a){if(1&t&&(e.j41(0,"a",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.Mz_("href","mailto: ",c.characteristic.emailAddress,"",e.B4B),e.R7$(),e.SpI(" ",c.characteristic.emailAddress," ")}}function H40(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.LHq(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince," ")}}function G40(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.phoneNumber," ")}}function Y40(t,a){if(1&t&&(e.j41(0,"tr",34)(1,"td",36),e.EFF(2),e.k0s(),e.j41(3,"td",37),e.DNE(4,U40,2,3,"a",38)(5,H40,1,4)(6,G40,1,1),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.vxM(4,"Email"==c.mediumType?4:"PostalAddress"==c.mediumType?5:6)}}function q40(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}let X40=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.cdr=c,this.route=n,this.router=l,this.elementRef=r,this.localStorage=m,this.eventMessage=z,this.accService=F,this.location=I,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 n=0;nl.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(L2.s),e.rXU(H2),e.rXU(K0.O),e.rXU(L.aZ))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-organization-details"]],decls:54,vars:40,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(n,l){1&n&&(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",33),e.EFF(48),e.nI1(49,"translate"),e.k0s()()(),e.j41(50,"tbody"),e.Z7z(51,Y40,7,2,"tr",34,e.fX1,!1,q40,7,3,"div",35),e.k0s()()()()()()),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,19,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,21,"ORGANIZATION._details")),e.R7$(4),e.FS9("src",l.logo,e.B4B),e.R7$(3),e.Y8G("ngClass",e.l_i(31,af1,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(34,af1,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,23,"ORGANIZATION._details")),e.R7$(2),e.Y8G("ngClass",e.l_i(37,af1,l.hasLongWord(l.description,20),!l.hasLongWord(l.description,20)))("data",l.description),e.R7$(2),e.JRh(e.bMT(39,25,"PROFILE._contact_info")),e.R7$(7),e.SpI(" ",e.bMT(46,27,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(49,29,"PROFILE._info")," "),e.R7$(3),e.Dyx(null==l.orgInfo?null:l.orgInfo.contactMedium))},dependencies:[L.YU,H0,s1.D9]})}}return t})();const v5=[{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}],W40=(t,a)=>({"break-all":t,"break-words":a});function J40(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(2),e.Y8G("formControl",c.control)}}function Q40(t,a){if(1&t){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&t){let c,n;const l=e.XpG(3);e.R7$(),e.Y8G("min",null==(c=l.getSliderRange())?null:c.min)("max",null==(n=l.getSliderRange())?null:n.max)("formControl",l.control),e.R7$(2),e.Lme("",l.control.value," ",l.getUnit(),"")}}function Z40(t,a){if(1&t&&(e.j41(0,"option",12),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(4);e.Y8G("ngValue",c.value),e.R7$(),e.Lme(" ",c.value," ",n.getUnit()," ")}}function K40(t,a){if(1&t){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,Z40,2,3,"option",11),e.k0s()()}if(2&t){const c=e.XpG(3);e.R7$(),e.Y8G("formControl",c.control),e.R7$(),e.Y8G("ngForOf",c.characteristic.productSpecCharacteristicValue)}}function e30(t,a){if(1&t&&e.DNE(0,J40,4,1,"div",3)(1,Q40,4,5)(2,K40,3,2),2&t){const c=e.XpG(2);e.vxM(0,c.isBoolean()?0:c.isSlider()?1:2)}}function c30(t,a){if(1&t&&(e.j41(0,"div",0)(1,"h4",1),e.EFF(2),e.k0s(),e.nrm(3,"markdown",2),e.k0s(),e.DNE(4,e30,3,1)),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.characteristic.name),e.R7$(),e.Y8G("ngClass",e.l_i(4,W40,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 t30(t,a){if(1&t&&(e.j41(0,"div",13)(1,"div",14),e.EFF(2),e.k0s(),e.j41(3,"span",15),e.EFF(4),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.SpI("",c.characteristic.name,":"),e.R7$(2),e.Lme("",c.control.value," ",c.getUnit(),"")}}let AN1=(()=>{class t{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),n=c?.value??c?.valueFrom;console.log("defaultValue: ",n),void 0!==n&&(this.control=new p.MJ({value:n,disabled:this.readOnly}))}onControlCommit(){this.readOnly||this.valueChange.emit({characteristicId:this.characteristic.id,selectedValue:this.control.value})}isSlider(){return this.characteristic.productSpecCharacteristicValue?.some(n=>void 0!==n.valueFrom&&void 0!==n.valueTo)||!1}isBoolean(){const c=this.characteristic.productSpecCharacteristicValue;return!(!c||0===c.length)&&c.every(n=>"boolean"==typeof n.value)}getSliderRange(){const c=this.characteristic.productSpecCharacteristicValue?.find(n=>void 0!==n.valueFrom&&void 0!==n.valueTo);return c?{min:c.valueFrom,max:c.valueTo}:null}getUnit(){return this.characteristic.productSpecCharacteristicValue?.[0].unitOfMeasure}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,c30,5,7)(1,t30,5,3),2&n&&e.vxM(0,l.readOnly?1:0)},dependencies:[L.Sq,L.YU,p.X1,p.xH,p.y7,p.me,p.MR,p.Zm,p.wz,p.BC,p.l_,H0]})}}return t})(),n30=(()=>{class t{constructor(c){this.api=c,this.usagePriceComponentsCache=new Map}getAppliedMetrics(c,n){var l=this;return(0,b1.A)(function*(){const r=yield l.getUsagePriceComponents(c);if(0===r.length)return[];const m=new Map;for(const z of n||[])z?.id&&m.set(z.id,z.value);return r.filter(z=>l.isPriceComponentApplied(z,m)).map(z=>({priceId:z?.id,usageSpecId:z?.usageSpecId,unitOfMeasure:l.getMetricName(z?.unitOfMeasure),value:0}))})()}clearCache(c){c?this.usagePriceComponentsCache.delete(c):this.usagePriceComponentsCache.clear()}getUsagePriceComponents(c){var n=this;return(0,b1.A)(function*(){if(!c)return[];const l=c?.id?String(c.id):"";if(l&&n.usagePriceComponentsCache.has(l))return n.usagePriceComponentsCache.get(l)||[];const m=(yield n.resolvePriceComponents(c)).filter(z=>n.isUsagePriceComponent(z));return l&&n.usagePriceComponentsCache.set(l,m),m})()}resolvePriceComponents(c){var n=this;return(0,b1.A)(function*(){if(!c)return[];const l=Array.isArray(c?.bundledPopRelationship)?c.bundledPopRelationship:[];if(0===l.length)return[c];const r=[];for(const m of l)if(m?.id)try{const z=yield n.api.getOfferingPrice(m.id);z&&r.push(z)}catch(z){console.error("Error loading price component for applied metrics evaluation",z)}return r})()}isUsagePriceComponent(c){return"usage"===String(c?.priceType||"").toLowerCase()&&!!c?.usageSpecId&&!!this.getMetricName(c?.unitOfMeasure)}isPriceComponentApplied(c,n){const l=Array.isArray(c?.prodSpecCharValueUse)?c.prodSpecCharValueUse:[];return 0===l.length||l.every(r=>this.matchesCharacteristicUse(r,n))}matchesCharacteristicUse(c,n){const l=c?.id;if(!l||!n.has(l))return!1;const r=n.get(l),m=Array.isArray(c?.productSpecCharacteristicValue)?c.productSpecCharacteristicValue:[];return 0===m.length||m.some(z=>this.matchesRequiredValue(r,z))}matchesRequiredValue(c,n){if(void 0!==n?.valueFrom||void 0!==n?.valueTo){const m=Number(c);if(Number.isNaN(m))return!1;const z=void 0!==n?.valueFrom,F=void 0!==n?.valueTo;return!(z&&mNumber(n.valueTo))}if(void 0===n?.value)return!1;const r=n.value;if("boolean"==typeof r){const m=this.normalizeBoolean(c);return null!==m&&m===r}if("number"==typeof r){const m=Number(c);return!Number.isNaN(m)&&m===r}return String(c)===String(r)}normalizeBoolean(c){if("boolean"==typeof c)return c;if("string"==typeof c){const n=c.toLowerCase();if("true"===n)return!0;if("false"===n)return!1}return null}getMetricName(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(F2.F))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const l30=(t,a)=>a.name,AE=(t,a)=>a.id,s30=(t,a)=>a.unitOfMeasure,oG=(t,a)=>({"break-all":t,"break-words":a}),a30=(t,a)=>({"border-primary-100 text-wrap border":t,"border-transparent outline outline-2 outline-teal-500 bg-teal-50":a}),o30=()=>[];function i30(t,a){if(1&t){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 r30(t,a){if(1&t&&(e.j41(0,"div",20)(1,"span",21),e.EFF(2),e.k0s(),e.EFF(3),e.k0s()),2&t){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.SpI(" ",c.value," ")}}function d30(t,a){if(1&t&&(e.j41(0,"div",10)(1,"h6",18),e.EFF(2,"Current characteristics:"),e.k0s(),e.j41(3,"div",19),e.Z7z(4,r30,4,2,"div",20,l30),e.k0s()()),2&t){const c=e.XpG();e.R7$(4),e.Dyx(c.existingCharacteristics)}}function f30(t,a){1&t&&(e.j41(0,"span",26),e.EFF(1,"PROFILE"),e.k0s())}function u30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.onPricePlanSelected(l))}),e.j41(1,"div",25),e.EFF(2),e.DNE(3,f30,2,0,"span",26),e.k0s(),e.nrm(4,"markdown",27),e.k0s()}if(2&t){let c;const n=a.$implicit,l=e.XpG(2);e.Y8G("ngClass",e.l_i(5,a30,n.id!==(null==(c=l.form.get("selectedPricePlan"))?null:c.value),n.id===(null==(c=l.form.get("selectedPricePlan"))?null:c.value))),e.R7$(2),e.SpI(" ",n.name," "),e.R7$(),e.vxM(3,n.prodSpecCharValueUse?3:-1),e.R7$(),e.Y8G("ngClass",e.l_i(8,oG,l.hasLongWord(n.description,20),!l.hasLongWord(n.description,20)))("data",n.description)}}function m30(t,a){1&t&&(e.j41(0,"div"),e.EFF(1,"The offering is free"),e.k0s())}function p30(t,a){if(1&t&&(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,u30,5,11,"div",23,AE,!1,m30,2,0,"div")),2&t){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 h30(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-characteristic",31),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.Y8G("characteristic",c)("readOnly",!0)}}function g30(t,a){if(1&t&&e.DNE(0,h30,1,2,"app-characteristic",30),2&t){const c=a.$implicit;e.vxM(0,null!=c.name&&c.name.endsWith("- enabled")?-1:0)}}function _30(t,a){if(1&t&&(e.j41(0,"p",28),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",29),e.Z7z(3,g30,1,1,null,null,AE),e.k0s()),2&t){const c=e.XpG(2);e.R7$(3),e.Dyx(c.filteredCharacteristics)}}function L30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",36)(1,"div",37)(2,"app-characteristic",38),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",n.disabledCharacteristics.includes(c.id))("canBeDisabled",n.canBeDisabledChars.includes(c.id))}}function C30(t,a){if(1&t&&(e.j41(0,"div",33)(1,"p",34),e.EFF(2,"Boolean toggles"),e.k0s(),e.j41(3,"div",35),e.Z7z(4,L30,3,4,"div",36,AE),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(4),e.Dyx(c.booleanCharacteristics)}}function z30(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",39)(1,"input",40),e.bIt("change",function(l){e.eBV(c);const r=e.XpG().$implicit,m=e.XpG(4);return e.Njj(m.onToggleChange(l,r.name))}),e.k0s(),e.nrm(2,"div",41),e.k0s()}if(2&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(),e.Y8G("checked",!n.disabledCharacteristics.includes(c.id))}}function M30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",36),e.DNE(1,z30,3,1,"label",39),e.j41(2,"div",37)(3,"app-characteristic",38),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.vxM(1,n.canBeDisabledChars.includes(c.id)&&!n.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",n.disabledCharacteristics.includes(c.id))("canBeDisabled",n.canBeDisabledChars.includes(c.id))}}function x30(t,a){if(1&t&&(e.j41(0,"div",33)(1,"p",34),e.EFF(2,"Choices"),e.k0s(),e.j41(3,"div",35),e.Z7z(4,M30,4,5,"div",36,AE),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(4),e.Dyx(c.choiceCharacteristics)}}function b30(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",39)(1,"input",40),e.bIt("change",function(l){e.eBV(c);const r=e.XpG().$implicit,m=e.XpG(4);return e.Njj(m.onToggleChange(l,r.name))}),e.k0s(),e.nrm(2,"div",41),e.k0s()}if(2&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(),e.Y8G("checked",!n.disabledCharacteristics.includes(c.id))}}function y30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",36),e.DNE(1,b30,3,1,"label",39),e.j41(2,"div",37)(3,"app-characteristic",38),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.vxM(1,n.canBeDisabledChars.includes(c.id)&&!n.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",n.disabledCharacteristics.includes(c.id))("canBeDisabled",n.canBeDisabledChars.includes(c.id))}}function F30(t,a){if(1&t&&(e.j41(0,"div",33)(1,"p",34),e.EFF(2,"Ranges"),e.k0s(),e.j41(3,"div",35),e.Z7z(4,y30,4,5,"div",36,AE),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(4),e.Dyx(c.rangeCharacteristics)}}function v30(t,a){if(1&t&&(e.j41(0,"p",28),e.EFF(1,"Please select the characteristics you need to suit this offer to you."),e.k0s(),e.j41(2,"div",32),e.DNE(3,C30,6,0,"div",33)(4,x30,6,0,"div",33)(5,F30,6,0,"div",33),e.k0s()),2&t){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 k30(t,a){if(1&t&&e.DNE(0,_30,5,0)(1,v30,6,3),2&t){const c=e.XpG();e.vxM(0,c.hasProfile?0:c.filteredCharacteristics.length>0?1:-1)}}function w30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",44)(1,"h5",45),e.EFF(2),e.k0s(),e.j41(3,"input",46),e.bIt("input",function(l){const r=e.eBV(c).$implicit,m=e.XpG(2);return e.Njj(m.onMetricChange(l,r))}),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,oG,n.hasLongWord(c.unitOfMeasure,20),!n.hasLongWord(c.unitOfMeasure,20))),e.R7$(),e.JRh(c.unitOfMeasure),e.R7$(),e.FS9("placeholder",c.value)}}function S30(t,a){if(1&t&&(e.j41(0,"p",42),e.EFF(1,"You can change the metric values to simulate final prices"),e.k0s(),e.j41(2,"div",43),e.Z7z(3,w30,4,6,"div",44,s30),e.k0s()),2&t){const c=e.XpG();e.R7$(3),e.Dyx(c.metrics||e.lJ4(0,o30))}}function N30(t,a){if(1&t&&(e.j41(0,"div",11)(1,"h5",47),e.EFF(2,"Terms and conditions:"),e.k0s(),e.j41(3,"div",48),e.nrm(4,"markdown",49),e.k0s(),e.j41(5,"div",50),e.nrm(6,"input",51),e.j41(7,"label",52),e.EFF(8,"I accept the terms and conditions"),e.k0s()()()),2&t){const c=e.XpG();e.R7$(4),e.Y8G("ngClass",e.l_i(2,oG,c.hasLongWord(c.tsAndCs.description,20),!c.hasLongWord(c.tsAndCs.description,20)))("data",c.tsAndCs.description)}}function E30(t,a){1&t&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",53),e.nrm(2,"path",54)(3,"path",55),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading price..."),e.k0s()())}function D30(t,a){1&t&&(e.j41(0,"div",56)(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 T30(t,a){1&t&&(e.j41(0,"div",56)(1,"p"),e.EFF(2,"This offer is free"),e.k0s()())}function R30(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function A30(t,a){if(1&t&&(e.j41(0,"div",57)(1,"span",58),e.EFF(2),e.k0s(),e.j41(3,"span",59),e.EFF(4),e.DNE(5,R30,1,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.Lme("",c.price.taxIncludedAmount.value," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(5,n.hasKey(c,"recurringChargePeriod")?5:-1)}}function I30(t,a){if(1&t&&(e.j41(0,"div",56),e.Z7z(1,A30,6,4,"div",57,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.price)}}function P30(t,a){1&t&&(e.j41(0,"p",60),e.EFF(1,"Please, select a price plan to get its price"),e.k0s())}let iG=(()=>{class t{handleEscape(c){"Escape"===c.key&&this.isOpen&&this.onClose()}constructor(c,n,l,r,m,z){this.fb=c,this.priceService=n,this.cartService=l,this.eventMessage=r,this.cdr=m,this.pricePlanMetricsService=z,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=F=>this.handleEscape(F),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(n=>{console.log(n.name),console.log("----"),"procurement"!=n.name&&(console.log("---- Setting the term"),this.tsAndCs=n)}),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(n=>"Profile Picture"===n.name)??[];console.log("profile..."),console.log(c),this.images=0==c.length?this.productOff?.attachment?.filter(n=>"Picture"===n.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 n=this.productOff?.productOfferingTerm?.find(l=>"License"===l.name);n&&(this.tsAndCs={description:n.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 n=this.productOff?.attachment?.filter(l=>"Profile Picture"===l.name)??[];this.images=0==n.length?this.productOff?.attachment?.filter(l=>"Picture"===l.attachmentType)??[]:n}}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 r=l.productSpecCharacteristicValue?.[0]?.value;return"false"===String(r).toLowerCase()}).map(l=>l.name?.replace(/ - enabled$/,"").trim()),this.filteredCharacteristics=this.characteristics.filter(l=>{const r=v5.some(I=>I.name===l.name),m="credentialsConfiguration"===l.valueType,z="authorizationPolicy"===l.valueType,F=l?.name?.startsWith("Compliance:");return!(r||F||m||z)});const n=this.fb.group({});this.filteredCharacteristics.forEach(l=>{if(null!=l.id){const r=l.productSpecCharacteristicValue?.find(m=>m.isDefault)?.value??l.productSpecCharacteristicValue?.find(m=>m.isDefault)?.valueFrom;if(n.addControl(l.id,this.fb.control(r??null,p.k0.required)),!l.name?.endsWith("- enabled")&&this.filteredCharacteristics.some(m=>m.name===l.name+" - enabled")){this.canBeDisabledChars.push(l.id);const z=this.filteredCharacteristics.find(F=>F.name===l.name+" - enabled")?.productSpecCharacteristicValue?.find(F=>F.isDefault);z?"false"===String(z.value).toLowerCase()&&this.disabledCharacteristics.push(l.id):this.disabledCharacteristics.push(l.id)}}}),this.form.setControl("characteristics",n),this.groupCharacteristics()}isBooleanCharacteristic(c){const n=c.productSpecCharacteristicValue;return!(!n||0===n.length)&&n.every(l=>"boolean"==typeof l?.value)}isRangeCharacteristic(c){return c.productSpecCharacteristicValue?.some(n=>void 0!==n?.valueFrom&&void 0!==n?.valueTo)??!1}isEnabledCharacteristic(c){return c.name?.endsWith("- enabled")??!1}groupCharacteristics(){const c=this.filteredCharacteristics.filter(n=>!this.isEnabledCharacteristic(n));this.booleanCharacteristics=c.filter(n=>this.isBooleanCharacteristic(n)),this.rangeCharacteristics=c.filter(n=>!this.isBooleanCharacteristic(n)&&this.isRangeCharacteristic(n)),this.choiceCharacteristics=c.filter(n=>!this.isBooleanCharacteristic(n)&&!this.isRangeCharacteristic(n))}onToggleChange(c,n){var l=this;return(0,b1.A)(function*(){const m=c.target.checked;let z=l.filteredCharacteristics.find(d1=>d1.name==n+" - enabled");const F=l.form.get("characteristics");z&&z.id&&F.get(z.id)?.setValue(m);const I=z?.name?.replace(/- enabled$/,"").trim(),J=l.filteredCharacteristics.find(d1=>d1.name===I);J&&(m?l.disabledCharacteristics=l.disabledCharacteristics.filter(d1=>d1!==J.id):l.disabledCharacteristics.includes(J.id)||l.disabledCharacteristics.push(J.id)),yield l.refreshAppliedMetrics(),yield l.calculatePrice()})()}onPricePlanSelected(c){var n=this;return(0,b1.A)(function*(){n.metrics=[],console.log("precio"),console.log(c),n.form.get("selectedPricePlan")?.setValue(c),n.isCustom="custom"===c.priceType,c.prodSpecCharValueUse?(n.characteristics=c.prodSpecCharValueUse,n.hasProfile=!0):(n.characteristics=n.prodSpec.productSpecCharacteristic||[],n.hasProfile=!1),n.filterCharacteristics(),n.selectedPricePlan=c,yield n.refreshAppliedMetrics(),console.log(n.selectedPricePlan),yield n.calculatePrice()})()}onUsageSpecChange(c){this.selectedUsageSpecId=c.target.value,this.selectedUnitOfMeasure=null}onMetricChange(c,n){n.value=c.target.valueAsNumber,console.log("Metric changed:",n.unitOfMeasure,"Value:",n.value),console.log(this.metrics),this.calculatePrice()}get usageSpecIds(){return Object.keys(this.groupedMetrics)}onValueChange(c){var n=this;return(0,b1.A)(function*(){n.form.get("characteristics").get(c.characteristicId)?.setValue(c.selectedValue),yield n.refreshAppliedMetrics(),yield n.calculatePrice()})()}metricKey(c){return c?.usageSpecId&&c?.unitOfMeasure?`${c.usageSpecId}:${c.unitOfMeasure}`:""}getSelectedCharacteristicsForMetrics(){const c=this.form.get("characteristics")?.value||{},n=[];for(const l of this.getKeys(c))this.disabledCharacteristics.includes(l)||n.push({id:l,value:c[l]});return n}refreshAppliedMetrics(){var c=this;return(0,b1.A)(function*(){if(!c.selectedPricePlan)return void(c.metrics=[]);const n=c.getSelectedCharacteristicsForMetrics(),l=new Map;for(const r of c.metrics){const m=c.metricKey(r);m&&l.set(m,r.value??0)}try{const r=yield c.pricePlanMetricsService.getAppliedMetrics(c.selectedPricePlan,n);c.metrics=(Array.isArray(r)?r:[]).map(m=>{const z=c.metricKey(m);return z?{...m,value:l.has(z)?l.get(z):m.value??0}:m})}catch(r){console.error("Error refreshing applied metrics",r)}})()}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}isFormValid(){return this.form.valid}get objectKeys(){return Object.keys}hasKey(c,n){return n in c}getKeys(c){return Object.keys(c)}getValues(c){return Object.values(c)}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 n=0;nr.id===this.getKeys(c)[n]);if(console.log(this.filteredCharacteristics[l]),!this.disabledCharacteristics.includes(this.filteredCharacteristics[l].id)){let r=this.getValues(c)[n];const m=this.filteredCharacteristics[l];if(m.productSpecCharacteristicValue?.some(I=>"boolean"==typeof I?.value)&&"string"==typeof r){const I=r.toLowerCase();("true"===I||"false"===I)&&(r="true"===I)}let F=m.valueType;F||"boolean"!=typeof r?F||isNaN(Number(r))?F||(F="string"):F="number":F="boolean",null==r&&"number"==F&&(r=0),m.name?.endsWith("- enabled")||this.orderChars.push({name:m.name,value:r,valueType:F})}}console.log("Calculating the price with..."),console.log(this.orderChars)}calculatePrice(){var c=this;return(0,b1.A)(function*(n=!1){if(c.updateOrderChars(),c.isFree&&(c.price=[],c.isLoading=!1),c.isCustom||c.isFree)return;const l=c.form.get("selectedPricePlan")?.value;let r={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&&(r.product.id=c.inventoryProductId);let m=[];c.metrics.length>0&&(m=c.metrics.map(J=>({usageSpecification:{id:J.usageSpecId},usageCharacteristic:[{name:J.unitOfMeasure,value:n?1:J.value}]})));let z=[];z.push(r);const I={productOrder:{id:A4(),productOrderItem:z},usage:m};if(l){console.log("--- prod ---"),console.log(r),console.log("--- prod ---"),c.isLoading=!0;try{const J=yield(0,U2.s)(c.priceService.calculatePrice(I));return console.log("calculate price..."),console.log(J.orderTotalPrice),c.price=J.orderTotalPrice,c.price=c.price.map(d1=>({...d1,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,b1.A)(function*(){if(c.form.invalid)return void console.error("Form is invalid");const n=c.form.value,l={productId:c.productOff?.id,pricePlan:n.selectedPricePlan,characteristics:c.orderChars,tsAccepted:n.tsAccepted,priceSummary:c.price};try{yield c.calculatePrice(!0)}catch(m){return void console.error("Error calculating price:",m)}if("modify"===c.mode){const m=n.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:m.id,href:m.href,name:m.name}}],product:{id:c.inventoryProductId,productCharacteristic:c.orderChars}}),void c.onClose()}const r=c.buildProdOptions(n.tsAccepted);c.isCustom&&(r.options.pricing=[{id:l.pricePlan.id}]);try{yield c.cartService.addItemShoppingCart(r),console.log("Update successful"),c.eventMessage.emitAddedCartItem(r),console.log("Order Payload:",l)}catch(m){console.error("There was an error while updating the cart:",m)}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(n){return new(n||t)(e.rXU(p.ok),e.rXU(pe),e.rXU(r8),e.rXU(H2),e.rXU(e.gRc),e.rXU(n30))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-price-plan-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscape(m)},!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-hidden","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"],[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,"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"],[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"],[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(n,l){if(1&n&&(e.DNE(0,i30,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,d30,6,0,"div",10)(13,p30,10,4)(14,k30,2,1)(15,S30,5,1)(16,N30,9,5,"div",11),e.k0s(),e.j41(17,"div",12),e.DNE(18,E30,6,0,"div",13)(19,D30,3,0)(20,T30,3,0)(21,I30,3,0)(22,P30,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&n){let r,m;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,oG,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!=(r=l.form.get("selectedPricePlan"))&&r.value?14:-1),e.R7$(),e.vxM(15,l.metrics.length>0?15:-1),e.R7$(),e.vxM(16,null!=(m=l.form.get("selectedPricePlan"))&&m.value&&null!=(m=l.form.get("characteristics"))&&m.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:[AN1,H0,L.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 t})(),of1=(()=>{class t{constructor(){this.category={name:"Default"},this.faAddressCard=oc,this.faCloud=D2.jBL}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"a",0),e.nrm(1,"fa-icon",1),e.j41(2,"p",2),e.EFF(3),e.k0s()()),2&n&&(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 t})();const IN1=(t,a)=>a.id,$30=(t,a)=>a.value,j30=(t,a)=>a.name,IE=(t,a)=>({"break-all":t,"break-words":a});function O30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(n.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function B30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=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,IE,r.hasLongWord(n.name,20),!r.hasLongWord(n.name,20))),e.R7$(),e.JRh(n.name),e.R7$(2),e.Y8G("ngClass",e.l_i(9,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function V30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(n.name),e.R7$(),e.Y8G("ngClass",e.l_i(5,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function U30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(n.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function H30(t,a){if(1&t&&e.DNE(0,O30,9,8,"div",35)(1,B30,9,12)(2,V30,8,8)(3,U30,9,8),2&t){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:"custom"===c.priceType?2:3)}}function G30(t,a){if(1&t&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",34),e.Z7z(4,H30,4,1,null,null,IN1),e.k0s()),2&t){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 Y30(t,a){1&t&&(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&t&&(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 q30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",58)(1,"input",59),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),r=l.$implicit,m=l.$index,z=e.XpG().$index,F=e.XpG(2);return e.Njj(F.onCharChange(z,m,r))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+r+l)("name","char-radio-"+r),e.R7$(),e.Y8G("for","char-radio-"+r+l),e.R7$(),e.JRh(n.value)}}function X30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",58)(1,"input",61),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),r=l.$implicit,m=l.$index,z=e.XpG().$index,F=e.XpG(2);return e.Njj(F.onCharChange(z,m,r))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+r+l)("name","char-radio-"+r),e.R7$(),e.Y8G("for","char-radio-"+r+l),e.R7$(),e.JRh(n.value)}}function W30(t,a){if(1&t&&(e.j41(0,"div",57),e.DNE(1,q30,4,4,"div",58)(2,X30,4,4),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,1==(null==c?null:c.isDefault)?1:2)}}function J30(t,a){if(1&t&&(e.j41(0,"div",55)(1,"h5",56),e.EFF(2),e.k0s(),e.Z7z(3,W30,3,1,"div",57,$30),e.k0s()),2&t){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function Q30(t,a){if(1&t&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,J30,5,1,"div",55,IN1)),2&t){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,1,"CARD._select_char"),":"),e.R7$(2),e.Dyx(c.prodSpec.productSpecCharacteristic)}}function Z30(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CARD._no_chars")," "))}function K30(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(2),e.Y8G("data",c.description)}}function e60(t,a){if(1&t){const c=e.RV6();e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,K30,5,2,null,null,j30),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&t){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 c60(t,a){if(1&t){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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,2,"CARD._no_terms")," "),e.R7$(4),e.SpI(" ",e.bMT(10,4,"CARD._checkout")," "))}function t60(t,a){if(1&t&&e.nrm(0,"error-message",32),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let PN1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J){this.cdr=c,this.route=n,this.api=l,this.priceService=r,this.router=m,this.elementRef=z,this.localStorage=F,this.cartService=I,this.eventMessage=J,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,n,l){this.selected_chars[c].value={isDefault:!0,value:l.value};let m=this.selected_chars[c].characteristic.productSpecCharacteristicValue;if(null!=m)for(let z=0;zl.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(F2.F),e.rXU(pe),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(L2.s),e.rXU(r8),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["cart-card"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.bIt("click",function(m){return m.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,G30,6,3)(38,Y30,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,Q30,5,3)(47,Z30,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,e60,16,11)(56,c60,13,6),e.k0s()()()()()(),e.DNE(57,t60,1,1,"error-message",32)),2&n&&(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:[L.YU,H0,M0,s1.D9]})}}return t})();const n60=["relationshipsContent"],l60=["detailsContent"],s60=["charsContent"],a60=["attachContent"],o60=["agreementsContent"],i60=["textDiv"],r60=["termsText"],d60=["agreementsScrollAnchor"],f60=["relScrollAnchor"],u60=["attachScrollAnchor"],m60=["charsScrollAnchor"],p60=["detailsScrollAnchor"],F9=(t,a)=>a.id,h60=(t,a)=>a.value,f8=(t,a)=>({"break-all":t,"break-words":a});function g60(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",33),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"a",69),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(4),e.k0s()()}if(2&t){const c=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,2,"CARD._owner"),": "),e.R7$(3),e.JRh(c.orgInfo.tradingName)}}function _60(t,a){1&t&&e.nrm(0,"bae-badge",36),2&t&&e.Y8G("category",a.$implicit)}function L60(t,a){if(1&t&&(e.j41(0,"a",37),e.nrm(1,"fa-icon",70),e.EFF(2," No level "),e.k0s()),2&t){const c=e.XpG();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 C60(t,a){1&t&&e.nrm(0,"img",71)}function z60(t,a){1&t&&e.nrm(0,"img",72)}function M60(t,a){1&t&&e.nrm(0,"img",73)}function x60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",74),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToChars(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._chars")," "))}function b60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",75),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToAttach(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._attach")," "))}function y60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",76),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToAgreements(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._agreements")," "))}function F60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",77),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToRelationships(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._relationships")," "))}function v60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",80),e.nrm(2,"path",81),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&t){const c=e.XpG(2);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 k60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",82),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.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",84),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function w60(t,a){if(1&t&&e.DNE(0,v60,5,5,"button",78)(1,k60,5,3),2&t){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function S60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",80),e.nrm(2,"path",81),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&t){const c=e.XpG(2);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 N60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",87),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.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",84),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function E60(t,a){if(1&t&&e.DNE(0,S60,5,5,"button",85)(1,N60,5,3),2&t){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function D60(t,a){if(1&t&&(e.j41(0,"p",89)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",90),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("ngClass",e.l_i(3,f8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("data",c.description)}}function T60(t,a){if(1&t&&(e.j41(0,"div",52)(1,"h5",88),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,D60,5,6,"p",89,F9),e.k0s()),2&t){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 R60(t,a){if(1&t&&(e.j41(0,"p",91)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",92),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,f8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function A60(t,a){if(1&t&&(e.j41(0,"div",52)(1,"h5",88),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,R60,5,6,"p",91,F9),e.k0s()),2&t){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 I60(t,a){1&t&&(e.j41(0,"h3",55),e.EFF(1," No level "),e.k0s())}function P60(t,a){1&t&&e.nrm(0,"img",93)}function $60(t,a){1&t&&e.nrm(0,"img",94)}function j60(t,a){1&t&&e.nrm(0,"img",95)}function O60(t,a){if(1&t&&(e.j41(0,"a",57),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG();e.Y8G("href",c.selfAtt,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,"PRODUCT_DETAILS._self_attestation")," ")}}function B60(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",97)(1,"div",98),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.goToLink(l.href))}),e.nrm(2,"fa-icon",99),e.j41(3,"h3",100),e.EFF(4),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("icon",n.faAtom),e.R7$(2),e.JRh(c.name)}}function V60(t,a){if(1&t&&(e.j41(0,"h3",55),e.EFF(1," 3rd party certifications: "),e.k0s(),e.j41(2,"div",96),e.Z7z(3,B60,5,2,"div",97,F9),e.k0s()),2&t){const c=e.XpG();e.R7$(3),e.Dyx(c.complianceProf)}}function U60(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",97)(1,"div",98),e.bIt("click",function(){let l;const r=e.eBV(c).$implicit,m=e.XpG(2);return e.Njj(m.goToLink(null==r.productSpecCharacteristicValue||null==(l=r.productSpecCharacteristicValue.at(0))?null:l.value))}),e.nrm(2,"fa-icon",99),e.j41(3,"h3",100),e.EFF(4),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("icon",n.faAtom),e.R7$(2),e.JRh(n.normalizeName(c.name))}}function H60(t,a){if(1&t&&(e.j41(0,"h3",55),e.EFF(1," Additional certifications: "),e.k0s(),e.j41(2,"div",96),e.Z7z(3,U60,5,2,"div",97,F9),e.k0s()),2&t){const c=e.XpG();e.R7$(3),e.Dyx(c.additionalCerts)}}function G60(t,a){if(1&t&&(e.j41(0,"div",103)(1,"div",104)(2,"h2",105),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",106),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,f8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function Y60(t,a){1&t&&e.DNE(0,G60,5,10,"div",103),2&t&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function q60(t,a){1&t&&(e.j41(0,"div",102)(1,"div",107)(2,"div",108)(3,"h5",109),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",110),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(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 X60(t,a){if(1&t&&(e.j41(0,"div",101),e.Z7z(1,Y60,1,1,null,null,F9),e.DNE(3,q60,9,6,"div",102),e.k0s()),2&t){const c=e.XpG(2);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 W60(t,a){if(1&t&&(e.j41(0,"div",112)(1,"div",113)(2,"h5",114),e.EFF(3),e.k0s()(),e.j41(4,"div",115),e.nrm(5,"markdown",106),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,f8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function J60(t,a){if(1&t&&(e.j41(0,"div",111)(1,"div",116)(2,"h5",117),e.EFF(3),e.k0s()(),e.j41(4,"div",115),e.nrm(5,"markdown",106),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,f8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function Q60(t,a){if(1&t&&(e.j41(0,"div",111)(1,"div",108)(2,"h5",118),e.EFF(3),e.k0s()(),e.j41(4,"div",115),e.nrm(5,"markdown",106),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,f8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function Z60(t,a){if(1&t&&e.DNE(0,W60,6,10,"div",112)(1,J60,6,10)(2,Q60,6,10),2&t){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:2)}}function K60(t,a){1&t&&(e.j41(0,"div",111)(1,"div",108)(2,"h5",109),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",119),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&t&&(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 e80(t,a){if(1&t&&(e.j41(0,"div",101),e.Z7z(1,Z60,3,1,null,null,F9),e.DNE(3,K60,8,6,"div",111),e.k0s()),2&t){const c=e.XpG(2);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 c80(t,a){if(1&t&&e.DNE(0,X60,4,1,"div",101)(1,e80,4,1),2&t){const c=e.XpG();e.vxM(0,c.checkCustom?0:1)}}function t80(t,a){if(1&t&&(e.j41(0,"div",97)(1,"div",121)(2,"h3",122),e.EFF(3),e.k0s(),e.nrm(4,"markdown",123),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(4,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,f8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function n80(t,a){if(1&t&&(e.j41(0,"h2",53),e.EFF(1,"Usage metrics"),e.k0s(),e.j41(2,"div",54)(3,"div",120),e.Z7z(4,t80,5,10,"div",97,F9),e.k0s()()),2&t){const c=e.XpG();e.R7$(4),e.Dyx(c.usageMetrics)}}function l80(t,a){if(1&t&&e.nrm(0,"markdown",128),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.Y8G("ngClass",e.l_i(2,f8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function s80(t,a){1&t&&(e.j41(0,"span",129),e.EFF(1,"Optional"),e.k0s())}function a80(t,a){if(1&t&&(e.j41(0,"div",131)(1,"span",132),e.EFF(2,"Default"),e.k0s(),e.j41(3,"span",133),e.EFF(4),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.R7$(3),e.Y8G("ngClass",n.getBooleanDefaultValue(c)?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-gray-200 text-gray-700 dark:bg-gray-700 dark:text-gray-200"),e.R7$(),e.SpI(" ",n.getBooleanDefaultValue(c)?"Enabled":"Disabled"," ")}}function o80(t,a){if(1&t&&(e.j41(0,"label",136),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicValueLabel(c)),e.R7$(),e.JRh(n.getCharacteristicValuePreview(c))}}function i80(t,a){if(1&t&&(e.j41(0,"label",136),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicRangeLabel(c)),e.R7$(),e.JRh(n.getCharacteristicRangePreview(c))}}function r80(t,a){if(1&t&&(e.j41(0,"div",134),e.nrm(1,"input",135),e.DNE(2,o80,2,2,"label",136)(3,i80,2,2),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(2),e.vxM(2,null!=c.value?2:3)}}function d80(t,a){if(1&t&&(e.j41(0,"label",138),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicValueLabel(c)),e.R7$(),e.JRh(n.getCharacteristicValuePreview(c))}}function f80(t,a){if(1&t&&(e.j41(0,"label",138),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicRangeLabel(c)),e.R7$(),e.JRh(n.getCharacteristicRangePreview(c))}}function u80(t,a){if(1&t&&(e.j41(0,"div",134),e.nrm(1,"input",137),e.DNE(2,d80,2,2,"label",138)(3,f80,2,2),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(2),e.vxM(2,null!=c.value?2:3)}}function m80(t,a){if(1&t&&e.DNE(0,r80,4,1,"div",134)(1,u80,4,1),2&t){const c=a.$implicit;e.vxM(0,1==(null==c?null:c.isDefault)?0:1)}}function p80(t,a){if(1&t&&e.Z7z(0,m80,2,1,null,null,h60),2&t){const c=e.XpG().$implicit;e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function h80(t,a){if(1&t&&(e.j41(0,"div",97)(1,"div",126)(2,"h3",127),e.EFF(3),e.k0s(),e.DNE(4,l80,1,5,"markdown",128)(5,s80,2,0,"span",129),e.j41(6,"div",130),e.DNE(7,a80,5,2,"div",131)(8,p80,2,0),e.k0s()()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(5,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.vxM(4,c.description?4:-1),e.R7$(),e.vxM(5,n.isOptionalCharacteristic(c)?5:-1),e.R7$(2),e.vxM(7,n.isBooleanCharacteristic(c)?7:8)}}function g80(t,a){1&t&&(e.j41(0,"div",125)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",142),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",143),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function _80(t,a){if(1&t&&(e.j41(0,"div",59,6)(2,"h2",124),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",54)(6,"div",120),e.Z7z(7,h80,9,8,"div",97,F9,!1,g80,9,3,"div",125),e.k0s()()()),2&t){const c=e.XpG();e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_DETAILS._product_chars")),e.R7$(4),e.Dyx(c.prodChars)}}function L80(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",97)(1,"div",145)(2,"div",146)(3,"h3",122),e.EFF(4),e.k0s()(),e.j41(5,"div",147)(6,"fa-icon",148),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.goToLink(l.url))}),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(3),e.Y8G("ngClass",e.l_i(3,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("icon",n.faDownload)}}function C80(t,a){1&t&&(e.j41(0,"div",125)(1,"div",149),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",142),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",143),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_attach")," "))}function z80(t,a){if(1&t&&(e.j41(0,"h2",53,7),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",144)(5,"div",120),e.Z7z(6,L80,7,6,"div",97,F9,!1,C80,9,3,"div",125),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"PRODUCT_DETAILS._product_att")),e.R7$(4),e.Dyx(c.attatchments)}}function M80(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",155),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.toggleTermsReadMore())}),e.EFF(1),e.k0s()}if(2&t){const c=e.XpG(3);e.R7$(),e.SpI(" ",c.showTermsMore?"Read less":"Read more"," ")}}function x80(t,a){if(1&t&&(e.j41(0,"h2",124,8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",54)(5,"div",150)(6,"div",151)(7,"div",147),e.nrm(8,"fa-icon",99),e.k0s()(),e.j41(9,"div",152,9),e.nrm(11,"markdown",153),e.k0s(),e.DNE(12,M80,2,1,"button",154),e.k0s()()),2&t){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"PRODUCT_DETAILS._license")),e.R7$(6),e.Y8G("icon",c.faScaleBalanced),e.R7$(),e.AVh("line-clamp-5",!c.showTermsMore),e.R7$(2),e.Y8G("ngClass",e.l_i(9,f8,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(12,c.showReadMoreButton?12:-1)}}function b80(t,a){if(1&t&&(e.j41(0,"h2",156),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"p",157),e.EFF(4),e.k0s()),2&t){const c=e.XpG(2);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 y80(t,a){if(1&t&&e.DNE(0,x80,13,12)(1,b80,5,4),2&t){const c=e.XpG();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 F80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faArrowProgress)}}function v80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faArrowRightArrowLeft)}}function k80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faObjectExclude)}}function w80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faSwap)}}function S80(t,a){if(1&t&&(e.j41(0,"div",97)(1,"div",121)(2,"h3",122),e.EFF(3),e.k0s(),e.j41(4,"div",159)(5,"p",160),e.EFF(6),e.k0s(),e.DNE(7,F80,1,1,"fa-icon",99)(8,v80,1,1)(9,k80,1,1)(10,w80,1,1),e.k0s()()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(4,f8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.JRh(c.relationshipType),e.R7$(),e.vxM(7,"dependency"==c.relationshipType?7:"migration"==c.relationshipType?8:"exclusivity"==c.relationshipType?9:"substitution"==c.relationshipType?10:-1)}}function N80(t,a){if(1&t&&(e.j41(0,"h2",124,10),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",158)(5,"div",120),e.Z7z(6,S80,11,7,"div",97,F9),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,1,"PRODUCT_DETAILS._product_rels")),e.R7$(4),e.Dyx(c.prodSpec.productSpecificationRelationship)}}function E80(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",64)(1,"div",161),e.qSk(),e.j41(2,"svg",162),e.nrm(3,"path",163),e.k0s(),e.joV(),e.j41(4,"div",164),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",165)(8,"button",166),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",167),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",142),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",168),e.nrm(16,"path",169),e.k0s()()()(),e.joV(),e.j41(17,"div",170),e.nrm(18,"div",171),e.k0s()()}2&t&&(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 D80(t,a){if(1&t&&e.nrm(0,"cart-card",65),2&t){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function T80(t,a){if(1&t&&e.nrm(0,"error-message",66),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function R80(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-quote-request-modal",172),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&t){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 A80=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1,N1){this.cdr=c,this.route=n,this.api=l,this.priceService=r,this.router=m,this.elementRef=z,this.localStorage=F,this.cartService=I,this.eventMessage=J,this.accService=d1,this.usageService=i1,this.location=N1,this.providerThemeName=h1.c.providerThemeName,this.quotesEnabled=h1.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.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=h1.c.PURCHASE_ENABLED,this.showReadMoreButton=!1,this.customerId="",this.orgInfo=void 0,this.showQuoteModal=!1,this.productAlreadyInCart=!1,this.faScaleBalanced=D2.iRu,this.faArrowProgress=D2.SZt,this.faArrowRightArrowLeft=D2.tNR,this.faObjectExclude=D2.tP3,this.faSwap=D2.FJA,this.faGlobe=D2.Bwz,this.faBook=D2.LBj,this.faShieldHalved=D2.fLc,this.faAtom=D2.RSf,this.faDownload=D2.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,P1.Q)(this.destroy$)).subscribe(J1=>{if("CloseCartCard"===J1.type){if(this.hideCartSelection(),null!=J1.value){this.lastAddedProd=J1.value,this.toastVisibility=!0,this.cdr.detectChanges();let u2=document.getElementById("progress-bar"),v2=document.getElementById("toast-add-cart");null!=u2&&null!=v2&&(u2.style.width="0%",u2.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}else"CloseQuoteRequest"===J1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==J1.type||"AddedCartItem"==J1.type)&&this.cartService.getShoppingCart().then(u2=>{this.productAlreadyInCart=!!u2.some(G2=>G2.id===this.productOff?.id)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateTabs(c){if(this.isManualScroll)return;const n=[{id:"details-container",tab:"details-button",handler:()=>this.goToDetails(!1)},{id:"chars-container",tab:"chars-button",handler:()=>this.goToChars(!1)},{id:"attach-container",tab:"attach-button",handler:()=>this.goToAttach(!1)},{id:"agreements-container",tab:"agreements-button",handler:()=>this.goToAgreements(!1)},{id:"relationships-container",tab:"relationships-button",handler:()=>this.goToRelationships(!1)}];let r=null;for(let m=n.length-1;m>=0;m--){const z=n[m],F=document.getElementById(z.id);if(!F)continue;const I=F.getBoundingClientRect();if(I.top<=150&&I.bottom>150){r=z;break}I.top>150&&(r=z)}r&&r.handler()}ngOnInit(){var c=this;return(0,b1.A)(function*(){S2();let n=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(n)&&n.expire-Y2().unix()-4>0)if(c.check_logged=!0,c.cdr.detectChanges(),n.logged_as==n.id)c.customerId=n.partyId;else{let I=n.organizations.find(J=>J.id==n.logged_as);c.customerId=I.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),r=yield c.api.getProductSpecification(l.productSpecification.id);c.prodSpec=r,c.getOwner();let m=l.productOfferingPrice,z=[];if(void 0!==m)for(let I=0;I!J.name.startsWith("Compliance:")&&!J.name?.endsWith(" - enabled")),c.additionalCerts=c.prodSpec.productSpecCharacteristic.filter(J=>{const d1=J.name.replace("Compliance:","").trim();return J.name.startsWith("Compliance:")&&!v5.some(i1=>i1.name===d1)&&"Compliance:SelfAtt"!=J.name}),console.log("--- additional"),console.log(c.additionalCerts);const I=J=>J?.replace(/compliance:/i,"").trim()??"";for(let J=0;JI(N1.name)===v5[J].name);if(d1){let N1=v5[J];N1.href=d1.productSpecCharacteristicValue?.at(0)?.value,c.complianceProf.push(N1)}const i1=c.prodChars.findIndex(N1=>I(N1.name)===v5[J].name);-1!==i1&&c.prodChars.splice(i1,1)}console.log(c.complianceProf)}if(null!=c.prodSpec.serviceSpecification)for(let I=0;I"Profile Picture"===I.name)??[];if(console.log("profile..."),console.log(F),0==F.length?(c.images=c.productOff?.attachment?.filter(I=>"Picture"===I.attachmentType)??[],c.attatchments=c.productOff?.attachment?.filter(I=>"Picture"!=I.attachmentType)??[]):(c.images=F,c.attatchments=c.productOff?.attachment?.filter(I=>"Profile Picture"!=I.name)??[]),c.licenseTerm=c.productOff?.productOfferingTerm?.find(I=>"License"===I.name),null!=c.prodSpec.productSpecCharacteristic){let I=c.prodSpec.productSpecCharacteristic.find(J=>"Compliance:SelfAtt"===J.name);I&&(c.selfAtt=I.productSpecCharacteristicValue?.at(0)?.value)}if(c.complianceLevel=c.api.getComplianceLevel(c.prodSpec),c.complianceDescription=c.getComplianceDescription(),c.check_logged){const J=(yield c.cartService.getShoppingCart()).some(d1=>d1.id===c.productOff?.id);c.productAlreadyInCart=J,c.cdr.detectChanges()}})()}loadUsageMetrics(c){var n=this;return(0,b1.A)(function*(){if(!c||0===c.length)return void(n.usageMetrics=[]);const l=new Map,r=new Map;for(const m of c)yield n.collectUsageMetricsFromPrice(m,l,r);n.usageMetrics=Array.from(l.values())})()}collectUsageMetricsFromPrice(c,n,l){var r=this;return(0,b1.A)(function*(){if(!c)return;const m=Array.isArray(c.bundledPopRelationship)?c.bundledPopRelationship:[];if(m.length>0){for(const z of m)if(z?.id)try{const F=yield r.api.getOfferingPrice(z.id);yield r.addMetricFromPrice(F,n,l)}catch(F){console.error("Error loading linked product offering price",F)}}else yield r.addMetricFromPrice(c,n,l)})()}addMetricFromPrice(c,n,l){var r=this;return(0,b1.A)(function*(){const m=c?.usageSpecId,z=r.getMetricName(c?.unitOfMeasure);if(!m||!z)return;const F=`${m}:${z}`;if(n.has(F))return;let I=l.get(m);if(void 0===I){try{I=yield r.usageService.getUsageSpec(m)}catch{I=null}l.set(m,I)}n.set(F,{id:F,usageSpecId:m,name:z,description:I?.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)}checkOverflow(){const c=this.termsTextRef?.nativeElement;c&&(this.showReadMoreButton=c.scrollHeight>c.clientHeight)}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,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,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 n=this;return(0,b1.A)(function*(){void 0!==c&&(yield n.cartService.removeItemShoppingCart(c.id),console.log("removed"),n.eventMessage.emitRemovedCartItem(c)),n.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}goToDetails(c){if(c){this.isManualScroll=!0,clearTimeout(this.scrollTimeout);const F=this.detailsScrollAnchor?.nativeElement;if(!F)return;document.scrollingElement||document,F.scrollIntoView({behavior:"smooth",block:"start"});const J=F.getBoundingClientRect().top+window.scrollY-88;window.scrollTo({top:J,behavior:"smooth"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3)}let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.selectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToChars(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.charsScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToAttach(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.attachScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToAgreements(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.agreementsScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToRelationships(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.relScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}unselectTag(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectTag(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}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 n=0;n{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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}getCharacteristicValueLabel(c){const n=this.formatCharacteristicScalar(c?.value),l=this.getUnitLabel(c?.unitOfMeasure);return l?`${n} (${l})`:n}getCharacteristicValuePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicValueLabel(c))}getCharacteristicRangeLabel(c){const n=this.formatCharacteristicScalar(c?.valueFrom),l=this.formatCharacteristicScalar(c?.valueTo),r=this.getUnitLabel(c?.unitOfMeasure),m=`${n} - ${l}`;return r?`${m} (${r})`:m}getCharacteristicRangePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicRangeLabel(c))}isOptionalCharacteristic(c){const n=(c?.name??"").toString().trim();if(!n||!this.prodSpec?.productSpecCharacteristic)return!1;const l=`${n} - enabled`.toLowerCase();return this.prodSpec.productSpecCharacteristic.some(r=>(r?.name??"").toString().trim().toLowerCase()===l)}isBooleanCharacteristic(c){const n=c?.productSpecCharacteristicValue;return!(!Array.isArray(n)||0===n.length)&&n.every(l=>"boolean"==typeof l?.value)}getBooleanDefaultValue(c){const n=c?.productSpecCharacteristicValue;return!(!Array.isArray(n)||0===n.length)&&!0===(n.find(r=>!0===r?.isDefault)??n[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,n=120){return c?c.length>n?`${c.slice(0,n)}...`:c:""}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(F2.F),e.rXU(pe),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(L2.s),e.rXU(r8),e.rXU(H2),e.rXU(K0.O),e.rXU(Ze),e.rXU(L.aZ))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-product-details"]],viewQuery:function(n,l){if(1&n&&(e.GBs(n60,5),e.GBs(l60,5),e.GBs(s60,5),e.GBs(a60,5),e.GBs(o60,5),e.GBs(i60,5),e.GBs(r60,5),e.GBs(d60,5),e.GBs(f60,5),e.GBs(u60,5),e.GBs(m60,5),e.GBs(p60,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.relationshipsContent=r.first),e.mGM(r=e.lsd())&&(l.detailsContent=r.first),e.mGM(r=e.lsd())&&(l.charsContent=r.first),e.mGM(r=e.lsd())&&(l.attachContent=r.first),e.mGM(r=e.lsd())&&(l.agreementsContent=r.first),e.mGM(r=e.lsd())&&(l.textDiv=r.first),e.mGM(r=e.lsd())&&(l.termsTextRef=r.first),e.mGM(r=e.lsd())&&(l.agreementsScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.relScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.attachScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.charsScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.detailsScrollAnchor=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("scroll",function(m){return l.updateTabs(m)},!1,e.tSv)},decls:101,vars:66,consts:[["detailsScrollAnchor",""],["detailsContent",""],["charsScrollAnchor",""],["attachScrollAnchor",""],["agreementsScrollAnchor",""],["relScrollAnchor",""],["charsContent",""],["attachContent",""],["agreementsContent",""],["termsText",""],["relationshipsContent",""],[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","text-wrap","break-words",3,"ngClass"],[1,"pt-2","line-clamp-5","h-fit"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"flex","flex-row","justify-between","h-fit"],[1,"dark:text-gray-200"],[1,"h-fit","pt-2","dark:text-gray-300"],[1,"h-fit","overflow-x-hidden","flex","items-center","flex-wrap"],[1,"mr-2",3,"category"],[1,"text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","mb-1",3,"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","Product image",1,"object-contain","h-5/6","w-5/6","max-h-[350px]","z-10","p-8","dark:text-white",3,"src"],["id","tabs-container",1,"sticky","top-[72px]","z-10","w-full","h-full","bg-secondary-50","rounded-t-lg","pt-4","pr-4","pl-4","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border-t"],[1,"inline-flex","overflow-x-auto","overflow-y-hidden","w-full","text-sm","font-medium","text-center","text-gray-600","dark:text-white","border-b","border-gray-300","dark:border-white","justify-between"],[1,"flex","flex-wrap","-mb-px"],[1,"mr-2"],["id","details-button",1,"inline-block","p-4","text-primary-100","dark:text-primary-50","dark:border-primary-50","border-b-2","border-primary-100","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],[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-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["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,"container","mx-auto","px-4"],[1,"text-2xl","font-bold","text-primary-100","dark:text-primary-50","text-left","mb-2"],[1,"mb-2","text-gray-800","dark:text-gray-200"],["target","_blank",1,"font-medium","text-blue-600","dark:text-blue-500","hover:underline",3,"href"],["id","chars-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["id","chars-container"],["id","attach-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["id","agreements-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["id","agreements-container"],["id","rel-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["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"],["data-cy","pricePlanDrawer",3,"closeDrawer","drawerId","productOff","prodSpec","isOpen","width"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"mr-2",3,"icon","ngClass"],["src","assets/logos/baseline.png","alt","Baseline logo",1,"z-10","h-[1.2rem]","max-w-[8rem]","object-contain","rounded-md","mr-2"],["src","assets/logos/prof.png","alt","Professional logo",1,"z-10","h-[1.2rem]","max-w-[8rem]","object-contain","rounded-md","mr-2"],["src","assets/logos/profplus.png","alt","Professional plus logo",1,"z-10","h-[1.2rem]","max-w-[8rem]","object-contain","rounded-md","mr-2"],["id","chars-button","aria-current","page",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["id","attach-button",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["id","agreements-button",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["id","relationships-button",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["type","button",1,"hidden","md:flex","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"disabled","ngClass"],["type","button",1,"hidden","md:flex","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","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","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,"hidden","md:flex","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"],["type","button",1,"flex","md:hidden","justify-end","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"disabled","ngClass"],["type","button",1,"flex","md:hidden","justify-end","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click","disabled","ngClass"],["type","button",1,"md:hidden","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"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50"],[1,"pl-4","dark:text-gray-200",3,"ngClass"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"data"],[1,"pl-4","dark:text-gray-200"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],["src","assets/logos/baseline.png",1,"z-10","dark:text-white","rounded-md","mr-2","max-w-md"],["src","assets/logos/prof.png",1,"z-10","dark:text-white","rounded-md","mr-2","max-w-md"],["src","assets/logos/profplus.png",1,"z-10","dark:text-white","rounded-md","mr-2","max-w-md"],[1,"flex","flex-wrap","-mx-4","mt-4","justify-center"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"border","border-2","rounded-lg","shadow","bg-white","dark:bg-secondary-200","shadow-md","p-8","h-full","border-primary-100","cursor-pointer",3,"click"],[1,"fa-2xl","text-primary-100","align-middle",3,"icon"],[1,"text-2xl","font-bold","mt-4","dark:text-white"],[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,"flex","flex-wrap","-mx-4","justify-center"],[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","break-words",3,"ngClass"],[1,"text-gray-700","dark:text-gray-200","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,"flex","justify-center","items-center","w-full"],[1,"relative","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","break-words","pr-28",3,"ngClass"],[1,"text-sm","text-gray-700","dark:text-gray-200","text-wrap","break-words","mb-4",3,"ngClass","data"],[1,"absolute","top-4","right-4","inline-flex","items-center","rounded-md","bg-blue-100","px-2","py-1","text-xs","font-medium","text-blue-700","dark:bg-blue-900/60","dark:text-blue-200"],[1,"mt-3"],[1,"pl-4","flex","items-center","gap-2"],[1,"text-sm","font-medium","text-gray-600","dark:text-gray-300"],[1,"inline-flex","items-center","rounded-md","px-2","py-1","text-xs","font-medium",3,"ngClass"],[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",3,"title"],["disabled","","id","disabled-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","dark:bg-gray-600","dark:border-gray-800","border-gray-300","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","text-wrap","break-all",3,"title"],["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"],["id","attach-container",1,"container","mx-auto","px-4"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full","grid","grid-cols-80/20","pb-4","h-1/4"],[1,"flex","justify-start"],[1,"flex","justify-end"],[1,"fa-xl","cursor-pointer","text-primary-100","align-middle",3,"click","icon"],["role","alert",1,"flex","items-center","w-full","md: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,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","p-8"],[1,"pb-4","h-1/4"],[1,"overflow-hidden"],[1,"text-lg","font-normal","text-gray-700","dark:text-gray-200","mb-4","break-words",3,"ngClass","data"],[1,"mt-4","text-blue-500","focus:outline-none"],[1,"mt-4","text-blue-500","focus:outline-none",3,"click"],[1,"text-4xl","font-extrabold","text-primary-100","text-center","pb-8","pt-12"],[1,"mb-2","pl-4","font-normal","text-gray-700"],["id","relationships-container",1,"container","mx-auto","px-4"],[1,"flex","justify-between"],[1,"mb-2","font-normal","pl-4","text-gray-700","dark:text-gray-200"],[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"],["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"]],template:function(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",11)(1,"div",12)(2,"nav",13)(3,"ol",14)(4,"li",15)(5,"button",16),e.bIt("click",function(){return e.eBV(r),e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",17),e.nrm(7,"path",18),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",19)(11,"div",20),e.qSk(),e.j41(12,"svg",21),e.nrm(13,"path",22),e.k0s(),e.joV(),e.j41(14,"span",23),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",24)(18,"div",25),e.nrm(19,"img",26),e.k0s(),e.j41(20,"div",27)(21,"div",28)(22,"h5",29),e.EFF(23),e.k0s()(),e.j41(24,"div",30),e.nrm(25,"markdown",31),e.k0s(),e.j41(26,"div",32),e.DNE(27,g60,5,4,"div",33),e.j41(28,"div",34),e.EFF(29),e.k0s()(),e.j41(30,"div",35),e.Z7z(31,_60,1,1,"bae-badge",36,F9),e.DNE(33,L60,3,3,"a",37)(34,C60,1,0)(35,z60,1,0)(36,M60,1,0),e.k0s()(),e.j41(37,"div",38)(38,"div",39),e.nrm(39,"div",40)(40,"img",41),e.k0s()()(),e.j41(41,"div",42)(42,"div",43)(43,"ul",44)(44,"li",45)(45,"button",46),e.bIt("click",function(){return e.eBV(r),e.Njj(l.goToDetails(!0))}),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.DNE(48,x60,4,3,"li",45)(49,b60,4,3,"li",45)(50,y60,4,3,"li",45)(51,F60,4,3,"li",45),e.k0s(),e.DNE(52,w60,2,1),e.k0s(),e.DNE(53,E60,2,1),e.k0s(),e.j41(54,"div",47)(55,"div",48),e.nrm(56,"div",49,0),e.j41(58,"div",50)(59,"h2",51,1),e.EFF(61,"Description"),e.k0s(),e.nrm(62,"markdown",31),e.DNE(63,T60,6,3,"div",52)(64,A60,6,3,"div",52),e.j41(65,"h2",53),e.EFF(66),e.nI1(67,"translate"),e.k0s(),e.j41(68,"div",54),e.DNE(69,I60,2,0,"h3",55)(70,P60,1,0)(71,$60,1,0)(72,j60,1,0),e.j41(73,"p",56),e.EFF(74),e.k0s(),e.DNE(75,O60,3,4,"a",57)(76,V60,5,0)(77,H60,5,0),e.k0s(),e.j41(78,"h2",53),e.EFF(79),e.nI1(80,"translate"),e.k0s(),e.DNE(81,c80,2,1)(82,n80,6,0),e.k0s(),e.nrm(83,"div",58,2),e.DNE(85,_80,10,4,"div",59),e.nrm(86,"div",60,3),e.DNE(88,z80,9,4),e.nrm(89,"div",61,4),e.j41(91,"div",62),e.DNE(92,y80,2,2),e.k0s(),e.nrm(93,"div",63,5),e.DNE(95,N80,8,3),e.k0s()(),e.DNE(96,E80,19,9,"div",64)(97,D80,1,4,"cart-card",65)(98,T80,1,1,"error-message",66)(99,R80,1,6,"app-quote-request-modal",67),e.j41(100,"app-price-plan-drawer",68),e.bIt("closeDrawer",function(){return e.eBV(r),e.Njj(l.closeDrawer())}),e.k0s()()}2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,47,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,49,"PRODUCT_DETAILS._details")),e.R7$(4),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(3),e.Y8G("ngClass",e.l_i(57,f8,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$(2),e.Y8G("ngClass",e.l_i(60,f8,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.vxM(27,null!=l.orgInfo?27:-1),e.R7$(2),e.SpI("V: ",(null==l.productOff?null:l.productOff.version)||"latest",""),e.R7$(2),e.Dyx(l.categories),e.R7$(2),e.vxM(33,"NL"==l.complianceLevel?33:"BL"==l.complianceLevel?34:"P"==l.complianceLevel?35:36),e.R7$(6),e.muq("background-image: url(",l.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(6),e.SpI(" ",e.bMT(47,51,"PRODUCT_DETAILS._details")," "),e.R7$(2),e.vxM(48,null!=l.prodSpec.productSpecCharacteristic&&l.prodSpec.productSpecCharacteristic.length>0?48:-1),e.R7$(),e.vxM(49,l.attatchments.length>0?49:-1),e.R7$(),e.vxM(50,l.licenseTerm||null!=l.productOff&&l.productOff.serviceLevelAgreement?50:-1),e.R7$(),e.vxM(51,null!=l.prodSpec.productSpecificationRelationship&&l.prodSpec.productSpecificationRelationship.length>0?51:-1),e.R7$(),e.vxM(52,l.check_logged?52:-1),e.R7$(),e.vxM(53,l.check_logged?53:-1),e.R7$(9),e.Y8G("ngClass",e.l_i(63,f8,l.hasLongWord(l.prodSpec.description,20),!l.hasLongWord(l.prodSpec.description,20)))("data",l.prodSpec.description),e.R7$(),e.vxM(63,l.serviceSpecs.length>0?63:-1),e.R7$(),e.vxM(64,l.resourceSpecs.length>0?64:-1),e.R7$(2),e.JRh(e.bMT(67,53,"CARD._comp_profile")),e.R7$(3),e.vxM(69,"NL"==l.complianceLevel?69:"BL"==l.complianceLevel?70:"P"==l.complianceLevel?71:72),e.R7$(5),e.SpI(" ",l.complianceDescription," "),e.R7$(),e.vxM(75,l.selfAtt?75:-1),e.R7$(),e.vxM(76,l.complianceProf.length>0?76:-1),e.R7$(),e.vxM(77,l.additionalCerts.length>0?77:-1),e.R7$(2),e.JRh(e.bMT(80,55,"PRODUCT_DETAILS._product_pricing")),e.R7$(2),e.vxM(81,null!=(null==l.productOff?null:l.productOff.productOfferingPrice)?81:-1),e.R7$(),e.vxM(82,l.usageMetrics.length>0?82:-1),e.R7$(3),e.vxM(85,null!=l.prodSpec.productSpecCharacteristic&&l.prodChars.length>0?85:-1),e.R7$(3),e.vxM(88,l.attatchments.length>0?88:-1),e.R7$(4),e.vxM(92,l.licenseTerm||null!=l.productOff&&l.productOff.serviceLevelAgreement?92:-1),e.R7$(3),e.vxM(95,null!=l.prodSpec.productSpecificationRelationship&&l.prodSpec.productSpecificationRelationship.length>0?95:-1),e.R7$(),e.vxM(96,l.toastVisibility?96:-1),e.R7$(),e.vxM(97,l.cartSelection?97:-1),e.R7$(),e.vxM(98,l.showError?98:-1),e.R7$(),e.vxM(99,l.showQuoteModal?99:-1),e.R7$(),e.Y8G("drawerId","drawer-product")("productOff",l.productOff)("prodSpec",l.prodSpec)("isOpen",l.isDrawerOpen)("width","w-2/3"))},dependencies:[L.YU,J2.aY,$d1,H0,iG,of1,M0,PN1,s1.D9],styles:[".container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;background-size:cover;background-repeat:no-repeat;background-position:center}"]})}}return t})();const if1=(t,a)=>a.id,PE=(t,a)=>({"break-all":t,"break-words":a});function I80(t,a){if(1&t&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,PE,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function P80(t,a){if(1&t&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,I80,5,6,"p",36,if1),e.k0s()),2&t){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 $80(t,a){if(1&t&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,PE,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function j80(t,a){if(1&t&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,$80,5,6,"p",36,if1),e.k0s()),2&t){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 O80(t,a){1&t&&(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&t&&(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 B80(t,a){if(1&t&&(e.j41(0,"div",43)(1,"div",44)(2,"h2",45),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",46),e.k0s()),2&t){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,PE,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 V80(t,a){if(1&t&&(e.j41(0,"div",33),e.DNE(1,O80,9,6,"div",38)(2,B80,5,6),e.k0s()),2&t){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 U80(t,a){if(1&t&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function H80(t,a){if(1&t&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function G80(t,a){if(1&t&&(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,U80,2,2,"label",56)(7,H80,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function Y80(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function q80(t,a){if(1&t&&(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,G80,8,2,"div",50,if1,!1,Y80,9,3,"div",51),e.k0s()()()),2&t){const c=e.XpG();e.R7$(6),e.Dyx(c.prod.productCharacteristic)}}let X80=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.cdr=c,this.route=n,this.api=l,this.priceService=r,this.router=m,this.elementRef=z,this.localStorage=F,this.eventMessage=I,this.inventoryServ=J,this.location=d1,this.check_logged=!1,this.images=[],this.attatchments=[],this.serviceSpecs=[],this.resourceSpecs=[],this.prod={},this.prodSpec={},this.checkCustom=!1,this.faScaleBalanced=D2.iRu,this.faArrowProgress=D2.SZt,this.faArrowRightArrowLeft=D2.tNR,this.faObjectExclude=D2.tP3,this.faSwap=D2.FJA,this.faGlobe=D2.Bwz,this.faBook=D2.LBj,this.faShieldHalved=D2.fLc,this.faAtom=D2.RSf,this.faDownload=D2.cbP}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(S2(),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 n=yield c.api.getProductById(c.prod.productOffering.id);c.prodSpec=yield c.api.getProductSpecification(n.productSpecification.id),c.prod.productPrice.length>0&&(c.pricePlan=yield c.loadPricePlan(c.prod.productPrice[0].productOfferingPrice.id)),c.productOff={id:n.id,name:n.name,category:n.category,description:n.description,lastUpdate:n.lastUpdate,attachment:c.prodSpec?.attachment??[],productOfferingPrice:c.prod.productPrice,productSpecification:n.productSpecification,productOfferingTerm:n.productOfferingTerm,serviceLevelAgreement:n.serviceLevelAgreement,version:n.version},console.log(c.productOff),c.organizeAttachments(),c.completeCharacteristics(),yield c.fetchSpecifications(),c.cdr.detectChanges()}catch(n){console.error("Error fetching product details:",n)}})()}completeCharacteristics(){this.prod.productCharacteristic=this.prod?.productCharacteristic?.map(c=>(this.prodSpec?.productSpecCharacteristic?.forEach(n=>{c.name===n.name&&n.productSpecCharacteristicValue&&n.productSpecCharacteristicValue.length>0&&n.productSpecCharacteristicValue[0].unitOfMeasure&&(c.unitOfMeasure=n.productSpecCharacteristicValue[0].unitOfMeasure)}),c))}handleLoginState(){const c=this.localStorage.getObject("login_items"),n=c&&Object.keys(c).length>0&&c.expire-Y2().unix()-4>0;this.check_logged=n,this.cdr.detectChanges()}organizeAttachments(){const c=this.productOff?.attachment?.filter(n=>"Profile Picture"===n.name)??[];0===c.length?(this.images=this.productOff?.attachment?.filter(n=>"Picture"===n.attachmentType)??[],this.attatchments=this.productOff?.attachment?.filter(n=>"Picture"!==n.attachmentType)??[]):(this.images=c,this.attatchments=this.productOff?.attachment?.filter(n=>"Profile Picture"!==n.name)??[])}fetchSpecifications(){var c=this;return(0,b1.A)(function*(){const n=c.prodSpec?.serviceSpecification?.map(z=>c.api.getServiceSpec(z.id))??[],l=c.prodSpec?.resourceSpecification?.map(z=>c.api.getResourceSpec(z.id))??[],[r,m]=yield Promise.all([Promise.all(n),Promise.all(l)]);c.serviceSpecs=r,c.resourceSpecs=m})()}loadPricePlan(c){var n=this;return(0,b1.A)(function*(){return yield n.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(F2.F),e.rXU(pe),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(L2.s),e.rXU(H2),e.rXU(d8),e.rXU(L.aZ))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){if(1&n){const r=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(r),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,P80,6,3,"div",31)(40,j80,6,3,"div",31),e.j41(41,"h2",32),e.EFF(42,"Price Plan"),e.k0s(),e.DNE(43,V80,3,1,"div",33),e.k0s(),e.DNE(44,q80,9,1,"div",34),e.k0s()()()}2&n&&(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,PE,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,PE,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:[L.YU,H0,s1.D9]})}}return t})();const YL=(t,a)=>a.id,W80=()=>[],v9=(t,a)=>({"break-all":t,"break-words":a});function J80(t,a){1&t&&(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 Q80(t,a){1&t&&e.nrm(0,"bae-badge",46),2&t&&e.Y8G("category",a.$implicit)}function Z80(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",50)(1,"button",55),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().$implicit;return e.XpG(3).openModifyFromCard(r),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 r=e.XpG().$implicit;return e.XpG(3).showUnsubscribeModal(r),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&t){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 K80(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function ee0(t,a){if(1&t&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function ce0(t,a){if(1&t&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function te0(t,a){if(1&t&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function ne0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",37)(1,"div",39),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.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,Q80,1,1,"bae-badge",46,YL),e.k0s(),e.j41(10,"div",47)(11,"a",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.goToProductDetails(l.product))}),e.j41(12,"h5",49),e.EFF(13),e.k0s()(),e.DNE(14,Z80,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,K80,2,1,"span",54)(21,ee0,2,1)(22,ce0,2,1)(23,te0,2,1),e.k0s()()()()()}if(2&t){const c=a.$implicit,n=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-"+n),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 le0(t,a){1&t&&(e.j41(0,"div",38),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_INVENTORY._not_found")))}function se0(t,a){if(1&t){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 ae0(t,a){if(1&t&&e.DNE(0,se0,5,0,"div",66),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function oe0(t,a){1&t&&(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 ie0(t,a){if(1&t&&(e.j41(0,"div",36),e.Z7z(1,ne0,24,10,"div",37,YL,!1,le0,3,3,"div",38),e.k0s(),e.DNE(4,ae0,1,1)(5,oe0,6,0)),2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.inventory),e.R7$(3),e.vxM(4,c.loading_more?5:4)}}function re0(t,a){if(1&t){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,J80,6,0,"div",31)(44,ie0,6,2)}if(2&t){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 de0(t,a){if(1&t&&(e.j41(0,"div",107)(1,"div",108)(2,"h2",109),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",110),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function fe0(t,a){1&t&&e.DNE(0,de0,5,10,"div",107),2&t&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function ue0(t,a){1&t&&(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&t&&(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 me0(t,a){if(1&t&&(e.j41(0,"div",105),e.Z7z(1,fe0,1,1,null,null,YL),e.DNE(3,ue0,9,6,"div",106),e.k0s()),2&t){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 pe0(t,a){if(1&t&&(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&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function he0(t,a){if(1&t&&(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&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function ge0(t,a){if(1&t&&(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&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function _e0(t,a){if(1&t&&e.DNE(0,pe0,6,10,"div",116)(1,he0,6,10)(2,ge0,6,10),2&t){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:2)}}function Le0(t,a){1&t&&(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&t&&(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 Ce0(t,a){if(1&t&&(e.j41(0,"div",105),e.Z7z(1,_e0,3,1,null,null,YL),e.DNE(3,Le0,8,6,"div",115),e.k0s()),2&t){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 ze0(t,a){if(1&t&&e.DNE(0,me0,4,1,"div",105)(1,Ce0,4,1),2&t){const c=e.XpG(2);e.vxM(0,c.checkCustom?0:1)}}function Me0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function xe0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function be0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function ye0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function Fe0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function ve0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function ke0(t,a){if(1&t&&(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,Fe0,2,2,"label",140)(7,ve0,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function we0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function Se0(t,a){if(1&t&&(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,ke0,8,2,"div",134,YL,!1,we0,9,3,"div",135),e.k0s()()()),2&t){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 Ne0(t,a){if(1&t){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,ze0,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,Me0,8,7,"tr",102,YL,!1,xe0,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,be0,8,7,"tr",102,YL,!1,ye0,7,3,"div",103),e.k0s()()()()(),e.DNE(82,Se0,10,4,"div",104),e.k0s()()()}if(2&t){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,v9,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 Ee0(t,a){if(1&t){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&t){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 De0(t,a){if(1&t){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&t){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 Te0(t,a){if(1&t&&e.nrm(0,"error-message",4),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Re0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-billing-address",165),e.bIt("selectedEvent",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onBillingSelected(l))}),e.k0s()}if(2&t){const n=a.$index;e.Y8G("data",a.$implicit)("position",n)}}function Ae0(t,a){1&t&&(e.j41(0,"p",161),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._no_billing")))}function Ie0(t,a){if(1&t){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,Re0,1,2,"app-billing-address",160,YL,!1,Ae0,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&t){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 Pe0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.inventoryService=c,this.localStorage=n,this.api=l,this.cdr=r,this.priceService=m,this.router=z,this.orderService=F,this.eventMessage=I,this.paginationService=J,this.accountService=d1,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.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=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{"ChangedSession"===i1.type&&this.initInventory()})}ngOnInit(){null==this.prodId&&(this.checkFrom=!1),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-Y2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getInventory(!1)}let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.keywordFilter=void 0,this.getInventory(!1))}),S2()}onClick(){1==this.unsubscribeModal&&(this.unsubscribeModal=!1,this.cdr.detectChanges()),1==this.prodToRenew&&(this.prodToRenew=!1,this.cdr.detectChanges())}getProductImage(c){let n=[];if(c?.attachment){let l=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[];n=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[],0!=l.length&&(n=l)}return n.length>0?n?.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 n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0);let l={keywords:n.keywordFilter,filters:n.filters,partyId:n.partyId};yield n.paginationService.getItemsPaginated(n.page,n.INVENTORY_LIMIT,c,n.inventory,n.nextInventory,l,n.paginationService.getInventory.bind(n.paginationService)).then(r=>{if(n.page_check=r.page_check,n.inventory=r.items,n.nextInventory=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1,S2(),null!=n.prodId&&n.checkFrom){let m=n.inventory.findIndex(z=>z.id==n.prodId);n.selectProduct(n.inventory[m]),n.checkFrom=!1}})})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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,b1.A)(function*(){yield c.getInventory(!0)})()}filterInventoryByKeywords(){this.keywordFilter=this.searchField.value,this.getInventory(!1)}unsubscribeProduct(){var c=this;return(0,b1.A)(function*(){const n=c.prodToUnsubscribe,l={id:n.productOffering.id,action:"delete",productOffering:{id:n.productOffering.id,href:n.productOffering.id},product:{id:n.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 n=this;return(0,b1.A)(function*(){n.selectedProduct=c,console.log("selecting prod"),console.log(n.selectedProduct),n.selectedResources=[],n.selectedServices=[],console.log("is prod spec undefined?"),console.log(n.selectedProduct.product);let l=yield n.api.getProductSpecification(n.selectedProduct.product.productSpecification.id);if(n.selectedProdSpec=l,null!=l.serviceSpecification)for(let F=0;Fl.length>n)}openModifyFromCard(c){var n=this;return(0,b1.A)(function*(){yield n.selectProduct(c),n.showDetails=!1,n.isModifyDrawerOpen=!0})()}onModifySubmit(c){var n=this;return(0,b1.A)(function*(){n.pendingModifyPayload=c,yield n.getBilling(),n.showBillingSelector=!0})()}getBilling(){var c=this;return(0,b1.A)(function*(){c.selectedBillingAddress=null,c.billingAddresses=[];let n=yield c.accountService.getBillingAccount();for(let l=0;l{c.showError=!1},3e3)}c.showBillingSelector=!1})()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(d8),e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(pe),e.rXU(E2.Ix),e.rXU(w8),e.rXU(H2),e.rXU(A6),e.rXU(K0.O))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["inventory-products"]],hostBindings:function(n,l){1&n&&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",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(n,l){1&n&&(e.j41(0,"div",2),e.DNE(1,re0,45,26)(2,Ne0,83,50)(3,Ee0,21,14,"div",3)(4,De0,21,14,"div",3)(5,Te0,1,1,"error-message",4),e.j41(6,"app-price-plan-drawer",5),e.bIt("closeDrawer",function(){return l.isModifyDrawerOpen=!1})("modifySubmit",function(m){return l.onModifySubmit(m)}),e.k0s(),e.DNE(7,Ie0,20,15,"div",6),e.k0s()),2&n&&(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,W80))("width","w-2/3"),e.R7$(),e.vxM(7,l.showBillingSelector?7:-1))},dependencies:[L.YU,J2.aY,H0,iG,of1,iS1,M0,s1.D9]})}}return t})();const $N1=(t,a)=>a.id,jN1=(t,a)=>({"break-all":t,"break-words":a});function $e0(t,a){1&t&&(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 je0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,jN1,n.hasLongWord(c.name,20),!n.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 Oe0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function Be0(t,a){if(1&t){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 Ve0(t,a){if(1&t&&e.DNE(0,Be0,5,0,"div",50),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function Ue0(t,a){1&t&&(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 He0(t,a){if(1&t&&(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,je0,11,11,"tr",41,$N1,!1,Oe0,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,Ve0,1,1)(23,Ue0,6,0),e.k0s()()),2&t){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 Ge0(t,a){if(1&t){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,$e0,6,0,"div",30)(54,He0,24,14)}if(2&t){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 Ye0(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function qe0(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function Xe0(t,a){if(1&t&&(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,Ye0,2,2,"label",79)(7,qe0,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function We0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function Je0(t,a){if(1&t&&(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,Xe0,8,2,"div",73,$N1,!1,We0,9,3,"div",74),e.k0s()()()),2&t){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 Qe0(t,a){if(1&t){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,Je0,10,4,"div",69),e.k0s()()}if(2&t){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 Ze0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.inventoryService=c,this.localStorage=n,this.api=l,this.cdr=r,this.router=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.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=h1.c.INVENTORY_RES_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.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-Y2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getInventory(!1)}S2()}getInventory(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.INVENTORY_LIMIT,c,n.resources,n.nextResources,{partyId:n.partyId,filters:n.status},n.inventoryService.getResourceInventory.bind(n.inventoryService)).then(r=>{n.page_check=r.page_check,n.resources=r.items,n.nextResources=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1,console.log(n.resources)})})()}next(){var c=this;return(0,b1.A)(function*(){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 n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(d8),e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(H2),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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"],["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(n,l){1&n&&(e.j41(0,"div",1),e.DNE(1,Ge0,55,32)(2,Qe0,23,15),e.k0s()),2&n&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[L.YU,J2.aY,H0,L.vh,s1.D9]})}}return t})();const ON1=(t,a)=>a.id,BN1=(t,a)=>({"break-all":t,"break-words":a});function Ke0(t,a){1&t&&(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 e50(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,BN1,n.hasLongWord(c.name,20),!n.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 c50(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function t50(t,a){if(1&t){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 n50(t,a){if(1&t&&e.DNE(0,t50,5,0,"div",50),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function l50(t,a){1&t&&(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 s50(t,a){if(1&t&&(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,e50,11,11,"tr",41,ON1,!1,c50,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,n50,1,1)(23,l50,6,0),e.k0s()()),2&t){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 a50(t,a){if(1&t){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,Ke0,6,0,"div",30)(54,s50,24,14)}if(2&t){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 o50(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function i50(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function r50(t,a){if(1&t&&(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,o50,2,2,"label",79)(7,i50,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function d50(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function f50(t,a){if(1&t&&(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,r50,8,2,"div",73,ON1,!1,d50,9,3,"div",74),e.k0s()()()),2&t){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 u50(t,a){if(1&t){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,f50,10,4,"div",69),e.k0s()()}if(2&t){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,BN1,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 m50=(()=>{class t{constructor(c,n,l,r,m,z,F){this.inventoryService=c,this.localStorage=n,this.api=l,this.cdr=r,this.router=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.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=h1.c.INVENTORY_SERV_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.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-Y2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getInventory(!1)}S2()}getInventory(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.INVENTORY_LIMIT,c,n.services,n.nextServices,{partyId:n.partyId,filters:n.status},n.inventoryService.getServiceInventory.bind(n.inventoryService)).then(r=>{n.page_check=r.page_check,n.services=r.items,n.nextServices=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){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 n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(d8),e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(H2),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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",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(n,l){1&n&&(e.j41(0,"div",1),e.DNE(1,a50,55,32)(2,u50,23,15),e.k0s()),2&n&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[L.YU,J2.aY,H0,L.vh,s1.D9]})}}return t})();function p50(t,a){if(1&t&&e.nrm(0,"inventory-products",19),2&t){const c=e.XpG();e.Y8G("prodId",c.openProdId)}}function h50(t,a){if(1&t&&e.nrm(0,"inventory-services",20),2&t){const c=e.XpG();e.Y8G("serviceId",c.openServiceId)("prodId",c.openProdId)}}function g50(t,a){if(1&t&&e.nrm(0,"inventory-resources",21),2&t){const c=e.XpG();e.Y8G("resourceId",c.openResourceId)("prodId",c.openProdId)}}let _50=(()=>{class t{constructor(c,n){this.cdr=c,this.eventMessage=n,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,P1.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(){S2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){S2()}goToOffers(){S2(),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(),S2()}getResources(){this.selectRes(),this.show_orders=!1,this.show_prods=!1,this.show_serv=!1,this.show_res=!0,this.cdr.detectChanges(),S2()}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectProd(){let c=document.getElementById("prod-button"),n=document.getElementById("serv-button"),l=document.getElementById("res-button"),r=document.getElementById("order-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectServ(){let c=document.getElementById("prod-button"),n=document.getElementById("serv-button"),l=document.getElementById("res-button"),r=document.getElementById("order-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectRes(){let c=document.getElementById("prod-button"),n=document.getElementById("serv-button"),l=document.getElementById("res-button"),r=document.getElementById("order-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,p50,1,1,"inventory-products",19)(42,h50,1,2,"inventory-services",20)(43,g50,1,2,"inventory-resources",21),e.k0s()()()),2&n&&(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:[Pe0,Ze0,m50,s1.D9]})}}return t})();const L50=["confirmModal"],C50=["noteContainer"],VN1=(t,a)=>a.id,z50=t=>({"text-primary-100 border-primary-100 active dark:text-primary-50 dark:border-primary-50 group":t}),M50=(t,a)=>({"translate-x-0":t,"translate-x-full":a}),x50=(t,a)=>({"justify-end":t,"justify-start":a}),b50=(t,a)=>({"bg-blue-200 text-blue-900":t,"bg-gray-200 text-gray-800":a});function y50(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(5,z50,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 F50(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG();e.SpI(" ",c.actionFilters.join(", ")," ")}}function v50(t,a){1&t&&(e.EFF(0),e.nI1(1,"translate")),2&t&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_action")," ")}function k50(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG();e.SpI(" ",c.filters.join(", ")," ")}}function w50(t,a){1&t&&(e.EFF(0),e.nI1(1,"translate")),2&t&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_state")," ")}function S50(t,a){1&t&&(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 N50(t,a){if(1&t&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function E50(t,a){if(1&t&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function D50(t,a){if(1&t&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function T50(t,a){if(1&t&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function R50(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function A50(t,a){if(1&t&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function I50(t,a){if(1&t&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function P50(t,a){1&t&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function $50(t,a){1&t&&(e.qSk(),e.j41(0,"svg",84),e.nrm(1,"path",90),e.k0s())}function j50(t,a){1&t&&(e.qSk(),e.j41(0,"svg",91),e.nrm(1,"path",92),e.k0s())}function O50(t,a){if(1&t){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,N50,2,1,"span",77)(6,E50,2,1)(7,D50,2,1)(8,T50,2,1)(9,R50,2,1)(10,A50,2,1)(11,I50,2,1)(12,P50,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 r=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(r),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 r=e.eBV(c).$implicit;return e.XpG(2).toggleDrawer(r),e.Njj(l.stopPropagation())}),e.DNE(25,$50,2,0,":svg:svg",84)(26,j50,2,0),e.k0s()()()}if(2&t){const c=a.$implicit,n=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,n.hasNotes(c)?25:26)}}function B50(t,a){1&t&&(e.j41(0,"div",73)(1,"span",93),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function V50(t,a){if(1&t){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 U50(t,a){if(1&t&&e.DNE(0,V50,5,0,"div",94),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function H50(t,a){1&t&&(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 G50(t,a){if(1&t&&(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,O50,27,9,"tr",72,VN1),e.k0s()(),e.DNE(23,B50,4,3,"div",73),e.k0s(),e.DNE(24,U50,1,1)(25,H50,6,0),e.k0s()),2&t){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 Y50(t,a){if(1&t&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function q50(t,a){if(1&t&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function X50(t,a){if(1&t&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function W50(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function J50(t,a){if(1&t&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Q50(t,a){if(1&t&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Z50(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function K50(t,a){1&t&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function ec0(t,a){if(1&t&&(e.j41(0,"td",76),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",null!==(c=n.productOfferingPrice.name)&&void 0!==c?c:"Custom"," ")}}function cc0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" Bundled price plan: ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.name," ")}}function tc0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.unitOfMeasure?null:c.productOfferingPrice.unitOfMeasure.units," ")}}function nc0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.recurringChargePeriodType," ")}}function lc0(t,a){if(1&t&&(e.EFF(0),e.DNE(1,tc0,1,1)(2,nc0,1,1)),2&t){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 sc0(t,a){if(1&t&&(e.j41(0,"td",76),e.DNE(1,cc0,1,1)(2,lc0,3,4),e.k0s()),2&t){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 ac0(t,a){if(1&t&&e.DNE(0,ec0,2,1,"td",76)(1,sc0,3,1),2&t){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function oc0(t,a){1&t&&(e.j41(0,"td",76),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function ic0(t,a){if(1&t&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function rc0(t,a){if(1&t&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function dc0(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function fc0(t,a){if(1&t&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function uc0(t,a){if(1&t&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function mc0(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function pc0(t,a){1&t&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function hc0(t,a){if(1&t&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function gc0(t,a){if(1&t&&(e.j41(0,"span",128),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function _c0(t,a){if(1&t&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function Lc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",129),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.openModal("cancelled",l))}),e.qSk(),e.j41(4,"svg",133),e.nrm(5,"path",134),e.k0s()()}}function Cc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",136),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,r=e.XpG(2);return e.Njj(r.openModal("inProgress",l))}),e.qSk(),e.j41(1,"svg",137),e.nrm(2,"path",138)(3,"path",139),e.k0s()()}}function zc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",140),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.openModal("failed",l))}),e.qSk(),e.j41(4,"svg",141),e.nrm(5,"path",144),e.k0s()()}}function Mc0(t,a){if(1&t&&e.DNE(0,Cc0,4,0,"button",135)(1,zc0,6,0),2&t){const c=e.XpG(3).$implicit;e.vxM(0,"acknowledged"===c.productOrderItem.state?0:"inProgress"===c.productOrderItem.state?1:-1)}}function xc0(t,a){1&t&&(e.j41(0,"td",127),e.EFF(1," n/a "),e.k0s())}function bc0(t,a){if(1&t&&e.DNE(0,Mc0,2,1)(1,xc0,2,0),2&t){const c=e.XpG(4);e.vxM(0,c.role==c.sellerRole?0:1)}}function yc0(t,a){if(1&t&&e.DNE(0,Lc0,6,0)(1,bc0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.vxM(0,c.productOrderItem.state||n.role!=n.sellerRole?1:0)}}function Fc0(t,a){if(1&t&&(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,ac0,2,1)(6,oc0,3,3),e.j41(7,"td",76),e.DNE(8,ic0,2,1,"span",111)(9,rc0,2,1)(10,dc0,2,1)(11,fc0,2,1)(12,uc0,2,1)(13,mc0,2,1)(14,pc0,2,0),e.k0s(),e.j41(15,"td",76),e.DNE(16,hc0,2,1,"span",111)(17,gc0,2,1)(18,_c0,2,1),e.k0s(),e.j41(19,"td",127),e.DNE(20,yc0,2,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.FS9("src",n.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,n.hasProcurementAutomaticTerm(c)?-1:20)}}function vc0(t,a){if(1&t){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,Y50,2,1,"span",111)(25,q50,2,1)(26,X50,2,1)(27,W50,2,1)(28,J50,2,1)(29,Q50,2,1)(30,Z50,2,1)(31,K50,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,Fc0,21,6,"tr",119,VN1),e.k0s()()()()()()}if(2&t){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 kc0(t,a){1&t&&(e.j41(0,"div",159),e.nrm(1,"div",160),e.j41(2,"p",161),e.EFF(3,"Loading notes..."),e.k0s()())}function wc0(t,a){1&t&&(e.j41(0,"div",165)(1,"p"),e.EFF(2,"No notes in this order."),e.k0s()())}function Sc0(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.nI1(2,"async"),e.bVm()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(),e.SpI(" ",e.bMT(2,1,n.getUsername(c.author))," ")}}function Nc0(t,a){if(1&t&&(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,Sc0,3,3,"ng-container",170),e.k0s()()()),2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",e.l_i(9,x50,c.author===n.partyId,c.author!==n.partyId)),e.R7$(),e.Y8G("ngClass",e.l_i(12,b50,c.author===n.partyId,c.author!==n.partyId)),e.R7$(2),e.JRh(c.text),e.R7$(2),e.Lme(" ",c.author===n.partyId?n.currentUser:n.userCache.get(c.author)||"Loading..."," - ",e.i5U(6,6,c.date,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(2),e.Y8G("ngIf",!n.userCache.has(c.author))}}function Ec0(t,a){if(1&t&&(e.j41(0,"div",162,1),e.DNE(2,wc0,3,0,"div",163)(3,Nc0,8,15,"div",164),e.k0s()),2&t){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 Dc0(t,a){if(1&t){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,kc0,4,0,"div",153)(11,Ec0,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 r=e.XpG();return e.DH7(r.newNoteText,l)||(r.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&t){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(5,M50,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 Tc0(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let Rc0=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.localStorage=c,this.api=n,this.cdr=l,this.router=r,this.accountService=m,this.orderService=z,this.eventMessage=F,this.paginationService=I,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=Qy,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.showError=!1,this.errorMessage="",this.page=0,this.ORDER_LIMIT=h1.c.ORDER_LIMIT,this.filters=[],this.actionFilters=[],this.check_custom=!1,this.buyerRole=h1.c.BUYER_ROLE,this.sellerRole=h1.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=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.destroy$=new S.B,this.JSON=JSON,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(J=>{"ChangedSession"===J.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges())}openModal(c,n){this.actionType=c,this.selectedItem=n,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,b1.A)(function*(){return c.updateLifecycle(c.actionType,c.selectedItem)})()}updateLifecycle(c,n){var l=this;return(0,b1.A)(function*(){if(!l.orderToShow)return void console.error("No order selected! Is this possible?");console.log("Transitioning to...",c,n),l.selectedItem=n;const r=l.selectedItem.productOrderItem.state;try{l.selectedItem.productOrderItem.state=c;const m={productOrderItem:l.orderToShow.productOrderItem},z=yield l.orderService.updateOrder(l.orderToShow.id,m);console.log("Order state updated successfully:",z),l.orderToShow.state=z.state}catch(m){l.selectedItem.productOrderItem.state=r,l.handleError("Error updating order state"),console.error("Error updating order:",m)}try{const m={text:`Order state updated to ${c}`,id:`urn:ngsi-ld:note:${A4()}`,author:l.partyId,date:(new Date).toISOString()};l.orderToShow.note||(l.orderToShow.note=[]),l.orderToShow.note.push(m);const z={note:l.orderToShow.note},F=yield l.orderService.updateOrder(l.orderToShow.id,z);console.log("Order note added successfully:",F)}catch(m){console.error("Error updating order notes:",m)}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-Y2().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 n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}S2()}ngAfterViewInit(){S2();const c=document.getElementById("drawer-notes");c&&(this.drawerInstance=new TY2(c,{placement:"right",backdrop:!1})),setTimeout(()=>{this.confirmModal&&(this.modalInstance=new rw1(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((n,l)=>new Date(n.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 n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.ORDER_LIMIT,c,n.orders,n.nextOrders,{filters:n.filters,partyId:n.partyId,orders:n.orders,role:n.role,actionFilters:n.actionFilters},n.paginationService.getOrders.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.orders),n.page_check=r.page_check,n.orders=r.items,n.nextOrders=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){console.log("-order-info-NEXT--"),yield c.getOrders(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?this.filters.splice(n,1):this.filters.push(c),this.getOrders(!1)}onActionFilterChange(c){const n=this.actionFilters.findIndex(l=>l===c);-1!==n?this.actionFilters.splice(n,1):this.actionFilters.push(c),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let n=[],l=!1;this.check_custom=!1;for(let r=0;r"procurement"===n.name&&"automatic"===n.description)}hasNotes(c){return!!c.note}addNote(){var c=this;return(0,b1.A)(function*(){if(!c.newNoteText.trim())return;const n={text:c.newNoteText,id:`urn:ngsi-ld:note:${A4()}`,author:c.partyId,date:(new Date).toISOString()};c.selectedOrder.note.push(n),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(n=>n.role?.toLowerCase()===this.buyerRole.toLowerCase());window.open(this.router.serializeUrl(this.router.createUrlTree(["/org-details",c?.id])),"_blank")}getCustomerName(){var c=this;return(0,b1.A)(function*(){if(c.orderToShow?.relatedParty){const n=c.orderToShow.relatedParty.find(l=>l.role?.toLowerCase()===c.buyerRole.toLowerCase());if(n?.id)return c.getUsername(n.id)}return""})()}getUsername(c){var n=this;return(0,b1.A)(function*(){if(n.userCache.has(c))return n.userCache.get(c);try{let l;if(c.startsWith("urn:ngsi-ld:individual:")){const r=yield n.accountService.getUserInfo(c);l=`${r?.givenName||""} ${r?.familyName||""}`.trim()||`Unknown (${c})`}else l=c.startsWith("urn:ngsi-ld:organization:")?(yield n.accountService.getOrgInfo(c))?.tradingName||`Unknown Organization (${c})`:`Unknown (${c})`;return n.userCache.set(c,l),l}catch(l){return console.error("Error fetching name for",c,l),`Unknown (${c})`}})()}formatDate(c){const n=new Date(c);return`${n.toLocaleDateString()} ${n.toLocaleTimeString()}`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(K0.O),e.rXU(w8),e.rXU(H2),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-order-info"]],viewQuery:function(n,l){if(1&n&&(e.GBs(L50,5),e.GBs(C50,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.confirmModal=r.first),e.mGM(r=e.lsd())&&(l.noteContainer=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)("keydown.escape",function(m){return l.handleEscapeKey(m)},!1,e.EBC)},standalone:!0,features:[e.Jv_([L.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(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",2)(1,"ul",3)(2,"li",4)(3,"a",5),e.bIt("click",function(){return e.eBV(r),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,y50,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(z){return e.eBV(r),e.Njj(z.stopPropagation())}),e.DNE(18,F50,1,1)(19,v50,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(r),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(r),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(r),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(z){return e.eBV(r),e.Njj(z.stopPropagation())}),e.DNE(46,k50,1,1)(47,w50,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(r),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(r),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(r),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(r),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(r),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(r),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(r),e.Njj(l.onStateFilterChange("cancelled"))}),e.k0s(),e.j41(87,"label",43),e.EFF(88),e.nI1(89,"translate"),e.k0s()()()()()()(),e.DNE(90,S50,6,0,"div",44)(91,G50,26,17)(92,vc0,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(r),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(r),e.Njj(l.confirmAction())}),e.EFF(110," Yes, Confirm "),e.k0s(),e.j41(111,"button",56),e.bIt("click",function(){return e.eBV(r),e.Njj(l.closeModal())}),e.EFF(112," Cancel "),e.k0s()()()()(),e.DNE(113,Dc0,17,8)(114,Tc0,9,1,"div",57)}2&n&&(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,L.MD,L.YU,L.Sq,L.bT,L.Jj,L.vh,HL,p.me,p.BC,p.vS]})}}return t})();const UN1=(t,a)=>a.id,Ac0=t=>({"text-blue-600 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group":t});function Ic0(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(5,Ac0,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 Pc0(t,a){1&t&&(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 $c0(t,a){if(1&t){const c=e.RV6();e.j41(0,"input",36),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.editableInvoiceName,l)||(r.editableInvoiceName=l),e.Njj(l)}),e.k0s()}if(2&t){const c=e.XpG(3);e.R50("ngModel",c.editableInvoiceName)}}function jc0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",null==c?null:c.billNo," ")}}function Oc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),r=l.$implicit,m=l.$index,z=e.XpG(2);return e.Njj(z.saveInvoice(m,r))}),e.nrm(1,"fa-icon",39),e.k0s()}if(2&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faSave)}}function Bc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),r=l.$implicit,m=l.$index,z=e.XpG(2);return e.Njj(z.editInvoice(m,r))}),e.nrm(1,"fa-icon",39),e.k0s()}if(2&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faEdit)}}function Vc0(t,a){if(1&t&&e.DNE(0,Oc0,2,1,"button",37)(1,Bc0,2,1),2&t){const c=e.XpG().$index,n=e.XpG(2);e.vxM(0,n.editingIndex===c?0:1)}}function Uc0(t,a){if(1&t){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,$c0,1,1,"input",25)(6,jc0,1,1),e.k0s(),e.j41(7,"td",26),e.EFF(8),e.k0s(),e.j41(9,"td",26),e.EFF(10),e.k0s(),e.j41(11,"td",24)(12,"div",27)(13,"button",28),e.bIt("click",function(l){const r=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(14,"svg",29)(15,"g",30),e.nrm(16,"path",31)(17,"path",32),e.k0s()()(),e.joV(),e.j41(18,"button",33),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.downloadInvoice(l))}),e.qSk(),e.j41(19,"svg",34),e.nrm(20,"path",35),e.k0s()(),e.DNE(21,Vc0,2,1),e.k0s()()()}if(2&t){const c=a.$implicit,n=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===n?5:6),e.R7$(3),e.Lme(" ",null==c?null:c.taxIncludedAmount.value,"",null==c?null:c.taxIncludedAmount.unit," "),e.R7$(2),e.SpI(" ",null==c?null:c.state," "),e.R7$(11),e.vxM(21,l.role==l.sellerRole?21:-1)}}function Hc0(t,a){1&t&&(e.j41(0,"div",23)(1,"span",40),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function Gc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",41)(1,"button",42),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",43),e.nrm(4,"path",44),e.k0s()()()}}function Yc0(t,a){if(1&t&&e.DNE(0,Gc0,5,0,"div",41),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function qc0(t,a){1&t&&(e.j41(0,"div",45),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 Xc0(t,a){if(1&t&&(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,Uc0,22,9,"tr",22,UN1),e.k0s()(),e.DNE(23,Hc0,4,3,"div",23),e.k0s(),e.DNE(24,Yc0,1,1)(25,qc0,6,0),e.k0s()),2&t){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 Wc0(t,a){1&t&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",55),e.nrm(2,"path",12)(3,"path",13),e.k0s()())}function Jc0(t,a){1&t&&(e.j41(0,"p",56),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INVOICES._no_billing_rates")," "))}function Qc0(t,a){if(1&t&&(e.j41(0,"div",60)(1,"p",61),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",62),e.EFF(5),e.nI1(6,"date"),e.nI1(7,"date"),e.k0s()()),2&t){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 Zc0(t,a){if(1&t&&(e.j41(0,"div",58)(1,"div",59)(2,"div",60)(3,"p",61),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"p",62),e.EFF(7),e.k0s()(),e.j41(8,"div",60)(9,"p",61),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p",62),e.EFF(13),e.k0s()(),e.j41(14,"div",60)(15,"p",61),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"p",63),e.EFF(19),e.k0s()(),e.j41(20,"div",60)(21,"p",61),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"p",64),e.EFF(25),e.k0s()(),e.j41(26,"div",60)(27,"p",61),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"p",65)(31,"u")(32,"a",66),e.EFF(33),e.k0s()()()(),e.DNE(34,Qc0,8,11,"div",60),e.k0s()()),2&t){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 Kc0(t,a){if(1&t&&(e.j41(0,"div",57),e.Z7z(1,Zc0,35,24,"div",58,UN1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.appliedCustomerBillingRates)}}function e70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",7)(1,"div",46),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",47)(3,"h2",48),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showInvoiceDetails=!1)}),e.qSk(),e.j41(7,"svg",50),e.nrm(8,"path",51),e.k0s(),e.joV(),e.j41(9,"span",14),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",52)(13,"div",53),e.DNE(14,Wc0,4,0,"div",54)(15,Jc0,3,3)(16,Kc0,3,0),e.k0s()()()()}if(2&t){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 c70=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.invoicesService=m,this.eventMessage=z,this.paginationService=F,this.router=I,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=h1.c.INVOICE_LIMIT,this.sellerRole=h1.c.SELLER_ROLE,this.buyerRole=h1.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=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.faEdit=D2.MT7,this.faSave=D2.hSh,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(J=>{"ChangedSession"===J.type&&this.initPartyInfo()})}onClick(){1==this.showInvoiceDetails&&(this.showInvoiceDetails=!1,this.cdr.detectChanges()),S2()}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-Y2().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 n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.invoices=[],this.getInvoices(!1)}S2()}ngAfterViewInit(){S2()}getProductImage(c){let n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getInvoices(c){var n=this;return(0,b1.A)(function*(){console.log("-getOrders--"),0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.INVOICE_LIMIT,c,n.invoices,n.nextInvoices,{filters:n.filters,partyId:n.partyId,selectedDate:n.selectedDate,invoices:n.invoices,role:n.role,name:n.name},n.paginationService.getInvoices.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.invoices),n.page_check=r.page_check,n.invoices=r.items,n.name=r.name,n.nextInvoices=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){console.log("-invoice-info-NEXT--"),yield c.getInvoices(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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 n=[],l=!1;this.check_custom=!1;for(let r=0;r{console.log("actualizado invoice")},error:r=>{n.billNo=l,console.error("There was an error while updating!",r)}}),this.editingIndex=null}downloadInvoice(c){console.log("Downloading invoice"),window.open(`${h1.c.BASE_URL}/invoicing/invoices/${c.id}?format=xml-html`,"_blank")}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(K0.O),e.rXU(F5),e.rXU(H2),e.rXU(A6),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-invoices-info"]],hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},standalone:!0,features:[e.Jv_([L.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,"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"],["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(n,l){1&n&&(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,Ic0,6,7,"li",2),e.k0s()(),e.DNE(9,Pc0,6,0,"div",6)(10,Xc0,26,17)(11,e70,17,8,"div",7)),2&n&&(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,L.MD,L.YU,L.vh,p.YN,p.me,p.BC,p.vS]})}}return t})();function t70(t,a){1&t&&e.nrm(0,"app-order-info")}function n70(t,a){1&t&&e.nrm(0,"app-invoices-info")}let l70=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.orderService=m,this.eventMessage=z,this.paginationService=F,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=Qy,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=h1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=h1.c.BUYER_ROLE,this.show_orders=!0,this.show_invoices=!1,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),S2()}ngOnInit(){this.loading=!0;let c=document.getElementById("order-button"),n=document.getElementById("bill-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"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-Y2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}S2()}ngAfterViewInit(){S2()}getProductImage(c){let n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.ORDER_LIMIT,c,n.orders,n.nextOrders,{filters:n.filters,partyId:n.partyId,orders:n.orders,role:n.role},n.paginationService.getOrders.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.orders),n.page_check=r.page_check,n.orders=r.items,n.nextOrders=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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 n=[],l=!1;this.check_custom=!1;for(let r=0;r{class t{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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const s70=[{name:"compliance_profile",children:[{name:"Baseline"},{name:"Professional"},{name:"Professional+"}]}],a70=(t,a)=>a.id,GN1=(t,a)=>({"break-all":t,"break-words":a});function o70(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.SpI("(",null==c.data?null:c.data.count,")")}}function i70(t,a){if(1&t){const c=e.RV6();e.j41(0,"input",1,0),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.checked,l)||(r.checked=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",2),e.bIt("click",function(){e.eBV(c);const l=e.sdS(1),r=e.XpG(2);return e.Njj(r.onClick(l.checked))}),e.j41(3,"div",3)(4,"div",4),e.EFF(5),e.DNE(6,o70,2,1,"span",5),e.k0s(),e.nrm(7,"fa-icon",6),e.k0s()()}if(2&t){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,GN1,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 r70(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const c=e.XpG(4);e.R7$(),e.SpI("(",c.data.count,")")}}function d70(t,a){if(1&t&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",21),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function f70(t,a){if(1&t){const c=e.RV6();e.j41(0,"h2",7)(1,"div",8)(2,"span",9),e.EFF(3),e.DNE(4,r70,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,d70,2,1,"li",null,a70),e.k0s()()()}if(2&t){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,GN1,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 u70(t,a){if(1&t&&e.DNE(0,f70,17,14),2&t){const c=e.XpG(2);e.vxM(0,c.data?0:-1)}}function m70(t,a){if(1&t&&e.DNE(0,i70,8,11)(1,u70,1,1),2&t){const c=e.XpG();e.vxM(0,0==(null==c.data||null==c.data.children?null:c.data.children.length)?0:1)}}let p70=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.eventMessage=n,this.cdr=l,this.faCircleCheck=D2.QRE,this.faCircle=vr1,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,P1.Q)(this.destroy$)).subscribe(r=>{const m=r.value;if("AddedFilter"===r.type&&m?.id===this.data?.id?this.checked=!0:"RemovedFilter"===r.type&&m?.id===this.data?.id&&(this.checked=!1),"AddedFilter"!==r.type||this.isCheckedCategory(m)){if("RemovedFilter"===r.type&&this.isCheckedCategory(m)){const z=this.checkedCategories.findIndex(F=>F===m.id);-1!==z&&(this.checkedCategories.splice(z,1),this.cdr.detectChanges()),console.log(this.isCheckedCategory(m))}}else this.checkedCategories.push(m.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 n=this.checkedCategories.findIndex(l=>l===this.data.id);-1!==n&&this.checkedCategories.splice(n,1)}else this.checkedCategories.push(this.data.id),this.localStorage.addCategoryFilter(this.data),this.eventMessage.emitAddedFilter(this.data);this.checked=!this.checked}onClickCategory(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const n=this.checkedCategories.findIndex(l=>l===c.id);-1!==n&&this.checkedCategories.splice(n,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c)}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let n=!1;if(null!=c)for(let l=0;ll.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(H2),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,m70,2,1),2&n&&e.vxM(0,null!=l.data&&l.data.children?0:-1)},dependencies:[L.YU,J2.aY,p.Zm,p.BC,p.vS,t]})}}return t})();const YN1=(t,a)=>a.id,h70=(t,a)=>({"break-all":t,"break-words":a});function g70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",3)(1,"span",4),e.EFF(2),e.k0s(),e.j41(3,"div",5)(4,"div",6),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,r=e.XpG();return e.Njj(r.onClick(l))}),e.nrm(5,"input",7)(6,"fa-icon",8),e.k0s(),e.j41(7,"button",9),e.qSk(),e.j41(8,"svg",10),e.nrm(9,"path",11),e.k0s()()()()}if(2&t){const c=e.XpG(2),n=c.$implicit,l=c.$index,r=c.$index,m=c.$count,z=e.XpG();e.Y8G("ngClass",z.checkClasses(0===r,r===m-1,n)),e.R7$(),e.Y8G("ngClass",e.l_i(7,h70,z.hasLongWord(null==n?null:n.name,20),!z.hasLongWord(null==n?null:n.name,20))),e.R7$(),e.JRh(null==n?null:n.name),e.R7$(3),e.Y8G("checked",z.isCheckedCategory(n)),e.R7$(),e.Y8G("icon",z.isCheckedCategory(n)?z.faCircleCheck:z.faCircle),e.R7$(),e.BMQ("data-accordion-target","#accordion-body-"+l)("aria-controls","accordion-body-"+l)}}function _70(t,a){if(1&t&&e.nrm(0,"bae-category-item",12),2&t){const c=e.XpG(2),l=c.$index,r=c.$count;e.Y8G("data",c.$implicit)("isParent",!0)("isFirst",0===l)("isLast",l===r-1)}}function L70(t,a){if(1&t&&e.DNE(0,g70,10,10,"div",3)(1,_70,1,4),2&t){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:1)}}function C70(t,a){if(1&t&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",16),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function z70(t,a){if(1&t&&(e.j41(0,"div",13)(1,"div",14)(2,"ul",15),e.Z7z(3,C70,2,1,"li",null,YN1),e.k0s()()()),2&t){const c=e.XpG(2),n=c.$implicit,l=c.$index;e.Y8G("id","accordion-body-"+l),e.BMQ("aria-labelledby","accordion-heading-"+l),e.R7$(3),e.Dyx(n.children)}}function M70(t,a){if(1&t&&e.DNE(0,z70,5,2,"div",13),2&t){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:-1)}}function x70(t,a){if(1&t&&(e.j41(0,"h2",2),e.DNE(1,L70,2,1),e.k0s(),e.DNE(2,M70,1,1)),2&t){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 b70(t,a){}let qN1=(()=>{class t{constructor(c,n,l,r){this.localStorage=c,this.eventMessage=n,this.api=l,this.cdr=r,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.aiSearchEnabled=h1.c.AI_SEARCH_ENABLED,this.aiFacets={},this.dynamicAiCategories=[],this.configuredAiCategories=[],this.faCircleCheck=D2.QRE,this.faCircle=vr1,this.destroy$=new S.B,this.categories=[],this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(m=>{const z=m.value;if("AddedFilter"!==m.type||this.isCheckedCategory(z))if("RemovedFilter"===m.type&&this.isCheckedCategory(z)){const F=this.checkedCategories.findIndex(I=>I===z.id);-1!==F&&(this.checkedCategories.splice(F,1),this.cdr.detectChanges())}else"AiSearchFacets"===m.type&&this.aiSearchEnabled?(this.aiFacets=m.value||{},this.updateAiFacetCategories(),this.cdr.detectChanges()):"AiSearchCleared"===m.type&&this.aiSearchEnabled&&(this.aiFacets={},this.categories=[...this.cloneCategories(this.dynamicAiCategories),...this.cloneCategories(this.configuredAiCategories)],S2(),this.cdr.detectChanges());else this.checkedCategories.push(z.id),this.cdr.detectChanges()})}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.selected=c.localStorage.getObject("selected_categories")||[];for(let n=0;nr.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let r=0;rz.id==n.id)){let z=r.findIndex(F=>F.id==n.id);r[z]=n,c[l].children=r}this.saveChildren(r,n)}}}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))}removeCategory(c){const n=this.selected.indexOf(c,0);if(n>-1){this.selected.splice(n,1),this.selectedCategories.emit(this.selected),this.localStorage.setObject("selected_categories",this.selected),this.eventMessage.emitRemovedFilter(c);const l=this.checkedCategories.findIndex(r=>r===c.id);-1!==l&&this.checkedCategories.splice(l,1)}}isRoot(c,n){const l=this.categories.indexOf(c,0);let r=this.categories[l].children;return null!=r&&r.length>0?r:[]}onClick(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const n=this.checkedCategories.findIndex(l=>l===c.id);-1!==n&&this.checkedCategories.splice(n,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c)}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let n=!1;if(null!=c)for(let l=0;ll.length>n)}updateAiFacetCategories(){const c=this.applyFacetCountsToDynamicCategories(this.dynamicAiCategories,this.aiFacets),n=this.applyFacetCountsToConfiguredCategories(this.configuredAiCategories,this.aiFacets);this.categories=[...c,...n],S2()}applyFacetCountsToDynamicCategories(c,n){return(c||[]).map(l=>{const r=this.getFacetDataForDynamicRoot(l,n);return this.applyDynamicCategoryCounts(l,r,n)})}getFacetDataForDynamicRoot(c,n){const l=[String(c.id||""),this.toAiFacetKey(c.name||""),String(c.name||"")].filter(Boolean);for(const r of l)if(n?.[r])return n[r];return{}}applyDynamicCategoryCounts(c,n,l){const r=(c.children||[]).map(z=>this.applyDynamicCategoryCounts(z,n,l)),m=this.resolveDynamicCategoryCount(c,n,l);return{...c,count:"number"==typeof m&&Number.isFinite(m)&&m>0?m:void 0,children:r}}resolveDynamicCategoryCount(c,n,l){const r=this.readCountFromFacetMap(n,c.name,c.id);if(Number.isFinite(r)&&r>0)return r;const m=l?.[String(c.id||"")]||l?.[String(c.name||"")];if(m&&"object"==typeof m){const F=this.sumFacetCounts(m);if(F>0)return F}const z=this.findGlobalFacetCount(c,l);return z>0?z:void 0}readCountFromFacetMap(c,n,l){if(!c)return;const r=void 0!==n?Number(c[n]):NaN;if(Number.isFinite(r)&&r>0)return r;const m=void 0!==l?Number(c[l]):NaN;return Number.isFinite(m)&&m>0?m:void 0}findGlobalFacetCount(c,n){let l=0;for(const r of Object.values(n||{})){const m=this.readCountFromFacetMap(r,c.name,c.id);m&&m>0&&(l+=m)}return l}sumFacetCounts(c){return Object.values(c||{}).reduce((n,l)=>{const r=Number(l);return Number.isFinite(r)&&r>0?n+r:n},0)}applyFacetCountsToConfiguredCategories(c,n){return(c||[]).map(l=>{const r=String(l.id||""),m=n?.[r]||{};return{...l,children:this.applyFacetCountsRecursively(l.children||[],m)}})}applyFacetCountsRecursively(c,n){return(c||[]).map(l=>{const r=this.applyFacetCountsRecursively(l.children||[],n),z=Number(n[l.name]);return{...l,count:Number.isFinite(z)&&z>0?z:void 0,children:r}})}cloneCategories(c){return(c||[]).map(n=>({...n,children:this.cloneCategories(n.children||[])}))}convertDynamicCategoriesToAiFilterCategories(c){return(c||[]).map(n=>{const l=this.toAiFacetKey(n.name||"");return this.convertDynamicCategoryNode(n,l,!0)})}convertDynamicCategoryNode(c,n,l){const r=l?n:`${n}::${c.name}`;return{...c,id:r,sanitizedId:l?this.sanitizeIdForCss(n):`${this.sanitizeIdForCss(n)}-${this.sanitizeIdForCss(c.name||"")}`,children:(c.children||[]).map(m=>this.convertDynamicCategoryNode(m,n,!1))}}loadCatalogCategories(){var c=this;return(0,b1.A)(function*(){if(c.categories=[],null!=c.catalogId&&""!==String(c.catalogId).trim()){const m=yield c.api.getCatalog(c.catalogId).catch(()=>null),z=Array.isArray(m?.category)?m.category:[];if(z.length>0){const F=yield Promise.all(z.map(function(){var I=(0,b1.A)(function*(J){if(!J?.id)return null;const d1=yield c.api.getCategoryById(J.id).catch(()=>null),i1=d1?.parentId?String(d1.parentId):"";return d1?.id&&!0===d1.isRoot&&!i1?c.loadCategorySubtree(d1):null});return function(J){return I.apply(this,arguments)}}()));return void(c.categories=F.filter(I=>null!==I))}}const l=yield c.api.getLaunchedCategories(),r=Array.isArray(l)?l:[];for(const m of r)c.findChildren(m,r)})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}formatFacetName(c){return c.split("_").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}convertFiltersToCategories(c){return c.map(n=>this.convertFilterToCategory(n,!0,n.name))}convertFilterToCategory(c,n=!1,l){const r=l||c.name,m=this.sanitizeIdForCss(c.name);return{id:n?c.name:`${r}::${c.name}`,name:n?this.formatFacetName(c.name):c.name,isRoot:n,children:(c.children||[]).map(z=>this.convertFilterToCategory(z,!1,r)),sanitizedId:n?m:`${this.sanitizeIdForCss(r)}-${m}`}}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(n){return new(n||t)(e.rXU(L2.s),e.rXU(H2),e.rXU(F2.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-categories-filter"]],inputs:{catalogId:"catalogId"},outputs:{selectedCategories:"selectedCategories"},decls:7,vars:4,consts:[[1,"text-2xl","dark:text-secondary-50","p-2"],["id","accordion-collapse","data-accordion","open"],[3,"id"],[3,"ngClass"],[1,"text-left","justify-start","text-wrap","break-words",3,"ngClass"],[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(n,l){1&n&&(e.j41(0,"h2",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",1),e.Z7z(4,x70,3,3,null,null,YN1,!1,b70,0,0),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,2,"CATEGORIES._categories")),e.R7$(3),e.Dyx(l.categories))},dependencies:[L.YU,J2.aY,p70,s1.D9]})}}return t})();const y70=["myProdImage"],rf1=(t,a)=>a.id,rG=(t,a)=>({"break-all":t,"break-words":a});function F70(t,a){if(1&t&&(e.j41(0,"a",8),e.nrm(1,"fa-icon",26),e.EFF(2," No level "),e.k0s()),2&t){const c=e.XpG();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 v70(t,a){1&t&&e.nrm(0,"img",27)}function k70(t,a){1&t&&e.nrm(0,"img",28)}function w70(t,a){1&t&&e.nrm(0,"img",29)}function S70(t,a){1&t&&e.nrm(0,"bae-badge",9),2&t&&e.Y8G("category",a.$implicit)}function N70(t,a){if(1&t&&(e.j41(0,"a",10),e.nrm(1,"fa-icon",30),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faEllipsis)}}function E70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CARD._add_cart")," ")}}function D70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",33),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.qSk(),e.j41(3,"svg",34),e.nrm(4,"path",35),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function T70(t,a){if(1&t&&e.DNE(0,E70,3,5,"button",31)(1,D70,5,3),2&t){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function R70(t,a){if(1&t&&(e.j41(0,"a",8),e.nrm(1,"fa-icon",26),e.EFF(2," No level "),e.k0s()),2&t){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 A70(t,a){1&t&&e.nrm(0,"img",27)}function I70(t,a){1&t&&e.nrm(0,"img",28)}function P70(t,a){1&t&&e.nrm(0,"img",29)}function $70(t,a){1&t&&e.nrm(0,"bae-badge",9),2&t&&e.Y8G("category",a.$implicit)}function j70(t,a){1&t&&e.nrm(0,"bae-badge",9),2&t&&e.Y8G("category",a.$implicit)}function O70(t,a){if(1&t&&e.Z7z(0,j70,1,1,"bae-badge",9,rf1),2&t){const c=e.XpG(2);e.Dyx(c.categoriesMore)}}function B70(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",65),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.loadMoreCategories())}),e.nrm(1,"fa-icon",30),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faEllipsis)}}function V70(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",65),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.closeCategories())}),e.nrm(1,"fa-icon",30),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faClose)}}function U70(t,a){if(1&t&&(e.j41(0,"li",57),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"CARD._id_number"),": ",c.prodSpec.productNumber,"")}}function H70(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",59),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"a",66),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&t){const c=e.XpG(2);e.Y8G("ngClass",e.l_i(5,rG,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 G70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",69),e.nrm(2,"path",70),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&t){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 Y70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",33),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",34),e.nrm(4,"path",35),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function q70(t,a){if(1&t&&e.DNE(0,G70,5,5,"button",67)(1,Y70,5,3),2&t){const c=e.XpG(2);e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function X70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",21)(1,"div",36),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",37)(3,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.hideModal())}),e.qSk(),e.j41(4,"svg",39),e.nrm(5,"path",40),e.k0s(),e.joV(),e.j41(6,"span",41),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",42)(10,"div",43)(11,"h5",44),e.EFF(12),e.k0s(),e.j41(13,"div",45)(14,"div",46),e.EFF(15),e.k0s()(),e.j41(16,"div",47),e.DNE(17,R70,3,3,"a",8)(18,A70,1,0)(19,I70,1,0)(20,P70,1,0),e.Z7z(21,$70,1,1,"bae-badge",9,rf1),e.DNE(23,O70,2,0)(24,B70,2,1,"a",48)(25,V70,2,1,"a",48),e.k0s()(),e.j41(26,"div",49),e.nrm(27,"div",3)(28,"img",50),e.k0s(),e.nrm(29,"hr",51),e.k0s(),e.j41(30,"div",52)(31,"div",53)(32,"h5",54),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nrm(35,"markdown",55),e.k0s(),e.j41(36,"div",53)(37,"h5",54),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"ul",56)(41,"li",57),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"li",58),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"li",57),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"li",57),e.EFF(51),e.nI1(52,"translate"),e.nI1(53,"date"),e.k0s(),e.j41(54,"li",57),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.DNE(57,U70,3,4,"li",57)(58,H70,5,8,"li",59),e.k0s()()(),e.nrm(59,"hr",60),e.j41(60,"div",61),e.DNE(61,q70,2,1),e.j41(62,"button",62),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",63),e.nrm(66,"path",64),e.k0s()()()()()()}if(2&t){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,rG,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,rG,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 W70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",22)(1,"div",71),e.qSk(),e.j41(2,"svg",72),e.nrm(3,"path",73),e.k0s(),e.joV(),e.j41(4,"div",74),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",75)(8,"button",76),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",77),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",41),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",78),e.nrm(16,"path",40),e.k0s()()()(),e.joV(),e.j41(17,"div",79),e.nrm(18,"div",80),e.k0s()()}2&t&&(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 J70(t,a){if(1&t&&e.nrm(0,"cart-card",23),2&t){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function Q70(t,a){if(1&t&&e.nrm(0,"error-message",24),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Z70(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-quote-request-modal",81),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&t){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 XN1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J){this.cdr=c,this.localStorage=n,this.eventMessage=l,this.api=r,this.priceService=m,this.cartService=z,this.accService=F,this.themeService=I,this.router=J,this.providerThemeName=h1.c.providerThemeName,this.quotesEnabled=h1.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=v5,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.check_logged=!1,this.faAtom=D2.RSf,this.faClose=D2.yYc,this.faEllipsis=D2.Dwc,this.PURCHASE_ENABLED=h1.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 M1.yU,this.destroy$=new S.B,this.productAlreadyInCart=!1,this.showQuoteModal=!1,this.customerId="",this.isCustomPrice=!1,this.isDrawerOpen=!1,this.JSON=JSON,this.targetModal=document.getElementById("details-modal"),this.modal=new rw1(this.targetModal),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(d1=>{if("CloseCartCard"===d1.type){if(this.hideCartSelection(),null!=d1.value){this.lastAddedProd=d1.value,this.toastVisibility=!0,this.cdr.detectChanges();let i1=document.getElementById("progress-bar"),N1=document.getElementById("toast-add-cart");null!=i1&&null!=N1&&(i1.style.width="0%",i1.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}"CloseQuoteRequest"===d1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==d1.type||"AddedCartItem"==d1.type)&&this.cartService.getShoppingCart().then(i1=>{this.productAlreadyInCart=!!i1.some(J1=>J1.id===this.productOff?.id)}),"CloseQuoteRequest"===d1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==d1.type||"AddedCartItem"==d1.type)&&this.cartService.getShoppingCart().then(i1=>{this.productAlreadyInCart=!!i1.some(J1=>J1.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.destroy$.next(),this.destroy$.complete()}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.themeSubscription=c.themeService.currentTheme$.subscribe(r=>{c.currentTheme=r});let n=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(n)&&n.expire-Y2().unix()-4>0){if(c.check_logged=!0,n.logged_as==n.id)c.customerId=n.partyId;else{let z=n.organizations.find(F=>F.id==n.logged_as);c.customerId=z.partyId}c.cdr.detectChanges();const m=(yield c.cartService.getShoppingCart()).some(z=>z.id===c.productOff?.id);c.productAlreadyInCart=m,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(r=>"Profile Picture"===r.name)??[];c.images=0==l.length?c.productOff?.attachment?.filter(r=>"Picture"===r.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.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(){S2()}addProductToCart(c,n){var l=this;return(0,b1.A)(function*(){if(!c||!c.productOfferingPrice)return;const r=l.createProdOptions(c,n);l.lastAddedProd=r;try{yield l.cartService.addItemShoppingCart(r),console.log("Update successful"),l.showToast(),l.eventMessage.emitAddedCartItem(c)}catch(m){l.handleError(m,"There was an error while adding item to the cart!")}l.cartSelection&&l.resetSelections(),l.cdr.detectChanges()})()}createProdOptions(c,n){return{id:c.id,name:c.name,image:this.getProductImage(),href:c.href,options:{characteristics:this.selected_chars,pricing:this.selected_price},termsAccepted:!n||this.selected_terms}}showToast(){this.toastVisibility=!0,this.cdr.detectChanges();const c=document.getElementById("progress-bar"),n=document.getElementById("toast-add-cart");c&&n&&(c.style.width="0%",c.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}handleError(c,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,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 n=this;return(0,b1.A)(function*(){void 0!==c&&(yield n.cartService.removeItemShoppingCart(c.id),console.log("removed"),n.eventMessage.emitRemovedCartItem(c)),n.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(n=>"License"===n.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 n=0;n{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(n){return new(n||t)(e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(F2.F),e.rXU(pe),e.rXU(r8),e.rXU(K0.O),e.rXU(Hk),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-off-card"]],viewQuery:function(n,l){if(1&n&&e.GBs(y70,5),2&n){let r;e.mGM(r=e.lsd())&&(l.myProdImage=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{productOff:"productOff",prodSpecInput:"prodSpecInput",cardId:"cardId"},decls:34,vars:28,consts:[[1,"flex","flex-col","w-full","h-full","bg-secondary-50","dark:bg-secondary-100","rounded-lg","dark:border-secondary-100","border-secondary-50","border"],[1,"rounded-t","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,"src"],[1,"flex-1","h-full","bg-cover","bg-right-bottom","bg-opacity-25","bg-blend-multiply","rounded-lg"],[1,"flex-1","h-full","px-5","py-5","bg-secondary-50/95","dark:bg-tertiary-100/95","rounded-b-lg"],["data-cy","searchOfferCategories",1,"flex","items-center","flex-wrap","overflow-y-hidden","overflow-x-hidden","align-middle"],[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"],["data-cy","searchShowAllCategories",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","mr-2"],[1,"cursor-pointer",3,"click"],["data-cy","searchOfferTitle",1,"text-xl","font-semibold","line-clamp-2","tracking-tight","text-primary-100","dark:text-white","text-wrap","break-words",3,"ngClass"],["data-cy","searchOfferDescription",1,"min-h-19","h-19","line-clamp-2","text-gray-600","dark:text-gray-400",3,"data"],[1,"flex","sticky","top-[100vh]","items-center","justify-center","align-items-bottom","rounded-lg","mt-4"],["data-cy","searchViewDetails","type","button",1,"flex","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"],["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,"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,"text-secondary-50","dark:text-primary-100",3,"icon"],["data-cy","addToCart","id","add-to-cart","type","button",1,"flex","align-items-bottom","text-white","cursor-pointer","bg-green-700","hover:bg-green-900","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-green-600","dark:hover:bg-green-700","dark:focus:ring-green-800",3,"disabled","ngClass"],["data-cy","addToCart","id","add-to-cart","type","button",1,"flex","align-items-bottom","text-white","cursor-pointer","bg-green-700","hover:bg-green-900","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-green-600","dark:hover:bg-green-700","dark:focus:ring-green-800",3,"click","disabled","ngClass"],["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,"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,"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"],["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,"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"],["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"],[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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(){return l.goToProductDetails(l.productOff)}),e.j41(2,"div",2),e.nrm(3,"div",3)(4,"img",4),e.k0s()(),e.j41(5,"div",5)(6,"div",6)(7,"div",7),e.DNE(8,F70,3,3,"a",8)(9,v70,1,0)(10,k70,1,0)(11,w70,1,0),e.Z7z(12,S70,1,1,"bae-badge",9,rf1),e.DNE(14,N70,2,1,"a",10),e.k0s(),e.j41(15,"a",11),e.bIt("click",function(){return l.goToProductDetails(l.productOff)}),e.j41(16,"h5",12),e.EFF(17),e.k0s()(),e.nrm(18,"markdown",13),e.j41(19,"div",14)(20,"button",15),e.bIt("click",function(m){return l.toggleDetailsModal(),m.stopPropagation()}),e.qSk(),e.j41(21,"svg",16)(22,"g",17),e.nrm(23,"path",18)(24,"path",19),e.k0s()(),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,T70,2,1),e.k0s()()()(),e.joV(),e.j41(28,"app-price-plan-drawer",20),e.bIt("closeDrawer",function(){return l.closeDrawer()}),e.k0s(),e.DNE(29,X70,67,58,"div",21)(30,W70,19,9,"div",22)(31,J70,1,4,"cart-card",23)(32,Q70,1,1,"error-message",24)(33,Z70,1,6,"app-quote-request-modal",25)),2&n&&(e.R7$(3),e.muq("background-image: url(",l.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(),e.xc7("background-image","url("+(null==l.currentTheme||null==l.currentTheme.assets?null:l.currentTheme.assets.cardDefaultBgUrl)+")"),e.R7$(3),e.vxM(8,"NL"==l.complianceLevel?8:"BL"==l.complianceLevel?9:"P"==l.complianceLevel?10:11),e.R7$(4),e.Dyx(l.categories),e.R7$(2),e.vxM(14,l.checkMoreCats?14:-1),e.R7$(2),e.Y8G("ngClass",e.l_i(25,rG,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$(),e.Y8G("data",null==l.productOff?null:l.productOff.description),e.R7$(7),e.SpI(" ",e.bMT(26,23,"CARD._details")," "),e.R7$(2),e.vxM(27,l.check_logged?27:-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(29,l.showModal?29:-1),e.R7$(),e.vxM(30,l.toastVisibility?30:-1),e.R7$(),e.vxM(31,l.cartSelection?31:-1),e.R7$(),e.vxM(32,l.showError?32:-1),e.R7$(),e.vxM(33,l.showQuoteModal?33:-1))},dependencies:[L.YU,J2.aY,$d1,H0,iG,of1,M0,PN1,L.vh,s1.D9],styles:[".fade[_ngcontent-%COMP%]{transition:all linear .5s;opacity:1}"]})}}return t})();const K70=(t,a)=>a.id,et0=(t,a)=>({"break-all":t,"break-words":a});function ct0(t,a){if(1&t){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&t){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 tt0(t,a){if(1&t&&e.nrm(0,"bae-categories-filter",28),2&t){const c=e.XpG();e.Y8G("catalogId",c.catalog.id)}}function nt0(t,a){1&t&&(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 lt0(t,a){if(1&t&&e.nrm(0,"bae-off-card",41),2&t){const n=a.$index;e.Y8G("productOff",a.$implicit)("cardId",n)}}function st0(t,a){1&t&&(e.j41(0,"div",42),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"DASHBOARD._not_found")))}function at0(t,a){if(1&t){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 ot0(t,a){if(1&t&&e.DNE(0,at0,5,0,"div",43),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function it0(t,a){1&t&&(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 rt0(t,a){if(1&t&&(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,lt0,1,2,"bae-off-card",41,K70,!1,st0,3,3,"div",42),e.k0s(),e.DNE(14,ot0,1,1)(15,it0,6,0)),2&t){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 dt0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.route=c,this.api=n,this.accService=l,this.priceService=r,this.cdr=m,this.eventMessage=z,this.localStorage=F,this.router=I,this.paginationService=J,this.state=d1,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=h1.c.PRODUCT_LIMIT,this.showDrawer=!1,this.searchEnabled=h1.c.SEARCH_ENABLED,this.showPanel=!1,this.feedback=!1,this.providerThemeName=h1.c.providerThemeName,this.logo="",this.destroy$=new S.B,this.navigatingToDetail=!1,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{("AddedFilter"===i1.type||"RemovedFilter"===i1.type)&&this.checkPanel()}),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{"CloseFeedback"===i1.type&&(this.feedback=!1)}),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{("AddedFilter"===i1.type||"RemovedFilter"===i1.type)&&this.getProducts(!1)})}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(S2(),c.checkPanel(),c.id=c.route.snapshot.paramMap.get("id"),c.api.getCatalog(c.id).then(l=>{c.catalog=l,c.cdr.detectChanges();const r=c.catalog.relatedParty.find(m=>m.role===h1.c.SELLER_ROLE);r.id.startsWith("urn:ngsi-ld:individual")?(c.accService.getUserInfo(r.id).then(m=>{console.log("info"),console.log(m),c.providerName=m.givenName;const z=m.partyCharacteristic.find(F=>"description"===F.name);c.providerDescription=z.value}),c.logo="assets/images/Dome-Marketplace.svg"):c.accService.getOrgInfo(r.id).then(m=>{if(console.log("info"),console.log(m),c.providerName=m.tradingName,Array.isArray(m?.partyCharacteristic)&&m.partyCharacteristic.length>0){const z=m.partyCharacteristic.find(I=>"description"===I.name);c.providerDescription=z?.value?z.value:"";const F=m.partyCharacteristic.find(I=>"logo"===I.name);c.logo=F?.value?F.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 n=c.localStorage.getObject("login_items");"{}"!=JSON.stringify(n)&&n.expire-Y2().unix()-4>0&&(c.feedback=!0),c.router.events.pipe((0,P1.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 n=0;n0,this.showPanel!=n&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.nX),e.rXU(F2.F),e.rXU(K0.O),e.rXU(pe),e.rXU(e.gRc),e.rXU(H2),e.rXU(L2.s),e.rXU(E2.Ix),e.rXU(A6),e.rXU(HN1))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-catalog"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,ct0,8,5,"div",15)(19,tt0,1,1),e.j41(20,"div",16)(21,"section",17)(22,"button",18),e.bIt("click",function(m){return l.showDrawer=!l.showDrawer,m.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,nt0,6,0,"div",21)(28,rt0,16,7),e.k0s()()()),2&n&&(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,et0,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:[L.YU,CE,H0,qN1,XN1,s1.D9]})}}return t})(),ft0=(()=>{class t{constructor(){this.apiUrl=this.buildProxyApiUrl(h1.c.BASE_URL,h1.c.AI_SEARCH_API_URL),this.apiKey=h1.c.AI_SEARCH_API_KEY,this.scoreThreshold=h1.c.AI_SEARCH_SCORE_THRESHOLD,this.answerMaxItems=h1.c.AI_SEARCH_ANSWER_MAX_ITEMS,this.profile=h1.c.AI_SEARCH_PROFILE}buildProxyApiUrl(c,n){return`${(c||"").replace(/\/+$/,"")}${this.normalizeAiPath(n)}`}normalizeAiPath(c){if(!c)return"/rag/";let n=c.trim();return n.startsWith("/")||(n=`/${n}`),n.endsWith("/")||(n=`${n}/`),n}search(c){var n=this;return(0,b1.A)(function*(l,r=[],m=!0,z=6,F=0){const J=JSON.stringify({profile:n.profile,text:l,score_threshold:n.scoreThreshold,filter:r,auto_filter:m,limit:z,offset:F});try{const i1=yield(yield fetch(`${n.apiUrl}search`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":n.apiKey},body:J})).text();return JSON.parse(i1)||{items:[],total_count:0,facets:{}}}catch(d1){return console.error("AI Search error:",d1),{items:[],total_count:0,facets:{}}}}).apply(this,arguments)}getAnswer(c){var n=this;return(0,b1.A)(function*(l,r=[]){if(!l.trim())return"";const m={profile:n.profile,text:l,score_threshold:n.scoreThreshold,filter:r,auto_filter:!1,limit:n.answerMaxItems};try{return(yield(yield fetch(`${n.apiUrl}answer`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":n.apiKey},body:JSON.stringify(m)})).json())?.answer||""}catch(z){return console.error("AI Answer error:",z),""}}).apply(this,arguments)}searchWithAnswer(c){var n=this;return(0,b1.A)(function*(l,r=[],m=6,z=0){const[F,I]=yield Promise.all([n.search(l,r,!0,m,z),n.getAnswer(l,r)]);return{searchResponse:F,answer:I}}).apply(this,arguments)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ut0=(t,a)=>a.id,WN1=()=>[];function mt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",21),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"button",22),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDrawer=!l.showDrawer)}),e.qSk(),e.j41(2,"svg",23),e.nrm(3,"path",24),e.k0s(),e.joV(),e.j41(4,"span",16),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"bae-categories-filter",25),e.k0s()}if(2&t){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.DFT_CATALOG)}}function pt0(t,a){if(1&t&&e.nrm(0,"bae-categories-filter",26),2&t){const c=e.XpG();e.Y8G("catalogId",c.DFT_CATALOG)}}function ht0(t,a){1&t&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",27),e.nrm(2,"path",28),e.k0s()())}function gt0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",15),e.nrm(1,"circle",29)(2,"path",30),e.k0s())}function _t0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",31),e.nrm(1,"path",32),e.k0s())}function Lt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",17)(1,"div",33)(2,"div",34),e.qSk(),e.j41(3,"svg",35),e.nrm(4,"path",28),e.k0s()(),e.joV(),e.j41(5,"div",36)(6,"h4",37),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",38),e.nrm(10,"markdown",39),e.k0s()(),e.j41(11,"button",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.aiAnswer="")}),e.qSk(),e.j41(12,"svg",41),e.nrm(13,"path",24),e.k0s()()()()}if(2&t){const c=e.XpG();e.R7$(7),e.JRh(e.bMT(8,2,"DASHBOARD._ai_answer")),e.R7$(3),e.Y8G("data",c.aiAnswer)}}function Ct0(t,a){1&t&&(e.j41(0,"div",18)(1,"div",42)(2,"div",43),e.qSk(),e.j41(3,"svg",44),e.nrm(4,"circle",29)(5,"path",30),e.k0s()(),e.joV(),e.j41(6,"span",45),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.JRh(e.bMT(8,1,"DASHBOARD._ai_thinking")))}function zt0(t,a){1&t&&(e.j41(0,"div",19),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47)(3,"path",48),e.k0s(),e.joV(),e.j41(4,"span",16),e.EFF(5,"Loading..."),e.k0s()())}function Mt0(t,a){if(1&t&&(e.j41(0,"div",49),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Lme(" ",c.aiTotalItems," ",e.bMT(2,2,"DASHBOARD._relevant_products")," ")}}function xt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,r=e.XpG(3);return e.Njj(r.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&t){const c=e.XpG().$index,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===n.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50 dark:border-gray-700 dark:bg-gray-700 dark:text-white":"text-gray-500 bg-white border-gray-300 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"),e.R7$(),e.SpI(" ",c+1," ")}}function bt0(t,a){1&t&&(e.j41(0,"li")(1,"span",59),e.EFF(2,"..."),e.k0s()())}function yt0(t,a){if(1&t&&e.DNE(0,xt0,3,2,"li")(1,bt0,3,0),2&t){const c=a.$index,n=e.XpG(3);e.vxM(0,c+1===n.aiCurrentPage||c+1===1||c+1===n.aiTotalPages||c+1>=n.aiCurrentPage-2&&c+1<=n.aiCurrentPage+2?0:c+1===n.aiCurrentPage-3||c+1===n.aiCurrentPage+3?1:-1)}}function Ft0(t,a){if(1&t){const c=e.RV6();e.j41(0,"nav",50)(1,"ul",55)(2,"li")(3,"button",56),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,yt0,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",57),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&t){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,WN1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function vt0(t,a){if(1&t&&e.nrm(0,"bae-off-card",52),2&t){const n=a.$index;e.Y8G("productOff",a.$implicit)("cardId",n)}}function kt0(t,a){1&t&&(e.j41(0,"div",53),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"DASHBOARD._not_found")))}function wt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,r=e.XpG(3);return e.Njj(r.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&t){const c=e.XpG().$index,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===n.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50 dark:border-gray-700 dark:bg-gray-700 dark:text-white":"text-gray-500 bg-white border-gray-300 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"),e.R7$(),e.SpI(" ",c+1," ")}}function St0(t,a){1&t&&(e.j41(0,"li")(1,"span",59),e.EFF(2,"..."),e.k0s()())}function Nt0(t,a){if(1&t&&e.DNE(0,wt0,3,2,"li")(1,St0,3,0),2&t){const c=a.$index,n=e.XpG(3);e.vxM(0,c+1===n.aiCurrentPage||c+1===1||c+1===n.aiTotalPages||c+1>=n.aiCurrentPage-2&&c+1<=n.aiCurrentPage+2?0:c+1===n.aiCurrentPage-3||c+1===n.aiCurrentPage+3?1:-1)}}function Et0(t,a){if(1&t){const c=e.RV6();e.j41(0,"nav",54)(1,"ul",55)(2,"li")(3,"button",56),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,Nt0,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",57),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&t){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,WN1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function Dt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",60)(1,"button",61),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",62),e.nrm(4,"path",63),e.k0s()()()}}function Tt0(t,a){if(1&t&&e.DNE(0,Dt0,5,0,"div",60),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function Rt0(t,a){1&t&&(e.j41(0,"div",64),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47)(3,"path",48),e.k0s(),e.joV(),e.j41(4,"span",16),e.EFF(5,"Loading..."),e.k0s()())}function At0(t,a){if(1&t&&e.DNE(0,Tt0,1,1)(1,Rt0,6,0),2&t){const c=e.XpG(2);e.vxM(0,c.loading_more?1:0)}}function It0(t,a){if(1&t&&(e.DNE(0,Mt0,3,4,"div",49)(1,Ft0,12,9,"nav",50),e.j41(2,"div",51),e.Z7z(3,vt0,1,2,"bae-off-card",52,ut0,!1,kt0,3,3,"div",53),e.k0s(),e.DNE(6,Et0,12,9,"nav",54)(7,At0,2,1)),2&t){const c=e.XpG();e.vxM(0,c.aiSearchEnabled&&c.aiTotalItems>0?0:-1),e.R7$(),e.vxM(1,c.aiSearchEnabled&&c.aiTotalPages>1?1:-1),e.R7$(2),e.Dyx(c.products),e.R7$(3),e.vxM(6,c.aiSearchEnabled&&c.aiTotalPages>1?6:-1),e.R7$(),e.vxM(7,c.aiSearchEnabled?-1:7)}}function Pt0(t,a){1&t&&e.nrm(0,"feedback-modal",20)}let $t0=(()=>{class t{get aiTotalPages(){return Math.ceil(this.aiTotalItems/this.aiPageSize)}constructor(c,n,l,r,m,z,F,I,J,d1){var i1=this;this.api=c,this.cdr=n,this.route=l,this.router=r,this.localStorage=m,this.eventMessage=z,this.loginService=F,this.paginationService=I,this.state=J,this.aiSearchService=d1,this.products=[],this.nextProducts=[],this.loading=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.DFT_CATALOG=h1.c.DFT_CATALOG_ID,this.showDrawer=!1,this.searchEnabled=h1.c.SEARCH_ENABLED,this.keywords=void 0,this.searchField=new p.MJ,this.showPanel=!1,this.feedback=!1,this.providerThemeName=h1.c.providerThemeName,this.navigatingToDetail=!1,this.destroy$=new S.B,this.aiSearchEnabled=h1.c.AI_SEARCH_ENABLED,this.aiAnswer="",this.aiSearchLoading=!1,this.aiTotalItems=0,this.aiCurrentPage=1,this.aiPageSize=h1.c.PRODUCT_LIMIT,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(function(){var N1=(0,b1.A)(function*(J1){("AddedFilter"===J1.type||"RemovedFilter"===J1.type)&&(i1.aiSearchEnabled?yield i1.runInitialAiSearch():yield i1.getProducts(!1),i1.checkPanel())});return function(J1){return N1.apply(this,arguments)}}()),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(N1=>{"CloseFeedback"===N1.type&&(this.feedback=!1)})}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(c.router.events.pipe((0,P1.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.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,void c.searchField.setValue(c.keywords);c.aiSearchEnabled?c.keywords?yield c.runAiSearch():yield c.runInitialAiSearch():yield c.getProducts(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",function(){var l=(0,b1.A)(function*(r){""==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(r){return l.apply(this,arguments)}}()),setTimeout(()=>{const l=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(l)&&l.expire-Y2().unix()-4>0&&h1.c.feedbackCampaign){let r=c.localStorage.getObject("feedback");if(console.log("---------------------- feedbackInfo"),console.log(r),"{}"===JSON.stringify(r)){let m={expire:h1.c?.feedbackCampaignExpiration??Y2().add(1,"week").unix()};c.localStorage.setObject("feedback",m),c.feedback=!0}else{if("expire"in r){if((r?.expire??0)-Y2().unix()-4<0&&h1.c.feedbackCampaignExpiration-Y2().unix()-4>0){let z={expire:h1.c?.feedbackCampaignExpiration};"approval"in r&&(z.approval=r.approval),c.localStorage.setObject("feedback",z)}}else{let m={expire:h1.c?.feedbackCampaignExpiration};"approval"in r&&(m.approval=r.approval),c.localStorage.setObject("feedback",m)}c.feedback=!("approval"in r)}}})})()}onClick(){1==this.showDrawer&&(this.showDrawer=!1,this.cdr.detectChanges())}ngOnDestroy(){if(this.navigatingToDetail)return;let c=this.localStorage.getObject("selected_categories")||[];for(let n=0;n0,this.showPanel!=n&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}onUnifiedSearch(c){var n=this;return(0,b1.A)(function*(){c.preventDefault(),n.aiSearchEnabled&&n.searchField.value?.trim()?(n.keywords=n.searchField.value,n.updateQueryParams(n.keywords),yield n.runAiSearch()):n.aiSearchEnabled?(n.keywords=void 0,n.updateQueryParams(n.keywords),n.aiAnswer="",n.eventMessage.emitAiSearchCleared(),yield n.runInitialAiSearch()):(n.keywords=n.searchField.value||void 0,n.updateQueryParams(n.keywords),n.aiAnswer="",n.eventMessage.emitAiSearchCleared(),yield n.getProducts(!1))})()}runInitialAiSearch(){var c=this;return(0,b1.A)(function*(){c.loading=!0,c.aiCurrentPage=1,c.keywords||c.searchField.reset(),c.cdr.detectChanges();try{const n=c.localStorage.getObject("selected_categories")||[],l=c.convertCategoriesToAiFilters(n),r=yield c.aiSearchService.search("",l,!1,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(r.items||[]),c.nextProducts=[],c.aiTotalItems=r.total_count,c.page_check=!1,r.facets&&c.eventMessage.emitAiSearchFacets(r.facets),c.state.save({products:c.products,nextProducts:c.nextProducts,page:c.page,page_check:c.page_check,keywords:c.keywords})}catch(n){console.error("Initial AI Search error:",n),yield c.getProducts(!1)}finally{c.loading=!1,c.cdr.detectChanges()}})()}runAiSearch(){var c=this;return(0,b1.A)(function*(){const n=c.searchField.value?.trim();if(n){c.aiSearchLoading=!0,c.aiAnswer="",c.loading=!0,c.aiCurrentPage=1,c.cdr.detectChanges();try{const l=c.localStorage.getObject("selected_categories")||[],r=c.convertCategoriesToAiFilters(l),{searchResponse:m,answer:z}=yield c.aiSearchService.searchWithAnswer(n,r,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(m.items||[]),c.aiTotalItems=m.total_count,m.facets&&c.eventMessage.emitAiSearchFacets(m.facets),c.nextProducts=[],c.page_check=!1,c.aiAnswer=z,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 n=this;return(0,b1.A)(function*(){n.aiCurrentPage=c,n.loading=!0,n.cdr.detectChanges();try{const l=n.localStorage.getObject("selected_categories")||[],r=n.convertCategoriesToAiFilters(l),m=(n.aiCurrentPage-1)*n.aiPageSize,z=yield n.aiSearchService.search(n.keywords||"",r,!1,n.aiPageSize,m);n.products=n.mapAiSearchToProducts(z.items||[]),n.aiTotalItems=z.total_count,z.facets&&n.eventMessage.emitAiSearchFacets(z.facets)}catch(l){console.error("AI Search page change error:",l)}finally{n.loading=!1,n.cdr.detectChanges()}})()}convertCategoriesToAiFilters(c){if(!Array.isArray(c))return[];const n=new Map;return c.forEach(l=>{let r,m;if(l.id?.includes("::")){const z=l.id.split("::");r=z[0],m=z.slice(1).join("::")}else if(l.id?.startsWith("ai-facet-")){const z=l.id.split("-");if(!(z.length>=4))return;z.shift(),z.shift(),r=z.shift()||"",m=z.join("-")}else r=l.id||"",m=l.name||"";n.has(r)||n.set(r,[]),n.get(r).push(m)}),Array.from(n.entries()).map(([l,r])=>({key:l,value:r}))}mapAiSearchToProducts(c){return c.map(n=>({id:n.id,href:n.id,name:n.offeringName||n.specificationName,description:n.offeringDescription||n.specificationDescription,lifecycleStatus:n.lifecycleStatus||"Launched",category:n.categories||[],attachment:n.imageUrl?[{id:"ai-image",name:"Profile Picture",attachmentType:"Picture",url:n.imageUrl,mimeType:"image/png"}]:[],productSpecification:{id:n.id,name:n.specificationName,description:n.specificationDescription,brand:n.brand,productSpecCharacteristic:n.complianceProfiles?[{name:"complianceProfiles",productSpecCharacteristicValue:n.complianceProfiles.map(l=>({value:l.name}))}]:[]},productOfferingPrice:[],_aiSearchData:n}))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(F2.F),e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(L2.s),e.rXU(H2),e.rXU(x9),e.rXU(A6),e.rXU(HN1),e.rXU(ft0))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-search"]],hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:29,vars:20,consts:[[1,"fixed","z-30","w-full","top-[72px]","transition","transform","opacity-0","duration-200",3,"ngClass"],[1,"flex","p-5",3,"ngClass"],["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","flex-col"],[1,"flex","items-center","mb-4"],["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"],[1,"w-full",3,"ngSubmit"],[1,"flex"],[1,"relative","w-full"],[1,"absolute","inset-y-0","start-0","flex","items-center","ps-3","pointer-events-none"],["type","search","id","search",1,"block","p-2.5","w-full","text-sm","text-gray-900","bg-gray-50","rounded-lg","dark:bg-secondary-500","dark:placeholder-gray-400","dark:text-white",3,"keydown.enter","formControl","ngClass","placeholder"],["type","submit",1,"absolute","top-0","end-0","p-2.5","text-sm","font-medium","h-full","text-white","rounded-e-lg","border","focus:ring-4","focus:outline-none",3,"ngClass"],["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"],[1,"w-full","mt-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","mt-4","p-4","bg-gray-50","dark:bg-gray-800","border","border-gray-200","dark:border-gray-700","rounded-lg"],["role","status",1,"h-full","flex","justify-center","align-middle"],["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"],["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"],[3,"catalogId"],[1,"hidden","md:block","w-1/5","md:w-2/4","lg:w-1/4",3,"catalogId"],["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-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,"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"],[1,"flex","items-center","gap-3"],[1,"flex-shrink-0"],["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"],["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,"md:pl-5","px-2","pb-2","text-sm","text-gray-500","dark:text-gray-400"],["aria-label","Pagination",1,"flex","justify-center","pb-4"],[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"],["data-cy","searchNoOffersFound",1,"min-h-19","dark:text-gray-600","text-center"],["aria-label","Pagination",1,"flex","justify-center","pt-4","pb-12"],[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","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white","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","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white","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","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400"],[1,"flex","pb-12","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",1,"w-full","h-full","flex","justify-center","align-middle"]],template:function(n,l){1&n&&(e.nrm(0,"bae-categories-panel",0),e.j41(1,"section",1),e.DNE(2,mt0,8,5,"div",2)(3,pt0,1,1),e.j41(4,"div",3)(5,"section",4)(6,"div",5)(7,"button",6),e.bIt("click",function(m){return l.showDrawer=!l.showDrawer,m.stopPropagation()}),e.qSk(),e.j41(8,"svg",7),e.nrm(9,"path",8),e.k0s(),e.EFF(10," Categories "),e.k0s()(),e.joV(),e.j41(11,"form",9),e.bIt("ngSubmit",function(m){return l.onUnifiedSearch(m)}),e.j41(12,"div",10)(13,"div",11),e.DNE(14,ht0,3,0,"div",12),e.j41(15,"input",13),e.nI1(16,"translate"),e.nI1(17,"translate"),e.bIt("keydown.enter",function(m){return l.onUnifiedSearch(m)}),e.k0s(),e.j41(18,"button",14),e.DNE(19,gt0,3,0,":svg:svg",15)(20,_t0,2,0),e.j41(21,"span",16),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()(),e.DNE(24,Lt0,14,4,"div",17)(25,Ct0,9,3,"div",18),e.k0s(),e.DNE(26,zt0,6,0,"div",19)(27,It0,8,5),e.k0s()(),e.DNE(28,Pt0,1,0,"feedback-modal",20)),2&n&&(e.Y8G("ngClass",l.showPanel?"opacity-100":"hidden"),e.R7$(),e.Y8G("ngClass",l.showPanel?"pt-[75px]":""),e.R7$(),e.vxM(2,l.showDrawer?2:3),e.R7$(12),e.vxM(14,l.aiSearchEnabled?14:-1),e.R7$(),e.FS9("placeholder",l.aiSearchEnabled?e.bMT(16,14,"DASHBOARD._ai_search_ph"):e.bMT(17,16,"DASHBOARD._search_ph")),e.Y8G("formControl",l.searchField)("ngClass",l.aiSearchEnabled?"ps-10 border-purple-300 focus:ring-purple-500 focus:border-purple-500 dark:border-purple-600 dark:focus:border-purple-500":"border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:border-s-gray-700 dark:border-gray-600 dark:focus:border-blue-500"),e.R7$(3),e.Y8G("ngClass",l.aiSearchEnabled?"bg-purple-600 border-purple-600 hover:bg-purple-700 focus:ring-purple-300 dark:bg-purple-500 dark:hover:bg-purple-600 dark:focus:ring-purple-800":"bg-primary-100 border-secondary-100 hover:bg-primary-50 focus:ring-blue-300 dark:border-secondary-400"),e.R7$(),e.vxM(19,l.aiSearchLoading?19:20),e.R7$(3),e.JRh(e.bMT(23,18,"DASHBOARD._search")),e.R7$(2),e.vxM(24,l.aiSearchEnabled&&l.aiAnswer?24:-1),e.R7$(),e.vxM(25,l.aiSearchEnabled&&l.aiSearchLoading?25:-1),e.R7$(),e.vxM(26,l.loading?26:27),e.R7$(2),e.vxM(28,l.feedback?28:-1))},dependencies:[L.YU,p.qT,p.me,p.BC,p.cb,p.cV,p.l_,SH,CE,H0,qN1,XN1,s1.D9]})}}return t})();function jt0(t,a){1&t&&e.nrm(0,"seller-catalogs")}function Ot0(t,a){1&t&&e.nrm(0,"seller-product-spec")}function Bt0(t,a){1&t&&e.nrm(0,"seller-service-spec")}function Vt0(t,a){1&t&&e.nrm(0,"seller-resource-spec")}function Ut0(t,a){1&t&&e.nrm(0,"seller-offer")}function Ht0(t,a){1&t&&e.nrm(0,"create-product-spec")}function Gt0(t,a){1&t&&e.nrm(0,"create-service-spec")}function Yt0(t,a){1&t&&e.nrm(0,"create-resource-spec")}function qt0(t,a){1&t&&e.nrm(0,"create-offer")}function Xt0(t,a){1&t&&e.nrm(0,"create-catalog")}function Wt0(t,a){if(1&t&&e.nrm(0,"update-product-spec",21),2&t){const c=e.XpG();e.Y8G("prod",c.prod_to_update)}}function Jt0(t,a){if(1&t&&e.nrm(0,"update-service-spec",22),2&t){const c=e.XpG();e.Y8G("serv",c.serv_to_update)}}function Qt0(t,a){if(1&t&&e.nrm(0,"update-resource-spec",23),2&t){const c=e.XpG();e.Y8G("res",c.res_to_update)}}function Zt0(t,a){if(1&t&&e.nrm(0,"update-offer",24),2&t){const c=e.XpG();e.Y8G("offer",c.offer_to_update)}}function Kt0(t,a){if(1&t&&e.nrm(0,"update-catalog",25),2&t){const c=e.XpG();e.Y8G("cat",c.catalog_to_update)}}function e90(t,a){if(1&t&&e.nrm(0,"app-custom-offer",26),2&t){const c=e.XpG();e.Y8G("offer",c.offer_to_update)("partyId",c.custom_offer_partyId)}}function c90(t,a){1&t&&e.nrm(0,"feedback-modal",27)}let JN1=(()=>{class t{constructor(c,n,l,r,m,z){this.localStorage=c,this.cdr=n,this.eventMessage=l,this.router=r,this.quoteService=m,this.api=z,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.feedback=!1,this.isDomeTheme="DOME"===(h1.c.providerThemeName||"").toUpperCase(),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,P1.Q)(this.destroy$)).subscribe(F=>{if("SellerProductSpec"===F.type&&(1==F.value&&this.isDomeTheme&&"{}"!=JSON.stringify(this.userInfo)&&this.userInfo.expire-Y2().unix()-4>0&&(this.feedback=!0),this.goToProdSpec()),"SellerCreateProductSpec"===F.type&&1==F.value&&this.goToCreateProdSpec(),"SellerServiceSpec"===F.type&&1==F.value&&this.goToServiceSpec(),"SellerCreateServiceSpec"===F.type&&1==F.value&&this.goToCreateServSpec(),"SellerResourceSpec"===F.type&&1==F.value&&this.goToResourceSpec(),"SellerCreateResourceSpec"===F.type&&1==F.value&&this.goToCreateResSpec(),"SellerOffer"===F.type&&1==F.value&&this.goToOffers(),"SellerCatalog"==F.type&&1==F.value&&this.goToCatalogs(),"SellerCreateOffer"===F.type&&1==F.value&&this.goToCreateOffer(),"SellerCatalogCreate"===F.type&&1==F.value&&this.goToCreateCatalog(),"SellerUpdateProductSpec"===F.type&&(this.prod_to_update=F.value,this.goToUpdateProdSpec()),"SellerUpdateServiceSpec"===F.type&&(this.serv_to_update=F.value,this.goToUpdateServiceSpec()),"SellerUpdateResourceSpec"===F.type&&(this.res_to_update=F.value,this.goToUpdateResourceSpec()),"SellerUpdateOffer"===F.type&&(this.offer_to_update=F.value,this.goToUpdateOffer()),"SellerCreateCustomOffer"===F.type){const I=F.value;this.offer_to_update=I.offer,this.custom_offer_partyId=I.partyId||null,this.goToCreateCustomOffer()}"SellerCatalogUpdate"===F.type&&(this.catalog_to_update=F.value,this.goToUpdateCatalog()),"CloseFeedback"===F.type&&(this.feedback=!1)})}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.userInfo=c.localStorage.getObject("login_items");const n=localStorage.getItem("activeSection");console.log(n),n&&(c.activeSection=n),n&&c.sectionActions[n]&&c.sectionActions[n].call(c);const l=history.state;if(console.log("Checking state"),console.log(l),l&&l.quoteId){const r=yield wE(c.quoteService.getQuoteById(l.quoteId)),m=r?.quoteItem?.[0]?.productOffering?.id;let z=null;m&&(z=yield c.api.getProductById(m));const F=r?.relatedParty?.find(I=>I.role.toLowerCase()===h1.c.BUYER_ROLE.toLowerCase());c.eventMessage.emitSellerCreateCustomOffer(z,F?.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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(r,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(m,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(e.gRc),e.rXU(H2),e.rXU(E2.Ix),e.rXU(X2.K),e.rXU(F2.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-seller-offerings"]],decls:74,vars:56,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"],["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","recommendation",1,"fixed","inset-0","flex","items-center","justify-center","z-40"]],template:function(n,l){1&n&&(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,jt0,1,0,"seller-catalogs")(58,Ot0,1,0,"seller-product-spec")(59,Bt0,1,0,"seller-service-spec")(60,Vt0,1,0,"seller-resource-spec")(61,Ut0,1,0,"seller-offer")(62,Ht0,1,0,"create-product-spec")(63,Gt0,1,0,"create-service-spec")(64,Yt0,1,0,"create-resource-spec")(65,qt0,1,0,"create-offer")(66,Xt0,1,0,"create-catalog")(67,Wt0,1,1,"update-product-spec",21)(68,Jt0,1,1,"update-service-spec",22)(69,Qt0,1,1,"update-resource-spec",23)(70,Zt0,1,1,"update-offer",24)(71,Kt0,1,1,"update-catalog",25)(72,e90,1,2,"app-custom-offer",26),e.k0s()(),e.DNE(73,c90,1,0,"feedback-modal",27)),2&n&&(e.R7$(3),e.JRh(e.bMT(4,30,"OFFERINGS._my_offerings")),e.R7$(5),e.JRh(e.bMT(9,32,"OFFERINGS._my_offerings")),e.R7$(6),e.SpI(" ",e.bMT(15,34,"OFFERINGS._offerings")," "),e.R7$(6),e.JRh(e.bMT(21,36,"OFFERINGS._catalogs")),e.R7$(4),e.JRh(e.bMT(25,38,"OFFERINGS._offers")),e.R7$(4),e.JRh(e.bMT(29,40,"OFFERINGS._prod_spec")),e.R7$(4),e.JRh(e.bMT(33,42,"OFFERINGS._serv_spec")),e.R7$(4),e.JRh(e.bMT(37,44,"OFFERINGS._res_spec")),e.R7$(6),e.SpI(" ",e.bMT(43,46,"OFFERINGS._catalogs")," "),e.R7$(3),e.SpI(" ",e.bMT(46,48,"OFFERINGS._offers")," "),e.R7$(4),e.SpI(" ",e.bMT(50,50,"OFFERINGS._prod_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(53,52,"OFFERINGS._serv_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(56,54,"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),e.R7$(),e.vxM(73,l.feedback?73:-1))}})}}return t})();const QN1=(t,a)=>a.id,t90=(t,a)=>a.value;function n90(t,a){1&t&&(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 l90(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",35),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(3);return e.Njj(r.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&t){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 s90(t,a){if(1&t&&(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,l90,7,7,"tr",34,QN1),e.k0s()()()),2&t){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 a90(t,a){1&t&&(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&t&&(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 o90(t,a){if(1&t&&e.DNE(0,s90,16,9,"div",30)(1,a90,9,6),2&t){const c=e.XpG();e.vxM(0,c.billing_accounts.length>0?0:1)}}function i90(t,a){if(1&t&&(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&t){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 r90(t,a){if(1&t&&(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&t){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 d90(t,a){if(1&t&&(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&t){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 f90(t,a){if(1&t&&(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&t){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 u90(t,a){if(1&t&&(e.j41(0,"h5",50),e.EFF(1,"Selected characteristics:"),e.k0s(),e.j41(2,"div",61)(3,"div",62),e.Z7z(4,f90,7,2,"div",63,t90),e.k0s()()),2&t){const c=e.XpG().$implicit;e.R7$(4),e.Dyx(c.options.characteristics)}}function m90(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",42),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.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,i90,12,5,"div",52)(15,r90,12,5)(16,d90,10,4),e.k0s(),e.DNE(17,u90,6,0),e.k0s()}if(2&t){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 dG{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c,n,l,r,m,z,F){this.eventMessage=a,this.api=c,this.account=n,this.cartService=l,this.cdr=r,this.localStorage=m,this.orderService=z,this.router=F,this.faCartShopping=AL,this.TAX_RATE=h1.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(n=>n.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("------------------"),S2()}),this.account.getBillingAccount().then(c=>{for(let n=0;na.buildProductPayload(r)),n=a.buildProductOrder(c);console.log("--- order ---"),console.log(n);const l=yield wE(a.orderService.postProductOrder(n));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:h1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBilling.id,href:this.selectedBilling.id},orderDate:Y2().utc(),notificationContact:this.selectedBilling.email}}emptyShoppingCart(){var a=this;return(0,b1.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||dG)(e.rXU(H2),e.rXU(F2.F),e.rXU(K0.O),e.rXU(r8),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(w8),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:dG,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,n){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 n.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,n90,6,0,"div",21)(33,o90,2,1),e.k0s(),e.j41(34,"div",17)(35,"h5",20),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.Z7z(38,m90,18,6,null,null,QN1),e.k0s()(),e.j41(40,"div",22)(41,"button",23),e.bIt("click",function(){return n.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,n.loading?32:33),e.R7$(4),e.SpI("",e.bMT(37,18,"SHOPPING_CART._cart"),":"),e.R7$(2),e.Dyx(n.items),e.R7$(4),e.SpI(" ",e.bMT(43,20,"SHOPPING_CART._buy")," "))},dependencies:[L.YU,p.qT,p.cb,p.cV,s1.D9]})}}function p90(t,a){if(1&t&&(e.j41(0,"a",4),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.Y8G("href",c.node.link,e.B4B),e.R7$(),e.SpI(" ",c.node.text," ")}}function h90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2);e.SpI(" ",c.node.text," ")}}function g90(t,a){if(1&t&&(e.j41(0,"span"),e.DNE(1,p90,2,2,"a",4)(2,h90,1,1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.node.link?1:2)}}function _90(t,a){1&t&&e.nrm(0,"app-revenue-report",5),2&t&&e.Y8G("node",a.$implicit)}function L90(t,a){if(1&t&&(e.j41(0,"div",3),e.Z7z(1,_90,1,1,"app-revenue-report",5,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.node.items)}}let C90=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"h3",2),e.EFF(3),e.k0s(),e.DNE(4,g90,3,1,"span"),e.k0s(),e.DNE(5,L90,3,0,"div",3),e.k0s()),2&n&&(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:[t]})}}return t})();class Zy{static{this.BASE_URL=h1.c.BASE_URL}static{this.PAYMENT_URL=h1.c.PAYMENT_URL}constructor(a,c){this.http=a,this.localStorage=c}getRevenue(a){return(0,U2.s)(this.http.get(`${Zy.BASE_URL}${Zy.PAYMENT_URL}/dashboard/${a}`))}static{this.\u0275fac=function(c){return new(c||Zy)(e.KVO(g.Qq),e.KVO(L2.s))}}static{this.\u0275prov=e.jDH({token:Zy,factory:Zy.\u0275fac,providedIn:"root"})}}function z90(t,a){1&t&&(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 M90(t,a){if(1&t&&(e.j41(0,"div",8),e.nrm(1,"app-revenue-report",9),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.Y8G("node",c)}}function x90(t,a){if(1&t&&e.Z7z(0,M90,2,1,"div",8,e.fX1),2&t){const c=e.XpG();e.Dyx(c.report)}}function b90(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let ZN1=(()=>{class t{constructor(c,n){this.localStorage=c,this.revenueService=n,this.loading=!1,this.errorMessage="",this.showError=!1,this.partyId="",this.report=[]}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.loading=!0,c.initPartyInfo();try{let n=yield c.revenueService.getRevenue(c.partyId);c.loading=!1,console.log("------"),console.log(n),c.report=n}catch(n){c.handleError(n,"There was an error accessing revenue sharing's data, please contact with an administrator."),c.loading=!1}finally{c.loading=!1}})()}handleError(c,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(Zy))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Provider revenue sharing"),e.k0s(),e.DNE(3,z90,6,0,"div",2)(4,x90,2,0),e.k0s(),e.DNE(5,b90,9,1,"div",3)),2&n&&(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,L.MD,C90]})}}return t})();const y90=["imgURL"],KN1=(t,a)=>a.code,F90=(t,a,c,n)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":t,"bg-gray-50 dark:bg-secondary-300":a,"border-red-600":c,"border-gray-300 dark:border-secondary-200":n}),fG=(t,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":t,"bg-gray-50 dark:bg-secondary-300":a}),v90=(t,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed pointer-events-none":t,"bg-gray-50 dark:bg-secondary-300":a}),eE1=(t,a)=>({"break-all":t,"break-words":a}),k90=()=>({position:"relative",left:"200px",top:"-500px"});function w90(t,a){1&t&&(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 S90(t,a){1&t&&(e.j41(0,"p",16)(1,"span",29),e.EFF(2,"This field is mandatory."),e.k0s()())}function N90(t,a){if(1&t&&(e.j41(0,"option",30),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function E90(t,a){if(1&t&&(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&t){const c=e.XpG(2);e.R7$(3),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(6,fG,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(9,fG,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(12,fG,c.isReadOnly,!c.isReadOnly))}}function D90(t,a){if(1&t&&(e.j41(0,"div",21)(1,"div",35),e.nrm(2,"markdown",36),e.k0s()()),2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(2,eE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function T90(t,a){if(1&t&&e.nrm(0,"markdown",36),2&t){const c=e.XpG(3);e.Y8G("ngClass",e.l_i(2,eE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function R90(t,a){1&t&&e.nrm(0,"textarea",67)}function A90(t,a){if(1&t){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 r=e.XpG(3);return e.Njj(r.addEmoji(l))}),e.k0s()}2&t&&(e.Aen(e.lJ4(3,k90)),e.Y8G("darkMode",!1))}function I90(t,a){if(1&t){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 r=e.XpG(2);return r.showEmoji=!r.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,T90,1,5,"markdown",36)(69,R90,1,0)(70,A90,1,4,"emoji-mart",66),e.k0s()()}if(2&t){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 P90(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function $90(t,a){if(1&t){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&t&&(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 j90(t,a){1&t&&(e.j41(0,"div",100),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",101),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function O90(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",84)(1,"ngx-file-drop",85),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(2,$90,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,j90,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&t){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 B90(t,a){if(1&t&&(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,P90,5,1,"div",79)(17,O90,14,8)),2&t){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 V90(t,a){1&t&&(e.j41(0,"th",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._actions")," "))}function U90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.emailAddress," ")}}function H90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SjE(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince,", ",c.characteristic.country," ")}}function G90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.Lme(" (",c.characteristic.contactType,") ",c.characteristic.phoneNumber," ")}}function Y90(t,a){if(1&t){const c=e.RV6();e.j41(0,"td",104)(1,"button",105),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.removeMedium(l))}),e.qSk(),e.j41(5,"svg",106),e.nrm(6,"path",109),e.k0s()()()}}function q90(t,a){if(1&t&&(e.j41(0,"tr",27)(1,"td",102),e.EFF(2),e.k0s(),e.j41(3,"td",103),e.DNE(4,U90,1,1)(5,H90,1,5)(6,G90,1,2),e.k0s(),e.DNE(7,Y90,7,0,"td",104),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.vxM(4,"Email"==c.mediumType?4:"PostalAddress"==c.mediumType?5:6),e.R7$(3),e.vxM(7,n.isReadOnly?-1:7)}}function X90(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}function W90(t,a){if(1&t&&(e.j41(0,"div",31)(1,"label",125),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",126),e.k0s()),2&t){let c;const n=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"PROFILE._email")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("email"))?null:c.invalid)&&""!=n.mediumForm.value.email||1==(null==(c=n.mediumForm.get("email"))?null:c.touched)&&""==n.mediumForm.value.email?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function J90(t,a){if(1&t&&(e.j41(0,"div")(1,"label",127),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",128),e.k0s(),e.j41(5,"div")(6,"label",129),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",130),e.k0s(),e.j41(10,"div")(11,"label",131),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",132),e.k0s(),e.j41(15,"div")(16,"label",133),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",134),e.k0s(),e.j41(20,"div",31)(21,"label",135),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",136),e.k0s()),2&t){let c,n,l,r,m;const z=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,10,"PROFILE._country")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=z.mediumForm.get("country"))?null:c.invalid)&&""!=z.mediumForm.value.country||null!=(c=z.mediumForm.get("country"))&&c.touched&&""==z.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==(n=z.mediumForm.get("city"))?null:n.invalid)&&""!=z.mediumForm.value.city||null!=(n=z.mediumForm.get("city"))&&n.touched&&""==z.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=z.mediumForm.get("stateOrProvince"))?null:l.invalid)&&""!=z.mediumForm.value.stateOrProvince||null!=(l=z.mediumForm.get("stateOrProvince"))&&l.touched&&""==z.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==(r=z.mediumForm.get("postCode"))?null:r.invalid)&&""!=z.mediumForm.value.postCode||null!=(r=z.mediumForm.get("postCode"))&&r.touched&&""==z.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==(m=z.mediumForm.get("street"))?null:m.invalid)&&""!=z.mediumForm.value.street||null!=(m=z.mediumForm.get("street"))&&m.touched&&""==z.mediumForm.value.street?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Q90(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",155),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.selectPrefix(l))}),e.j41(1,"div",156),e.EFF(2),e.k0s()()}if(2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function Z90(t,a){if(1&t&&(e.j41(0,"div",151)(1,"ul",153)(2,"li"),e.Z7z(3,Q90,3,1,"button",154,KN1),e.k0s()()()),2&t){const c=e.XpG(4);e.R7$(3),e.Dyx(c.prefixes)}}function K90(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",137)(1,"label",138),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",139)(5,"option",140),e.EFF(6,"Mobile"),e.k0s(),e.j41(7,"option",141),e.EFF(8,"Landline"),e.k0s(),e.j41(9,"option",142),e.EFF(10,"Office"),e.k0s(),e.j41(11,"option",143),e.EFF(12,"Home"),e.k0s(),e.j41(13,"option",144),e.EFF(14,"Other"),e.k0s()()(),e.j41(15,"div",137)(16,"label",145),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"div",146)(20,"div",147)(21,"button",148),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(22),e.qSk(),e.j41(23,"svg",149),e.nrm(24,"path",150),e.k0s()(),e.DNE(25,Z90,5,0,"div",151),e.joV(),e.nrm(26,"input",152),e.k0s()()()}if(2&t){let c;const n=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,6,"PROFILE._phone_type")),e.R7$(15),e.JRh(e.bMT(18,8,"PROFILE._phone")),e.R7$(5),e.Lme(" ",n.phonePrefix.flag," ",n.phonePrefix.code," "),e.R7$(3),e.vxM(25,1==n.prefixCheck?25:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function en0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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),e.DNE(13,W90,5,4,"div",31)(14,J90,25,20)(15,K90,27,10),e.k0s(),e.j41(16,"div",119)(17,"button",120),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveMedium())}),e.EFF(18),e.nI1(19,"translate"),e.qSk(),e.j41(20,"svg",121),e.nrm(21,"path",122),e.k0s()()(),e.joV(),e.j41(22,"div",123)(23,"button",124),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.updateProfile())}),e.EFF(24),e.nI1(25,"translate"),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,9,"PROFILE._add_new_contact")),e.R7$(11),e.Y8G("formGroup",c.mediumForm),e.R7$(),e.vxM(13,c.emailSelected?13:c.addressSelected?14:15),e.R7$(4),e.Y8G("disabled",!c.mediumForm.valid)("ngClass",c.mediumForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(19,11,"PROFILE._save")," "),e.R7$(5),e.Y8G("disabled",!c.profileForm.valid)("ngClass",c.profileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(25,13,"PROFILE._update")," ")}}function cn0(t,a){if(1&t&&(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,S90,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,N90,2,2,"option",19),e.k0s()(),e.DNE(23,E90,12,15),e.j41(24,"label",20),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,D90,3,5,"div",21)(28,I90,71,28),e.k0s(),e.DNE(29,B90,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",26),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.DNE(44,V90,3,3,"th",25),e.k0s()(),e.j41(45,"tbody"),e.Z7z(46,q90,8,3,"tr",27,e.fX1,!1,X90,7,3,"div",28),e.k0s()()(),e.DNE(49,en0,26,15),e.k0s()),2&t){let c,n;const l=e.XpG();e.R7$(2),e.JRh(e.bMT(3,23,"PROFILE._organization")),e.R7$(3),e.Y8G("formGroup",l.profileForm),e.R7$(3),e.SpI("",e.bMT(9,25,"PROFILE._name")," (*)"),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.ziG(39,F90,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!=(n=l.profileForm.get("name"))&&n.invalid&&null!=(n=l.profileForm.get("name"))&&null!=n.errors&&n.errors.required&&null!=(n=l.profileForm.get("name"))&&n.touched&&""==l.profileForm.value.name?11:-1),e.R7$(3),e.JRh(e.bMT(15,27,"PROFILE._website")),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.l_i(44,fG,l.isReadOnly,!l.isReadOnly)),e.R7$(3),e.SpI("",e.bMT(20,29,"PROFILE._country")," (*)"),e.R7$(2),e.Y8G("disabled",l.isReadOnly)("ngClass",e.l_i(47,v90,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,31,"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,33,"PROFILE._contact_info")),e.R7$(8),e.SpI(" ",e.bMT(40,35,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(43,37,"PROFILE._info")," "),e.R7$(2),e.vxM(44,l.isReadOnly?-1:44),e.R7$(2),e.Dyx(l.contactmediums),e.R7$(3),e.vxM(49,l.isReadOnly?-1:49)}}function tn0(t,a){if(1&t&&e.nrm(0,"error-message",2),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function nn0(t,a){if(1&t&&(e.j41(0,"div",31)(1,"label",125),e.EFF(2,"Email"),e.k0s(),e.nrm(3,"input",164),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(3),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("email"))?null:c.invalid)&&""!=n.mediumForm.value.email?"border-red-600":"border-gray-300")}}function ln0(t,a){1&t&&(e.j41(0,"div")(1,"label",127),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",165),e.k0s(),e.j41(5,"div")(6,"label",129),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",166),e.k0s(),e.j41(10,"div")(11,"label",131),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",167),e.k0s(),e.j41(15,"div")(16,"label",133),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",168),e.k0s(),e.j41(20,"div",31)(21,"label",135),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",169),e.k0s()),2&t&&(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 sn0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",155),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.selectPrefix(l))}),e.j41(1,"div",156),e.EFF(2),e.k0s()()}if(2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function an0(t,a){if(1&t&&(e.j41(0,"div",151)(1,"ul",153)(2,"li"),e.Z7z(3,sn0,3,1,"button",154,KN1),e.k0s()()()),2&t){const c=e.XpG(3);e.R7$(3),e.Dyx(c.prefixes)}}function on0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",137)(1,"label",138),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",139)(5,"option",140),e.EFF(6,"Mobile"),e.k0s(),e.j41(7,"option",141),e.EFF(8,"Landline"),e.k0s(),e.j41(9,"option",142),e.EFF(10,"Office"),e.k0s(),e.j41(11,"option",143),e.EFF(12,"Home"),e.k0s(),e.j41(13,"option",144),e.EFF(14,"Other"),e.k0s()()(),e.j41(15,"div",137)(16,"label",145),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"div",146)(20,"div",147)(21,"button",148),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(22),e.qSk(),e.j41(23,"svg",149),e.nrm(24,"path",150),e.k0s()(),e.DNE(25,an0,5,0,"div",151),e.joV(),e.nrm(26,"input",170),e.k0s()()()}if(2&t){let c;const n=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,6,"PROFILE._phone_type")),e.R7$(15),e.JRh(e.bMT(18,8,"PROFILE._phone")),e.R7$(5),e.Lme(" ",n.phonePrefix.flag," ",n.phonePrefix.code," "),e.R7$(3),e.vxM(25,1==n.prefixCheck?25:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function in0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",3)(1,"div",157),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",158)(3,"h2",11),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",159),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showEditMedium=!1)}),e.qSk(),e.j41(7,"svg",160),e.nrm(8,"path",161),e.k0s(),e.joV(),e.j41(9,"span",9),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",162)(13,"form",118),e.DNE(14,nn0,4,1,"div",31)(15,ln0,25,15)(16,on0,27,10),e.k0s(),e.j41(17,"div",119)(18,"button",163),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editMedium())}),e.EFF(19),e.nI1(20,"translate"),e.qSk(),e.j41(21,"svg",121),e.nrm(22,"path",122),e.k0s()()()()()()}if(2&t){const c=e.XpG();e.Y8G("ngClass",c.showEditMedium?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,6,"PROFILE._edit")),e.R7$(6),e.JRh(e.bMT(11,8,"CARD._close")),e.R7$(3),e.Y8G("formGroup",c.mediumForm),e.R7$(),e.vxM(14,"Email"==c.selectedMedium.mediumType?14:"PostalAddress"==c.selectedMedium.mediumType?15:16),e.R7$(5),e.SpI(" ",e.bMT(20,10,"PROFILE._save")," ")}}function rn0(t,a){1&t&&(e.j41(0,"div",174),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_phone")))}function dn0(t,a){1&t&&(e.j41(0,"div",174),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_email")))}function fn0(t,a){if(1&t&&(e.j41(0,"div",4)(1,"div",171),e.qSk(),e.j41(2,"svg",172),e.nrm(3,"path",173),e.k0s()(),e.joV(),e.j41(4,"div"),e.DNE(5,rn0,3,3,"div",174)(6,dn0,3,3,"div",174),e.k0s(),e.j41(7,"button",175)(8,"span",9),e.EFF(9,"Close"),e.k0s(),e.qSk(),e.j41(10,"svg",160),e.nrm(11,"path",161),e.k0s()()()),2&t){let c,n;const l=e.XpG();e.R7$(5),e.vxM(5,1==(null==(c=l.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?5:-1),e.R7$(),e.vxM(6,1==(null==(n=l.mediumForm.get("email"))?null:n.invalid)?6:-1)}}function un0(t,a){1&t&&(e.j41(0,"div",5)(1,"div",176)(2,"div",177),e.qSk(),e.j41(3,"svg",178),e.nrm(4,"path",112),e.k0s(),e.joV(),e.j41(5,"h3",179),e.EFF(6,"Update success"),e.k0s()(),e.j41(7,"div",180),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let mn0=(()=>{class t{constructor(c,n,l,r,m,z){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.eventMessage=m,this.attachmentService=z,this.isDataspaceEnabled=h1.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({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=eG,this.countries=Qy,this.phonePrefix=eG[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=h1.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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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(()=>{S2()},500)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-Y2().unix()-4>0){if(c.logged_as!==c.id){let n=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=n.partyId,n&&n.roles){const r=n.roles.map(m=>m.name).some(m=>m===h1.c.ORG_ADMIN_ROLE);this.isReadOnly=!r}}else this.partyId=c.partyId,this.isReadOnly=!1;this.token=c.token,this.email=c.email,this.profileForm.reset(),this.getProfile()}S2()}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(),S2()}updateProfile(){let c=[],n=[];""!=this.imgPreview&&n.push({name:"logo",value:this.imgPreview}),""!=this.profileForm.value.description&&n.push({name:"description",value:this.profileForm.value.description}),""!=this.profileForm.value.website&&n.push({name:"website",value:this.profileForm.value.website}),""!=this.profileForm.value.country&&n.push({name:"country",value:this.profileForm.value.country});const l=this.profileForm.value.contractManagementAddress?.trim()??"",r=this.profileForm.value.contractManagementClientId?.trim()??"",m=this.parseContractManagementScopes(this.profileForm.value.contractManagementScopes);this.isDataspaceEnabled&&(""!==l||""!==r||m.length>0)&&n.push({name:"contractManagement",value:{address:l,clientId:r,scope:m}});for(let F=0;F{this.profileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.mediumForm.reset()},error:F=>{console.error("There was an error while updating!",F),this.errorMessage=F.error.error?"Error: "+F.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 n=0;nn.trim()).filter(n=>n.length>0):[]}formatContractManagementScopes(c){return Array.isArray(c)?c.filter(n=>"string"==typeof n).join(", "):"string"==typeof c?c:""}saveMedium(){if(this.phoneSelected)try{const c=ew(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:A4(),mediumType:"Email",preferred:!1,characteristic:{contactType:"Email",emailAddress:this.mediumForm.value.email}}:this.addressSelected?{id:A4(),mediumType:"PostalAddress",preferred:!1,characteristic:{contactType:"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:A4(),mediumType:"TelephoneNumber",preferred:!1,characteristic:{contactType:this.mediumForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}),this.mediumForm.reset()}removeMedium(c){const n=this.contactmediums.findIndex(l=>l.id===c.id);-1!==n&&this.contactmediums.splice(n,1)}editMedium(){const c=this.contactmediums.findIndex(n=>n.id===this.selectedMedium.id);if(-1!==c){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:!1,characteristic:{contactType:"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:!1,characteristic:{contactType:"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 n=ew(this.phonePrefix.code+this.mediumForm.value.telephoneNumber);if(n){if(!n.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:!1,characteristic:{contactType:this.mediumForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}}this.mediumForm.reset(),this.showEditMedium=!1}}showEdit(c){if(this.selectedMedium=c,"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 n=ew(this.selectedMedium.characteristic.phoneNumber);if(n){let l=this.prefixes.filter(r=>r.code==="+"+n.countryCallingCode);l.length>0&&(this.phonePrefix=l[0]),this.mediumForm.controls.telephoneNumber.setValue(n.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 n=this.mediumForm.get(c);!n||!n.validator||n.validator({})}printAllActiveValidators(){Object.keys(this.mediumForm.controls).forEach(c=>{this.printActiveValidators(c)})}dropped(c,n){this.files=c;for(const l of c)l.fileEntry.isFile&&l.fileEntry.file(m=>{if(m){const z=new FileReader;z.onload=F=>{const I=F.target.result.split(",")[1];let J={content:{name:"orglogo"+m.name,data:I},contentType:m.type,isPublic:!0};return this.isValidFilename(J.content.name)?m.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(J).subscribe({next:d1=>{"img"==n&&(m.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=d1.content):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3))),this.cdr.detectChanges()},error:d1=>{console.error("There was an error while uploading!",d1),this.errorMessage=d1.error.error?"Error: "+d1.error.error:"There was an error while uploading the file!",413===d1.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))},z.readAsDataURL(m)}})}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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(K0.O),e.rXU(H2),e.rXU(b9))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["org-info"]],viewQuery:function(n,l){if(1&n&&e.GBs(y90,5),2&n){let r;e.mGM(r=e.lsd())&&(l.imgURL=r.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"],[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"],[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"],["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"],["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"],["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(n,l){1&n&&e.DNE(0,w90,6,0,"div",1)(1,cn0,50,50)(2,tn0,1,1,"error-message",2)(3,in0,23,12,"div",3)(4,fn0,12,2,"div",4)(5,un0,10,3,"div",5),2&n&&(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:[L.YU,L.Sq,L.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,b0,j4,H0,M0,s1.D9]})}}return t})();const pn0=(t,a)=>a.code;function hn0(t,a){1&t&&(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 gn0(t,a){1&t&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function _n0(t,a){1&t&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function Ln0(t,a){if(1&t&&(e.j41(0,"option",49),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.code),e.R7$(),e.JRh(c.name)}}function Cn0(t,a){if(1&t){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,gn0,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,_n0,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,Ln0,2,2,"option",49,pn0),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&t){let c,n,l,r;const m=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",m.profile.externalReference[0].name),e.R7$(2),e.JRh(e.bMT(13,31,"PROFILE._email")),e.R7$(2),e.FS9("value",m.email),e.R7$(3),e.JRh(e.bMT(18,33,"PROFILE._token")),e.R7$(2),e.FS9("value",m.token),e.R7$(2),e.JRh(e.bMT(22,35,"PROFILE._profile")),e.R7$(3),e.Y8G("formGroup",m.userProfileForm),e.R7$(3),e.JRh(e.bMT(28,37,"PROFILE._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=m.userProfileForm.get("name"))?null:c.invalid)&&""!=m.userProfileForm.value.name||null!=(c=m.userProfileForm.get("name"))&&c.touched&&""==m.userProfileForm.value.name?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(30,null!=(n=m.userProfileForm.get("name"))&&n.invalid&&null!=(n=m.userProfileForm.get("name"))&&null!=n.errors&&n.errors.required&&null!=(n=m.userProfileForm.get("name"))&&n.touched&&""==m.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=m.userProfileForm.get("lastname"))?null:l.invalid)&&""!=m.userProfileForm.value.lastname||null!=(l=m.userProfileForm.get("lastname"))&&l.touched&&""==m.userProfileForm.value.lastname?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(62,null!=(r=m.userProfileForm.get("lastname"))&&r.invalid&&null!=(r=m.userProfileForm.get("lastname"))&&null!=r.errors&&r.errors.required&&null!=(r=m.userProfileForm.get("lastname"))&&r.touched&&""==m.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",m.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(m.countries),e.R7$(3),e.Y8G("disabled",!m.userProfileForm.valid)("ngClass",m.userProfileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(109,57,"PROFILE._update")," ")}}function zn0(t,a){if(1&t&&e.nrm(0,"error-message",1),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Mn0(t,a){1&t&&(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&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let xn0=(()=>{class t{constructor(c,n,l,r,m){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.eventMessage=m,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=Qy,this.preferred=!1,this.errorMessage="",this.showError=!1,this.successVisibility=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(z=>{"ChangedSession"===z.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-Y2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,this.accountService.getOrgInfo(this.partyId).then(l=>{})}this.token=c.token,this.email=c.email,this.getProfile()}S2()}getProfile(){this.accountService.getUserInfo(this.partyId).then(c=>{this.profile=c,this.loadProfileData(this.profile),this.loading=!1,this.cdr.detectChanges()}),this.cdr.detectChanges(),S2()}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:n=>{this.userProfileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.getProfile()},error:n=>{console.error("There was an error while updating!",n),n.error.error?(console.log(n),this.errorMessage="Error: "+n.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(n){return new(n||t)(e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(K0.O),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,hn0,6,0,"div",0)(1,Cn0,110,59)(2,zn0,1,1,"error-message",1)(3,Mn0,10,3,"div",2),2&n&&(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:[L.YU,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,M0,s1.D9]})}}return t})();const bn0=(t,a)=>a.id,yn0=(t,a)=>({"break-all":t,"break-words":a});function Fn0(t,a){1&t&&(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 vn0(t,a){1&t&&(e.j41(0,"th",14),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"BILLING._action")," "))}function kn0(t,a){if(1&t){const c=e.RV6();e.j41(0,"td",21)(1,"button",22),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().$implicit;return e.XpG(2).toggleEditBill(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(2,"svg",23),e.nrm(3,"path",24),e.k0s()()()}}function wn0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.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,kn0,4,0,"td",21),e.k0s()}if(2&t){const c=a.$implicit,n=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,yn0,n.hasLongWord(c.name,20),!n.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,n.isReadOnly?-1:9)}}function Sn0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"BILLING._no_billing")," "))}function Nn0(t,a){if(1&t&&(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&t){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"BILLING._add")),e.R7$(3),e.Y8G("preferred",c.preferred)}}function En0(t,a){if(1&t&&(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,vn0,3,3,"th",14),e.k0s()(),e.j41(22,"tbody"),e.Z7z(23,wn0,10,15,"tr",15,bn0,!1,Sn0,7,3,"div",16),e.k0s()()(),e.DNE(26,Nn0,5,4),e.k0s()),2&t){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 Dn0(t,a){if(1&t){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&t){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 Tn0(t,a){if(1&t){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&t){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 Rn0(t,a){if(1&t&&e.nrm(0,"error-message",3),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let An0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.api=n,this.cdr=l,this.router=r,this.accountService=m,this.orderService=z,this.eventMessage=F,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=Qy,this.preferred=!1,this.isReadOnly=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"BillAccChanged"===I.type&&this.getBilling(),0==I.value&&(this.editBill=!1),"ChangedSession"===I.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-Y2().unix()-4>0){if(c.logged_as!==c.id){let n=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=n.partyId,console.log("loggedOrg info"),console.log(n),this.partyInfo={id:this.partyId,name:n.name,href:this.partyId,role:h1.c.SELLER_ROLE},n&&n.roles){const r=n.roles.map(m=>m.name).some(m=>m===h1.c.ORG_ADMIN_ROLE);this.isReadOnly=!r}}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:h1.c.SELLER_ROLE},this.isReadOnly=!1;this.getBilling()}S2()}getBilling(){let c=!1;this.accountService.getBillingAccount().then(n=>{this.billing_accounts=[];for(let l=0;l0),console.log(this.billing_accounts),this.cdr.detectChanges()}),this.cdr.detectChanges(),S2()}selectBill(c){const n=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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(K0.O),e.rXU(w8),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["billing-info"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&e.DNE(0,Fn0,6,0,"div",0)(1,En0,27,18)(2,Dn0,14,8,"div",1)(3,Tn0,24,14,"div",2)(4,Rn0,1,1,"error-message",3),2&n&&(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:[L.YU,Zd1,M0,s1.D9]})}}return t})();const cE1=(t,a)=>a.id;function In0(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.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&t){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 Pn0(t,a){1&t&&(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 $n0(t,a){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function jn0(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function On0(t,a){if(1&t&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Bn0(t,a){if(1&t&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Vn0(t,a){if(1&t&&(e.j41(0,"span",57),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Un0(t,a){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Hn0(t,a){if(1&t&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Gn0(t,a){if(1&t){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,$n0,2,1,"span",48)(5,jn0,2,1)(6,On0,2,1)(7,Bn0,2,1)(8,Vn0,2,1)(9,Un0,2,1)(10,Hn0,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 r=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(r),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&t){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 Yn0(t,a){1&t&&(e.j41(0,"div",45)(1,"span",58),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function qn0(t,a){if(1&t){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 Xn0(t,a){if(1&t&&e.DNE(0,qn0,5,0,"div",59),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Wn0(t,a){1&t&&(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 Jn0(t,a){if(1&t&&(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,Gn0,24,8,"tr",44,cE1),e.k0s()(),e.DNE(26,Yn0,4,3,"div",45),e.k0s(),e.DNE(27,Xn0,1,1)(28,Wn0,6,0),e.k0s()),2&t){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 Qn0(t,a){if(1&t&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Zn0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Kn0(t,a){if(1&t&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function el0(t,a){if(1&t&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function cl0(t,a){if(1&t&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function tl0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function nl0(t,a){if(1&t&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function ll0(t,a){1&t&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._custom")," "))}function sl0(t,a){if(1&t&&(e.j41(0,"td",47),e.EFF(1),e.k0s()),2&t){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 al0(t,a){if(1&t&&e.DNE(0,ll0,3,3,"td",47)(1,sl0,2,3),2&t){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function ol0(t,a){1&t&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function il0(t,a){if(1&t&&(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,al0,2,1)(6,ol0,3,3),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.FS9("src",n.getProductImage(c),e.B4B),e.R7$(2),e.SpI(" ",c.name," "),e.R7$(),e.vxM(5,c.productOfferingPrice?5:6)}}function rl0(t,a){if(1&t&&(e.j41(0,"p",83),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.E5c("",c.price," ",c.unit," ",c.text,"")}}function dl0(t,a){1&t&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._custom")))}function fl0(t,a){1&t&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._free")))}function ul0(t,a){if(1&t&&e.DNE(0,dl0,3,3,"p",91)(1,fl0,3,3),2&t){const c=e.XpG(2);e.vxM(0,1==c.check_custom?0:1)}}function ml0(t,a){if(1&t){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,Qn0,2,1,"span",75)(25,Zn0,2,1)(26,Kn0,2,1)(27,el0,2,1)(28,cl0,2,1)(29,tl0,2,1)(30,nl0,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,il0,7,3,"tr",77,cE1),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,rl0,2,3,"p",83,e.fX1,!1,ul0,2,1),e.k0s()()()()()()}if(2&t){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 pl0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.orderService=m,this.eventMessage=z,this.paginationService=F,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=Qy,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=h1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=h1.c.BUYER_ROLE,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),S2()}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-Y2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}S2()}ngAfterViewInit(){S2()}getProductImage(c){let n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.ORDER_LIMIT,c,n.orders,n.nextOrders,{filters:n.filters,partyId:n.partyId,orders:n.orders,role:n.role},n.paginationService.getOrders.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.orders),n.page_check=r.page_check,n.orders=r.items,n.nextOrders=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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 n=[],l=!1;this.check_custom=!1;for(let r=0;r{class t{constructor(c,n,l,r){this.localStorage=c,this.cdr=n,this.eventMessage=l,this.http=r,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,P1.Q)(this.destroy$)).subscribe(m=>{"ChangedSession"===m.type&&this.initPartyInfo()})}ngOnInit(){let c=new Date;c.setMonth(c.getMonth()-1),this.initPartyInfo(),setTimeout(()=>{S2()},100)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-Y2().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 n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,this.loggedAsUser=!1,this.show_profile=!1,this.show_org_profile=!0,this.getOrgProfile()}S2()}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(()=>{S2()},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(),S2()}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(),S2()}getPayment(){(0,U2.s)(this.http.get(`${h1.c.BASE_URL}/paymentInfo`)).then(n=>{window.open(n.providerUrl,"_blank")}).catch(()=>{})}getLear(){window.open(`${h1.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"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectBilling(){let c=document.getElementById("bill-button"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectOrder(){let c=document.getElementById("bill-button"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("bill-button"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(r,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100")}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&c.className.match(n)&&this.removeClass(c,n)}selectMenu(c,n){null!=c&&(c.className.match(n)||this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(e.gRc),e.rXU(H2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,hl0,3,3,"button",15)(29,gl0,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,_l0,1,0,"user-info")(44,Ll0,1,0,"org-info")(45,Cl0,1,0,"order-info")(46,zl0,1,0,"billing-info")(47,Ml0,1,0,"provider-revenue-sharing"),e.k0s()()()),2&n&&(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:[ZN1,mn0,xn0,An0,pl0,s1.D9]})}}return t})(),canActivate:[rc],data:{roles:[]}},{path:"my-offerings",component:JN1,canActivate:[rc],data:{roles:["seller"]}},{path:"admin",component:gJ2,canActivate:[rc],data:{roles:["admin","certifier"]}},{path:"contact-us",component:n10},{path:"product-orders",component:l70,canActivate:[rc],data:{roles:[]}},{path:"quote-list",component:s3,canActivate:[rc,Fw1],data:{roles:[]}},{path:"tenders",loadChildren:()=>v.e(365).then(v.bind(v,4365)).then(t=>t.TendersModule),canActivate:[rc,Fw1],data:{roles:[]}},{path:"usage-spec",component:qX2,canActivate:[rc],data:{roles:["seller"]}},{path:"blog",component:E},{path:"blog/:slugOrId",component:T5},{path:"blog-entry",component:xw1,canActivate:[rc],data:{roles:["admin"]}},{path:"blog-entry/:id",component:xw1,canActivate:[rc],data:{roles:["admin"]}},{path:"landing-page",children:[{path:"customers",loadComponent:()=>Promise.all([v.e(76),v.e(342)]).then(v.bind(v,5342)).then(t=>t.LandingPageCustomersComponent)},{path:"providers",loadComponent:()=>Promise.all([v.e(76),v.e(826)]).then(v.bind(v,6826)).then(t=>t.LandingPageProvidersComponent)}]},{path:"**",redirectTo:"dashboard",pathMatch:"full"}];let bl0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({imports:[E2.iI.forRoot(xl0),E2.iI]})}}return t})(),Fl0=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.api=n,this.router=l}startInterval(c,n){this.intervalObservable=function yl0(t=0,a=l4){return t<0&&(t=0),b4(t,t,a)}(c),this.intervalSubscription=this.intervalObservable.subscribe(()=>{let l=this.localStorage.getObject("login_items");this.api.getLogin(l.token).then(r=>{this.stopInterval(),this.localStorage.setObject("login_items",{id:r.id,user:r.username,email:r.email,token:r.accessToken,expire:r.expire,partyId:l.partyId,roles:r.roles,organizations:l.organizations,logged_as:l.logged_as}),r.expire>Y2().unix()+4?this.startInterval(1e3*(r.expire-Y2().unix()-4),r):(this.stopInterval(),this.localStorage.setObject("login_items",{}),this.api.logout().catch(m=>{}),this.router.navigate(["/dashboard"]).then(()=>{window.location.reload()}).catch(m=>{}))})})}stopInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(L2.s),e.KVO(x9),e.KVO(E2.Ix))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function vl0(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.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&t){const c=e.XpG();e.Y8G("ngClass",c.state?"chatbox--active":"")}}let kl0=(()=>{class t{constructor(c,n,l){this.cdr=c,this.el=n,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 n=c.value;if(""===n)return;let l="guest",r=h1.c.BUYER_ROLE;const m=this.localStorage.getObject("login_items");if(m.id){let F=[];r=h1.c.BUYER_ROLE,l=m.username,F=m.logged_as!==m.id?m.organizations.find(J=>J.id==m.logged_as).roles.map(J=>J.name):m.roles.map(I=>I.name),F.includes(h1.c.SELLER_ROLE)&&(r="Provider")}this.messages.push({name:l,message:n,role:r}),this.updateChatText(),c.value="",fetch(h1.c.CHAT_API,{method:"POST",body:JSON.stringify({message:n,role:r}),mode:"cors",headers:{"Content-Type":"application/json"}}).then(F=>F.json()).then(F=>{this.messages.push({name:"DomeGPT",message:F.answer}),this.updateChatText()}).catch(F=>{console.error("Error:",F),this.updateChatText()})}updateChatText(){var c="";this.messages.slice().reverse().forEach(function(l,r){c+="DomeGPT"===l.name?'
    '+l.message+"
    ":'
    '+l.message+"
    "}),this.chatbox.querySelector(".chatbox__messages").innerHTML=c,this.cdr.detectChanges()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(L2.s))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,vl0,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&n&&(e.R7$(2),e.vxM(2,l.state?2:-1))},dependencies:[L.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 t})();function wl0(t,a){1&t&&e.nrm(0,"app-chatbot-widget",3)}function Sl0(t,a){1&t&&(e.j41(0,"noscript"),e.nrm(1,"img",4),e.k0s())}let Nl0=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.translate=c,this.localStorage=n,this.eventMessage=l,this.route=r,this.router=m,this.api=z,this.themeService=F,this.refreshApi=I,this.title="BAE Marketplace",this.showPanel=!1,this.providerThemeName=h1.c.providerThemeName,this.isProduction=h1.c.isProduction,this.showHeaderAndFooter=!1,this.translate.addLangs(["en","es"]),this.translate.setDefaultLang("es");let J=this.localStorage.getItem("current_language");J&&null!=J?this.translate.use(J):(this.localStorage.setItem("current_language",""),this.translate.use("es")),this.localStorage.getObject("selected_categories")||this.localStorage.setObject("selected_categories",[])}ngOnInit(){this.themeService.initializeProviderTheme(h1.c.providerThemeName),S2(),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-Y2().unix()-4),l),S2())});let n=this.localStorage.getObject("login_items");"{}"===JSON.stringify(n)||n.expire-Y2().unix()-4>0&&(this.refreshApi.stopInterval(),this.refreshApi.startInterval(1e3*(n.expire-Y2().unix()-4),n),S2()),this.router.events.pipe((0,N3.p)(l=>l instanceof E2.wF)).subscribe(()=>{window.scrollTo({top:0,behavior:"smooth"})})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(s1.c$),e.rXU(L2.s),e.rXU(H2),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(Hk),e.rXU(Fl0))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-root"]],decls:7,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(n,l){1&n&&(e.nrm(0,"bae-header"),e.j41(1,"div",0)(2,"main",1),e.nrm(3,"router-outlet"),e.k0s(),e.nrm(4,"bae-footer",2),e.k0s(),e.DNE(5,wl0,1,0,"app-chatbot-widget",3)(6,Sl0,2,0,"noscript")),2&n&&(e.R7$(5),e.vxM(5,"DOME"===l.providerThemeName?5:-1),e.R7$(),e.vxM(6,l.isProduction?6:-1))},dependencies:[Mw1,Pk1,E2.n3,kl0],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 t})();class cf{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_ORDERING=h1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=h1.c.ORDER_LIMIT}constructor(a){this.localStorage=a}intercept(a,c){let n=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(n)&&n.expire-Y2().unix()-4>0){if(!this.shouldAttachAuthHeaders(a.url))return c.handle(a);if(n.logged_as!=n.id){let l=a.clone({setHeaders:{Authorization:"Bearer "+n.token,"X-Organization":n.logged_as}});return a.url.startsWith(`${cf.BASE_URL}${cf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+n.token,"X-Organization":n.logged_as,"X-Terms-Accepted":"true"}})),c.handle(l)}{let l=a.clone({setHeaders:{Authorization:"Bearer "+n.token}});return a.url.startsWith(`${cf.BASE_URL}${cf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+n.token,"X-Terms-Accepted":"true"}})),c.handle(l)}}return console.log("not logged"),c.handle(a)}shouldAttachAuthHeaders(a){return function El0(t,a){return!tE1(t)||a.filter(tE1).some(c=>function Dl0(t,a){try{const c=new URL(t),n=new URL(a),l=n.pathname.replace(/\/$/,"");return c.origin===n.origin&&(""===l||c.pathname===l||c.pathname.startsWith(`${l}/`))}catch{return!1}}(t,c))}(a,[h1.c.BASE_URL,this.quoteApiBaseUrl()])}quoteApiBaseUrl(){const a=h1.c.quoteApi;return a.startsWith("http://")||a.startsWith("https://")?a:`${h1.c.BASE_URL}${a}`}static{this.\u0275fac=function(c){return new(c||cf)(e.KVO(L2.s))}}static{this.\u0275prov=e.jDH({token:cf,factory:cf.\u0275fac})}}function tE1(t){return/^https?:\/\//i.test(t)}const Tl0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Rl0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),nE1=(t,a)=>({"break-all":t,"break-words":a});function Al0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Il0(t,a){if(1&t&&(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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_CATALOG._description"))}}function Pl0(t,a){1&t&&(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 $l0(t,a){if(1&t&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function jl0(t,a){if(1&t&&(e.j41(0,"span",46),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Ol0(t,a){if(1&t&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Bl0(t,a){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Vl0(t,a){if(1&t&&(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&t){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,nE1,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 Ul0(t,a){if(1&t&&(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,$l0,2,1,"span",45)(11,jl0,2,1)(12,Ol0,2,1)(13,Bl0,2,1),e.k0s(),e.DNE(14,Vl0,5,8)),2&t){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,nE1,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 Hl0(t,a){if(1&t&&(e.j41(0,"div",35),e.DNE(1,Pl0,6,0,"div",36)(2,Ul0,15,13),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Gl0(t,a){if(1&t){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&t){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 Yl0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let ql0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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),s6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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:h1.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(F2.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-catalog"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,Al0,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,Il0,9,8,"form",18)(29,Hl0,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,Gl0,3,5,"button",26),e.k0s()()()()(),e.DNE(42,Yl0,1,1,"error-message",27)),2&n&&(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,Tl0,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,Rl0,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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,H0,ge,M0,s1.D9]})}}return t})();const Xl0=(t,a)=>a.id,Wl0=(t,a)=>({"break-all":t,"break-words":a});function Jl0(t,a){1&t&&(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 Ql0(t,a){if(1&t&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zl0(t,a){if(1&t&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Kl0(t,a){if(1&t&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function es0(t,a){if(1&t&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function cs0(t,a){if(1&t){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,Ql0,2,1,"span",45)(5,Zl0,2,1)(6,Kl0,2,1)(7,es0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(12,"svg",49),e.nrm(13,"path",50),e.k0s()()()()}if(2&t){let c;const n=a.$implicit,l=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,Wl0,l.hasLongWord(n.name,20),!l.hasLongWord(n.name,20))),e.R7$(),e.SpI(" ",n.name," "),e.R7$(2),e.vxM(4,"Active"==n.lifecycleStatus?4:"Launched"==n.lifecycleStatus?5:"Retired"==n.lifecycleStatus?6:"Obsolete"==n.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",null==n.relatedParty||null==(c=n.relatedParty.at(0))?null:c.role," ")}}function ts0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function ns0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function ls0(t,a){if(1&t&&e.DNE(0,ns0,6,3,"div",57),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function ss0(t,a){1&t&&(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 as0(t,a){if(1&t&&(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,cs0,14,7,"tr",41,Xl0,!1,ts0,7,3,"div",42),e.k0s()()(),e.DNE(21,ls0,1,1)(22,ss0,6,0),e.k0s()),2&t){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 os0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.api=n,this.cdr=l,this.localStorage=r,this.eventMessage=m,this.paginationService=z,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.searchField=new p.MJ,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initCatalogs()})}ngOnInit(){this.initCatalogs()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getCatalogs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))}),S2()}ngAfterViewInit(){S2()}getCatalogs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:n.filter,filters:n.status,partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.page_check=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getCatalogs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&(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,Jl0,6,0,"div",29)(52,as0,23,14),e.k0s()),2&n&&(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:[L.YU,J2.aY,s1.D9]})}}return t})();const is0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),rs0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),lE1=(t,a)=>({"break-all":t,"break-words":a});function ds0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function fs0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._active")," "))}function us0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._active")," "))}function ms0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._launched")," "))}function ps0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._launched")," "))}function hs0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._retired")," "))}function gs0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._retired")," "))}function _s0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._obsolete")," "))}function Ls0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._obsolete")," "))}function Cs0(t,a){if(1&t&&(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,fs0,6,3,"li",36)(11,us0,4,3)(12,ms0,6,3,"li",37)(13,ps0,4,3)(14,hs0,6,3,"li",38)(15,gs0,4,3)(16,_s0,6,3,"li",39)(17,Ls0,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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.catStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==n.catStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==n.catStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==n.catStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_CATALOG._description"))}}function zs0(t,a){1&t&&(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 Ms0(t,a){if(1&t&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function xs0(t,a){if(1&t&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function bs0(t,a){if(1&t&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function ys0(t,a){if(1&t&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function Fs0(t,a){if(1&t&&(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&t){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,lE1,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 vs0(t,a){if(1&t&&(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,Ms0,2,1,"span",62)(11,xs0,2,1)(12,bs0,2,1)(13,ys0,2,1),e.k0s(),e.DNE(14,Fs0,5,8)),2&t){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,lE1,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 ks0(t,a){if(1&t&&(e.j41(0,"div",53),e.DNE(1,zs0,6,0,"div",54)(2,vs0,15,13),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function ws0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Ss0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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),s6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(F2.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-catalog"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,ds0,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,Cs0,22,15,"form",18)(29,ks0,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,ws0,1,1,"error-message",27)),2&n&&(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,is0,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,rs0,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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,H0,ge,M0,s1.D9]})}}return t})();var $E=v(4261);class a6{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_PRODUCT_CATALOG=h1.c.PRODUCT_CATALOG}static{this.API_PRODUCT_SPEC=h1.c.PRODUCT_SPEC}static{this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getProdSpecByUser(a,c,n,l,r){let m=`${a6.BASE_URL}${a6.API_PRODUCT_CATALOG}${a6.API_PRODUCT_SPEC}?limit=${a6.PROD_SPEC_LIMIT}&offset=${a}&relatedParty.id=${n}`;null!=l&&(m=m+"&sort="+l),null!=r&&(m=m+"&isBundle="+r);let z="";if(c&&c.length>0){for(let F=0;F0){for(let z=0;z0){for(let z=0;z{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=h1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=h1.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=$E.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=$E.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,P1.Q)(this.destroy$)).subscribe(N1=>{if("CategoryAdded"===N1.type&&this.addCategory(N1.value),"ChangedSession"===N1.type&&this.initPartyInfo(),"SavePricePlan"===N1.type&&(this.createdPrices.push(N1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===N1.type){let J1=N1.value;-1!=this.createdPrices.findIndex(v2=>v2.id===J1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((v2,G2)=>G2==G2?J1:v2)),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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,S2()}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,S2()}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,S2()}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 n=this.createdPrices.findIndex(l=>l.id===c.id);-1!==n&&this.createdPrices.splice(n,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(n=>n===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 n=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==n&&this.createdSLAs.splice(n,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 n=0;nr.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let r=0;r{if(n=l,c.children=n,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=n.length)for(let r=0;rz.id==n.id)){let z=r.findIndex(F=>F.id==n.id);r[z]=n,c[l].children=r}this.saveChildren(r,n)}}}addParent(c){const n=this.unformattedCategories.findIndex(l=>l.id===c);-1!=n&&(0==this.unformattedCategories[n].isRoot?this.addCategory(this.unformattedCategories[n]):this.selectedCategories.push(this.unformattedCategories[n]))}addCategory(c){const n=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==n?(console.log("eliminar"),this.selectedCategories.splice(n,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(r=>r.id===c.parentId);-1==n&&-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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingCatalog=!0),n.paginationService.getItemsPaginated(n.catalogPage,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.catalogPageCheck=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.catalogPage=r.page,n.loadingCatalog=!1,n.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,b1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingProdSpec=!0),n.paginationService.getItemsPaginated(n.prodSpecPage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecPageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.prodSpecPage=r.page,n.loadingProdSpec=!1,n.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,b1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PRODUCT_LIMIT,c,n.bundledOffers,n.nextBundledOffers,{filters:["Active","Launched"],partyId:n.partyId,sort:void 0,isBundle:!1},n.api.getProductOfferByOwner.bind(n.api)).then(r=>{n.bundlePageCheck=r.page_check,n.bundledOffers=r.items,n.nextBundledOffers=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const n=this.offersBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.offersBundle.splice(n,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,b1.A)(function*(){if(c.postedPrices=[],c.createdPrices.length>0)for(let n=0;n{c.showError=!1},3e3)}}try{let J=yield(0,U2.s)(c.api.postOfferingPrice(F));r.push({id:J.id,href:J.id,name:J.name}),console.log("componente"),console.log(J)}catch(J){console.error("There was an error while creating offers price!",J),J.error.error?(console.log(J),c.errorMessage="Error: "+J.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let m={name:c.createdPrices[n].name,isBundle:!0,description:c.createdPrices[n].description,lifecycleStatus:c.createdPrices[n].lifecycleStatus,bundledPopRelationship:r};c.createdPrices[n].prodSpecCharValueUse&&(m.prodSpecCharValueUse=c.createdPrices[n].prodSpecCharValueUse),c.createdPrices[n].unitOfMeasure&&(m.unitOfMeasure=c.createdPrices[n].unitOfMeasure);try{let z=yield(0,U2.s)(c.api.postOfferingPrice(m));console.log("precio"),console.log(z),c.createdPrices[n].id=z.id,n==c.createdPrices.length-1&&c.saveOfferInfo()}catch(z){console.error("There was an error while creating offers price!",z),z.error.error?(console.log(z),c.errorMessage="Error: "+z.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[n].name,isBundle:!1,description:c.createdPrices[n].description,lifecycleStatus:c.createdPrices[n].lifecycleStatus,priceType:c.createdPrices[n].priceType};"custom"!=c.createdPrices[n].priceType&&(l.price={unit:c.createdPrices[n]?.price?.unit,value:c.createdPrices[n]?.price?.value}),"recurring"==c.createdPrices[n].priceType&&(l.recurringChargePeriodType=c.createdPrices[n].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[n].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[n].priceType&&(l.recurringChargePeriodType=c.createdPrices[n].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[n].recurringChargePeriodLength),"usage"==c.createdPrices[n].priceType&&(l.unitOfMeasure=c.createdPrices[n].unitOfMeasure),c.createdPrices[n].prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.createdPrices[n].prodSpecCharValueUse),c.createdPrices[n].unitOfMeasure&&(l.unitOfMeasure=c.createdPrices[n].unitOfMeasure);try{let r=yield(0,U2.s)(c.api.postOfferingPrice(l));console.log("precio"),console.log(r),c.createdPrices[n].id=r.id,n==c.createdPrices.length-1&&c.saveOfferInfo()}catch(r){console.error("There was an error while creating offers price!",r),r.error.error?(console.log(r),c.errorMessage="Error: "+r.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=[],n=[];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,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(a6),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(p6),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-offer"]],viewQuery:function(n,l){if(1&n&&(e.GBs(Ns0,5),e.GBs(Es0,5),e.GBs(Ds0,5),e.GBs(Ts0,5),e.GBs(Rs0,5),e.GBs(As0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.updatemetric=r.first),e.mGM(r=e.lsd())&&(l.responsemetric=r.first),e.mGM(r=e.lsd())&&(l.delaymetric=r.first),e.mGM(r=e.lsd())&&(l.usageUnit=r.first),e.mGM(r=e.lsd())&&(l.usageUnitAlter=r.first),e.mGM(r=e.lsd())&&(l.usageUnitUpdate=r.first)}},hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,Is0,1,1,"error-message",13),e.k0s()),2&n&&(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 t})();const Ps0=(t,a)=>a.id,$s0=(t,a)=>({"break-all":t,"break-words":a});function js0(t,a){1&t&&(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 Os0(t,a){if(1&t&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Bs0(t,a){if(1&t&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Vs0(t,a){if(1&t&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Us0(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Hs0(t,a){1&t&&(e.j41(0,"span",45),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function Gs0(t,a){1&t&&(e.j41(0,"span",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function Ys0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.goToCreateCustom(l))}),e.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",55),e.k0s()()}}function qs0(t,a){if(1&t){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,Os0,2,1,"span",45)(5,Bs0,2,1)(6,Vs0,2,1)(7,Us0,2,1),e.k0s(),e.j41(8,"td",46),e.DNE(9,Hs0,3,3,"span",45)(10,Gs0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",49),e.nrm(17,"path",50),e.k0s()(),e.DNE(18,Ys0,3,0,"button",51),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(9,$s0,n.hasLongWord(c.name,20),!n.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,n.customMap[c.id]?18:-1)}}function Xs0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_offerings")," "))}function Ws0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Js0(t,a){if(1&t&&e.DNE(0,Ws0,6,3,"div",59),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Qs0(t,a){1&t&&(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 Zs0(t,a){if(1&t&&(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,qs0,19,12,"tr",41,Ps0,!1,Xs0,7,3,"div",42),e.k0s()()(),e.DNE(24,Js0,1,1)(25,Qs0,6,0),e.k0s()),2&t){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 Ks0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.cdr=l,this.localStorage=r,this.eventMessage=m,this.paginationService=z,this.priceService=F,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.faSparkles=D2.p7g,this.searchField=new p.MJ,this.offers=[],this.nextOffers=[],this.page=0,this.PROD_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initOffers()})}ngOnInit(){this.initOffers()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.offers=[],this.nextOffers=[],this.getOffers(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getOffers(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateOffer(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateOffer(c)}goToCreateCustom(c){this.eventMessage.emitSellerCreateCustomOffer(c)}getOffers(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.PROD_SPEC_LIMIT,c,n.offers,n.nextOffers,{filters:n.status,partyId:n.partyId,sort:n.sort,isBundle:n.isBundle},n.api.getProductOfferByOwner.bind(n.api)).then(function(){var r=(0,b1.A)(function*(m){n.page_check=m.page_check,n.offers=m.items,n.nextOffers=m.nextItems,n.page=m.page,n.loading=!1,n.loading_more=!1,n.customMap={};for(const z of n.offers)n.customMap[z.id]=yield n.priceService.isCustomOffering(z)});return function(m){return r.apply(this,arguments)}}())})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getOffers(!0)})()}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(A6),e.rXU(pe))}}static{this.\u0275cmp=e.VBU({type:t,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"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&(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,js0,6,0,"div",29)(52,Zs0,26,17),e.k0s()),2&n&&(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:[L.YU,J2.aY,L.vh,s1.D9]})}}return t})();const ea0=["updatemetric"],ca0=["responsemetric"],ta0=["delaymetric"],na0=["usageUnit"],la0=["usageUnitUpdate"],sa0=["usageUnitAlter"];function aa0(t,a){if(1&t&&e.nrm(0,"error-message",14),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let aE1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=h1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=h1.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=[$E.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=$E.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,P1.Q)(this.destroy$)).subscribe(N1=>{if("CategoryAdded"===N1.type&&this.addCategory(N1.value),"ChangedSession"===N1.type&&this.initPartyInfo(),"SavePricePlan"===N1.type&&(this.createdPrices.push(N1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===N1.type){let J1=N1.value;-1!=this.createdPrices.findIndex(v2=>v2.id===J1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((v2,G2)=>G2==G2?J1:v2)),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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}populateOfferInfo(){var c=this;return(0,b1.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 n=(0,b1.A)(function*(l){c.selectedProdSpec=l});return function(l){return n.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(n=>{"procurement"==n.name&&(c.procurementMode=n.description)})),c.offer.productOfferingPrice)for(let n=0;n{z.push(I)});console.log(z),m.bundledPopRelationship=z,console.log(m)}r.recurringChargePeriodType&&console.log("recurring"),r.unitOfMeasure&&(console.log("usage"),m.unitOfMeasure=r.unitOfMeasure),c.createdPrices.push(r),c.oldPrices.push(r)});return function(r){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,S2()}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 n=this.createdPrices.findIndex(l=>l.id===c.id);-1!==n&&this.createdPrices.splice(n,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(n=>n===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 n=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==n&&this.createdSLAs.splice(n,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 n=0;nr.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let r=0;r{if(n=l,c.children=n,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=n.length)for(let r=0;rz.id==n.id)){let z=r.findIndex(F=>F.id==n.id);r[z]=n,c[l].children=r}this.saveChildren(r,n)}}}addParent(c){const n=this.unformattedCategories.findIndex(l=>l.id===c);-1!=n&&(0==this.unformattedCategories[n].isRoot?this.addCategory(this.unformattedCategories[n]):this.selectedCategories.push(this.unformattedCategories[n]))}addCategory(c){const n=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==n?(console.log("eliminar"),this.selectedCategories.splice(n,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(r=>r.id===c.parentId);-1==n&&-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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingCatalog=!0),n.paginationService.getItemsPaginated(n.catalogPage,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.catalogPageCheck=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.catalogPage=r.page,n.loadingCatalog=!1,n.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,b1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingProdSpec=!0),n.paginationService.getItemsPaginated(n.prodSpecPage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecPageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.prodSpecPage=r.page,n.loadingProdSpec=!1,n.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,b1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PRODUCT_LIMIT,c,n.bundledOffers,n.nextBundledOffers,{filters:["Active","Launched"],partyId:n.partyId,sort:void 0,isBundle:!1},n.api.getProductOfferByOwner.bind(n.api)).then(r=>{n.bundlePageCheck=r.page_check,n.bundledOffers=r.items,n.nextBundledOffers=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const n=this.offersBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.offersBundle.splice(n,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,b1.A)(function*(){if(c.createdPrices.length>0){let n=c.createdPrices.length-1,l=!1,r=!1;for(let m=0;mF.id===c.createdPrices[m].id);-1==z?(l=!0,r=!0):c.oldPrices[z]!=c.createdPrices[m]&&(n=m,l=!1,r=!0)}if(0==r)c.saveOfferInfo();else{console.log(c.oldPrices),console.log(c.createdPrices);for(let m=0;mF.id===c.createdPrices[m].id);if(-1==z)if(console.log("precio nuevo"),1==c.createdPrices[m].isBundle){let F=c.createdPrices[m].bundledPopRelationship,I=[];if(null!=F)for(let d1=0;d1{c.showError=!1},3e3)}}try{let J1=yield(0,U2.s)(c.api.postOfferingPrice(i1));I.push({id:J1.id,href:J1.id,name:J1.name}),console.log("componente"),console.log(J1)}catch(J1){console.error("There was an error while creating offers price!",J1),J1.error.error?(console.log(J1),c.errorMessage="Error: "+J1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let J={name:c.createdPrices[m].name,isBundle:!0,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus,bundledPopRelationship:I};c.createdPrices[m].prodSpecCharValueUse&&(J.prodSpecCharValueUse=c.createdPrices[m].prodSpecCharValueUse),c.createdPrices[m].unitOfMeasure&&(J.unitOfMeasure=c.createdPrices[m].unitOfMeasure);try{let d1=yield(0,U2.s)(c.api.postOfferingPrice(J));console.log("precio"),console.log(d1),c.createdPrices[m].id=d1.id,m==c.createdPrices.length-1&&c.saveOfferInfo()}catch(d1){console.error("There was an error while creating offers price!",d1),d1.error.error?(console.log(d1),c.errorMessage="Error: "+d1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let F={name:c.createdPrices[m].name,isBundle:!1,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus,priceType:c.createdPrices[m].priceType};"custom"!=c.createdPrices[m].priceType&&(F.price={unit:c.createdPrices[m]?.price?.unit,value:c.createdPrices[m]?.price?.value}),"recurring"==c.createdPrices[m].priceType&&(F.recurringChargePeriodType=c.createdPrices[m].recurringChargePeriodType,F.recurringChargePeriodLength=c.createdPrices[m].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[m].priceType&&(F.recurringChargePeriodType=c.createdPrices[m].recurringChargePeriodType,F.recurringChargePeriodLength=c.createdPrices[m].recurringChargePeriodLength),"usage"==c.createdPrices[m].priceType&&(F.unitOfMeasure=c.createdPrices[m].unitOfMeasure),c.createdPrices[m].prodSpecCharValueUse&&(F.prodSpecCharValueUse=c.createdPrices[m].prodSpecCharValueUse),c.createdPrices[m].unitOfMeasure&&(F.unitOfMeasure=c.createdPrices[m].unitOfMeasure);try{let I=yield(0,U2.s)(c.api.postOfferingPrice(F));console.log("precio"),console.log(I),c.createdPrices[m].id=I.id,m==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 if(console.log("precio existente -update"),c.oldPrices[z]!=c.createdPrices[m])if(1==c.createdPrices[m].isBundle){let F=c.createdPrices[m].bundledPopRelationship,I=[];if(null!=F)for(let i1=0;i1J1.id===F?.[i1]?.id);if(c.oldPrices[z].bundledPopRelationship[N1].id.startsWith("urn:ngsi")||(N1=-1),-1!=N1){let J1={id:F[i1].id,name:F[i1].name,description:F[i1].description,lifecycleStatus:F[i1].lifecycleStatus,priceType:F[i1].priceType,price:{unit:F[i1]?.price?.unit,value:F[i1]?.price?.value}};"recurring"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"recurring-prepaid"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"usage"==F[i1].priceType&&(J1.unitOfMeasure=F[i1].unitOfMeasure),F[i1].prodSpecCharValueUse&&(J1.prodSpecCharValueUse=F[i1].prodSpecCharValueUse),F[i1].unitOfMeasure&&(J1.unitOfMeasure=F[i1].unitOfMeasure);let u2=F[i1].popRelationship,v2=c.oldPrices[z].bundledPopRelationship[N1].popRelationship;if(null!=u2)if(null!=v2&&v2!=u2){let G2={id:u2[0]?.id,name:u2[0]?.name,priceType:u2[0]?.priceType,validFor:u2[0]?.validFor};u2[0].percentage?G2.percentage=u2[0]?.percentage:G2.price=u2[0]?.price;try{let E0=G2.id;delete G2.id,yield(0,U2.s)(c.api.updateOfferingPrice(G2,E0))}catch(E0){console.error("There was an error while creating offers price!",E0),E0.error.error?(console.log(E0),c.errorMessage="Error: "+E0.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let G2={name:u2[0]?.name,priceType:u2[0]?.priceType,validFor:u2[0]?.validFor};u2[0].percentage?G2.percentage=u2[0]?.percentage:G2.price=u2[0]?.price;try{let E0=yield(0,U2.s)(c.api.postOfferingPrice(G2));console.log("price Alteration"),console.log(E0),J1.popRelationship=[{id:E0.id,href:E0.id,name:E0.name}]}catch(E0){console.error("There was an error while creating offers price!",E0),E0.error.error?(console.log(E0),c.errorMessage="Error: "+E0.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(J1),console.log("id"),console.log(J1.id);let G2=J1.id;delete J1.id,yield(0,U2.s)(c.api.updateOfferingPrice(J1,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 J1={name:F[i1].name,description:F[i1].description,lifecycleStatus:F[i1].lifecycleStatus,priceType:F[i1].priceType,price:{unit:F[i1]?.price?.unit,value:F[i1]?.price?.value}};"recurring"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"recurring-prepaid"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"usage"==F[i1].priceType&&(J1.unitOfMeasure=F[i1].unitOfMeasure),F[i1].prodSpecCharValueUse&&(J1.prodSpecCharValueUse=F[i1].prodSpecCharValueUse),F[i1].unitOfMeasure&&(J1.unitOfMeasure=F[i1].unitOfMeasure);let u2=F[i1].popRelationship;if(null!=u2){let v2={name:u2[0]?.name,priceType:u2[0]?.priceType,validFor:u2[0]?.validFor};u2[0].percentage?v2.percentage=u2[0]?.percentage:v2.price=u2[0]?.price;try{let G2=yield(0,U2.s)(c.api.postOfferingPrice(v2));console.log("price Alteration"),console.log(G2),J1.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 v2=yield(0,U2.s)(c.api.postOfferingPrice(J1));I.push({id:v2.id,href:v2.id,name:v2.name}),console.log("componente"),console.log(v2)}catch(v2){console.error("There was an error while creating offers price!",v2),v2.error.error?(console.log(v2),c.errorMessage="Error: "+v2.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[m]);let J=c.createdPrices[m].bundledPopRelationship?.map(({id:i1,href:N1,name:J1})=>({id:i1,href:N1,name:J1})),d1={id:c.createdPrices[m].id,name:c.createdPrices[m].name,isBundle:!0,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus,bundledPopRelationship:J?.concat(I).filter(i1=>i1.id&&i1.id.startsWith("urn:ngsi"))};try{let i1=d1.id;delete d1.id;let N1=yield(0,U2.s)(c.api.updateOfferingPrice(d1,i1));console.log("precio"),console.log(N1),c.createdPrices[m].id=N1.id,0==l&&m==n&&c.saveOfferInfo()}catch(i1){console.error("There was an error while creating offers price!",i1),i1.error.error?(console.log(i1),c.errorMessage="Error: "+i1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let F={id:c.createdPrices[m].id,name:c.createdPrices[m].name,isBundle:!0,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus};try{let I=F.id;delete F.id;let J=yield(0,U2.s)(c.api.updateOfferingPrice(F,I));console.log("precio"),console.log(J),c.createdPrices[m].id=J.id,0==l&&m==n&&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.offerToUpdate)})()}saveOfferInfo(){let c=[],n=[];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,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(a6),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(p6),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-offer"]],viewQuery:function(n,l){if(1&n&&(e.GBs(ea0,5),e.GBs(ca0,5),e.GBs(ta0,5),e.GBs(na0,5),e.GBs(la0,5),e.GBs(sa0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.updatemetric=r.first),e.mGM(r=e.lsd())&&(l.responsemetric=r.first),e.mGM(r=e.lsd())&&(l.delaymetric=r.first),e.mGM(r=e.lsd())&&(l.usageUnit=r.first),e.mGM(r=e.lsd())&&(l.usageUnitUpdate=r.first),e.mGM(r=e.lsd())&&(l.usageUnitAlter=r.first)}},hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,aa0,1,1,"error-message",14),e.k0s()),2&n&&(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 t})();const oa0=["attachName"],ia0=["imgURL"],ra0=["certificationName"],uG=(t,a)=>a.id,oE1=(t,a)=>a.name,da0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),fa0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),u8=(t,a)=>({"break-all":t,"break-words":a}),mG=()=>({standalone:!0});function ua0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",33),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",34),e.EFF(2),e.k0s(),e.j41(3,"span",35),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function ma0(t,a){if(1&t&&(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.j41(19,"label",44),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"app-markdown-textarea",45),e.k0s()),2&t){let c,n,l;const r=e.XpG();e.Y8G("formGroup",r.generalForm),e.R7$(3),e.JRh(e.bMT(4,9,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=r.generalForm.get("name"))?null:c.invalid)&&""!=r.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(8,11,"CREATE_PROD_SPEC._product_version")),e.R7$(2),e.Y8G("ngClass",1==(null==(n=r.generalForm.get("version"))?null:n.invalid)?"border-red-600":"border-gray-300"),e.R7$(3),e.JRh(e.bMT(13,13,"CREATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=r.generalForm.get("brand"))?null:l.invalid)&&""!=r.generalForm.value.brand?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(17,15,"CREATE_PROD_SPEC._id_number")),e.R7$(4),e.JRh(e.bMT(21,17,"CREATE_PROD_SPEC._product_description"))}}function pa0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function ha0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function ga0(t,a){if(1&t&&(e.j41(0,"span",68),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function _a0(t,a){if(1&t&&(e.j41(0,"span",72),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function La0(t,a){if(1&t&&(e.j41(0,"span",73),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ca0(t,a){if(1&t&&(e.j41(0,"span",74),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function za0(t,a){1&t&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._simple")))}function Ma0(t,a){1&t&&(e.j41(0,"span",72),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._bundle")))}function xa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",67),e.DNE(4,ga0,2,1,"span",68)(5,_a0,2,1)(6,La0,2,1)(7,Ca0,2,1),e.k0s(),e.j41(8,"td",67),e.DNE(9,za0,3,3,"span",68)(10,Ma0,3,3),e.k0s(),e.j41(11,"td",69),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",70)(15,"input",71),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.addProdToBundle(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(),e.Y8G("ngClass",e.l_i(9,u8,n.hasLongWord(c.name,20),!n.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",n.isProdInBundle(c))}}function ba0(t,a){if(1&t&&(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",63),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",64),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",62),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,xa0,16,12,"tr",65,uG),e.k0s()()()),2&t){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 ya0(t,a){if(1&t&&e.DNE(0,ha0,7,3,"div",55)(1,ba0,22,15),2&t){const c=e.XpG(3);e.vxM(0,0==c.prodSpecs.length?0:1)}}function Fa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",76),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function va0(t,a){if(1&t&&e.DNE(0,Fa0,6,3,"div",75),2&t){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function ka0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function wa0(t,a){if(1&t&&e.DNE(0,pa0,6,0,"div",50)(1,ya0,2,1)(2,va0,1,1)(3,ka0,6,0),2&t){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function Sa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",46)(1,"label",40),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",47)(5,"input",48),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleBundleCheck())}),e.k0s(),e.nrm(6,"div",49),e.k0s()(),e.DNE(7,wa0,4,2)}if(2&t){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 Na0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",94),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeSelfAtt())}),e.qSk(),e.j41(1,"svg",85),e.nrm(2,"path",95),e.k0s()()}}function Ea0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"div",83)(2,"label",101),e.EFF(3),e.k0s(),e.j41(4,"button",102),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addISO(l))}),e.qSk(),e.j41(5,"svg",103),e.nrm(6,"path",78),e.k0s()()()()}if(2&t){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 Da0(t,a){if(1&t&&(e.j41(0,"div",99)(1,"ul",100),e.Z7z(2,Ea0,7,2,"li",null,e.fX1),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function Ta0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",96),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",97),e.nrm(4,"path",98),e.k0s()(),e.DNE(5,Da0,4,0,"div",99)}if(2&t){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 Ra0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s(),e.j41(5,"td",105)(6,"button",106),e.bIt("click",function(l){const r=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(7,"svg",85),e.nrm(8,"path",86),e.k0s()(),e.joV(),e.j41(9,"button",107),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.removeISO(l))}),e.qSk(),e.j41(10,"svg",85),e.nrm(11,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Aa0(t,a){1&t&&(e.j41(0,"div",89)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_comp_profile")," "))}function Ia0(t,a){1&t&&(e.j41(0,"div",108),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",109),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function Pa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s(),e.j41(5,"td",105)(6,"button",94),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.removeCert(l))}),e.qSk(),e.j41(7,"svg",85),e.nrm(8,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function $a0(t,a){if(1&t&&(e.j41(0,"h3",80),e.EFF(1," You added the following additional certifications: "),e.k0s(),e.j41(2,"div",88)(3,"table",60)(4,"thead",61)(5,"tr")(6,"th",62),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",62),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",62),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"tbody"),e.Z7z(16,Pa0,9,6,"tr",65,oE1),e.k0s()()()),2&t){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 ja0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",110),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",111),e.nrm(4,"path",78),e.k0s()()()}}function Oa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",124),e.qSk(),e.j41(1,"svg",125),e.nrm(2,"path",126),e.k0s(),e.joV(),e.j41(3,"div",127)(4,"p",128),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",129),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&t&&(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 Ba0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",122),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,Oa0,10,6,"ng-template",123),e.k0s()}}function Va0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",130)(1,"span",54),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",131),e.EFF(4),e.k0s(),e.j41(5,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAdditionalCert(!0))}),e.qSk(),e.j41(6,"svg",133),e.nrm(7,"path",95),e.k0s()()()}if(2&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function Ua0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",112)(1,"h3",80),e.EFF(2," Add an additional certification: "),e.k0s(),e.j41(3,"div",113)(4,"div",114)(5,"label",115),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",116,0),e.k0s(),e.DNE(10,Ba0,2,0,"ngx-file-drop",117)(11,Va0,8,1),e.k0s(),e.j41(12,"div",118)(13,"button",119),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",111),e.nrm(16,"path",120),e.k0s()(),e.joV(),e.j41(17,"button",121),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&t){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 Ha0(t,a){if(1&t){const c=e.RV6();e.j41(0,"h3",80),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",81)(4,"p",82),e.EFF(5),e.k0s(),e.j41(6,"div",83)(7,"button",84),e.bIt("click",function(l){return e.eBV(c),e.XpG().toggleUploadSelfAtt(),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(8,"svg",85),e.nrm(9,"path",86),e.k0s()(),e.DNE(10,Na0,3,0,"button",87),e.k0s()(),e.DNE(11,Ta0,6,4),e.joV(),e.j41(12,"div",88)(13,"table",60)(14,"thead",61)(15,"tr")(16,"th",62),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"th",62),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"th",62),e.EFF(23),e.nI1(24,"translate"),e.k0s()()(),e.j41(25,"tbody"),e.Z7z(26,Ra0,12,6,"tr",65,oE1,!1,Aa0,9,3,"div",89),e.k0s()()(),e.j41(29,"div",90)(30,"div",91),e.DNE(31,Ia0,4,3,"div",92),e.k0s()(),e.DNE(32,$a0,18,9)(33,ja0,5,0,"div",93)(34,Ua0,19,8)}if(2&t){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 Ga0(t,a){1&t&&(e.j41(0,"div",55)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_chars")," "))}function Ya0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value),", ")}}function qa0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value)," ")}}function Xa0(t,a){if(1&t&&e.DNE(0,Ya0,1,1)(1,qa0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Wa0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ja0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Qa0(t,a){if(1&t&&e.DNE(0,Wa0,4,2)(1,Ja0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Za0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Ka0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function eo0(t,a){if(1&t&&e.DNE(0,Za0,1,1)(1,Ka0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function co0(t,a){if(1&t&&e.DNE(0,Xa0,2,1)(1,Qa0,2,1)(2,eo0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function to0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function no0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lo0(t,a){if(1&t&&e.DNE(0,to0,4,3)(1,no0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function so0(t,a){if(1&t&&e.DNE(0,co0,3,1)(1,lo0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ao0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",134),e.EFF(2),e.k0s(),e.j41(3,"td",135),e.EFF(4),e.k0s(),e.j41(5,"td",104),e.Z7z(6,so0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",70)(9,"button",136),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",133),e.nrm(11,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function oo0(t,a){if(1&t&&(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",64),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,ao0,12,10,"tr",65,uG),e.k0s()()()),2&t){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 io0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",137),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",111),e.nrm(5,"path",78),e.k0s()()()}if(2&t){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 ro0(t,a){1&t&&(e.j41(0,"option",148),e.EFF(1,"Endpoint URL"),e.k0s(),e.j41(2,"option",149),e.EFF(3,"Upstream Address"),e.k0s(),e.j41(4,"option",150),e.EFF(5,"Endpoint Description"),e.k0s(),e.j41(6,"option",151),e.EFF(7,"Target Specification"),e.k0s(),e.j41(8,"option",152),e.EFF(9,"Service Configuration"),e.k0s(),e.j41(10,"option",153),e.EFF(11,"Credentials Configuration"),e.k0s(),e.j41(12,"option",154),e.EFF(13,"Authorization Policy"),e.k0s())}function do0(t,a){1&t&&(e.j41(0,"option",155),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",156),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",157),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",158),e.EFF(7,"Boolean"),e.k0s())}function fo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div")(1,"label",140),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",162),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.optionalDftTrue,l)||(r.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",163),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",163),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&t){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,mG)),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 uo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",159)(1,"label",160),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",47)(5,"input",161),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.isOptional,l)||(r.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",49),e.k0s()(),e.DNE(7,fo0,11,14,"div")}if(2&t){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,mG)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function mo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",166)(1,"div",167)(2,"input",168),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.j41(3,"label",169),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",170),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",133),e.nrm(10,"path",95),e.k0s()()()}if(2&t){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 po0(t,a){if(1&t&&e.Z7z(0,mo0,11,4,"div",166,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function ho0(t,a){if(1&t&&(e.j41(0,"label",172),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function go0(t,a){if(1&t&&(e.j41(0,"label",172),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(5);e.R7$(),e.JRh(n.getValuePreview(c.value))}}function _o0(t,a){if(1&t&&(e.j41(0,"label",172),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function Lo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",166)(1,"div",167)(2,"input",171),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,ho0,5,2,"label",172)(4,go0,2,1)(5,_o0,2,1),e.k0s(),e.j41(6,"button",170),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(7,"svg",133),e.nrm(8,"path",95),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===n.charTypeSelected?3:n.isJsonCharacteristicType(n.charTypeSelected)?4:5)}}function Co0(t,a){if(1&t&&e.Z7z(0,Lo0,9,2,"div",166,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function zo0(t,a){if(1&t&&(e.j41(0,"label",164),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",165),e.DNE(3,po0,2,0)(4,Co0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function Mo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",146)(1,"input",173),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",174),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",175),e.nrm(4,"path",78),e.k0s()()()}if(2&t){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 xo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",176)(1,"div",177)(2,"span",178),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",179),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",177)(7,"span",178),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",180),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",181),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",175),e.nrm(13,"path",78),e.k0s()()()}if(2&t){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 bo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",159)(1,"label",182),e.EFF(2,"Default value"),e.k0s(),e.j41(3,"label",47)(4,"input",183),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.booleanDefaultTrue,l)||(r.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",49),e.k0s()()}if(2&t){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,mG))}}function yo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",176)(1,"div",177)(2,"span",178),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",184),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",177)(7,"span",178),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",185),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.toValue,l)||(r.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",177)(12,"span",178),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",186),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",187),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",175),e.nrm(18,"path",78),e.k0s()()()}if(2&t){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 Fo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",188)(1,"label",189),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",190),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.jsonValue,l)||(r.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",191),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",192),e.nrm(7,"path",78),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&t){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 vo0(t,a){if(1&t&&e.DNE(0,Fo0,10,9,"div",188),2&t){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function ko0(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",138)(1,"div")(2,"label",36),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",139),e.k0s(),e.j41(6,"div")(7,"label",140),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",141),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.charTypeSelected,l)||(r.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onTypeChange(l))}),e.DNE(11,ro0,14,0)(12,do0,8,0),e.k0s()(),e.j41(13,"div",142)(14,"label",143),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"textarea",144),e.k0s(),e.DNE(18,uo0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,zo0,5,1),e.j41(21,"label",145),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,Mo0,5,3,"div",146)(25,xo0,14,10)(26,bo0,6,3)(27,yo0,19,14)(28,vo0,1,1),e.j41(29,"div",118)(30,"button",147),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",111),e.nrm(34,"path",120),e.k0s()()()()}if(2&t){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,mG)),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 wo0(t,a){if(1&t&&e.DNE(0,Ga0,9,3,"div",55)(1,oo0,19,12)(2,io0,6,3,"div",93)(3,ko0,35,26),2&t){const c=e.XpG();e.vxM(0,0===c.getFilteredCharacteristicsForCurrentStep().length?0:1),e.R7$(2),e.vxM(2,c.showCreateChar?3:2)}}function So0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function No0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function Eo0(t,a){if(1&t&&(e.j41(0,"span",68),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Do0(t,a){if(1&t&&(e.j41(0,"span",72),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function To0(t,a){if(1&t&&(e.j41(0,"span",73),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ro0(t,a){if(1&t&&(e.j41(0,"span",74),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ao0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",67),e.DNE(4,Eo0,2,1,"span",68)(5,Do0,2,1)(6,To0,2,1)(7,Ro0,2,1),e.k0s(),e.j41(8,"td",69),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",70)(12,"input",71),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addResToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,n.hasLongWord(c.name,20),!n.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",n.isResSelected(c))}}function Io0(t,a){if(1&t&&(e.j41(0,"div",59)(1,"table",193)(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",64),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,Ao0,13,11,"tr",65,uG),e.k0s()()()),2&t){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 Po0(t,a){if(1&t&&e.DNE(0,No0,7,3,"div",55)(1,Io0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function $o0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",194),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function jo0(t,a){if(1&t&&e.DNE(0,$o0,6,3,"div",75),2&t){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function Oo0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Bo0(t,a){if(1&t&&e.DNE(0,So0,6,0,"div",50)(1,Po0,2,1)(2,jo0,1,1)(3,Oo0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function Vo0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Uo0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function Ho0(t,a){if(1&t&&(e.j41(0,"span",68),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Go0(t,a){if(1&t&&(e.j41(0,"span",72),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Yo0(t,a){if(1&t&&(e.j41(0,"span",73),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function qo0(t,a){if(1&t&&(e.j41(0,"span",74),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Xo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",67),e.DNE(4,Ho0,2,1,"span",68)(5,Go0,2,1)(6,Yo0,2,1)(7,qo0,2,1),e.k0s(),e.j41(8,"td",69),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",70)(12,"input",71),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addServToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,n.hasLongWord(c.name,20),!n.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",n.isServSelected(c))}}function Wo0(t,a){if(1&t&&(e.j41(0,"div",59)(1,"table",195)(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",64),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,Xo0,13,11,"tr",65,uG),e.k0s()()()),2&t){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 Jo0(t,a){if(1&t&&e.DNE(0,Uo0,7,3,"div",55)(1,Wo0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function Qo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",76),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Zo0(t,a){if(1&t&&e.DNE(0,Qo0,6,3,"div",75),2&t){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function Ko0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function ei0(t,a){if(1&t&&e.DNE(0,Vo0,6,0,"div",50)(1,Jo0,2,1)(2,Zo0,1,1)(3,Ko0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function ci0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",207),e.nrm(1,"img",209),e.j41(2,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",133),e.nrm(4,"path",95),e.k0s()()()}if(2&t){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function ti0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",124),e.qSk(),e.j41(1,"svg",125),e.nrm(2,"path",126),e.k0s(),e.joV(),e.j41(3,"div",127)(4,"p",128),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",219),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&t&&(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 ni0(t,a){1&t&&(e.j41(0,"div",220),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",109),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_name")," "))}function li0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",210)(1,"ngx-file-drop",211),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileLeave(l))}),e.DNE(2,ti0,10,6,"ng-template",123),e.k0s()(),e.j41(3,"label",212),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",213),e.DNE(7,ni0,4,3,"div",214),e.j41(8,"div",215)(9,"input",216,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",217),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",133),e.nrm(13,"path",218),e.k0s()()()()}if(2&t){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 si0(t,a){1&t&&(e.j41(0,"div",208)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_att")," "))}function ai0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s(),e.j41(5,"td",70)(6,"button",136),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.removeAtt(l))}),e.qSk(),e.j41(7,"svg",133),e.nrm(8,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function oi0(t,a){if(1&t&&(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",62),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,"tbody"),e.Z7z(14,ai0,9,6,"tr",65,e.fX1),e.k0s()()()),2&t){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 ii0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",221),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",111),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._new_att")," "))}function ri0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",124),e.qSk(),e.j41(1,"svg",125),e.nrm(2,"path",126),e.k0s(),e.joV(),e.j41(3,"div",127)(4,"p",128),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",129),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&t&&(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 di0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",122),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,ri0,10,6,"ng-template",123),e.k0s()}}function fi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",130)(1,"span",54),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",131),e.EFF(4),e.k0s(),e.j41(5,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAtt())}),e.qSk(),e.j41(6,"svg",133),e.nrm(7,"path",95),e.k0s()()()}if(2&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function ui0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",112)(1,"div",222)(2,"div",114)(3,"label",223),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",224,2),e.k0s(),e.DNE(8,di0,2,0,"ngx-file-drop",117)(9,fi0,8,1),e.k0s(),e.j41(10,"div",118)(11,"button",119),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",111),e.nrm(15,"path",120),e.k0s()()()()}if(2&t){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 mi0(t,a){if(1&t&&(e.j41(0,"div",196)(1,"h4",197),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",198),e.qSk(),e.j41(5,"svg",199),e.nrm(6,"path",200),e.k0s()(),e.joV(),e.j41(7,"div",201)(8,"div",202)(9,"h3",203),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",204)(13,"p",205),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nrm(16,"div",206),e.k0s()(),e.DNE(17,ci0,5,1,"div",207)(18,li0,14,8),e.j41(19,"h4",197),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,si0,9,3,"div",208)(23,oi0,16,9)(24,ii0,6,3,"div",93)(25,ui0,16,11)),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.JRh(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 pi0(t,a){1&t&&(e.j41(0,"div",225)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_relatioships")," "))}function hi0(t,a){if(1&t&&(e.j41(0,"span",226),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function gi0(t,a){if(1&t&&(e.j41(0,"span",228),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function _i0(t,a){if(1&t&&(e.j41(0,"span",229),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Li0(t,a){if(1&t&&(e.j41(0,"span",230),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Ci0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",70),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.DNE(6,hi0,2,1,"span",226)(7,gi0,2,1)(8,_i0,2,1)(9,Li0,2,1),e.k0s(),e.j41(10,"td",69),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",70)(14,"button",227),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.deleteRel(l))}),e.qSk(),e.j41(15,"svg",133),e.nrm(16,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,n.hasLongWord(c.productSpec.name,20),!n.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 zi0(t,a){if(1&t&&(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",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",64),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",62),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,Ci0,17,11,"tr",65,e.fX1),e.k0s()()()),2&t){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 Mi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",231),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",111),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._add_relationship")," "))}function xi0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function bi0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function yi0(t,a){1&t&&(e.j41(0,"span",68),e.EFF(1,"Simple"),e.k0s())}function Fi0(t,a){1&t&&(e.j41(0,"span",72),e.EFF(1,"Bundle"),e.k0s())}function vi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",241),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.selectRelationship(l))}),e.j41(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,yi0,2,0,"span",68)(5,Fi0,2,0),e.k0s(),e.j41(6,"td",242),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.Y8G("ngClass",c.id==n.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,n.hasLongWord(c.name,20),!n.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 ki0(t,a){if(1&t&&(e.j41(0,"div",238)(1,"table",60)(2,"thead",61)(3,"tr")(4,"th",62),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",239),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,vi0,9,11,"tr",240,e.fX1),e.k0s()()()),2&t){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 wi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",76),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Si0(t,a){if(1&t&&e.DNE(0,wi0,6,3,"div",75),2&t){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Ni0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Ei0(t,a){if(1&t&&e.DNE(0,bi0,7,3,"div",55)(1,ki0,16,9)(2,Si0,1,1)(3,Ni0,6,0),2&t){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 Di0(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",232),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onRelChange(l))}),e.j41(4,"option",233),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",234),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",235),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",236),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,xi0,6,0,"div",50)(13,Ei0,4,2),e.j41(14,"div",118)(15,"button",237),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",111),e.nrm(19,"path",120),e.k0s()()()}if(2&t){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 Ti0(t,a){if(1&t&&(e.j41(0,"div",21),e.DNE(1,pi0,9,3,"div",225)(2,zi0,22,15)(3,Mi0,6,3,"div",93)(4,Di0,20,9),e.k0s()),2&t){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 Ri0(t,a){1&t&&(e.j41(0,"div",243),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Ai0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",246),e.EFF(4),e.k0s()),2&t){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 Ii0(t,a){if(1&t&&(e.j41(0,"span",249),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Pi0(t,a){if(1&t&&(e.j41(0,"span",250),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function $i0(t,a){if(1&t&&(e.j41(0,"span",251),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function ji0(t,a){if(1&t&&(e.j41(0,"span",252),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Oi0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",253),e.nrm(4,"markdown",254),e.k0s()),2&t){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 Bi0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",207),e.nrm(4,"img",209),e.k0s()),2&t){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 Vi0(t,a){if(1&t&&(e.j41(0,"span",226),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ui0(t,a){if(1&t&&(e.j41(0,"span",228),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Hi0(t,a){if(1&t&&(e.j41(0,"span",229),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Gi0(t,a){if(1&t&&(e.j41(0,"span",230),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Yi0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,Vi0,2,1,"span",226)(5,Ui0,2,1)(6,Hi0,2,1)(7,Gi0,2,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.name,20),!n.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 qi0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),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,"tbody"),e.Z7z(14,Yi0,8,6,"tr",65,e.fX1),e.k0s()()()),2&t){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 Xi0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value),", ")}}function Wi0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value)," ")}}function Ji0(t,a){if(1&t&&e.DNE(0,Xi0,1,1)(1,Wi0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Qi0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Zi0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ki0(t,a){if(1&t&&e.DNE(0,Qi0,4,2)(1,Zi0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function er0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function cr0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function tr0(t,a){if(1&t&&e.DNE(0,er0,1,1)(1,cr0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function nr0(t,a){if(1&t&&e.DNE(0,Ji0,2,1)(1,Ki0,2,1)(2,tr0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function lr0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function sr0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ar0(t,a){if(1&t&&e.DNE(0,lr0,4,3)(1,sr0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function or0(t,a){if(1&t&&e.DNE(0,nr0,3,1)(1,ar0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ir0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",135),e.EFF(4),e.k0s(),e.j41(5,"td",104),e.Z7z(6,or0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function rr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",64),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,ir0,8,10,"tr",65,e.fX1),e.k0s()()()),2&t){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 dr0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function fr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,dr0,3,5,"tr",65,e.fX1),e.k0s()()()),2&t){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 ur0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function mr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,ur0,3,5,"tr",65,e.fX1),e.k0s()()()),2&t){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 pr0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function hr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),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,"tbody"),e.Z7z(14,pr0,5,6,"tr",65,e.fX1),e.k0s()()()),2&t){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 gr0(t,a){if(1&t&&(e.j41(0,"span",256),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function _r0(t,a){if(1&t&&(e.j41(0,"span",257),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Lr0(t,a){if(1&t&&(e.j41(0,"span",258),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Cr0(t,a){if(1&t&&(e.j41(0,"span",259),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function zr0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",70),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.DNE(6,gr0,2,1,"span",256)(7,_r0,2,1)(8,Lr0,2,1)(9,Cr0,2,1),e.k0s(),e.j41(10,"td",69),e.EFF(11),e.nI1(12,"date"),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,n.hasLongWord(c.productSpec.name,20),!n.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 Mr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),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",63),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",64),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,zr0,13,11,"tr",65,e.fX1),e.k0s()()()),2&t){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 xr0(t,a){if(1&t&&(e.j41(0,"div",244)(1,"div")(2,"label",140),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",245),e.EFF(6),e.k0s(),e.j41(7,"label",38),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",246),e.EFF(11),e.k0s()(),e.j41(12,"div")(13,"label",140),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"label",245),e.EFF(17),e.k0s(),e.DNE(18,Ai0,5,4),e.k0s()(),e.j41(19,"div",247)(20,"label",248),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,Ii0,2,1,"span",249)(24,Pi0,2,1)(25,$i0,2,1)(26,ji0,2,1),e.k0s(),e.DNE(27,Oi0,5,8)(28,Bi0,5,4)(29,qi0,16,9)(30,rr0,19,12)(31,fr0,13,6)(32,mr0,13,6)(33,hr0,16,9)(34,Mr0,22,15)),2&t){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 br0(t,a){if(1&t&&(e.j41(0,"div",22),e.DNE(1,Ri0,6,0,"div",243)(2,xr0,35,33),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function yr0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",260),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&t){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 Fr0(t,a){if(1&t){const c=e.RV6();e.qSk(),e.j41(0,"svg",125),e.nrm(1,"path",126),e.k0s(),e.joV(),e.j41(2,"p",271),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"button",272),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}2&t&&(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 vr0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",31)(1,"div",261),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",262)(3,"button",263),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",264),e.nrm(5,"path",265),e.k0s(),e.joV(),e.j41(6,"span",54),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",266),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.dropped(l,r.selectedISO))})("onFileOver",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileLeave(l))}),e.DNE(10,Fr0,8,6,"ng-template",267),e.k0s(),e.j41(11,"div",268)(12,"button",269),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",270),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&t){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 kr0(t,a){if(1&t&&e.nrm(0,"error-message",32),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let wr0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=h1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=h1.c.RES_SPEC_LIMIT,this.BUNDLE_ENABLED=h1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=h1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=h1.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.currentStep=0,this.highestStep=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),s6]),brand:new p.MJ("",[p.k0.required,s6]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),s6]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),s6]),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=["endpointUrl","upstreamAddress","endpointDescription","targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.dataSpaceJsonCharacteristicTypes=["targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let N1=0;N1{"ChangedSession"===N1.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.bundlePageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const n=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.prodSpecsBundle.splice(n,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 n=this.availableISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("seleccionar"),this.availableISOS.splice(n,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 n=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(r=>r.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:n,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const n=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("eliminar additional cert"),this.additionalISOS.splice(n,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){console.log("remove self att"),console.log(this.selfAtt);const c=this.finishChars.findIndex(n=>n.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(n=>""===n.url)}hasSelfAttestation(){const c=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value;return"string"==typeof c?""!==c.trim():!!c}dropped(c,n){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(m=>{if(console.log("dropped"),m){const z=new FileReader;z.onload=F=>{const I=F.target.result.split(",")[1];console.log("BASE 64...."),console.log(I);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let d1={content:{name:A4()+"_"+m.name,data:I},contentType:m.type,isPublic:!0};if(!this.isValidFilename(d1.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(m.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 i1=this.selectedISOS.findIndex(N1=>N1.name===n.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{-1!==i1?(this.selectedISOS[i1].url=N1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=N1.content},error:N1=>{console.error("There was an error while uploading the file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.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 i1=this.finishChars.findIndex(N1=>N1.name===this.selfAtt.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{console.log(N1),-1!==i1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:N1.content}],this.finishChars[i1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+A4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:N1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:N1=>{console.error("There was an error while uploading the file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}this.isCurrentStep("attachments")&&(console.log(m),this.attachmentService.uploadFile(d1).subscribe({next:i1=>{console.log(i1),"img"==n?m.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=i1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:m.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:i1.content,attachmentType:m.type},this.cdr.detectChanges(),console.log("uploaded")},error:i1=>{console.error("There was an error while uploading!",i1),i1.error.error?(console.log(i1),this.errorMessage="Error: "+i1.error.error):this.errorMessage="There was an error while uploading the file!",413===i1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},z.readAsDataURL(m)}}):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.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()}getResSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingResourceSpec=!0),n.paginationService.getItemsPaginated(n.resourceSpecPage,n.RES_SPEC_LIMIT,c,n.resourceSpecs,n.nextResourceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.resSpecService.getResourceSpecByUser.bind(n.resSpecService)).then(r=>{n.resourceSpecPageCheck=r.page_check,n.resourceSpecs=r.items,n.nextResourceSpecs=r.nextItems,n.resourceSpecPage=r.page,n.loadingResourceSpec=!1,n.loadingResourceSpec_more=!1})})()}nextRes(){var c=this;return(0,b1.A)(function*(){yield c.getResSpecs(!0)})()}addResToSelected(c){const n=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedResourceSpecs.splice(n,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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingServiceSpec=!0),n.paginationService.getItemsPaginated(n.serviceSpecPage,n.SERV_SPEC_LIMIT,c,n.serviceSpecs,n.nextServiceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.servSpecService.getServiceSpecByUser.bind(n.servSpecService)).then(r=>{n.serviceSpecPageCheck=r.page_check,n.serviceSpecs=r.items,n.nextServiceSpecs=r.nextItems,n.serviceSpecPage=r.page,n.loadingServiceSpec=!1,n.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,b1.A)(function*(){yield c.getServSpecs(!0)})()}addServToSelected(c){const n=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedServiceSpecs.splice(n,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(()=>{S2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(n=>n.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 n=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==n&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[n].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(n,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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingprodSpecRel=!0),n.paginationService.getItemsPaginated(n.prodSpecRelPage,n.PROD_SPEC_LIMIT,c,n.prodSpecRels,n.nextProdSpecRels,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecRelPageCheck=r.page_check,n.prodSpecRels=r.items,n.nextProdSpecRels=r.nextItems,n.prodSpecRelPage=r.page,n.loadingprodSpecRel=!1,n.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,b1.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 n=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==n&&(console.log("eliminar"),this.prodRelationships.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m!n.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(n=>this.isDataSpaceCharacteristicType(n.valueType)):c.filter(n=>!this.isDataSpaceCharacteristicType(n.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?this.dataSpaceCharacteristicTypes[0]:"string"}getFormSteps(){const c=["General Info"];return this.BUNDLE_ENABLED&&c.push("Bundle"),c.push("Compliance profile"),c.push("Characteristics"),this.DATA_SPACE_ENABLED&&c.push("Dataspace Configuration"),c.push("Resource specifications"),c.push("Service specifications"),c.push("Attachments"),c.push("Relationships"),c.push("Summary"),c}getStepIndex(c){const l=1+(this.BUNDLE_ENABLED?1:0),r=l+1,m=this.DATA_SPACE_ENABLED?r+1:-1,z=r+(this.DATA_SPACE_ENABLED?2:1),F=z+1,I=F+1,J=I+1,d1=J+1;switch(c){case"general":return 0;case"bundle":return this.BUNDLE_ENABLED?1:-1;case"compliance":return l;case"characteristics":return r;case"dataspace":return m;case"resource":return z;case"service":return F;case"attachments":return I;case"relationships":return J;case"summary":return d1;default:return-1}}isCurrentStep(c){const n=this.getStepIndex(c);return n>=0&&this.currentStep===n}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,n){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(n,1),console.log(this.creatingChars))}selectDefaultChar(c,n){for(let l=0;ll.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:"+A4(),name:this.charsForm.value.name,description:null!=this.charsForm.value.description?this.charsForm.value.description:"",productSpecCharacteristicValue:this.creatingChars},n=this.getSchemaLocationForType(this.charTypeSelected);this.isDataSpaceCharacteristicType(this.charTypeSelected)&&(c.valueType=this.charTypeSelected),n&&(c["@schemaLocation"]=n),this.prodChars.push(c),this.isOptional&&"boolean"!==this.charTypeSelected&&!this.isJsonCharacteristicType(this.charTypeSelected)&&this.prodChars.push({id:"urn:ngsi-ld:characteristic:"+A4(),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 n=this.prodChars.findIndex(l=>l.id===c.id);if(-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(r=>r.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 n=0;nr.name===this.prodChars[n].name)){const r=this.prodChars[n]?.name?.replace("Compliance:","").trim();-1==this.availableISOS.findIndex(z=>z.name===r)&&"Compliance:SelfAtt"!=this.prodChars[n].name?(console.log("--- check if deleted additional cert"),console.log(this.prodChars[n].name),-1!=this.additionalISOS.findIndex(F=>F.name===r)&&this.finishChars.push(this.prodChars[n]),this.prodChars[n].name?.startsWith("Compliance:")||this.finishChars.push(this.prodChars[n])):this.finishChars.push(this.prodChars[n])}for(let n=0;nr.name===this.selectedISOS[n].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+A4(),name:this.selectedISOS[n].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.selectedISOS[n].url}]});for(let n=0;nr.name===this.additionalISOS[n].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+A4(),name:this.additionalISOS[n].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[n].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const n="Compliance:SelfAtt",l=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,r=this.finishChars.findIndex(F=>F.name===n),z={id:this.selfAtt?.id?this.selfAtt.id:-1!==r&&this.finishChars[r]?.id?this.finishChars[r].id:`urn:ngsi-ld:characteristic:${A4()}`,name:n,productSpecCharacteristicValue:[{isDefault:!0,value:l}]};-1===r?this.finishChars.push(z):this.finishChars[r]=z}let c=[];for(let n=0;n{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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}getValuePreview(c,n=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>n?`${l.slice(0,n)}...`:l}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),this.isCurrentStep("compliance")&&setTimeout(()=>{S2()},100),this.isCurrentStep("resource")&&this.getResSpecs(!1),this.isCurrentStep("service")&&this.getServSpecs(!1),this.isCurrentStep("attachments")&&setTimeout(()=>{S2()},100),this.isCurrentStep("relationships")&&this.getProdSpecsRel(!1),this.isCurrentStep("summary")&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}isStepDisabled(){return 0===this.currentStep?!this.generalForm?.valid||!1:this.BUNDLE_ENABLED&&this.currentStep===this.getStepIndex("bundle")?this.prodSpecsBundle.length<2&&this.bundleChecked:this.currentStep===this.getStepIndex("compliance")&&this.checkValidISOS()}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(a6),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(p6),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-product-spec"]],viewQuery:function(n,l){if(1&n&&(e.GBs(oa0,5),e.GBs(ia0,5),e.GBs(ra0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.attachName=r.first),e.mGM(r=e.lsd())&&(l.imgURL=r.first),e.mGM(r=e.lsd())&&(l.certificationName=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:49,vars:37,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"],["for","prod-name",1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","description",1,"col-span-2"],[1,"col-span-2","flex","align-items-middle","h-fit","m-4"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["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"],["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","endpointUrl"],["value","upstreamAddress"],["value","endpointDescription"],["value","targetSpecification"],["value","serviceConfiguration"],["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"],["data-cy","tableServiceSpecs",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[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(n,l){1&n&&(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,ua0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,ma0,23,19,"form",20)(27,Sa0,8,5)(28,Ha0,35,19)(29,wo0,4,2)(30,Bo0,4,2)(31,ei0,4,2)(32,mi0,26,15)(33,Ti0,5,2,"div",21)(34,br0,3,1,"div",22),e.k0s(),e.j41(35,"div",23)(36,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(37,"svg",25),e.nrm(38,"path",26),e.k0s(),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.joV(),e.j41(41,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(42),e.nI1(43,"translate"),e.qSk(),e.j41(44,"svg",28),e.nrm(45,"path",29),e.k0s()(),e.DNE(46,yr0,3,5,"button",30),e.k0s()()()(),e.DNE(47,vr0,18,10,"div",31)(48,kr0,1,1,"error-message",32)),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,21,"CREATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,23,"CREATE_PROD_SPEC._create")),e.R7$(4),e.JRh(e.bMT(20,25,"CREATE_PROD_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&&l.BUNDLE_ENABLED?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,l.isCurrentStep("attachments")?32:-1),e.R7$(),e.vxM(33,l.isCurrentStep("relationships")?33:-1),e.R7$(),e.vxM(34,l.isCurrentStep("summary")?34:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(31,da0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(40,27,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep)||l.isStepDisabled())("ngClass",e.l_i(34,fa0,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(43,29,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(46,l.isCurrentStep("summary")?46:-1),e.R7$(),e.vxM(47,l.showUploadFile?47:-1),e.R7$(),e.vxM(48,l.showError?48:-1))},dependencies:[L.YU,L.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,b0,j4,H0,ge,M0,L.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 t})();const Sr0=(t,a)=>a.id,Nr0=(t,a)=>({"break-all":t,"break-words":a});function Er0(t,a){1&t&&(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 Dr0(t,a){if(1&t&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Tr0(t,a){if(1&t&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Rr0(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ar0(t,a){if(1&t&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ir0(t,a){1&t&&(e.j41(0,"span",49),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function Pr0(t,a){1&t&&(e.j41(0,"span",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function $r0(t,a){if(1&t){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,Dr0,2,1,"span",47)(5,Tr0,2,1)(6,Rr0,2,1)(7,Ar0,2,1),e.k0s(),e.j41(8,"td",48),e.DNE(9,Ir0,3,3,"span",49)(10,Pr0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",52),e.nrm(17,"path",53),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(8,Nr0,n.hasLongWord(c.name,20),!n.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 jr0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function Or0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Br0(t,a){if(1&t&&e.DNE(0,Or0,6,3,"div",59),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Vr0(t,a){1&t&&(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 Ur0(t,a){if(1&t&&(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,$r0,18,11,"tr",43,Sr0,!1,jr0,7,3,"div",44),e.k0s()()(),e.DNE(24,Br0,1,1)(25,Vr0,6,0),e.k0s()),2&t){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 Hr0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.faSparkles=D2.p7g,this.searchField=new p.MJ,this.prodSpecs=[],this.nextProdSpecs=[],this.page=0,this.PROD_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initProdSpecs()})}ngOnInit(){this.initProdSpecs()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getProdSpecs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getProdSpecs(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateProductSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateProductSpec(c)}getProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:n.status,partyId:n.partyId,sort:n.sort,isBundle:n.isBundle},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.page_check=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getProdSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(a6),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,Er0,6,0,"div",30)(55,Ur0,26,17),e.k0s()),2&n&&(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:[L.YU,J2.aY,L.vh,s1.D9]})}}return t})();var Gr0=v(8866);const Yr0=(t,a)=>a.type+a.name+a.value;function qr0(t,a){1&t&&(e.j41(0,"span",27),e.EFF(1,"Not provided"),e.k0s())}function Xr0(t,a){if(1&t&&(e.j41(0,"a",28),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.value,e.B4B),e.R7$(),e.SpI(" ",c.value," ")}}function Wr0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",c.value," ")}}function Jr0(t,a){if(1&t&&(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,qr0,2,0,"span",27)(7,Xr0,2,2)(8,Wr0,1,1),e.k0s()()),2&t){const c=a.$implicit,n=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:n.isHttpUrl(c.value)?7:8)}}function Qr0(t,a){1&t&&(e.j41(0,"tr")(1,"td",29),e.EFF(2," No compliance evidence available. "),e.k0s()())}function Zr0(t,a){1&t&&(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 Kr0(t,a){if(1&t&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.SpI(" ",c.requestValidationError," ")}}let ed0=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.accountService=n,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=[],n=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value??"";c.push({type:"Self attestation",name:"Self attestation",value:n,missing:!n});for(const l of this.selectedISOS){const r=l?.url??"";c.push({type:"Third-party certification",name:this.normalizeName(l?.name),value:r,missing:!r})}for(const l of this.additionalISOS){const r=l?.url??"";c.push({type:"Additional certification",name:this.normalizeName(l?.name),value:r,missing:!r})}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,b1.A)(function*(){const n=c.getOrganizationPartyId();if(n)try{const l=yield c.accountService.getOrgInfo(n);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(r=>r?.id==c.logged_as)?.partyId??"":""}mapOrganizationInfo(c){const n=Array.isArray(c?.contactMedium)?c.contactMedium:[],l=Array.isArray(c?.partyCharacteristic)?c.partyCharacteristic:[],r=Array.isArray(c?.externalReference)?c.externalReference:[],m=n.find(J=>"Email"===J?.mediumType),F=n.find(J=>"PostalAddress"===J?.mediumType)?.characteristic??{},I=this.getPartyCharacteristicValue(l,"country");return{organizationName:c?.tradingName??c?.name??"",organizationVat:this.getOrganizationVat(r),organizationAddress:this.formatPostalAddress(F),organizationCountry:I,organizationWebsite:this.getPartyCharacteristicValue(l,"website"),organizationEmail:m?.characteristic?.emailAddress??""}}getOrganizationVat(c){return c.length?c.find(l=>"idm_id"===(l?.externalReferenceType??"").toLowerCase())?.name??"":""}getPartyCharacteristicValue(c,n){return c.find(r=>r?.name===n)?.value??""}formatPostalAddress(c){return c?[c.street1,c.postCode,c.city,c.stateOrProvince].filter(n=>!!n).join(", "):""}getEmptyOrganizationInfo(){return{organizationName:"",organizationVat:"",organizationAddress:"",organizationCountry:"",organizationWebsite:"",organizationEmail:""}}buildRequestPayload(c){return JSON.parse(JSON.stringify(c))}extractErrorMessage(c){const n=c?.error?.error??c?.error?.message??c?.message;return n?`Error: ${n}`:"Error: there was a problem requesting the validation."}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(L2.s),e.rXU(K0.O),e.rXU(a6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.bIt("click",function(){return l.closeModal.emit()}),e.j41(1,"div",1),e.bIt("click",function(m){return m.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,Jr0,9,3,"tr",15,Yr0,!1,Qr0,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,Zr0,2,0,"div",20)(64,Kr0,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&n&&(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:[L.YU]})}}return t})();const cd0=["attachName"],td0=["imgURL"],nd0=["certificationName"],pG=(t,a)=>a.id,iE1=(t,a)=>a.name,ld0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),sd0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),m8=(t,a)=>({"break-all":t,"break-words":a}),hG=()=>({standalone:!0});function ad0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",34),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",35),e.EFF(2),e.k0s(),e.j41(3,"span",36),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function od0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._active")," "))}function id0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._active")," "))}function rd0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._launched")," "))}function dd0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._launched")," "))}function fd0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._retired")," "))}function ud0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._retired")," "))}function md0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._obsolete")," "))}function pd0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._obsolete")," "))}function hd0(t,a){if(1&t&&(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,od0,6,3,"li",48)(25,id0,4,3)(26,rd0,6,3,"li",49)(27,dd0,4,3)(28,fd0,6,3,"li",50)(29,ud0,4,3)(30,md0,6,3,"li",51)(31,pd0,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&t){let c,n,l;const r=e.XpG();e.Y8G("formGroup",r.generalForm),e.R7$(3),e.JRh(e.bMT(4,14,"UPDATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=r.generalForm.get("name"))?null:c.invalid)&&""!=r.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==(n=r.generalForm.get("version"))?null:n.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=r.generalForm.get("brand"))?null:l.invalid)&&""!=r.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"==r.prodStatus?24:25),e.R7$(2),e.vxM(26,"Launched"==r.prodStatus?26:27),e.R7$(2),e.vxM(28,"Retired"==r.prodStatus?28:29),e.R7$(2),e.vxM(30,"Obsolete"==r.prodStatus?30:31),e.R7$(3),e.JRh(e.bMT(34,24,"UPDATE_PROD_SPEC._product_description"))}}function gd0(t,a){1&t&&(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 _d0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ld0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Cd0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function zd0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Md0(t,a){1&t&&(e.j41(0,"span",84),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._simple")))}function xd0(t,a){1&t&&(e.j41(0,"span",88),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._bundle")))}function bd0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,_d0,2,1,"span",84)(5,Ld0,2,1)(6,Cd0,2,1)(7,zd0,2,1),e.k0s(),e.j41(8,"td",83),e.DNE(9,Md0,3,3,"span",84)(10,xd0,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&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(9,m8,n.hasLongWord(c.name,20),!n.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",n.isProdInBundle(c))}}function yd0(t,a){if(1&t&&(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,bd0,16,12,"tr",81,pG),e.k0s()()()),2&t){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 Fd0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function vd0(t,a){if(1&t&&e.DNE(0,Fd0,6,3,"div",91),2&t){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function kd0(t,a){1&t&&(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 wd0(t,a){if(1&t&&e.DNE(0,gd0,6,0,"div",70)(1,yd0,22,15)(2,vd0,1,1)(3,kd0,6,0),2&t){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function Sd0(t,a){if(1&t&&(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,wd0,4,2)),2&t){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 Nd0(t,a){1&t&&e.nrm(0,"img",97)}function Ed0(t,a){1&t&&e.nrm(0,"img",125)}function Dd0(t,a){1&t&&e.nrm(0,"img",126)}function Td0(t,a){1&t&&(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 Rd0(t,a){if(1&t){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 Ad0(t,a){if(1&t){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,r=e.XpG(4);return e.Njj(r.addISO(l))}),e.qSk(),e.j41(5,"svg",136),e.nrm(6,"path",94),e.k0s()()()()}if(2&t){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 Id0(t,a){if(1&t&&(e.j41(0,"div",132)(1,"ul",133),e.Z7z(2,Ad0,7,2,"li",null,e.fX1),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function Pd0(t,a){if(1&t){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,Id0,4,0,"div",132)}if(2&t){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 $d0(t,a){if(1&t){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 r=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(r),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,r=e.XpG(2);return e.Njj(r.removeISO(l))}),e.qSk(),e.j41(10,"svg",100),e.nrm(11,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function jd0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_comp_profile")," "))}function Od0(t,a){1&t&&(e.j41(0,"div",142),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function Bd0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.removeCert(l))}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Vd0(t,a){if(1&t&&(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,Bd0,9,6,"tr",81,iE1),e.k0s()()()),2&t){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 Ud0(t,a){if(1&t){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 Hd0(t,a){if(1&t){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&t&&(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 Gd0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,Hd0,10,6,"ng-template",157),e.k0s()}}function Yd0(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function qd0(t,a){if(1&t){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,Gd0,2,0,"ngx-file-drop",151)(11,Yd0,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&t){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 Xd0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",96)(1,"div",11),e.DNE(2,Nd0,1,0,"img",97)(3,Ed0,1,0)(4,Dd0,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,Td0,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,Rd0,3,0,"button",112),e.k0s()(),e.DNE(25,Pd0,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,$d0,12,6,"tr",81,iE1,!1,jd0,9,3,"div",120),e.k0s()()(),e.j41(52,"div",121)(53,"div",122),e.DNE(54,Od0,4,3,"div",123),e.k0s()(),e.DNE(55,Vd0,18,9)(56,Ud0,5,0,"div",124)(57,qd0,19,8)}if(2&t){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.JRh(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 Wd0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_chars")," "))}function Jd0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value),", ")}}function Qd0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value)," ")}}function Zd0(t,a){if(1&t&&e.DNE(0,Jd0,1,1)(1,Qd0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Kd0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ef0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cf0(t,a){if(1&t&&e.DNE(0,Kd0,4,2)(1,ef0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tf0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function nf0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function lf0(t,a){if(1&t&&e.DNE(0,tf0,1,1)(1,nf0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function sf0(t,a){if(1&t&&e.DNE(0,Zd0,2,1)(1,cf0,2,1)(2,lf0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function af0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function of0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function if0(t,a){if(1&t&&e.DNE(0,af0,4,3)(1,of0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function rf0(t,a){if(1&t&&e.DNE(0,sf0,3,1)(1,if0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function df0(t,a){if(1&t){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,rf0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",167),e.nrm(11,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function ff0(t,a){if(1&t&&(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,df0,12,10,"tr",81,pG),e.k0s()()()),2&t){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 uf0(t,a){if(1&t){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&t){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 mf0(t,a){1&t&&(e.j41(0,"option",182),e.EFF(1,"Endpoint URL"),e.k0s(),e.j41(2,"option",183),e.EFF(3,"Upstream Address"),e.k0s(),e.j41(4,"option",184),e.EFF(5,"Endpoint Description"),e.k0s(),e.j41(6,"option",185),e.EFF(7,"Target Specification"),e.k0s(),e.j41(8,"option",186),e.EFF(9,"Service Configuration"),e.k0s(),e.j41(10,"option",187),e.EFF(11,"Credentials Configuration"),e.k0s(),e.j41(12,"option",188),e.EFF(13,"Authorization Policy"),e.k0s())}function pf0(t,a){1&t&&(e.j41(0,"option",189),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",190),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",191),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",192),e.EFF(7,"Boolean"),e.k0s())}function hf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div")(1,"label",174),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",197),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.optionalDftTrue,l)||(r.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",198),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",198),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&t){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,hG)),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 gf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",193)(1,"label",194),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",195)(5,"input",196),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.isOptional,l)||(r.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",69),e.k0s()(),e.DNE(7,hf0,11,14,"div")}if(2&t){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,hG)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function _f0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",201)(1,"div",202)(2,"input",203),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.j41(3,"label",204),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",205),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",167),e.nrm(10,"path",128),e.k0s()()()}if(2&t){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 Lf0(t,a){if(1&t&&e.Z7z(0,_f0,11,4,"div",201,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Cf0(t,a){if(1&t&&(e.j41(0,"label",207),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function zf0(t,a){if(1&t&&(e.j41(0,"label",207),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(5);e.R7$(),e.JRh(n.getValuePreview(c.value))}}function Mf0(t,a){if(1&t&&(e.j41(0,"label",207),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function xf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",201)(1,"div",202)(2,"input",206),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,Cf0,5,2,"label",207)(4,zf0,2,1)(5,Mf0,2,1),e.k0s(),e.j41(6,"button",205),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===n.charTypeSelected?3:n.isJsonCharacteristicType(n.charTypeSelected)?4:5)}}function bf0(t,a){if(1&t&&e.Z7z(0,xf0,9,2,"div",201,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function yf0(t,a){if(1&t&&(e.j41(0,"label",199),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",200),e.DNE(3,Lf0,2,0)(4,bf0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function Ff0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",180)(1,"input",208),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",209),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",210),e.nrm(4,"path",94),e.k0s()()()}if(2&t){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 vf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",211)(1,"div",212)(2,"span",213),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",214),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",212)(7,"span",213),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",215),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",209),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",210),e.nrm(13,"path",94),e.k0s()()()}if(2&t){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 kf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",193)(1,"label",216),e.EFF(2,"Default value is true"),e.k0s(),e.j41(3,"label",195)(4,"input",217),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.booleanDefaultTrue,l)||(r.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&t){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,hG))}}function wf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",211)(1,"div",212)(2,"span",218),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",214),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",212)(7,"span",218),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",214),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.toValue,l)||(r.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",212)(12,"span",218),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",215),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",209),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",210),e.nrm(18,"path",94),e.k0s()()()}if(2&t){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 Sf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",219)(1,"label",220),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",221),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.jsonValue,l)||(r.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",222),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",223),e.nrm(7,"path",94),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&t){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 Nf0(t,a){if(1&t&&e.DNE(0,Sf0,10,9,"div",219),2&t){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function Ef0(t,a){if(1&t){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 r=e.XpG(2);return e.DH7(r.charTypeSelected,l)||(r.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onTypeChange(l))}),e.DNE(11,mf0,14,0)(12,pf0,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,gf0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,yf0,5,1),e.j41(21,"label",179),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,Ff0,5,3,"div",180)(25,vf0,14,10)(26,kf0,6,3)(27,wf0,19,14)(28,Nf0,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&t){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,hG)),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||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,"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.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,"UPDATE_PROD_SPEC._save_char")," ")}}function Df0(t,a){if(1&t&&e.DNE(0,Wd0,9,3,"div",168)(1,ff0,19,12)(2,uf0,6,3,"div",124)(3,Ef0,35,26),2&t){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 Tf0(t,a){1&t&&(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 Rf0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function Af0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function If0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Pf0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function $f0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function jf0(t,a){if(1&t){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,Af0,2,1,"span",84)(5,If0,2,1)(6,Pf0,2,1)(7,$f0,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",224),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addResToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,n.hasLongWord(c.name,20),!n.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",n.isResSelected(c))}}function Of0(t,a){if(1&t&&(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,jf0,13,11,"tr",81,pG),e.k0s()()()),2&t){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 Bf0(t,a){if(1&t&&e.DNE(0,Rf0,7,3,"div",168)(1,Of0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function Vf0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Uf0(t,a){if(1&t&&e.DNE(0,Vf0,6,3,"div",91),2&t){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function Hf0(t,a){1&t&&(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 Gf0(t,a){if(1&t&&e.DNE(0,Tf0,6,0,"div",70)(1,Bf0,2,1)(2,Uf0,1,1)(3,Hf0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function Yf0(t,a){1&t&&(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 qf0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function Xf0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Wf0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Jf0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Qf0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zf0(t,a){if(1&t){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,Xf0,2,1,"span",84)(5,Wf0,2,1)(6,Jf0,2,1)(7,Qf0,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",224),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addServToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,n.hasLongWord(c.name,20),!n.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",n.isServSelected(c))}}function Kf0(t,a){if(1&t&&(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,Zf0,13,11,"tr",81,pG),e.k0s()()()),2&t){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 eu0(t,a){if(1&t&&e.DNE(0,qf0,7,3,"div",168)(1,Kf0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function cu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function tu0(t,a){if(1&t&&e.DNE(0,cu0,6,3,"div",91),2&t){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function nu0(t,a){1&t&&(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 lu0(t,a){if(1&t&&e.DNE(0,Yf0,6,0,"div",70)(1,eu0,2,1)(2,tu0,1,1)(3,nu0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function su0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",228),e.nrm(1,"img",230),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&t){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function au0(t,a){if(1&t){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&t&&(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 ou0(t,a){1&t&&(e.j41(0,"div",239),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function iu0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",231)(1,"ngx-file-drop",232),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileLeave(l))}),e.DNE(2,au0,10,6,"ng-template",157),e.k0s()(),e.j41(3,"label",233),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",234),e.DNE(7,ou0,4,3,"div",235),e.j41(8,"div",236)(9,"input",237,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",238),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&t){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 ru0(t,a){1&t&&(e.j41(0,"div",229)(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_att")," "))}function du0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.removeAtt(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function fu0(t,a){if(1&t&&(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,du0,9,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 uu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._new_att")," "))}function mu0(t,a){if(1&t){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&t&&(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 pu0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,mu0,10,6,"ng-template",157),e.k0s()}}function hu0(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function gu0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",146)(1,"div",147)(2,"div",148)(3,"label",240),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",241,2),e.k0s(),e.DNE(8,pu0,2,0,"ngx-file-drop",151)(9,hu0,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&t){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 _u0(t,a){if(1&t&&(e.j41(0,"div",225)(1,"h4",226),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",227),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,su0,5,1,"div",228)(18,iu0,14,8),e.j41(19,"h4",226),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,ru0,9,3,"div",229)(23,fu0,16,9)(24,uu0,6,3,"div",124)(25,gu0,16,11)),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"UPDATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.JRh(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 Lu0(t,a){1&t&&(e.j41(0,"div",242)(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_relatioships")," "))}function Cu0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.deleteRel(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function zu0(t,a){if(1&t&&(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,Cu0,9,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 Mu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._add_relationship")," "))}function xu0(t,a){1&t&&(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 bu0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function yu0(t,a){1&t&&(e.j41(0,"span",84),e.EFF(1,"Simple"),e.k0s())}function Fu0(t,a){1&t&&(e.j41(0,"span",88),e.EFF(1,"Bundle"),e.k0s())}function vu0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",250),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.selectRelationship(l))}),e.j41(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,yu0,2,0,"span",84)(5,Fu0,2,0),e.k0s(),e.j41(6,"td",85),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.Y8G("ngClass",c.id==n.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,n.hasLongWord(c.name,20),!n.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 ku0(t,a){if(1&t&&(e.j41(0,"div",248)(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,vu0,9,11,"tr",249,e.fX1),e.k0s()()()),2&t){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 wu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Su0(t,a){if(1&t&&e.DNE(0,wu0,6,3,"div",91),2&t){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Nu0(t,a){1&t&&(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 Eu0(t,a){if(1&t&&e.DNE(0,bu0,7,3,"div",168)(1,ku0,16,9)(2,Su0,1,1)(3,Nu0,6,0),2&t){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 Du0(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",243),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onRelChange(l))}),e.j41(4,"option",244),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",245),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",246),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",247),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,xu0,6,0,"div",70)(13,Eu0,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&t){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 Tu0(t,a){if(1&t&&(e.j41(0,"div",21),e.DNE(1,Lu0,9,3,"div",242)(2,zu0,16,9)(3,Mu0,6,3,"div",124)(4,Du0,20,9),e.k0s()),2&t){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 Ru0(t,a){1&t&&(e.j41(0,"div",251),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 Au0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",254),e.EFF(4),e.k0s()),2&t){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 Iu0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function Pu0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function $u0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function ju0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function Ou0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",257),e.nrm(4,"markdown",258),e.k0s()),2&t){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 Bu0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",228),e.nrm(4,"img",230),e.k0s()),2&t){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 Vu0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Uu0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Hu0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Gu0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Yu0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",86),e.DNE(4,Vu0,2,1,"span",84)(5,Uu0,2,1)(6,Hu0,2,1)(7,Gu0,2,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.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 qu0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,Yu0,8,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 Xu0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value),", ")}}function Wu0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value)," ")}}function Ju0(t,a){if(1&t&&e.DNE(0,Xu0,1,1)(1,Wu0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Qu0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Zu0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ku0(t,a){if(1&t&&e.DNE(0,Qu0,4,2)(1,Zu0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function em0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function cm0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function tm0(t,a){if(1&t&&e.DNE(0,em0,1,1)(1,cm0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function nm0(t,a){if(1&t&&e.DNE(0,Ju0,2,1)(1,Ku0,2,1)(2,tm0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function lm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function sm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function am0(t,a){if(1&t&&e.DNE(0,lm0,4,3)(1,sm0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function om0(t,a){if(1&t&&e.DNE(0,nm0,3,1)(1,am0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function im0(t,a){if(1&t&&(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,om0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function rm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,im0,8,10,"tr",81,e.fX1),e.k0s()()()),2&t){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 dm0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function fm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,dm0,3,5,"tr",81,e.fX1),e.k0s()()()),2&t){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 um0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function mm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,um0,3,5,"tr",81,e.fX1),e.k0s()()()),2&t){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 pm0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function hm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,pm0,5,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 gm0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",86),e.EFF(2),e.k0s(),e.j41(3,"td",82),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function _m0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,gm0,5,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 Lm0(t,a){if(1&t&&(e.j41(0,"div",252)(1,"div")(2,"label",174),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",253),e.EFF(6),e.k0s(),e.j41(7,"label",39),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",254),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",253),e.EFF(17),e.k0s(),e.DNE(18,Au0,5,4),e.k0s()(),e.j41(19,"div",255)(20,"label",256),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,Iu0,2,1,"span",84)(24,Pu0,2,1)(25,$u0,2,1)(26,ju0,2,1),e.k0s(),e.DNE(27,Ou0,5,8)(28,Bu0,5,4)(29,qu0,16,9)(30,rm0,19,12)(31,fm0,13,6)(32,mm0,13,6)(33,hm0,16,9)(34,_m0,16,9)),2&t){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 Cm0(t,a){if(1&t&&(e.j41(0,"div",22),e.DNE(1,Ru0,6,0,"div",251)(2,Lm0,35,33),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function zm0(t,a){if(1&t){const c=e.RV6();e.qSk(),e.j41(0,"svg",159),e.nrm(1,"path",160),e.k0s(),e.joV(),e.j41(2,"p",270),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&t&&(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 Mm0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",32)(1,"div",260),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",261)(3,"button",262),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",263),e.nrm(5,"path",264),e.k0s(),e.joV(),e.j41(6,"span",74),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",265),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.dropped(l,r.selectedISO))})("onFileOver",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileLeave(l))}),e.DNE(10,zm0,8,6,"ng-template",266),e.k0s(),e.j41(11,"div",267)(12,"button",268),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",269),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&t){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 xm0(t,a){if(1&t&&e.nrm(0,"error-message",33),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let bm0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=h1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=h1.c.RES_SPEC_LIMIT,this.DOME_TRUST_LINK=h1.c.DOME_TRUST_LINK,this.BUNDLE_ENABLED=h1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=h1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=h1.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.currentStep=0,this.highestStep=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),s6]),brand:new p.MJ("",[p.k0.required,s6]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),s6]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),s6]),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=["endpointUrl","upstreamAddress","endpointDescription","targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.dataSpaceJsonCharacteristicTypes=["targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let N1=0;N1{"ChangedSession"===N1.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(),S2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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(v5),console.log("--"),console.log(this.prod.productSpecCharacteristic);for(let c=0;cr.name===n);-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)for(let c=0;cl.name===this.prod.productSpecCharacteristic[c].name)&&this.prodChars.push({id:this.prod.productSpecCharacteristic[c].id?this.prod.productSpecCharacteristic[c].id:"urn:ngsi-ld:characteristic:"+A4(),name:this.prod.productSpecCharacteristic[c].name,description:this.prod.productSpecCharacteristic[c].description?this.prod.productSpecCharacteristic[c].description:"",valueType:this.prod.productSpecCharacteristic[c].valueType,"@schemaLocation":this.prod.productSpecCharacteristic[c]["@schemaLocation"],productSpecCharacteristicValue:this.prod.productSpecCharacteristic[c].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(n=>"Profile Picture"===n.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:n})})}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(),S2()}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(),S2()}toggleBundleCheck(){this.prodSpecs=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getProdSpecs(!1)):this.prodSpecsBundle=[]}getProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.bundlePageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const n=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.prodSpecsBundle.splice(n,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(()=>{S2()},100),this.refreshChars()}addISO(c){const n=this.availableISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("seleccionar"),this.availableISOS.splice(n,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 n=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(r=>r.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:n,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const n=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("eliminar additional cert"),this.additionalISOS.splice(n,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){const c=this.finishChars.findIndex(n=>n.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(n=>""===n.url)}addISOValue(c){this.selectedISOS.findIndex(r=>r.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 n=["NL","BL","P","PP"];try{const l=(0,Gr0.s)(c);let r=null;"verifiableCredential"in l?r=l.verifiableCredential:"vc"in l&&(r=l.vc);const m=r?.credentialSubject;if(!m)return void(this.complianceLevel="NL");const z=m["gx:labelLevel"];this.complianceLevel="string"==typeof z&&n.includes(z)?z:"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,n){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(m=>{if(console.log("dropped"),m){const z=new FileReader;z.onload=F=>{const I=F.target.result.split(",")[1];console.log("BASE 64...."),console.log(I);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let d1={content:{name:A4()+"_"+m.name,data:I},contentType:m.type,isPublic:!0};if(!this.isValidFilename(d1.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(m.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 i1=this.selectedISOS.findIndex(N1=>N1.name===n.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{console.log(N1),-1!==i1?(this.selectedISOS[i1].url=N1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=N1.content},error:N1=>{console.error("There was an error while uploading file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.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 i1=this.finishChars.findIndex(N1=>N1.name===this.selfAtt.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{-1!==i1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:N1.content}],this.finishChars[i1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+A4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:N1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:N1=>{console.error("There was an error while uploading the file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}this.isCurrentStep("attachments")&&(console.log(m),this.attachmentService.uploadFile(d1).subscribe({next:i1=>{console.log(i1),"img"==n?m.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=i1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:m.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:i1.content,attachmentType:m.type},this.cdr.detectChanges(),console.log("uploaded")},error:i1=>{console.error("There was an error while uploading file!",i1),i1.error.error?(console.log(i1),this.errorMessage="Error: "+i1.error.error):this.errorMessage="There was an error while uploading the file!",413===i1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},z.readAsDataURL(m)}}):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(),S2()}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(),S2()}getResSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingResourceSpec=!0),n.paginationService.getItemsPaginated(n.resourceSpecPage,n.RES_SPEC_LIMIT,c,n.resourceSpecs,n.nextResourceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.resSpecService.getResourceSpecByUser.bind(n.resSpecService)).then(r=>{n.resourceSpecPageCheck=r.page_check,n.resourceSpecs=r.items,n.nextResourceSpecs=r.nextItems,n.resourceSpecPage=r.page,n.loadingResourceSpec=!1,n.loadingResourceSpec_more=!1})})()}nextRes(){var c=this;return(0,b1.A)(function*(){yield c.getResSpecs(!0)})()}addResToSelected(c){const n=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedResourceSpecs.splice(n,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(),S2()}getServSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingServiceSpec=!0),n.paginationService.getItemsPaginated(n.serviceSpecPage,n.SERV_SPEC_LIMIT,c,n.serviceSpecs,n.nextServiceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.servSpecService.getServiceSpecByUser.bind(n.servSpecService)).then(r=>{n.serviceSpecPageCheck=r.page_check,n.serviceSpecs=r.items,n.nextServiceSpecs=r.nextItems,n.serviceSpecPage=r.page,n.loadingServiceSpec=!1,n.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,b1.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 n=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedServiceSpecs.splice(n,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(()=>{S2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(n=>n.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 n=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==n&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[n].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(n,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(),S2()}getProdSpecsRel(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingprodSpecRel=!0),n.paginationService.getItemsPaginated(n.prodSpecRelPage,n.PROD_SPEC_LIMIT,c,n.prodSpecRels,n.nextProdSpecRels,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecRelPageCheck=r.page_check,n.prodSpecRels=r.items,n.nextProdSpecRels=r.nextItems,n.prodSpecRelPage=r.page,n.loadingprodSpecRel=!1,n.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,b1.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 n=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==n&&(console.log("eliminar"),this.prodRelationships.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m!n.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(n=>this.isDataSpaceCharacteristicType(n.valueType)):c.filter(n=>!this.isDataSpaceCharacteristicType(n.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?this.dataSpaceCharacteristicTypes[0]:"string"}getFormSteps(){const c=["General Info"];return this.BUNDLE_ENABLED&&c.push("Bundle"),c.push("Compliance profile"),c.push("Characteristics"),this.DATA_SPACE_ENABLED&&c.push("Dataspace Configuration"),c.push("Resource specifications"),c.push("Service specifications"),c.push("Attachments"),c.push("Relationships"),c.push("Summary"),c}getStepIndex(c){const l=1+(this.BUNDLE_ENABLED?1:0),r=l+1,m=this.DATA_SPACE_ENABLED?r+1:-1,z=r+(this.DATA_SPACE_ENABLED?2:1),F=z+1,I=F+1,J=I+1,d1=J+1;switch(c){case"general":return 0;case"bundle":return this.BUNDLE_ENABLED?1:-1;case"compliance":return l;case"characteristics":return r;case"dataspace":return m;case"resource":return z;case"service":return F;case"attachments":return I;case"relationships":return J;case"summary":return d1;default:return-1}}isCurrentStep(c){const n=this.getStepIndex(c);return n>=0&&this.currentStep===n}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,n){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(n,1),console.log(this.creatingChars))}selectDefaultChar(c,n){for(let l=0;ll.id===c.id);if(-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(r=>r.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(),S2()}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(m=>m.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(z=>z.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:"+A4(),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:"+A4(),name:this.additionalISOS[c].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[c].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const c="Compliance:SelfAtt",n=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,l=this.finishChars.findIndex(z=>z.name===c),m={id:this.selfAtt?.id?this.selfAtt.id:-1!==l&&this.finishChars[l]?.id?this.finishChars[l].id:`urn:ngsi-ld:characteristic:${A4()}`,name:c,productSpecCharacteristicValue:[{isDefault:!0,value:n}]};-1===l?this.finishChars.push(m):this.finishChars[l]=m}if(null!=this.complianceVC&&this.finishChars.push({id:this.complianceVCId?this.complianceVCId:`urn:ngsi-ld:characteristic:${A4()}`,name:"Compliance:VC",productSpecCharacteristicValue:[{isDefault:!0,value:this.complianceVC}]}),null!=this.generalForm.value.name&&null!=this.generalForm.value.version&&null!=this.generalForm.value.brand){let c=[];for(let n=0;n{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(){return 0===this.currentStep?!this.generalForm?.valid||!1:this.BUNDLE_ENABLED&&this.currentStep===this.getStepIndex("bundle")?this.prodSpecsBundle.length<2&&this.bundleChecked:this.currentStep===this.getStepIndex("compliance")&&this.checkValidISOS()}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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}getValuePreview(c,n=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>n?`${l.slice(0,n)}...`:l}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),this.isCurrentStep("compliance")&&setTimeout(()=>{S2()},100),this.isCurrentStep("resource")&&this.getResSpecs(!1),this.isCurrentStep("service")&&this.getServSpecs(!1),this.isCurrentStep("attachments")&&setTimeout(()=>{S2()},100),this.isCurrentStep("relationships")&&this.getProdSpecsRel(!1),this.isCurrentStep("summary")&&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)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}getCurrentComplianceEvidenceSignature(){const c=[],n=this.normalizeComplianceValue(this.selfAtt?.productSpecCharacteristicValue?.[0]?.value);n&&c.push(this.toComplianceEntrySignature("Compliance:SelfAtt",n));for(const l of this.selectedISOS){const r=this.normalizeComplianceName(l?.name);if(!r)continue;const m=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(r,m))}for(const l of this.additionalISOS){const r=this.normalizeComplianceName(l?.name);if(!r)continue;const m=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(r,m))}return c.sort().join("|")}normalizeComplianceName(c){const n=this.normalizeComplianceValue(c);return n?n.toLowerCase().startsWith("compliance:")?n:`Compliance:${n}`:""}normalizeComplianceValue(c){return null==c?"":String(c).trim()}toComplianceEntrySignature(c,n){return`${c.toLowerCase()}::${n}`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(a6),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(p6),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-product-spec"]],viewQuery:function(n,l){if(1&n&&(e.GBs(cd0,5),e.GBs(td0,5),e.GBs(nd0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.attachName=r.first),e.mGM(r=e.lsd())&&(l.imgURL=r.first),e.mGM(r=e.lsd())&&(l.certificationName=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{prod:"prod"},decls:52,vars:46,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","endpointUrl"],["value","upstreamAddress"],["value","endpointDescription"],["value","targetSpecification"],["value","serviceConfiguration"],["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,"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(n,l){1&n&&(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,ad0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,hd0,36,26,"form",20)(27,Sd0,8,5)(28,Xd0,58,26)(29,Df0,4,2)(30,Gf0,4,2)(31,lu0,4,2)(32,_u0,26,15)(33,Tu0,5,2,"div",21)(34,Cm0,3,1,"div",22),e.k0s(),e.j41(35,"div",23)(36,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(37,"svg",25),e.nrm(38,"path",26),e.k0s(),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.joV(),e.j41(41,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(42),e.nI1(43,"translate"),e.qSk(),e.j41(44,"svg",28),e.nrm(45,"path",29),e.k0s()(),e.joV(),e.j41(46,"button",30),e.bIt("click",function(){return l.updateProduct()}),e.EFF(47),e.nI1(48,"translate"),e.k0s()()()()(),e.j41(49,"request-validation-modal",31),e.bIt("closeModal",function(){return l.closeRequestValidationModal()}),e.k0s(),e.DNE(50,Mm0,18,10,"div",32)(51,xm0,1,1,"error-message",33)),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,28,"UPDATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,30,"UPDATE_PROD_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,32,"UPDATE_PROD_SPEC._update_prod")),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&&l.BUNDLE_ENABLED?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,l.isCurrentStep("attachments")?32:-1),e.R7$(),e.vxM(33,l.isCurrentStep("relationships")?33:-1),e.R7$(),e.vxM(34,l.isCurrentStep("summary")?34:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(40,ld0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(40,34,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||l.isStepDisabled())("ngClass",e.l_i(43,sd0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||l.isStepDisabled())),e.R7$(),e.SpI(" ",e.bMT(43,36,"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(48,38,"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(50,l.showUploadFile?50:-1),e.R7$(),e.vxM(51,l.showError?51:-1))},dependencies:[L.YU,L.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,b0,j4,H0,ge,M0,ed0,L.vh,s1.D9]})}}return t})();const ym0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Fm0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),nw=(t,a)=>({"break-all":t,"break-words":a});function vm0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function km0(t,a){if(1&t&&(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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_RES_SPEC._description"))}}function wm0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_RES_SPEC._no_chars")," "))}function Sm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Nm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Em0(t,a){if(1&t&&e.DNE(0,Sm0,4,2)(1,Nm0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Dm0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Tm0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Rm0(t,a){if(1&t&&e.DNE(0,Dm0,1,1)(1,Tm0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Am0(t,a){if(1&t&&e.DNE(0,Em0,2,1)(1,Rm0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function Im0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Pm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function $m0(t,a){if(1&t&&e.DNE(0,Im0,4,3)(1,Pm0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function jm0(t,a){if(1&t&&e.DNE(0,Am0,2,1)(1,$m0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Om0(t,a){if(1&t){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,jm0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function Bm0(t,a){if(1&t&&(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,Om0,12,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 Vm0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_RES_SPEC._new_char")," "))}function Um0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&t){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 Hm0(t,a){if(1&t&&e.Z7z(0,Um0,11,4,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Gm0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ym0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function qm0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,Gm0,5,2,"label",80)(4,Ym0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function Xm0(t,a){if(1&t&&e.Z7z(0,qm0,8,2,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Wm0(t,a){if(1&t&&(e.j41(0,"label",72),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",73),e.DNE(4,Hm0,2,0)(5,Xm0,2,0),e.k0s()),2&t){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 Jm0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 Qm0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 Zm0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 Km0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,Wm0,6,4),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,Jm0,5,3,"div",68)(28,Qm0,14,10)(29,Zm0,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&t){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 ep0(t,a){if(1&t&&e.DNE(0,wm0,9,3,"div",34)(1,Bm0,19,12)(2,Vm0,6,3,"div",35)(3,Km0,36,21),2&t){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 cp0(t,a){1&t&&(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 tp0(t,a){if(1&t&&(e.j41(0,"span",98),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function np0(t,a){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function lp0(t,a){if(1&t&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function sp0(t,a){if(1&t&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function ap0(t,a){if(1&t&&(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&t){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.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 op0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ip0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function rp0(t,a){if(1&t&&e.DNE(0,op0,4,2)(1,ip0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function dp0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function fp0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function up0(t,a){if(1&t&&e.DNE(0,dp0,1,1)(1,fp0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function mp0(t,a){if(1&t&&e.DNE(0,rp0,2,1)(1,up0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function pp0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function hp0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function gp0(t,a){if(1&t&&e.DNE(0,pp0,4,3)(1,hp0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function _p0(t,a){if(1&t&&e.DNE(0,mp0,2,1)(1,gp0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Lp0(t,a){if(1&t&&(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,_p0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function Cp0(t,a){if(1&t&&(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,Lp0,8,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 zp0(t,a){if(1&t&&(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,tp0,2,1,"span",98)(11,np0,2,1)(12,lp0,2,1)(13,sp0,2,1),e.k0s(),e.DNE(14,ap0,5,8)(15,Cp0,19,12)),2&t){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.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 Mp0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,cp0,6,0,"div",91)(2,zp0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function xp0(t,a){if(1&t){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&t){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 bp0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let yp0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.resSpecService=z,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),s6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),s6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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:h1.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(p6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-resource-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,vm0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,km0,9,8,"form",17)(27,ep0,4,2)(28,Mp0,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,xp0,3,5,"button",26),e.k0s()()()(),e.DNE(41,bp0,1,1,"error-message",27)),2&n&&(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,ym0,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,Fm0,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:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,H0,ge,M0,s1.D9]})}}return t})();const Fp0=(t,a)=>a.id,vp0=(t,a)=>({"break-all":t,"break-words":a});function kp0(t,a){1&t&&(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 wp0(t,a){if(1&t&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Sp0(t,a){if(1&t&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Np0(t,a){if(1&t&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ep0(t,a){if(1&t&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Dp0(t,a){if(1&t){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,wp0,2,1,"span",44)(5,Sp0,2,1)(6,Np0,2,1)(7,Ep0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,vp0,n.hasLongWord(c.name,20),!n.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 Tp0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function Rp0(t,a){if(1&t){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 Ap0(t,a){if(1&t&&e.DNE(0,Rp0,5,0,"div",55),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Ip0(t,a){1&t&&(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 Pp0(t,a){if(1&t&&(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,Dp0,15,10,"tr",40,Fp0,!1,Tp0,7,3,"div",41),e.k0s()()(),e.DNE(21,Ap0,1,1)(22,Ip0,6,0),e.k0s()),2&t){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 $p0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.resSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.searchField=new p.MJ,this.resSpecs=[],this.nextResSpecs=[],this.page=0,this.RES_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initResources()})}ngOnInit(){this.initResources()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getResSpecs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getResSpecs(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateResourceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateResourceSpec(c)}getResSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.RES_SPEC_LIMIT,c,n.resSpecs,n.nextResSpecs,{filters:n.status,partyId:n.partyId,sort:n.sort},n.resSpecService.getResourceSpecByUser.bind(n.resSpecService)).then(r=>{n.page_check=r.page_check,n.resSpecs=r.items,n.nextResSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getResSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(p6),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&(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,kp0,6,0,"div",29)(52,Pp0,23,14),e.k0s()),2&n&&(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:[L.YU,J2.aY,L.vh,s1.D9]})}}return t})();const jp0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Op0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),lw=(t,a)=>({"break-all":t,"break-words":a});function Bp0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Vp0(t,a){if(1&t){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 Up0(t,a){if(1&t){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 Hp0(t,a){if(1&t){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 Gp0(t,a){if(1&t){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 Yp0(t,a){if(1&t){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 qp0(t,a){if(1&t){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 Xp0(t,a){if(1&t){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 Wp0(t,a){if(1&t){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 Jp0(t,a){if(1&t&&(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,Vp0,5,0,"li",36)(11,Up0,3,0)(12,Hp0,5,0,"li",37)(13,Gp0,3,0)(14,Yp0,5,0,"li",38)(15,qp0,3,0)(16,Xp0,5,0,"li",39)(17,Wp0,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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.resStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==n.resStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==n.resStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==n.resStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_RES_SPEC._description"))}}function Qp0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_RES_SPEC._no_chars")," "))}function Zp0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Kp0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function eh0(t,a){if(1&t&&e.DNE(0,Zp0,4,2)(1,Kp0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function ch0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function th0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function nh0(t,a){if(1&t&&e.DNE(0,ch0,1,1)(1,th0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function lh0(t,a){if(1&t&&e.DNE(0,eh0,2,1)(1,nh0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function sh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ah0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function oh0(t,a){if(1&t&&e.DNE(0,sh0,4,3)(1,ah0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function ih0(t,a){if(1&t&&e.DNE(0,lh0,2,1)(1,oh0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function rh0(t,a){if(1&t){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,ih0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function dh0(t,a){if(1&t&&(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,rh0,12,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 fh0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_RES_SPEC._new_char")," "))}function uh0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&t){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 mh0(t,a){if(1&t&&e.Z7z(0,uh0,11,4,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function ph0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function hh0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function gh0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,ph0,5,2,"label",98)(4,hh0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function _h0(t,a){if(1&t&&e.Z7z(0,gh0,8,2,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Lh0(t,a){if(1&t&&(e.j41(0,"label",90),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",91),e.DNE(4,mh0,2,0)(5,_h0,2,0),e.k0s()),2&t){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 Ch0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 zh0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 Mh0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 xh0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,Lh0,6,4),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,Ch0,5,3,"div",86)(28,zh0,14,10)(29,Mh0,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&t){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 bh0(t,a){if(1&t&&e.DNE(0,Qp0,9,3,"div",53)(1,dh0,19,12)(2,fh0,6,3,"div",54)(3,xh0,36,21),2&t){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 yh0(t,a){1&t&&(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 Fh0(t,a){if(1&t&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function vh0(t,a){if(1&t&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function kh0(t,a){if(1&t&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function wh0(t,a){if(1&t&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function Sh0(t,a){if(1&t&&(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&t){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.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 Nh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Eh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Dh0(t,a){if(1&t&&e.DNE(0,Nh0,4,2)(1,Eh0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Th0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Rh0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Ah0(t,a){if(1&t&&e.DNE(0,Th0,1,1)(1,Rh0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ih0(t,a){if(1&t&&e.DNE(0,Dh0,2,1)(1,Ah0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function Ph0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function $h0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function jh0(t,a){if(1&t&&e.DNE(0,Ph0,4,3)(1,$h0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Oh0(t,a){if(1&t&&e.DNE(0,Ih0,2,1)(1,jh0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Bh0(t,a){if(1&t&&(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,Oh0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function Vh0(t,a){if(1&t&&(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,Bh0,8,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 Uh0(t,a){if(1&t&&(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,Fh0,2,1,"span",115)(11,vh0,2,1)(12,kh0,2,1)(13,wh0,2,1),e.k0s(),e.DNE(14,Sh0,5,8)(15,Vh0,19,12)),2&t){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.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 Hh0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,yh0,6,0,"div",108)(2,Uh0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Gh0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Yh0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.resSpecService=z,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),s6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),s6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),console.log(this.res),this.populateResInfo(),S2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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(()=>{S2()},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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{S2()},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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(p6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-resource-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,Bp0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,Jp0,22,15,"form",17)(27,bh0,4,2)(28,Hh0,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,Gh0,1,1,"error-message",27)),2&n&&(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,jp0,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,Op0,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:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,H0,ge,M0,s1.D9]})}}return t})();const qh0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Xh0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),sw=(t,a)=>({"break-all":t,"break-words":a});function Wh0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Jh0(t,a){if(1&t&&(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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_SERV_SPEC._description"))}}function Qh0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_SERV_SPEC._no_chars")," "))}function Zh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Kh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function eg0(t,a){if(1&t&&e.DNE(0,Zh0,4,2)(1,Kh0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function cg0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function tg0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function ng0(t,a){if(1&t&&e.DNE(0,cg0,1,1)(1,tg0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function lg0(t,a){if(1&t&&e.DNE(0,eg0,2,1)(1,ng0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function sg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ag0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function og0(t,a){if(1&t&&e.DNE(0,sg0,4,3)(1,ag0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function ig0(t,a){if(1&t&&e.DNE(0,lg0,2,1)(1,og0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function rg0(t,a){if(1&t){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,ig0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function dg0(t,a){if(1&t&&(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,rg0,12,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 fg0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_SERV_SPEC._new_char")," "))}function ug0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&t){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 mg0(t,a){if(1&t&&e.Z7z(0,ug0,11,4,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function pg0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function hg0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function gg0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,pg0,5,2,"label",80)(4,hg0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function _g0(t,a){if(1&t&&e.Z7z(0,gg0,8,2,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Lg0(t,a){if(1&t&&(e.j41(0,"label",72),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",73),e.DNE(3,mg0,2,0)(4,_g0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function Cg0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 zg0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 Mg0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 xg0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,Lg0,5,1),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,Cg0,5,3,"div",68)(28,zg0,14,10)(29,Mg0,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&t){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 bg0(t,a){if(1&t&&e.DNE(0,Qh0,9,3,"div",34)(1,dg0,19,12)(2,fg0,6,3,"div",35)(3,xg0,36,21),2&t){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 yg0(t,a){1&t&&(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 Fg0(t,a){if(1&t&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function vg0(t,a){if(1&t&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function kg0(t,a){if(1&t&&(e.j41(0,"span",102),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function wg0(t,a){if(1&t&&(e.j41(0,"span",103),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function Sg0(t,a){if(1&t&&(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&t){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.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 Ng0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Eg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Dg0(t,a){if(1&t&&e.DNE(0,Ng0,4,2)(1,Eg0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Tg0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Rg0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Ag0(t,a){if(1&t&&e.DNE(0,Tg0,1,1)(1,Rg0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ig0(t,a){if(1&t&&e.DNE(0,Dg0,2,1)(1,Ag0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function Pg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function $g0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function jg0(t,a){if(1&t&&e.DNE(0,Pg0,4,3)(1,$g0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Og0(t,a){if(1&t&&e.DNE(0,Ig0,2,1)(1,jg0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Bg0(t,a){if(1&t&&(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,Og0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function Vg0(t,a){if(1&t&&(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,Bg0,8,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 Ug0(t,a){if(1&t&&(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,Fg0,2,1,"span",100)(11,vg0,2,1)(12,kg0,2,1)(13,wg0,2,1),e.k0s(),e.DNE(14,Sg0,5,8)(15,Vg0,19,12)),2&t){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.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 Hg0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,yg0,6,0,"div",93)(2,Ug0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Gg0(t,a){if(1&t){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&t){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 Yg0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let qg0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.servSpecService=z,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),s6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),s6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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:h1.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(W6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-service-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,Wh0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,Jh0,9,8,"form",17)(27,bg0,4,2)(28,Hg0,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,Gg0,3,5,"button",26),e.k0s()()()(),e.DNE(41,Yg0,1,1,"error-message",27)),2&n&&(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,qh0,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,Xh0,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:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,H0,ge,M0,s1.D9]})}}return t})();const Xg0=(t,a)=>a.id,Wg0=(t,a)=>({"break-all":t,"break-words":a});function Jg0(t,a){1&t&&(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 Qg0(t,a){if(1&t&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zg0(t,a){if(1&t&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Kg0(t,a){if(1&t&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function e_0(t,a){if(1&t&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function c_0(t,a){if(1&t){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,Qg0,2,1,"span",44)(5,Zg0,2,1)(6,Kg0,2,1)(7,e_0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,Wg0,n.hasLongWord(c.name,20),!n.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 t_0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function n_0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function l_0(t,a){if(1&t&&e.DNE(0,n_0,6,3,"div",55),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function s_0(t,a){1&t&&(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 a_0(t,a){if(1&t&&(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,c_0,15,10,"tr",40,Xg0,!1,t_0,7,3,"div",41),e.k0s()()(),e.DNE(21,l_0,1,1)(22,s_0,6,0),e.k0s()),2&t){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 o_0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.servSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=D2.cKG,this.faSort=D2.OM7,this.faSwatchbook=D2.l8N,this.searchField=new p.MJ,this.servSpecs=[],this.nextServSpecs=[],this.page=0,this.SERV_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initServices()})}ngOnInit(){this.initServices()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getServSpecs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getServSpecs(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateServiceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateServiceSpec(c)}getServSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.SERV_SPEC_LIMIT,c,n.servSpecs,n.nextServSpecs,{filters:n.status,partyId:n.partyId,sort:n.sort},n.servSpecService.getServiceSpecByUser.bind(n.servSpecService)).then(r=>{n.page_check=r.page_check,n.servSpecs=r.items,n.nextServSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,b1.A)(function*(){yield c.getServSpecs(!0)})()}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getServSpecs(!1)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(F2.F),e.rXU(W6),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,Jg0,6,0,"div",29)(52,a_0,23,14),e.k0s()),2&n&&(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:[L.YU,J2.aY,L.vh,s1.D9]})}}return t})();const i_0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),r_0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),aw=(t,a)=>({"break-all":t,"break-words":a});function d_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function f_0(t,a){if(1&t){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 u_0(t,a){if(1&t){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 m_0(t,a){if(1&t){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 p_0(t,a){if(1&t){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 h_0(t,a){if(1&t){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 g_0(t,a){if(1&t){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 __0(t,a){if(1&t){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 L_0(t,a){if(1&t){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 C_0(t,a){if(1&t&&(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,f_0,5,0,"li",36)(11,u_0,3,0)(12,m_0,5,0,"li",37)(13,p_0,3,0)(14,h_0,5,0,"li",38)(15,g_0,3,0)(16,__0,5,0,"li",39)(17,L_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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.servStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==n.servStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==n.servStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==n.servStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_SERV_SPEC._description"))}}function z_0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_SERV_SPEC._no_chars")," "))}function M_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function x_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function b_0(t,a){if(1&t&&e.DNE(0,M_0,4,2)(1,x_0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function y_0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function F_0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function v_0(t,a){if(1&t&&e.DNE(0,y_0,1,1)(1,F_0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function k_0(t,a){if(1&t&&e.DNE(0,b_0,2,1)(1,v_0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function w_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function S_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function N_0(t,a){if(1&t&&e.DNE(0,w_0,4,3)(1,S_0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function E_0(t,a){if(1&t&&e.DNE(0,k_0,2,1)(1,N_0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function D_0(t,a){if(1&t){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,E_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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,aw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,aw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function T_0(t,a){if(1&t&&(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,D_0,12,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 R_0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_SERV_SPEC._new_char")," "))}function A_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&t){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 I_0(t,a){if(1&t&&e.Z7z(0,A_0,11,4,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function P_0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function $_0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function j_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,P_0,5,2,"label",98)(4,$_0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function O_0(t,a){if(1&t&&e.Z7z(0,j_0,8,2,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function B_0(t,a){if(1&t&&(e.j41(0,"label",90),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",91),e.DNE(3,I_0,2,0)(4,O_0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function V_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 U_0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 H_0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 G_0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,B_0,5,1),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,V_0,5,3,"div",86)(28,U_0,14,10)(29,H_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&t){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 Y_0(t,a){if(1&t&&e.DNE(0,z_0,9,3,"div",53)(1,T_0,19,12)(2,R_0,6,3,"div",54)(3,G_0,36,21),2&t){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 q_0(t,a){1&t&&(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 X_0(t,a){if(1&t&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function W_0(t,a){if(1&t&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function J_0(t,a){if(1&t&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function Q_0(t,a){if(1&t&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function Z_0(t,a){if(1&t&&(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&t){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,aw,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 K_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function eL0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cL0(t,a){if(1&t&&e.DNE(0,K_0,4,2)(1,eL0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tL0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function nL0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function lL0(t,a){if(1&t&&e.DNE(0,tL0,1,1)(1,nL0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function sL0(t,a){if(1&t&&e.DNE(0,cL0,2,1)(1,lL0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function aL0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function oL0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function iL0(t,a){if(1&t&&e.DNE(0,aL0,4,3)(1,oL0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function rL0(t,a){if(1&t&&e.DNE(0,sL0,2,1)(1,iL0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function dL0(t,a){if(1&t&&(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,rL0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,aw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,aw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function fL0(t,a){if(1&t&&(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,dL0,8,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 uL0(t,a){if(1&t&&(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,X_0,2,1,"span",115)(11,W_0,2,1)(12,J_0,2,1)(13,Q_0,2,1),e.k0s(),e.DNE(14,Z_0,5,8)(15,fL0,19,12)),2&t){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,aw,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 mL0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,q_0,6,0,"div",108)(2,uL0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function pL0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let hL0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.servSpecService=z,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),s6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),s6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{S2()},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(n){return new(n||t)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(L2.s),e.rXU(H2),e.rXU(e.aKT),e.rXU(W6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-service-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,d_0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,C_0,22,15,"form",17)(27,Y_0,4,2)(28,mL0,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,pL0,1,1,"error-message",27)),2&n&&(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,i_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,r_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_SERV_SPEC._update_serv")," "),e.R7$(2),e.vxM(43,l.showError?43:-1))},dependencies:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,H0,ge,M0,s1.D9]})}}return t})(),rE1=(()=>{class t{constructor(c){this.http=c}init(){return new Promise((c,n)=>{const l={next:r=>{const m=r.ai??{};h1.c.SIOP_INFO=r.siop,h1.c.CHAT_API=r.chat,h1.c.MATOMO_SITE_ID=r.matomoId,h1.c.MATOMO_TRACKER_URL=r.matomoUrl,h1.c.KNOWLEDGE_BASE_URL=r.knowledgeBaseUrl,h1.c.TICKETING_SYSTEM_URL=r.ticketingUrl,h1.c.SEARCH_ENABLED=!0,h1.c.DOME_TRUST_LINK=r.domeTrust,h1.c.DOME_ABOUT_LINK=r.domeAbout,h1.c.PURCHASE_ENABLED=r.purchaseEnabled??!0,h1.c.DOME_REGISTER_LINK=r.domeRegister,h1.c.DOME_CUSTOMER_REGISTER_LINK=r.domeRegisterCustomer,h1.c.DOME_PUBLISH_LINK=r.domePublish,h1.c.KB_ONBOARDING_GUIDELINES_URL=r.domeOnboardingGuidelines,h1.c.KB_GUIDELNES_URL=r.domeGuidelines,h1.c.REGISTRATION_FORM_URL=r.domeRegistrationForm,h1.c.DFT_CATALOG_ID=r.defaultId,h1.c.SELLER_ROLE=r.roles?.seller,h1.c.BUYER_ROLE=r.roles?.customer,h1.c.ADMIN_ROLE=r.roles?.admin,h1.c.ORG_ADMIN_ROLE=r.roles?.orgAdmin,h1.c.CERTIFIER_ROLE=r.roles?.certifier,h1.c.quoteApi=r.quoteApi??"http://localhost:8080/quoteManagement",h1.c.analytics=r.analytics??"https://analytics.dome-marketplace-sbx.org/",h1.c.feedbackCampaign=r.feedbackCampaign??!1,h1.c.feedbackCampaignExpiration=r.feedbackCampaign??Y2().add(1,"week").unix(),h1.c.providerThemeName=r.theme??"default",h1.c.QUOTES_ENABLED=r.quotesEnabled??!1,h1.c.TENDER_ENABLED=r.tenderingEnabled??!1,h1.c.DATA_SPACE_ENABLED=r.dataSpaceEnabled??!1,h1.c.LEAR_URL=r.learUrl??"",h1.c.LAUNCH_VALIDATION_ENABLED=r.launchValidationEnabled??!1,h1.c.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED=r.tenderDevButtonsOpenCloseEnabled??!1,h1.c.AI_SEARCH_ENABLED=m.aiEnabled??r.aiEnabled??!1,h1.c.AI_SEARCH_API_KEY=m.aiApiKey??r.aiApiKey??"",h1.c.AI_SEARCH_API_URL=m.aiApiUrl??r.aiApiUrl??"",h1.c.AI_SEARCH_PROFILE=m.aiSearchProfile??r.aiSearchProfile??"",c(r)},error:r=>{n(r)},complete:()=>{}};this.http.get(`${h1.c.BASE_URL}/config`).subscribe(l)})}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gL0=v(9437);class _L0{constructor(a,c){this.http=a,this.themeService=c}getTranslation(a){const c=this.themeService.getCurrentThemeConfig()?.name,n=`assets/i18n/themes/${a}-${c}.json`;return(0,K8.p)([this.http.get(`assets/i18n/${a}.json`),this.http.get(n).pipe((0,gL0.W)(()=>(0,F3.of)({})))]).pipe((0,$2.T)(([r,m])=>this.deepMerge(r,m)))}deepMerge(a,c){const n={...a};return this.isObject(a)&&this.isObject(c)&&Object.keys(c).forEach(l=>{this.isObject(c[l])?l in a?n[l]=this.deepMerge(a[l],c[l]):Object.assign(n,{[l]:c[l]}):Object.assign(n,{[l]:c[l]})}),n}isObject(a){return a&&"object"==typeof a&&!Array.isArray(a)}}function LL0(t,a){1&t&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"_yes")))}function CL0(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"_no")))}function zL0(t,a){if(1&t){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,LL0,3,3,"span",9)(7,CL0,3,3,"span",10),e.k0s(),e.j41(8,"td",11)(9,"button",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.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),r=l.$implicit,m=l.$index,z=e.XpG();return e.Njj(z.confirmDelete(r,m))}),e.qSk(),e.j41(13,"svg",16),e.nrm(14,"path",17),e.k0s()()()()}if(2&t){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 ML0(t,a){1&t&&(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&t&&(e.R7$(5),e.JRh(e.bMT(6,1,"FORMS.PRICE_PLANS._no_price_plans")))}function xL0(t,a){if(1&t){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&t&&(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 bL0=(()=>{class t{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,n){this.pricePlanToDelete=c,this.planIndex=n,this.showDeleteModal=!0}deletePricePlan(){this.pricePlanToDelete&&this.planIndex>=0&&(this.delete.emit(this.planIndex),this.showDeleteModal=!1,this.pricePlanToDelete=null)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,zL0,15,4,"tr",5,e.Vm6,!1,ML0,7,3,"tr"),e.k0s()()(),e.DNE(20,xL0,15,12,"div",6)),2&n&&(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:[L.bT,s1.h,s1.D9]})}}return t})();const yL0=(t,a)=>a.id;function FL0(t,a){if(1&t){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,r=e.XpG();return e.Njj(r.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,r=e.XpG();return e.Njj(r.confirmDelete(l))}),e.qSk(),e.j41(12,"svg",13),e.nrm(13,"path",14),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG();e.R7$(2),e.JRh(c.name),e.R7$(2),e.JRh(c.description),e.R7$(2),e.JRh(n.getPriceTypeLabel(c.priceType))}}function vL0(t,a){1&t&&(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&t&&(e.R7$(6),e.JRh(e.bMT(7,1,"FORMS.PRICE_PLANS._no_price_plans_components")))}function kL0(t,a){if(1&t){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&t&&(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 wL0=(()=>{class t{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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,FL0,14,3,"tr",5,yL0,!1,vL0,8,3,"tr"),e.k0s()()(),e.DNE(20,kL0,15,12,"div",6)),2&n&&(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:[L.bT,s1.h,s1.D9]})}}return t})();const SL0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),NL0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),EL0=()=>({standalone:!0});function DL0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_required")," "))}function TL0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_limit")," "))}function RL0(t,a){1&t&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_positive")," "))}function AL0(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,DL0,3,3,"div")(2,TL0,3,3)(3,RL0,3,3),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.vxM(1,null!=(c=n.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.required?1:null!=(c=n.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.max?2:null!=(c=n.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.min&&(null!=(c=n.priceComponentForm.get("price"))&&c.touched||null!=(c=n.priceComponentForm.get("price"))&&c.dirty)?3:-1)}}function IL0(t,a){1&t&&(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&t&&(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 PL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function $L0(t,a){if(1&t&&(e.j41(0,"option",37),e.EFF(1,"Select a characteristic"),e.k0s(),e.Z7z(2,PL0,2,2,"option",38,e.fX1)),2&t){const c=e.XpG(2);e.R7$(2),e.Dyx(c.filteredChars)}}function jL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function OL0(t,a){if(1&t&&e.DNE(0,jL0,2,2,"option",38),2&t){const c=a.$implicit,n=e.XpG(3);e.vxM(0,n.selectedCharacteristic.id!=c.id?0:-1)}}function BL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,OL0,1,1,null,null,e.fX1)),2&t){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 VL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function UL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.JRh(c.value)}}function HL0(t,a){if(1&t&&e.DNE(0,VL0,2,3,"option",38)(1,UL0,2,2),2&t){const c=a.$implicit,n=e.XpG(3);e.vxM(0,n.hasKey(c,"unitOfMeasure")?0:1)}}function GL0(t,a){if(1&t){const c=e.RV6();e.j41(0,"select",39),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.changePriceComponentCharValue(l))}),e.Z7z(1,HL0,2,1,null,null,e.fX1),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.selectedCharacteristic.productSpecCharacteristicValue)}}function YL0(t,a){if(1&t&&(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&t){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 qL0(t,a){if(1&t){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,IL0,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 r=e.XpG();return e.Njj(r.changePriceComponentChar(l))}),e.DNE(13,$L0,4,0)(14,BL0,4,2),e.k0s(),e.DNE(15,GL0,3,0,"select",34),e.k0s(),e.DNE(16,YL0,13,4,"div",35)}if(2&t){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 XL0(t,a){1&t&&(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&t&&(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 WL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function JL0(t,a){if(1&t&&(e.j41(0,"option",37),e.EFF(1,"Select a usage specification"),e.k0s(),e.Z7z(2,WL0,2,2,"option",38,e.fX1)),2&t){const c=e.XpG(2);e.R7$(2),e.Dyx(c.usageSpecs)}}function QL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function ZL0(t,a){if(1&t&&e.DNE(0,QL0,2,2,"option",38),2&t){const c=a.$implicit,n=e.XpG(3);e.vxM(0,c.name!=n.selectedUsageSpec.name?0:-1)}}function KL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,ZL0,1,1,null,null,e.fX1)),2&t){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 eC0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function cC0(t,a){if(1&t&&e.Z7z(0,eC0,2,2,"option",38,e.fX1),2&t){const c=e.XpG(3);e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function tC0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function nC0(t,a){if(1&t&&e.DNE(0,tC0,2,2,"option",38),2&t){const c=a.$implicit,n=e.XpG(4);e.vxM(0,c.name!=n.selectedMetric?0:-1)}}function lC0(t,a){if(1&t&&(e.j41(0,"option",55),e.EFF(1),e.k0s(),e.Z7z(2,nC0,1,1,null,null,e.fX1)),2&t){const c=e.XpG(3);e.R7$(),e.JRh(c.selectedMetric),e.R7$(),e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function sC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"select",54),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.changePriceComponentMetric(l))}),e.DNE(1,cC0,2,0)(2,lC0,4,1),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.vxM(1,c.selectedMetric?2:1)}}function aC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",32)(1,"select",52),e.bIt("change",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.changePriceComponentUsageSpec(l))}),e.DNE(2,JL0,4,0)(3,KL0,4,2),e.k0s(),e.DNE(4,sC0,3,1,"select",53),e.k0s()}if(2&t){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 oC0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_positive")," "))}function iC0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_limit")," "))}function rC0(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,oC0,3,3,"div")(2,iC0,3,3),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=n.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.min?1:null!=(c=n.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.max?2:-1)}}function dC0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._duration_positive")," "))}function fC0(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,dC0,3,3,"div"),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=n.priceComponentForm.get("discountDuration"))&&null!=c.errors&&c.errors.min?1:-1)}}function uC0(t,a){if(1&t&&(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,rC0,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,fC0,2,1,"div",11),e.k0s()),2&t){let c,n,l,r;const m=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=m.priceComponentForm.get("discountValue"))?null:c.invalid)&&""!=m.priceComponentForm.value.discountValue||null!=(c=m.priceComponentForm.get("discountValue"))&&c.touched&&""==m.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!=(n=m.priceComponentForm.get("discountValue"))&&n.invalid&&null!=(n=m.priceComponentForm.get("discountValue"))&&n.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=m.priceComponentForm.get("discountDuration"))?null:l.invalid)&&""!=m.priceComponentForm.value.discountDuration||null!=(l=m.priceComponentForm.get("discountDuration"))&&l.touched&&""==m.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!=(r=m.priceComponentForm.get("discountDuration"))&&r.invalid&&null!=(r=m.priceComponentForm.get("discountDuration"))&&r.touched?33:-1)}}let mC0=(()=>{class t{constructor(c,n,l,r){this.fb=c,this.cdr=n,this.usageService=l,this.localStorage=r,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;cn.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 n=this.priceComponentForm.get("selectedCharacteristic")?.value;if(Array.isArray(n)&&n.length>0){const r=n[0]?.productSpecCharacteristicValue;this.showValueSelect=!(Array.isArray(r)&&r.length>0&&"valueFrom"in r[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(n=>n.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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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 n=this.prodChars.find(l=>l.id===c.target.value);this.selectedCharacteristic=n,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 n={id:this.selectedCharacteristic.id,name:this.selectedCharacteristic.name,description:this.selectedCharacteristic.description||"",valueType:this.selectedCharacteristic.valueType};return this.showValueSelect?n.productSpecCharacteristicValue=[this.selectedCharacteristic.productSpecCharacteristicValue.find(l=>String(l.value)===String(c))]:this.selectedCharacteristic.productSpecCharacteristicValue?.[0]&&(n.productSpecCharacteristicValue=[{valueFrom:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom,valueTo:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo,isDefault:!0}]),n}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(n=>n.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,n){return n in c}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(Ze),e.rXU(L2.s))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-price-component-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){if(1&n&&(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 m;return null==(m=l.priceComponentForm.get("price"))?null:m.markAsTouched()}),e.k0s(),e.DNE(22,AL0,4,1,"div",11),e.k0s(),e.DNE(23,qL0,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,XL0,17,15,"div")(42,aC0,5,2),e.j41(43,"div",17)(44,"input",18),e.mxI("ngModelChange",function(m){return e.DH7(l.showDiscount,m)||(l.showDiscount=m),m}),e.k0s(),e.j41(45,"label",19),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.DNE(48,uC0,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&n){let r,m,z;e.Y8G("ngClass",e.l_i(46,SL0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(49,NL0,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==(r=l.priceComponentForm.get("price"))?null:r.invalid)&&""!=l.priceComponentForm.value.price||null!=(r=l.priceComponentForm.get("price"))&&r.touched&&""==l.priceComponentForm.value.price?"border-red-600":"dark:border-gray-600"),e.R7$(),e.vxM(22,null!=(m=l.priceComponentForm.get("price"))&&m.invalid&&(null!=(m=l.priceComponentForm.get("price"))&&m.touched||null!=(m=l.priceComponentForm.get("price"))&&m.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==(z=l.priceComponentForm.get("priceType"))?null:z.value)||"recurring-prepaid"===(null==(z=l.priceComponentForm.get("priceType"))?null:z.value)?41:"usage"===(null==(z=l.priceComponentForm.get("priceType"))?null:z.value)?42:-1),e.R7$(3),e.R50("ngModel",l.showDiscount),e.Y8G("ngModelOptions",e.lJ4(53,EL0)),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,ge,s1.h,s1.D9,L.YU]})}}return t})();const pC0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),hC0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),gC0=(t,a)=>({"bg-primary-100 hover:bg-primary-50":t,"bg-gray-400 cursor-not-allowed":a});function _C0(t,a){if(1&t&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&t){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 LC0(t,a){if(1&t){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 r=e.XpG().$index,m=e.XpG(2);return e.Njj(m.changeProfileValue(r,l))}),e.k0s(),e.j41(4,"span",16),e.EFF(5),e.k0s(),e.DNE(6,_C0,2,2,"span",17),e.j41(7,"span",18),e.EFF(8),e.k0s()()}if(2&t){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 CC0(t,a){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("(",c.unitOfMeasure,")")}}function zC0(t,a){if(1&t&&(e.j41(0,"option",22),e.EFF(1),e.DNE(2,CC0,2,1,"span",23),e.k0s()),2&t){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 MC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"select",20),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2).$index,m=e.XpG(2);return e.Njj(m.changeProfileValue(r,l))}),e.DNE(1,zC0,3,4,"option",21),e.k0s()}if(2&t){const c=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",c.value.options)}}function xC0(t,a){if(1&t&&e.DNE(0,MC0,2,1,"select",19),2&t){const c=e.XpG().$implicit;e.Y8G("ngIf",!(null!=c.value.options&&null!=c.value.options[0]&&c.value.options[0].valueFrom))}}function bC0(t,a){if(1&t&&(e.j41(0,"div",8)(1,"h5",12),e.EFF(2),e.k0s(),e.DNE(3,LC0,9,6,"div",13)(4,xC0,1,1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.SpI("",c.value.name,":"),e.R7$(),e.vxM(3,n.hasKey(null==c?null:c.value.options[0],"valueFrom")?3:4)}}function yC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",7),e.Z7z(1,bC0,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&t){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,gC0,c.form.valid,c.form.invalid)),e.R7$(),e.SpI(" ",e.bMT(9,5,"FORMS.PRICE_PLANS._save")," ")}}function FC0(t,a){1&t&&(e.j41(0,"div",24)(1,"span",25),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._prod_spec_no_chars")))}let vC0=(()=>{class t{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;lz.name===r)&&!r.startsWith("Compliance:")&&!m&&"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 n=c.productSpecCharacteristicValue.find(r=>r.isDefault),l=n?.value??n?.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,n){const l=n.target.value;let r=l;"true"===l?r=!0:"false"===l&&(r=!1),this.characteristics.at(c).patchValue({selectedValue:r}),console.log(this.characteristics.at(c))}mapFormToProfile(){return this.characteristics.value.map(n=>({id:n.id,name:n.name,description:n.description||"",productSpecCharacteristicValue:n.options.map(l=>((!("value"in l)||"valueFrom"in l)&&(l.value="unitOfMeasure"in l?Number(n.selectedValue):n.selectedValue),{...l,isDefault:String(l.value)===String(n.selectedValue)}))}))}hasKey(c,n){return c?.hasOwnProperty(n)}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(n){return new(n||t)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-configuration-profile-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){1&n&&(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,yC0,10,10)(10,FC0,4,3),e.k0s()()),2&n&&(e.Y8G("ngClass",e.l_i(6,pC0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngClass",e.sMw(9,hC0,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:[L.YU,L.bT,L.Sq,s1.h,s1.D9]})}}return t})();const kC0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),wC0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),SC0=()=>({standalone:!0});function NC0(t,a){if(1&t&&(e.j41(0,"option",15),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.E5c(" ",c.name," (",c.productSpecCharacteristicValue[0].valueFrom," - ",c.productSpecCharacteristicValue[0].valueTo,") ")}}function EC0(t,a){1&t&&(e.j41(0,"div",16)(1,"span",17),e.EFF(2,"Please select a range characteristic to start creating tier pricing."),e.k0s()())}function DC0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.removeMarker(l))}),e.k0s(),e.j41(3,"span",28),e.EFF(4),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.xc7("left",(c-n.rangeMin)/(n.rangeMax-n.rangeMin)*100,"%"),e.R7$(4),e.SpI(" ",c," ")}}function TC0(t,a){if(1&t){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 r=e.eBV(c).index,m=e.XpG(3);return e.Njj(m.onMarkerChange(r,l))}),e.k0s(),e.j41(4,"button",42),e.bIt("click",function(){const l=e.eBV(c).index,r=e.XpG(3);return e.Njj(r.removeMarker(l))}),e.qSk(),e.j41(5,"svg",43),e.nrm(6,"path",44),e.k0s()()()}if(2&t){const c=a.$implicit,n=a.index,l=e.XpG(3);e.R7$(2),e.SpI("Marker ",n+1,":"),e.R7$(),e.Y8G("value",c)("min",l.rangeMin+1)("max",l.rangeMax-1)}}function RC0(t,a){if(1&t&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",37),e.DNE(4,TC0,7,4,"div",38),e.k0s()()),2&t){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 AC0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",57),e.nrm(1,"path",58),e.k0s())}function IC0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",59),e.nrm(1,"path",60),e.k0s())}function PC0(t,a){if(1&t&&(e.j41(0,"div",61),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme(" Price: ",c.priceComponent.price," | Type: ",c.priceComponent.priceType," ")}}function $C0(t,a){1&t&&(e.qSk(),e.nrm(0,"path",23))}function jC0(t,a){1&t&&(e.qSk(),e.nrm(0,"path",65))}function OC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){e.eBV(c);const l=e.XpG().index,r=e.XpG(3);return e.Njj(r.openPriceForm(l))}),e.qSk(),e.j41(1,"svg",22),e.DNE(2,$C0,1,0,"path",63)(3,jC0,1,0,"path",64),e.k0s(),e.EFF(4),e.k0s()}if(2&t){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 BC0(t,a){1&t&&(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 VC0(t,a){if(1&t&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(6);e.Y8G("value",c.id)("selected",(null==n.selectedUsageSpec?null:n.selectedUsageSpec.id)===c.id),e.R7$(),e.SpI(" ",c.name," ")}}function UC0(t,a){if(1&t&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(7);e.Y8G("value",c.name)("selected",n.selectedMetric===c.name),e.R7$(),e.SpI(" ",c.name," ")}}function HC0(t,a){if(1&t){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 r=e.XpG(6);return e.Njj(r.changePriceComponentMetric(l))}),e.DNE(4,UC0,2,3,"option",92),e.k0s()()}if(2&t){const c=e.XpG(6);e.R7$(4),e.Y8G("ngForOf",c.selectedUsageSpec.specCharacteristic)}}function GC0(t,a){if(1&t){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 r=e.XpG(5);return e.Njj(r.changePriceComponentUsageSpec(l))}),e.j41(5,"option",8),e.EFF(6,"Select a usage specification"),e.k0s(),e.DNE(7,VC0,2,3,"option",92),e.k0s()(),e.DNE(8,HC0,5,1,"div",11),e.k0s()}if(2&t){const c=e.XpG(5);e.R7$(7),e.Y8G("ngForOf",c.usageSpecs),e.R7$(),e.Y8G("ngIf",c.showMetricSelect)}}function YC0(t,a){1&t&&(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 qC0(t,a){if(1&t){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,BC0,12,0,"div",11)(27,GC0,9,2,"div",77),e.j41(28,"div",78)(29,"input",79),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.showDiscount,l)||(r.showDiscount=l),e.Njj(l)}),e.k0s(),e.j41(30,"label",80),e.EFF(31," Include Discount "),e.k0s()(),e.DNE(32,YC0,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&t){let c,n,l;const r=e.XpG(4);e.R7$(),e.Y8G("formGroup",r.priceForm),e.R7$(8),e.Y8G("ngClass",null!=(c=r.priceForm.get("price"))&&c.invalid&&null!=(c=r.priceForm.get("price"))&&c.touched?"border-red-500":""),e.R7$(17),e.Y8G("ngIf","recurring"===(null==(n=r.priceForm.get("priceType"))?null:n.value)||"recurring-prepaid"===(null==(n=r.priceForm.get("priceType"))?null:n.value)),e.R7$(),e.Y8G("ngIf","usage"===(null==(l=r.priceForm.get("priceType"))?null:l.value)),e.R7$(2),e.R50("ngModel",r.showDiscount),e.Y8G("ngModelOptions",e.lJ4(9,SC0)),e.R7$(3),e.Y8G("ngIf",r.showDiscount),e.R7$(4),e.Y8G("disabled",r.priceForm.invalid)("ngClass",r.priceForm.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer")}}function XC0(t,a){if(1&t&&(e.j41(0,"div",47)(1,"div",48)(2,"div",49)(3,"div",39),e.DNE(4,AC0,2,0,"svg",50)(5,IC0,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,PC0,2,2,"div",54),e.k0s(),e.DNE(11,OC0,5,4,"button",55),e.k0s(),e.DNE(12,qC0,38,10,"div",56),e.k0s()),2&t){const c=a.$implicit,n=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 ",n+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 WC0(t,a){if(1&t&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",45),e.DNE(4,XC0,13,10,"div",46),e.k0s()()),2&t){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 JC0(t,a){if(1&t&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.JRh(c)}}function QC0(t,a){if(1&t&&(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,JC0,2,1,"li",108),e.k0s()()()),2&t){const c=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",c.validationErrors)}}function ZC0(t,a){if(1&t){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,DC0,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,RC0,5,3,"div",31)(23,WC0,5,3,"div",31)(24,QC0,6,1,"div",31),e.k0s()}if(2&t){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 KC0=(()=>{class t{constructor(c,n,l,r){this.cdr=c,this.fb=n,this.usageService=l,this.localStorage=r,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 n=c.productSpecCharacteristicValue?.[0];return n&&"valueFrom"in n&&"valueTo"in n}),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-Y2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}onCharacteristicChange(c){const n=c.target.value;if(!n)return this.selectedCharacteristic=null,void this.resetSlider();if(this.selectedCharacteristic=this.rangeCharacteristics.find(l=>l.id===n),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((m,z)=>m-z),this.rangeMax];let n=0,l=0;for(let m=0;mn&&(n=z,l=m)}const r=Math.floor((c[l]+c[l+1])/2);this.sliderMarkers.push(r)}this.updateSubRanges()}removeMarker(c){this.sliderMarkers.splice(c,1),this.updateSubRanges()}onMarkerChange(c,n){const l=parseInt(n.target.value,10);this.sliderMarkers[c]=l,this.updateSubRanges()}updateSubRanges(){if(!this.selectedCharacteristic)return;const c=[this.rangeMin,...this.sliderMarkers.sort((l,r)=>l-r),this.rangeMax],n=[];for(let l=0;lI.valueFrom===r&&I.valueTo===z);n.push({id:`temp-tier-${l}`,valueFrom:r,valueTo:z,name:`${this.selectedCharacteristic.name} ${r}-${z}`,priceComponent:F?.priceComponent||null})}this.subRanges=n,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(r=>!r.priceComponent);c.length>0&&this.validationErrors.push(`${c.length} subrange(s) need price configuration`);for(let r=0;r=z.valueFrom&&this.validationErrors.push(`Subranges cannot overlap: ${m.name} and ${z.name}`)}}openPriceForm(c){this.subRanges.forEach(r=>r.isEditing=!1);const n=this.subRanges[c];this.editingSubRangeIndex=c,n.isEditing=!0;const l=n.priceComponent;this.priceForm=this.fb.group({name:[l?.name||n.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(r=>r.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(n=>n.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],n=this.priceForm.value,l={id:c.priceComponent?.id||`temp-tier-${Date.now()}-${this.editingSubRangeIndex}`,name:n.name,price:n.price,description:n.description,priceType:n.priceType,recurringPeriod:n.recurringPeriod,discountValue:this.showDiscount?n.discountValue:null,discountUnit:this.showDiscount?n.discountUnit:null,discountDuration:this.showDiscount?n.discountDuration:null,discountDurationUnit:this.showDiscount?n.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"===n.priceType&&(l.usageUnit=n.usageUnit,l.usageSpecId=n.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(n=>null!==n.priceComponent).map(n=>n.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,n){return n.id}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(p.ok),e.rXU(Ze),e.rXU(L2.s))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-tier-pricing-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){1&n&&(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(m){return l.onCharacteristicChange(m)}),e.j41(11,"option",8),e.EFF(12,"-- Select a characteristic --"),e.k0s(),e.DNE(13,NC0,2,4,"option",9),e.k0s()(),e.DNE(14,EC0,3,0,"div",10)(15,ZC0,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&n&&(e.Y8G("ngClass",e.l_i(7,kC0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(10,wC0,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,L.YU,L.bT,L.Sq]})}}return t})();const ez0=(t,a)=>a.code,cz0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),tz0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),nz0=(t,a)=>({"bg-primary-100 hover:bg-primary-50":t,"bg-gray-400 cursor-not-allowed":a});function lz0(t,a){1&t&&e.nrm(0,"div",21)}function sz0(t,a){1&t&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._unique")))}function az0(t,a){1&t&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._mandatory")))}function oz0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.selectedValue.value," ",c.selectedValue.unitOfMeasure||""," ")}}function iz0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2).$implicit;e.SpI(" ",c.selectedValue," ")}}function rz0(t,a){if(1&t&&e.DNE(0,oz0,1,2)(1,iz0,1,1),2&t){const c=e.XpG().$implicit;e.vxM(0,void 0!==(null==c.selectedValue?null:c.selectedValue.value)?0:1)}}function dz0(t,a){1&t&&(e.EFF(0),e.nI1(1,"translate")),2&t&&e.SpI(" ",e.bMT(1,1,"FORMS.PRICE_PLANS._no_value_selected")," ")}function fz0(t,a){if(1&t&&(e.j41(0,"tr",50)(1,"td",51),e.EFF(2),e.k0s(),e.j41(3,"td",51),e.DNE(4,rz0,2,1)(5,dz0,2,3),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.vxM(4,null!=c.selectedValue?4:5)}}function uz0(t,a){if(1&t){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,fz0,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&t){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 mz0(t,a){if(1&t){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&t){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 pz0(t,a){if(1&t&&e.DNE(0,uz0,31,20)(1,mz0,10,6),2&t){const c=e.XpG(2);e.vxM(0,c.getProcessedProfileData().length>0?0:1)}}function hz0(t,a){1&t&&(e.j41(0,"div",52)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._price_comp_with_chars")))}function gz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-configuration-profile-drawer",55),e.bIt("save",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.updateConfigurationProfile(l))})("close",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showConfigurationDrawer=!1)}),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("profileData",c.getProfileData())}}function _z0(t,a){if(1&t&&(e.j41(0,"option",27),e.EFF(1),e.k0s()),2&t){let c;const n=a.$implicit,l=e.XpG(2);e.FS9("value",n.code),e.Y8G("selected",n.code===(null==(c=l.formGroup.get("currency"))?null:c.value)),e.R7$(),e.Lme("(",n.code,") ",n.name,"")}}function Lz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",9)(1,"h3",10),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,pz0,2,1)(5,hz0,4,3)(6,gz0,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,_z0,2,4,"option",27,ez0),e.k0s()(),e.j41(18,"div",28)(19,"app-price-components-table",29),e.bIt("edit",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.editPriceComponent(l))})("delete",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.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&t){let c;const n=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,11,"FORMS.PRICE_PLANS._config_profile")," "),e.R7$(2),e.vxM(4,n.checkPriceCompChars()?5:4),e.R7$(2),e.Y8G("ngIf",n.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(n.currencies),e.R7$(3),e.Y8G("priceComponents",null==(c=n.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",!n.hasRangeCharacteristics()||n.hasProfilePricePlan())("ngClass",n.hasRangeCharacteristics()&&!n.hasProfilePricePlan()?"bg-green-500 hover:bg-green-600 cursor-pointer":"bg-gray-400 cursor-not-allowed opacity-50")("title",n.hasProfilePricePlan()?"Tier pricing is not available when a configuration profile is set":n.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 Cz0(t,a){if(1&t&&(e.j41(0,"div",14)(1,"span",22),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.rangeValidationError)}}function zz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-component-drawer",56),e.bIt("save",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.closePriceComponentDrawer(l))})("close",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.closePriceComponentDrawer(l))}),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("component",c.editingComponent)("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)("profileData",c.checkProfileData())}}function Mz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-tier-pricing-drawer",57),e.bIt("saveTierPricing",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.closeTierPricingDrawer(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeTierPricingDrawer(null))}),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)}}let xz0=(()=>{class t{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=[$E.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,P1.Q)(this.destroy$)).subscribe(n=>{n?this.formGroup.get("priceType")?.setValue(""):this.formGroup.get("priceType")?.setValue("custom")}),this.formGroup.valueChanges.pipe((0,P1.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={},n={},l=this.getRangeCharacteristics();for(const m of l){const z=m.productSpecCharacteristicValue[0];c[m.id]={totalRange:{from:Number(z.valueFrom),to:Number(z.valueTo)}},n[m.id]=m.name}const r=this.formGroup.get("priceComponents")?.value||[];for(const m of r){const z=m.selectedCharacteristic?.[0];if(z&&c[z.id]){const F=z.productSpecCharacteristicValue?.[0];if(F&&"valueFrom"in F&&"valueTo"in F){const I=Number(F.valueFrom),J=Number(F.valueTo);c[z.id][I]||(c[z.id][I]=[]),c[z.id][I].push(J)}}}for(const[m,z]of Object.entries(c)){const F=z,I=Object.keys(F);if(1===I.length&&"totalRange"===I[0])continue;const J=F.totalRange;if(!this.hasCompletePathDFS(F,J.from,J.to))return this.rangeValidationError=`The range characteristic "${n[m]||m}" does not have complete coverage from ${J.from} to ${J.to}. Please ensure all ranges are continuous and cover the full specification range.`,console.log(`Range characteristic with ID "${m}" does not have complete coverage`),console.log(" Range data:",F),!1}return!0}getRangeCharacteristics(){return this.prodSpec?.productSpecCharacteristic?this.prodSpec.productSpecCharacteristic.filter(c=>{const n=c.productSpecCharacteristicValue?.[0];return n&&"valueFrom"in n&&"valueTo"in n}):[]}hasCompletePathDFS(c,n,l){const r=new Set,m=z=>{const F=c[z];if(!F||0===F.length)return!1;for(const I of F){if(I===l)return!0;const J=I+1;if(!r.has(J)&&(r.add(J),c[J]&&m(J)))return!0}return!1};return m(n)}openPriceComponentDrawer(c=null){this.editingComponent=c,this.showPriceComponentDrawer=!0}closePriceComponentDrawer(c){if(c){const n=this.formGroup.get("priceComponents")?.value||[];if(this.editingComponent){const l=n.findIndex(r=>r.id===this.editingComponent.id);l>-1&&(this.editingComponent.id?.startsWith("temp-id")||(c.id=this.editingComponent.id),n[l]=c)}else n.push(c);this.formGroup.get("priceComponents")?.setValue(n),console.log(this.formGroup.get("priceComponents")?.value)}this.showPriceComponentDrawer=!1,this.editingComponent=null}editPriceComponent(c){this.openPriceComponentDrawer(c)}deletePriceComponent(c){const n=this.formGroup.get("priceComponents")?.value||[];this.formGroup.get("priceComponents")?.setValue(n.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(),n=this.currentPage*this.pageSize;return c.slice(n,n+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(n=>n.isDefault)||null}))||[]:this.formGroup?.get("productProfile")?.value?.selectedValues?.filter(c=>!this.isOptionalToggleCharacteristicName(c?.name))||[]}updateIsDefault(c,n){return c.map(l=>{const r=n.find(m=>m.id===l.id);return r?{...l,productSpecCharacteristicValue:l.productSpecCharacteristicValue.map(m=>({...m,isDefault:String(m.value)===String(r.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 n=this.formGroup.get("priceComponents")?.value||[];n.push(...c),this.formGroup.get("priceComponents")?.setValue(n),console.log("Tier pricing components added:",c)}this.showTierPricingDrawer=!1}hasRangeCharacteristics(){return!!this.prodSpec?.productSpecCharacteristic&&this.prodSpec.productSpecCharacteristic.some(c=>{const n=c.productSpecCharacteristicValue?.[0];return n&&"valueFrom"in n&&"valueTo"in n})}hasProfilePricePlan(){const c=this.formGroup?.get("prodSpecCharValueUse")?.value;return c&&c.length>0}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-price-plan-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){if(1&n&&(e.j41(0,"div",0),e.DNE(1,lz0,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,sz0,4,3,"p",12)(17,az0,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,Lz0,31,21)(24,Cz0,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,zz0,1,3,"app-price-component-drawer",19)(35,Mz0,1,1,"app-tier-pricing-drawer",20),e.k0s()),2&n){let r,m,z,F;e.Y8G("ngClass",e.l_i(28,cz0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngIf",l.showPriceComponentDrawer||l.showTierPricingDrawer),e.R7$(),e.Y8G("ngClass",e.sMw(31,tz0,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==(r=l.formGroup.get("name"))?null:r.invalid)&&""!=l.formGroup.value.name||null!=(r=l.formGroup.get("name"))&&r.touched&&""==l.formGroup.value.name||l.formGroup.hasError("nonUniqueName")&&null!=(r=l.formGroup.get("name"))&&r.touched?"border-red-600":"border-gray-300 dark:border-gray-600"),e.R7$(),e.vxM(16,l.formGroup.hasError("nonUniqueName")&&null!=(m=l.formGroup.get("name"))&&m.touched?16:-1),e.R7$(),e.vxM(17,null!=(z=l.formGroup.get("name"))&&z.invalid&&null!=(z=l.formGroup.get("name"))&&null!=z.errors&&z.errors.required&&null!=(z=l.formGroup.get("name"))&&z.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!=(F=l.formGroup.get("paymentOnline"))&&F.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,nz0,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,L.YU,ge,L.bT,mC0,wL0,vC0,KC0,L.Sq]})}}return t})();function bz0(t,a){1&t&&(e.j41(0,"option",9),e.EFF(1,"Tailored price"),e.k0s())}function yz0(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.onPaymentOnlineChange(l))}),e.j41(3,"option",8),e.EFF(4,"Free"),e.k0s(),e.DNE(5,bz0,2,0,"option",9),e.j41(6,"option",10),e.EFF(7,"Online paid price"),e.k0s()()}if(2&t){const c=e.XpG();e.R7$(2),e.Y8G("value",c.priceType),e.R7$(3),e.vxM(5,c.custom?-1:5)}}function Fz0(t,a){if(1&t&&(e.j41(0,"label",11),e.EFF(1),e.k0s()),2&t){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 vz0(t,a){if(1&t){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&t&&(e.R7$(4),e.JRh(e.bMT(5,1,"FORMS.PRICE_PLANS._add")))}function kz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-plan-drawer",16),e.bIt("save",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.savePricePlan(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("formGroup",c.selectedPricePlan)("prodSpec",c.prodSpec)("action",c.action)}}let dE1=(()=>{class t{constructor(c,n,l){this.fb=c,this.cdr=n,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(n=>this.createPricePlanForm(n))),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(n=>({id:n.id,name:n.name,description:n.description,isBundle:n.isBundle,lastUpdate:n.lastUpdate,lifecycleStatus:n.lifecycleStatus,paymentOnline:n.paymentOnline,priceType:n.priceType,currency:n.currency,unitOfMeasure:n.unitOfMeasure,validFor:n.validFor,priceComponents:n.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(n=>({id:n.id,name:n.name,description:n.description,isBundle:n.isBundle,lastUpdate:n.lastUpdate,lifecycleStatus:n.lifecycleStatus,paymentOnline:n.paymentOnline,priceType:n.priceType,currency:n.currency,unitOfMeasure:n.unitOfMeasure,validFor:n.validFor,priceComponents:n.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(n=>n.name).filter(n=>!!n),console.log("\u{1f4dd} Original state:",this.originalPricePlans),console.log("\u{1f50d} Last known state:",this.lastKnownState),this.formSubscription=this.pricePlansForm.valueChanges.pipe(QH(500),Y1(),(0,N3.p)(()=>this.pricePlansForm.dirty),(0,P1.Q)(this.destroy$)).subscribe(n=>{console.log("\u{1f4ca} Form array value changed:",n),this.checkChanges()}),this.pricePlansForm.controls.forEach((n,l)=>{n.valueChanges.pipe(QH(500),Y1(),(0,P1.Q)(this.destroy$)).subscribe(r=>{console.log(`\u{1f4c8} Price plan ${l} changed:`,r),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 n=this.getDetailedChanges(c);console.log("\u{1f4dd} Detailed changes:",n);const l={subformType:"pricePlans",isDirty:this.pricePlansForm.dirty,dirtyFields:Object.keys(this.pricePlansForm.controls).filter(r=>this.pricePlansForm.get(r)?.dirty),originalValue:this.originalValue,currentValue:c,priceComponentsChanged:n.some(r=>r.priceComponents.added.length>0||r.priceComponents.modified.length>0||r.priceComponents.deleted.length>0),profileChanged:this.checkProfileChanges(),modifiedPricePlans:n};console.log("\u{1f680} Emitting price plans change state:",l),this.formChange.emit(l),this.lastKnownState=c.map(r=>({id:r.id,name:r.name,description:r.description,isBundle:r.isBundle,lastUpdate:r.lastUpdate,lifecycleStatus:r.lifecycleStatus,paymentOnline:r.paymentOnline,priceType:r.priceType,currency:r.currency,unitOfMeasure:r.unitOfMeasure,validFor:r.validFor,priceComponents:r.priceComponents?.map(z=>({id:z.id,name:z.name,price:z.price,currency:z.currency,recurringPeriod:z.recurringPeriod,usageUnit:z.usageUnit}))||[]}))}getDetailedChanges(c){const n=[];return c.forEach(l=>{const r=this.originalPricePlans.find(N1=>N1.id===l.id),m=this.lastKnownState.find(N1=>N1.id===l.id),z=this.getModifiedFields(r,l),F=this.getModifiedFields(m,l),i1=this.getDetailedComponentChanges(r?.priceComponents||[],m?.priceComponents||[],l.priceComponents||[]);(z.length>0||F.length>0||i1.added.length>0||i1.modified.length>0||i1.deleted.length>0)&&n.push({id:l.id,isNew:!r,modifiedFields:z,oldValue:m,newValue:l,priceComponents:i1})}),n}getDetailedComponentChanges(c,n,l){const r=l.filter(F=>!c.find(I=>I.id===F.id)).map(F=>({id:F.id,name:F.name,price:F.price,currency:F.currency,recurringPeriod:F.recurringPeriod,usageUnit:F.usageUnit,modifiedFields:Object.keys(F),newValue:F})),m=c.filter(F=>!l.find(I=>I.id===F.id)).map(F=>F.id);return{added:r,modified:l.filter(F=>{const I=c.find(d1=>d1.id===F.id),J=n.find(d1=>d1.id===F.id);return I&&(this.getModifiedFields(I,F).length>0||this.getModifiedFields(J,F).length>0)}).map(F=>{c.find(d1=>d1.id===F.id);const J=n.find(d1=>d1.id===F.id);return{id:F.id,name:F.name,price:F.price,currency:F.currency,recurringPeriod:F.recurringPeriod,usageUnit:F.usageUnit,modifiedFields:this.getModifiedFields(J,F),oldValue:J,newValue:F}}),deleted:m}}getModifiedFields(c,n){return c?Object.keys(n).filter(l=>{if("priceComponents"===l||"productProfile"===l||"controls"===l||"_parent"===l)return!1;const r=c[l],m=n[l];return r instanceof p.gE||m instanceof p.gE||r instanceof p.Yp||m instanceof p.Yp?JSON.stringify(r?.value)!==JSON.stringify(m?.value):JSON.stringify(r)!==JSON.stringify(m)}):Object.keys(n)}checkProfileChanges(){return(this.pricePlansForm.get("pricePlans")?.value||[]).some(n=>n.productProfile?.dirty||n.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:[hX2,gX2(()=>this.existingPlanNames)]})}mapProductProfile(c){return this.fb.group({selectedValues:this.fb.array(c.map(n=>this.fb.group({id:[n.id],name:[n.name],selectedValue:[n.productSpecCharacteristicValue.find(l=>l.isDefault)?.value??null,p.k0.required]})))})}addPricePlan(c){console.log("add plan");const n=c?.paymentOnline??this.paymentOnline,l=this.createPricePlanForm({...c,paymentOnline:n});this.pricePlansForm.push(l),this.existingPlanNames=this.pricePlans.map(r=>r.name).filter(r=>!!r),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 n=this.pricePlansForm.controls.findIndex(m=>m.getRawValue().id===this.selectedPricePlan?.getRawValue().id),r={...c,paymentOnline:"edit"===this.action?this.selectedPricePlan?.getRawValue().paymentOnline:this.paymentOnline};n>-1?this.pricePlansForm.at(n).patchValue(r):this.addPricePlan(r),this.syncPricePlans(),this.showDrawer=!1,this.selectedPricePlan=null}generateId(){return`temp-id:${A4()}`}openPricePlanDrawer(c=null){if(c){console.log("\u{1f4dd} Editing existing price plan:",c);const n=this.pricePlansForm.controls.findIndex(l=>l.value.id===c.id);console.log(n),-1!==n?this.selectedPricePlan=this.pricePlansForm.at(n):(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(n=>n.name).filter(n=>!!n),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(n=>n.id!==this.selectedPricePlan.value.id).map(n=>n.name).filter(n=>!!n),this.form.updateValueAndValidity()):(this.action="create",this.selectedPricePlan=this.createPricePlanForm({paymentOnline:this.paymentOnline}),this.existingPlanNames=this.pricePlans.map(n=>n.name).filter(n=>!!n),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(n=>this.addPricePlan(n))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&(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,yz0,8,2)(6,Fz0,2,1),e.k0s(),e.j41(7,"app-price-plans-table",3),e.bIt("edit",function(m){return l.editPricePlan(m)})("delete",function(m){return l.removePricePlan(m)}),e.k0s(),e.DNE(8,vz0,6,3,"button",4),e.k0s(),e.DNE(9,kz0,1,3,"app-price-plan-drawer",5)),2&n&&(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:[bL0,s1.h,s1.D9,xz0,p.X1,p.xH,p.y7,p.cb,p.j4]})}}return t})();const wz0=(t,a)=>a.id;function Sz0(t,a){if(1&t&&(e.j41(0,"option",6),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.JRh(c.name)}}function Nz0(t,a){if(1&t&&(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&t){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 Ez0(t,a){1&t&&(e.j41(0,"p",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_OFFER._pla_spec_id_required")))}function Dz0(t,a){if(1&t&&(e.j41(0,"label",11),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",12),e.DNE(4,Ez0,3,3,"p",13)),2&t){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 Tz0(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(11),e.SpI(" ",c.errorMessage," "),e.R7$(2),e.FS9("href",c.gatewayUrl,e.B4B)}}let fE1=(()=>{class t{constructor(c,n,l){this.cdr=c,this.eventMessage=n,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,P1.Q)(this.destroy$)).subscribe(r=>{if("UpdateOffer"===r.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const m={id:this.procurementMode,name:this.procurementModes.find(z=>z.id===this.procurementMode)?.name||"Manual",extBillingEnabled:this.formGroup.get("extBillingEnabled")?.value??!1,plaSpecId:this.formGroup.get("plaSpecId")?.value??""};JSON.stringify(m)!==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:m}))}})}writeValue(c){if(console.log("\u{1f4dd} writeValue - Input value:",c),c){const n=c.id||c;console.log("\u{1f4dd} writeValue - Selected mode:",n),this.procurementMode=n,console.log("\u{1f4dd} writeValue - Updated procurementMode:",this.procurementMode),this.formGroup&&this.formGroup.patchValue({mode:n});const l=this.procurementModes.find(r=>r.id===n);this.onChange(l||{id:n,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(n=>"procurement"===n.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 n=this.data?.pricingLogicAlgorithm?.[0]?.plaSpecId??"";this.formGroup.addControl("extBillingEnabled",new p.MJ(!!n)),this.formGroup.addControl("plaSpecId",new p.MJ(n,n?[p.k0.required]:[])),this.formGroup.get("extBillingEnabled").valueChanges.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{const m=this.formGroup.get("plaSpecId");r?m.setValidators([p.k0.required]):m.clearValidators(),m.updateValueAndValidity()}),this.isEditMode&&(this.originalValue={id:c,name:this.procurementModes.find(r=>r.id===c)?.name||"Manual",extBillingEnabled:!!n,plaSpecId:n},console.log("\u{1f4dd} Original value stored:",this.originalValue)),this.formSub=this.form.valueChanges.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{if(console.log("\u{1f4dd} Form value changed in subscription:",r),r){if(r.mode){if("manual"!=r.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 m=this.procurementModes.find(z=>z.id===r.mode)||this.procurementModes[0];console.log("\u{1f4dd} Found mode:",m),this.procurementMode=m.id,console.log("\u{1f4dd} Current procurementMode:",this.procurementMode)}this.hasBeenModified=!0}}),(0,U2.s)(this.http.get(`${h1.c.BASE_URL}/paymentInfo`)).then(r=>{this.gatewayUrl=r.providerUrl,this.gatewayCount=r.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 n=this.procurementModes.find(l=>l.id===c.target.value);console.log("\u{1f504} changeProcurement - Found mode:",n),n&&(this.formGroup.patchValue({mode:c.target.value}),this.hasBeenModified=!0,this.onChange(n))}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(n=>n.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(n){return new(n||t)(e.rXU(e.gRc),e.rXU(H2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&(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,Sz0,2,2,"option",6,wz0),e.k0s()()()(),e.DNE(11,Nz0,5,4,"div",7)(12,Dz0,5,7)(13,Tz0,15,2,"div",8)),2&n&&(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 t})();function Rz0(t,a){1&t&&(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 Az0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function Iz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const r=e.eBV(c).$implicit,m=e.XpG(3);return l.stopPropagation(),e.Njj(m.toggleSelection(r))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",n.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",n.isSelected(c.id)),e.R7$(2),e.JRh(c.tradingName)}}function Pz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",9)(1,"input",10),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.searchTerm,l)||(r.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,Iz0,5,3,"tr",16,e.Vm6),e.k0s()()()}if(2&t){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 $z0(t,a){if(1&t&&e.DNE(0,Az0,7,3,"div",5)(1,Pz0,13,4),2&t){const c=e.XpG();e.vxM(0,0==c.parties.length?0:1)}}let jz0=(()=>{class t{constructor(c,n){this.accService=c,this.cdr=n,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(n=>n.tradingName?.toLowerCase().includes(c)):this.parties}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.loading=!0;try{c.parties=yield c.accService.getOrgList(),console.log("Parties loaded:",c.parties);const n=c.incomingValue?.id??c.partyId;if(n){if(c.selectedParty=c.parties.find(l=>l.id===n)??null,!c.selectedParty)try{const l=yield c.accService.getOrgInfo(n);l?.id&&(c.parties=[l,...c.parties.filter(r=>r.id!==l.id)],c.selectedParty=l)}catch(l){console.error("Unable to load requested party by id:",n,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(n){return new(n||t)(e.rXU(K0.O),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-related-party-id"]],inputs:{partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){1&n&&e.DNE(0,Rz0,6,0,"div",0)(1,$z0,2,1),2&n&&e.vxM(0,l.loading?0:1)},dependencies:[s1.h,s1.D9,L.YU,p.YN,p.me,p.BC,p.vS]})}}return t})();const Oz0=(t,a)=>a.id,Bz0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Vz0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a});function Uz0(t,a){1&t&&(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 Hz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(2);return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Gz0(t,a){1&t&&(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 Yz0(t,a){if(1&t&&e.nrm(0,"app-related-party-id",24),2&t){const c=e.XpG(3);e.Y8G("partyId",c.partyId)}}function qz0(t,a){if(1&t&&e.nrm(0,"app-price-plans-form",25),2&t){let c;const n=e.XpG(3);e.Y8G("form",n.productOfferForm)("prodSpec",null==(c=n.productOfferForm.get("prodSpec"))?null:c.value)("custom",!0)}}function Xz0(t,a){if(1&t&&e.nrm(0,"app-procurement-mode",26),2&t){const c=e.XpG(3);e.Y8G("data",c.offer)("form",c.productOfferForm.controls.procurementMode)}}function Wz0(t,a){if(1&t&&(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&t){let c;const n=e.XpG(4);e.R7$(3),e.JRh(null==(c=n.productOfferForm.get("partyInfo"))?null:c.value.tradingName)}}function Jz0(t,a){if(1&t&&(e.j41(0,"tr",39)(1,"td",40),e.EFF(2),e.k0s(),e.j41(3,"td",41),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function Qz0(t,a){if(1&t&&(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,Jz0,5,2,"tr",39,Oz0),e.k0s()()()),2&t){let c;const n=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=n.productOfferForm.get("pricePlans"))?null:c.value)}}function Zz0(t,a){if(1&t&&(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,Wz0,5,1,"h2",33)(15,Qz0,16,9),e.k0s()),2&t){let c,n;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!=(n=l.productOfferForm.get("pricePlans"))&&n.value?15:-1)}}function Kz0(t,a){if(1&t&&(e.j41(0,"div",23),e.DNE(1,Yz0,1,1,"app-related-party-id",24)(2,qz0,1,3)(3,Xz0,1,2)(4,Zz0,16,10),e.k0s()),2&t){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 eM0(t,a){if(1&t){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&t){const c=e.XpG(2);e.Y8G("disabled",c.loading)("ngClass",c.loading?"opacity-50":"hover:bg-primary-50")}}function cM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,Hz0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,Gz0,6,0,"div",2)(7,Kz0,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,eM0,2,2,"button",19),e.k0s()()}if(2&t){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,Bz0,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,Vz0,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 tM0(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let uE1=(()=>{class t{constructor(c,n,l,r){this.api=c,this.eventMessage=n,this.fb=l,this.quoteService=r,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,b1.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,b1.A)(function*(){if(console.log("Loading offer into form...",c.offer),c.offer.productOfferingTerm){console.log("Found productOfferingTerm:",c.offer.productOfferingTerm);const n=c.offer.productOfferingTerm.find(l=>"procurement"===l.name);if(n){const l={id:n.description,name:n.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 n=(0,b1.A)(function*(l){c.productOfferForm.patchValue({prodSpec:l||null})});return function(l){return n.apply(this,arguments)}}()))})()}createOffer(){var c=this;return(0,b1.A)(function*(){c.loading=!0;const n=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!==n.length)for(let l=0;lc.createPriceComponent(d1,r.currency))),I=c.createBundledPricePlan(r,F);z=(yield(0,U2.s)(c.api.postOfferingPrice(I))).id,c.productOfferForm.value.pricePlans[l].id=z,l===n.length-1&&c.saveOfferInfo()}catch(z){c.handleApiError(z)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,n=c.pricePlans.map(F=>({id:F.id,href:F.id})),l=this.offer.productOfferingTerm.find(F=>"License"===F.name);let r=this.offer.name;this.productOfferForm.get("partyInfo")?.value.tradingName&&(r=`${this.offer.name} - ${this.productOfferForm.get("partyInfo")?.value.tradingName}`);const m={name:r,description:this.offer?.description||"",lifecycleStatus:"Active",isBundle:this.bundleChecked,isSellable:!1,bundledProductOffering:this.offersBundle,place:[],version:this.offer.version,category:this.offer.category,productOfferingPrice:n,validFor:{startDateTime:(new Date).toISOString()},relatedParty:[{role:h1.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||(m.productSpecification=this.offer.productSpecification),this.offerToCreate=m,console.log("---- Offer to create -----"),console.log(this.offerToCreate),this.api.postProductOffering(m,null).subscribe({next:F=>{console.log("product offer created:"),console.log(F),this.loading=!1,this.goBack()},error:F=>{console.error("Error during offer save/update:",F),this.errorMessage=F?.error?.error?"Error: "+F.error.error:"An error occurred while saving the offer!",this.loading=!1,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}})}createPriceComponent(c,n){var l=this;return(0,b1.A)(function*(){console.log("component format"),console.log(c);let r={name:c.name,description:c.description??c?.newValue.description,lifecycleStatus:c?.lifecycleStatus??c?.newValue?.lifecycleStatus??"Active",priceType:c.priceType??c?.newValue?.priceType,price:{unit:n,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},m=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(m)&&(r.recurringChargePeriodType=c.recurringPeriod,r.recurringChargePeriodLength=1),"usage"===m&&(console.log(c.newValue),r.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},r["@baseType"]="ProductOfferingPrice",r["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",r.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(r)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(r.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(r.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const F=yield l.createPriceAlteration(c,n);r.popRelationship=[{id:F.id,href:F.id,name:F.name}]}console.log("create price comp"),console.log(r);const z=yield(0,U2.s)(l.api.postOfferingPrice(r));return{id:z.id,href:z.id,name:z.name}})()}createPriceAlteration(c,n){var l=this;return(0,b1.A)(function*(){const r={name:"discount",priceType:"discount",validFor:{startDateTime:Y2().toISOString(),endDateTime:Y2().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?r.percentage=c.discountValue:r.price={value:c.discountValue,unit:n},yield(0,U2.s)(l.api.postOfferingPrice(r))})()}createBundledPricePlan(c,n){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:n};return c?.priceType&&"custom"==c?.priceType&&(l.priceType="custom"),c.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.prodSpecCharValueUse.map(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.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 n=this.validateCurrentStep();console.log(!n),n&&(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(n){return new(n||t)(e.rXU(F2.F),e.rXU(H2),e.rXU(p.ok),e.rXU(X2.K))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Uz0,6,0,"div",2)(5,cM0,20,20),e.k0s(),e.DNE(6,tM0,9,1,"div",3)),2&n&&(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,dE1,fE1,jz0,L.YU]})}}return t})();function nM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",10)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function lM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",11)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function sM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",12)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function aM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",13)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function oM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.selectStatus(l))}),e.j41(1,"span",4),e.qSk(),e.j41(2,"svg",5),e.DNE(3,nM0,1,1,"path",6)(4,lM0,1,1,"path",7)(5,sM0,1,1,"path",8)(6,aM0,1,1,"path",9),e.k0s(),e.joV(),e.j41(7,"span"),e.EFF(8),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG();e.Y8G("ngClass",n.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 iM0=(()=>{class t{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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-status-selector"]],inputs:{statuses:"statuses",disabledStatuses:"disabledStatuses"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){1&n&&(e.j41(0,"div",0)(1,"ol",1),e.Z7z(2,oM0,9,7,"li",2,e.Vm6),e.k0s()()),2&n&&(e.R7$(2),e.Dyx(l.statuses))},dependencies:[HL,L.YU,L.bT],styles:["svg[_ngcontent-%COMP%]{min-width:24px;width:24px;height:24px}"]})}}return t})();function rM0(t,a){if(1&t&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function dM0(t,a){if(1&t&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",3)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("formControl",c.versionControl)}}function fM0(t,a){if(1&t&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-status-selector",5)),2&t){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 uM0(t,a){if(1&t&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",6)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let mM0=(()=>{class t{constructor(c,n){this.eventMessage=c,this.apiService=n,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),s6])),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*)?$"),s6])),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),h1.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),s6])),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*)?$"),s6]))),this.isEditMode&&this.formGroup.valueChanges.pipe(QH(500),(0,P1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const n=this.getDirtyFields(c);if(n.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:n,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(n=>{const r=this.originalValue[n];return JSON.stringify(c[n])!==JSON.stringify(r)})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2),e.rXU(F2.F))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,rM0,4,4)(1,dM0,4,4)(2,fM0,4,5)(3,uM0,4,4),2&n&&(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_,HL,s1.D9,ge,iM0]})}}return t})();function pM0(t,a){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,"span",4),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_OFFER._no_prod_spec")," "))}function hM0(t,a){1&t&&(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 gM0(t,a){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,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function _M0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",18),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(!r.isEditMode&&r.toggleSelection(l))}),e.j41(1,"td",19)(2,"input",20),e.bIt("click",function(l){const r=e.eBV(c).$implicit,m=e.XpG(4);return l.stopPropagation(),e.Njj(!m.isEditMode&&m.toggleSelection(r))}),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&t){const c=a.$implicit,n=e.XpG(4);e.Y8G("ngClass",n.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",n.isSelected(c.id))("disabled",n.isEditMode),e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",n.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",n.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 LM0(t,a){if(1&t&&(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,_M0,16,16,"tr",17,e.Vm6),e.k0s()()()),2&t){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 CM0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",28),e.nrm(1,"path",29),e.k0s())}function zM0(t,a){if(1&t){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,CM0,2,0,":svg:svg",28),e.k0s()}if(2&t){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 MM0(t,a){if(1&t&&e.DNE(0,gM0,7,3,"div",0)(1,LM0,20,12)(2,zM0,7,5,"div",9),2&t){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 xM0(t,a){if(1&t&&e.DNE(0,hM0,6,0,"div",5)(1,MM0,3,2),2&t){const c=e.XpG();e.vxM(0,c.loadingProdSpec?0:1)}}let bM0=(()=>{class t{constructor(c,n){this.prodSpecService=c,this.paginationService=n,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=h1.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,b1.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 n={subformType:"productSpecification",isDirty:!0,dirtyFields:c,originalValue:this.originalValue,currentValue:this.selectedProdSpecInternal};console.log("\u{1f680} Emitting final change state:",n),this.formChange.emit(n)}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 n=this;return(0,b1.A)(function*(){c||(n.loadingProdSpec=!0),n.paginationService.getItemsPaginated(n.prodSpecPage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecPageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.prodSpecPage=r.page,n.loadingProdSpec=!1,n.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,b1.A)(function*(){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(n){return new(n||t)(e.rXU(a6),e.rXU(A6))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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"],["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","ml-2"],["d","M93.9676 39.0409C96.393 38.4038...","fill","currentFill"]],template:function(n,l){1&n&&e.DNE(0,pM0,9,3,"div",0)(1,xM0,2,1),2&n&&e.vxM(0,l.bundleChecked?0:1)},dependencies:[L.vh,s1.h,s1.D9,L.YU]})}}return t})();const yM0=(t,a)=>a.id,FM0=t=>({$implicit:t,level:0}),vM0=(t,a,c)=>({"bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600":t,"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}),kM0=(t,a)=>({"rotate-90":t,"rotate-0":a}),wM0=(t,a)=>({$implicit:t,level:a});function SM0(t,a){1&t&&(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 NM0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function EM0(t,a){1&t&&e.eu8(0)}function DM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",23),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().$implicit;return e.XpG(4).toggleCategory(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25),e.k0s()()}if(2&t){const c=e.XpG().$implicit,n=e.XpG().level;e.xc7("padding-left",10*n,"px"),e.R7$(),e.Y8G("ngClass",e.l_i(3,kM0,c.expanded,!c.expanded))}}function TM0(t,a){1&t&&e.eu8(0)}function RM0(t,a){if(1&t&&e.DNE(0,TM0,1,0,"ng-container",16),2&t){const c=e.XpG().$implicit,n=e.XpG().level;e.XpG();const l=e.sdS(14);e.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",e.l_i(2,wM0,c.children,n+1))}}function AM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.manageCategory(l))}),e.j41(1,"td",18),e.DNE(2,DM0,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 r=e.eBV(c).$implicit;return e.XpG(4).manageCategory(r),e.Njj(l.stopPropagation())}),e.k0s()()(),e.DNE(7,RM0,1,5,"ng-container")}if(2&t){const c=a.$implicit,n=e.XpG().level,l=e.XpG(3);e.Y8G("ngClass",e.sMw(7,vM0,0===n,n>0,l.isCategorySelected(c))),e.R7$(2),e.Y8G("ngIf",c.childrenLoaded||!c.childrenLoaded),e.R7$(),e.xc7("padding-left",20*n,"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 IM0(t,a){1&t&&(e.j41(0,"tr")(1,"td",26),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"CREATE_OFFER._no_subcats")))}function PM0(t,a){1&t&&e.Z7z(0,AM0,8,11,null,null,yM0,!1,IM0,4,3,"tr"),2&t&&e.Dyx(a.$implicit)}function $M0(t,a){if(1&t&&(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,EM0,1,0,"ng-container",16),e.k0s()(),e.DNE(13,PM0,3,1,"ng-template",null,0,e.C5r),e.k0s()),2&t){const c=e.sdS(14),n=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,FM0,n.categories))}}function jM0(t,a){if(1&t&&e.DNE(0,NM0,7,3,"div",6)(1,$M0,15,10),2&t){const c=e.XpG();e.vxM(0,0==c.categories.length?0:1)}}let OM0=(()=>{class t{constructor(c,n){this.api=c,this.cdr=n,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,b1.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(n=>n.id===c.id)}getCategories(){var c=this;return(0,b1.A)(function*(){console.log("Obteniendo categor\xedas..."),c.loadingCategory=!0,c.categories=[];try{const n=yield c.api.getDefaultCategories();if(!Array.isArray(n)||0===n.length)return console.error("No hay categor\xedas disponibles."),void(c.loadingCategory=!1);console.log("Datos recibidos:",n),c.categories=n.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(n){console.error("Error al obtener categor\xedas:",n),c.loadingCategory=!1}})()}loadChildren(c){var n=this;return(0,b1.A)(function*(){if(c){if(c.childrenLoaded)return void(c.expanded=!c.expanded);try{console.log(`Cargando hijos de ${c.name}...`);const l=yield n.api.getCategoriesByParentId(c.id);c.children=l.map(r=>({...r,expanded:!1,childrenLoaded:!1,children:[]})),c.childrenLoaded=!0,c.expanded=!0,setTimeout(()=>n.cdr.detectChanges(),0)}catch(l){console.error(`Error al cargar hijos de ${c.name}:`,l)}}})()}manageCategory(c){if(!c)return;const n=this.selectedCategories.findIndex(z=>z.id===c.id);n>-1?(this.selectedCategories.splice(n,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],m={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",m),this.formChange.emit(m)}removeChildren(c){if(c.children&&0!==c.children.length)for(let n of c.children){const l=this.selectedCategories.findIndex(r=>r.id===n.id);l>-1&&this.selectedCategories.splice(l,1),this.removeChildren(n)}}addParent(c){if(!c)return;const n=this.findCategoryById(c,this.categories);n&&(this.selectedCategories.find(r=>r.id===n.id)||(this.selectedCategories.push(n),this.addParent(n.parentId)))}findCategoryById(c,n){for(let l of n){if(l.id===c)return l;if(l.children&&l.children.length>0){const r=this.findCategoryById(c,l.children);if(r)return r}}return null}toggleCategory(c){var n=this;return(0,b1.A)(function*(){c&&(c.childrenLoaded?c.expanded=!c.expanded:yield n.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],n=this.getDirtyFields(c);if(n.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:n,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 n=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&n.push("selectedCategories"),n}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(F2.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&e.DNE(0,SM0,6,0,"div",1)(1,jM0,2,1),2&n&&e.vxM(0,l.loadingCategory?0:1)},dependencies:[s1.h,s1.D9,L.bT,L.T3,L.YU]})}}return t})();function BM0(t,a){if(1&t&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",1)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let VM0=(()=>{class t{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,P1.Q)(this.destroy$)).subscribe(n=>{if("UpdateOffer"===n.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const l={treatment:"License",description:this.descControl?.value||""},r=this.getDirtyFields(l);if(r.length>0){const m={subformType:"license",isDirty:!0,dirtyFields:r,originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",m),this.formChange.emit(m)}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(n=>"License"==n.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,P1.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||""},n=this.getDirtyFields(c);if(n.length>0){const l={subformType:"license",isDirty:!0,dirtyFields:n,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 n=[];return this.originalValue&&(c.treatment!==this.originalValue.treatment&&n.push("treatment"),c.description!==this.originalValue.description&&n.push("description")),n}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(H2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,BM0,4,4),2&n&&e.vxM(0,l.descControl?0:-1)},dependencies:[ge,p.X1,p.BC,p.l_,s1.h,s1.D9]})}}return t})();const UM0=(t,a)=>({"break-all":t,"break-words":a});function HM0(t,a){1&t&&(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 GM0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function YM0(t,a){if(1&t&&(e.j41(0,"span",22),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function qM0(t,a){if(1&t&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function XM0(t,a){if(1&t&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function WM0(t,a){if(1&t&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function JM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const r=e.eBV(c).$implicit,m=e.XpG(3);return l.stopPropagation(),e.Njj(m.toggleSelection(r))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s(),e.j41(5,"td",21),e.DNE(6,YM0,2,1,"span",22)(7,qM0,2,1)(8,XM0,2,1)(9,WM0,2,1),e.k0s(),e.j41(10,"td",21),e.EFF(11),e.k0s()()}if(2&t){let c;const n=a.$implicit,l=e.XpG(3);e.Y8G("ngClass",n.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(n.id)),e.R7$(),e.Y8G("ngClass",e.l_i(6,UM0,l.hasLongWord(n.name,20),!l.hasLongWord(n.name,20))),e.R7$(),e.SpI(" ",n.name," "),e.R7$(2),e.vxM(6,"Active"==n.lifecycleStatus?6:"Launched"==n.lifecycleStatus?7:"suspended"==n.lifecycleStatus?8:"terminated"==n.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",null==n.relatedParty||null==(c=n.relatedParty.at(0))?null:c.role," ")}}function QM0(t,a){if(1&t&&(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,JM0,12,9,"tr",16,e.fX1),e.k0s()()()),2&t){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 ZM0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function KM0(t,a){if(1&t&&e.DNE(0,ZM0,6,3,"div",26),2&t){const c=e.XpG(2);e.vxM(0,c.catalogPageCheck?0:-1)}}function ex0(t,a){1&t&&(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 cx0(t,a){if(1&t&&e.DNE(0,GM0,7,3,"div",5)(1,QM0,17,9)(2,KM0,1,1)(3,ex0,6,0),2&t){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 tx0=(()=>{class t{constructor(c,n,l){this.api=c,this.paginationService=n,this.cdr=l,this.CATALOG_LIMIT=h1.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,b1.A)(function*(){yield c.getSellerCatalogs(!1)})()}ngAfterViewInit(){setTimeout(()=>this.cdr.detectChanges(),0)}getSellerCatalogs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingCatalog=!0),n.paginationService.getItemsPaginated(n.catalogPage,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.catalogPageCheck=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.catalogPage=r.page,n.loadingCatalog=!1,n.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,b1.A)(function*(){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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(F2.F),e.rXU(A6),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-catalogue"]],inputs:{partyId:"partyId"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&e.DNE(0,HM0,6,0,"div",0)(1,cx0,4,2),2&n&&e.vxM(0,l.loadingCatalog?0:1)},dependencies:[s1.h,s1.D9,L.YU]})}}return t})();const mE1=(t,a)=>a.id,tf=(t,a)=>({"break-all":t,"break-words":a});function nx0(t,a){if(1&t&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function lx0(t,a){if(1&t&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function sx0(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function ax0(t,a){if(1&t&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo.status"))||null==(c=c.get("status"))?null:c.value)}}function ox0(t,a){if(1&t&&(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&t){let c,n;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,tf,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==(n=l.productOfferForm.get("generalInfo.description"))?null:n.value)}}function ix0(t,a){if(1&t&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function rx0(t,a){if(1&t&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function dx0(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function fx0(t,a){if(1&t&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function ux0(t,a){if(1&t&&(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,ix0,2,1,"span",8)(22,rx0,2,1)(23,dx0,2,1)(24,fx0,2,1),e.k0s(),e.j41(25,"td",22),e.EFF(26),e.k0s()()()()()),2&t){let c,n,l,r;const m=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,tf,m.hasLongWord(null==(c=m.productOfferForm.get("catalogue"))?null:c.value.name,20),!m.hasLongWord(null==(c=m.productOfferForm.get("catalogue"))?null:c.value.name,20))),e.R7$(),e.SpI(" ",null==(n=m.productOfferForm.get("catalogue"))?null:n.value.name," "),e.R7$(2),e.vxM(21,"active"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?21:"Launched"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?22:"suspended"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?23:"terminated"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?24:-1),e.R7$(5),e.SpI(" ",null==(r=m.productOfferForm.get("catalogue"))||null==r.value.relatedParty||null==(r=r.value.relatedParty.at(0))?null:r.role," ")}}function mx0(t,a){if(1&t&&(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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(6,tf,n.hasLongWord(c.name,20),!n.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 px0(t,a){if(1&t&&(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,mx0,6,9,"tr",19,mE1),e.k0s()()()),2&t){let c;const n=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=n.productOfferForm.get("category"))?null:c.value)}}function hx0(t,a){if(1&t&&(e.j41(0,"tr",19)(1,"td",23),e.EFF(2),e.k0s(),e.j41(3,"td",24),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,tf,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,tf,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function gx0(t,a){if(1&t&&(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,hx0,5,10,"tr",19,mE1),e.k0s()()()),2&t){let c;const n=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=n.productOfferForm.get("pricePlans"))?null:c.value)}}function _x0(t,a){if(1&t&&(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&t){let c,n;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,tf,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==(n=l.productOfferForm.get("license"))||null==(n=n.get("description"))?null:n.value)}}function Lx0(t,a){if(1&t&&(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,_x0,5,8),e.k0s()),2&t){let c,n,l;const r=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,tf,r.hasLongWord(null==(c=r.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20),!r.hasLongWord(null==(c=r.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20))),e.R7$(),e.SpI(" ",null==(n=r.productOfferForm.get("license"))||null==(n=n.get("treatment"))?null:n.value," "),e.R7$(),e.vxM(9,""!==(null==(l=r.productOfferForm.get("license"))||null==(l=l.get("description"))?null:l.value)?9:-1)}}let Cx0=(()=>{class t{ngOnInit(){var c=this;return(0,b1.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-offer-summary"]],inputs:{productOfferForm:"productOfferForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){if(1&n&&(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,nx0,2,1,"span",8)(19,lx0,2,1)(20,sx0,2,1)(21,ax0,2,1),e.k0s(),e.DNE(22,ox0,5,8)(23,ux0,27,19)(24,px0,16,9)(25,gx0,16,9)(26,Lx0,10,12),e.k0s()),2&n){let r,m,z,F,I,J,d1,i1,N1;e.R7$(4),e.JRh(e.bMT(5,13,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(19,tf,l.hasLongWord(null==(r=l.productOfferForm.get("generalInfo.name"))?null:r.value,20),!l.hasLongWord(null==(r=l.productOfferForm.get("generalInfo.name"))?null:r.value,20))),e.R7$(),e.SpI(" ",null==(m=l.productOfferForm.get("generalInfo.name"))?null:m.value," "),e.R7$(3),e.JRh(e.bMT(11,15,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("ngClass",e.l_i(22,tf,l.hasLongWord(null==(z=l.productOfferForm.get("generalInfo.version"))?null:z.value,20),!l.hasLongWord(null==(z=l.productOfferForm.get("generalInfo.version"))?null:z.value,20))),e.R7$(),e.SpI(" ",null==(F=l.productOfferForm.get("generalInfo.version"))?null:F.value," "),e.R7$(3),e.JRh(e.bMT(17,17,"CREATE_OFFER._status")),e.R7$(2),e.vxM(18,"Active"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?18:"Launched"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?19:"Retired"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?20:"Obsolete"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?21:-1),e.R7$(4),e.vxM(22,""!=(null==(J=l.productOfferForm.get("generalInfo.description"))?null:J.value)?22:-1),e.R7$(),e.vxM(23,null!=(d1=l.productOfferForm.get("catalogue"))&&d1.value?23:-1),e.R7$(),e.vxM(24,null!=(i1=l.productOfferForm.get("category"))&&i1.value?24:-1),e.R7$(),e.vxM(25,null!=(N1=l.productOfferForm.get("pricePlans"))&&N1.value?25:-1),e.R7$(),e.vxM(26,l.isLicenseEmpty?-1:26)}},dependencies:[s1.h,s1.D9,H0,L.YU,HL,L.vh]})}}return t})();const zx0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Mx0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a});function xx0(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_OFFER._update")," "))}function bx0(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_OFFER._create")," "))}function yx0(t,a){1&t&&(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 Fx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(2);return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function vx0(t,a){1&t&&(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 kx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-general-info-form",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.generalInfo)}}function wx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-prod-spec-form",26),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(3);e.Y8G("data",c.offer)("partyId",c.partyId)("formType",c.formType)}}function Sx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-category-form",28),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)}}function Nx0(t,a){if(1&t&&e.nrm(0,"app-catalogue",29),2&t){const c=e.XpG(4);e.Y8G("partyId",c.partyId)}}function Ex0(t,a){if(1&t&&e.DNE(0,Sx0,1,2,"app-category-form",27)(1,Nx0,1,1),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function Dx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-license-form",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.license)}}function Tx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-category-form",28),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)}}function Rx0(t,a){if(1&t&&e.DNE(0,Dx0,1,3,"app-license-form",24)(1,Tx0,1,2),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function Ax0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-plans-form",31),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){let c;const n=e.XpG(4);e.Y8G("form",n.productOfferForm)("prodSpec",null==(c=n.productOfferForm.get("prodSpec"))?null:c.value)("custom",!1)}}function Ix0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-license-form",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.license)}}function Px0(t,a){if(1&t&&e.DNE(0,Ax0,1,3,"app-price-plans-form",30)(1,Ix0,1,3),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function $x0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-procurement-mode",33),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("form",c.productOfferForm.controls.procurementMode)("formType",c.formType)}}function jx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-plans-form",31),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){let c;const n=e.XpG(4);e.Y8G("form",n.productOfferForm)("prodSpec",null==(c=n.productOfferForm.get("prodSpec"))?null:c.value)("custom",!1)}}function Ox0(t,a){if(1&t&&e.DNE(0,$x0,1,3,"app-procurement-mode",32)(1,jx0,1,3),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function Bx0(t,a){if(1&t&&e.nrm(0,"app-offer-summary",34),2&t){const c=e.XpG(4);e.Y8G("productOfferForm",c.productOfferForm)}}function Vx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-procurement-mode",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.procurementMode)}}function Ux0(t,a){if(1&t&&e.DNE(0,Bx0,1,1,"app-offer-summary",34)(1,Vx0,1,3),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function Hx0(t,a){if(1&t&&e.nrm(0,"app-offer-summary",34),2&t){const c=e.XpG(3);e.Y8G("productOfferForm",c.productOfferForm)}}function Gx0(t,a){if(1&t&&(e.j41(0,"div",23),e.DNE(1,kx0,1,3,"app-general-info-form",24)(2,wx0,1,3)(3,Ex0,2,1)(4,Rx0,2,1)(5,Px0,2,1)(6,Ox0,2,1)(7,Ux0,2,1)(8,Hx0,1,1),e.k0s()),2&t){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:4===c.currentStep?5:5===c.currentStep?6:6===c.currentStep?7:7===c.currentStep?8:-1)}}function Yx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.submitForm())}),e.EFF(1),e.k0s()}if(2&t){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 qx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,Fx0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,vx0,6,0,"div",2)(7,Gx0,9,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,Yx0,2,3,"button",19),e.k0s()()}if(2&t){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,zx0,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||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStep))("ngClass",e.l_i(17,Mx0,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(16,12,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(19,"create"===c.formType&&7===c.currentStep||"update"===c.formType?19:-1)}}function Xx0(t,a){if(1&t&&(e.j41(0,"div",3)(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,"h3",40),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",41),e.EFF(8),e.k0s()()()),2&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let df1=(()=>{class t{constructor(c,n,l){this.api=c,this.eventMessage=n,this.fb=l,this.formType="create",this.offer={},this.currentStep=0,this.highestStep=0,this.steps=["General Info","Product Specification","Catalogue","Category","License","Price Plans","Procurement Mode","Summary"],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({}),pricePlans:new p.MJ([]),procurementMode:this.fb.group({}),replicationMode:this.fb.group({})}),this.productOfferForm.statusChanges.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{this.isFormValid=!(!this.productOfferForm.controls.generalInfo.valid||!this.productOfferForm.get("procurementMode")?.valid)}),this.formSubscription=this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{if(console.log("subform changed-----"),"SubformChange"===r.type){const m=r.value;console.log("Received subform change:",m),this.handleSubformChange(m)}})}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(){switch(this.currentStep){case 0:return this.productOfferForm.get("generalInfo")?.valid||!1;case 1:return!!this.productOfferForm.get("prodSpec")?.value;case 2:return!!this.productOfferForm.get("catalogue")?.value;case 3:case 5:default:return!0;case 4:return this.productOfferForm.get("license")?.valid||!1;case 6:return this.productOfferForm.get("procurementMode")?.valid||!1}}canNavigate(c){return"create"==this.formType?this.productOfferForm.get("generalInfo")?.valid&&c<=this.currentStep||this.productOfferForm.get("generalInfo")?.valid&&c<=this.highestStep:this.isFormValid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}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,b1.A)(function*(){"update"===c.formType&&c.offer&&(c.loadingData=!0,c.steps=["General Info","Product Specification","Category","License","Price Plans","Procurement Mode","Summary"],yield c.loadOfferData(),c.loadingData=!1)})()}loadOfferData(){var c=this;return(0,b1.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 n=(0,b1.A)(function*(l){c.selectedProdSpec=l});return function(l){return n.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 n=c.offer.productOfferingTerm.find(r=>"License"===r.name);c.productOfferForm.patchValue(n?{license:{treatment:"License",description:n.description}}:{license:{treatment:"License",description:""}});const l=c.offer.productOfferingTerm.find(r=>"procurement"===r.name);if(l){const r={id:l.description,name:l.description};console.log("Setting procurement value:",r),c.productOfferForm.patchValue({procurementMode:r})}else c.productOfferForm.patchValue({procurementMode:{id:"manual",name:"Manual"}})}if(Array.isArray(c.offer.productOfferingPrice)&&c.offer.productOfferingPrice.length>0){for(let n of c.offer.productOfferingPrice){let l=[];const r=yield c.api.getOfferingPrice(n.id);console.log("-- price plan ----"),console.log(r);let m=!1;m=!!(r?.prodSpecCharValueUse&&r?.prodSpecCharValueUse.length>0);let z={id:r.id,name:r.name,description:r.description,lifecycleStatus:r.lifecycleStatus,paymentOnline:r?.paymentOnline??!!r?.bundledPopRelationship,productProfile:m?c.mapProductProfile(r?.prodSpecCharValueUse||[]):[]};if(r.bundledPopRelationship)for(let F=0;Fthis.fb.group({id:[n.id],name:[n.name],selectedValue:[n.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,n){var l=this;return(0,b1.A)(function*(){const r={name:"discount",priceType:"discount",validFor:{startDateTime:Y2().toISOString(),endDateTime:Y2().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?r.percentage=c.discountValue:r.price={value:c.discountValue,unit:n},yield(0,U2.s)(l.api.postOfferingPrice(r))})()}createPriceComponent(c,n){var l=this;return(0,b1.A)(function*(){console.log("component format"),console.log(c);let r={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:n,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},m=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(m)&&(r.recurringChargePeriodType=c.recurringPeriod,r.recurringChargePeriodLength=1),"usage"===m&&(console.log(c.newValue),r.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},r["@baseType"]="ProductOfferingPrice",r["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",r.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(r)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(r.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(r.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const F=yield l.createPriceAlteration(c,n);r.popRelationship=[{id:F.id,href:F.id,name:F.name}]}console.log("create price comp"),console.log(r);const z=yield(0,U2.s)(l.api.postOfferingPrice(r));return{id:z.id,href:z.id,name:z.name}})()}updatePriceComponent(c,n){var l=this;return(0,b1.A)(function*(){console.log("update function"),console.log(c),console.log(n),console.log("------");let r={name:c.newValue.name,isBundle:!1,description:c.newValue.description,lifecycleStatus:c.newValue.lifecycleStatus,priceType:c.newValue.priceType,price:{unit:n,value:c.newValue.price}};if(["recurring","recurring-prepaid"].includes(c.newValue.priceType)&&(r.recurringChargePeriodType=c.newValue.recurringPeriod,r.recurringChargePeriodLength=1),"usage"===c.newValue.priceType&&(console.log(c.newValue),r.unitOfMeasure={amount:1,units:c.newValue.usageUnit},r.usageSpecId=c.newValue.usageSpecId,console.log("----- here"),console.log(r)),c.newValue.selectedCharacteristic&&(r.prodSpecCharValueUse=c.newValue.selectedCharacteristic),c.newValue.unitOfMeasure&&(r.unitOfMeasure=c.newValue.usageUnit),null!=c.newValue.discountValue){let z={discountValue:c.newValue.discountValue};c.newValue.discountUnit&&(z.discountUnit=c.newValue.discountUnit),c.newValue.discountDuration&&(z.discountDuration=c.newValue.discountDuration),c.newValue.discountDurationUnit&&(z.discountDurationUnit=c.newValue.discountDurationUnit);const F=yield l.createPriceAlteration(z,n);r.popRelationship=[{id:F.id,href:F.id,name:F.name}]}console.log("update price comp"),console.log(r);const m=yield(0,U2.s)(l.api.updateOfferingPrice(r,c.id));return{id:m.id,href:m.id,name:m.name}})()}createBundledPricePlan(c,n){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:n};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(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.isDefault)}))),console.log(l.prodSpecCharValueUse),c.usageUnit&&(l.unitOfMeasure=c.usageUnit),c?.newValue?.usageUnit&&(l.unitOfMeasure=c?.newValue?.usageUnit),l}updatePricePlan(c,n,l){var r=this;return(0,b1.A)(function*(){console.log("plan info"),console.log(c),console.log(c.id),console.log(n);let m={name:c.newValue.name,isBundle:!0,bundledPopRelationship:n};return l.includes("description")&&(m.description=c.newValue.description),l.includes("prodSpecCharValueUse")&&null!=c.newValue.prodSpecCharValueUse&&(m.prodSpecCharValueUse=c.newValue.prodSpecCharValueUse.map(F=>({...F,productSpecCharacteristicValue:F.productSpecCharacteristicValue.filter(I=>I.isDefault)}))),yield(0,U2.s)(r.api.updateOfferingPrice(m,c.id))})()}createOffer(){var c=this;return(0,b1.A)(function*(){c.loading=!0;const n=c.productOfferForm.value.pricePlans;if(0!==n.length)for(let l=0;lc.createPriceComponent(d1,r.currency))),I=c.createBundledPricePlan(r,F);z=(yield(0,U2.s)(c.api.postOfferingPrice(I))).id,c.productOfferForm.value.pricePlans[l].id=z,l===n.length-1&&c.saveOfferInfo()}catch(z){c.handleApiError(z)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,n=c.category.map(I=>({id:I.id,href:I.id})),l=c.pricePlans.map(I=>({id:I.id,href:I.id})),r=c.generalInfo,z={name:r.name,description:r.description||"",lifecycleStatus:"update"===this.formType?r.status:"Active",isBundle:this.bundleChecked,bundledProductOffering:this.offersBundle,place:[],version:r.version,...c.procurementMode.extBillingEnabled&&c.procurementMode.plaSpecId?{pricingLogicAlgorithm:[{name:"external billing",plaSpecId:c.procurementMode.plaSpecId}]}:{},category:n,productOfferingPrice:l,validFor:{startDateTime:(new Date).toISOString()},productOfferingTerm:[{name:"License",description:c.license.description||""},{name:"procurement",description:c.procurementMode.mode}]};!this.bundleChecked&&"create"===this.formType&&(z.productSpecification={id:c.prodSpec.id,href:c.prodSpec.href}),this.offerToCreate=z,("create"===this.formType?this.api.postProductOffering(z,c.catalogue.id):this.api.updateProductOffering(z,this.offer.id)).subscribe({next:I=>{console.log("product offer created:"),console.log(I),this.loading=!1,this.goBack()},error:I=>{console.error("Error during offer save/update:",I),this.errorMessage=I?.error?.error?"Error: "+I.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,n){const r={day:"days",week:"weeks",month:"months",year:"years"}[n.toLowerCase()];if(r)return Y2().add(c,r).toISOString();throw new Error(`Invalid unit: ${n}. Must be one of day, week, month, or year.`)}calculateDiscountDuration(c,n){const l=Y2(c.startDateTime);return Y2(c.endDateTime).diff(l,n)}updateOffer(){var c=this;return(0,b1.A)(function*(){c.loading=!0,console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const n={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,r]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,r),l){case"generalInfo":n.name=r.currentValue.name,n.description=r.currentValue.description,n.version=r.currentValue.version,n.lifecycleStatus=r.currentValue.status;break;case"productSpecification":n.productSpecification={id:r.currentValue.id,href:r.currentValue.id};break;case"category":n.category=r.currentValue.map(I=>({id:I.id,href:I.id}));break;case"license":const m=n.productOfferingTerm.find(I=>"License"===I.name);m?m.description=r.currentValue.description:n.productOfferingTerm.unshift({name:"License",description:r.currentValue.description});break;case"pricePlans":n.productOfferingPrice=r.currentValue.map(I=>({id:I.id,href:I.id})),console.log("Cambio en el plan de precios"),console.log(n.productOfferingPrice),console.log(r.modifiedPricePlans);let z=r.modifiedPricePlans;for(let I=0;I0){for(let d1=0;d10)for(let d1=0;d10),console.log(z[I].priceComponents.modified[d1].id==z[I].id),z[I].priceComponents.modified[d1].id==z[I].id&&!z[I]?.oldValue.isBundle&&z[I].priceComponents.added.length>0){console.log("Si entra en el check");let i1=yield c.createPriceComponent(z[I].priceComponents.modified[d1],z[I]?.newValue.currency);J.push(i1)}else if(z[I].priceComponents.modified[d1].id!=z[I].id){let i1=yield c.updatePriceComponent(z[I].priceComponents.modified[d1],z[I]?.newValue.currency);J.push(i1)}console.log("The following price comp has been updated:"),console.log(z[I].priceComponents.modified[d1])}if(z[I].id.startsWith("temp-id")){let d1=yield c.createBundledPricePlan(z[I],J);const i1=yield(0,U2.s)(c.api.postOfferingPrice(d1));let N1=n.productOfferingPrice.findIndex(J1=>J1.id===z[I].id);n.productOfferingPrice[N1].id=i1.id,n.productOfferingPrice[N1].href=i1.id,console.log("New price plan"),console.log(d1)}else{let d1=yield c.updatePricePlan(z[I],J,z[I].modifiedFields);console.log("Modified price plan"),console.log(d1)}}break;case"procurement":const F=n.productOfferingTerm.find(I=>"procurement"===I.name);F?F.description=r.currentValue.id:n.productOfferingTerm.push({name:"procurement",description:r.currentValue.id}),r.currentValue.extBillingEnabled&&r.currentValue.plaSpecId?n.pricingLogicAlgorithm=[{name:"external billing",plaSpecId:r.currentValue.plaSpecId}]:r.originalValue.extBillingEnabled&&!r.currentValue.extBillingEnabled&&(n.pricingLogicAlgorithm=[])}Object.keys(n).forEach(l=>{null==n[l]&&delete n[l]}),console.log("\u{1f4dd} Final update payload:",n);try{yield(0,U2.s)(c.api.updateProductOffering(n,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)}})()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(F2.F),e.rXU(H2),e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:t,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,"data","formType","form"],[3,"formChange","data","formType","form"],["formControlName","prodSpec",3,"formChange","data","partyId","formType"],["formControlName","category",3,"data","formType"],["formControlName","category",3,"formChange","data","formType"],["formControlName","catalogue",3,"partyId"],[3,"form","prodSpec","custom"],[3,"formChange","form","prodSpec","custom"],[3,"data","form","formType"],[3,"formChange","data","form","formType"],[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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,xx0,3,3,"h2",1)(2,bx0,3,3)(3,yx0,6,0,"div",2)(4,qx0,20,20),e.k0s(),e.DNE(5,Xx0,9,1,"div",3)),2&n&&(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:[mM0,s1.h,s1.D9,bM0,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,OM0,VM0,dE1,tx0,fE1,Cx0,L.YU]})}}return t})();function Wx0(t,a){if(1&t){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 Jx0(t,a){1&t&&(e.j41(0,"div",11),e.nrm(1,"div",12),e.k0s())}function Qx0(t,a){if(1&t&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.SpI(" ",c.error," ")}}function Zx0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.removeRelatedParty(l))}),e.EFF(11," Remove Party "),e.k0s()()}if(2&t){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 Kx0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.removeQuoteItem(l))}),e.EFF(16," Remove Item "),e.k0s()()}if(2&t){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 eb0(t,a){if(1&t){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,Zx0,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,Kx0,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&t){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 ff1=(()=>{class t{constructor(c,n,l,r,m){this.formBuilder=c,this.quoteService=n,this.router=l,this.route=r,this.notificationService=m,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 n=decodeURIComponent(c);this.loadQuote(n)}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:n=>{for(this.quoteForm.patchValue({description:n.description});this.relatedPartyArray.length;)this.relatedPartyArray.removeAt(0);for(;this.quoteItemArray.length;)this.quoteItemArray.removeAt(0);n.relatedParty?.forEach(l=>{this.relatedPartyArray.push(this.formBuilder.group({id:[l.id],"@type":[l["@type"]]}))}),n.quoteItem?.forEach(l=>{this.quoteItemArray.push(this.formBuilder.group({state:[l.state]}))}),this.isLoading=!1},error:n=>{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 n={...this.quoteForm.value,quoteDate:(new Date).toISOString(),state:"draft"},l=this.route.snapshot.paramMap.get("id");(l?this.quoteService.updateQuote(decodeURIComponent(l),n):this.quoteService.createQuote(n)).subscribe({next:()=>{this.notificationService.showSuccess(`Quote ${this.isEditMode?"updated":"created"} successfully`),this.router.navigate(["/quotes"])},error:m=>{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(n){return new(n||t)(e.rXU(p.ok),e.rXU(X2.K),e.rXU(E2.Ix),e.rXU(E2.nX),e.rXU(D3.J))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-quote-form"]],standalone:!0,features:[e.aNF],decls:12,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(n,l){1&n&&(e.nrm(0,"app-notification"),e.j41(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),e.EFF(6),e.k0s(),e.DNE(7,Wx0,2,0,"button",5),e.k0s(),e.DNE(8,Jx0,2,0,"div",6)(9,Qx0,2,1,"div",7)(10,eb0,26,5,"form",8),e.k0s()()(),e.j41(11,"app-confirm-dialog",9),e.bIt("confirm",function(){return l.cancel()})("cancel",function(){return l.showCancelConfirm=!1}),e.k0s()),2&n&&(e.R7$(6),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:[L.MD,L.Sq,L.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,O3.z,C6.w],encapsulation:2})}}return t})();const cb0=[{path:"",component:s3},{path:"new",component:ff1},{path:":id/edit",component:ff1}],tb0=(t,a,c)=>({"px-2 inline-flex text-xs leading-5 font-semibold rounded-full":!0,"bg-green-100 text-green-800":t,"bg-red-100 text-red-800":a,"bg-blue-100 text-blue-800":c});function nb0(t,a){if(1&t){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 lb0(t,a){if(1&t){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 sb0(t,a){1&t&&(e.j41(0,"div",18),e.nrm(1,"div",19),e.k0s())}function ab0(t,a){if(1&t&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.error," ")}}function ob0(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.id||"-"," "),e.R7$(4),e.SpI(" ",c["@type"]||"-"," ")}}function ib0(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,ob0,9,2,"div",29),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.relatedParty)}}function rb0(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1,"No related parties"),e.k0s())}function db0(t,a){if(1&t&&(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,ib0,2,1,"div",28)(31,rb0,2,0,"ng-template",null,0,e.C5r),e.k0s()()),2&t){const c=e.sdS(32),n=e.XpG(2);e.R7$(9),e.JRh(n.quote.id),e.R7$(5),e.JRh(n.quote.description||"-"),e.R7$(5),e.JRh(e.i5U(20,7,n.quote.quoteDate,"dd/MM/yyyy")),e.R7$(6),e.Y8G("ngClass",e.sMw(10,tb0,!n.quoteService.isQuoteFinalized(n.quote),n.quoteService.isQuoteCancelled(n.quote),n.quoteService.isQuoteAccepted(n.quote))),e.R7$(),e.SpI(" ",n.getQuoteStatus()," "),e.R7$(4),e.Y8G("ngIf",null==n.quote.relatedParty?null:n.quote.relatedParty.length)("ngIfElse",c)}}function fb0(t,a){if(1&t&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2,"Attachments:"),e.k0s(),e.EFF(3),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(3),e.SpI(" ",c.attachment.length||0," ")}}function ub0(t,a){if(1&t&&(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,fb0,4,1,"div",35),e.k0s()),2&t){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.state||"-"," "),e.R7$(),e.Y8G("ngIf",c.attachment&&c.attachment.length)}}function mb0(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,ub0,6,2,"div",29),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.quoteItem)}}function pb0(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1,"No items"),e.k0s())}function hb0(t,a){if(1&t&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Quote Items"),e.k0s(),e.DNE(3,mb0,2,1,"div",28)(4,pb0,2,0,"ng-template",null,1,e.C5r),e.k0s()),2&t){const c=e.sdS(5),n=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==n.quote.quoteItem?null:n.quote.quoteItem.length)("ngIfElse",c)}}function gb0(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.author," "),e.R7$(2),e.SpI(" ",c.text," ")}}function _b0(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,gb0,7,2,"div",29),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.note)}}function Lb0(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1,"No notes"),e.k0s())}function Cb0(t,a){if(1&t&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Notes"),e.k0s(),e.DNE(3,_b0,2,1,"div",28)(4,Lb0,2,0,"ng-template",null,2,e.C5r),e.k0s()),2&t){const c=e.sdS(5),n=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==n.quote.note?null:n.quote.note.length)("ngIfElse",c)}}function zb0(t,a){if(1&t&&(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,nb0,2,0,"button",10)(7,lb0,2,0,"button",11),e.k0s()(),e.DNE(8,sb0,2,0,"div",12)(9,ab0,2,1,"div",13)(10,db0,33,14,"div",14)(11,hb0,6,2,"div",15)(12,Cb0,6,2,"div",15),e.k0s()()),2&t){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 Mb0=(()=>{class t{constructor(c,n,l,r){this.route=c,this.router=n,this.quoteService=l,this.notificationService=r,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 n=decodeURIComponent(c);this.loadQuote(n)}}loadQuote(c){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(c).subscribe({next:n=>{this.quote=n,this.isLoading=!1},error:n=>{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(n){return new(n||t)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(X2.K),e.rXU(D3.J))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-quote-details"]],standalone:!0,features:[e.aNF],decls:3,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(n,l){1&n&&(e.nrm(0,"app-notification"),e.DNE(1,zb0,13,7,"div",3),e.j41(2,"app-confirm-dialog",4),e.bIt("confirm",function(){return l.deleteQuote()})("cancel",function(){return l.showDeleteConfirm=!1}),e.k0s()),2&n&&(e.R7$(),e.Y8G("ngIf",l.quote),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("message",l.deleteConfirmMessage))},dependencies:[L.MD,L.YU,L.Sq,L.bT,L.vh,O3.z,C6.w],encapsulation:2})}}return t})(),xb0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({imports:[L.MD,E2.iI.forChild(cb0),s3,Mb0,ff1,O3.z,C6.w]})}}return t})();function bb0(t,a){return new _L0(t,a)}let yb0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t,bootstrap:[Nl0]})}static{this.\u0275inj=e.G2t({providers:[rE1,{provide:e.hnV,useFactory:p3,deps:[rE1,w6],multi:!0},{provide:g.a7,useClass:cf,multi:!0}],imports:[u.Bb,J2.dX,HL,bl0,J2.aY,p.YN,p.X1,T0,G3,xb0,$6.forRoot(),s1.h.forRoot({defaultLanguage:"en",loader:{provide:s1.Wr,useFactory:bb0,deps:[g.Qq,Hk]}}),CE,k5.forRoot({mode:m3.AUTO_DEFERRED}),j0,AN1,iG,df1,uE1,A8,ge,ZN1,vw1]})}}return t})();e.wjB(JN1,function(){return[SH,uE1,os0,Hr0,o_0,$p0,Ks0,wr0,qg0,yp0,sE1,bm0,Yh0,hL0,aE1,ql0,Ss0]},function(){return[s1.D9]}),e.wjB(sE1,function(){return[df1,M0]},function(){return[s1.D9]}),e.wjB(aE1,function(){return[df1,M0]},function(){return[s1.D9]}),u.sG().bootstrapModule(yb0).catch(t=>console.error(t))},4261:(k1,r1,v)=>{k1.exports={currencies:v(8184)}},1544:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<12?L?"vm":"VM":L?"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}})}(v(7586))},2155:function(k1,r1,v){!function(u){"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(V,c1,K,L1){var j=g(V),l1=e[A][g(V)];return 2===j&&(l1=l1[c1?0:1]),l1.replace(/%d/i,V)}},L=["\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"];u.defineLocale("ar-dz",{months:L,monthsShort:L,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,V,c1){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}})}(v(7586))},3583:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},1638:function(k1,r1,v){!function(u){"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(V){return 0===V?0:1===V?1:2===V?2:V%100>=3&&V%100<=10?3:V%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"]},L=function(V){return function(c1,K,L1,j){var l1=e(c1),m1=p[V][e(c1)];return 2===l1&&(m1=m1[K?0:1]),m1.replace(/%d/i,c1)}},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"];u.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(V){return"\u0645"===V},meridiem:function(V,c1,K){return V<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:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(V){return V.replace(/\u060c/g,",")},postformat:function(V){return V.replace(/\d/g,function(c1){return g[c1]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(v(7586))},7823:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},7712:function(k1,r1,v){!function(u){"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"};u.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(L){return"\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.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(L){return L.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(v(7586))},8261:function(k1,r1,v){!function(u){"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"};u.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(L){return"\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(v(7586))},6703:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3108:function(k1,r1,v){!function(u){"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(c1){return 0===c1?0:1===c1?1:2===c1?2:c1%100>=3&&c1%100<=10?3:c1%100>=11?4:5},L={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(c1){return function(K,L1,j,l1){var m1=p(K),f1=L[c1][p(K)];return 2===m1&&(f1=f1[L1?0:1]),f1.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"];u.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(c1){return"\u0645"===c1},meridiem:function(c1,K,L1){return c1<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(c1){return c1.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(K){return e[K]}).replace(/\u060c/g,",")},postformat:function(c1){return c1.replace(/\d/g,function(K){return g[K]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(v(7586))},6508:function(k1,r1,v){!function(u){"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"};u.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,L,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 L=p%10;return p+(g[L]||g[p%100-L]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(v(7586))},6766:function(k1,r1,v){!function(u){"use strict";function e(L,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":L+" "+function g(L,S){var A=L.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],+L)}u.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(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(L)},meridiem:function(L,S,A){return L<4?"\u043d\u043e\u0447\u044b":L<12?"\u0440\u0430\u043d\u0456\u0446\u044b":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(L,S){switch(S){case"M":case"d":case"DDD":case"w":case"W":return L%10!=2&&L%10!=3||L%100==12||L%100==13?L+"-\u044b":L+"-\u0456";case"D":return L+"-\u0433\u0430";default:return L}},week:{dow:1,doy:7}})}(v(7586))},8564:function(k1,r1,v){!function(u){"use strict";u.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,L=e%100;return 0===e?e+"-\u0435\u0432":0===L?e+"-\u0435\u043d":L>10&&L<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}})}(v(7586))},7462:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3438:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===S?L<4?L:L+12:"\u09ad\u09cb\u09b0"===S||"\u09b8\u0995\u09be\u09b2"===S?L:"\u09a6\u09c1\u09aa\u09c1\u09b0"===S?L>=3?L:L+12:"\u09ac\u09bf\u0995\u09be\u09b2"===S||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u09b0\u09be\u09a4":L<6?"\u09ad\u09cb\u09b0":L<12?"\u09b8\u0995\u09be\u09b2":L<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<18?"\u09ac\u09bf\u0995\u09be\u09b2":L<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(v(7586))},7107:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===S&&L>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===S&&L<5||"\u09ac\u09bf\u0995\u09be\u09b2"===S?L+12:L},meridiem:function(L,S,A){return L<4?"\u09b0\u09be\u09a4":L<10?"\u09b8\u0995\u09be\u09b2":L<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(v(7586))},9004:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===S&&L>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===S&&L<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===S?L+12:L},meridiem:function(L,S,A){return L<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":L<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":L<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":L<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(v(7586))},927:function(k1,r1,v){!function(u){"use strict";function g(f1,$1,g1){return f1+" "+function L(f1,$1){return 2===$1?function S(f1){var $1={m:"v",b:"v",d:"z"};return void 0===$1[f1.charAt(0)]?f1:$1[f1.charAt(0)]+f1.substring(1)}(f1):f1}({mm:"munutenn",MM:"miz",dd:"devezh"}[g1],f1)}function p(f1){return f1>9?p(f1%10):f1}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],V=/^(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,l1=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];u.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:l1,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:l1,monthsRegex:V,monthsShortRegex:V,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(f1){switch(p(f1)){case 1:case 3:case 4:case 5:case 9:return f1+" bloaz";default:return f1+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(f1){return f1+(1===f1?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(f1){return"g.m."===f1},meridiem:function(f1,$1,g1){return f1<12?"a.m.":"g.m."}})}(v(7586))},7768:function(k1,r1,v){!function(u){"use strict";function e(L,S,A){var V=L+" ";switch(A){case"ss":return V+(1===L?"sekunda":2===L||3===L||4===L?"sekunde":"sekundi");case"mm":return V+(1===L?"minuta":2===L||3===L||4===L?"minute":"minuta");case"h":return"jedan sat";case"hh":return V+(1===L?"sat":2===L||3===L||4===L?"sata":"sati");case"dd":return V+(1===L?"dan":"dana");case"MM":return V+(1===L?"mjesec":2===L||3===L||4===L?"mjeseca":"mjeseci");case"yy":return V+(1===L?"godina":2===L||3===L||4===L?"godine":"godina")}}u.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(L,S,A,V){if("m"===A)return S?"jedna minuta":V?"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}})}(v(7586))},6291:function(k1,r1,v){!function(u){"use strict";u.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 L=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(L="a"),e+L},week:{dow:1,doy:4}})}(v(7586))},5301:function(k1,r1,v){!function(u){"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],L=/^(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(c1){return c1>1&&c1<5&&1!=~~(c1/10)}function A(c1,K,L1,j){var l1=c1+" ";switch(L1){case"s":return K||j?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return K||j?l1+(S(c1)?"sekundy":"sekund"):l1+"sekundami";case"m":return K?"minuta":j?"minutu":"minutou";case"mm":return K||j?l1+(S(c1)?"minuty":"minut"):l1+"minutami";case"h":return K?"hodina":j?"hodinu":"hodinou";case"hh":return K||j?l1+(S(c1)?"hodiny":"hodin"):l1+"hodinami";case"d":return K||j?"den":"dnem";case"dd":return K||j?l1+(S(c1)?"dny":"dn\xed"):l1+"dny";case"M":return K||j?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return K||j?l1+(S(c1)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):l1+"m\u011bs\xedci";case"y":return K||j?"rok":"rokem";case"yy":return K||j?l1+(S(c1)?"roky":"let"):l1+"lety"}}u.defineLocale("cs",{months:g,monthsShort:e,monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},6666:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5163:function(k1,r1,v){!function(u){"use strict";u.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 L="";return e>20?L=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(L=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+L},week:{dow:1,doy:4}})}(v(7586))},7360:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3248:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][0]:V[S][1]}u.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}})}(v(7586))},3222:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][0]:V[S][1]}u.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}})}(v(7586))},5932:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][0]:V[S][1]}u.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}})}(v(7586))},6405:function(k1,r1,v){!function(u){"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"];u.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(L){return"\u0789\u078a"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(v(7586))},718:function(k1,r1,v){!function(u){"use strict";u.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,L){return p?"string"==typeof L&&/D/.test(L.substring(0,L.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,L,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,L){var S=this._calendarEl[p],A=L&&L.hours();return function g(p){return typeof Function<"u"&&p instanceof Function||"[object Function]"===Object.prototype.toString.call(p)}(S)&&(S=S.apply(L)),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}})}(v(7586))},6319:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},597:function(k1,r1,v){!function(u){"use strict";u.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")}})}(v(7586))},1800:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},807:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5960:function(k1,r1,v){!function(u){"use strict";u.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")}})}(v(7586))},4418:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},6865:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2647:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},1931:function(k1,r1,v){!function(u){"use strict";u.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,L){return e>11?L?"p.t.m.":"P.T.M.":L?"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}})}(v(7586))},1805:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},3445:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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"})}(v(7586))},1516:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},6679:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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"})}(v(7586))},8150:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][2]?V[S][2]:V[S][1]:A?V[S][0]:V[S][1]}u.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}})}(v(7586))},757:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5742:function(k1,r1,v){!function(u){"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"};u.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(L){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(L)},meridiem:function(L,S,A){return L<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(L){return L.replace(/[\u06f0-\u06f9]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(v(7586))},3958:function(k1,r1,v){!function(u){"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,V,c1,K){var L1="";switch(c1){case"s":return K?"muutaman sekunnin":"muutama sekunti";case"ss":L1=K?"sekunnin":"sekuntia";break;case"m":return K?"minuutin":"minuutti";case"mm":L1=K?"minuutin":"minuuttia";break;case"h":return K?"tunnin":"tunti";case"hh":L1=K?"tunnin":"tuntia";break;case"d":return K?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":L1=K?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return K?"kuukauden":"kuukausi";case"MM":L1=K?"kuukauden":"kuukautta";break;case"y":return K?"vuoden":"vuosi";case"yy":L1=K?"vuoden":"vuotta"}return function L(A,V){return A<10?V?e[A]:g[A]:A}(A,K)+" "+L1}u.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}})}(v(7586))},6720:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},8352:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2096:function(k1,r1,v){!function(u){"use strict";u.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")}}})}(v(7586))},5759:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},4059:function(k1,r1,v){!function(u){"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,L=[/^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];u.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:L,longMonthsParse:L,shortMonthsParse:L,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,V){switch(V){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}})}(v(7586))},5958:function(k1,r1,v){!function(u){"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("_");u.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(L,S){return L?/-MMM-/.test(S)?e[L.month()]:g[L.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(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(v(7586))},4143:function(k1,r1,v){!function(u){"use strict";u.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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(v(7586))},7028:function(k1,r1,v){!function(u){"use strict";u.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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(v(7586))},428:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},6861:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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?V[S][0]:V[S][1]}u.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,L){return"D"===L?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,L){return 12===p&&(p=0),"\u0930\u093e\u0924\u0940"===L?p<4?p:p+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===L?p:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===L?p>12?p:p+12:"\u0938\u093e\u0902\u091c\u0947"===L?p+12:void 0},meridiem:function(p,L,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"}})}(v(7586))},7718:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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?V[S][0]:V[S][1]}u.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,L){return"D"===L?p+"er":p},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(p,L){return 12===p&&(p=0),"rati"===L?p<4?p:p+12:"sokallim"===L?p:"donparam"===L?p>12?p:p+12:"sanje"===L?p+12:void 0},meridiem:function(p,L,S){return p<4?"rati":p<12?"sokallim":p<16?"donparam":p<20?"sanje":"rati"}})}(v(7586))},6827:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0ab0\u0abe\u0aa4"===S?L<4?L:L+12:"\u0ab8\u0ab5\u0abe\u0ab0"===S?L:"\u0aac\u0aaa\u0acb\u0ab0"===S?L>=10?L:L+12:"\u0ab8\u0abe\u0a82\u0a9c"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u0ab0\u0abe\u0aa4":L<10?"\u0ab8\u0ab5\u0abe\u0ab0":L<17?"\u0aac\u0aaa\u0acb\u0ab0":L<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(v(7586))},1936:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?L?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?L?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(v(7586))},1332:function(k1,r1,v){!function(u){"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];u.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(V){return e[V]})},postformat:function(A){return A.replace(/\d/g,function(V){return g[V]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(A,V){return 12===A&&(A=0),"\u0930\u093e\u0924"===V?A<4?A:A+12:"\u0938\u0941\u092c\u0939"===V?A:"\u0926\u094b\u092a\u0939\u0930"===V?A>=10?A:A+12:"\u0936\u093e\u092e"===V?A+12:void 0},meridiem:function(A,V,c1){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}})}(v(7586))},1957:function(k1,r1,v){!function(u){"use strict";function g(p,L,S){var A=p+" ";switch(S){case"ss":return A+(1===p?"sekunda":2===p||3===p||4===p?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return A+(1===p?"minuta":2===p||3===p||4===p?"minute":"minuta");case"h":return L?"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")}}u.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}})}(v(7586))},8928:function(k1,r1,v){!function(u){"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,V,c1){var K=S;switch(V){case"s":return c1||A?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return K+(c1||A)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(c1||A?" perc":" perce");case"mm":return K+(c1||A?" perc":" perce");case"h":return"egy"+(c1||A?" \xf3ra":" \xf3r\xe1ja");case"hh":return K+(c1||A?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(c1||A?" nap":" napja");case"dd":return K+(c1||A?" nap":" napja");case"M":return"egy"+(c1||A?" h\xf3nap":" h\xf3napja");case"MM":return K+(c1||A?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(c1||A?" \xe9v":" \xe9ve");case"yy":return K+(c1||A?" \xe9v":" \xe9ve")}return""}function p(S){return(S?"":"[m\xfalt] ")+"["+g[this.day()]+"] LT[-kor]"}u.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,V){return S<12?!0===V?"de":"DE":!0===V?"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}})}(v(7586))},6215:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},586:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},211:function(k1,r1,v){!function(u){"use strict";function g(L){return L%100==11||L%10!=1}function e(L,S,A,V){var c1=L+" ";switch(A){case"s":return S||V?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return g(L)?c1+(S||V?"sek\xfandur":"sek\xfandum"):c1+"sek\xfanda";case"m":return S?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return g(L)?c1+(S||V?"m\xedn\xfatur":"m\xedn\xfatum"):S?c1+"m\xedn\xfata":c1+"m\xedn\xfatu";case"hh":return g(L)?c1+(S||V?"klukkustundir":"klukkustundum"):c1+"klukkustund";case"d":return S?"dagur":V?"dag":"degi";case"dd":return g(L)?S?c1+"dagar":c1+(V?"daga":"d\xf6gum"):S?c1+"dagur":c1+(V?"dag":"degi");case"M":return S?"m\xe1nu\xf0ur":V?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return g(L)?S?c1+"m\xe1nu\xf0ir":c1+(V?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):S?c1+"m\xe1nu\xf0ur":c1+(V?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return S||V?"\xe1r":"\xe1ri";case"yy":return g(L)?c1+(S||V?"\xe1r":"\xe1rum"):c1+(S||V?"\xe1r":"\xe1ri")}}u.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}})}(v(7586))},2340:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},170:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},9770:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},3875:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},9499:function(k1,r1,v){!function(u){"use strict";u.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,L,S){return"\u10d8"===S?L+"\u10e8\u10d8":L+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}})}(v(7586))},3573:function(k1,r1,v){!function(u){"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"};u.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}})}(v(7586))},8807:function(k1,r1,v){!function(u){"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"};u.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(L){return"\u179b\u17d2\u1784\u17b6\u1785"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(S){return e[S]})},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(v(7586))},5082:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===S?L<4?L:L+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===S?L:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===S?L>=10?L:L+12:"\u0cb8\u0c82\u0c9c\u0cc6"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":L<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":L<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":L<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(L){return L+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(v(7586))},137:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(v(7586))},3744:function(k1,r1,v){!function(u){"use strict";function g(L,S,A,V){var c1={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[L+" san\xeeye",L+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[L+" deq\xeeqe",L+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[L+" saet",L+" saetan"],d:["rojek","rojek\xea"],dd:[L+" roj",L+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[L+" hefte",L+" hefteyan"],M:["mehek","mehek\xea"],MM:[L+" meh",L+" mehan"],y:["salek","salek\xea"],yy:[L+" sal",L+" salan"]};return S?c1[A][0]:c1[A][1]}u.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(L,S,A){return L<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(L,S){var A=S.toLowerCase();return A.includes("w")||A.includes("m")?L+".":L+function e(L){var S=(L=""+L).substring(L.length-1),A=L.length>1?L.substring(L.length-2):"";return 12==A||13==A||"2"!=S&&"3"!=S&&"50"!=A&&"70"!=S&&"80"!=S?"\xea":"y\xea"}(L)},week:{dow:1,doy:4}})}(v(7586))},111:function(k1,r1,v){!function(u){"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"];u.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,V){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}})}(v(7586))},9187:function(k1,r1,v){!function(u){"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"};u.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}})}(v(7586))},5969:function(k1,r1,v){!function(u){"use strict";function g(A,V,c1,K){var L1={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 V?L1[c1][0]:L1[c1][1]}function L(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 V=A%10;return L(0===V?A/10:V)}if(A<1e4){for(;A>=10;)A/=10;return L(A)}return L(A/=1e3)}u.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 L(A.substr(0,A.indexOf(" ")))?"a "+A:"an "+A},past:function p(A){return L(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}})}(v(7586))},3526:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},411:function(k1,r1,v){!function(u){"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(c1,K,L1,j){return K?S(L1)[0]:j?S(L1)[1]:S(L1)[2]}function L(c1){return c1%10==0||c1>10&&c1<20}function S(c1){return g[c1].split("_")}function A(c1,K,L1,j){var l1=c1+" ";return 1===c1?l1+p(0,K,L1[0],j):K?l1+(L(c1)?S(L1)[1]:S(L1)[0]):j?l1+S(L1)[1]:l1+(L(c1)?S(L1)[1]:S(L1)[2])}u.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(c1,K,L1,j){return K?"kelios sekund\u0117s":j?"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(c1){return c1+"-oji"},week:{dow:1,doy:4}})}(v(7586))},2621:function(k1,r1,v){!function(u){"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(V,c1,K){return K?c1%10==1&&c1%100!=11?V[2]:V[3]:c1%10==1&&c1%100!=11?V[0]:V[1]}function p(V,c1,K){return V+" "+e(g[K],V,c1)}function L(V,c1,K){return e(g[K],V,c1)}u.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(V,c1){return c1?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:p,m:L,mm:p,h:L,hh:p,d:L,dd:p,M:L,MM:p,y:L,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(v(7586))},5869:function(k1,r1,v){!function(u){"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,L){return 1===p?L[0]:p>=2&&p<=4?L[1]:L[2]},translate:function(p,L,S){var A=g.words[S];return 1===S.length?L?A[0]:A[1]:p+" "+g.correctGrammaticalCase(p,A)}};u.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}})}(v(7586))},5881:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2391:function(k1,r1,v){!function(u){"use strict";u.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,L=e%100;return 0===e?e+"-\u0435\u0432":0===L?e+"-\u0435\u043d":L>10&&L<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}})}(v(7586))},1126:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},4892:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){switch(S){case"s":return L?"\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+(L?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return p+(L?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return p+(L?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return p+(L?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return p+(L?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return p+(L?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return p}}u.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,L,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,L){switch(L){case"d":case"D":case"DDD":return p+" \u04e9\u0434\u04e9\u0440";default:return p}}})}(v(7586))},9080:function(k1,r1,v){!function(u){"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,V,c1){var K="";if(A)switch(V){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(V){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)}u.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,V){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}})}(v(7586))},5950:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},399:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},9902:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2985:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(S){return e[S]})},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(v(7586))},7859:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3642:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0930\u093e\u0924\u093f"===S?L<4?L:L+12:"\u092c\u093f\u0939\u093e\u0928"===S?L:"\u0926\u093f\u0909\u0901\u0938\u094b"===S?L>=10?L:L+12:"\u0938\u093e\u0901\u091d"===S?L+12:void 0},meridiem:function(L,S,A){return L<3?"\u0930\u093e\u0924\u093f":L<12?"\u092c\u093f\u0939\u093e\u0928":L<16?"\u0926\u093f\u0909\u0901\u0938\u094b":L<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}})}(v(7586))},9875:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},5441:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},1311:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2567:function(k1,r1,v){!function(u){"use strict";u.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 L=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(L="a"),e+L},week:{dow:1,doy:4}})}(v(7586))},6962:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0a30\u0a3e\u0a24"===S?L<4?L:L+12:"\u0a38\u0a35\u0a47\u0a30"===S?L:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===S?L>=10?L:L+12:"\u0a38\u0a3c\u0a3e\u0a2e"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u0a30\u0a3e\u0a24":L<10?"\u0a38\u0a35\u0a47\u0a30":L<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":L<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(v(7586))},1063:function(k1,r1,v){!function(u){"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 L(V){return V%10<5&&V%10>1&&~~(V/10)%10!=1}function S(V,c1,K){var L1=V+" ";switch(K){case"ss":return L1+(L(V)?"sekundy":"sekund");case"m":return c1?"minuta":"minut\u0119";case"mm":return L1+(L(V)?"minuty":"minut");case"h":return c1?"godzina":"godzin\u0119";case"hh":return L1+(L(V)?"godziny":"godzin");case"ww":return L1+(L(V)?"tygodnie":"tygodni");case"MM":return L1+(L(V)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return L1+(L(V)?"lata":"lat")}}u.defineLocale("pl",{months:function(V,c1){return V?/D MMMM/.test(c1)?e[V.month()]:g[V.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}})}(v(7586))},7476:function(k1,r1,v){!function(u){"use strict";u.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"})}(v(7586))},8719:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},1004:function(k1,r1,v){!function(u){"use strict";function g(p,L,S){var V=" ";return(p%100>=20||p>=100&&p%100==0)&&(V=" de "),p+V+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[S]}u.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}})}(v(7586))},1326:function(k1,r1,v){!function(u){"use strict";function e(S,A,V){return"m"===V?A?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":S+" "+function g(S,A){var V=S.split("_");return A%10==1&&A%100!=11?V[0]:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?V[1]:V[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"}[V],+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];u.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,V){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}})}(v(7586))},2608:function(k1,r1,v){!function(u){"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"];u.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(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(v(7586))},3911:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5147:function(k1,r1,v){!function(u){"use strict";u.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,L){return e>11?L?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":L?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(v(7586))},3741:function(k1,r1,v){!function(u){"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 L(A,V,c1,K){var L1=A+" ";switch(c1){case"s":return V||K?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return V||K?L1+(p(A)?"sekundy":"sek\xfand"):L1+"sekundami";case"m":return V?"min\xfata":K?"min\xfatu":"min\xfatou";case"mm":return V||K?L1+(p(A)?"min\xfaty":"min\xfat"):L1+"min\xfatami";case"h":return V?"hodina":K?"hodinu":"hodinou";case"hh":return V||K?L1+(p(A)?"hodiny":"hod\xedn"):L1+"hodinami";case"d":return V||K?"de\u0148":"d\u0148om";case"dd":return V||K?L1+(p(A)?"dni":"dn\xed"):L1+"d\u0148ami";case"M":return V||K?"mesiac":"mesiacom";case"MM":return V||K?L1+(p(A)?"mesiace":"mesiacov"):L1+"mesiacmi";case"y":return V||K?"rok":"rokom";case"yy":return V||K?L1+(p(A)?"roky":"rokov"):L1+"rokmi"}}u.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:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(v(7586))},3e3:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V=p+" ";switch(S){case"s":return L||A?"nekaj sekund":"nekaj sekundami";case"ss":return V+(1===p?L?"sekundo":"sekundi":2===p?L||A?"sekundi":"sekundah":p<5?L||A?"sekunde":"sekundah":"sekund");case"m":return L?"ena minuta":"eno minuto";case"mm":return V+(1===p?L?"minuta":"minuto":2===p?L||A?"minuti":"minutama":p<5?L||A?"minute":"minutami":L||A?"minut":"minutami");case"h":return L?"ena ura":"eno uro";case"hh":return V+(1===p?L?"ura":"uro":2===p?L||A?"uri":"urama":p<5?L||A?"ure":"urami":L||A?"ur":"urami");case"d":return L||A?"en dan":"enim dnem";case"dd":return V+(1===p?L||A?"dan":"dnem":2===p?L||A?"dni":"dnevoma":L||A?"dni":"dnevi");case"M":return L||A?"en mesec":"enim mesecem";case"MM":return V+(1===p?L||A?"mesec":"mesecem":2===p?L||A?"meseca":"mesecema":p<5?L||A?"mesece":"meseci":L||A?"mesecev":"meseci");case"y":return L||A?"eno leto":"enim letom";case"yy":return V+(1===p?L||A?"leto":"letom":2===p?L||A?"leti":"letoma":p<5?L||A?"leta":"leti":L||A?"let":"leti")}}u.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}})}(v(7586))},451:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},905:function(k1,r1,v){!function(u){"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,L){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?L[0]:L[1]:L[2]},translate:function(p,L,S,A){var c1,V=g.words[S];return 1===S.length?"y"===S&&L?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":A||L?V[0]:V[1]:(c1=g.correctGrammaticalCase(p,V),"yy"===S&&L&&"\u0433\u043e\u0434\u0438\u043d\u0443"===c1?p+" \u0433\u043e\u0434\u0438\u043d\u0430":p+" "+c1)}};u.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}})}(v(7586))},5046:function(k1,r1,v){!function(u){"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,L){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?L[0]:L[1]:L[2]},translate:function(p,L,S,A){var c1,V=g.words[S];return 1===S.length?"y"===S&&L?"jedna godina":A||L?V[0]:V[1]:(c1=g.correctGrammaticalCase(p,V),"yy"===S&&L&&"godinu"===c1?p+" godina":p+" "+c1)}};u.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}})}(v(7586))},5765:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},9290:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3449:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2688:function(k1,r1,v){!function(u){"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"};u.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(L){return L+"\u0bb5\u0ba4\u0bc1"},preparse:function(L){return L.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S,A){return L<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":L<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":L<10?" \u0b95\u0bbe\u0bb2\u0bc8":L<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":L<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":L<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(L,S){return 12===L&&(L=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===S?L<2?L:L+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===S||"\u0b95\u0bbe\u0bb2\u0bc8"===S||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===S&&L>=10?L:L+12},week:{dow:0,doy:6}})}(v(7586))},2060:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},3290:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},8294:function(k1,r1,v){!function(u){"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"};u.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,L){return 12===p&&(p=0),"\u0448\u0430\u0431"===L?p<4?p:p+12:"\u0441\u0443\u0431\u04b3"===L?p:"\u0440\u04ef\u0437"===L?p>=11?p:p+12:"\u0431\u0435\u0433\u043e\u04b3"===L?p+12:void 0},meridiem:function(p,L,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}})}(v(7586))},1231:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},3746:function(k1,r1,v){!function(u){"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"};u.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,L){switch(L){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}})}(v(7586))},9040:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},7187:function(k1,r1,v){!function(u){"use strict";var g="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function L(V,c1,K,L1){var j=function S(V){var c1=Math.floor(V%1e3/100),K=Math.floor(V%100/10),L1=V%10,j="";return c1>0&&(j+=g[c1]+"vatlh"),K>0&&(j+=(""!==j?" ":"")+g[K]+"maH"),L1>0&&(j+=(""!==j?" ":"")+g[L1]),""===j?"pagh":j}(V);switch(K){case"ss":return j+" lup";case"mm":return j+" tup";case"hh":return j+" rep";case"dd":return j+" jaj";case"MM":return j+" jar";case"yy":return j+" DIS"}}u.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(V){var c1=V;return-1!==V.indexOf("jaj")?c1.slice(0,-3)+"leS":-1!==V.indexOf("jar")?c1.slice(0,-3)+"waQ":-1!==V.indexOf("DIS")?c1.slice(0,-3)+"nem":c1+" pIq"},past:function p(V){var c1=V;return-1!==V.indexOf("jaj")?c1.slice(0,-3)+"Hu\u2019":-1!==V.indexOf("jar")?c1.slice(0,-3)+"wen":-1!==V.indexOf("DIS")?c1.slice(0,-3)+"ben":c1+" ret"},s:"puS lup",ss:L,m:"wa\u2019 tup",mm:L,h:"wa\u2019 rep",hh:L,d:"wa\u2019 jaj",dd:L,M:"wa\u2019 jar",MM:L,y:"wa\u2019 DIS",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(v(7586))},153:function(k1,r1,v){!function(u){"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"};u.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,L,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,L){switch(L){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}})}(v(7586))},8521:function(k1,r1,v){!function(u){"use strict";function e(p,L,S,A){var V={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||L?V[S][0]:V[S][1]}u.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,L,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}})}(v(7586))},2234:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},8010:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3349:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},8479:function(k1,r1,v){!function(u){"use strict";function e(A,V,c1){return"m"===c1?V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===c1?V?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":A+" "+function g(A,V){var c1=A.split("_");return V%10==1&&V%100!=11?c1[0]:V%10>=2&&V%10<=4&&(V%100<10||V%100>=20)?c1[1]:c1[2]}({ss:V?"\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:V?"\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:V?"\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"}[c1],+A)}function L(A){return function(){return A+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}u.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,V){var c1={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?c1.nominative.slice(1,7).concat(c1.nominative.slice(0,1)):A?c1[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(V)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(V)?"genitive":"nominative"][A.day()]:c1.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:L("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:L("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:L("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:L("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return L("[\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,V,c1){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,V){switch(V){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}})}(v(7586))},3024:function(k1,r1,v){!function(u){"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"];u.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(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(v(7586))},2376:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},9800:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},9366:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<12?L?"sa":"SA":L?"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}})}(v(7586))},9702:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2655:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},575:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},8351:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},9245:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},8887:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},7586:function(k1,r1,v){(k1=v.nmd(k1)).exports=function(){"use strict";var u,$1;function g(){return u.apply(null,arguments)}function p(_){return _ instanceof Array||"[object Array]"===Object.prototype.toString.call(_)}function L(_){return null!=_&&"[object Object]"===Object.prototype.toString.call(_)}function S(_,y){return Object.prototype.hasOwnProperty.call(_,y)}function A(_){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(_).length;var y;for(y in _)if(S(_,y))return!1;return!0}function V(_){return void 0===_}function c1(_){return"number"==typeof _||"[object Number]"===Object.prototype.toString.call(_)}function K(_){return _ instanceof Date||"[object Date]"===Object.prototype.toString.call(_)}function L1(_,y){var O,R=[],n1=_.length;for(O=0;O>>0;for(O=0;O0)for(R=0;R=0?R?"+":"":"-")+Math.pow(10,Math.max(0,y-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,h2=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D1={},j1={};function A1(_,y,R,O){var n1=O;"string"==typeof O&&(n1=function(){return this[O]()}),_&&(j1[_]=n1),y&&(j1[y[0]]=function(){return F1(n1.apply(this,arguments),y[1],y[2])}),R&&(j1[R]=function(){return this.localeData().ordinal(n1.apply(this,arguments),_)})}function v1(_){return _.match(/\[[\s\S]/)?_.replace(/^\[|\]$/g,""):_.replace(/\\/g,"")}function Z(_,y){return _.isValid()?(y=X1(y,_.localeData()),D1[y]=D1[y]||function Z1(_){var R,O,y=_.match(e2);for(R=0,O=y.length;R=0&&h2.test(_);)_=_.replace(h2,O),h2.lastIndex=0,R-=1;return _}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 L4(_){return"string"==typeof _?n4[_]||n4[_.toLowerCase()]:void 0}function H3(_){var R,O,y={};for(O in _)S(_,O)&&(R=L4(O))&&(y[R]=_[O]);return y}var X4={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,H4=/\d/,t0=/\d\d/,o0=/\d{3}/,K4=/\d{4}/,$4=/[+-]?\d{6}/,_0=/\d\d?/,U0=/\d\d\d\d?/,f4=/\d\d\d\d\d\d?/,y3=/\d{1,3}/,n0=/\d{1,4}/,e3=/[+-]?\d{1,6}/,f0=/\d+/,x0=/[+-]?\d+/,h3=/Z|[+-]\d\d:?\d\d/gi,T0=/Z|[+-]\d\d(?::?\d\d)?/gi,o3=/[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,c3=/^[1-9]\d?/,J2=/^([1-9]\d|\d)/;function M1(_,y,R){s1[_]=g2(y)?y:function(O,n1){return O&&R?R:y}}function u1(_,y){return S(s1,_)?s1[_](y._strict,y._locale):new RegExp(function E1(_){return K1(_.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(y,R,O,n1,R1){return R||O||n1||R1}))}(_))}function K1(_){return _.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function z2(_){return _<0?Math.ceil(_)||0:Math.floor(_)}function M2(_){var y=+_,R=0;return 0!==y&&isFinite(y)&&(R=z2(y)),R}s1={};var R0={};function r0(_,y){var R,n1,O=y;for("string"==typeof _&&(_=[_]),c1(y)&&(O=function(R1,t2){t2[y]=M2(R1)}),n1=_.length,R=0;R68?1900:2e3)};var a1,b0=b1("FullYear",!0);function b1(_,y){return function(R){return null!=R?(_3(this,_,R),g.updateOffset(this,y),this):g3(this,_)}}function g3(_,y){if(!_.isValid())return NaN;var R=_._d,O=_._isUTC;switch(y){case"Milliseconds":return O?R.getUTCMilliseconds():R.getMilliseconds();case"Seconds":return O?R.getUTCSeconds():R.getSeconds();case"Minutes":return O?R.getUTCMinutes():R.getMinutes();case"Hours":return O?R.getUTCHours():R.getHours();case"Date":return O?R.getUTCDate():R.getDate();case"Day":return O?R.getUTCDay():R.getDay();case"Month":return O?R.getUTCMonth():R.getMonth();case"FullYear":return O?R.getUTCFullYear():R.getFullYear();default:return NaN}}function _3(_,y,R){var O,n1,R1,t2,Z2;if(_.isValid()&&!isNaN(R)){switch(O=_._d,n1=_._isUTC,y){case"Milliseconds":return void(n1?O.setUTCMilliseconds(R):O.setMilliseconds(R));case"Seconds":return void(n1?O.setUTCSeconds(R):O.setSeconds(R));case"Minutes":return void(n1?O.setUTCMinutes(R):O.setMinutes(R));case"Hours":return void(n1?O.setUTCHours(R):O.setHours(R));case"Date":return void(n1?O.setUTCDate(R):O.setDate(R));case"FullYear":break;default:return}R1=R,t2=_.month(),Z2=29!==(Z2=_.date())||1!==t2||C4(R1)?Z2:28,n1?O.setUTCFullYear(R1,t2,Z2):O.setFullYear(R1,t2,Z2)}}function x1(_,y){if(isNaN(_)||isNaN(y))return NaN;var R=function F3(_,y){return(_%y+y)%y}(y,12);return _+=(y-R)/12,1===R?C4(_)?29:28:31-R%7%2}a1=Array.prototype.indexOf?Array.prototype.indexOf:function(_){var y;for(y=0;y=0?(Z2=new Date(_+400,y,R,O,n1,R1,t2),isFinite(Z2.getFullYear())&&Z2.setFullYear(_)):Z2=new Date(_,y,R,O,n1,R1,t2),Z2}function P4(_){var y,R;return _<100&&_>=0?((R=Array.prototype.slice.call(arguments))[0]=_+400,y=new Date(Date.UTC.apply(null,R)),isFinite(y.getUTCFullYear())&&y.setUTCFullYear(_)):y=new Date(Date.UTC.apply(null,arguments)),y}function q0(_,y,R){var O=7+y-R;return-(7+P4(_,0,O).getUTCDay()-y)%7+O-1}function G4(_,y,R,O,n1){var O0,r4,Z2=1+7*(y-1)+(7+R-O)%7+q0(_,O,n1);return Z2<=0?r4=j4(O0=_-1)+Z2:Z2>j4(_)?(O0=_+1,r4=Z2-j4(_)):(O0=_,r4=Z2),{year:O0,dayOfYear:r4}}function S4(_,y,R){var R1,t2,O=q0(_.year(),y,R),n1=Math.floor((_.dayOfYear()-O-1)/7)+1;return n1<1?R1=n1+O4(t2=_.year()-1,y,R):n1>O4(_.year(),y,R)?(R1=n1-O4(_.year(),y,R),t2=_.year()+1):(t2=_.year(),R1=n1),{week:R1,year:t2}}function O4(_,y,R){var O=q0(_,y,R),n1=q0(_+1,y,R);return(j4(_)-O+n1)/7}A1("w",["ww",2],"wo","week"),A1("W",["WW",2],"Wo","isoWeek"),M1("w",_0,c3),M1("ww",_0,t0),M1("W",_0,c3),M1("WW",_0,t0),l4(["w","ww","W","WW"],function(_,y,R,O){y[O.substr(0,1)]=M2(_)});function u0(_,y){return _.slice(y,7).concat(_.slice(0,y))}A1("d",0,"do","day"),A1("dd",0,0,function(_){return this.localeData().weekdaysMin(this,_)}),A1("ddd",0,0,function(_){return this.localeData().weekdaysShort(this,_)}),A1("dddd",0,0,function(_){return this.localeData().weekdays(this,_)}),A1("e",0,0,"weekday"),A1("E",0,0,"isoWeekday"),M1("d",_0),M1("e",_0),M1("E",_0),M1("dd",function(_,y){return y.weekdaysMinRegex(_)}),M1("ddd",function(_,y){return y.weekdaysShortRegex(_)}),M1("dddd",function(_,y){return y.weekdaysRegex(_)}),l4(["dd","ddd","dddd"],function(_,y,R,O){var n1=R._locale.weekdaysParse(_,O,R._strict);null!=n1?y.d=n1:f1(R).invalidWeekday=_}),l4(["d","e","E"],function(_,y,R,O){y[O]=M2(_)});var Q2="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),N2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),a4="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),r3=o3,v3=o3,L3=o3;function Z0(_,y,R){var O,n1,R1,t2=_.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],O=0;O<7;++O)R1=l1([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 R?"dddd"===y?-1!==(n1=a1.call(this._weekdaysParse,t2))?n1:null:"ddd"===y?-1!==(n1=a1.call(this._shortWeekdaysParse,t2))?n1:null:-1!==(n1=a1.call(this._minWeekdaysParse,t2))?n1:null:"dddd"===y?-1!==(n1=a1.call(this._weekdaysParse,t2))||-1!==(n1=a1.call(this._shortWeekdaysParse,t2))||-1!==(n1=a1.call(this._minWeekdaysParse,t2))?n1:null:"ddd"===y?-1!==(n1=a1.call(this._shortWeekdaysParse,t2))||-1!==(n1=a1.call(this._weekdaysParse,t2))||-1!==(n1=a1.call(this._minWeekdaysParse,t2))?n1:null:-1!==(n1=a1.call(this._minWeekdaysParse,t2))||-1!==(n1=a1.call(this._weekdaysParse,t2))||-1!==(n1=a1.call(this._shortWeekdaysParse,t2))?n1:null}function k4(){function _(Q1,B0){return B0.length-Q1.length}var R1,t2,Z2,O0,r4,y=[],R=[],O=[],n1=[];for(R1=0;R1<7;R1++)t2=l1([2e3,1]).day(R1),Z2=K1(this.weekdaysMin(t2,"")),O0=K1(this.weekdaysShort(t2,"")),r4=K1(this.weekdays(t2,"")),y.push(Z2),R.push(O0),O.push(r4),n1.push(Z2),n1.push(O0),n1.push(r4);y.sort(_),R.sort(_),O.sort(_),n1.sort(_),this._weekdaysRegex=new RegExp("^("+n1.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+y.join("|")+")","i")}function I3(){return this.hours()%12||12}function z3(_,y){A1(_,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),y)})}function k3(_,y){return y._meridiemParse}A1("H",["HH",2],0,"hour"),A1("h",["hh",2],0,I3),A1("k",["kk",2],0,function d0(){return this.hours()||24}),A1("hmm",0,0,function(){return""+I3.apply(this)+F1(this.minutes(),2)}),A1("hmmss",0,0,function(){return""+I3.apply(this)+F1(this.minutes(),2)+F1(this.seconds(),2)}),A1("Hmm",0,0,function(){return""+this.hours()+F1(this.minutes(),2)}),A1("Hmmss",0,0,function(){return""+this.hours()+F1(this.minutes(),2)+F1(this.seconds(),2)}),z3("a",!0),z3("A",!1),M1("a",k3),M1("A",k3),M1("H",_0,J2),M1("h",_0,c3),M1("k",_0,c3),M1("HH",_0,t0),M1("hh",_0,t0),M1("kk",_0,t0),M1("hmm",U0),M1("hmmss",f4),M1("Hmm",U0),M1("Hmmss",f4),r0(["H","HH"],L0),r0(["k","kk"],function(_,y,R){var O=M2(_);y[L0]=24===O?0:O}),r0(["a","A"],function(_,y,R){R._isPm=R._locale.isPM(_),R._meridiem=_}),r0(["h","hh"],function(_,y,R){y[L0]=M2(_),f1(R).bigHour=!0}),r0("hmm",function(_,y,R){var O=_.length-2;y[L0]=M2(_.substr(0,O)),y[P2]=M2(_.substr(O)),f1(R).bigHour=!0}),r0("hmmss",function(_,y,R){var O=_.length-4,n1=_.length-2;y[L0]=M2(_.substr(0,O)),y[P2]=M2(_.substr(O,2)),y[I4]=M2(_.substr(n1)),f1(R).bigHour=!0}),r0("Hmm",function(_,y,R){var O=_.length-2;y[L0]=M2(_.substr(0,O)),y[P2]=M2(_.substr(O))}),r0("Hmmss",function(_,y,R){var O=_.length-4,n1=_.length-2;y[L0]=M2(_.substr(0,O)),y[P2]=M2(_.substr(O,2)),y[I4]=M2(_.substr(n1))});var v6=b1("Hours",!0);var J3,Y4={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:y1,monthsShort:W1,week:{dow:0,doy:6},weekdays:Q2,weekdaysMin:a4,weekdaysShort:N2,meridiemParse:/[ap]\.?m?\.?/i},X0={},_6={};function Le(_,y){var R,O=Math.min(_.length,y.length);for(R=0;R0;){if(n1=B4(R1.slice(0,R).join("-")))return n1;if(O&&O.length>=R&&Le(R1,O)>=R-1)break;R--}y++}return J3}(_)}function K6(_){var y,R=_._a;return R&&-2===f1(_).overflow&&(y=R[b4]<0||R[b4]>11?b4:R[R2]<1||R[R2]>x1(R[p4],R[b4])?R2:R[L0]<0||R[L0]>24||24===R[L0]&&(0!==R[P2]||0!==R[I4]||0!==R[s4])?L0:R[P2]<0||R[P2]>59?P2:R[I4]<0||R[I4]>59?I4:R[s4]<0||R[s4]>999?s4:-1,f1(_)._overflowDayOfYear&&(yR2)&&(y=R2),f1(_)._overflowWeeks&&-1===y&&(y=b6),f1(_)._overflowWeekday&&-1===y&&(y=i6),f1(_).overflow=y),_}var $6=/^\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)?)?$/,Z4=/^\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)?)?$/,j6=/Z|[+-]\d\d(?::?\d\d)?/,V4=[["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]],f3=[["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/]],h8=/^\/?Date\((-?\d+)/i,E4=/^(?:(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}))$/,k0={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Z3(_){var y,R,R1,t2,Z2,O0,O=_._i,n1=$6.exec(O)||Z4.exec(O),r4=V4.length,Q1=f3.length;if(n1){for(f1(_).iso=!0,y=0,R=r4;y7)&&(O0=!0)):(R1=_._locale._week.dow,t2=_._locale._week.doy,r4=S4(o4(),R1,t2),R=m3(y.gg,_._a[p4],r4.year),O=m3(y.w,r4.week),null!=y.d?((n1=y.d)<0||n1>6)&&(O0=!0):null!=y.e?(n1=y.e+R1,(y.e<0||y.e>6)&&(O0=!0)):n1=R1),O<1||O>O4(R,R1,t2)?f1(_)._overflowWeeks=!0:null!=O0?f1(_)._overflowWeekday=!0:(Z2=G4(R,O,n1,R1,t2),_._a[p4]=Z2.year,_._dayOfYear=Z2.dayOfYear)}(_),null!=_._dayOfYear&&(t2=m3(_._a[p4],n1[p4]),(_._dayOfYear>j4(t2)||0===_._dayOfYear)&&(f1(_)._overflowDayOfYear=!0),R=P4(t2,0,_._dayOfYear),_._a[b4]=R.getUTCMonth(),_._a[R2]=R.getUTCDate()),y=0;y<3&&null==_._a[y];++y)_._a[y]=O[y]=n1[y];for(;y<7;y++)_._a[y]=O[y]=null==_._a[y]?2===y?1:0:_._a[y];24===_._a[L0]&&0===_._a[P2]&&0===_._a[I4]&&0===_._a[s4]&&(_._nextDay=!0,_._a[L0]=0),_._d=(_._useUTC?P4:y4).apply(null,O),R1=_._useUTC?_._d.getUTCDay():_._d.getDay(),null!=_._tzm&&_._d.setUTCMinutes(_._d.getUTCMinutes()-_._tzm),_._nextDay&&(_._a[L0]=24),_._w&&typeof _._w.d<"u"&&_._w.d!==R1&&(f1(_).weekdayMismatch=!0)}}function e1(_){if(_._f!==g.ISO_8601)if(_._f!==g.RFC_2822){_._a=[],f1(_).empty=!0;var R,O,n1,R1,t2,r4,Q1,y=""+_._i,Z2=y.length,O0=0;for(Q1=(n1=X1(_._f,_._locale).match(e2)||[]).length,R=0;R0&&f1(_).unusedInput.push(t2),y=y.slice(y.indexOf(O)+O.length),O0+=O.length),j1[R1]?(O?f1(_).empty=!1:f1(_).unusedTokens.push(R1),R3(R1,O,_)):_._strict&&!O&&f1(_).unusedTokens.push(R1);f1(_).charsLeftOver=Z2-O0,y.length>0&&f1(_).unusedInput.push(y),_._a[L0]<=12&&!0===f1(_).bigHour&&_._a[L0]>0&&(f1(_).bigHour=void 0),f1(_).parsedDateParts=_._a.slice(0),f1(_).meridiem=_._meridiem,_._a[L0]=function w1(_,y,R){var O;return null==R?y:null!=_.meridiemHour?_.meridiemHour(y,R):(null!=_.isPM&&((O=_.isPM(R))&&y<12&&(y+=12),!O&&12===y&&(y=0)),y)}(_._locale,_._a[L0],_._meridiem),null!==(r4=f1(_).era)&&(_._a[p4]=_._locale.erasConvertYear(r4,_._a[p4])),G(_),K6(_)}else u3(_);else Z3(_)}function e6(_){var y=_._i,R=_._f;return _._locale=_._locale||w3(_._l),null===y||void 0===R&&""===y?H1({nullInput:!0}):("string"==typeof y&&(_._i=y=_._locale.preparse(y)),P1(y)?new c2(K6(y)):(K(y)?_._d=y:p(R)?function j2(_){var y,R,O,n1,R1,t2,Z2=!1,O0=_._f.length;if(0===O0)return f1(_).invalidFormat=!0,void(_._d=new Date(NaN));for(n1=0;n1this?this:_:H1()});function u4(_,y){var R,O;if(1===y.length&&p(y[0])&&(y=y[0]),!y.length)return o4();for(R=y[0],O=1;O=0?new Date(_+400,y,R)-t1:new Date(_,y,R).valueOf()}function z1(_,y,R){return _<100&&_>=0?Date.UTC(_+400,y,R)-t1:Date.UTC(_,y,R)}function w0(_,y){return y.erasAbbrRegex(_)}function ve(){var n1,R1,t2,Z2,O0,_=[],y=[],R=[],O=[],r4=this.eras();for(n1=0,R1=r4.length;n1(R1=O4(_,O,n1))&&(y=R1),U2.call(this,_,y,R,O,n1))}function U2(_,y,R,O,n1){var R1=G4(_,y,R,O,n1),t2=P4(R1.year,0,R1.dayOfYear);return this.year(t2.getUTCFullYear()),this.month(t2.getUTCMonth()),this.date(t2.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"),M1("N",w0),M1("NN",w0),M1("NNN",w0),M1("NNNN",function S5(_,y){return y.erasNameRegex(_)}),M1("NNNNN",function ne(_,y){return y.erasNarrowRegex(_)}),r0(["N","NN","NNN","NNNN","NNNNN"],function(_,y,R,O){var n1=R._locale.erasParse(_,O,R._strict);n1?f1(R).era=n1:f1(R).invalidEra=_}),M1("y",f0),M1("yy",f0),M1("yyy",f0),M1("yyyy",f0),M1("yo",function s8(_,y){return y._eraYearOrdinalRegex||f0}),r0(["y","yy","yyy","yyyy"],p4),r0(["yo"],function(_,y,R,O){var n1;R._locale._eraYearOrdinalRegex&&(n1=_.match(R._locale._eraYearOrdinalRegex)),y[p4]=R._locale.eraYearOrdinalParse?R._locale.eraYearOrdinalParse(_,n1):parseInt(_,10)}),A1(0,["gg",2],0,function(){return this.weekYear()%100}),A1(0,["GG",2],0,function(){return this.isoWeekYear()%100}),x8("gggg","weekYear"),x8("ggggg","weekYear"),x8("GGGG","isoWeekYear"),x8("GGGGG","isoWeekYear"),M1("G",x0),M1("g",x0),M1("GG",_0,t0),M1("gg",_0,t0),M1("GGGG",n0,K4),M1("gggg",n0,K4),M1("GGGGG",e3,$4),M1("ggggg",e3,$4),l4(["gggg","ggggg","GGGG","GGGGG"],function(_,y,R,O){y[O.substr(0,2)]=M2(_)}),l4(["gg","GG"],function(_,y,R,O){y[O]=g.parseTwoDigitYear(_)}),A1("Q",0,"Qo","quarter"),M1("Q",H4),r0("Q",function(_,y){y[b4]=3*(M2(_)-1)}),A1("D",["DD",2],"Do","date"),M1("D",_0,c3),M1("DD",_0,t0),M1("Do",function(_,y){return _?y._dayOfMonthOrdinalParse||y._ordinalParse:y._dayOfMonthOrdinalParseLenient}),r0(["D","DD"],R2),r0("Do",function(_,y){y[R2]=M2(_.match(_0)[0])});var N5=b1("Date",!0);A1("DDD",["DDDD",3],"DDDo","dayOfYear"),M1("DDD",y3),M1("DDDD",o0),r0(["DDD","DDDD"],function(_,y,R){R._dayOfYear=M2(_)}),A1("m",["mm",2],0,"minute"),M1("m",_0,J2),M1("mm",_0,t0),r0(["m","mm"],P2);var E5=b1("Minutes",!1);A1("s",["ss",2],0,"second"),M1("s",_0,J2),M1("ss",_0,t0),r0(["s","ss"],I4);var I8,T5,D5=b1("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()}),M1("S",y3,H4),M1("SS",y3,t0),M1("SSS",y3,o0),I8="SSSS";I8.length<=9;I8+="S")M1(I8,f0);function H2(_,y){y[s4]=M2(1e3*("0."+_))}for(I8="S";I8.length<=9;I8+="S")r0(I8,H2);T5=b1("Milliseconds",!1),A1("z",0,0,"zoneAbbr"),A1("zz",0,0,"zoneName");var b2=c2.prototype;function N(_){return _}b2.add=C8,b2.calendar=function be(_,y){1===arguments.length&&(arguments[0]?ce(arguments[0])?(_=arguments[0],y=void 0):function T8(_){var n1,y=L(_)&&!A(_),R=!1,O=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n1=0;n1R.valueOf():R.valueOf()9999?Z(R,y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):g2(Date.prototype.toISOString)?y?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Z(R,"Z")):Z(R,y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},b2.inspect=function q(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var R,O,_="moment",y="";return this.isLocal()||(_=0===this.utcOffset()?"moment.utc":"moment.parseZone",y="Z"),R="["+_+'("]',O=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(R+O+"-MM-DD[T]HH:mm:ss.SSS"+y+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(b2[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),b2.toJSON=function M0(){return this.isValid()?this.toISOString():null},b2.toString=function E6(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},b2.unix=function A2(){return Math.floor(this.valueOf()/1e3)},b2.valueOf=function T2(){return this._d.valueOf()-6e4*(this._offset||0)},b2.creationData=function D3(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},b2.eraName=function C6(){var _,y,R,O=this.localeData().eras();for(_=0,y=O.length;_this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},b2.isLocal=function U6(){return!!this.isValid()&&!this._isUTC},b2.isUtcOffset=function Q8(){return!!this.isValid()&&this._isUTC},b2.isUtc=L8,b2.isUTC=L8,b2.zoneAbbr=function S9(){return this._isUTC?"UTC":""},b2.zoneName=function Ms(){return this._isUTC?"Coordinated Universal Time":""},b2.dates=o2("dates accessor is deprecated. Use date instead.",N5),b2.months=o2("months accessor is deprecated. Use month instead",t4),b2.years=o2("years accessor is deprecated. Use year instead",b0),b2.zone=o2("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function W8(_,y){return null!=_?("string"!=typeof _&&(_=-_),this.utcOffset(_,y),this):-this.utcOffset()}),b2.isDSTShifted=o2("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function xe(){if(!V(this._isDSTShifted))return this._isDSTShifted;var y,_={};return s2(_,this),(_=e6(_))._a?(y=_._isUTC?l1(_._a):o4(_._a),this._isDSTShifted=this.isValid()&&function w6(_,y,R){var t2,O=Math.min(_.length,y.length),n1=Math.abs(_.length-y.length),R1=0;for(t2=0;t20):this._isDSTShifted=!1,this._isDSTShifted});var b=F0.prototype;function E(_,y,R,O){var n1=w3(),R1=l1().set(O,y);return n1[R](R1,_)}function B(_,y,R){if(c1(_)&&(y=_,_=void 0),_=_||"",null!=y)return E(_,y,R,"month");var O,n1=[];for(O=0;O<12;O++)n1[O]=E(_,O,R,"month");return n1}function Q(_,y,R,O){"boolean"==typeof _?(c1(y)&&(R=y,y=void 0),y=y||""):(R=y=_,_=!1,c1(y)&&(R=y,y=void 0),y=y||"");var t2,n1=w3(),R1=_?n1._week.dow:0,Z2=[];if(null!=R)return E(y,(R+R1)%7,O,"day");for(t2=0;t2<7;t2++)Z2[t2]=E(y,(t2+R1)%7,O,"day");return Z2}b.calendar=function D0(_,y,R){var O=this._calendar[_]||this._calendar.sameElse;return g2(O)?O.call(y,R):O},b.longDateFormat=function W2(_){var y=this._longDateFormat[_],R=this._longDateFormat[_.toUpperCase()];return y||!R?y:(this._longDateFormat[_]=R.match(e2).map(function(O){return"MMMM"===O||"MM"===O||"DD"===O||"dddd"===O?O.slice(1):O}).join(""),this._longDateFormat[_])},b.invalidDate=function V2(){return this._invalidDate},b.ordinal=function g0(_){return this._ordinal.replace("%d",_)},b.preparse=N,b.postformat=N,b.relativeTime=function _4(_,y,R,O){var n1=this._relativeTime[R];return g2(n1)?n1(_,y,R,O):n1.replace(/%d/i,_)},b.pastFuture=function m2(_,y){var R=this._relativeTime[_>0?"future":"past"];return g2(R)?R(y):R.replace(/%s/i,y)},b.set=function K2(_){var y,R;for(R in _)S(_,R)&&(g2(y=_[R])?this[R]=y:this["_"+R]=y);this._config=_,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},b.eras=function K0(_,y){var R,O,n1,R1=this._eras||w3("en")._eras;for(R=0,O=R1.length;R=0)return R1[O]},b.erasConvertYear=function O3(_,y){var R=_.since<=_.until?1:-1;return void 0===y?g(_.since).year():g(_.since).year()+(y-_.offset)*R},b.erasAbbrRegex=function h1(_){return S(this,"_erasAbbrRegex")||ve.call(this),_?this._erasAbbrRegex:this._erasRegex},b.erasNameRegex=function m0(_){return S(this,"_erasNameRegex")||ve.call(this),_?this._erasNameRegex:this._erasRegex},b.erasNarrowRegex=function te(_){return S(this,"_erasNarrowRegex")||ve.call(this),_?this._erasNarrowRegex:this._erasRegex},b.months=function C0(_,y){return _?p(this._months)?this._months[_.month()]:this._months[(this._months.isFormat||Y1).test(y)?"format":"standalone"][_.month()]:p(this._months)?this._months:this._months.standalone},b.monthsShort=function $2(_,y){return _?p(this._monthsShort)?this._monthsShort[_.month()]:this._monthsShort[Y1.test(y)?"format":"standalone"][_.month()]:p(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},b.monthsParse=function e0(_,y,R){var O,n1,R1;if(this._monthsParseExact)return J0.call(this,_,y,R);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),O=0;O<12;O++){if(n1=l1([2e3,O]),R&&!this._longMonthsParse[O]&&(this._longMonthsParse[O]=new RegExp("^"+this.months(n1,"").replace(".","")+"$","i"),this._shortMonthsParse[O]=new RegExp("^"+this.monthsShort(n1,"").replace(".","")+"$","i")),!R&&!this._monthsParse[O]&&(R1="^"+this.months(n1,"")+"|^"+this.monthsShort(n1,""),this._monthsParse[O]=new RegExp(R1.replace(".",""),"i")),R&&"MMMM"===y&&this._longMonthsParse[O].test(_))return O;if(R&&"MMM"===y&&this._shortMonthsParse[O].test(_))return O;if(!R&&this._monthsParse[O].test(_))return O}},b.monthsRegex=function A0(_){return this._monthsParseExact?(S(this,"_monthsRegex")||I0.call(this),_?this._monthsStrictRegex:this._monthsRegex):(S(this,"_monthsRegex")||(this._monthsRegex=f2),this._monthsStrictRegex&&_?this._monthsStrictRegex:this._monthsRegex)},b.monthsShortRegex=function c4(_){return this._monthsParseExact?(S(this,"_monthsRegex")||I0.call(this),_?this._monthsShortStrictRegex:this._monthsShortRegex):(S(this,"_monthsShortRegex")||(this._monthsShortRegex=d2),this._monthsShortStrictRegex&&_?this._monthsShortStrictRegex:this._monthsShortRegex)},b.week=function y2(_){return S4(_,this._week.dow,this._week.doy).week},b.firstDayOfYear=function i3(){return this._week.doy},b.firstDayOfWeek=function P6(){return this._week.dow},b.weekdays=function t3(_,y){var R=p(this._weekdays)?this._weekdays:this._weekdays[_&&!0!==_&&this._weekdays.isFormat.test(y)?"format":"standalone"];return!0===_?u0(R,this._week.dow):_?R[_.day()]:R},b.weekdaysMin=function N4(_){return!0===_?u0(this._weekdaysMin,this._week.dow):_?this._weekdaysMin[_.day()]:this._weekdaysMin},b.weekdaysShort=function F4(_){return!0===_?u0(this._weekdaysShort,this._week.dow):_?this._weekdaysShort[_.day()]:this._weekdaysShort},b.weekdaysParse=function h6(_,y,R){var O,n1,R1;if(this._weekdaysParseExact)return Z0.call(this,_,y,R);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),O=0;O<7;O++){if(n1=l1([2e3,1]).day(O),R&&!this._fullWeekdaysParse[O]&&(this._fullWeekdaysParse[O]=new RegExp("^"+this.weekdays(n1,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[O]=new RegExp("^"+this.weekdaysShort(n1,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[O]=new RegExp("^"+this.weekdaysMin(n1,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[O]||(R1="^"+this.weekdays(n1,"")+"|^"+this.weekdaysShort(n1,"")+"|^"+this.weekdaysMin(n1,""),this._weekdaysParse[O]=new RegExp(R1.replace(".",""),"i")),R&&"dddd"===y&&this._fullWeekdaysParse[O].test(_))return O;if(R&&"ddd"===y&&this._shortWeekdaysParse[O].test(_))return O;if(R&&"dd"===y&&this._minWeekdaysParse[O].test(_))return O;if(!R&&this._weekdaysParse[O].test(_))return O}},b.weekdaysRegex=function Q6(_){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),_?this._weekdaysStrictRegex:this._weekdaysRegex):(S(this,"_weekdaysRegex")||(this._weekdaysRegex=r3),this._weekdaysStrictRegex&&_?this._weekdaysStrictRegex:this._weekdaysRegex)},b.weekdaysShortRegex=function W3(_){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),_?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(S(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=v3),this._weekdaysShortStrictRegex&&_?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},b.weekdaysMinRegex=function Z6(_){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),_?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(S(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=L3),this._weekdaysMinStrictRegex&&_?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},b.isPM=function g6(_){return"p"===(_+"").toLowerCase().charAt(0)},b.meridiem=function P3(_,y,R){return _>11?R?"pm":"PM":R?"am":"AM"},Q3("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(_){var y=_%10;return _+(1===M2(_%100/10)?"th":1===y?"st":2===y?"nd":3===y?"rd":"th")}}),g.lang=o2("moment.lang is deprecated. Use moment.locale instead.",Q3),g.langData=o2("moment.langData is deprecated. Use moment.localeData instead.",w3);var S0=Math.abs;function ke(_,y,R,O){var n1=d6(y,R);return _._milliseconds+=O*n1._milliseconds,_._days+=O*n1._days,_._months+=O*n1._months,_._bubble()}function Se(_){return _<0?Math.floor(_):Math.ceil(_)}function E9(_){return 4800*_/146097}function fc(_){return 146097*_/4800}function le(_){return function(){return this.as(_)}}var uc=le("ms"),xs=le("s"),H6=le("m"),mc=le("h"),D7=le("d"),D9=le("w"),T7=le("M"),nf=le("Q"),w4=le("y"),pc=uc;function Ne(_){return function(){return this.isValid()?this._data[_]:NaN}}var R5=Ne("milliseconds"),l5=Ne("seconds"),D6=Ne("minutes"),T9=Ne("hours"),R7=Ne("days"),bs=Ne("months"),a8=Ne("years");var j8=Math.round,se={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function A7(_,y,R,O,n1){return n1.relativeTime(y||1,!!R,_,O)}var ae=Math.abs;function h0(_){return(_>0)-(_<0)||+_}function O8(){if(!this.isValid())return this.localeData().invalidDate();var O,n1,R1,t2,O0,r4,Q1,B0,_=ae(this._milliseconds)/1e3,y=ae(this._days),R=ae(this._months),Z2=this.asSeconds();return Z2?(O=z2(_/60),n1=z2(O/60),_%=60,O%=60,R1=z2(R/12),R%=12,t2=_?_.toFixed(3).replace(/\.?0+$/,""):"",O0=Z2<0?"-":"",r4=h0(this._months)!==h0(Z2)?"-":"",Q1=h0(this._days)!==h0(Z2)?"-":"",B0=h0(this._milliseconds)!==h0(Z2)?"-":"",O0+"P"+(R1?r4+R1+"Y":"")+(R?r4+R+"M":"")+(y?Q1+y+"D":"")+(n1||O||_?"T":"")+(n1?B0+n1+"H":"")+(O?B0+O+"M":"")+(_?B0+t2+"S":"")):"P0D"}var h4=D8.prototype;return h4.isValid=function ze(){return this._isValid},h4.abs=function a3(){var _=this._data;return this._milliseconds=S0(this._milliseconds),this._days=S0(this._days),this._months=S0(this._months),_.milliseconds=S0(_.milliseconds),_.seconds=S0(_.seconds),_.minutes=S0(_.minutes),_.hours=S0(_.hours),_.months=S0(_.months),_.years=S0(_.years),this},h4.add=function we(_,y){return ke(this,_,y,1)},h4.subtract=function P8(_,y){return ke(this,_,y,-1)},h4.as=function E7(_){if(!this.isValid())return NaN;var y,R,O=this._milliseconds;if("month"===(_=L4(_))||"quarter"===_||"year"===_)switch(y=this._days+O/864e5,R=this._months+E9(y),_){case"month":return R;case"quarter":return R/3;case"year":return R/12}else switch(y=this._days+Math.round(fc(this._months)),_){case"week":return y/7+O/6048e5;case"day":return y+O/864e5;case"hour":return 24*y+O/36e5;case"minute":return 1440*y+O/6e4;case"second":return 86400*y+O/1e3;case"millisecond":return Math.floor(864e5*y)+O;default:throw new Error("Unknown unit "+_)}},h4.asMilliseconds=uc,h4.asSeconds=xs,h4.asMinutes=H6,h4.asHours=mc,h4.asDays=D7,h4.asWeeks=D9,h4.asMonths=T7,h4.asQuarters=nf,h4.asYears=w4,h4.valueOf=pc,h4._bubble=function $8(){var n1,R1,t2,Z2,O0,_=this._milliseconds,y=this._days,R=this._months,O=this._data;return _>=0&&y>=0&&R>=0||_<=0&&y<=0&&R<=0||(_+=864e5*Se(fc(R)+y),y=0,R=0),O.milliseconds=_%1e3,n1=z2(_/1e3),O.seconds=n1%60,R1=z2(n1/60),O.minutes=R1%60,t2=z2(R1/60),O.hours=t2%24,y+=z2(t2/24),R+=O0=z2(E9(y)),y-=Se(fc(O0)),Z2=z2(R/12),R%=12,O.days=y,O.months=R,O.years=Z2,this},h4.clone=function n5(){return d6(this)},h4.get=function M6(_){return _=L4(_),this.isValid()?this[_+"s"]():NaN},h4.milliseconds=R5,h4.seconds=l5,h4.minutes=D6,h4.hours=T9,h4.days=R7,h4.weeks=function R9(){return z2(this.days()/7)},h4.months=bs,h4.years=a8,h4.humanize=function I7(_,y){if(!this.isValid())return this.localeData().invalidDate();var n1,R1,R=!1,O=se;return"object"==typeof _&&(y=_,_=!1),"boolean"==typeof _&&(R=_),"object"==typeof y&&(O=Object.assign({},se,y),null!=y.s&&null==y.ss&&(O.ss=y.s-1)),R1=function hc(_,y,R,O){var n1=d6(_).abs(),R1=j8(n1.as("s")),t2=j8(n1.as("m")),Z2=j8(n1.as("h")),O0=j8(n1.as("d")),r4=j8(n1.as("M")),Q1=j8(n1.as("w")),B0=j8(n1.as("y")),oe=R1<=R.ss&&["s",R1]||R10,oe[4]=O,A7.apply(null,oe)}(this,!R,O,n1=this.localeData()),R&&(R1=n1.pastFuture(+this,R1)),n1.postformat(R1)},h4.toISOString=O8,h4.toString=O8,h4.toJSON=O8,h4.locale=O2,h4.localeData=i4,h4.toIsoString=o2("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",O8),h4.lang=M4,A1("X",0,0,"unix"),A1("x",0,0,"valueOf"),M1("x",x0),M1("X",/[+-]?\d+(\.\d{1,3})?/),r0("X",function(_,y,R){R._d=new Date(1e3*parseFloat(_))}),r0("x",function(_,y,R){R._d=new Date(M2(_))}),g.version="2.30.1",function e(_){u=_}(o4),g.fn=b2,g.min=function Be(){return u4("isBefore",[].slice.call(arguments,0))},g.max=function Ve(){return u4("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=l1,g.unix=function N9(_){return o4(1e3*_)},g.months=function C1(_,y){return B(_,y,"months")},g.isDate=K,g.locale=Q3,g.invalid=H1,g.duration=d6,g.isMoment=P1,g.weekdays=function V1(_,y,R){return Q(_,y,R,"weekdays")},g.parseZone=function x(){return o4.apply(null,arguments).parseZone()},g.localeData=w3,g.isDuration=B6,g.monthsShort=function G1(_,y){return B(_,y,"monthsShort")},g.weekdaysMin=function G0(_,y,R){return Q(_,y,R,"weekdaysMin")},g.defineLocale=L6,g.updateLocale=function H0(_,y){if(null!=y){var R,O,n1=Y4;null!=X0[_]&&null!=X0[_].parentLocale?X0[_].set(g4(X0[_]._config,y)):(null!=(O=B4(_))&&(n1=O._config),y=g4(n1,y),null==O&&(y.abbr=_),(R=new F0(y)).parentLocale=X0[_],X0[_]=R),Q3(_)}else null!=X0[_]&&(null!=X0[_].parentLocale?(X0[_]=X0[_].parentLocale,_===Q3()&&Q3(_)):null!=X0[_]&&delete X0[_]);return X0[_]},g.locales=function p8(){return x4(X0)},g.weekdaysShort=function I2(_,y,R){return Q(_,y,R,"weekdaysShort")},g.normalizeUnits=L4,g.relativeTimeRounding=function A5(_){return void 0===_?j8:"function"==typeof _&&(j8=_,!0)},g.relativeTimeThreshold=function gc(_,y){return void 0!==se[_]&&(void 0===y?se[_]:(se[_]=y,"s"===_&&(se.ss=y-1),!0))},g.calendarFormat=function z8(_,y){var R=_.diff(y,"days",!0);return R<-6?"sameElse":R<-1?"lastWeek":R<0?"lastDay":R<1?"sameDay":R<2?"nextDay":R<7?"nextWeek":"sameElse"},g.prototype=b2,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:(k1,r1,v)=>{"use strict";v.d(r1,{t:()=>g});var u=v(1413);class g extends u.B{constructor(p){super(),this._value=p}get value(){return this.getValue()}_subscribe(p){const L=super._subscribe(p);return!L.closed&&p.next(this._value),L}getValue(){const{hasError:p,thrownError:L,_value:S}=this;if(p)throw L;return this._throwIfClosed(),S}next(p){super.next(this._value=p)}}},1985:(k1,r1,v)=>{"use strict";v.d(r1,{c:()=>V});var u=v(7707),g=v(8359),e=v(3494),p=v(1203),L=v(1026),S=v(8071),A=v(9786);let V=(()=>{class j{constructor(m1){m1&&(this._subscribe=m1)}lift(m1){const f1=new j;return f1.source=this,f1.operator=m1,f1}subscribe(m1,f1,$1){const g1=function L1(j){return j&&j instanceof u.vU||function K(j){return j&&(0,S.T)(j.next)&&(0,S.T)(j.error)&&(0,S.T)(j.complete)}(j)&&(0,g.Uv)(j)}(m1)?m1:new u.Ms(m1,f1,$1);return(0,A.Y)(()=>{const{operator:H1,source:r2}=this;g1.add(H1?H1.call(g1,r2):r2?this._subscribe(g1):this._trySubscribe(g1))}),g1}_trySubscribe(m1){try{return this._subscribe(m1)}catch(f1){m1.error(f1)}}forEach(m1,f1){return new(f1=c1(f1))(($1,g1)=>{const H1=new u.Ms({next:r2=>{try{m1(r2)}catch(c0){g1(c0),H1.unsubscribe()}},error:g1,complete:$1});this.subscribe(H1)})}_subscribe(m1){var f1;return null===(f1=this.source)||void 0===f1?void 0:f1.subscribe(m1)}[e.s](){return this}pipe(...m1){return(0,p.m)(m1)(this)}toPromise(m1){return new(m1=c1(m1))((f1,$1)=>{let g1;this.subscribe(H1=>g1=H1,H1=>$1(H1),()=>f1(g1))})}}return j.create=l1=>new j(l1),j})();function c1(j){var l1;return null!==(l1=j??L.$.Promise)&&void 0!==l1?l1:Promise}},1413:(k1,r1,v)=>{"use strict";v.d(r1,{B:()=>A});var u=v(1985),g=v(8359);const p=(0,v(1853).L)(c1=>function(){c1(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var L=v(7908),S=v(9786);let A=(()=>{class c1 extends u.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(L1){const j=new V(this,this);return j.operator=L1,j}_throwIfClosed(){if(this.closed)throw new p}next(L1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const j of this.currentObservers)j.next(L1)}})}error(L1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=L1;const{observers:j}=this;for(;j.length;)j.shift().error(L1)}})}complete(){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:L1}=this;for(;L1.length;)L1.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var L1;return(null===(L1=this.observers)||void 0===L1?void 0:L1.length)>0}_trySubscribe(L1){return this._throwIfClosed(),super._trySubscribe(L1)}_subscribe(L1){return this._throwIfClosed(),this._checkFinalizedStatuses(L1),this._innerSubscribe(L1)}_innerSubscribe(L1){const{hasError:j,isStopped:l1,observers:m1}=this;return j||l1?g.Kn:(this.currentObservers=null,m1.push(L1),new g.yU(()=>{this.currentObservers=null,(0,L.o)(m1,L1)}))}_checkFinalizedStatuses(L1){const{hasError:j,thrownError:l1,isStopped:m1}=this;j?L1.error(l1):m1&&L1.complete()}asObservable(){const L1=new u.c;return L1.source=this,L1}}return c1.create=(K,L1)=>new V(K,L1),c1})();class V extends A{constructor(K,L1){super(),this.destination=K,this.source=L1}next(K){var L1,j;null===(j=null===(L1=this.destination)||void 0===L1?void 0:L1.next)||void 0===j||j.call(L1,K)}error(K){var L1,j;null===(j=null===(L1=this.destination)||void 0===L1?void 0:L1.error)||void 0===j||j.call(L1,K)}complete(){var K,L1;null===(L1=null===(K=this.destination)||void 0===K?void 0:K.complete)||void 0===L1||L1.call(K)}_subscribe(K){var L1,j;return null!==(j=null===(L1=this.source)||void 0===L1?void 0:L1.subscribe(K))&&void 0!==j?j:g.Kn}}},7707:(k1,r1,v)=>{"use strict";v.d(r1,{Ms:()=>$1,vU:()=>j});var u=v(8071),g=v(8359),e=v(1026),p=v(5334),L=v(5343);const S=c1("C",void 0,void 0);function c1(s2,c2,P1){return{kind:s2,value:c2,error:P1}}var K=v(9270),L1=v(9786);class j extends g.yU{constructor(c2){super(),this.isStopped=!1,c2?(this.destination=c2,(0,g.Uv)(c2)&&c2.add(this)):this.destination=c0}static create(c2,P1,B2){return new $1(c2,P1,B2)}next(c2){this.isStopped?r2(function V(s2){return c1("N",s2,void 0)}(c2),this):this._next(c2)}error(c2){this.isStopped?r2(function A(s2){return c1("E",void 0,s2)}(c2),this):(this.isStopped=!0,this._error(c2))}complete(){this.isStopped?r2(S,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(c2){this.destination.next(c2)}_error(c2){try{this.destination.error(c2)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const l1=Function.prototype.bind;function m1(s2,c2){return l1.call(s2,c2)}class f1{constructor(c2){this.partialObserver=c2}next(c2){const{partialObserver:P1}=this;if(P1.next)try{P1.next(c2)}catch(B2){g1(B2)}}error(c2){const{partialObserver:P1}=this;if(P1.error)try{P1.error(c2)}catch(B2){g1(B2)}else g1(c2)}complete(){const{partialObserver:c2}=this;if(c2.complete)try{c2.complete()}catch(P1){g1(P1)}}}class $1 extends j{constructor(c2,P1,B2){let o2;if(super(),(0,u.T)(c2)||!c2)o2={next:c2??void 0,error:P1??void 0,complete:B2??void 0};else{let C2;this&&e.$.useDeprecatedNextContext?(C2=Object.create(c2),C2.unsubscribe=()=>this.unsubscribe(),o2={next:c2.next&&m1(c2.next,C2),error:c2.error&&m1(c2.error,C2),complete:c2.complete&&m1(c2.complete,C2)}):o2=c2}this.destination=new f1(o2)}}function g1(s2){e.$.useDeprecatedSynchronousErrorHandling?(0,L1.l)(s2):(0,p.m)(s2)}function r2(s2,c2){const{onStoppedNotification:P1}=e.$;P1&&K.f.setTimeout(()=>P1(s2,c2))}const c0={closed:!0,next:L.l,error:function H1(s2){throw s2},complete:L.l}},8359:(k1,r1,v)=>{"use strict";v.d(r1,{Kn:()=>S,yU:()=>L,Uv:()=>A});var u=v(8071);const e=(0,v(1853).L)(c1=>function(L1){c1(this),this.message=L1?`${L1.length} errors occurred during unsubscription:\n${L1.map((j,l1)=>`${l1+1}) ${j.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=L1});var p=v(7908);class L{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:L1}=this;if(L1)if(this._parentage=null,Array.isArray(L1))for(const m1 of L1)m1.remove(this);else L1.remove(this);const{initialTeardown:j}=this;if((0,u.T)(j))try{j()}catch(m1){K=m1 instanceof e?m1.errors:[m1]}const{_finalizers:l1}=this;if(l1){this._finalizers=null;for(const m1 of l1)try{V(m1)}catch(f1){K=K??[],f1 instanceof e?K=[...K,...f1.errors]:K.push(f1)}}if(K)throw new e(K)}}add(K){var L1;if(K&&K!==this)if(this.closed)V(K);else{if(K instanceof L){if(K.closed||K._hasParent(this))return;K._addParent(this)}(this._finalizers=null!==(L1=this._finalizers)&&void 0!==L1?L1:[]).push(K)}}_hasParent(K){const{_parentage:L1}=this;return L1===K||Array.isArray(L1)&&L1.includes(K)}_addParent(K){const{_parentage:L1}=this;this._parentage=Array.isArray(L1)?(L1.push(K),L1):L1?[L1,K]:K}_removeParent(K){const{_parentage:L1}=this;L1===K?this._parentage=null:Array.isArray(L1)&&(0,p.o)(L1,K)}remove(K){const{_finalizers:L1}=this;L1&&(0,p.o)(L1,K),K instanceof L&&K._removeParent(this)}}L.EMPTY=(()=>{const c1=new L;return c1.closed=!0,c1})();const S=L.EMPTY;function A(c1){return c1 instanceof L||c1&&"closed"in c1&&(0,u.T)(c1.remove)&&(0,u.T)(c1.add)&&(0,u.T)(c1.unsubscribe)}function V(c1){(0,u.T)(c1)?c1():c1.unsubscribe()}},1026:(k1,r1,v)=>{"use strict";v.d(r1,{$:()=>u});const u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3207:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>g});var u=v(9350);function g(e,p){const L="object"==typeof p;return new Promise((S,A)=>{let c1,V=!1;e.subscribe({next:K=>{c1=K,V=!0},error:A,complete:()=>{V?S(c1):L?S(p.defaultValue):A(new u.G)}})})}},4572:(k1,r1,v)=>{"use strict";v.d(r1,{z:()=>K});var u=v(1985),g=v(3073),e=v(6648),p=v(3669),L=v(6450),S=v(9326),A=v(8496),V=v(4360),c1=v(5225);function K(...l1){const m1=(0,S.lI)(l1),f1=(0,S.ms)(l1),{args:$1,keys:g1}=(0,g.D)(l1);if(0===$1.length)return(0,e.H)([],m1);const H1=new u.c(function L1(l1,m1,f1=p.D){return $1=>{j(m1,()=>{const{length:g1}=l1,H1=new Array(g1);let r2=g1,c0=g1;for(let s2=0;s2{const c2=(0,e.H)(l1[s2],m1);let P1=!1;c2.subscribe((0,V._)($1,B2=>{H1[s2]=B2,P1||(P1=!0,c0--),c0||$1.next(f1(H1.slice()))},()=>{--r2||$1.complete()}))},$1)},$1)}}($1,m1,g1?r2=>(0,A.e)(g1,r2):p.D));return f1?H1.pipe((0,L.I)(f1)):H1}function j(l1,m1,f1){l1?(0,c1.N)(f1,l1,m1):m1()}},8793:(k1,r1,v)=>{"use strict";v.d(r1,{x:()=>L});var u=v(6365),e=v(9326),p=v(6648);function L(...S){return function g(){return(0,u.U)(1)}()((0,p.H)(S,(0,e.lI)(S)))}},9030:(k1,r1,v)=>{"use strict";v.d(r1,{v:()=>e});var u=v(1985),g=v(8750);function e(p){return new u.c(L=>{(0,g.Tg)(p()).subscribe(L)})}},983:(k1,r1,v)=>{"use strict";v.d(r1,{w:()=>g});const g=new(v(1985).c)(L=>L.complete())},7468:(k1,r1,v)=>{"use strict";v.d(r1,{p:()=>V});var u=v(1985),g=v(3073),e=v(8750),p=v(9326),L=v(4360),S=v(6450),A=v(8496);function V(...c1){const K=(0,p.ms)(c1),{args:L1,keys:j}=(0,g.D)(c1),l1=new u.c(m1=>{const{length:f1}=L1;if(!f1)return void m1.complete();const $1=new Array(f1);let g1=f1,H1=f1;for(let r2=0;r2{c0||(c0=!0,H1--),$1[r2]=s2},()=>g1--,void 0,()=>{(!g1||!c0)&&(H1||m1.next(j?(0,A.e)(j,$1):$1),m1.complete())}))}});return K?l1.pipe((0,S.I)(K)):l1}},6648:(k1,r1,v)=>{"use strict";v.d(r1,{H:()=>B2});var u=v(8750),g=v(5225),e=v(9974),p=v(4360);function L(o2,C2=0){return(0,e.N)((k2,g2)=>{k2.subscribe((0,p._)(g2,K2=>(0,g.N)(g2,o2,()=>g2.next(K2),C2),()=>(0,g.N)(g2,o2,()=>g2.complete(),C2),K2=>(0,g.N)(g2,o2,()=>g2.error(K2),C2)))})}function S(o2,C2=0){return(0,e.N)((k2,g2)=>{g2.add(o2.schedule(()=>k2.subscribe(g2),C2))})}var c1=v(1985),L1=v(4761),j=v(8071);function m1(o2,C2){if(!o2)throw new Error("Iterable cannot be null");return new c1.c(k2=>{(0,g.N)(k2,C2,()=>{const g2=o2[Symbol.asyncIterator]();(0,g.N)(k2,C2,()=>{g2.next().then(K2=>{K2.done?k2.complete():k2.next(K2.value)})},0,!0)})})}var f1=v(5055),$1=v(9858),g1=v(7441),H1=v(5397),r2=v(7953),c0=v(591),s2=v(5196);function B2(o2,C2){return C2?function P1(o2,C2){if(null!=o2){if((0,f1.l)(o2))return function A(o2,C2){return(0,u.Tg)(o2).pipe(S(C2),L(C2))}(o2,C2);if((0,g1.X)(o2))return function K(o2,C2){return new c1.c(k2=>{let g2=0;return C2.schedule(function(){g2===o2.length?k2.complete():(k2.next(o2[g2++]),k2.closed||this.schedule())})})}(o2,C2);if((0,$1.y)(o2))return function V(o2,C2){return(0,u.Tg)(o2).pipe(S(C2),L(C2))}(o2,C2);if((0,r2.T)(o2))return m1(o2,C2);if((0,H1.x)(o2))return function l1(o2,C2){return new c1.c(k2=>{let g2;return(0,g.N)(k2,C2,()=>{g2=o2[L1.l](),(0,g.N)(k2,C2,()=>{let K2,g4;try{({value:K2,done:g4}=g2.next())}catch(F0){return void k2.error(F0)}g4?k2.complete():k2.next(K2)},0,!0)}),()=>(0,j.T)(g2?.return)&&g2.return()})}(o2,C2);if((0,s2.U)(o2))return function c2(o2,C2){return m1((0,s2.C)(o2),C2)}(o2,C2)}throw(0,c0.L)(o2)}(o2,C2):(0,u.Tg)(o2)}},8750:(k1,r1,v)=>{"use strict";v.d(r1,{Tg:()=>l1});var u=v(1635),g=v(7441),e=v(9858),p=v(1985),L=v(5055),S=v(7953),A=v(591),V=v(5397),c1=v(5196),K=v(8071),L1=v(5334),j=v(3494);function l1(s2){if(s2 instanceof p.c)return s2;if(null!=s2){if((0,L.l)(s2))return function m1(s2){return new p.c(c2=>{const P1=s2[j.s]();if((0,K.T)(P1.subscribe))return P1.subscribe(c2);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(s2);if((0,g.X)(s2))return function f1(s2){return new p.c(c2=>{for(let P1=0;P1{s2.then(P1=>{c2.closed||(c2.next(P1),c2.complete())},P1=>c2.error(P1)).then(null,L1.m)})}(s2);if((0,S.T)(s2))return H1(s2);if((0,V.x)(s2))return function g1(s2){return new p.c(c2=>{for(const P1 of s2)if(c2.next(P1),c2.closed)return;c2.complete()})}(s2);if((0,c1.U)(s2))return function r2(s2){return H1((0,c1.C)(s2))}(s2)}throw(0,A.L)(s2)}function H1(s2){return new p.c(c2=>{(function c0(s2,c2){var P1,B2,o2,C2;return(0,u.sH)(this,void 0,void 0,function*(){try{for(P1=(0,u.xN)(s2);!(B2=yield P1.next()).done;)if(c2.next(B2.value),c2.closed)return}catch(k2){o2={error:k2}}finally{try{B2&&!B2.done&&(C2=P1.return)&&(yield C2.call(P1))}finally{if(o2)throw o2.error}}c2.complete()})})(s2,c2).catch(P1=>c2.error(P1))})}},7673:(k1,r1,v)=>{"use strict";v.d(r1,{of:()=>e});var u=v(9326),g=v(6648);function e(...p){const L=(0,u.lI)(p);return(0,g.H)(p,L)}},4360:(k1,r1,v)=>{"use strict";v.d(r1,{_:()=>g});var u=v(7707);function g(p,L,S,A,V){return new e(p,L,S,A,V)}class e extends u.vU{constructor(L,S,A,V,c1,K){super(L),this.onFinalize=c1,this.shouldUnsubscribe=K,this._next=S?function(L1){try{S(L1)}catch(j){L.error(j)}}:super._next,this._error=V?function(L1){try{V(L1)}catch(j){L.error(j)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(L1){L.error(L1)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var L;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:S}=this;super.unsubscribe(),!S&&(null===(L=this.onFinalize)||void 0===L||L.call(this))}}}},9437:(k1,r1,v)=>{"use strict";v.d(r1,{W:()=>p});var u=v(8750),g=v(4360),e=v(9974);function p(L){return(0,e.N)((S,A)=>{let K,V=null,c1=!1;V=S.subscribe((0,g._)(A,void 0,void 0,L1=>{K=(0,u.Tg)(L(L1,p(L)(S))),V?(V.unsubscribe(),V=null,K.subscribe(A)):c1=!0})),c1&&(V.unsubscribe(),V=null,K.subscribe(A))})}},274:(k1,r1,v)=>{"use strict";v.d(r1,{H:()=>e});var u=v(1397),g=v(8071);function e(p,L){return(0,g.T)(L)?(0,u.Z)(p,L,1):(0,u.Z)(p,1)}},9901:(k1,r1,v)=>{"use strict";v.d(r1,{U:()=>e});var u=v(9974),g=v(4360);function e(p){return(0,u.N)((L,S)=>{let A=!1;L.subscribe((0,g._)(S,V=>{A=!0,S.next(V)},()=>{A||S.next(p),S.complete()}))})}},5964:(k1,r1,v)=>{"use strict";v.d(r1,{p:()=>e});var u=v(9974),g=v(4360);function e(p,L){return(0,u.N)((S,A)=>{let V=0;S.subscribe((0,g._)(A,c1=>p.call(L,c1,V++)&&A.next(c1)))})}},980:(k1,r1,v)=>{"use strict";v.d(r1,{j:()=>g});var u=v(9974);function g(e){return(0,u.N)((p,L)=>{try{p.subscribe(L)}finally{L.add(e)}})}},1594:(k1,r1,v)=>{"use strict";v.d(r1,{$:()=>A});var u=v(9350),g=v(5964),e=v(6697),p=v(9901),L=v(3774),S=v(3669);function A(V,c1){const K=arguments.length>=2;return L1=>L1.pipe(V?(0,g.p)((j,l1)=>V(j,l1,L1)):S.D,(0,e.s)(1),K?(0,p.U)(c1):(0,L.v)(()=>new u.G))}},6354:(k1,r1,v)=>{"use strict";v.d(r1,{T:()=>e});var u=v(9974),g=v(4360);function e(p,L){return(0,u.N)((S,A)=>{let V=0;S.subscribe((0,g._)(A,c1=>{A.next(p.call(L,c1,V++))}))})}},3703:(k1,r1,v)=>{"use strict";v.d(r1,{u:()=>g});var u=v(6354);function g(e){return(0,u.T)(()=>e)}},6365:(k1,r1,v)=>{"use strict";v.d(r1,{U:()=>e});var u=v(1397),g=v(3669);function e(p=1/0){return(0,u.Z)(g.D,p)}},1397:(k1,r1,v)=>{"use strict";v.d(r1,{Z:()=>V});var u=v(6354),g=v(8750),e=v(9974),p=v(5225),L=v(4360),A=v(8071);function V(c1,K,L1=1/0){return(0,A.T)(K)?V((j,l1)=>(0,u.T)((m1,f1)=>K(j,m1,l1,f1))((0,g.Tg)(c1(j,l1))),L1):("number"==typeof K&&(L1=K),(0,e.N)((j,l1)=>function S(c1,K,L1,j,l1,m1,f1,$1){const g1=[];let H1=0,r2=0,c0=!1;const s2=()=>{c0&&!g1.length&&!H1&&K.complete()},c2=B2=>H1{m1&&K.next(B2),H1++;let o2=!1;(0,g.Tg)(L1(B2,r2++)).subscribe((0,L._)(K,C2=>{l1?.(C2),m1?c2(C2):K.next(C2)},()=>{o2=!0},void 0,()=>{if(o2)try{for(H1--;g1.length&&H1P1(C2)):P1(C2)}s2()}catch(C2){K.error(C2)}}))};return c1.subscribe((0,L._)(K,c2,()=>{c0=!0,s2()})),()=>{$1?.()}}(j,l1,c1,L1)))}},253:(k1,r1,v)=>{"use strict";v.d(r1,{t:()=>c1});var u=v(1413),g=v(6129);class e extends u.B{constructor(L1=1/0,j=1/0,l1=g.U){super(),this._bufferSize=L1,this._windowTime=j,this._timestampProvider=l1,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=j===1/0,this._bufferSize=Math.max(1,L1),this._windowTime=Math.max(1,j)}next(L1){const{isStopped:j,_buffer:l1,_infiniteTimeWindow:m1,_timestampProvider:f1,_windowTime:$1}=this;j||(l1.push(L1),!m1&&l1.push(f1.now()+$1)),this._trimBuffer(),super.next(L1)}_subscribe(L1){this._throwIfClosed(),this._trimBuffer();const j=this._innerSubscribe(L1),{_infiniteTimeWindow:l1,_buffer:m1}=this,f1=m1.slice();for(let $1=0;$1{l1.unsubscribe(),K()}});return(0,p.Tg)(L1(...j)).subscribe(l1)}function c1(K,L1,j){let l1,m1=!1;return K&&"object"==typeof K?({bufferSize:l1=1/0,windowTime:L1=1/0,refCount:m1=!1,scheduler:j}=K):l1=K??1/0,function A(K={}){const{connector:L1=(()=>new u.B),resetOnError:j=!0,resetOnComplete:l1=!0,resetOnRefCountZero:m1=!0}=K;return f1=>{let $1,g1,H1,r2=0,c0=!1,s2=!1;const c2=()=>{g1?.unsubscribe(),g1=void 0},P1=()=>{c2(),$1=H1=void 0,c0=s2=!1},B2=()=>{const o2=$1;P1(),o2?.unsubscribe()};return(0,S.N)((o2,C2)=>{r2++,!s2&&!c0&&c2();const k2=H1=H1??L1();C2.add(()=>{r2--,0===r2&&!s2&&!c0&&(g1=V(B2,m1))}),k2.subscribe(C2),!$1&&r2>0&&($1=new L.Ms({next:g2=>k2.next(g2),error:g2=>{s2=!0,c2(),g1=V(P1,j,g2),k2.error(g2)},complete:()=>{c0=!0,c2(),g1=V(P1,l1),k2.complete()}}),(0,p.Tg)(o2).subscribe($1))})(f1)}}({connector:()=>new e(l1,L1,j),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:m1})}},9172:(k1,r1,v)=>{"use strict";v.d(r1,{Z:()=>p});var u=v(8793),g=v(9326),e=v(9974);function p(...L){const S=(0,g.lI)(L);return(0,e.N)((A,V)=>{(S?(0,u.x)(L,A,S):(0,u.x)(L,A)).subscribe(V)})}},5558:(k1,r1,v)=>{"use strict";v.d(r1,{n:()=>p});var u=v(8750),g=v(9974),e=v(4360);function p(L,S){return(0,g.N)((A,V)=>{let c1=null,K=0,L1=!1;const j=()=>L1&&!c1&&V.complete();A.subscribe((0,e._)(V,l1=>{c1?.unsubscribe();let m1=0;const f1=K++;(0,u.Tg)(L(l1,f1)).subscribe(c1=(0,e._)(V,$1=>V.next(S?S(l1,$1,f1,m1++):$1),()=>{c1=null,j()}))},()=>{L1=!0,j()}))})}},6697:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>p});var u=v(983),g=v(9974),e=v(4360);function p(L){return L<=0?()=>u.w:(0,g.N)((S,A)=>{let V=0;S.subscribe((0,e._)(A,c1=>{++V<=L&&(A.next(c1),L<=V&&A.complete())}))})}},6977:(k1,r1,v)=>{"use strict";v.d(r1,{Q:()=>L});var u=v(9974),g=v(4360),e=v(8750),p=v(5343);function L(S){return(0,u.N)((A,V)=>{(0,e.Tg)(S).subscribe((0,g._)(V,()=>V.complete(),p.l)),!V.closed&&A.subscribe(V)})}},8141:(k1,r1,v)=>{"use strict";v.d(r1,{M:()=>L});var u=v(8071),g=v(9974),e=v(4360),p=v(3669);function L(S,A,V){const c1=(0,u.T)(S)||A||V?{next:S,error:A,complete:V}:S;return c1?(0,g.N)((K,L1)=>{var j;null===(j=c1.subscribe)||void 0===j||j.call(c1);let l1=!0;K.subscribe((0,e._)(L1,m1=>{var f1;null===(f1=c1.next)||void 0===f1||f1.call(c1,m1),L1.next(m1)},()=>{var m1;l1=!1,null===(m1=c1.complete)||void 0===m1||m1.call(c1),L1.complete()},m1=>{var f1;l1=!1,null===(f1=c1.error)||void 0===f1||f1.call(c1,m1),L1.error(m1)},()=>{var m1,f1;l1&&(null===(m1=c1.unsubscribe)||void 0===m1||m1.call(c1)),null===(f1=c1.finalize)||void 0===f1||f1.call(c1)}))}):p.D}},3774:(k1,r1,v)=>{"use strict";v.d(r1,{v:()=>p});var u=v(9350),g=v(9974),e=v(4360);function p(S=L){return(0,g.N)((A,V)=>{let c1=!1;A.subscribe((0,e._)(V,K=>{c1=!0,V.next(K)},()=>c1?V.complete():V.error(S())))})}function L(){return new u.G}},6129:(k1,r1,v)=>{"use strict";v.d(r1,{U:()=>u});const u={now:()=>(u.delegate||Date).now(),delegate:void 0}},9270:(k1,r1,v)=>{"use strict";v.d(r1,{f:()=>u});const u={setTimeout(g,e,...p){const{delegate:L}=u;return L?.setTimeout?L.setTimeout(g,e,...p):setTimeout(g,e,...p)},clearTimeout(g){const{delegate:e}=u;return(e?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761:(k1,r1,v)=>{"use strict";v.d(r1,{l:()=>g});const g=function u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>u});const u="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(k1,r1,v)=>{"use strict";v.d(r1,{G:()=>g});const g=(0,v(1853).L)(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(k1,r1,v)=>{"use strict";v.d(r1,{R0:()=>S,lI:()=>L,ms:()=>p});var u=v(8071),g=v(9470);function e(A){return A[A.length-1]}function p(A){return(0,u.T)(e(A))?A.pop():void 0}function L(A){return(0,g.m)(e(A))?A.pop():void 0}function S(A,V){return"number"==typeof e(A)?A.pop():V}},3073:(k1,r1,v)=>{"use strict";v.d(r1,{D:()=>L});const{isArray:u}=Array,{getPrototypeOf:g,prototype:e,keys:p}=Object;function L(A){if(1===A.length){const V=A[0];if(u(V))return{args:V,keys:null};if(function S(A){return A&&"object"==typeof A&&g(A)===e}(V)){const c1=p(V);return{args:c1.map(K=>V[K]),keys:c1}}}return{args:A,keys:null}}},7908:(k1,r1,v)=>{"use strict";function u(g,e){if(g){const p=g.indexOf(e);0<=p&&g.splice(p,1)}}v.d(r1,{o:()=>u})},1853:(k1,r1,v)=>{"use strict";function u(g){const p=g(L=>{Error.call(L),L.stack=(new Error).stack});return p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p}v.d(r1,{L:()=>u})},8496:(k1,r1,v)=>{"use strict";function u(g,e){return g.reduce((p,L,S)=>(p[L]=e[S],p),{})}v.d(r1,{e:()=>u})},9786:(k1,r1,v)=>{"use strict";v.d(r1,{Y:()=>e,l:()=>p});var u=v(1026);let g=null;function e(L){if(u.$.useDeprecatedSynchronousErrorHandling){const S=!g;if(S&&(g={errorThrown:!1,error:null}),L(),S){const{errorThrown:A,error:V}=g;if(g=null,A)throw V}}else L()}function p(L){u.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=L)}},5225:(k1,r1,v)=>{"use strict";function u(g,e,p,L=0,S=!1){const A=e.schedule(function(){p(),S?g.add(this.schedule(null,L)):this.unsubscribe()},L);if(g.add(A),!S)return A}v.d(r1,{N:()=>u})},3669:(k1,r1,v)=>{"use strict";function u(g){return g}v.d(r1,{D:()=>u})},7441:(k1,r1,v)=>{"use strict";v.d(r1,{X:()=>u});const u=g=>g&&"number"==typeof g.length&&"function"!=typeof g},7953:(k1,r1,v)=>{"use strict";v.d(r1,{T:()=>g});var u=v(8071);function g(e){return Symbol.asyncIterator&&(0,u.T)(e?.[Symbol.asyncIterator])}},8071:(k1,r1,v)=>{"use strict";function u(g){return"function"==typeof g}v.d(r1,{T:()=>u})},5055:(k1,r1,v)=>{"use strict";v.d(r1,{l:()=>e});var u=v(3494),g=v(8071);function e(p){return(0,g.T)(p[u.s])}},5397:(k1,r1,v)=>{"use strict";v.d(r1,{x:()=>e});var u=v(4761),g=v(8071);function e(p){return(0,g.T)(p?.[u.l])}},4402:(k1,r1,v)=>{"use strict";v.d(r1,{A:()=>e});var u=v(1985),g=v(8071);function e(p){return!!p&&(p instanceof u.c||(0,g.T)(p.lift)&&(0,g.T)(p.subscribe))}},9858:(k1,r1,v)=>{"use strict";v.d(r1,{y:()=>g});var u=v(8071);function g(e){return(0,u.T)(e?.then)}},5196:(k1,r1,v)=>{"use strict";v.d(r1,{C:()=>e,U:()=>p});var u=v(1635),g=v(8071);function e(L){return(0,u.AQ)(this,arguments,function*(){const A=L.getReader();try{for(;;){const{value:V,done:c1}=yield(0,u.N3)(A.read());if(c1)return yield(0,u.N3)(void 0);yield yield(0,u.N3)(V)}}finally{A.releaseLock()}})}function p(L){return(0,g.T)(L?.getReader)}},9470:(k1,r1,v)=>{"use strict";v.d(r1,{m:()=>g});var u=v(8071);function g(e){return e&&(0,u.T)(e.schedule)}},9974:(k1,r1,v)=>{"use strict";v.d(r1,{N:()=>e,S:()=>g});var u=v(8071);function g(p){return(0,u.T)(p?.lift)}function e(p){return L=>{if(g(L))return L.lift(function(S){try{return p(S,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(k1,r1,v)=>{"use strict";v.d(r1,{I:()=>p});var u=v(6354);const{isArray:g}=Array;function p(L){return(0,u.T)(S=>function e(L,S){return g(S)?L(...S):L(S)}(L,S))}},5343:(k1,r1,v)=>{"use strict";function u(){}v.d(r1,{l:()=>u})},1203:(k1,r1,v)=>{"use strict";v.d(r1,{F:()=>g,m:()=>e});var u=v(3669);function g(...p){return e(p)}function e(p){return 0===p.length?u.D:1===p.length?p[0]:function(S){return p.reduce((A,V)=>V(A),S)}}},5334:(k1,r1,v)=>{"use strict";v.d(r1,{m:()=>e});var u=v(1026),g=v(9270);function e(p){g.f.setTimeout(()=>{const{onUnhandledError:L}=u.$;if(!L)throw p;L(p)})}},591:(k1,r1,v)=>{"use strict";function u(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.`)}v.d(r1,{L:()=>u})},5358:(k1,r1,v)=>{var u={"./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":3449,"./sw.js":3449,"./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 L=e(p);return v(L)}function e(p){if(!v.o(u,p)){var L=new Error("Cannot find module '"+p+"'");throw L.code="MODULE_NOT_FOUND",L}return u[p]}g.keys=function(){return Object.keys(u)},g.resolve=e,k1.exports=g,g.id=5358},177:(k1,r1,v)=>{"use strict";v.d(r1,{AJ:()=>F6,B3:()=>y2,Jj:()=>u0,MD:()=>g6,N0:()=>L6,QT:()=>e,Sm:()=>$1,Sq:()=>$2,T3:()=>P0,UE:()=>X0,VF:()=>L,Vy:()=>_6,Xr:()=>d3,YU:()=>Y1,ZD:()=>p,_b:()=>x1,aZ:()=>H1,bT:()=>a0,fw:()=>g1,hb:()=>m1,hj:()=>c1,kB:()=>f1,kF:()=>F0,qQ:()=>A,vh:()=>F4});var u=v(4438);let g=null;function e(){return g}function p(w){g??=w}class L{}const A=new u.nKC("");let V=(()=>{class w{historyGo(T){throw new Error("")}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=u.jDH({token:w,factory:()=>(0,u.WQX)(K),providedIn:"platform"})}}return w})();const c1=new u.nKC("");let K=(()=>{class w extends V{constructor(){super(),this._doc=(0,u.WQX)(A),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return e().getBaseHref(this._doc)}onPopState(T){const U=e().getGlobalEventTarget(this._doc,"window");return U.addEventListener("popstate",T,!1),()=>U.removeEventListener("popstate",T)}onHashChange(T){const U=e().getGlobalEventTarget(this._doc,"window");return U.addEventListener("hashchange",T,!1),()=>U.removeEventListener("hashchange",T)}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(T){this._location.pathname=T}pushState(T,U,_1){this._history.pushState(T,U,_1)}replaceState(T,U,_1){this._history.replaceState(T,U,_1)}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=u.jDH({token:w,factory:()=>new w,providedIn:"platform"})}}return w})();function L1(w,q){if(0==w.length)return q;if(0==q.length)return w;let T=0;return w.endsWith("/")&&T++,q.startsWith("/")&&T++,2==T?w+q.substring(1):1==T?w+q:w+"/"+q}function j(w){const q=w.match(/#|\?|$/),T=q&&q.index||w.length;return w.slice(0,T-("/"===w[T-1]?1:0))+w.slice(T)}function l1(w){return w&&"?"!==w[0]?"?"+w:w}let m1=(()=>{class w{historyGo(T){throw new Error("")}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=u.jDH({token:w,factory:()=>(0,u.WQX)($1),providedIn:"root"})}}return w})();const f1=new u.nKC("");let $1=(()=>{class w extends m1{constructor(T,U){super(),this._platformLocation=T,this._removeListenerFns=[],this._baseHref=U??this._platformLocation.getBaseHrefFromDOM()??(0,u.WQX)(A).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return L1(this._baseHref,T)}path(T=!1){const U=this._platformLocation.pathname+l1(this._platformLocation.search),_1=this._platformLocation.hash;return _1&&T?`${U}${_1}`:U}pushState(T,U,_1,q1){const l2=this.prepareExternalUrl(_1+l1(q1));this._platformLocation.pushState(T,U,l2)}replaceState(T,U,_1,q1){const l2=this.prepareExternalUrl(_1+l1(q1));this._platformLocation.replaceState(T,U,l2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}static{this.\u0275fac=function(U){return new(U||w)(u.KVO(V),u.KVO(f1,8))}}static{this.\u0275prov=u.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})(),g1=(()=>{class w extends m1{constructor(T,U){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=U&&(this._baseHref=U)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){const U=this._platformLocation.hash??"#";return U.length>0?U.substring(1):U}prepareExternalUrl(T){const U=L1(this._baseHref,T);return U.length>0?"#"+U:U}pushState(T,U,_1,q1){let l2=this.prepareExternalUrl(_1+l1(q1));0==l2.length&&(l2=this._platformLocation.pathname),this._platformLocation.pushState(T,U,l2)}replaceState(T,U,_1,q1){let l2=this.prepareExternalUrl(_1+l1(q1));0==l2.length&&(l2=this._platformLocation.pathname),this._platformLocation.replaceState(T,U,l2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}static{this.\u0275fac=function(U){return new(U||w)(u.KVO(V),u.KVO(f1,8))}}static{this.\u0275prov=u.jDH({token:w,factory:w.\u0275fac})}}return w})(),H1=(()=>{class w{constructor(T){this._subject=new u.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=T;const U=this._locationStrategy.getBaseHref();this._basePath=function c2(w){if(new RegExp("^(https?:)?//").test(w)){const[,T]=w.split(/\/\/[^\/]+/);return T}return w}(j(s2(U))),this._locationStrategy.onPopState(_1=>{this._subject.emit({url:this.path(!0),pop:!0,state:_1.state,type:_1.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(T=!1){return this.normalize(this._locationStrategy.path(T))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(T,U=""){return this.path()==this.normalize(T+l1(U))}normalize(T){return w.stripTrailingSlash(function c0(w,q){if(!w||!q.startsWith(w))return q;const T=q.substring(w.length);return""===T||["/",";","?","#"].includes(T[0])?T:q}(this._basePath,s2(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._locationStrategy.prepareExternalUrl(T)}go(T,U="",_1=null){this._locationStrategy.pushState(_1,"",T,U),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+l1(U)),_1)}replaceState(T,U="",_1=null){this._locationStrategy.replaceState(_1,"",T,U),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+l1(U)),_1)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(T=0){this._locationStrategy.historyGo?.(T)}onUrlChange(T){return this._urlChangeListeners.push(T),this._urlChangeSubscription??=this.subscribe(U=>{this._notifyUrlChangeListeners(U.url,U.state)}),()=>{const U=this._urlChangeListeners.indexOf(T);this._urlChangeListeners.splice(U,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(T="",U){this._urlChangeListeners.forEach(_1=>_1(T,U))}subscribe(T,U,_1){return this._subject.subscribe({next:T,error:U,complete:_1})}static{this.normalizeQueryParams=l1}static{this.joinWithSlash=L1}static{this.stripTrailingSlash=j}static{this.\u0275fac=function(U){return new(U||w)(u.KVO(m1))}}static{this.\u0275prov=u.jDH({token:w,factory:()=>function r2(){return new H1((0,u.KVO)(m1))}(),providedIn:"root"})}}return w})();function s2(w){return w.replace(/\/index.html$/,"")}var C2=function(w){return w[w.Format=0]="Format",w[w.Standalone=1]="Standalone",w}(C2||{}),k2=function(w){return w[w.Narrow=0]="Narrow",w[w.Abbreviated=1]="Abbreviated",w[w.Wide=2]="Wide",w[w.Short=3]="Short",w}(k2||{}),g2=function(w){return w[w.Short=0]="Short",w[w.Medium=1]="Medium",w[w.Long=2]="Long",w[w.Full=3]="Full",w}(g2||{});const K2={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 F0(w){return(0,u.H5H)(w)[u.KH2.LocaleId]}function D1(w,q){return Y0((0,u.H5H)(w)[u.KH2.DateFormat],q)}function j1(w,q){return Y0((0,u.H5H)(w)[u.KH2.TimeFormat],q)}function A1(w,q){return Y0((0,u.H5H)(w)[u.KH2.DateTimeFormat],q)}function v1(w,q){const T=(0,u.H5H)(w),U=T[u.KH2.NumberSymbols][q];if(typeof U>"u"){if(q===K2.CurrencyDecimal)return T[u.KH2.NumberSymbols][K2.Decimal];if(q===K2.CurrencyGroup)return T[u.KH2.NumberSymbols][K2.Group]}return U}function V2(w){if(!w[u.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${w[u.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Y0(w,q){for(let T=q;T>-1;T--)if(typeof w[T]<"u")return w[T];throw new Error("Locale data API: locale data undefined")}function _4(w){const[q,T]=w.split(":");return{hours:+q,minutes:+T}}const H3=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,X4={},J6=/((?:[^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 H4=function(w){return w[w.Short=0]="Short",w[w.ShortGMT=1]="ShortGMT",w[w.Long=2]="Long",w[w.Extended=3]="Extended",w}(H4||{}),t0=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}(t0||{}),o0=function(w){return w[w.DayPeriods=0]="DayPeriods",w[w.Days=1]="Days",w[w.Months=2]="Months",w[w.Eras=3]="Eras",w}(o0||{});function K4(w,q,T,U){let _1=function M2(w){if(r0(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[_1,q1=1,l2=1]=w.split("-").map(O2=>+O2);return $4(_1,q1-1,l2)}const T=parseFloat(w);if(!isNaN(w-T))return new Date(T);let U;if(U=w.match(H3))return function R0(w){const q=new Date(0);let T=0,U=0;const _1=w[8]?q.setUTCFullYear:q.setFullYear,q1=w[8]?q.setUTCHours:q.setHours;w[9]&&(T=Number(w[9]+w[10]),U=Number(w[9]+w[11])),_1.call(q,Number(w[1]),Number(w[2])-1,Number(w[3]));const l2=Number(w[4]||0)-T,O2=Number(w[5]||0)-U,M4=Number(w[6]||0),i4=Math.floor(1e3*parseFloat("0."+(w[7]||0)));return q1.call(q,l2,O2,M4,i4),q}(U)}const q=new Date(w);if(!r0(q))throw new Error(`Unable to convert "${w}" into a date`);return q}(w);q=_0(T,q)||q;let O2,l2=[];for(;q;){if(O2=J6.exec(q),!O2){l2.push(q);break}{l2=l2.concat(O2.slice(1));const P=l2.pop();if(!P)break;q=P}}let M4=_1.getTimezoneOffset();U&&(M4=E1(U,M4),_1=function z2(w,q,T){const U=T?-1:1,_1=w.getTimezoneOffset();return function K1(w,q){return(w=new Date(w.getTime())).setMinutes(w.getMinutes()+q),w}(w,U*(E1(q,_1)-_1))}(_1,U,!0));let i4="";return l2.forEach(P=>{const X=function u1(w){if(M1[w])return M1[w];let q;switch(w){case"G":case"GG":case"GGG":q=f0(o0.Eras,k2.Abbreviated);break;case"GGGG":q=f0(o0.Eras,k2.Wide);break;case"GGGGG":q=f0(o0.Eras,k2.Narrow);break;case"y":q=n0(t0.FullYear,1,0,!1,!0);break;case"yy":q=n0(t0.FullYear,2,0,!0,!0);break;case"yyy":q=n0(t0.FullYear,3,0,!1,!0);break;case"yyyy":q=n0(t0.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=n0(t0.Month,1,1);break;case"MM":case"LL":q=n0(t0.Month,2,1);break;case"MMM":q=f0(o0.Months,k2.Abbreviated);break;case"MMMM":q=f0(o0.Months,k2.Wide);break;case"MMMMM":q=f0(o0.Months,k2.Narrow);break;case"LLL":q=f0(o0.Months,k2.Abbreviated,C2.Standalone);break;case"LLLL":q=f0(o0.Months,k2.Wide,C2.Standalone);break;case"LLLLL":q=f0(o0.Months,k2.Narrow,C2.Standalone);break;case"w":q=J2(1);break;case"ww":q=J2(2);break;case"W":q=J2(1,!0);break;case"d":q=n0(t0.Date,1);break;case"dd":q=n0(t0.Date,2);break;case"c":case"cc":q=n0(t0.Day,1);break;case"ccc":q=f0(o0.Days,k2.Abbreviated,C2.Standalone);break;case"cccc":q=f0(o0.Days,k2.Wide,C2.Standalone);break;case"ccccc":q=f0(o0.Days,k2.Narrow,C2.Standalone);break;case"cccccc":q=f0(o0.Days,k2.Short,C2.Standalone);break;case"E":case"EE":case"EEE":q=f0(o0.Days,k2.Abbreviated);break;case"EEEE":q=f0(o0.Days,k2.Wide);break;case"EEEEE":q=f0(o0.Days,k2.Narrow);break;case"EEEEEE":q=f0(o0.Days,k2.Short);break;case"a":case"aa":case"aaa":q=f0(o0.DayPeriods,k2.Abbreviated);break;case"aaaa":q=f0(o0.DayPeriods,k2.Wide);break;case"aaaaa":q=f0(o0.DayPeriods,k2.Narrow);break;case"b":case"bb":case"bbb":q=f0(o0.DayPeriods,k2.Abbreviated,C2.Standalone,!0);break;case"bbbb":q=f0(o0.DayPeriods,k2.Wide,C2.Standalone,!0);break;case"bbbbb":q=f0(o0.DayPeriods,k2.Narrow,C2.Standalone,!0);break;case"B":case"BB":case"BBB":q=f0(o0.DayPeriods,k2.Abbreviated,C2.Format,!0);break;case"BBBB":q=f0(o0.DayPeriods,k2.Wide,C2.Format,!0);break;case"BBBBB":q=f0(o0.DayPeriods,k2.Narrow,C2.Format,!0);break;case"h":q=n0(t0.Hours,1,-12);break;case"hh":q=n0(t0.Hours,2,-12);break;case"H":q=n0(t0.Hours,1);break;case"HH":q=n0(t0.Hours,2);break;case"m":q=n0(t0.Minutes,1);break;case"mm":q=n0(t0.Minutes,2);break;case"s":q=n0(t0.Seconds,1);break;case"ss":q=n0(t0.Seconds,2);break;case"S":q=n0(t0.FractionalSeconds,1);break;case"SS":q=n0(t0.FractionalSeconds,2);break;case"SSS":q=n0(t0.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=h3(H4.Short);break;case"ZZZZZ":q=h3(H4.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=h3(H4.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=h3(H4.Long);break;default:return null}return M1[w]=q,q}(P);i4+=X?X(_1,T,M4):"''"===P?"'":P.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),i4}function $4(w,q,T){const U=new Date(0);return U.setFullYear(w,q,T),U.setHours(0,0,0),U}function _0(w,q){const T=F0(w);if(X4[T]??={},X4[T][q])return X4[T][q];let U="";switch(q){case"shortDate":U=D1(w,g2.Short);break;case"mediumDate":U=D1(w,g2.Medium);break;case"longDate":U=D1(w,g2.Long);break;case"fullDate":U=D1(w,g2.Full);break;case"shortTime":U=j1(w,g2.Short);break;case"mediumTime":U=j1(w,g2.Medium);break;case"longTime":U=j1(w,g2.Long);break;case"fullTime":U=j1(w,g2.Full);break;case"short":const _1=_0(w,"shortTime"),q1=_0(w,"shortDate");U=U0(A1(w,g2.Short),[_1,q1]);break;case"medium":const l2=_0(w,"mediumTime"),O2=_0(w,"mediumDate");U=U0(A1(w,g2.Medium),[l2,O2]);break;case"long":const M4=_0(w,"longTime"),i4=_0(w,"longDate");U=U0(A1(w,g2.Long),[M4,i4]);break;case"full":const P=_0(w,"fullTime"),X=_0(w,"fullDate");U=U0(A1(w,g2.Full),[P,X])}return U&&(X4[T][q]=U),U}function U0(w,q){return q&&(w=w.replace(/\{([^}]+)}/g,function(T,U){return null!=q&&U in q?q[U]:T})),w}function f4(w,q,T="-",U,_1){let q1="";(w<0||_1&&w<=0)&&(_1?w=1-w:(w=-w,q1=T));let l2=String(w);for(;l2.length0||O2>-T)&&(O2+=T),w===t0.Hours)0===O2&&-12===T&&(O2=12);else if(w===t0.FractionalSeconds)return function y3(w,q){return f4(w,3).substring(0,q)}(O2,q);const M4=v1(l2,K2.MinusSign);return f4(O2,q,M4,U,_1)}}function f0(w,q,T=C2.Format,U=!1){return function(_1,q1){return function x0(w,q,T,U,_1,q1){switch(T){case o0.Months:return function D0(w,q,T){const U=(0,u.H5H)(w),q1=Y0([U[u.KH2.MonthsFormat],U[u.KH2.MonthsStandalone]],q);return Y0(q1,T)}(q,_1,U)[w.getMonth()];case o0.Days:return function _2(w,q,T){const U=(0,u.H5H)(w),q1=Y0([U[u.KH2.DaysFormat],U[u.KH2.DaysStandalone]],q);return Y0(q1,T)}(q,_1,U)[w.getDay()];case o0.DayPeriods:const l2=w.getHours(),O2=w.getMinutes();if(q1){const i4=function v0(w){const q=(0,u.H5H)(w);return V2(q),(q[u.KH2.ExtraData][2]||[]).map(U=>"string"==typeof U?_4(U):[_4(U[0]),_4(U[1])])}(q),P=function p0(w,q,T){const U=(0,u.H5H)(w);V2(U);const q1=Y0([U[u.KH2.ExtraData][0],U[u.KH2.ExtraData][1]],q)||[];return Y0(q1,T)||[]}(q,_1,U),X=i4.findIndex(W=>{if(Array.isArray(W)){const[t1,p1]=W,T1=l2>=t1.hours&&O2>=t1.minutes,z1=l20?Math.floor(_1/60):Math.ceil(_1/60);switch(w){case H4.Short:return(_1>=0?"+":"")+f4(l2,2,q1)+f4(Math.abs(_1%60),2,q1);case H4.ShortGMT:return"GMT"+(_1>=0?"+":"")+f4(l2,1,q1);case H4.Long:return"GMT"+(_1>=0?"+":"")+f4(l2,2,q1)+":"+f4(Math.abs(_1%60),2,q1);case H4.Extended:return 0===U?"Z":(_1>=0?"+":"")+f4(l2,2,q1)+":"+f4(Math.abs(_1%60),2,q1);default:throw new Error(`Unknown zone width "${w}"`)}}}const T0=0,v4=4;function c3(w){const q=w.getDay(),T=0===q?-3:v4-q;return $4(w.getFullYear(),w.getMonth(),w.getDate()+T)}function J2(w,q=!1){return function(T,U){let _1;if(q){const q1=new Date(T.getFullYear(),T.getMonth(),1).getDay()-1,l2=T.getDate();_1=1+Math.floor((l2+q1)/7)}else{const q1=c3(T),l2=function o3(w){const q=$4(w,T0,1).getDay();return $4(w,0,1+(q<=v4?v4:v4+7)-q)}(q1.getFullYear()),O2=q1.getTime()-l2.getTime();_1=1+Math.round(O2/6048e5)}return f4(_1,w,v1(U,K2.MinusSign))}}function s1(w,q=!1){return function(T,U){return f4(c3(T).getFullYear(),w,v1(U,K2.MinusSign),q)}}const M1={};function E1(w,q){w=w.replace(/:/g,"");const T=Date.parse("Jan 01, 1970 00:00:00 "+w)/6e4;return isNaN(T)?q:T}function r0(w){return w instanceof Date&&!isNaN(w.valueOf())}function x1(w,q){q=encodeURIComponent(q);for(const T of w.split(";")){const U=T.indexOf("="),[_1,q1]=-1==U?[T,""]:[T.slice(0,U),T.slice(U+1)];if(_1.trim()===q)return decodeURIComponent(q1)}return null}const y1=/\s+/,W1=[];let Y1=(()=>{class w{constructor(T,U){this._ngEl=T,this._renderer=U,this.initialClasses=W1,this.stateMap=new Map}set klass(T){this.initialClasses=null!=T?T.trim().split(y1):W1}set ngClass(T){this.rawClass="string"==typeof T?T.trim().split(y1):T}ngDoCheck(){for(const U of this.initialClasses)this._updateState(U,!0);const T=this.rawClass;if(Array.isArray(T)||T instanceof Set)for(const U of T)this._updateState(U,!0);else if(null!=T)for(const U of Object.keys(T))this._updateState(U,!!T[U]);this._applyStateDiff()}_updateState(T,U){const _1=this.stateMap.get(T);void 0!==_1?(_1.enabled!==U&&(_1.changed=!0,_1.enabled=U),_1.touched=!0):this.stateMap.set(T,{enabled:U,changed:!0,touched:!0})}_applyStateDiff(){for(const T of this.stateMap){const U=T[0],_1=T[1];_1.changed?(this._toggleClass(U,_1.enabled),_1.changed=!1):_1.touched||(_1.enabled&&this._toggleClass(U,!1),this.stateMap.delete(U)),_1.touched=!1}}_toggleClass(T,U){(T=T.trim()).length>0&&T.split(y1).forEach(_1=>{U?this._renderer.addClass(this._ngEl.nativeElement,_1):this._renderer.removeClass(this._ngEl.nativeElement,_1)})}static{this.\u0275fac=function(U){return new(U||w)(u.rXU(u.aKT),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngClass",""]],inputs:{klass:[u.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return w})();class C0{constructor(q,T,U,_1){this.$implicit=q,this.ngForOf=T,this.index=U,this.count=_1}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 $2=(()=>{class w{set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}constructor(T,U,_1){this._viewContainer=T,this._template=U,this._differs=_1,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const U=this._viewContainer;T.forEachOperation((_1,q1,l2)=>{if(null==_1.previousIndex)U.createEmbeddedView(this._template,new C0(_1.item,this._ngForOf,-1,-1),null===l2?void 0:l2);else if(null==l2)U.remove(null===q1?void 0:q1);else if(null!==q1){const O2=U.get(q1);U.move(O2,l2),J0(O2,_1)}});for(let _1=0,q1=U.length;_1{J0(U.get(_1.currentIndex),_1)})}static ngTemplateContextGuard(T,U){return!0}static{this.\u0275fac=function(U){return new(U||w)(u.rXU(u.c1b),u.rXU(u.C4Q),u.rXU(u._q3))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return w})();function J0(w,q){w.context.$implicit=q.item}let a0=(()=>{class w{constructor(T,U){this._viewContainer=T,this._context=new t4,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=U}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){z4("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){z4("ngIfElse",T),this._elseTemplateRef=T,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(T,U){return!0}static{this.\u0275fac=function(U){return new(U||w)(u.rXU(u.c1b),u.rXU(u.C4Q))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return w})();class t4{constructor(){this.$implicit=null,this.ngIf=null}}function z4(w,q){if(q&&!q.createEmbeddedView)throw new Error(`${w} must be a TemplateRef, but received '${(0,u.Tbb)(q)}'.`)}let y2=(()=>{class w{constructor(T,U,_1){this._ngEl=T,this._differs=U,this._renderer=_1,this._ngStyle=null,this._differ=null}set ngStyle(T){this._ngStyle=T,!this._differ&&T&&(this._differ=this._differs.find(T).create())}ngDoCheck(){if(this._differ){const T=this._differ.diff(this._ngStyle);T&&this._applyChanges(T)}}_setStyle(T,U){const[_1,q1]=T.split("."),l2=-1===_1.indexOf("-")?void 0:u.czy.DashCase;null!=U?this._renderer.setStyle(this._ngEl.nativeElement,_1,q1?`${U}${q1}`:U,l2):this._renderer.removeStyle(this._ngEl.nativeElement,_1,l2)}_applyChanges(T){T.forEachRemovedItem(U=>this._setStyle(U.key,null)),T.forEachAddedItem(U=>this._setStyle(U.key,U.currentValue)),T.forEachChangedItem(U=>this._setStyle(U.key,U.currentValue))}static{this.\u0275fac=function(U){return new(U||w)(u.rXU(u.aKT),u.rXU(u.MKu),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return w})(),P0=(()=>{class w{constructor(T){this._viewContainerRef=T,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(T){if(this._shouldRecreateView(T)){const U=this._viewContainerRef;if(this._viewRef&&U.remove(U.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const _1=this._createContextForwardProxy();this._viewRef=U.createEmbeddedView(this.ngTemplateOutlet,_1,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(T){return!!T.ngTemplateOutlet||!!T.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(T,U,_1)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,U,_1),get:(T,U,_1)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,U,_1)}})}static{this.\u0275fac=function(U){return new(U||w)(u.rXU(u.c1b))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.OA$]})}}return w})();function i3(w,q){return new u.wOt(2100,!1)}class q3{createSubscription(q,T){return(0,u.O8t)(()=>q.subscribe({next:T,error:U=>{throw U}}))}dispose(q){(0,u.O8t)(()=>q.unsubscribe())}}class N8{createSubscription(q,T){return q.then(T,U=>{throw U})}dispose(q){}}const E8=new N8,y6=new q3;let u0=(()=>{class w{constructor(T){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=T}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(T){if(!this._obj){if(T)try{this.markForCheckOnValueUpdate=!1,this._subscribe(T)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,U=>this._updateLatestValue(T,U))}_selectStrategy(T){if((0,u.jNT)(T))return E8;if((0,u.zjR)(T))return y6;throw i3()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,U){T===this._obj&&(this._latestValue=U,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(U){return new(U||w)(u.rXU(u.gRc,16))}}static{this.\u0275pipe=u.EJ8({name:"async",type:w,pure:!1,standalone:!0})}}return w})();const L3=new u.nKC(""),t3=new u.nKC("");let F4=(()=>{class w{constructor(T,U,_1){this.locale=T,this.defaultTimezone=U,this.defaultOptions=_1}transform(T,U,_1,q1){if(null==T||""===T||T!=T)return null;try{return K4(T,U??this.defaultOptions?.dateFormat??"mediumDate",q1||this.locale,_1??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(l2){throw i3()}}static{this.\u0275fac=function(U){return new(U||w)(u.rXU(u.xe9,16),u.rXU(L3,24),u.rXU(t3,24))}}static{this.\u0275pipe=u.EJ8({name:"date",type:w,pure:!0,standalone:!0})}}return w})(),g6=(()=>{class w{static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275mod=u.$C({type:w})}static{this.\u0275inj=u.G2t({})}}return w})();const F6="browser",v6="server";function X0(w){return w===F6}function _6(w){return w===v6}let d3=(()=>{class w{static{this.\u0275prov=(0,u.jDH)({token:w,providedIn:"root",factory:()=>X0((0,u.WQX)(u.Agw))?new Q4((0,u.WQX)(A),window):new Q3})}}return w})();class Q4{constructor(q,T){this.document=q,this.window=T,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 T=function B4(w,q){const T=w.getElementById(q)||w.getElementsByName(q)[0];if(T)return T;if("function"==typeof w.createTreeWalker&&w.body&&"function"==typeof w.body.attachShadow){const U=w.createTreeWalker(w.body,NodeFilter.SHOW_ELEMENT);let _1=U.currentNode;for(;_1;){const q1=_1.shadowRoot;if(q1){const l2=q1.getElementById(q)||q1.querySelector(`[name="${q}"]`);if(l2)return l2}_1=U.nextNode()}}return null}(this.document,q);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(q){this.window.history.scrollRestoration=q}scrollToElement(q){const T=q.getBoundingClientRect(),U=T.left+this.window.pageXOffset,_1=T.top+this.window.pageYOffset,q1=this.offset();this.window.scrollTo(U-q1[0],_1-q1[1])}}class Q3{setOffset(q){}getScrollPosition(){return[0,0]}scrollToPosition(q){}scrollToAnchor(q){}setHistoryScrollRestoration(q){}}class L6{}},1626:(k1,r1,v)=>{"use strict";v.d(r1,{Lr:()=>m1,Nl:()=>c2,Qq:()=>D1,a7:()=>v0,q1:()=>b4}),v(467);var g=v(4438),e=v(7673),p=v(1985),L=v(6648),S=v(274),A=v(5964),V=v(6354),c1=v(980),K=v(5558),L1=v(177);class j{}class l1{}class m1{constructor(x1){this.normalizedNames=new Map,this.lazyUpdate=null,x1?"string"==typeof x1?this.lazyInit=()=>{this.headers=new Map,x1.split("\n").forEach(y1=>{const W1=y1.indexOf(":");if(W1>0){const Y1=y1.slice(0,W1),d2=Y1.toLowerCase(),f2=y1.slice(W1+1).trim();this.maybeSetNormalizedName(Y1,d2),this.headers.has(d2)?this.headers.get(d2).push(f2):this.headers.set(d2,[f2])}})}:typeof Headers<"u"&&x1 instanceof Headers?(this.headers=new Map,x1.forEach((y1,W1)=>{this.setHeaderEntries(W1,y1)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(x1).forEach(([y1,W1])=>{this.setHeaderEntries(y1,W1)})}:this.headers=new Map}has(x1){return this.init(),this.headers.has(x1.toLowerCase())}get(x1){this.init();const y1=this.headers.get(x1.toLowerCase());return y1&&y1.length>0?y1[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(x1){return this.init(),this.headers.get(x1.toLowerCase())||null}append(x1,y1){return this.clone({name:x1,value:y1,op:"a"})}set(x1,y1){return this.clone({name:x1,value:y1,op:"s"})}delete(x1,y1){return this.clone({name:x1,value:y1,op:"d"})}maybeSetNormalizedName(x1,y1){this.normalizedNames.has(y1)||this.normalizedNames.set(y1,x1)}init(){this.lazyInit&&(this.lazyInit instanceof m1?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(x1=>this.applyUpdate(x1)),this.lazyUpdate=null))}copyFrom(x1){x1.init(),Array.from(x1.headers.keys()).forEach(y1=>{this.headers.set(y1,x1.headers.get(y1)),this.normalizedNames.set(y1,x1.normalizedNames.get(y1))})}clone(x1){const y1=new m1;return y1.lazyInit=this.lazyInit&&this.lazyInit instanceof m1?this.lazyInit:this,y1.lazyUpdate=(this.lazyUpdate||[]).concat([x1]),y1}applyUpdate(x1){const y1=x1.name.toLowerCase();switch(x1.op){case"a":case"s":let W1=x1.value;if("string"==typeof W1&&(W1=[W1]),0===W1.length)return;this.maybeSetNormalizedName(x1.name,y1);const Y1=("a"===x1.op?this.headers.get(y1):void 0)||[];Y1.push(...W1),this.headers.set(y1,Y1);break;case"d":const d2=x1.value;if(d2){let f2=this.headers.get(y1);if(!f2)return;f2=f2.filter(C0=>-1===d2.indexOf(C0)),0===f2.length?(this.headers.delete(y1),this.normalizedNames.delete(y1)):this.headers.set(y1,f2)}else this.headers.delete(y1),this.normalizedNames.delete(y1)}}setHeaderEntries(x1,y1){const W1=(Array.isArray(y1)?y1:[y1]).map(d2=>d2.toString()),Y1=x1.toLowerCase();this.headers.set(Y1,W1),this.maybeSetNormalizedName(x1,Y1)}forEach(x1){this.init(),Array.from(this.normalizedNames.keys()).forEach(y1=>x1(this.normalizedNames.get(y1),this.headers.get(y1)))}}class $1{encodeKey(x1){return c0(x1)}encodeValue(x1){return c0(x1)}decodeKey(x1){return decodeURIComponent(x1)}decodeValue(x1){return decodeURIComponent(x1)}}const H1=/%(\d[a-f0-9])/gi,r2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function c0(a1){return encodeURIComponent(a1).replace(H1,(x1,y1)=>r2[y1]??x1)}function s2(a1){return`${a1}`}class c2{constructor(x1={}){if(this.updates=null,this.cloneFrom=null,this.encoder=x1.encoder||new $1,x1.fromString){if(x1.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function g1(a1,x1){const y1=new Map;return a1.length>0&&a1.replace(/^\?/,"").split("&").forEach(Y1=>{const d2=Y1.indexOf("="),[f2,C0]=-1==d2?[x1.decodeKey(Y1),""]:[x1.decodeKey(Y1.slice(0,d2)),x1.decodeValue(Y1.slice(d2+1))],$2=y1.get(f2)||[];$2.push(C0),y1.set(f2,$2)}),y1}(x1.fromString,this.encoder)}else x1.fromObject?(this.map=new Map,Object.keys(x1.fromObject).forEach(y1=>{const W1=x1.fromObject[y1],Y1=Array.isArray(W1)?W1.map(s2):[s2(W1)];this.map.set(y1,Y1)})):this.map=null}has(x1){return this.init(),this.map.has(x1)}get(x1){this.init();const y1=this.map.get(x1);return y1?y1[0]:null}getAll(x1){return this.init(),this.map.get(x1)||null}keys(){return this.init(),Array.from(this.map.keys())}append(x1,y1){return this.clone({param:x1,value:y1,op:"a"})}appendAll(x1){const y1=[];return Object.keys(x1).forEach(W1=>{const Y1=x1[W1];Array.isArray(Y1)?Y1.forEach(d2=>{y1.push({param:W1,value:d2,op:"a"})}):y1.push({param:W1,value:Y1,op:"a"})}),this.clone(y1)}set(x1,y1){return this.clone({param:x1,value:y1,op:"s"})}delete(x1,y1){return this.clone({param:x1,value:y1,op:"d"})}toString(){return this.init(),this.keys().map(x1=>{const y1=this.encoder.encodeKey(x1);return this.map.get(x1).map(W1=>y1+"="+this.encoder.encodeValue(W1)).join("&")}).filter(x1=>""!==x1).join("&")}clone(x1){const y1=new c2({encoder:this.encoder});return y1.cloneFrom=this.cloneFrom||this,y1.updates=(this.updates||[]).concat(x1),y1}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(x1=>this.map.set(x1,this.cloneFrom.map.get(x1))),this.updates.forEach(x1=>{switch(x1.op){case"a":case"s":const y1=("a"===x1.op?this.map.get(x1.param):void 0)||[];y1.push(s2(x1.value)),this.map.set(x1.param,y1);break;case"d":if(void 0===x1.value){this.map.delete(x1.param);break}{let W1=this.map.get(x1.param)||[];const Y1=W1.indexOf(s2(x1.value));-1!==Y1&&W1.splice(Y1,1),W1.length>0?this.map.set(x1.param,W1):this.map.delete(x1.param)}}}),this.cloneFrom=this.updates=null)}}class B2{constructor(){this.map=new Map}set(x1,y1){return this.map.set(x1,y1),this}get(x1){return this.map.has(x1)||this.map.set(x1,x1.defaultValue()),this.map.get(x1)}delete(x1){return this.map.delete(x1),this}has(x1){return this.map.has(x1)}keys(){return this.map.keys()}}function C2(a1){return typeof ArrayBuffer<"u"&&a1 instanceof ArrayBuffer}function k2(a1){return typeof Blob<"u"&&a1 instanceof Blob}function g2(a1){return typeof FormData<"u"&&a1 instanceof FormData}class g4{constructor(x1,y1,W1,Y1){let d2;if(this.url=y1,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=x1.toUpperCase(),function o2(a1){switch(a1){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Y1?(this.body=void 0!==W1?W1:null,d2=Y1):d2=W1,d2&&(this.reportProgress=!!d2.reportProgress,this.withCredentials=!!d2.withCredentials,d2.responseType&&(this.responseType=d2.responseType),d2.headers&&(this.headers=d2.headers),d2.context&&(this.context=d2.context),d2.params&&(this.params=d2.params),this.transferCache=d2.transferCache),this.headers??=new m1,this.context??=new B2,this.params){const f2=this.params.toString();if(0===f2.length)this.urlWithParams=y1;else{const C0=y1.indexOf("?");this.urlWithParams=y1+(-1===C0?"?":C0t4.set(z4,x1.setHeaders[z4]),J0)),x1.setParams&&(e0=Object.keys(x1.setParams).reduce((t4,z4)=>t4.set(z4,x1.setParams[z4]),e0)),new g4(y1,W1,f2,{params:e0,headers:J0,context:a0,reportProgress:$2,responseType:Y1,withCredentials:C0,transferCache:d2})}}var F0=function(a1){return a1[a1.Sent=0]="Sent",a1[a1.UploadProgress=1]="UploadProgress",a1[a1.ResponseHeader=2]="ResponseHeader",a1[a1.DownloadProgress=3]="DownloadProgress",a1[a1.Response=4]="Response",a1[a1.User=5]="User",a1}(F0||{});class x4{constructor(x1,y1=e2.Ok,W1="OK"){this.headers=x1.headers||new m1,this.status=void 0!==x1.status?x1.status:y1,this.statusText=x1.statusText||W1,this.url=x1.url||null,this.ok=this.status>=200&&this.status<300}}class _2 extends x4{constructor(x1={}){super(x1),this.type=F0.ResponseHeader}clone(x1={}){return new _2({headers:x1.headers||this.headers,status:void 0!==x1.status?x1.status:this.status,statusText:x1.statusText||this.statusText,url:x1.url||this.url||void 0})}}class D0 extends x4{constructor(x1={}){super(x1),this.type=F0.Response,this.body=void 0!==x1.body?x1.body:null}clone(x1={}){return new D0({body:void 0!==x1.body?x1.body:this.body,headers:x1.headers||this.headers,status:void 0!==x1.status?x1.status:this.status,statusText:x1.statusText||this.statusText,url:x1.url||this.url||void 0})}}class F1 extends x4{constructor(x1){super(x1,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${x1.url||"(unknown url)"}`:`Http failure response for ${x1.url||"(unknown url)"}: ${x1.status} ${x1.statusText}`,this.error=x1.error||null}}var e2=function(a1){return a1[a1.Continue=100]="Continue",a1[a1.SwitchingProtocols=101]="SwitchingProtocols",a1[a1.Processing=102]="Processing",a1[a1.EarlyHints=103]="EarlyHints",a1[a1.Ok=200]="Ok",a1[a1.Created=201]="Created",a1[a1.Accepted=202]="Accepted",a1[a1.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",a1[a1.NoContent=204]="NoContent",a1[a1.ResetContent=205]="ResetContent",a1[a1.PartialContent=206]="PartialContent",a1[a1.MultiStatus=207]="MultiStatus",a1[a1.AlreadyReported=208]="AlreadyReported",a1[a1.ImUsed=226]="ImUsed",a1[a1.MultipleChoices=300]="MultipleChoices",a1[a1.MovedPermanently=301]="MovedPermanently",a1[a1.Found=302]="Found",a1[a1.SeeOther=303]="SeeOther",a1[a1.NotModified=304]="NotModified",a1[a1.UseProxy=305]="UseProxy",a1[a1.Unused=306]="Unused",a1[a1.TemporaryRedirect=307]="TemporaryRedirect",a1[a1.PermanentRedirect=308]="PermanentRedirect",a1[a1.BadRequest=400]="BadRequest",a1[a1.Unauthorized=401]="Unauthorized",a1[a1.PaymentRequired=402]="PaymentRequired",a1[a1.Forbidden=403]="Forbidden",a1[a1.NotFound=404]="NotFound",a1[a1.MethodNotAllowed=405]="MethodNotAllowed",a1[a1.NotAcceptable=406]="NotAcceptable",a1[a1.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",a1[a1.RequestTimeout=408]="RequestTimeout",a1[a1.Conflict=409]="Conflict",a1[a1.Gone=410]="Gone",a1[a1.LengthRequired=411]="LengthRequired",a1[a1.PreconditionFailed=412]="PreconditionFailed",a1[a1.PayloadTooLarge=413]="PayloadTooLarge",a1[a1.UriTooLong=414]="UriTooLong",a1[a1.UnsupportedMediaType=415]="UnsupportedMediaType",a1[a1.RangeNotSatisfiable=416]="RangeNotSatisfiable",a1[a1.ExpectationFailed=417]="ExpectationFailed",a1[a1.ImATeapot=418]="ImATeapot",a1[a1.MisdirectedRequest=421]="MisdirectedRequest",a1[a1.UnprocessableEntity=422]="UnprocessableEntity",a1[a1.Locked=423]="Locked",a1[a1.FailedDependency=424]="FailedDependency",a1[a1.TooEarly=425]="TooEarly",a1[a1.UpgradeRequired=426]="UpgradeRequired",a1[a1.PreconditionRequired=428]="PreconditionRequired",a1[a1.TooManyRequests=429]="TooManyRequests",a1[a1.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",a1[a1.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",a1[a1.InternalServerError=500]="InternalServerError",a1[a1.NotImplemented=501]="NotImplemented",a1[a1.BadGateway=502]="BadGateway",a1[a1.ServiceUnavailable=503]="ServiceUnavailable",a1[a1.GatewayTimeout=504]="GatewayTimeout",a1[a1.HttpVersionNotSupported=505]="HttpVersionNotSupported",a1[a1.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",a1[a1.InsufficientStorage=507]="InsufficientStorage",a1[a1.LoopDetected=508]="LoopDetected",a1[a1.NotExtended=510]="NotExtended",a1[a1.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",a1}(e2||{});function h2(a1,x1){return{body:x1,headers:a1.headers,context:a1.context,observe:a1.observe,params:a1.params,reportProgress:a1.reportProgress,responseType:a1.responseType,withCredentials:a1.withCredentials,transferCache:a1.transferCache}}let D1=(()=>{class a1{constructor(y1){this.handler=y1}request(y1,W1,Y1={}){let d2;if(y1 instanceof g4)d2=y1;else{let $2,J0;$2=Y1.headers instanceof m1?Y1.headers:new m1(Y1.headers),Y1.params&&(J0=Y1.params instanceof c2?Y1.params:new c2({fromObject:Y1.params})),d2=new g4(y1,W1,void 0!==Y1.body?Y1.body:null,{headers:$2,context:Y1.context,params:J0,reportProgress:Y1.reportProgress,responseType:Y1.responseType||"json",withCredentials:Y1.withCredentials,transferCache:Y1.transferCache})}const f2=(0,e.of)(d2).pipe((0,S.H)($2=>this.handler.handle($2)));if(y1 instanceof g4||"events"===Y1.observe)return f2;const C0=f2.pipe((0,A.p)($2=>$2 instanceof D0));switch(Y1.observe||"body"){case"body":switch(d2.responseType){case"arraybuffer":return C0.pipe((0,V.T)($2=>{if(null!==$2.body&&!($2.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return $2.body}));case"blob":return C0.pipe((0,V.T)($2=>{if(null!==$2.body&&!($2.body instanceof Blob))throw new Error("Response is not a Blob.");return $2.body}));case"text":return C0.pipe((0,V.T)($2=>{if(null!==$2.body&&"string"!=typeof $2.body)throw new Error("Response is not a string.");return $2.body}));default:return C0.pipe((0,V.T)($2=>$2.body))}case"response":return C0;default:throw new Error(`Unreachable: unhandled observe type ${Y1.observe}}`)}}delete(y1,W1={}){return this.request("DELETE",y1,W1)}get(y1,W1={}){return this.request("GET",y1,W1)}head(y1,W1={}){return this.request("HEAD",y1,W1)}jsonp(y1,W1){return this.request("JSONP",y1,{params:(new c2).append(W1,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(y1,W1={}){return this.request("OPTIONS",y1,W1)}patch(y1,W1,Y1={}){return this.request("PATCH",y1,h2(Y1,W1))}post(y1,W1,Y1={}){return this.request("POST",y1,h2(Y1,W1))}put(y1,W1,Y1={}){return this.request("PUT",y1,h2(Y1,W1))}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(j))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();function W2(a1,x1){return x1(a1)}function s0(a1,x1){return(y1,W1)=>x1.intercept(y1,{handle:Y1=>a1(Y1,W1)})}const v0=new g.nKC(""),p0=new g.nKC(""),g0=new g.nKC(""),Y0=new g.nKC("");function _4(){let a1=null;return(x1,y1)=>{null===a1&&(a1=((0,g.WQX)(v0,{optional:!0})??[]).reduceRight(s0,W2));const W1=(0,g.WQX)(g.TgB),Y1=W1.add();return a1(x1,y1).pipe((0,c1.j)(()=>W1.remove(Y1)))}}let L4=(()=>{class a1 extends j{constructor(y1,W1){super(),this.backend=y1,this.injector=W1,this.chain=null,this.pendingTasks=(0,g.WQX)(g.TgB);const Y1=(0,g.WQX)(Y0,{optional:!0});this.backend=Y1??y1}handle(y1){if(null===this.chain){const Y1=Array.from(new Set([...this.injector.get(p0),...this.injector.get(g0,[])]));this.chain=Y1.reduceRight((d2,f2)=>function V2(a1,x1,y1){return(W1,Y1)=>(0,g.N4e)(y1,()=>x1(W1,d2=>a1(d2,Y1)))}(d2,f2,this.injector),W2)}const W1=this.pendingTasks.add();return this.chain(y1,Y1=>this.backend.handle(Y1)).pipe((0,c1.j)(()=>this.pendingTasks.remove(W1)))}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(l1),g.KVO(g.uvJ))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();const y3=/^\)\]\}',?\n/;let e3=(()=>{class a1{constructor(y1){this.xhrFactory=y1}handle(y1){if("JSONP"===y1.method)throw new g.wOt(-2800,!1);const W1=this.xhrFactory;return(W1.\u0275loadImpl?(0,L.H)(W1.\u0275loadImpl()):(0,e.of)(null)).pipe((0,K.n)(()=>new p.c(d2=>{const f2=W1.build();if(f2.open(y1.method,y1.urlWithParams),y1.withCredentials&&(f2.withCredentials=!0),y1.headers.forEach((A0,I0)=>f2.setRequestHeader(A0,I0.join(","))),y1.headers.has("Accept")||f2.setRequestHeader("Accept","application/json, text/plain, */*"),!y1.headers.has("Content-Type")){const A0=y1.detectContentTypeHeader();null!==A0&&f2.setRequestHeader("Content-Type",A0)}if(y1.responseType){const A0=y1.responseType.toLowerCase();f2.responseType="json"!==A0?A0:"text"}const C0=y1.serializeBody();let $2=null;const J0=()=>{if(null!==$2)return $2;const A0=f2.statusText||"OK",I0=new m1(f2.getAllResponseHeaders()),y4=function n0(a1){return"responseURL"in a1&&a1.responseURL?a1.responseURL:/^X-Request-URL:/m.test(a1.getAllResponseHeaders())?a1.getResponseHeader("X-Request-URL"):null}(f2)||y1.url;return $2=new _2({headers:I0,status:f2.status,statusText:A0,url:y4}),$2},e0=()=>{let{headers:A0,status:I0,statusText:y4,url:P4}=J0(),q0=null;I0!==e2.NoContent&&(q0=typeof f2.response>"u"?f2.responseText:f2.response),0===I0&&(I0=q0?e2.Ok:0);let G4=I0>=200&&I0<300;if("json"===y1.responseType&&"string"==typeof q0){const S4=q0;q0=q0.replace(y3,"");try{q0=""!==q0?JSON.parse(q0):null}catch(O4){q0=S4,G4&&(G4=!1,q0={error:O4,text:q0})}}G4?(d2.next(new D0({body:q0,headers:A0,status:I0,statusText:y4,url:P4||void 0})),d2.complete()):d2.error(new F1({error:q0,headers:A0,status:I0,statusText:y4,url:P4||void 0}))},a0=A0=>{const{url:I0}=J0(),y4=new F1({error:A0,status:f2.status||0,statusText:f2.statusText||"Unknown Error",url:I0||void 0});d2.error(y4)};let t4=!1;const z4=A0=>{t4||(d2.next(J0()),t4=!0);let I0={type:F0.DownloadProgress,loaded:A0.loaded};A0.lengthComputable&&(I0.total=A0.total),"text"===y1.responseType&&f2.responseText&&(I0.partialText=f2.responseText),d2.next(I0)},c4=A0=>{let I0={type:F0.UploadProgress,loaded:A0.loaded};A0.lengthComputable&&(I0.total=A0.total),d2.next(I0)};return f2.addEventListener("load",e0),f2.addEventListener("error",a0),f2.addEventListener("timeout",a0),f2.addEventListener("abort",a0),y1.reportProgress&&(f2.addEventListener("progress",z4),null!==C0&&f2.upload&&f2.upload.addEventListener("progress",c4)),f2.send(C0),d2.next({type:F0.Sent}),()=>{f2.removeEventListener("error",a0),f2.removeEventListener("abort",a0),f2.removeEventListener("load",e0),f2.removeEventListener("timeout",a0),y1.reportProgress&&(f2.removeEventListener("progress",z4),null!==C0&&f2.upload&&f2.upload.removeEventListener("progress",c4)),f2.readyState!==f2.DONE&&f2.abort()}})))}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(L1.N0))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();const f0=new g.nKC(""),h3=new g.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),v4=new g.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class o3{}let c3=(()=>{class a1{constructor(y1,W1,Y1){this.doc=y1,this.platform=W1,this.cookieName=Y1,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const y1=this.doc.cookie||"";return y1!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,L1._b)(y1,this.cookieName),this.lastCookieString=y1),this.lastToken}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(L1.qQ),g.KVO(g.Agw),g.KVO(h3))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();function J2(a1,x1){const y1=a1.url.toLowerCase();if(!(0,g.WQX)(f0)||"GET"===a1.method||"HEAD"===a1.method||y1.startsWith("http://")||y1.startsWith("https://"))return x1(a1);const W1=(0,g.WQX)(o3).getToken(),Y1=(0,g.WQX)(v4);return null!=W1&&!a1.headers.has(Y1)&&(a1=a1.clone({headers:a1.headers.set(Y1,W1)})),x1(a1)}var M1=function(a1){return a1[a1.Interceptors=0]="Interceptors",a1[a1.LegacyInterceptors=1]="LegacyInterceptors",a1[a1.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",a1[a1.NoXsrfProtection=3]="NoXsrfProtection",a1[a1.JsonpSupport=4]="JsonpSupport",a1[a1.RequestsMadeViaParent=5]="RequestsMadeViaParent",a1[a1.Fetch=6]="Fetch",a1}(M1||{});function u1(a1,x1){return{\u0275kind:a1,\u0275providers:x1}}function E1(...a1){const x1=[D1,e3,L4,{provide:j,useExisting:L4},{provide:l1,useExisting:e3},{provide:p0,useValue:J2,multi:!0},{provide:f0,useValue:!0},{provide:o3,useClass:c3}];for(const y1 of a1)x1.push(...y1.\u0275providers);return(0,g.EmA)(x1)}const z2=new g.nKC("");let b4=(()=>{class a1{static{this.\u0275fac=function(W1){return new(W1||a1)}}static{this.\u0275mod=g.$C({type:a1})}static{this.\u0275inj=g.G2t({providers:[E1(u1(M1.LegacyInterceptors,[{provide:z2,useFactory:_4},{provide:p0,useExisting:z2,multi:!0}]))]})}}return a1})()},4438:(k1,r1,v)=>{"use strict";v.d(r1,{iLQ:()=>is,sZ2:()=>iu,hnV:()=>S_,Hbi:()=>Kb,o8S:()=>z5,BIS:()=>yC,gRc:()=>G_,Ql9:()=>jb,Ocv:()=>j_,abz:()=>P5,Z63:()=>Z3,aKT:()=>Q7,uvJ:()=>N3,zcH:()=>V8,bkB:()=>Te,duS:()=>e8,$GK:()=>u0,nKC:()=>Y1,zZn:()=>o8,_q3:()=>kd,MKu:()=>Sd,xe9:()=>_9,Co$:()=>ti,Vns:()=>Je,SKi:()=>U3,Xx1:()=>X0,Agw:()=>ln,PLl:()=>ru,sFG:()=>qz,_9s:()=>Vm,czy:()=>yn,WPN:()=>r5,kdw:()=>J3,C4Q:()=>yt,NYb:()=>Ab,giA:()=>w_,RxE:()=>sd,c1b:()=>el,gXe:()=>S3,mal:()=>qm,L39:()=>qd,Ol2:()=>li,w6W:()=>SM,oH4:()=>V_,Rfq:()=>J2,WQX:()=>d0,hFB:()=>Hf,QuC:()=>W4,EmA:()=>_8,fpN:()=>ms,HJs:()=>vy,N4e:()=>u6,O8t:()=>yy,H3F:()=>h_,H8p:()=>C8,KH2:()=>me,TgB:()=>h5,wOt:()=>m2,WHO:()=>k_,e01:()=>rd,lNU:()=>_4,h9k:()=>Du,$MX:()=>un,ZF7:()=>Sc,Kcf:()=>bu,e5t:()=>yu,UyX:()=>PC,cWb:()=>IC,osQ:()=>$C,H5H:()=>Zi,Zy3:()=>n4,mq5:()=>u7,JZv:()=>n0,LfX:()=>_3,plB:()=>m5,jNT:()=>dd,zjR:()=>fd,TL$:()=>MC,Tbb:()=>T0,rcV:()=>Re,Vt3:()=>sl,Mj6:()=>u3,GFd:()=>Rp,OA$:()=>P8,Jv_:()=>Rr,aNF:()=>Ir,R7$:()=>im,BMQ:()=>jt,HbH:()=>Bi,ZvI:()=>Hi,AVh:()=>Oi,vxM:()=>qi,wni:()=>wg,VBU:()=>ze,FsC:()=>w6,jDH:()=>b0,G2t:()=>b1,$C:()=>B6,EJ8:()=>g8,rXU:()=>Rc,nrm:()=>Nl,eu8:()=>Tl,bVm:()=>Dl,qex:()=>El,k0s:()=>Ht,j41:()=>Sl,RV6:()=>$h,xGo:()=>Af,Mr5:()=>Rl,KVO:()=>k4,kS0:()=>W9,QTQ:()=>rm,bIt:()=>gr,lsd:()=>Ng,joV:()=>ks,qSk:()=>vs,XpG:()=>Hl,nI1:()=>Ur,bMT:()=>cs,i5U:()=>t_,SdG:()=>xg,NAR:()=>Lr,Y8G:()=>$i,FS9:()=>Cr,Mz_:()=>p7,lJ4:()=>qg,eq3:()=>Xg,l_i:()=>jr,sMw:()=>Or,ziG:()=>Zl,mGM:()=>Sg,sdS:()=>Dg,Dyx:()=>Eh,Z7z:()=>wl,fX1:()=>Wi,Vm6:()=>Xi,Njj:()=>lf,EBC:()=>Yu,tSv:()=>pt,eBV:()=>oe,npT:()=>Tu,f$h:()=>_n,B4B:()=>Fa,n$t:()=>Iu,wjB:()=>Pr,Aen:()=>fe,muq:()=>br,xc7:()=>ji,DNE:()=>Qc,C5r:()=>ts,EFF:()=>Og,JRh:()=>vr,SpI:()=>c9,Lme:()=>kr,E5c:()=>t9,LHq:()=>wr,SjE:()=>n9,DH7:()=>Hg,mxI:()=>Jl,R50:()=>Nr,GBs:()=>Yl}),v(467);let e=null,p=!1,L=1;const S=Symbol("SIGNAL");function A(s){const o=e;return e=s,o}const L1={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 j(s){if(p)throw new Error("");if(null===e)return;e.consumerOnSignalRead(s);const o=e.nextProducerIndex++;o2(e),o0}function o2(s){s.producerNode??=[],s.producerIndexOfThis??=[],s.producerLastReadVersion??=[]}function C2(s){s.liveConsumerNode??=[],s.liveConsumerIndexOfThis??=[]}let _2=function x4(){throw new Error};function A1(s,o){(function $1(){return!1!==e?.consumerAllowSignalWrites})()||function D0(){_2()}(),s.equal(s.value,o)||(s.value=o,function Z(s){s.version++,function l1(){L++}(),f1(s)}(s))}const Z1={...L1,equal:function g(s,o){return Object.is(s,o)},value:void 0};var V2=v(1413),v0=v(8359),p0=v(4412),g0=v(6354);const _4="https://g.co/ng/security#xss";class m2 extends Error{constructor(o,i){super(n4(o,i)),this.code=o}}function n4(s,o){return`NG0${Math.abs(s)}${o?": "+o:""}`}const L4=Symbol("InputSignalNode#UNSET"),H3={...Z1,transformFn:void 0,applyValueToInputSignal(s,o){A1(s,o)}};function H4(s,o){const i=Object.create(H3);function d(){if(j(i),i.value===L4)throw new m2(-950,!1);return i.value}return i.value=s,i.transformFn=o?.transform,d[S]=i,d}function t0(s){return{toString:s}.toString()}const K4="__parameters__";function f4(s,o,i){return t0(()=>{const d=function U0(s){return function(...i){if(s){const d=s(...i);for(const f in d)this[f]=d[f]}}}(o);function f(...h){if(this instanceof f)return d.apply(this,h),this;const C=new f(...h);return M.annotation=C,M;function M(k,$,Y){const o1=k.hasOwnProperty(K4)?k[K4]:Object.defineProperty(k,K4,{value:[]})[K4];for(;o1.length<=Y;)o1.push(null);return(o1[Y]=o1[Y]||[]).push(C),k}}return i&&(f.prototype=Object.create(i.prototype)),f.prototype.ngMetadataName=s,f.annotationCls=f,f})}const n0=globalThis;function x0(s){for(let o in s)if(s[o]===x0)return o;throw Error("Could not find renamed property on target object.")}function h3(s,o){for(const i in o)o.hasOwnProperty(i)&&!s.hasOwnProperty(i)&&(s[i]=o[i])}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 i=o.indexOf("\n");return-1===i?o:o.substring(0,i)}function v4(s,o){return null==s||""===s?null===o?"":o:null==o||""===o?s:s+" "+o}const c3=x0({__forward_ref__:x0});function J2(s){return s.__forward_ref__=J2,s.toString=function(){return T0(this())},s}function s1(s){return M1(s)?s():s}function M1(s){return"function"==typeof s&&s.hasOwnProperty(c3)&&s.__forward_ref__===J2}function b0(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function b1(s){return{providers:s.providers||[],imports:s.imports||[]}}function g3(s){return A3(s,a1)||A3(s,y1)}function _3(s){return null!==g3(s)}function A3(s,o){return s.hasOwnProperty(o)?s[o]:null}function F3(s){return s&&(s.hasOwnProperty(x1)||s.hasOwnProperty(W1))?s[x1]:null}const a1=x0({\u0275prov:x0}),x1=x0({\u0275inj:x0}),y1=x0({ngInjectableDef:x0}),W1=x0({ngInjectorDef:x0});class Y1{constructor(o,i){this._desc=o,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=b0({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function A0(s){return s&&!!s.\u0275providers}const I0=x0({\u0275cmp:x0}),y4=x0({\u0275dir:x0}),P4=x0({\u0275pipe:x0}),q0=x0({\u0275mod:x0}),G4=x0({\u0275fac:x0}),S4=x0({__NG_ELEMENT_ID__:x0}),O4=x0({__NG_ENV_ID__:x0});function y2(s){return"string"==typeof s?s:null==s?"":String(s)}function y6(s,o){throw new m2(-201,!1)}var u0=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}(u0||{});let Q2;function N2(){return Q2}function a4(s){const o=Q2;return Q2=s,o}function r3(s,o,i){const d=g3(s);return d&&"root"==d.providedIn?void 0===d.value?d.value=d.factory():d.value:i&u0.Optional?null:void 0!==o?o:void y6()}const t3={},F4="__NG_DI_FLAG__",N4="ngTempTokenPath",h6=/\n/gm,X3="__source";let C3;function W3(s){const o=C3;return C3=s,o}function Z6(s,o=u0.Default){if(void 0===C3)throw new m2(-203,!1);return null===C3?r3(s,void 0,o):C3.get(s,o&u0.Optional?null:void 0,o)}function k4(s,o=u0.Default){return(N2()||Z6)(s1(s),o)}function d0(s,o=u0.Default){return k4(s,z3(o))}function z3(s){return typeof s>"u"||"number"==typeof s?s:(s.optional&&8)|(s.host&&1)|(s.self&&2)|(s.skipSelf&&4)}function k3(s){const o=[];for(let i=0;iArray.isArray(i)?B4(i,o):o(i))}function Q3(s,o,i){o>=s.length?s.push(i):s.splice(o,0,i)}function L6(s,o){return o>=s.length-1?s.pop():s.splice(o,1)[0]}function Z4(s,o,i){let d=V4(s,o);return d>=0?s[1|d]=i:(d=~d,function K6(s,o,i,d){let f=s.length;if(f==o)s.push(i,d);else if(1===f)s.push(d,s[0]),s[0]=i;else{for(f--,s.push(s[f-1],s[f]);f>o;)s[f]=s[f-2],f--;s[o]=i,s[o+1]=d}}(s,d,o,i)),d}function j6(s,o){const i=V4(s,o);if(i>=0)return s[1|i]}function V4(s,o){return function h8(s,o,i){let d=0,f=s.length>>i;for(;f!==d;){const h=d+(f-d>>1),C=s[h<o?f=h:d=h+1}return~(f<o){C=h-1;break}}}for(;h-1){let h;for(;++fh?"":f[Y+1].toLowerCase(),2&d&&$!==o1){if(q4(d))return!1;C=!0}}}}else{if(!C&&!q4(d)&&!q4(k))return!1;if(C&&q4(k))continue;C=!1,d=k|1&d}}return q4(d)||C}function q4(s){return!(1&s)}function c8(s,o,i,d){if(null===o)return-1;let f=0;if(d||!i){let h=!1;for(;f-1)for(i++;i0?'="'+M+'"':"")+"]"}else 8&d?f+="."+C:4&d&&(f+=" "+C);else""!==f&&!q4(C)&&(o+=Ve(h,f),f=""),d=C,h=h||!q4(d);i++}return""!==f&&(o+=Ve(h,f)),o}function ze(s){return t0(()=>{const o=W8(s),i={...o,decls:s.decls,vars:s.vars,template:s.template,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,onPush:s.changeDetection===O6.OnPush,directiveDefs:null,pipeDefs:null,dependencies:o.standalone&&s.dependencies||null,getStandaloneInjector:null,signals:s.signals??!1,data:s.data||{},encapsulation:s.encapsulation||S3.Emulated,styles:s.styles||k0,_:null,schemas:s.schemas||null,tView:null,id:""};J8(i);const d=s.dependencies;return i.directiveDefs=V6(d,!1),i.pipeDefs=V6(d,!0),i.id=function e5(s){let o=0;const i=[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 i)o=Math.imul(31,o)+f.charCodeAt(0)|0;return o+=2147483648,"c"+o}(i),i})}function Me(s){return $0(s)||D4(s)}function D8(s){return null!==s}function B6(s){return t0(()=>({type:s.type,bootstrap:s.bootstrap||k0,declarations:s.declarations||k0,imports:s.imports||k0,exports:s.exports||k0,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function t8(s,o){if(null==s)return E4;const i={};for(const d in s)if(s.hasOwnProperty(d)){const f=s[d];let h,C,M=u3.None;Array.isArray(f)?(M=f[0],h=f[1],C=f[2]??h):(h=f,C=f),o?(i[h]=M!==u3.None?[d,M]:d,o[h]=C):i[h]=d}return i}function w6(s){return t0(()=>{const o=W8(s);return J8(o),o})}function g8(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 $0(s){return s[I0]||null}function D4(s){return s[y4]||null}function T4(s){return s[P4]||null}function W4(s){const o=$0(s)||D4(s)||T4(s);return null!==o&&o.standalone}function n3(s,o){const i=s[q0]||null;if(!i&&!0===o)throw new Error(`Type ${T0(s)} does not have '\u0275mod' property.`);return i}function W8(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||E4,exportAs:s.exportAs||null,standalone:!0===s.standalone,signals:!0===s.signals,selectors:s.selectors||k0,viewQuery:s.viewQuery||null,features:s.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:t8(s.inputs,o),outputs:t8(s.outputs),debugInfo:null}}function J8(s){s.features?.forEach(o=>o(s))}function V6(s,o){if(!s)return null;const i=o?T4:Me;return()=>("function"==typeof s?s():s).map(d=>i(d)).filter(D8)}function _8(s){return{\u0275providers:s}}function xe(...s){return{\u0275providers:U6(0,s),\u0275fromNgModule:!0}}function U6(s,...o){const i=[],d=new Set;let f;const h=C=>{i.push(C)};return B4(o,C=>{const M=C;L8(M,h,[],d)&&(f||=[],f.push(M))}),void 0!==f&&Q8(f,h),i}function Q8(s,o){for(let i=0;i{o(h,d)})}}function L8(s,o,i,d){if(!(s=s1(s)))return!1;let f=null,h=F3(s);const C=!h&&$0(s);if(h||C){if(C&&!C.standalone)return!1;f=s}else{const k=s.ngModule;if(h=F3(k),!h)return!1;f=k}const M=d.has(f);if(C){if(M)return!1;if(d.add(f),C.dependencies){const k="function"==typeof C.dependencies?C.dependencies():C.dependencies;for(const $ of k)L8($,o,i,d)}}else{if(!h)return!1;{if(null!=h.imports&&!M){let $;d.add(f);try{B4(h.imports,Y=>{L8(Y,o,i,d)&&($||=[],$.push(Y))})}finally{}void 0!==$&&Q8($,o)}if(!M){const $=$3(f)||(()=>new f);o({provide:f,useFactory:$,deps:k0},f),o({provide:K3,useValue:f,multi:!0},f),o({provide:Z3,useValue:()=>k4(f),multi:!0},f)}const k=h.providers;if(null!=k&&!M){const $=s;Z8(k,Y=>{o(Y,$)})}}}return f!==s&&void 0!==s.providers}function Z8(s,o){for(let i of s)A0(i)&&(i=i.\u0275providers),Array.isArray(i)?Z8(i,o):o(i)}const d6=x0({provide:String,useValue:x0});function S6(s){return null!==s&&"object"==typeof s&&d6 in s}function f6(s){return"function"==typeof s}const C8=new Y1(""),ee={},Ge={};let ce;function n8(){return void 0===ce&&(ce=new j3),ce}class N3{}class T8 extends N3{get destroyed(){return this._destroyed}constructor(o,i,d,f){super(),this.parent=i,this.source=d,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,M8(o,C=>this.processProvider(C)),this.records.set(e8,E3(void 0,this)),f.has("environment")&&this.records.set(N3,E3(void 0,this));const h=this.records.get(C8);null!=h&&"string"==typeof h.value&&this.scopes.add(h.value),this.injectorDefTypes=new Set(this.get(K3,k0,u0.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const o=A(null);try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of i)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 i=W3(this),d=a4(void 0);try{return o()}finally{W3(i),a4(d)}}get(o,i=t3,d=u0.Default){if(this.assertNotDestroyed(),o.hasOwnProperty(O4))return o[O4](this);d=z3(d);const h=W3(this),C=a4(void 0);try{if(!(d&u0.SkipSelf)){let k=this.records.get(o);if(void 0===k){const $=function c5(s){return"function"==typeof s||"object"==typeof s&&s instanceof Y1}(o)&&g3(o);k=$&&this.injectableDefInScope($)?E3(z8(o),ee):null,this.records.set(o,k)}if(null!=k)return this.hydrate(o,k)}return(d&u0.Self?n8():this.parent).get(o,i=d&u0.Optional&&i===t3?null:i)}catch(M){if("NullInjectorError"===M.name){if((M[N4]=M[N4]||[]).unshift(T0(o)),h)throw M;return function v6(s,o,i,d){const f=s[N4];throw o[X3]&&f.unshift(o[X3]),s.message=function P3(s,o,i,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 C in o)if(o.hasOwnProperty(C)){let M=o[C];h.push(C+":"+("string"==typeof M?JSON.stringify(M):T0(M)))}f=`{${h.join(", ")}}`}return`${i}${d?"("+d+")":""}[${f}]: ${s.replace(h6,"\n ")}`}("\n"+s.message,f,i,d),s.ngTokenPath=f,s[N4]=null,s}(M,o,"R3InjectorError",this.source)}throw M}finally{a4(C),W3(h)}}resolveInjectorInitializers(){const o=A(null),i=W3(this),d=a4(void 0);try{const h=this.get(Z3,k0,u0.Self);for(const C of h)C()}finally{W3(i),a4(d),A(o)}}toString(){const o=[],i=this.records;for(const d of i.keys())o.push(T0(d));return`R3Injector[${o.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m2(205,!1)}processProvider(o){let i=f6(o=s1(o))?o:s1(o&&o.provide);const d=function R8(s){return S6(s)?E3(void 0,s.useValue):E3(Ye(s),ee)}(o);if(!f6(o)&&!0===o.multi){let f=this.records.get(i);f||(f=E3(void 0,ee,!0),f.factory=()=>k3(f.multi),this.records.set(i,f)),i=o,f.multi.push(o)}this.records.set(i,d)}hydrate(o,i){const d=A(null);try{return i.value===ee&&(i.value=Ge,i.value=i.factory()),"object"==typeof i.value&&i.value&&function ye(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{A(d)}}injectableDefInScope(o){if(!o.providedIn)return!1;const i=s1(o.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(o){const i=this._onDestroyHooks.indexOf(o);-1!==i&&this._onDestroyHooks.splice(i,1)}}function z8(s){const o=g3(s),i=null!==o?o.factory:$3(s);if(null!==i)return i;if(s instanceof Y1)throw new m2(204,!1);if(s instanceof Function)return function be(s){if(s.length>0)throw new m2(204,!1);const i=function Y3(s){return s&&(s[a1]||s[y1])||null}(s);return null!==i?()=>i.factory(s):()=>new s}(s);throw new m2(204,!1)}function Ye(s,o,i){let d;if(f6(s)){const f=s1(s);return $3(f)||z8(f)}if(S6(s))d=()=>s1(s.useValue);else if(function K8(s){return!(!s||!s.useFactory)}(s))d=()=>s.useFactory(...k3(s.deps||[]));else if(function E2(s){return!(!s||!s.useExisting)}(s))d=()=>k4(s1(s.useExisting));else{const f=s1(s&&(s.useClass||s.provide));if(!function N6(s){return!!s.deps}(s))return $3(f)||z8(f);d=()=>new f(...k3(s.deps))}return d}function E3(s,o,i=!1){return{factory:s,value:o,multi:i?[]:void 0}}function M8(s,o){for(const i of s)Array.isArray(i)?M8(i,o):i&&A0(i)?M8(i.\u0275providers,o):o(i)}function u6(s,o){s instanceof T8&&s.assertNotDestroyed();const d=W3(s),f=a4(void 0);try{return o()}finally{W3(d),a4(f)}}function l8(){return void 0!==N2()||null!=function Q6(){return C3}()}const T1=0,z1=1,U1=2,x2=3,T2=4,A2=5,z0=6,j0=7,W0=8,M0=9,p3=10,X2=11,L2=12,D3=13,K0=14,F2=15,O3=16,C6=17,z6=18,Fe=19,w5=20,m0=21,h1=22,te=23,w0=25,S5=1,s8=7,x8=9,l3=10;var t5=function(s){return s[s.None=0]="None",s[s.HasTransplantedViews=2]="HasTransplantedViews",s}(t5||{});function B3(s){return Array.isArray(s)&&"object"==typeof s[S5]}function s3(s){return Array.isArray(s)&&!0===s[S5]}function D2(s){return!!(4&s.flags)}function A8(s){return s.componentOffset>-1}function Y2(s){return!(1&~s.flags)}function U2(s){return!!s.template}function c6(s){return!!(512&s[U1])}class ke{constructor(o,i,d){this.previousValue=o,this.currentValue=i,this.firstChange=d}isFirstChange(){return this.firstChange}}function we(s,o,i,d){null!==o?o.applyValueToInputSignal(o,d):s[i]=d}function P8(){return Se}function Se(s){return s.type.prototype.ngOnChanges&&(s.setInput=E9),$8}function $8(){const s=E7(this),o=s?.current;if(o){const i=s.previous;if(i===E4)s.previous=o;else for(let d in o)i[d]=o[d];s.current=null,this.ngOnChanges(o)}}function E9(s,o,i,d,f){const h=this.declaredInputs[d],C=E7(s)||function le(s,o){return s[fc]=o}(s,{previous:E4,current:null}),M=C.current||(C.current={}),k=C.previous,$=k[h];M[h]=new ke($&&$.currentValue,i,k===E4),we(s,o,f,i)}P8.ngInherit=!0;const fc="__ngSimpleChanges__";function E7(s){return s[fc]||null}const H6=function(s,o,i){},mc="svg";let D9=!1;function w4(s){for(;Array.isArray(s);)s=s[T1];return s}function n5(s,o){return w4(o[s])}function M6(s,o){return w4(o[s.index])}function R5(s,o){return s.data[o]}function l5(s,o){return s[o]}function D6(s,o){const i=o[s];return B3(i)?i:i[T1]}function R7(s){return!(128&~s[U1])}function a8(s,o){return null==o?null:s[o]}function R9(s){s[C6]=0}function j8(s){1024&s[U1]||(s[U1]|=1024,R7(s)&&A5(s))}function A7(s){return!!(9216&s[U1]||s[te]?.dirty)}function hc(s){s[p3].changeDetectionScheduler?.notify(1),A7(s)?A5(s):64&s[U1]&&(function T7(){return D9}()?(s[U1]|=1024,A5(s)):s[p3].changeDetectionScheduler?.notify())}function A5(s){s[p3].changeDetectionScheduler?.notify();let o=ae(s);for(;null!==o&&!(8192&o[U1])&&(o[U1]|=8192,R7(o));)o=ae(o)}function gc(s,o){if(!(256&~s[U1]))throw new m2(911,!1);null===s[m0]&&(s[m0]=[]),s[m0].push(o)}function ae(s){const o=s[x2];return s3(o)?o[x2]:o}const h0={lFrame:_f(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function O(){return h0.bindingsEnabled}function n1(){return null!==h0.skipHydrationRootTNode}function Q1(){return h0.lFrame.lView}function B0(){return h0.lFrame.tView}function oe(s){return h0.lFrame.contextLView=s,s[W0]}function lf(s){return h0.lFrame.contextLView=null,s}function R4(){let s=sf();for(;null!==s&&64===s.type;)s=s.parent;return s}function sf(){return h0.lFrame.currentTNode}function Ee(s,o){const i=h0.lFrame;i.currentTNode=s,i.isParent=o}function $7(){return h0.lFrame.isParent}function ys(){h0.lFrame.isParent=!1}function T6(){const s=h0.lFrame;let o=s.bindingRootIndex;return-1===o&&(o=s.bindingRootIndex=s.tView.bindingStartIndex),o}function De(){return h0.lFrame.bindingIndex}function B8(){return h0.lFrame.bindingIndex++}function qe(s){const o=h0.lFrame,i=o.bindingIndex;return o.bindingIndex=o.bindingIndex+s,i}function uf(s,o){const i=h0.lFrame;i.bindingIndex=i.bindingRootIndex=s,I9(o)}function I9(s){h0.lFrame.currentDirectiveIndex=s}function Fs(){return h0.lFrame.currentQueryIndex}function P9(s){h0.lFrame.currentQueryIndex=s}function pf(s){const o=s[z1];return 2===o.type?o.declTNode:1===o.type?s[A2]:null}function hf(s,o,i){if(i&u0.SkipSelf){let f=o,h=s;for(;!(f=f.parent,null!==f||i&u0.Host||(f=pf(h),null===f||(h=h[K0],10&f.type))););if(null===f)return!1;o=f,s=h}const d=h0.lFrame=gf();return d.currentTNode=o,d.lView=s,!0}function $9(s){const o=gf(),i=s[z1];h0.lFrame=o,o.currentTNode=i.firstChild,o.lView=s,o.tView=i,o.contextLView=s,o.bindingIndex=i.bindingStartIndex,o.inI18n=!1}function gf(){const s=h0.lFrame,o=null===s?null:s.child;return null===o?_f(s):o}function _f(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 Lf(){const s=h0.lFrame;return h0.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const Cf=Lf;function j9(){const s=Lf();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 h0.lFrame.selectedIndex}function s5(s){h0.lFrame.selectedIndex=s}function J4(){const s=h0.lFrame;return R5(s.tView,s.selectedIndex)}function vs(){h0.lFrame.currentNamespace=mc}function ks(){!function XL(){h0.lFrame.currentNamespace=null}()}let xf=!0;function _c(){return xf}function ie(s){xf=s}function O9(s,o){for(let i=o.directiveStart,d=o.directiveEnd;i=d)break}else o[k]<0&&(s[C6]+=65536),(M>14>16&&(3&s[U1])===o&&(s[U1]+=16384,bf(M,h)):bf(M,h)}const Lc=-1;class I5{constructor(o,i,d){this.factory=o,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=d}}function V9(s){return s!==Lc}function U7(s){return 32767&s}function H7(s,o){let i=function ZL(s){return s>>16}(s),d=o;for(;i>0;)d=d[K0],i--;return d}let U9=!0;function G7(s){const o=U9;return U9=s,o}const Es=255,H9=5;let eC=0;const re={};function Y7(s,o){const i=Ds(s,o);if(-1!==i)return i;const d=o[z1];d.firstCreatePass&&(s.injectorIndex=o.length,G9(d.data,s),G9(o,null),G9(d.blueprint,null));const f=Y9(s,o),h=s.injectorIndex;if(V9(f)){const C=U7(f),M=H7(f,o),k=M[z1].data;for(let $=0;$<8;$++)o[h+$]=M[C+$]|k[C+$]}return o[h+8]=f,h}function G9(s,o){s.push(0,0,0,0,0,0,0,0,o)}function Ds(s,o){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===o[s.injectorIndex+8]?-1:s.injectorIndex}function Y9(s,o){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let i=0,d=null,f=o;for(;null!==f;){if(d=As(f),null===d)return Lc;if(i++,f=f[K0],-1!==d.injectorIndex)return d.injectorIndex|i<<16}return Lc}function q7(s,o,i){!function cC(s,o,i){let d;"string"==typeof i?d=i.charCodeAt(0)||0:i.hasOwnProperty(S4)&&(d=i[S4]),null==d&&(d=i[S4]=eC++);const f=d&Es;o.data[s+(f>>H9)]|=1<=0?o&Es:Rf:o}(i);if("function"==typeof h){if(!hf(o,s,d))return d&u0.Host?Sf(f,0,d):q9(o,i,d,f);try{let C;if(C=h(d),null!=C||d&u0.Optional)return C;y6()}finally{Cf()}}else if("number"==typeof h){let C=null,M=Ds(s,o),k=Lc,$=d&u0.Host?o[F2][A2]:null;for((-1===M||d&u0.SkipSelf)&&(k=-1===M?Y9(s,o):o[M+8],k!==Lc&&X9(d,!1)?(C=o[z1],M=U7(k),o=H7(k,o)):M=-1);-1!==M;){const Y=o[z1];if(Tf(h,M,Y.data)){const o1=Ef(M,o,i,C,d,$);if(o1!==re)return o1}k=o[M+8],k!==Lc&&X9(d,o[z1].data[M+8]===$)&&Tf(h,M,o)?(C=Y,M=U7(k),o=H7(k,o)):M=-1}}return f}function Ef(s,o,i,d,f,h){const C=o[z1],M=C.data[s+8],Y=X7(M,C,i,null==d?A8(M)&&U9:d!=C&&!!(3&M.type),f&u0.Host&&h===M);return null!==Y?a5(o,C,Y,M):re}function X7(s,o,i,d,f){const h=s.providerIndexes,C=o.data,M=1048575&h,k=s.directiveStart,Y=h>>20,S1=f?M+Y:s.directiveEnd;for(let I1=d?M:M+Y;I1=k&&B1.type===i)return I1}if(f){const I1=C[k];if(I1&&U2(I1)&&I1.type===i)return k}return null}function a5(s,o,i,d){let f=s[i];const h=o.data;if(function yf(s){return s instanceof I5}(f)){const C=f;C.resolving&&function q3(s,o){throw o&&o.join(" > "),new m2(-200,s)}(function P0(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():y2(s)}(h[i]));const M=G7(C.canSeeViewProviders);C.resolving=!0;const $=C.injectImpl?a4(C.injectImpl):null;hf(s,d,u0.Default);try{f=s[i]=C.factory(void 0,h,s,d),o.firstCreatePass&&i>=d.directiveStart&&function WL(s,o,i){const{ngOnChanges:d,ngOnInit:f,ngDoCheck:h}=o.type.prototype;if(d){const C=Se(o);(i.preOrderHooks??=[]).push(s,C),(i.preOrderCheckHooks??=[]).push(s,C)}f&&(i.preOrderHooks??=[]).push(0-s,f),h&&((i.preOrderHooks??=[]).push(s,h),(i.preOrderCheckHooks??=[]).push(s,h))}(i,h[i],o)}finally{null!==$&&a4($),G7(M),C.resolving=!1,Cf()}}return f}function Tf(s,o,i){return!!(i[o+(s>>H9)]&1<{const o=s.prototype.constructor,i=o[G4]||W7(o),d=Object.prototype;let f=Object.getPrototypeOf(s.prototype).constructor;for(;f&&f!==d;){const h=f[G4]||W7(f);if(h&&h!==i)return h;f=Object.getPrototypeOf(f)}return h=>new h})}function W7(s){return M1(s)?()=>{const o=W7(s1(s));return o&&o()}:$3(s)}function As(s){const o=s[z1],i=o.type;return 2===i?o.declTNode:1===i?s[A2]:null}function W9(s){return function wf(s,o){if("class"===o)return s.classes;if("style"===o)return s.styles;const i=s.attrs;if(i){const d=i.length;let f=0;for(;f{class s{static{this.THROW_IF_NOT_FOUND=t3}static{this.NULL=new j3}static create(i,d){if(Array.isArray(i))return $s({name:""},d,i,"");{const f=i.name??"";return $s({name:f},i.parent,i.providers,f)}}static{this.\u0275prov=b0({token:s,providedIn:"any",factory:()=>k4(e8)})}static{this.__NG_ELEMENT_ID__=-1}}return s})();function Os(s){return s.ngOriginalError}class V8{constructor(){this._console=console}handleError(o){const i=this._findOriginalError(o);this._console.error("ERROR",o),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(o){let i=o&&Os(o);for(;i&&Os(i);)i=Os(i);return i||null}}const Of=new Y1("",{providedIn:"root",factory:()=>d0(V8).handleError.bind(void 0)});let P5=(()=>{class s{static{this.__NG_ELEMENT_ID__=Bf}static{this.__NG_ENV_ID__=i=>i}}return s})();class oC extends P5{constructor(o){super(),this._lView=o}onDestroy(o){return gc(this._lView,o),()=>function I7(s,o){if(null===s[m0])return;const i=s[m0].indexOf(o);-1!==i&&s[m0].splice(i,1)}(this._lView,o)}}function Bf(){return new oC(Q1())}function Uf(s,o){return H4(s,o)}const Hf=(Uf.required=function Vs(s){return H4(L4,s)},Uf);function rC(){return o5(R4(),Q1())}function o5(s,o){return new Q7(M6(s,o))}let Q7=(()=>{class s{constructor(i){this.nativeElement=i}static{this.__NG_ELEMENT_ID__=rC}}return s})();function Gf(s){return s instanceof Q7?s.nativeElement:s}function Hs(s){return o=>{setTimeout(s,void 0,o)}}const Te=class Us extends V2.B{constructor(o=!1){super(),this.destroyRef=void 0,this.__isAsync=o,l8()&&(this.destroyRef=d0(P5,{optional:!0})??void 0)}emit(o){const i=A(null);try{super.next(o)}finally{A(i)}}subscribe(o,i,d){let f=o,h=i||(()=>null),C=d;if(o&&"object"==typeof o){const k=o;f=k.next?.bind(k),h=k.error?.bind(k),C=k.complete?.bind(k)}this.__isAsync&&(h=Hs(h),f&&(f=Hs(f)),C&&(C=Hs(C)));const M=super.subscribe({next:f,error:h,complete:C});return o instanceof v0.yU&&o.add(M),M}};function Yf(){return this._results[Symbol.iterator]()}class Gs{get changes(){return this._changes??=new Te}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 i=Gs.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Yf)}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,i){return this._results.reduce(o,i)}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,i){this.dirty=!1;const d=function Q4(s){return s.flat(Number.POSITIVE_INFINITY)}(o);(this._changesDetected=!function d3(s,o,i){if(s.length!==o.length)return!1;for(let d=0;dxC}),xC="ng",ru=new Y1(""),ln=new Y1("",{providedIn:"platform",factory:()=>"unknown"}),yC=new Y1("",{providedIn:"root",factory:()=>de().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let ra=()=>null;function rn(s,o,i=!1){return ra(s,o,i)}const Lu=new Y1("",{providedIn:"root",factory:()=>!1});let ot,fn;function wc(s){return function dn(){if(void 0===ot&&(ot=null,n0.trustedTypes))try{ot=n0.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return ot}()?.createHTML(s)||s}function _a(){if(void 0===fn&&(fn=null,n0.trustedTypes))try{fn=n0.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return fn}function La(s){return _a()?.createHTML(s)||s}function za(s){return _a()?.createScriptURL(s)||s}class i5{constructor(o){this.changingThisBreaksApplicationSecurity=o}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${_4})`}}class Mu extends i5{getTypeName(){return"HTML"}}class xu extends i5{getTypeName(){return"Style"}}class TC extends i5{getTypeName(){return"Script"}}class Ma extends i5{getTypeName(){return"URL"}}class RC extends i5{getTypeName(){return"ResourceURL"}}function Re(s){return s instanceof i5?s.changingThisBreaksApplicationSecurity:s}function Sc(s,o){const i=function AC(s){return s instanceof i5&&s.getTypeName()||null}(s);if(null!=i&&i!==o){if("ResourceURL"===i&&"URL"===o)return!0;throw new Error(`Required a safe ${o}, got a ${i} (see ${_4})`)}return i===o}function bu(s){return new Mu(s)}function IC(s){return new xu(s)}function PC(s){return new TC(s)}function $C(s){return new Ma(s)}function yu(s){return new RC(s)}class jC{constructor(o){this.inertDocumentHelper=o}getInertBodyElement(o){o=""+o;try{const i=(new window.DOMParser).parseFromString(wc(o),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(o):(i.removeChild(i.firstChild),i)}catch{return null}}}class OC{constructor(o){this.defaultDoc=o,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(o){const i=this.inertDocument.createElement("template");return i.innerHTML=wc(o),i}}const VC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function un(s){return(s=String(s)).match(VC)?s:"unsafe:"+s}function b8(s){const o={};for(const i of s.split(","))o[i]=!0;return o}function rt(...s){const o={};for(const i of s)for(const d in i)i.hasOwnProperty(d)&&(o[d]=!0);return o}const Fu=b8("area,br,col,hr,img,wbr"),mn=b8("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vu=b8("rp,rt"),pn=rt(Fu,rt(mn,b8("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")),rt(vu,b8("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")),rt(vu,mn)),dt=b8("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ku=rt(dt,b8("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"),b8("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")),wu=b8("script,style,template");class GC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(o){let i=o.firstChild,d=!0,f=[];for(;i;)if(i.nodeType===Node.ELEMENT_NODE?d=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,d&&i.firstChild)f.push(i),i=qC(i);else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let h=xa(i);if(h){i=h;break}i=f.pop()}return this.buf.join("")}startElement(o){const i=Su(o).toLowerCase();if(!pn.hasOwnProperty(i))return this.sanitizedSomething=!0,!wu.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const d=o.attributes;for(let f=0;f"),!0}endElement(o){const i=Su(o).toLowerCase();pn.hasOwnProperty(i)&&!Fu.hasOwnProperty(i)&&(this.buf.push(""))}chars(o){this.buf.push(ba(o))}}function xa(s){const o=s.nextSibling;if(o&&s!==o.previousSibling)throw ft(o);return o}function qC(s){const o=s.firstChild;if(o&&function YC(s,o){return(s.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(s,o))throw ft(o);return o}function Su(s){const o=s.nodeName;return"string"==typeof o?o:"FORM"}function ft(s){return new Error(`Failed to sanitize html because the element is clobbered: ${s.outerHTML}`)}const Nu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eu=/([^\#-~ |!])/g;function ba(s){return s.replace(/&/g,"&").replace(Nu,function(o){return"&#"+(1024*(o.charCodeAt(0)-55296)+(o.charCodeAt(1)-56320)+65536)+";"}).replace(Eu,function(o){return"&#"+o.charCodeAt(0)+";"}).replace(//g,">")}let gn;function Du(s,o){let i=null;try{gn=gn||function it(s){const o=new OC(s);return function BC(){try{return!!(new window.DOMParser).parseFromString(wc(""),"text/html")}catch{return!1}}()?new jC(o):o}(s);let d=o?String(o):"";i=gn.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=i.innerHTML,i=gn.getInertBodyElement(d)}while(d!==h);return wc((new GC).sanitizeChildren(ya(i)||i))}finally{if(i){const d=ya(i)||i;for(;d.firstChild;)d.removeChild(d.firstChild)}}}function ya(s){return"content"in s&&function XC(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var r5=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}(r5||{});function Tu(s){const o=ut();return o?La(o.sanitize(r5.HTML,s)||""):Sc(s,"HTML")?La(Re(s)):Du(de(),y2(s))}function Fa(s){const o=ut();return o?o.sanitize(r5.URL,s)||"":Sc(s,"URL")?Re(s):un(y2(s))}function _n(s){const o=ut();if(o)return za(o.sanitize(r5.RESOURCE_URL,s)||"");if(Sc(s,"ResourceURL"))return za(Re(s));throw new m2(904,!1)}function Iu(s,o,i){return function JC(s,o){return"src"===o&&("embed"===s||"frame"===s||"iframe"===s||"media"===s||"script"===s)||"href"===o&&("base"===s||"link"===s)?_n:Fa}(o,i)(s)}function ut(){const s=Q1();return s&&s[p3].sanitizer}const Pu=/^>|^->||--!>|)/g,$u="\u200b$1\u200b";function pt(s){return s.ownerDocument.defaultView}function Yu(s){return s.ownerDocument}function y8(s){return s instanceof Function?s():s}var yn=function(s){return s[s.Important=1]="Important",s[s.DashCase=2]="DashCase",s}(yn||{});let ht;function Ta(s,o){return ht(s,o)}function Ec(s,o,i,d,f){if(null!=d){let h,C=!1;s3(d)?h=d:B3(d)&&(C=!0,d=d[T1]);const M=w4(d);0===s&&null!==i?null==f?Zu(o,i,M):Xe(o,i,M,f||null,!0):1===s&&null!==i?Xe(o,i,M,f||null,!0):2===s?function O5(s,o,i){const d=wn(s,o);d&&function Ba(s,o,i,d){s.removeChild(o,i,d)}(s,d,o,i)}(o,M,C):3===s&&o.destroyNode(M),null!=h&&function sm(s,o,i,d,f){const h=i[s8];h!==w4(i)&&Ec(o,s,d,h,f);for(let M=l3;Mo.replace(ka,$u))}(o))}function Fn(s,o,i){return s.createElement(o,i)}function Ju(s,o){o[p3].changeDetectionScheduler?.notify(1),En(s,o,o[X2],2,null,null)}function Qu(s,o){const i=s[x8],d=i.indexOf(o);i.splice(d,1)}function Dc(s,o){if(s.length<=l3)return;const i=l3+o,d=s[i];if(d){const f=d[O3];null!==f&&f!==s&&Qu(f,d),o>0&&(s[i-1][T2]=d[T2]);const h=L6(s,l3+o);!function nz(s,o){Ju(s,o),o[T1]=null,o[A2]=null}(d[z1],d);const C=h[z6];null!==C&&C.detachView(h[z1]),d[x2]=null,d[T2]=null,d[U1]&=-129}return d}function vn(s,o){if(!(256&o[U1])){const i=o[X2];i.destroyNode&&En(s,o,i,3,null,null),function lz(s){let o=s[L2];if(!o)return $a(s[z1],s);for(;o;){let i=null;if(B3(o))i=o[L2];else{const d=o[l3];d&&(i=d)}if(!i){for(;o&&!o[T2]&&o!==s;)B3(o)&&$a(o[z1],o),o=o[x2];null===o&&(o=s),B3(o)&&$a(o[z1],o),i=o&&o[T2]}o=i}}(o)}}function $a(s,o){if(256&o[U1])return;const i=A(null);try{o[U1]&=-129,o[U1]|=256,o[te]&&function s2(s){if(o2(s),B2(s))for(let o=0;o=0?d[C]():d[-C].unsubscribe(),h+=2}else i[h].call(d[i[h+1]]);null!==d&&(o[j0]=null);const f=o[m0];if(null!==f){o[m0]=null;for(let h=0;h-1){const{encapsulation:h}=s.data[d.directiveStart+f];if(h===S3.None||h===S3.Emulated)return null}return M6(d,i)}}(s,o.parent,i)}function Xe(s,o,i,d,f){s.insertBefore(o,i,d,f)}function Zu(s,o,i){s.appendChild(o,i)}function Ku(s,o,i,d,f){null!==d?Xe(s,o,i,d,f):Zu(s,o,i)}function wn(s,o){return s.parentNode(o)}function em(s,o,i){return tm(s,o,i)}let d5,tm=function cm(s,o,i){return 40&s.type?M6(s,i):null};function Tc(s,o,i,d){const f=kn(s,d,o),h=o[X2],M=em(d.parent||o[A2],d,o);if(null!=f)if(Array.isArray(i))for(let k=0;kw0&&Ya(s,o,w0,!1),H6(C?2:0,f),i(d,f)}finally{s5(h),H6(C?3:1,f)}}function _t(s,o,i){if(D2(o)){const d=A(null);try{const h=o.directiveEnd;for(let C=o.directiveStart;Cnull;function Lt(s,o,i,d,f){for(let h in o){if(!o.hasOwnProperty(h))continue;const C=o[h];if(void 0===C)continue;d??={};let M,k=u3.None;Array.isArray(C)?(M=C[0],k=C[1]):M=C;let $=h;if(null!==f){if(!f.hasOwnProperty(h))continue;$=f[h]}0===s?Za(d,i,$,M,k):Za(d,i,$,M)}return d}function Za(s,o,i,d,f){let h;s.hasOwnProperty(i)?(h=s[i]).push(o,d):h=s[i]=[o,d],void 0!==f&&h.push(f)}function i8(s,o,i,d,f,h,C,M){const k=M6(o,i);let Y,$=o.inputs;!M&&null!=$&&(Y=$[d])?(fo(s,i,Y,d,f),A8(o)&&function hm(s,o){const i=D6(o,s);16&i[U1]||(i[U1]|=64)}(i,o.index)):3&o.type&&(d=function Ka(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(d),f=null!=C?C(f,o.value||"",d):f,h.setProperty(k,d,f))}function eo(s,o,i,d){if(O()){const f=null===d?null:{"":-1},h=function zz(s,o){const i=s.directiveRegistry;let d=null,f=null;if(i)for(let h=0;h0;){const i=s[--o];if("number"==typeof i&&i<0)return i}return 0})(C)!=M&&C.push(M),C.push(i,d,h)}}(s,o,d,B5(s,i,f.hostVars,Q0),f)}function Ae(s,o,i,d,f,h){const C=M6(s,o);!function An(s,o,i,d,f,h,C){if(null==h)s.removeAttribute(o,f,i);else{const M=null==C?y2(h):C(h,d||"",f);s.setAttribute(o,f,M,i)}}(o[X2],C,h,s.value,i,d,f)}function ao(s,o,i,d,f,h){const C=h[o];if(null!==C)for(let M=0;M0&&(i[f-1][T2]=o),d{A5(s.lView)},consumerOnSignalRead(){this.lView[te]=this}},Fm=100;function Mt(s,o=!0,i=0){const d=s[p3],f=d.rendererFactory;f.begin?.();try{!function go(s,o){_o(s,o);let i=0;for(;A7(s);){if(i===Fm)throw new m2(103,!1);i++,_o(s,1)}}(s,i)}catch(C){throw o&&$n(s,C),C}finally{f.end?.(),d.inlineEffectRunner?.flush()}}function vm(s,o,i,d){const f=o[U1];if(!(256&~f))return;o[p3].inlineEffectRunner?.flush(),$9(o);let C=null,M=null;(function kz(s){return 2!==s.type})(s)&&(M=function Mm(s){return s[te]??function xm(s){const o=ho.pop()??Object.create(ym);return o.lView=s,o}(s)}(o),C=function H1(s){return s&&(s.nextProducerIndex=0),A(s)}(M));try{R9(o),function df(s){return h0.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==i&&dm(s,o,i,2,d);const k=!(3&~f);if(k){const o1=s.preOrderCheckHooks;null!==o1&&B7(o,o1,null)}else{const o1=s.preOrderHooks;null!==o1&&V7(o,o1,0,null),ws(o,0)}if(function km(s){for(let o=Qs(s);null!==o;o=nu(o)){if(!(o[U1]&t5.HasTransplantedViews))continue;const i=o[x8];for(let d=0;ds.nextProducerIndex;)s.producerNode.pop(),s.producerLastReadVersion.pop(),s.producerIndexOfThis.pop()}}(M,C),function bm(s){s.lView[te]!==s&&(s.lView=null,ho.push(s))}(M)),j9()}}function Pc(s,o){for(let i=Qs(s);null!==i;i=nu(i))for(let d=l3;d-1&&(Dc(o,d),L6(i,d))}this._attachedToViewContainer=!1}vn(this._lView[z1],this._lView)}onDestroy(o){gc(this._lView,o)}markForCheck(){xt(this._cdRefInjectingView||this._lView)}detach(){this._lView[U1]&=-129}reattach(){hc(this._lView),this._lView[U1]|=128}detectChanges(){this._lView[U1]|=1024,Mt(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m2(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Ju(this._lView[z1],this._lView)}attachToAppRef(o){if(this._attachedToViewContainer)throw new m2(902,!1);this._appRef=o,hc(this._lView)}}let yt=(()=>{class s{static{this.__NG_ELEMENT_ID__=Nz}}return s})();const Sm=yt,Sz=class extends Sm{constructor(o,i,d){super(),this._declarationLView=o,this._declarationTContainer=i,this.elementRef=d}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(o,i){return this.createEmbeddedViewImpl(o,i)}createEmbeddedViewImpl(o,i,d){const f=Ct(this._declarationLView,this._declarationTContainer,o,{embeddedViewInjector:i,dehydratedView:d});return new bt(f)}};function Nz(){return Ft(R4(),Q1())}function Ft(s,o){return 4&s.type?new Sz(o,s,o5(s,o)):null}let yo=()=>null;function jc(s,o){return yo(s,o)}class Fo{}class Gz{}class vo{}class qn{resolveComponentFactory(o){throw function Bm(s){const o=Error(`No component factory found for ${T0(s)}.`);return o.ngComponent=s,o}(o)}}let Oc=(()=>{class s{static{this.NULL=new qn}}return s})();class Vm{}let qz=(()=>{class s{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Um(){const s=Q1(),i=D6(R4().index,s);return(B3(i)?i:s)[X2]}()}}return s})(),Xz=(()=>{class s{static{this.\u0275prov=b0({token:s,providedIn:"root",factory:()=>null})}}return s})();const ko={},wo=new Set;function U8(s){wo.has(s)||(wo.add(s),performance?.mark?.("mark_feature_usage",{detail:{feature:s}}))}function Hm(...s){}class U3{constructor({enableLongStackTrace:o=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:d=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Te(!1),this.onMicrotaskEmpty=new Te(!1),this.onStable=new Te(!1),this.onError=new Te(!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&&i,f.shouldCoalesceRunChangeDetection=d,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function Jz(){const s="function"==typeof n0.requestAnimationFrame;let o=n0[s?"requestAnimationFrame":"setTimeout"],i=n0[s?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&o&&i){const d=o[Zone.__symbol__("OriginalDelegate")];d&&(o=d);const f=i[Zone.__symbol__("OriginalDelegate")];f&&(i=f)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function Eo(s){const o=()=>{!function Qz(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(n0,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Xn(s),s.isCheckStableRunning=!0,No(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Xn(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,d,f,h,C,M)=>{if(function Zz(s){return!(!Array.isArray(s)||1!==s.length)&&!0===s[0].data?.__ignore_ng_zone__}(M))return i.invokeTask(f,h,C,M);try{return Gm(s),i.invokeTask(f,h,C,M)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===h.type||s.shouldCoalesceRunChangeDetection)&&o(),Do(s)}},onInvoke:(i,d,f,h,C,M,k)=>{try{return Gm(s),i.invoke(f,h,C,M,k)}finally{s.shouldCoalesceRunChangeDetection&&o(),Do(s)}},onHasTask:(i,d,f,h)=>{i.hasTask(f,h),d===f&&("microTask"==h.change?(s._hasPendingMicrotasks=h.microTask,Xn(s),No(s)):"macroTask"==h.change&&(s.hasPendingMacrotasks=h.macroTask))},onHandleError:(i,d,f,h)=>(i.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(!U3.isInAngularZone())throw new m2(909,!1)}static assertNotInAngularZone(){if(U3.isInAngularZone())throw new m2(909,!1)}run(o,i,d){return this._inner.run(o,i,d)}runTask(o,i,d,f){const h=this._inner,C=h.scheduleEventTask("NgZoneEvent: "+f,o,So,Hm,Hm);try{return h.runTask(C,i,d)}finally{h.cancelTask(C)}}runGuarded(o,i,d){return this._inner.runGuarded(o,i,d)}runOutsideAngular(o){return this._outer.run(o)}}const So={};function No(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 Xn(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Gm(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Do(s){s._nesting--,No(s)}class Wn{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Te,this.onMicrotaskEmpty=new Te,this.onStable=new Te,this.onError=new Te}run(o,i,d){return o.apply(i,d)}runGuarded(o,i,d){return o.apply(i,d)}runOutsideAngular(o){return o()}runTask(o,i,d,f){return o.apply(i,d)}}var We=function(s){return s[s.EarlyRead=0]="EarlyRead",s[s.Write=1]="Write",s[s.MixedReadWrite=2]="MixedReadWrite",s[s.Read=3]="Read",s}(We||{});const To={destroy(){}};function qm(s,o){!o&&function E6(s){if(!l8())throw new m2(-203,!1)}();const i=o?.injector??d0(o8);if(!function F8(s){return"browser"===(s??d0(o8)).get(ln)}(i))return To;U8("NgAfterNextRender");const d=i.get(Bc),f=d.handler??=new Xm,h=o?.phase??We.MixedReadWrite,C=()=>{f.unregister(k),M()},M=i.get(P5).onDestroy(C),k=u6(i,()=>new Jn(h,()=>{C(),s()}));return f.register(k),{destroy:C}}class Jn{constructor(o,i){this.phase=o,this.callbackFn=i,this.zone=d0(U3),this.errorHandler=d0(V8,{optional:!0}),d0(Fo,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(o){this.errorHandler?.handleError(o)}}}class Xm{constructor(){this.executingCallbacks=!1,this.buckets={[We.EarlyRead]:new Set,[We.Write]:new Set,[We.MixedReadWrite]:new Set,[We.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 i of o)i.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 Bc=(()=>{class s{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const d of i)d()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=b0({token:s,providedIn:"root",factory:()=>new s})}}return s})();function m5(s){return!!n3(s)}function Et(s,o,i){let d=i?s.styles:null,f=i?s.classes:null,h=0;if(null!==o)for(let C=0;C0&&om(s,i,h.join(" "))}}(I1,l6,n2,d),void 0!==i&&function nM(s,o,i){const d=s.projection=[];for(let f=0;f{class s{static{this.__NG_ELEMENT_ID__=sM}}return s})();function sM(){return Hc(R4(),Q1())}const aM=el,np=class extends aM{constructor(o,i,d){super(),this._lContainer=o,this._hostTNode=i,this._hostLView=d}get element(){return o5(this._hostTNode,this._hostLView)}get injector(){return new V3(this._hostTNode,this._hostLView)}get parentInjector(){const o=Y9(this._hostTNode,this._hostLView);if(V9(o)){const i=H7(o,this._hostLView),d=U7(o);return new V3(i[z1].data[d+8],i)}return new V3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(o){const i=Po(this._lContainer);return null!==i&&i[o]||null}get length(){return this._lContainer.length-l3}createEmbeddedView(o,i,d){let f,h;"number"==typeof d?f=d:null!=d&&(f=d.index,h=d.injector);const C=jc(this._lContainer,o.ssrId),M=o.createEmbeddedViewImpl(i||{},h,C);return this.insertImpl(M,f,u5(this._hostTNode,C)),M}createComponent(o,i,d,f,h){const C=o&&!function l2(s){return"function"==typeof s}(o);let M;if(C)M=i;else{const B1=i||{};M=B1.index,d=B1.injector,f=B1.projectableNodes,h=B1.environmentInjector||B1.ngModuleRef}const k=C?o:new G5($0(o)),$=d||this.parentInjector;if(!h&&null==k.ngModule){const n2=(C?$:this.parentInjector).get(N3,null);n2&&(h=n2)}const Y=$0(k.componentType??{}),o1=jc(this._lContainer,Y?.id??null),I1=k.create($,f,o1?.firstChild??null,h);return this.insertImpl(I1.hostView,M,u5(this._hostTNode,o1)),I1}insert(o,i){return this.insertImpl(o,i,!0)}insertImpl(o,i,d){const f=o._lView;if(function bs(s){return s3(s[x2])}(f)){const M=this.indexOf(o);if(-1!==M)this.detach(M);else{const k=f[x2],$=new np(k,k[A2],k[x2]);$.detach($.indexOf(o))}}const h=this._adjustIndex(i),C=this._lContainer;return V5(C,f,h,d),o.attachToViewContainerRef(),Q3($o(C),h,o),o}move(o,i){return this.insert(o,i)}indexOf(o){const i=Po(this._lContainer);return null!==i?i.indexOf(o):-1}remove(o){const i=this._adjustIndex(o,-1),d=Dc(this._lContainer,i);d&&(L6($o(this._lContainer),i),vn(d[z1],d))}detach(o){const i=this._adjustIndex(o,-1),d=Dc(this._lContainer,i);return d&&null!=L6($o(this._lContainer),i)?new bt(d):null}_adjustIndex(o,i=0){return o??this.length+i}};function Po(s){return s[8]}function $o(s){return s[8]||(s[8]=[])}function Hc(s,o){let i;const d=o[s.index];return s3(d)?i=d:(i=Lm(d,o,null,s),o[s.index]=i,In(o,i)),cl(i,o,s,d),new np(i,s,o)}let cl=function sp(s,o,i,d){if(s[s8])return;let f;f=8&i.type?w4(d):function oM(s,o){const i=s[X2],d=i.createComment(""),f=M6(o,s);return Xe(i,wn(i,f),d,function Va(s,o){return s.nextSibling(o)}(i,f),!1),d}(o,i),s[s8]=f},Gc=()=>!1;class jo{constructor(o){this.queryList=o,this.matches=null}clone(){return new jo(this.queryList)}setDirty(){this.queryList.setDirty()}}class Oo{constructor(o=[]){this.queries=o}createEmbeddedView(o){const i=o.queries;if(null!==i){const d=null!==o.contentQueries?o.contentQueries[0]:i.length,f=[];for(let h=0;ho.trim())}(o):o}}class Dt{constructor(o=[]){this.queries=o}elementStart(o,i){for(let d=0;d0)d.push(C[M/2]);else{const $=h[M+1],Y=o[-k];for(let o1=l3;o1=0;d--){const f=s[d];f.hostVars=o+=f.hostVars,f.hostAttrs=D(f.hostAttrs,i=D(i,f.hostAttrs))}}(d)}function kp(s,o){for(const i in o.inputs){if(!o.inputs.hasOwnProperty(i)||s.inputs.hasOwnProperty(i))continue;const d=o.inputs[i];if(void 0!==d&&(s.inputs[i]=d,s.declaredInputs[i]=o.declaredInputs[i],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 al(s){return s===E4?{}:s===k0?[]:s}function Sp(s,o){const i=s.viewQuery;s.viewQuery=i?(d,f)=>{o(d,f),i(d,f)}:o}function yM(s,o){const i=s.contentQueries;s.contentQueries=i?(d,f,h)=>{o(d,f,h),i(d,f,h)}:o}function FM(s,o){const i=s.hostBindings;s.hostBindings=i?(d,f)=>{o(d,f),i(d,f)}:o}function Rp(s){const o=s.inputConfig,i={};for(const d in o)if(o.hasOwnProperty(d)){const f=o[d];Array.isArray(f)&&f[3]&&(i[d]=f[3])}s.inputTransforms=i}class Je{}class ti{}function SM(s,o){return new ol(s,o??null,[])}class ol extends Je{constructor(o,i,d){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zn(this);const f=n3(o);this._bootstrapComponents=y8(f.bootstrap),this._r3Injector=jf(o,i,[{provide:Je,useValue:this},{provide:Oc,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(i=>i()),this.destroyCbs=null}onDestroy(o){this.destroyCbs.push(o)}}class ni extends ti{constructor(o){super(),this.moduleType=o}create(o){return new ol(this.moduleType,o,[])}}class Xc extends Je{constructor(o){super(),this.componentFactoryResolver=new Zn(this),this.instance=null;const i=new T8([...o.providers,{provide:Je,useValue:this},{provide:Oc,useValue:this.componentFactoryResolver}],o.parent||n8(),o.debugName,new Set(["environment"]));this.injector=i,o.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(o){this.injector.onDestroy(o)}}function li(s,o,i=null){return new Xc({providers:s,parent:o,debugName:i,runEnvironmentInitializers:!0}).injector}let h5=(()=>{class s{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new p0.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),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=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function rl(s){return!!dl(s)&&(Array.isArray(s)||!(s instanceof Map)&&Symbol.iterator in s)}function dl(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function Pe(s,o,i){return s[o]=i}function T3(s,o,i){return!Object.is(s[o],i)&&(s[o]=i,!0)}function Y5(s,o,i,d){const f=T3(s,o,i);return T3(s,o+1,d)||f}function Jc(s,o,i,d,f){const h=Y5(s,o,i,d);return T3(s,o+2,f)||h}function H8(s,o,i,d,f,h){const C=Y5(s,o,i,d);return Y5(s,o+2,f,h)||C}function Qc(s,o,i,d,f,h,C,M){const k=Q1(),$=B0(),Y=s+w0,o1=$.firstCreatePass?function fl(s,o,i,d,f,h,C,M,k){const $=o.consts,Y=f5(o,s,4,C||null,a8($,M));eo(o,i,Y,a8($,k)),O9(o,Y);const o1=Y.tView=Ja(2,Y,d,f,h,o.directiveRegistry,o.pipeRegistry,null,o.schemas,$,null);return null!==o.queries&&(o.queries.template(o,Y),o1.queries=o.queries.embeddedTView(Y)),Y}(Y,$,k,o,i,d,f,h,C):$.data[Y];Ee(o1,!1);const S1=$p($,k,o1,s);_c()&&Tc($,k,S1,o1),R6(S1,k);const I1=Lm(S1,k,S1,o1);return k[Y]=I1,In(k,I1),function lp(s,o,i){return Gc(s,o,i)}(I1,o1,k),Y2(o1)&&Xa($,k,o1),null!=C&&Wa(k,o1,M),Qc}let $p=function ul(s,o,i,d){return ie(!0),o[X2].createComment("")};function jt(s,o,i,d){const f=Q1();return T3(f,B8(),o)&&(B0(),Ae(J4(),f,s,o,i,d)),jt}function g5(s,o,i,d){return T3(s,B8(),i)?o+y2(i)+d:Q0}function yl(s,o){return s<<17|o<<2}function $e(s){return s>>17&32767}function Di(s){return 2|s}function _5(s){return(131068&s)>>2}function Ti(s,o){return-131069&s|o<<2}function Fl(s){return 1|s}function rh(s,o,i,d){const f=s[i+1],h=null===o;let C=d?$e(f):_5(f),M=!1;for(;0!==C&&(!1===M||h);){const $=s[C+1];KM(s[C],o)&&(M=!0,s[C+1]=d?Fl($):Di($)),C=d?$e($):_5($)}M&&(s[i+1]=d?Di(f):Fl(f))}function KM(s,o){return null===s||null==o||(Array.isArray(s)?s[1]:s)===o||!(!Array.isArray(s)||"string"!=typeof o)&&V4(s,o)>=0}const t6={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dh(s){return s.substring(t6.key,t6.keyEnd)}function Bt(s){return s.substring(t6.value,t6.valueEnd)}function Ri(s,o){const i=t6.textEnd;return i===o?-1:(o=t6.keyEnd=function tx(s,o,i){for(;o32;)o++;return o}(s,t6.key=o,i),r7(s,o,i))}function Ai(s,o){const i=t6.textEnd;let d=t6.key=r7(s,o,i);return i===d?-1:(d=t6.keyEnd=function Ii(s,o,i){let d;for(;o=65&&(-33&d)<=90||d>=48&&d<=57);)o++;return o}(s,d,i),d=uh(s,d,i),d=t6.value=r7(s,d,i),d=t6.valueEnd=function mh(s,o,i){let d=-1,f=-1,h=-1,C=o,M=C;for(;C32&&(M=C),h=f,f=d,d=-33&k}return M}(s,d,i),uh(s,d,i))}function fh(s){t6.key=0,t6.keyEnd=0,t6.value=0,t6.valueEnd=0,t6.textEnd=s.length}function r7(s,o,i){for(;o=0;i=Ai(o,i))Ut(s,dh(o),Bt(o))}function Bi(s){G8(ax,ue,s,!0)}function ue(s,o){for(let i=function ex(s){return fh(s),Ri(s,r7(s,0,t6.textEnd))}(o);i>=0;i=Ri(o,i))Z4(s,dh(o),!0)}function Y6(s,o,i,d){const f=Q1(),h=B0(),C=qe(2);h.firstUpdatePass&&hh(h,s,C,d),o!==Q0&&T3(f,C,o)&&Ui(h,h.data[x6()],f,f[X2],s,f[C+1]=function zh(s,o){return null==s||""===s||("string"==typeof o?s+=o:"object"==typeof s&&(s=T0(Re(s)))),s}(o,i),d,C)}function G8(s,o,i,d){const f=B0(),h=qe(2);f.firstUpdatePass&&hh(f,null,h,d);const C=Q1();if(i!==Q0&&T3(C,h,i)){const M=f.data[x6()];if(Mh(M,d)&&!ph(f,h)){let k=d?M.classesWithoutHost:M.stylesWithoutHost;null!==k&&(i=v4(k,i||"")),Vt(f,M,C,i,d)}else!function ox(s,o,i,d,f,h,C,M){f===Q0&&(f=k0);let k=0,$=0,Y=0=s.expandoStartIndex}function hh(s,o,i,d){const f=s.data;if(null===f[i+1]){const h=f[x6()],C=ph(s,i);Mh(h,d)&&null===o&&!C&&(o=!1),o=function gh(s,o,i,d){const f=function j7(s){const o=h0.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)&&(i=L5(i=Vi(null,s,o,i,d),o.attrs,d),h=null);else{const C=o.directiveStylingLast;if(-1===C||s[C]!==f)if(i=Vi(f,s,o,i,d),null===h){let k=function lx(s,o,i){const d=i?o.classBindings:o.styleBindings;if(0!==_5(d))return s[$e(d)]}(s,o,d);void 0!==k&&Array.isArray(k)&&(k=Vi(null,s,o,k[1],d),k=L5(k,o.attrs,d),function _h(s,o,i,d){s[$e(i?o.classBindings:o.styleBindings)]=d}(s,o,d,k))}else h=function Lh(s,o,i){let d;const f=o.directiveEnd;for(let h=1+o.directiveStylingLast;h0)&&($=!0)):Y=i,f)if(0!==k){const S1=$e(s[M+1]);s[d+1]=yl(S1,M),0!==S1&&(s[S1+1]=Ti(s[S1+1],d)),s[M+1]=function JM(s,o){return 131071&s|o<<17}(s[M+1],d)}else s[d+1]=yl(M,0),0!==M&&(s[M+1]=Ti(s[M+1],d)),M=d;else s[d+1]=yl(k,0),0===M?M=d:s[k+1]=Ti(s[k+1],d),k=d;$&&(s[d+1]=Di(s[d+1])),rh(s,Y,d,!0),rh(s,Y,d,!1),function ZM(s,o,i,d,f){const h=f?s.residualClasses:s.residualStyles;null!=h&&"string"==typeof o&&V4(h,o)>=0&&(i[d+1]=Fl(i[d+1]))}(o,Y,s,d,h),C=yl(M,k),h?o.classBindings=C:o.styleBindings=C}(f,h,o,i,C,d)}}function Vi(s,o,i,d,f){let h=null;const C=i.directiveEnd;let M=i.directiveStylingLast;for(-1===M?M=i.directiveStart:M++;M0;){const k=s[f],$=Array.isArray(k),Y=$?k[1]:k,o1=null===Y;let S1=i[f+1];S1===Q0&&(S1=o1?k0:void 0);let I1=o1?j6(S1,d):Y===d?S1:void 0;if($&&!ec(I1)&&(I1=j6(k,d)),ec(I1)&&(M=I1,C))return M;const B1=s[f+1];f=C?$e(B1):_5(B1)}if(null!==o){let k=h?o.residualClasses:o.residualStyles;null!=k&&(M=j6(k,d))}return M}function ec(s){return void 0!==s}function Mh(s,o){return!!(s.flags&(o?8:16))}function Hi(s,o,i){G8(Z4,ue,g5(Q1(),s,o,i),!0)}class vl{destroy(o){}updateValue(o,i){}swap(o,i){const d=Math.min(o,i),f=Math.max(o,i),h=this.detach(f);if(f-d>1){const C=this.detach(d);this.attach(d,h),this.attach(f,C)}else this.attach(d,h)}move(o,i){this.attach(i,this.detach(o))}}function Yi(s,o,i,d,f){return s===i&&Object.is(o,d)?1:Object.is(f(s,o),f(i,d))?-1:0}function kl(s,o,i,d){return!(void 0===o||!o.has(d)||(s.attach(i,o.get(d)),o.delete(d),0))}function wh(s,o,i,d,f){if(kl(s,o,d,i(d,f)))s.updateValue(d,f);else{const h=s.create(d,f);s.attach(d,h)}}function Sh(s,o,i,d){const f=new Set;for(let h=o;h<=i;h++)f.add(d(h,s.at(h)));return f}class Nh{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 i=this.kvMap.get(o);return void 0!==this._vMap&&this._vMap.has(i)?(this.kvMap.set(o,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(o),!0}get(o){return this.kvMap.get(o)}set(o,i){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,i)}else this.kvMap.set(o,i)}forEach(o){for(let[i,d]of this.kvMap)if(o(d,i),void 0!==this._vMap){const f=this._vMap;for(;f.has(d);)d=f.get(d),o(d,i)}}}function qi(s,o,i){U8("NgControlFlow");const d=Q1(),f=B8(),h=d7(d,w0+s);if(T3(d,f,o)){const M=A(null);try{if(mo(h,0),-1!==o){const k=Ji(d[z1],w0+o),$=jc(h,k.tView.ssrId);V5(h,Ct(d,k,i,{dehydratedView:$}),0,u5(k,$))}}finally{A(M)}}else{const M=zm(h,0);void 0!==M&&(M[W0]=i)}}class fx{constructor(o,i,d){this.lContainer=o,this.$implicit=i,this.$index=d}get $count(){return this.lContainer.length-l3}}function Xi(s){return s}function Wi(s,o){return o}class ux{constructor(o,i,d){this.hasEmptyBlock=o,this.trackByFn=i,this.liveCollection=d}}function wl(s,o,i,d,f,h,C,M,k,$,Y,o1,S1){U8("NgControlFlow");const I1=void 0!==k,B1=Q1(),n2=M?C.bind(B1[F2][W0]):C,p2=new ux(I1,n2);B1[w0+s]=p2,Qc(s+1,o,i,d,f,h),I1&&Qc(s+2,k,$,Y,o1,S1)}class mx extends vl{constructor(o,i,d){super(),this.lContainer=o,this.hostLView=i,this.templateTNode=d,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-l3}at(o){return this.getLView(o)[W0].$implicit}attach(o,i){const d=i[z0];this.needsIndexUpdate||=o!==this.length,V5(this.lContainer,i,o,u5(this.templateTNode,d))}detach(o){return this.needsIndexUpdate||=o!==this.length-1,function px(s,o){return Dc(s,o)}(this.lContainer,o)}create(o,i){const d=jc(this.lContainer,this.templateTNode.tView.ssrId);return Ct(this.hostLView,this.templateTNode,new fx(this.lContainer,i,o),{dehydratedView:d})}destroy(o){vn(o[z1],o)}updateValue(o,i){this.getLView(o)[W0].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let o=0;o{s.destroy(M)})}(C,s,h.trackByFn),C.updateIndexes(),h.hasEmptyBlock){const M=B8(),k=0===C.length;if(T3(d,M,k)){const $=i+2,Y=d7(d,$);if(k){const o1=Ji(f,$),S1=jc(Y,o1.tView.ssrId);V5(Y,Ct(d,o1,void 0,{dehydratedView:S1}),0,u5(o1,S1))}else mo(Y,0)}}}finally{A(o)}}function d7(s,o){return s[o]}function Ji(s,o){return R5(s,o)}function Sl(s,o,i,d){const f=Q1(),h=B0(),C=w0+s,M=f[X2],k=h.firstCreatePass?function hx(s,o,i,d,f,h){const C=o.consts,k=f5(o,s,2,d,a8(C,f));return eo(o,i,k,a8(C,h)),null!==k.attrs&&Et(k,k.attrs,!1),null!==k.mergedAttrs&&Et(k,k.mergedAttrs,!0),null!==o.queries&&o.queries.elementStart(o,k),k}(C,h,f,o,i,d):h.data[C],$=Th(h,f,k,M,o,s);f[C]=$;const Y=Y2(k);return Ee(k,!0),Ga(M,$,k),!function It(s){return!(32&~s.flags)}(k)&&_c()&&Tc(h,f,$,k),0===function _(){return h0.lFrame.elementDepthCount}()&&R6($,f),function y(){h0.lFrame.elementDepthCount++}(),Y&&(Xa(h,f,k),_t(h,k,f)),null!==d&&Wa(f,k),Sl}function Ht(){let s=R4();$7()?ys():(s=s.parent,Ee(s,!1));const o=s;(function R1(s){return h0.skipHydrationRootTNode===s})(o)&&function r4(){h0.skipHydrationRootTNode=null}(),function R(){h0.lFrame.elementDepthCount--}();const i=B0();return i.firstCreatePass&&(O9(i,s),D2(s)&&i.queries.elementEnd(s)),null!=o.classesWithoutHost&&function vf(s){return!!(8&s.flags)}(o)&&Vt(i,o,Q1(),o.classesWithoutHost,!0),null!=o.stylesWithoutHost&&function JL(s){return!!(16&s.flags)}(o)&&Vt(i,o,Q1(),o.stylesWithoutHost,!1),Ht}function Nl(s,o,i,d){return Sl(s,o,i,d),Ht(),Nl}let Th=(s,o,i,d,f,h)=>(ie(!0),Fn(d,f,function O7(){return h0.lFrame.currentNamespace}()));function El(s,o,i){const d=Q1(),f=B0(),h=s+w0,C=f.firstCreatePass?function Ah(s,o,i,d,f){const h=o.consts,C=a8(h,d),M=f5(o,s,8,"ng-container",C);return null!==C&&Et(M,C,!0),eo(o,i,M,a8(h,f)),null!==o.queries&&o.queries.elementStart(o,M),M}(h,f,d,o,i):f.data[h];Ee(C,!0);const M=Ih(f,d,C,s);return d[h]=M,_c()&&Tc(f,d,M,C),R6(M,d),Y2(C)&&(Xa(f,d,C),_t(f,C,d)),null!=i&&Wa(d,C),El}function Dl(){let s=R4();const o=B0();return $7()?ys():(s=s.parent,Ee(s,!1)),o.firstCreatePass&&(O9(o,s),D2(s)&&o.queries.elementEnd(s)),Dl}function Tl(s,o,i){return El(s,o,i),Dl(),Tl}let Ih=(s,o,i,d)=>(ie(!0),Pa(o[X2],""));function $h(){return Q1()}function Rl(s,o,i){const d=Q1();return T3(d,B8(),o)&&i8(B0(),J4(),d,s,o,d[X2],i,!0),Rl}const cc=void 0;var Oh=["en",[["a","p"],["AM","PM"],cc],[["AM","PM"],cc,cc],[["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"]],cc,[["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"]],cc,[["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}",cc,"{1} 'at' {0}",cc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Qi(s){const i=Math.floor(Math.abs(s)),d=s.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===d?1:5}];let f7={};function Zi(s){const o=function Vh(s){return s.toLowerCase().replace(/_/g,"-")}(s);let i=Bh(o);if(i)return i;const d=o.split("-")[0];if(i=Bh(d),i)return i;if("en"===d)return Oh;throw new m2(701,!1)}function u7(s){return Zi(s)[me.PluralCase]}function Bh(s){return s in f7||(f7[s]=n0.ng&&n0.ng.common&&n0.ng.common.locales&&n0.ng.common.locales[s]),f7[s]}var me=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}(me||{});const m7="en-US";let Ki=m7;function gr(s,o,i,d){const f=Q1(),h=B0(),C=R4();return Qt(h,f,f[X2],C,s,o,d),gr}function Qt(s,o,i,d,f,h,C){const M=Y2(d),$=s.firstCreatePass&&Cm(s),Y=o[W0],o1=ro(o);let S1=!0;if(3&d.type||C){const n2=M6(d,o),p2=C?C(n2):n2,w2=o1.length,a2=C?m4=>C(w4(m4[d.index])):d.index;let N0=null;if(!C&&M&&(N0=function Ul(s,o,i,d){const f=s.cleanup;if(null!=f)for(let h=0;hk?M[k]:null}"string"==typeof C&&(h+=2)}return null}(s,o,f,d.index)),null!==N0)(N0.__ngLastListenerFn__||N0).__ngNextListenerFn__=h,N0.__ngLastListenerFn__=h,S1=!1;else{h=_r(d,o,Y,h,!1);const m4=i.listen(p2,f,h);o1.push(h,m4),$&&$.push(f,a2,w2,w2+1)}}else h=_r(d,o,Y,h,!1);const I1=d.outputs;let B1;if(S1&&null!==I1&&(B1=I1[f])){const n2=B1.length;if(n2)for(let p2=0;p2-1?D6(s.index,o):o);let k=Mg(o,i,d,C),$=h.__ngNextListenerFn__;for(;$;)k=Mg(o,i,$,C)&&k,$=$.__ngNextListenerFn__;return f&&!1===k&&C.preventDefault(),k}}function Hl(s=1){return function zf(s){return(h0.lFrame.contextLView=function se(s,o){for(;s>0;)o=o[K0],s--;return o}(s,h0.lFrame.contextLView))[W0]}(s)}function Yx(s,o){let i=null;const d=function q8(s){const o=s.attrs;if(null!=o){const i=o.indexOf(5);if(!(1&i))return o[i+1]}return null}(s);for(let f=0;f(ie(!0),function Aa(s,o){return s.createText(o)}(o[X2],d));function vr(s){return c9("",s,""),vr}function c9(s,o,i){const d=Q1(),f=g5(d,s,o,i);return f!==Q0&&Ie(d,x6(),f),c9}function kr(s,o,i,d,f){const h=Q1(),C=function l7(s,o,i,d,f,h){const M=Y5(s,De(),i,f);return qe(2),M?o+y2(i)+d+y2(f)+h:Q0}(h,s,o,i,d,f);return C!==Q0&&Ie(h,x6(),C),kr}function t9(s,o,i,d,f,h,C){const M=Q1(),k=function s7(s,o,i,d,f,h,C,M){const $=Jc(s,De(),i,f,C);return qe(3),$?o+y2(i)+d+y2(f)+h+y2(C)+M:Q0}(M,s,o,i,d,f,h,C);return k!==Q0&&Ie(M,x6(),k),t9}function wr(s,o,i,d,f,h,C,M,k){const $=Q1(),Y=function Z5(s,o,i,d,f,h,C,M,k,$){const o1=H8(s,De(),i,f,C,k);return qe(4),o1?o+y2(i)+d+y2(f)+h+y2(C)+M+y2(k)+$:Q0}($,s,o,i,d,f,h,C,M,k);return Y!==Q0&&Ie($,x6(),Y),wr}function n9(s,o,i,d,f,h,C,M,k,$,Y){const o1=Q1(),S1=function a7(s,o,i,d,f,h,C,M,k,$,Y,o1){const S1=De();let I1=H8(s,S1,i,f,C,k);return I1=T3(s,S1+4,Y)||I1,qe(5),I1?o+y2(i)+d+y2(f)+h+y2(C)+M+y2(k)+$+y2(Y)+o1:Q0}(o1,s,o,i,d,f,h,C,M,k,$,Y);return S1!==Q0&&Ie(o1,x6(),S1),n9}function Nr(s,o,i){hp(o)&&(o=o());const d=Q1();return T3(d,B8(),o)&&i8(B0(),J4(),d,s,o,d[X2],i,!1),Nr}function Hg(s,o){const i=hp(s);return i&&s.set(o),i}function Jl(s,o){const i=Q1(),d=B0(),f=R4();return Qt(d,i,i[X2],f,s,o),Jl}function Ql(s,o,i,d,f){if(s=s1(s),Array.isArray(s))for(let h=0;h>20;if(f6(s)||!s.multi){const I1=new I5($,f,Rc),B1=Dr(k,o,f?Y:Y+S1,o1);-1===B1?(q7(Y7(M,C),h,k),Er(h,s,o.length),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),i.push(I1),C.push(I1)):(i[B1]=I1,C[B1]=I1)}else{const I1=Dr(k,o,Y+S1,o1),B1=Dr(k,o,Y,Y+S1),p2=B1>=0&&i[B1];if(f&&!p2||!f&&!(I1>=0&&i[I1])){q7(Y7(M,C),h,k);const w2=function Tr(s,o,i,d,f){const h=new I5(s,i,Rc);return h.multi=[],h.index=o,h.componentProviders=0,Gg(h,f,d&&!i),h}(f?eb:Yg,i.length,f,d,$);!f&&p2&&(i[B1].providerFactory=w2),Er(h,s,o.length,0),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),i.push(w2),C.push(w2)}else Er(h,s,I1>-1?I1:B1,Gg(i[f?B1:I1],$,!f&&d));!f&&d&&p2&&i[B1].componentProviders++}}}function Er(s,o,i,d){const f=f6(o),h=function He(s){return!!s.useClass}(o);if(f||h){const k=(h?s1(o.useClass):o).prototype.ngOnDestroy;if(k){const $=s.destroyHooks||(s.destroyHooks=[]);if(!f&&o.multi){const Y=$.indexOf(i);-1===Y?$.push(i,[d,k]):$[Y+1].push(d,k)}else $.push(i,k)}}}function Gg(s,o,i){return i&&s.componentProviders++,s.multi.push(o)-1}function Dr(s,o,i,d){for(let f=i;f{i.providersResolver=(d,f)=>function Kx(s,o,i){const d=B0();if(d.firstCreatePass){const f=U2(s);Ql(i,d.data,d.blueprint,f,!0),Ql(o,d.data,d.blueprint,f,!1)}}(d,f?f(s):s,o)}}let Ar=(()=>{class s{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const d=U6(0,i.type),f=d.length>0?li([d],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,f)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=b0({token:s,providedIn:"environment",factory:()=>new s(k4(N3))})}}return s})();function Ir(s){U8("NgStandalone"),s.getStandaloneInjector=o=>o.get(Ar).getOrCreateStandaloneInjector(s)}function Pr(s,o,i){const d=s.\u0275cmp;d.directiveDefs=V6(o,!1),d.pipeDefs=V6(i,!0)}function qg(s,o,i){const d=T6()+s,f=Q1();return f[d]===Q0?Pe(f,d,i?o.call(i):o()):function Wc(s,o){return s[o]}(f,d)}function Xg(s,o,i,d){return Vr(Q1(),T6(),s,o,i,d)}function jr(s,o,i,d,f){return Kl(Q1(),T6(),s,o,i,d,f)}function Or(s,o,i,d,f,h){return function Kg(s,o,i,d,f,h,C,M){const k=o+i;return Jc(s,k,f,h,C)?Pe(s,k+3,M?d.call(M,f,h,C):d(f,h,C)):a9(s,k+3)}(Q1(),T6(),s,o,i,d,f,h)}function Zl(s,o,i,d,f,h,C){return function e_(s,o,i,d,f,h,C,M,k){const $=o+i;return H8(s,$,f,h,C,M)?Pe(s,$+4,k?d.call(k,f,h,C,M):d(f,h,C,M)):a9(s,$+4)}(Q1(),T6(),s,o,i,d,f,h,C)}function a9(s,o){const i=s[o];return i===Q0?void 0:i}function Vr(s,o,i,d,f,h){const C=o+i;return T3(s,C,f)?Pe(s,C+1,h?d.call(h,f):d(f)):a9(s,C+1)}function Kl(s,o,i,d,f,h,C){const M=o+i;return Y5(s,M,f,h)?Pe(s,M+2,C?d.call(C,f,h):d(f,h)):a9(s,M+2)}function Ur(s,o){const i=B0();let d;const f=s+w0;i.firstCreatePass?(d=function c_(s,o){if(o)for(let i=o.length-1;i>=0;i--){const d=o[i];if(s===d.name)return d}}(o,i.pipeRegistry),i.data[f]=d,d.onDestroy&&(i.destroyHooks??=[]).push(f,d.onDestroy)):d=i.data[f];const h=d.factory||(d.factory=$3(d.type)),M=a4(Rc);try{const k=G7(!1),$=h();return G7(k),function Eg(s,o,i,d){i>=s.data.length&&(s.data[i]=null,s.blueprint[i]=null),o[i]=d}(i,Q1(),f,$),$}finally{a4(M)}}function cs(s,o,i){const d=s+w0,f=Q1(),h=l5(f,d);return o9(f,d)?Vr(f,T6(),o,h.transform,i,h):h.transform(i)}function t_(s,o,i,d){const f=s+w0,h=Q1(),C=l5(h,f);return o9(h,f)?Kl(h,T6(),o,C.transform,i,d,C):C.transform(i,d)}function o9(s,o){return s[z1].data[o].pure}function ts(s,o){return Ft(s,o)}class sd{constructor(o){this.full=o;const i=o.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}}let h_=(()=>{class s{log(i){console.log(i)}warn(i){console.warn(i)}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const k_=new Y1(""),rd=new Y1("");let os,Ab=(()=>{class s{constructor(i,d,f){this._ngZone=i,this.registry=d,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,os||(function Ib(s){os=s}(f),f.addToWindow(d)),this._watchAngularEvents(),i.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:()=>{U3.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 i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(d=>!d.updateCb||!d.updateCb(i)||(clearTimeout(d.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,d,f){let h=-1;d&&d>0&&(h=setTimeout(()=>{this._callbacks=this._callbacks.filter(C=>C.timeoutId!==h),i()},d)),this._callbacks.push({doneCb:i,timeoutId:h,updateCb:f})}whenStable(i,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(i,d,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,d,f){return[]}static{this.\u0275fac=function(d){return new(d||s)(k4(U3),k4(w_),k4(rd))}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac})}}return s})(),w_=(()=>{class s{constructor(){this._applications=new Map}registerApplication(i,d){this._applications.set(i,d)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,d=!0){return os?.findTestabilityInTree(this,i,d)??null}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();function dd(s){return!!s&&"function"==typeof s.then}function fd(s){return!!s&&"function"==typeof s.subscribe}const S_=new Y1("");let ud=(()=>{class s{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,d)=>{this.resolve=i,this.reject=d}),this.appInits=d0(S_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const f of this.appInits){const h=f();if(dd(h))i.push(h);else if(fd(h)){const C=new Promise((M,k)=>{h.subscribe({complete:M,error:k})});i.push(C)}}const d=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{d()}).catch(f=>{this.reject(f)}),0===i.length&&d(),this.initialized=!0}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const is=new Y1("");function D_(s,o){return Array.isArray(o)?o.reduce(D_,s):{...s,...o}}let z5=(()=>{class s{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=d0(Of),this.afterRenderEffectManager=d0(Bc),this.externalTestViews=new Set,this.beforeRender=new V2.B,this.afterTick=new V2.B,this.componentTypes=[],this.components=[],this.isStable=d0(h5).hasPendingTasks.pipe((0,g0.T)(i=>!i)),this._injector=d0(N3)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,d){const f=i instanceof vo;if(!this._injector.get(ud).done)throw!f&&W4(i),new m2(405,!1);let C;C=f?i:this._injector.get(Oc).resolveComponentFactory(i),this.componentTypes.push(C.componentType);const M=function E_(s){return s.isBoundToModule}(C)?void 0:this._injector.get(Je),$=C.create(o8.NULL,[],d||C.selector,M),Y=$.location.nativeElement,o1=$.injector.get(k_,null);return o1?.registerApplication(Y),$.onDestroy(()=>{this.detachView($.hostView),m9(this.components,$),o1?.unregisterApplication(Y)}),this._loadComponent($),$}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new m2(101,!1);const d=A(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(f){this.internalErrorHandler(f)}finally{this.afterTick.next(),this._runningTick=!1,A(d)}}detectChangesInAttachedViews(i){let d=0;const f=this.afterRenderEffectManager;for(;;){if(d===Fm)throw new m2(103,!1);if(i){const h=0===d;this.beforeRender.next(h);for(let{_lView:C,notifyErrorHandler:M}of this._views)T_(C,h,M)}if(d++,f.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>h9(h))&&(f.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>h9(h))))break}}attachView(i){const d=i;this._views.push(d),d.attachToAppRef(this)}detachView(i){const d=i;m9(this._views,d),d.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const d=this._injector.get(is,[]);[...this._bootstrapListeners,...d].forEach(f=>f(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>m9(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new m2(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function m9(s,o){const i=s.indexOf(o);i>-1&&s.splice(i,1)}function T_(s,o,i){!o&&!h9(s)||function $b(s,o,i){let d;i?(d=0,s[U1]|=1024):d=64&s[U1]?0:1,Mt(s,o,d)}(s,i,o)}function h9(s){return A7(s)}class R_{constructor(o,i){this.ngModuleFactory=o,this.componentFactories=i}}let jb=(()=>{class s{compileModuleSync(i){return new ni(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const d=this.compileModuleSync(i),h=y8(n3(i).declarations).reduce((C,M)=>{const k=$0(M);return k&&C.push(new G5(k)),C},[]);return new R_(d,h)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),Ob=(()=>{class s{constructor(){this.zone=d0(U3),this.applicationRef=d0(z5)}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=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function Vb(){const s=d0(U3),o=d0(V8);return i=>s.runOutsideAngular(()=>o.handleError(i))}let $_=(()=>{class s{constructor(){this.subscription=new v0.yU,this.initialized=!1,this.zone=d0(U3),this.pendingTasks=d0(h5)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{U3.assertNotInAngularZone(),queueMicrotask(()=>{null!==i&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{U3.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const _9=new Y1("",{providedIn:"root",factory:()=>d0(_9,u0.Optional|u0.SkipSelf)||function Ub(){return typeof $localize<"u"&&$localize.locale||m7}()}),j_=new Y1("",{providedIn:"root",factory:()=>"USD"}),pd=new Y1("");let hd=(()=>{class s{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,d){const f=function Kz(s="zone.js",o){return"noop"===s?new Wn:"zone.js"===s?new U3(o):s}(d?.ngZone,function g9(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:s?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:s?.runCoalescing??!1}}({eventCoalescing:d?.ngZoneEventCoalescing,runCoalescing:d?.ngZoneRunCoalescing}));return f.run(()=>{const h=function NM(s,o,i){return new ol(s,o,i)}(i.moduleType,this.injector,function ds(s){return[{provide:U3,useFactory:s},{provide:Z3,multi:!0,useFactory:()=>{const o=d0(Ob,{optional:!0});return()=>o.initialize()}},{provide:Z3,multi:!0,useFactory:()=>{const o=d0($_);return()=>{o.initialize()}}},{provide:Of,useFactory:Vb}]}(()=>f)),C=h.injector.get(V8,null);return f.runOutsideAngular(()=>{const M=f.onError.subscribe({next:k=>{C.handleError(k)}});h.onDestroy(()=>{m9(this._modules,h),M.unsubscribe()})}),function rs(s,o,i){try{const d=i();return dd(d)?d.catch(f=>{throw o.runOutsideAngular(()=>s.handleError(f)),f}):d}catch(d){throw o.runOutsideAngular(()=>s.handleError(d)),d}}(C,f,()=>{const M=h.injector.get(ud);return M.runInitializers(),M.donePromise.then(()=>(function Hh(s){"string"==typeof s&&(Ki=s.toLowerCase().replace(/_/g,"-"))}(h.injector.get(_9,m7)||m7),this._moduleDoBootstrap(h),h))})})}bootstrapModule(i,d=[]){const f=D_({},d);return function I_(s,o,i){const d=new ni(i);return Promise.resolve(d)}(0,0,i).then(h=>this.bootstrapModuleFactory(h,f))}_moduleDoBootstrap(i){const d=i.injector.get(z5);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(f=>d.bootstrap(f));else{if(!i.instance.ngDoBootstrap)throw new m2(-403,!1);i.instance.ngDoBootstrap(d)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}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 i=this._injector.get(pd,null);i&&(i.forEach(d=>d()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(d){return new(d||s)(k4(o8))}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),M5=null;const gd=new Y1("");function V_(s,o,i=[]){const d=`Platform: ${o}`,f=new Y1(d);return(h=[])=>{let C=Ld();if(!C||C.injector.get(gd,!1)){const M=[...i,...h,{provide:f,useValue:!0}];s?s(M):function B_(s){if(M5&&!M5.get(gd,!1))throw new m2(400,!1);(function N_(){!function F1(s){_2=s}(()=>{throw new m2(600,!1)})})(),M5=s;const o=s.get(hd);(function fs(s){s.get(ru,null)?.forEach(i=>i())})(s)}(function _d(s=[],o){return o8.create({name:o,providers:[{provide:C8,useValue:"platform"},{provide:pd,useValue:new Set([()=>M5=null])},...s]})}(M,d))}return function U_(s){const o=Ld();if(!o)throw new m2(401,!1);return o}()}}function Ld(){return M5?.get(hd)??null}let G_=(()=>{class s{static{this.__NG_ELEMENT_ID__=zd}}return s})();function zd(s){return function qb(s,o,i){if(A8(s)&&!i){const d=D6(s.index,o);return new bt(d,d)}return 47&s.type?new bt(o[F2],o):null}(R4(),Q1(),!(16&~s))}class J_{constructor(){}supports(o){return rl(o)}create(o){return new Z_(o)}}const Q_=(s,o)=>o;class Z_{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 i;for(i=this._itHead;null!==i;i=i._next)o(i)}forEachOperation(o){let i=this._itHead,d=this._removalsHead,f=0,h=null;for(;i||d;){const C=!d||i&&i.currentIndex{C=this._trackByFn(f,M),null!==i&&Object.is(i.trackById,C)?(d&&(i=this._verifyReinsertion(i,M,C,f)),Object.is(i.item,M)||this._addIdentityChange(i,M)):(i=this._mismatch(i,M,C,f),d=!0),i=i._next,f++}),this.length=f;return this._truncate(i),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,i,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,i)||this._addIdentityChange(o,i),this._reinsertAfter(o,h,f)):null!==(o=null===this._linkedRecords?null:this._linkedRecords.get(d,f))?(Object.is(o.item,i)||this._addIdentityChange(o,i),this._moveAfter(o,h,f)):o=this._addAfter(new K_(i,d),h,f),o}_verifyReinsertion(o,i,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 i=o._next;this._addToRemovals(this._unlink(o)),o=i}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,i,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,i,d),this._addToMoves(o,d),o}_moveAfter(o,i,d){return this._unlink(o),this._insertAfter(o,i,d),this._addToMoves(o,d),o}_addAfter(o,i,d){return this._insertAfter(o,i,d),this._additionsTail=null===this._additionsTail?this._additionsHead=o:this._additionsTail._nextAdded=o,o}_insertAfter(o,i,d){const f=null===i?this._itHead:i._next;return o._next=f,o._prev=i,null===f?this._itTail=o:f._prev=o,null===i?this._itHead=o:i._next=o,null===this._linkedRecords&&(this._linkedRecords=new cL),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 i=o._prev,d=o._next;return null===i?this._itHead=d:i._next=d,null===d?this._itTail=i:d._prev=i,o}_addToMoves(o,i){return o.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=o:this._movesTail._nextMoved=o),o}_addToRemovals(o){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cL),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,i){return o.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=o:this._identityChangesTail._nextIdentityChange=o,o}}class K_{constructor(o,i){this.item=o,this.trackById=i,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 eL{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,i){let d;for(d=this._head;null!==d;d=d._nextDup)if((null===i||i<=d.currentIndex)&&Object.is(d.trackById,o))return d;return null}remove(o){const i=o._prevDup,d=o._nextDup;return null===i?this._head=d:i._nextDup=d,null===d?this._tail=i:d._prevDup=i,null===this._head}}class cL{constructor(){this.map=new Map}put(o){const i=o.trackById;let d=this.map.get(i);d||(d=new eL,this.map.set(i,d)),d.add(o)}get(o,i){const f=this.map.get(o);return f?f.get(o,i):null}remove(o){const i=o.trackById;return this.map.get(i).remove(o)&&this.map.delete(i),o}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tL(s,o,i){const d=s.previousIndex;if(null===d)return d;let f=0;return i&&d{if(i&&i.key===f)this._maybeAddToChanges(i,d),this._appendAfter=i,i=i._next;else{const h=this._getOrCreateRecordForKey(f,d);i=this._insertBeforeOrAppend(i,h)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let d=i;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,i){if(o){const d=o._prev;return i._next=o,i._prev=d,o._prev=i,d&&(d._next=i),o===this._mapHead&&(this._mapHead=i),this._appendAfter=o,o}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(o,i){if(this._records.has(o)){const f=this._records.get(o);this._maybeAddToChanges(f,i);const h=f._prev,C=f._next;return h&&(h._next=C),C&&(C._prev=h),f._next=null,f._prev=null,f}const d=new Qb(o);return this._records.set(o,d),d.currentValue=i,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,i){Object.is(i,o.currentValue)||(o.previousValue=o.currentValue,o.currentValue=i,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,i){o instanceof Map?o.forEach(i):Object.keys(o).forEach(d=>i(o[d],d))}}class Qb{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 vd(){return new kd([new J_])}let kd=(()=>{class s{static{this.\u0275prov=b0({token:s,providedIn:"root",factory:vd})}constructor(i){this.factories=i}static create(i,d){if(null!=d){const f=d.factories.slice();i=i.concat(f)}return new s(i)}static extend(i){return{provide:s,useFactory:d=>s.create(i,d||vd()),deps:[[s,new J3,new X0]]}}find(i){const d=this.factories.find(f=>f.supports(i));if(null!=d)return d;throw new m2(901,!1)}}return s})();function wd(){return new Sd([new Fd])}let Sd=(()=>{class s{static{this.\u0275prov=b0({token:s,providedIn:"root",factory:wd})}constructor(i){this.factories=i}static create(i,d){if(d){const f=d.factories.slice();i=i.concat(f)}return new s(i)}static extend(i){return{provide:s,useFactory:d=>s.create(i,d||wd()),deps:[[s,new J3,new X0]]}}find(i){const d=this.factories.find(f=>f.supports(i));if(d)return d;throw new m2(901,!1)}}return s})();const ms=V_(null,"core",[]);let Kb=(()=>{class s{constructor(i){}static{this.\u0275fac=function(d){return new(d||s)(k4(z5))}}static{this.\u0275mod=B6({type:s})}static{this.\u0275inj=b1({})}}return s})();function qd(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}function yy(s){const o=A(null);try{return s()}finally{A(o)}}function vy(s){const o=$0(s);if(!o)return null;const i=new G5(o);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return o.standalone},get isSignal(){return o.signals}}}},9417:(k1,r1,v)=>{"use strict";v.d(r1,{$R:()=>N4,BC:()=>_4,Fm:()=>u0,JD:()=>C3,MJ:()=>t4,MR:()=>N2,Q0:()=>q3,R_:()=>j6,VZ:()=>$3,X1:()=>m3,YN:()=>r6,YS:()=>B4,Yp:()=>k0,Zm:()=>K,cV:()=>J0,cb:()=>m2,gE:()=>z2,j4:()=>t3,k0:()=>c0,kq:()=>V,l_:()=>v3,me:()=>m1,ok:()=>j3,qT:()=>P6,v8:()=>h6,vS:()=>P0,wz:()=>k4,xH:()=>I3,y7:()=>v6});var u=v(4438),g=v(177),e=v(6648),p=v(7468),L=v(6354);let S=(()=>{class H{constructor(D,e1){this._renderer=D,this._elementRef=e1,this.onChange=w1=>{},this.onTouched=()=>{}}setProperty(D,e1){this._renderer.setProperty(this._elementRef.nativeElement,D,e1)}registerOnTouched(D){this.onTouched=D}registerOnChange(D){this.onChange=D}setDisabledState(D){this.setProperty("disabled",D)}static{this.\u0275fac=function(e1){return new(e1||H)(u.rXU(u.sFG),u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:H})}}return H})(),A=(()=>{class H extends S{static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,features:[u.Vt3]})}}return H})();const V=new u.nKC(""),c1={provide:V,useExisting:(0,u.Rfq)(()=>K),multi:!0};let K=(()=>{class H extends A{writeValue(D){this.setProperty("checked",D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(y0){return w1.onChange(y0.target.checked)})("blur",function(){return w1.onTouched()})},features:[u.Jv_([c1]),u.Vt3]})}}return H})();const L1={provide:V,useExisting:(0,u.Rfq)(()=>m1),multi:!0},l1=new u.nKC("");let m1=(()=>{class H extends S{constructor(D,e1,w1){super(D,e1),this._compositionMode=w1,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function j(){const H=(0,g.QT)()?(0,g.QT)().getUserAgent():"";return/android (\d+)/.test(H.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(e1){return new(e1||H)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(l1,8))}}static{this.\u0275dir=u.FsC({type:H,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(e1,w1){1&e1&&u.bIt("input",function(y0){return w1._handleInput(y0.target.value)})("blur",function(){return w1.onTouched()})("compositionstart",function(){return w1._compositionStart()})("compositionend",function(y0){return w1._compositionEnd(y0.target.value)})},features:[u.Jv_([L1]),u.Vt3]})}}return H})();function f1(H){return null==H||("string"==typeof H||Array.isArray(H))&&0===H.length}function $1(H){return null!=H&&"number"==typeof H.length}const g1=new u.nKC(""),H1=new u.nKC(""),r2=/^(?=.{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 c0{static min(G){return s2(G)}static max(G){return function c2(H){return G=>{if(f1(G.value)||f1(H))return null;const D=parseFloat(G.value);return!isNaN(D)&&D>H?{max:{max:H,actual:G.value}}:null}}(G)}static required(G){return P1(G)}static requiredTrue(G){return function B2(H){return!0===H.value?null:{required:!0}}(G)}static email(G){return function o2(H){return f1(H.value)||r2.test(H.value)?null:{email:!0}}(G)}static minLength(G){return function C2(H){return G=>f1(G.value)||!$1(G.value)?null:G.value.length$1(G.value)&&G.value.length>H?{maxlength:{requiredLength:H,actualLength:G.value.length}}:null}(G)}static pattern(G){return g2(G)}static nullValidator(G){return null}static compose(G){return e2(G)}static composeAsync(G){return D1(G)}}function s2(H){return G=>{if(f1(G.value)||f1(H))return null;const D=parseFloat(G.value);return!isNaN(D)&&D{if(f1(e1.value))return null;const w1=e1.value;return G.test(w1)?null:{pattern:{requiredPattern:D,actualValue:w1}}}}function K2(H){return null}function g4(H){return null!=H}function F0(H){return(0,u.jNT)(H)?(0,e.H)(H):H}function x4(H){let G={};return H.forEach(D=>{G=null!=D?{...G,...D}:G}),0===Object.keys(G).length?null:G}function _2(H,G){return G.map(D=>D(H))}function F1(H){return H.map(G=>function D0(H){return!H.validate}(G)?G:D=>G.validate(D))}function e2(H){if(!H)return null;const G=H.filter(g4);return 0==G.length?null:function(D){return x4(_2(D,G))}}function h2(H){return null!=H?e2(F1(H)):null}function D1(H){if(!H)return null;const G=H.filter(g4);return 0==G.length?null:function(D){const e1=_2(D,G).map(F0);return(0,p.p)(e1).pipe((0,L.T)(x4))}}function j1(H){return null!=H?D1(F1(H)):null}function A1(H,G){return null===H?[G]:Array.isArray(H)?[...H,G]:[H,G]}function v1(H){return H._rawValidators}function Z1(H){return H._rawAsyncValidators}function Z(H){return H?Array.isArray(H)?H:[H]:[]}function X1(H,G){return Array.isArray(H)?H.includes(G):H===G}function O1(H,G){const D=Z(G);return Z(H).forEach(w1=>{X1(D,w1)||D.push(w1)}),D}function W2(H,G){return Z(G).filter(D=>!X1(H,D))}class s0{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=h2(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 V2 extends s0{get formDirective(){return null}get path(){return null}}class v0 extends s0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class p0{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 _4=(()=>{class H extends p0{constructor(D){super(D)}static{this.\u0275fac=function(e1){return new(e1||H)(u.rXU(v0,2))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e1,w1){2&e1&&u.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:[u.Vt3]})}}return H})(),m2=(()=>{class H extends p0{constructor(D){super(D)}static{this.\u0275fac=function(e1){return new(e1||H)(u.rXU(V2,10))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e1,w1){2&e1&&u.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:[u.Vt3]})}}return H})();const x0="VALID",h3="INVALID",T0="PENDING",v4="DISABLED";function o3(H){return(M1(H)?H.validators:H)||null}function J2(H,G){return(M1(G)?G.asyncValidators:H)||null}function M1(H){return null!=H&&!Array.isArray(H)&&"object"==typeof H}function u1(H,G,D){const e1=H.controls;if(!(G?Object.keys(e1):e1).length)throw new u.wOt(1e3,"");if(!e1[D])throw new u.wOt(1001,"")}function E1(H,G,D){H._forEachChild((e1,w1)=>{if(void 0===D[w1])throw new u.wOt(1002,"")})}class K1{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===x0}get invalid(){return this.status===h3}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(O1(G,this._rawValidators))}addAsyncValidators(G){this.setAsyncValidators(O1(G,this._rawAsyncValidators))}removeValidators(G){this.setValidators(W2(G,this._rawValidators))}removeAsyncValidators(G){this.setAsyncValidators(W2(G,this._rawAsyncValidators))}hasValidator(G){return X1(this._rawValidators,G)}hasAsyncValidator(G){return X1(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(e1=>{e1.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(e1=>e1(!0))}enable(G={}){const D=this._parentMarkedDirty(G.onlySelf);this.status=x0,this._forEachChild(e1=>{e1.enable({...G,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent}),this._updateAncestors({...G,skipPristineCheck:D}),this._onDisabledChange.forEach(e1=>e1(!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===x0||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:x0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(G){if(this.asyncValidator){this.status=T0,this._hasOwnPendingAsyncValidator=!0;const D=F0(this.asyncValidator(this));this._asyncValidationSubscription=D.subscribe(e1=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e1,{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((e1,w1)=>e1&&e1._find(w1),this)}getError(G,D){const e1=D?this.get(D):this;return e1&&e1.errors?e1.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 u.bkB,this.statusChanges=new u.bkB}_calculateStatus(){return this._allControlsDisabled()?v4:this.errors?h3:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T0)?T0:this._anyControlsHaveStatus(h3)?h3:x0}_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){M1(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 c3(H){return Array.isArray(H)?h2(H):H||null}(this._rawValidators)}_assignAsyncValidators(G){this._rawAsyncValidators=Array.isArray(G)?G.slice():G,this._composedAsyncValidatorFn=function s1(H){return Array.isArray(H)?j1(H):H||null}(this._rawAsyncValidators)}}class z2 extends K1{constructor(G,D,e1){super(o3(D),J2(e1,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,e1={}){this.registerControl(G,D),this.updateValueAndValidity({emitEvent:e1.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,e1={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],D&&this.registerControl(G,D),this.updateValueAndValidity({emitEvent:e1.emitEvent}),this._onCollectionChange()}contains(G){return this.controls.hasOwnProperty(G)&&this.controls[G].enabled}setValue(G,D={}){E1(this,0,G),Object.keys(G).forEach(e1=>{u1(this,!0,e1),this.controls[e1].setValue(G[e1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(Object.keys(G).forEach(e1=>{const w1=this.controls[e1];w1&&w1.patchValue(G[e1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G={},D={}){this._forEachChild((e1,w1)=>{e1.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,e1)=>(G[e1]=D.getRawValue(),G))}_syncPendingControls(){let G=this._reduceChildren(!1,(D,e1)=>!!e1._syncPendingControls()||D);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){Object.keys(this.controls).forEach(D=>{const e1=this.controls[D];e1&&G(e1,D)})}_setUpControls(){this._forEachChild(G=>{G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(G){for(const[D,e1]of Object.entries(this.controls))if(this.contains(D)&&G(e1))return!0;return!1}_reduceValue(){return this._reduceChildren({},(D,e1,w1)=>((e1.enabled||this.disabled)&&(D[w1]=e1.value),D))}_reduceChildren(G,D){let e1=G;return this._forEachChild((w1,j2)=>{e1=D(e1,w1,j2)}),e1}_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 l4 extends z2{}const C4=new u.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>p4}),p4="always";function b4(H,G){return[...G.path,H]}function R2(H,G,D=p4){s4(H,G),G.valueAccessor.writeValue(H.value),(H.disabled||"always"===D)&&G.valueAccessor.setDisabledState?.(H.disabled),function i6(H,G){G.valueAccessor.registerOnChange(D=>{H._pendingValue=D,H._pendingChange=!0,H._pendingDirty=!0,"change"===H.updateOn&&b0(H,G)})}(H,G),function G3(H,G){const D=(e1,w1)=>{G.valueAccessor.writeValue(e1),w1&&G.viewToModelUpdate(e1)};H.registerOnChange(D),G._registerOnDestroy(()=>{H._unregisterOnChange(D)})}(H,G),function j4(H,G){G.valueAccessor.registerOnTouched(()=>{H._pendingTouched=!0,"blur"===H.updateOn&&H._pendingChange&&b0(H,G),"submit"!==H.updateOn&&H.markAsTouched()})}(H,G),function I4(H,G){if(G.valueAccessor.setDisabledState){const D=e1=>{G.valueAccessor.setDisabledState(e1)};H.registerOnDisabledChange(D),G._registerOnDestroy(()=>{H._unregisterOnDisabledChange(D)})}}(H,G)}function L0(H,G,D=!0){const e1=()=>{};G.valueAccessor&&(G.valueAccessor.registerOnChange(e1),G.valueAccessor.registerOnTouched(e1)),b6(H,G),H&&(G._invokeOnDestroyCallbacks(),H._registerOnCollectionChange(()=>{}))}function P2(H,G){H.forEach(D=>{D.registerOnValidatorChange&&D.registerOnValidatorChange(G)})}function s4(H,G){const D=v1(H);null!==G.validator?H.setValidators(A1(D,G.validator)):"function"==typeof D&&H.setValidators([D]);const e1=Z1(H);null!==G.asyncValidator?H.setAsyncValidators(A1(e1,G.asyncValidator)):"function"==typeof e1&&H.setAsyncValidators([e1]);const w1=()=>H.updateValueAndValidity();P2(G._rawValidators,w1),P2(G._rawAsyncValidators,w1)}function b6(H,G){let D=!1;if(null!==H){if(null!==G.validator){const w1=v1(H);if(Array.isArray(w1)&&w1.length>0){const j2=w1.filter(y0=>y0!==G.validator);j2.length!==w1.length&&(D=!0,H.setValidators(j2))}}if(null!==G.asyncValidator){const w1=Z1(H);if(Array.isArray(w1)&&w1.length>0){const j2=w1.filter(y0=>y0!==G.asyncValidator);j2.length!==w1.length&&(D=!0,H.setAsyncValidators(j2))}}}const e1=()=>{};return P2(G._rawValidators,e1),P2(G._rawAsyncValidators,e1),D}function b0(H,G){H._pendingDirty&&H.markAsDirty(),H.setValue(H._pendingValue,{emitModelToViewChange:!1}),G.viewToModelUpdate(H._pendingValue),H._pendingChange=!1}function b1(H,G){s4(H,G)}function x1(H,G){if(!H.hasOwnProperty("model"))return!1;const D=H.model;return!!D.isFirstChange()||!Object.is(G,D.currentValue)}function W1(H,G){H._syncPendingControls(),G.forEach(D=>{const e1=D.control;"submit"===e1.updateOn&&e1._pendingChange&&(D.viewToModelUpdate(e1._pendingValue),e1._pendingChange=!1)})}function Y1(H,G){if(!G)return null;let D,e1,w1;return Array.isArray(G),G.forEach(j2=>{j2.constructor===m1?D=j2:function y1(H){return Object.getPrototypeOf(H.constructor)===A}(j2)?e1=j2:w1=j2}),w1||e1||D||null}const C0={provide:V2,useExisting:(0,u.Rfq)(()=>J0)},$2=Promise.resolve();let J0=(()=>{class H extends V2{constructor(D,e1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.bkB,this.form=new z2({},h2(D),j1(e1))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(D){$2.then(()=>{const e1=this._findContainer(D.path);D.control=e1.registerControl(D.name,D.control),R2(D.control,D,this.callSetDisabledState),D.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(D)})}getControl(D){return this.form.get(D.path)}removeControl(D){$2.then(()=>{const e1=this._findContainer(D.path);e1&&e1.removeControl(D.name),this._directives.delete(D)})}addFormGroup(D){$2.then(()=>{const e1=this._findContainer(D.path),w1=new z2({});b1(w1,D),e1.registerControl(D.name,w1),w1.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(D){$2.then(()=>{const e1=this._findContainer(D.path);e1&&e1.removeControl(D.name)})}getFormGroup(D){return this.form.get(D.path)}updateModel(D,e1){$2.then(()=>{this.form.get(D.path).setValue(e1)})}setValue(D){this.control.setValue(D)}onSubmit(D){return this.submitted=!0,W1(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(e1){return new(e1||H)(u.rXU(g1,10),u.rXU(H1,10),u.rXU(C4,8))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("submit",function(y0){return w1.onSubmit(y0)})("reset",function(){return w1.onReset()})},inputs:{options:[u.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([C0]),u.Vt3]})}}return H})();function e0(H,G){const D=H.indexOf(G);D>-1&&H.splice(D,1)}function a0(H){return"object"==typeof H&&null!==H&&2===Object.keys(H).length&&"value"in H&&"disabled"in H}const t4=class extends K1{constructor(G=null,D,e1){super(o3(D),J2(e1,D)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(G),this._setUpdateStrategy(D),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),M1(D)&&(D.nonNullable||D.initialValueIsDefault)&&(this.defaultValue=a0(G)?G.value:G)}setValue(G,D={}){this.value=this._pendingValue=G,this._onChange.length&&!1!==D.emitModelToViewChange&&this._onChange.forEach(e1=>e1(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){e0(this._onChange,G)}registerOnDisabledChange(G){this._onDisabledChange.push(G)}_unregisterOnDisabledChange(G){e0(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){a0(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 A0=(()=>{class H extends V2{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return b4(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=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,features:[u.Vt3]})}}return H})();const O4={provide:v0,useExisting:(0,u.Rfq)(()=>P0)},y2=Promise.resolve();let P0=(()=>{class H extends v0{constructor(D,e1,w1,j2,y0,M3){super(),this._changeDetectorRef=y0,this.callSetDisabledState=M3,this.control=new t4,this._registered=!1,this.name="",this.update=new u.bkB,this._parent=D,this._setValidators(e1),this._setAsyncValidators(w1),this.valueAccessor=Y1(0,j2)}ngOnChanges(D){if(this._checkForErrors(),!this._registered||"name"in D){if(this._registered&&(this._checkName(),this.formDirective)){const e1=D.name.previousValue;this.formDirective.removeControl({name:e1,path:this._getPath(e1)})}this._setUpControl()}"isDisabled"in D&&this._updateDisabled(D),x1(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(){R2(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){y2.then(()=>{this.control.setValue(D,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(D){const e1=D.isDisabled.currentValue,w1=0!==e1&&(0,u.L39)(e1);y2.then(()=>{w1&&!this.control.disabled?this.control.disable():!w1&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(D){return this._parent?b4(D,this._parent):[D]}static{this.\u0275fac=function(e1){return new(e1||H)(u.rXU(V2,9),u.rXU(g1,10),u.rXU(H1,10),u.rXU(V,10),u.rXU(u.gRc,8),u.rXU(C4,8))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[u.Mj6.None,"disabled","isDisabled"],model:[u.Mj6.None,"ngModel","model"],options:[u.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u.Jv_([O4]),u.Vt3,u.OA$]})}}return H})(),P6=(()=>{class H{static{this.\u0275fac=function(e1){return new(e1||H)}}static{this.\u0275dir=u.FsC({type:H,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return H})();const i3={provide:V,useExisting:(0,u.Rfq)(()=>q3),multi:!0};let q3=(()=>{class H extends A{writeValue(D){this.setProperty("value",D??"")}registerOnChange(D){this.onChange=e1=>{D(""==e1?null:parseFloat(e1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("input",function(y0){return w1.onChange(y0.target.value)})("blur",function(){return w1.onTouched()})},features:[u.Jv_([i3]),u.Vt3]})}}return H})();const N8={provide:V,useExisting:(0,u.Rfq)(()=>u0),multi:!0};let y6=(()=>{class H{constructor(){this._accessors=[]}add(D,e1){this._accessors.push([D,e1])}remove(D){for(let e1=this._accessors.length-1;e1>=0;--e1)if(this._accessors[e1][1]===D)return void this._accessors.splice(e1,1)}select(D){this._accessors.forEach(e1=>{this._isSameGroup(e1,D)&&e1[1]!==D&&e1[1].fireUncheck(D.value)})}_isSameGroup(D,e1){return!!D[0].control&&D[0]._parent===e1._control._parent&&D[1].name===e1.name}static{this.\u0275fac=function(e1){return new(e1||H)}}static{this.\u0275prov=u.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}}return H})(),u0=(()=>{class H extends A{constructor(D,e1,w1,j2){super(D,e1),this._registry=w1,this._injector=j2,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,u.WQX)(C4,{optional:!0})??p4}ngOnInit(){this._control=this._injector.get(v0),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(e1){return new(e1||H)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(y6),u.rXU(u.zZn))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(){return w1.onChange()})("blur",function(){return w1.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[u.Jv_([N8]),u.Vt3]})}}return H})();const Q2={provide:V,useExisting:(0,u.Rfq)(()=>N2),multi:!0};let N2=(()=>{class H extends A{writeValue(D){this.setProperty("value",parseFloat(D))}registerOnChange(D){this.onChange=e1=>{D(""==e1?null:parseFloat(e1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(y0){return w1.onChange(y0.target.value)})("input",function(y0){return w1.onChange(y0.target.value)})("blur",function(){return w1.onTouched()})},features:[u.Jv_([Q2]),u.Vt3]})}}return H})();const a4=new u.nKC(""),r3={provide:v0,useExisting:(0,u.Rfq)(()=>v3)};let v3=(()=>{class H extends v0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,e1,w1,j2,y0){super(),this._ngModelWarningConfig=j2,this.callSetDisabledState=y0,this.update=new u.bkB,this._ngModelWarningSent=!1,this._setValidators(D),this._setAsyncValidators(e1),this.valueAccessor=Y1(0,w1)}ngOnChanges(D){if(this._isControlChanged(D)){const e1=D.form.previousValue;e1&&L0(e1,this,!1),R2(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}x1(D,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&L0(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(e1){return new(e1||H)(u.rXU(g1,10),u.rXU(H1,10),u.rXU(V,10),u.rXU(a4,8),u.rXU(C4,8))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","formControl",""]],inputs:{form:[u.Mj6.None,"formControl","form"],isDisabled:[u.Mj6.None,"disabled","isDisabled"],model:[u.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u.Jv_([r3]),u.Vt3,u.OA$]})}}return H})();const L3={provide:V2,useExisting:(0,u.Rfq)(()=>t3)};let t3=(()=>{class H extends V2{constructor(D,e1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.bkB,this._setValidators(D),this._setAsyncValidators(e1)}ngOnChanges(D){this._checkFormPresent(),D.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(b6(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 e1=this.form.get(D.path);return R2(e1,D,this.callSetDisabledState),e1.updateValueAndValidity({emitEvent:!1}),this.directives.push(D),e1}getControl(D){return this.form.get(D.path)}removeControl(D){L0(D.control||null,D,!1),function d2(H,G){const D=H.indexOf(G);D>-1&&H.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,e1){this.form.get(D.path).setValue(e1)}onSubmit(D){return this.submitted=!0,W1(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 e1=D.control,w1=this.form.get(D.path);e1!==w1&&(L0(e1||null,D),(H=>H instanceof t4)(w1)&&(R2(w1,D,this.callSetDisabledState),D.control=w1))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(D){const e1=this.form.get(D.path);b1(e1,D),e1.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(D){if(this.form){const e1=this.form.get(D.path);e1&&function g3(H,G){return b6(H,G)}(e1,D)&&e1.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){s4(this.form,this),this._oldForm&&b6(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(e1){return new(e1||H)(u.rXU(g1,10),u.rXU(H1,10),u.rXU(C4,8))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","formGroup",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("submit",function(y0){return w1.onSubmit(y0)})("reset",function(){return w1.onReset()})},inputs:{form:[u.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([L3]),u.Vt3,u.OA$]})}}return H})();const F4={provide:V2,useExisting:(0,u.Rfq)(()=>N4)};let N4=(()=>{class H extends A0{constructor(D,e1,w1){super(),this.name=null,this._parent=D,this._setValidators(e1),this._setAsyncValidators(w1)}_checkParentType(){Y8(this._parent)}static{this.\u0275fac=function(e1){return new(e1||H)(u.rXU(V2,13),u.rXU(g1,10),u.rXU(H1,10))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","formGroupName",""]],inputs:{name:[u.Mj6.None,"formGroupName","name"]},features:[u.Jv_([F4]),u.Vt3]})}}return H})();const Z0={provide:V2,useExisting:(0,u.Rfq)(()=>h6)};let h6=(()=>{class H extends V2{constructor(D,e1,w1){super(),this.name=null,this._parent=D,this._setValidators(e1),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 b4(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Y8(this._parent)}static{this.\u0275fac=function(e1){return new(e1||H)(u.rXU(V2,13),u.rXU(g1,10),u.rXU(H1,10))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","formArrayName",""]],inputs:{name:[u.Mj6.None,"formArrayName","name"]},features:[u.Jv_([Z0]),u.Vt3]})}}return H})();function Y8(H){return!(H instanceof N4||H instanceof t3||H instanceof h6)}const X3={provide:v0,useExisting:(0,u.Rfq)(()=>C3)};let C3=(()=>{class H extends v0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,e1,w1,j2,y0){super(),this._ngModelWarningConfig=y0,this._added=!1,this.name=null,this.update=new u.bkB,this._ngModelWarningSent=!1,this._parent=D,this._setValidators(e1),this._setAsyncValidators(w1),this.valueAccessor=Y1(0,j2)}ngOnChanges(D){this._added||this._setUpControl(),x1(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 b4(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(e1){return new(e1||H)(u.rXU(V2,13),u.rXU(g1,10),u.rXU(H1,10),u.rXU(V,10),u.rXU(a4,8))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["","formControlName",""]],inputs:{name:[u.Mj6.None,"formControlName","name"],isDisabled:[u.Mj6.None,"disabled","isDisabled"],model:[u.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[u.Jv_([X3]),u.Vt3,u.OA$]})}}return H})();const Q6={provide:V,useExisting:(0,u.Rfq)(()=>k4),multi:!0};function W3(H,G){return null==H?`${G}`:(G&&"object"==typeof G&&(G="Object"),`${H}: ${G}`.slice(0,50))}let k4=(()=>{class H 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=W3(this._getOptionId(D),D);this.setProperty("value",w1)}registerOnChange(D){this.onChange=e1=>{this.value=this._getOptionValue(e1),D(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(D){for(const e1 of this._optionMap.keys())if(this._compareWith(this._optionMap.get(e1),D))return e1;return null}_getOptionValue(D){const e1=function Z6(H){return H.split(":")[0]}(D);return this._optionMap.has(e1)?this._optionMap.get(e1):D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(y0){return w1.onChange(y0.target.value)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[u.Jv_([Q6]),u.Vt3]})}}return H})(),I3=(()=>{class H{constructor(D,e1,w1){this._element=D,this._renderer=e1,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(W3(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(e1){return new(e1||H)(u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(k4,9))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return H})();const d0={provide:V,useExisting:(0,u.Rfq)(()=>F6),multi:!0};function z3(H,G){return null==H?`${G}`:("string"==typeof G&&(G=`'${G}'`),G&&"object"==typeof G&&(G="Object"),`${H}: ${G}`.slice(0,50))}let F6=(()=>{class H 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 e1;if(this.value=D,Array.isArray(D)){const w1=D.map(j2=>this._getOptionId(j2));e1=(j2,y0)=>{j2._setSelected(w1.indexOf(y0.toString())>-1)}}else e1=(w1,j2)=>{w1._setSelected(!1)};this._optionMap.forEach(e1)}registerOnChange(D){this.onChange=e1=>{const w1=[],j2=e1.selectedOptions;if(void 0!==j2){const y0=j2;for(let M3=0;M3{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(y0){return w1.onChange(y0.target)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[u.Jv_([d0]),u.Vt3]})}}return H})(),v6=(()=>{class H{constructor(D,e1,w1){this._element=D,this._renderer=e1,this._select=w1,this._select&&(this.id=this._select._registerOption(this))}set ngValue(D){null!=this._select&&(this._value=D,this._setElementValue(z3(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._select?(this._value=D,this._setElementValue(z3(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(e1){return new(e1||H)(u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(F6,9))}}static{this.\u0275dir=u.FsC({type:H,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return H})();let X0=(()=>{class H{constructor(){this._validator=K2}ngOnChanges(D){if(this.inputName in D){const e1=this.normalizeInput(D[this.inputName].currentValue);this._enabled=this.enabled(e1),this._validator=this._enabled?this.createValidator(e1):K2,this._onChange&&this._onChange()}}validate(D){return this._validator(D)}registerOnValidatorChange(D){this._onChange=D}enabled(D){return null!=D}static{this.\u0275fac=function(e1){return new(e1||H)}}static{this.\u0275dir=u.FsC({type:H,features:[u.OA$]})}}return H})();const Le={provide:g1,useExisting:(0,u.Rfq)(()=>$3),multi:!0};let $3=(()=>{class H extends X0{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=D=>function Y4(H){return"number"==typeof H?H:parseFloat(H)}(D),this.createValidator=D=>s2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e1,w1){2&e1&&u.BMQ("min",w1._enabled?w1.min:null)},inputs:{min:"min"},features:[u.Jv_([Le]),u.Vt3]})}}return H})();const d3={provide:g1,useExisting:(0,u.Rfq)(()=>B4),multi:!0};let B4=(()=>{class H extends X0{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.L39,this.createValidator=D=>P1}enabled(D){return D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e1,w1){2&e1&&u.BMQ("required",w1._enabled?"":null)},inputs:{required:"required"},features:[u.Jv_([d3]),u.Vt3]})}}return H})();const Z4={provide:g1,useExisting:(0,u.Rfq)(()=>j6),multi:!0};let j6=(()=>{class H extends X0{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=D=>D,this.createValidator=D=>g2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(H)))(w1||H)}})()}static{this.\u0275dir=u.FsC({type:H,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e1,w1){2&e1&&u.BMQ("pattern",w1._enabled?w1.pattern:null)},inputs:{pattern:"pattern"},features:[u.Jv_([Z4]),u.Vt3]})}}return H})(),E4=(()=>{class H{static{this.\u0275fac=function(e1){return new(e1||H)}}static{this.\u0275mod=u.$C({type:H})}static{this.\u0275inj=u.G2t({})}}return H})();class k0 extends K1{constructor(G,D,e1){super(o3(D),J2(e1,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,e1={}){this.controls.splice(G,0,D),this._registerControl(D),this.updateValueAndValidity({emitEvent:e1.emitEvent})}removeAt(G,D={}){let e1=this._adjustIndex(G);e1<0&&(e1=0),this.controls[e1]&&this.controls[e1]._registerOnCollectionChange(()=>{}),this.controls.splice(e1,1),this.updateValueAndValidity({emitEvent:D.emitEvent})}setControl(G,D,e1={}){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:e1.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(G,D={}){E1(this,0,G),G.forEach((e1,w1)=>{u1(this,!1,w1),this.at(w1).setValue(e1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(G.forEach((e1,w1)=>{this.at(w1)&&this.at(w1).patchValue(e1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G=[],D={}){this._forEachChild((e1,w1)=>{e1.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,e1)=>!!e1._syncPendingControls()||D,!1);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){this.controls.forEach((D,e1)=>{G(D,e1)})}_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 K3(H){return!!H&&(void 0!==H.asyncValidators||void 0!==H.validators||void 0!==H.updateOn)}let j3=(()=>{class H{constructor(){this.useNonNullable=!1}get nonNullable(){const D=new H;return D.useNonNullable=!0,D}group(D,e1=null){const w1=this._reduceControls(D);let j2={};return K3(e1)?j2=e1:null!==e1&&(j2.validators=e1.validator,j2.asyncValidators=e1.asyncValidator),new z2(w1,j2)}record(D,e1=null){const w1=this._reduceControls(D);return new l4(w1,e1)}control(D,e1,w1){let j2={};return this.useNonNullable?(K3(e1)?j2=e1:(j2.validators=e1,j2.asyncValidators=w1),new t4(D,{...j2,nonNullable:!0})):new t4(D,e1,w1)}array(D,e1,w1){const j2=D.map(y0=>this._createControl(y0));return new k0(j2,e1,w1)}_reduceControls(D){const e1={};return Object.keys(D).forEach(w1=>{e1[w1]=this._createControl(D[w1])}),e1}_createControl(D){return D instanceof t4||D instanceof K1?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(e1){return new(e1||H)}}static{this.\u0275prov=u.jDH({token:H,factory:H.\u0275fac,providedIn:"root"})}}return H})(),r6=(()=>{class H{static withConfig(D){return{ngModule:H,providers:[{provide:C4,useValue:D.callSetDisabledState??p4}]}}static{this.\u0275fac=function(e1){return new(e1||H)}}static{this.\u0275mod=u.$C({type:H})}static{this.\u0275inj=u.G2t({imports:[E4]})}}return H})(),m3=(()=>{class H{static withConfig(D){return{ngModule:H,providers:[{provide:a4,useValue:D.warnOnNgModelWithFormControl??"always"},{provide:C4,useValue:D.callSetDisabledState??p4}]}}static{this.\u0275fac=function(e1){return new(e1||H)}}static{this.\u0275mod=u.$C({type:H})}static{this.\u0275inj=u.G2t({imports:[E4]})}}return H})()},345:(k1,r1,v)=>{"use strict";v.d(r1,{Bb:()=>p0,W8:()=>g0,hE:()=>_4,sG:()=>W2,up:()=>y3});var u=v(4438),g=v(177);class e extends g.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class p extends e{static makeCurrent(){(0,g.ZD)(new p)}onAndCancel(M1,u1,E1){return M1.addEventListener(u1,E1),()=>{M1.removeEventListener(u1,E1)}}dispatchEvent(M1,u1){M1.dispatchEvent(u1)}remove(M1){M1.parentNode&&M1.parentNode.removeChild(M1)}createElement(M1,u1){return(u1=u1||this.getDefaultDocument()).createElement(M1)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(M1){return M1.nodeType===Node.ELEMENT_NODE}isShadowRoot(M1){return M1 instanceof DocumentFragment}getGlobalEventTarget(M1,u1){return"window"===u1?window:"document"===u1?M1:"body"===u1?M1.body:null}getBaseHref(M1){const u1=function S(){return L=L||document.querySelector("base"),L?L.getAttribute("href"):null}();return null==u1?null:function A(s1){return new URL(s1,document.baseURI).pathname}(u1)}resetBaseElement(){L=null}getUserAgent(){return window.navigator.userAgent}getCookie(M1){return(0,g._b)(document.cookie,M1)}}let L=null,c1=(()=>{class s1{build(){return new XMLHttpRequest}static{this.\u0275fac=function(E1){return new(E1||s1)}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const K=new u.nKC("");let L1=(()=>{class s1{constructor(u1,E1){this._zone=E1,this._eventNameToPlugin=new Map,u1.forEach(K1=>{K1.manager=this}),this._plugins=u1.slice().reverse()}addEventListener(u1,E1,K1){return this._findPluginFor(E1).addEventListener(u1,E1,K1)}getZone(){return this._zone}_findPluginFor(u1){let E1=this._eventNameToPlugin.get(u1);if(E1)return E1;if(E1=this._plugins.find(z2=>z2.supports(u1)),!E1)throw new u.wOt(5101,!1);return this._eventNameToPlugin.set(u1,E1),E1}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(K),u.KVO(u.SKi))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class j{constructor(M1){this._doc=M1}}const l1="ng-app-id";let m1=(()=>{class s1{constructor(u1,E1,K1,z2={}){this.doc=u1,this.appId=E1,this.nonce=K1,this.platformId=z2,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,g.Vy)(z2),this.resetHostNodes()}addStyles(u1){for(const E1 of u1)1===this.changeUsageCount(E1,1)&&this.onStyleAdded(E1)}removeStyles(u1){for(const E1 of u1)this.changeUsageCount(E1,-1)<=0&&this.onStyleRemoved(E1)}ngOnDestroy(){const u1=this.styleNodesInDOM;u1&&(u1.forEach(E1=>E1.remove()),u1.clear());for(const E1 of this.getAllStyles())this.onStyleRemoved(E1);this.resetHostNodes()}addHost(u1){this.hostNodes.add(u1);for(const E1 of this.getAllStyles())this.addStyleToHost(u1,E1)}removeHost(u1){this.hostNodes.delete(u1)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(u1){for(const E1 of this.hostNodes)this.addStyleToHost(E1,u1)}onStyleRemoved(u1){const E1=this.styleRef;E1.get(u1)?.elements?.forEach(K1=>K1.remove()),E1.delete(u1)}collectServerRenderedStyles(){const u1=this.doc.head?.querySelectorAll(`style[${l1}="${this.appId}"]`);if(u1?.length){const E1=new Map;return u1.forEach(K1=>{null!=K1.textContent&&E1.set(K1.textContent,K1)}),E1}return null}changeUsageCount(u1,E1){const K1=this.styleRef;if(K1.has(u1)){const z2=K1.get(u1);return z2.usage+=E1,z2.usage}return K1.set(u1,{usage:E1,elements:[]}),E1}getStyleElement(u1,E1){const K1=this.styleNodesInDOM,z2=K1?.get(E1);if(z2?.parentNode===u1)return K1.delete(E1),z2.removeAttribute(l1),z2;{const M2=this.doc.createElement("style");return this.nonce&&M2.setAttribute("nonce",this.nonce),M2.textContent=E1,this.platformIsServer&&M2.setAttribute(l1,this.appId),u1.appendChild(M2),M2}}addStyleToHost(u1,E1){const K1=this.getStyleElement(u1,E1),z2=this.styleRef,M2=z2.get(E1)?.elements;M2?M2.push(K1):z2.set(E1,{elements:[K1],usage:1})}resetHostNodes(){const u1=this.hostNodes;u1.clear(),u1.add(this.doc.head)}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ),u.KVO(u.sZ2),u.KVO(u.BIS,8),u.KVO(u.Agw))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const f1={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/"},$1=/%COMP%/g,s2=new u.nKC("",{providedIn:"root",factory:()=>!0});function B2(s1,M1){return M1.map(u1=>u1.replace($1,s1))}let o2=(()=>{class s1{constructor(u1,E1,K1,z2,M2,R0,r0,l4=null){this.eventManager=u1,this.sharedStylesHost=E1,this.appId=K1,this.removeStylesOnCompDestroy=z2,this.doc=M2,this.platformId=R0,this.ngZone=r0,this.nonce=l4,this.rendererByCompId=new Map,this.platformIsServer=(0,g.Vy)(R0),this.defaultRenderer=new C2(u1,M2,r0,this.platformIsServer)}createRenderer(u1,E1){if(!u1||!E1)return this.defaultRenderer;this.platformIsServer&&E1.encapsulation===u.gXe.ShadowDom&&(E1={...E1,encapsulation:u.gXe.Emulated});const K1=this.getOrCreateRenderer(u1,E1);return K1 instanceof x4?K1.applyToHost(u1):K1 instanceof F0&&K1.applyStyles(),K1}getOrCreateRenderer(u1,E1){const K1=this.rendererByCompId;let z2=K1.get(E1.id);if(!z2){const M2=this.doc,R0=this.ngZone,r0=this.eventManager,l4=this.sharedStylesHost,R3=this.removeStylesOnCompDestroy,C4=this.platformIsServer;switch(E1.encapsulation){case u.gXe.Emulated:z2=new x4(r0,l4,E1,this.appId,R3,M2,R0,C4);break;case u.gXe.ShadowDom:return new g4(r0,l4,u1,E1,M2,R0,this.nonce,C4);default:z2=new F0(r0,l4,E1,R3,M2,R0,C4)}K1.set(E1.id,z2)}return z2}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(L1),u.KVO(m1),u.KVO(u.sZ2),u.KVO(s2),u.KVO(g.qQ),u.KVO(u.Agw),u.KVO(u.SKi),u.KVO(u.BIS))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class C2{constructor(M1,u1,E1,K1){this.eventManager=M1,this.doc=u1,this.ngZone=E1,this.platformIsServer=K1,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(M1,u1){return u1?this.doc.createElementNS(f1[u1]||u1,M1):this.doc.createElement(M1)}createComment(M1){return this.doc.createComment(M1)}createText(M1){return this.doc.createTextNode(M1)}appendChild(M1,u1){(K2(M1)?M1.content:M1).appendChild(u1)}insertBefore(M1,u1,E1){M1&&(K2(M1)?M1.content:M1).insertBefore(u1,E1)}removeChild(M1,u1){M1&&M1.removeChild(u1)}selectRootElement(M1,u1){let E1="string"==typeof M1?this.doc.querySelector(M1):M1;if(!E1)throw new u.wOt(-5104,!1);return u1||(E1.textContent=""),E1}parentNode(M1){return M1.parentNode}nextSibling(M1){return M1.nextSibling}setAttribute(M1,u1,E1,K1){if(K1){u1=K1+":"+u1;const z2=f1[K1];z2?M1.setAttributeNS(z2,u1,E1):M1.setAttribute(u1,E1)}else M1.setAttribute(u1,E1)}removeAttribute(M1,u1,E1){if(E1){const K1=f1[E1];K1?M1.removeAttributeNS(K1,u1):M1.removeAttribute(`${E1}:${u1}`)}else M1.removeAttribute(u1)}addClass(M1,u1){M1.classList.add(u1)}removeClass(M1,u1){M1.classList.remove(u1)}setStyle(M1,u1,E1,K1){K1&(u.czy.DashCase|u.czy.Important)?M1.style.setProperty(u1,E1,K1&u.czy.Important?"important":""):M1.style[u1]=E1}removeStyle(M1,u1,E1){E1&u.czy.DashCase?M1.style.removeProperty(u1):M1.style[u1]=""}setProperty(M1,u1,E1){null!=M1&&(M1[u1]=E1)}setValue(M1,u1){M1.nodeValue=u1}listen(M1,u1,E1){if("string"==typeof M1&&!(M1=(0,g.QT)().getGlobalEventTarget(this.doc,M1)))throw new Error(`Unsupported event target ${M1} for event ${u1}`);return this.eventManager.addEventListener(M1,u1,this.decoratePreventDefault(E1))}decoratePreventDefault(M1){return u1=>{if("__ngUnwrap__"===u1)return M1;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>M1(u1)):M1(u1))&&u1.preventDefault()}}}function K2(s1){return"TEMPLATE"===s1.tagName&&void 0!==s1.content}class g4 extends C2{constructor(M1,u1,E1,K1,z2,M2,R0,r0){super(M1,z2,M2,r0),this.sharedStylesHost=u1,this.hostEl=E1,this.shadowRoot=E1.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l4=B2(K1.id,K1.styles);for(const R3 of l4){const C4=document.createElement("style");R0&&C4.setAttribute("nonce",R0),C4.textContent=R3,this.shadowRoot.appendChild(C4)}}nodeOrShadowRoot(M1){return M1===this.hostEl?this.shadowRoot:M1}appendChild(M1,u1){return super.appendChild(this.nodeOrShadowRoot(M1),u1)}insertBefore(M1,u1,E1){return super.insertBefore(this.nodeOrShadowRoot(M1),u1,E1)}removeChild(M1,u1){return super.removeChild(this.nodeOrShadowRoot(M1),u1)}parentNode(M1){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(M1)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends C2{constructor(M1,u1,E1,K1,z2,M2,R0,r0){super(M1,z2,M2,R0),this.sharedStylesHost=u1,this.removeStylesOnCompDestroy=K1,this.styles=r0?B2(r0,E1.styles):E1.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class x4 extends F0{constructor(M1,u1,E1,K1,z2,M2,R0,r0){const l4=K1+"-"+E1.id;super(M1,u1,E1,z2,M2,R0,r0,l4),this.contentAttr=function c2(s1){return"_ngcontent-%COMP%".replace($1,s1)}(l4),this.hostAttr=function P1(s1){return"_nghost-%COMP%".replace($1,s1)}(l4)}applyToHost(M1){this.applyStyles(),this.setAttribute(M1,this.hostAttr,"")}createElement(M1,u1){const E1=super.createElement(M1,u1);return super.setAttribute(E1,this.contentAttr,""),E1}}let _2=(()=>{class s1 extends j{constructor(u1){super(u1)}supports(u1){return!0}addEventListener(u1,E1,K1){return u1.addEventListener(E1,K1,!1),()=>this.removeEventListener(u1,E1,K1)}removeEventListener(u1,E1,K1){return u1.removeEventListener(E1,K1)}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const D0=["alt","control","meta","shift"],F1={"\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 h2=(()=>{class s1 extends j{constructor(u1){super(u1)}supports(u1){return null!=s1.parseEventName(u1)}addEventListener(u1,E1,K1){const z2=s1.parseEventName(E1),M2=s1.eventCallback(z2.fullKey,K1,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.QT)().onAndCancel(u1,z2.domEventName,M2))}static parseEventName(u1){const E1=u1.toLowerCase().split("."),K1=E1.shift();if(0===E1.length||"keydown"!==K1&&"keyup"!==K1)return null;const z2=s1._normalizeKey(E1.pop());let M2="",R0=E1.indexOf("code");if(R0>-1&&(E1.splice(R0,1),M2="code."),D0.forEach(l4=>{const R3=E1.indexOf(l4);R3>-1&&(E1.splice(R3,1),M2+=l4+".")}),M2+=z2,0!=E1.length||0===z2.length)return null;const r0={};return r0.domEventName=K1,r0.fullKey=M2,r0}static matchEventFullKeyCode(u1,E1){let K1=F1[u1.key]||u1.key,z2="";return E1.indexOf("code.")>-1&&(K1=u1.code,z2="code."),!(null==K1||!K1)&&(K1=K1.toLowerCase()," "===K1?K1="space":"."===K1&&(K1="dot"),D0.forEach(M2=>{M2!==K1&&(0,e2[M2])(u1)&&(z2+=M2+".")}),z2+=K1,z2===E1)}static eventCallback(u1,E1,K1){return z2=>{s1.matchEventFullKeyCode(z2,u1)&&K1.runGuarded(()=>E1(z2))}}static _normalizeKey(u1){return"esc"===u1?"escape":u1}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const W2=(0,u.oH4)(u.fpN,"browser",[{provide:u.Agw,useValue:g.AJ},{provide:u.PLl,useValue:function Z1(){p.makeCurrent()},multi:!0},{provide:g.qQ,useFactory:function X1(){return(0,u.TL$)(document),document},deps:[]}]),s0=new u.nKC(""),V2=[{provide:u.e01,useClass:class V{addToWindow(M1){u.JZv.getAngularTestability=(E1,K1=!0)=>{const z2=M1.findTestabilityInTree(E1,K1);if(null==z2)throw new u.wOt(5103,!1);return z2},u.JZv.getAllAngularTestabilities=()=>M1.getAllTestabilities(),u.JZv.getAllAngularRootElements=()=>M1.getAllRootElements(),u.JZv.frameworkStabilizers||(u.JZv.frameworkStabilizers=[]),u.JZv.frameworkStabilizers.push(E1=>{const K1=u.JZv.getAllAngularTestabilities();let z2=K1.length;const M2=function(){z2--,0==z2&&E1()};K1.forEach(R0=>{R0.whenStable(M2)})})}findTestabilityInTree(M1,u1,E1){return null==u1?null:M1.getTestability(u1)??(E1?(0,g.QT)().isShadowRoot(u1)?this.findTestabilityInTree(M1,u1.host,!0):this.findTestabilityInTree(M1,u1.parentElement,!0):null)}},deps:[]},{provide:u.WHO,useClass:u.NYb,deps:[u.SKi,u.giA,u.e01]},{provide:u.NYb,useClass:u.NYb,deps:[u.SKi,u.giA,u.e01]}],v0=[{provide:u.H8p,useValue:"root"},{provide:u.zcH,useFactory:function Z(){return new u.zcH},deps:[]},{provide:K,useClass:_2,multi:!0,deps:[g.qQ,u.SKi,u.Agw]},{provide:K,useClass:h2,multi:!0,deps:[g.qQ]},o2,m1,L1,{provide:u._9s,useExisting:o2},{provide:g.N0,useClass:c1,deps:[]},[]];let p0=(()=>{class s1{constructor(u1){}static withServerTransition(u1){return{ngModule:s1,providers:[{provide:u.sZ2,useValue:u1.appId}]}}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(s0,12))}}static{this.\u0275mod=u.$C({type:s1})}static{this.\u0275inj=u.G2t({providers:[...v0,...V2],imports:[g.MD,u.Hbi]})}}return s1})(),g0=(()=>{class s1{constructor(u1){this._doc=u1,this._dom=(0,g.QT)()}addTag(u1,E1=!1){return u1?this._getOrCreateElement(u1,E1):null}addTags(u1,E1=!1){return u1?u1.reduce((K1,z2)=>(z2&&K1.push(this._getOrCreateElement(z2,E1)),K1),[]):[]}getTag(u1){return u1&&this._doc.querySelector(`meta[${u1}]`)||null}getTags(u1){if(!u1)return[];const E1=this._doc.querySelectorAll(`meta[${u1}]`);return E1?[].slice.call(E1):[]}updateTag(u1,E1){if(!u1)return null;E1=E1||this._parseSelector(u1);const K1=this.getTag(E1);return K1?this._setMetaElementAttributes(u1,K1):this._getOrCreateElement(u1,!0)}removeTag(u1){this.removeTagElement(this.getTag(u1))}removeTagElement(u1){u1&&this._dom.remove(u1)}_getOrCreateElement(u1,E1=!1){if(!E1){const M2=this._parseSelector(u1),R0=this.getTags(M2).filter(r0=>this._containsAttributes(u1,r0))[0];if(void 0!==R0)return R0}const K1=this._dom.createElement("meta");return this._setMetaElementAttributes(u1,K1),this._doc.getElementsByTagName("head")[0].appendChild(K1),K1}_setMetaElementAttributes(u1,E1){return Object.keys(u1).forEach(K1=>E1.setAttribute(this._getMetaKeyMap(K1),u1[K1])),E1}_parseSelector(u1){const E1=u1.name?"name":"property";return`${E1}="${u1[E1]}"`}_containsAttributes(u1,E1){return Object.keys(u1).every(K1=>E1.getAttribute(this._getMetaKeyMap(K1))===u1[K1])}_getMetaKeyMap(u1){return Y0[u1]||u1}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})();const Y0={httpEquiv:"http-equiv"};let _4=(()=>{class s1{constructor(u1){this._doc=u1}getTitle(){return this._doc.title}setTitle(u1){this._doc.title=u1||""}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})(),y3=(()=>{class s1{static{this.\u0275fac=function(E1){return new(E1||s1)}}static{this.\u0275prov=u.jDH({token:s1,factory:function(E1){let K1=null;return K1=E1?new(E1||s1):u.KVO(n0),K1},providedIn:"root"})}}return s1})(),n0=(()=>{class s1 extends y3{constructor(u1){super(),this._doc=u1}sanitize(u1,E1){if(null==E1)return null;switch(u1){case u.WPN.NONE:return E1;case u.WPN.HTML:return(0,u.ZF7)(E1,"HTML")?(0,u.rcV)(E1):(0,u.h9k)(this._doc,String(E1)).toString();case u.WPN.STYLE:return(0,u.ZF7)(E1,"Style")?(0,u.rcV)(E1):E1;case u.WPN.SCRIPT:if((0,u.ZF7)(E1,"Script"))return(0,u.rcV)(E1);throw new u.wOt(5200,!1);case u.WPN.URL:return(0,u.ZF7)(E1,"URL")?(0,u.rcV)(E1):(0,u.$MX)(String(E1));case u.WPN.RESOURCE_URL:if((0,u.ZF7)(E1,"ResourceURL"))return(0,u.rcV)(E1);throw new u.wOt(5201,!1);default:throw new u.wOt(5202,!1)}}bypassSecurityTrustHtml(u1){return(0,u.Kcf)(u1)}bypassSecurityTrustStyle(u1){return(0,u.cWb)(u1)}bypassSecurityTrustScript(u1){return(0,u.UyX)(u1)}bypassSecurityTrustUrl(u1){return(0,u.osQ)(u1)}bypassSecurityTrustResourceUrl(u1){return(0,u.e5t)(u1)}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})()},1600:(k1,r1,v)=>{"use strict";v.d(r1,{nX:()=>X3,wF:()=>z4,Z:()=>t4,Ix:()=>z1,Wk:()=>T2,iI:()=>Y2,n3:()=>k3});var u=v(467),g=v(4438),e=v(4402),p=v(6648),L=v(7673),S=v(4412),A=v(4572),V=v(9350),c1=v(8793),K=v(9030),L1=v(1203),j=v(1985),l1=v(8071);function m1(x,N){const b=(0,l1.T)(x)?x:()=>x,E=B=>B.error(b());return new j.c(N?B=>N.schedule(E,0,B):E)}var f1=v(983),$1=v(8359),g1=v(9974),H1=v(4360);function r2(){return(0,g1.N)((x,N)=>{let b=null;x._refCount++;const E=(0,H1._)(N,void 0,void 0,void 0,()=>{if(!x||x._refCount<=0||0<--x._refCount)return void(b=null);const B=x._connection,Q=b;b=null,B&&(!Q||B===Q)&&B.unsubscribe(),N.unsubscribe()});x.subscribe(E),E.closed||(b=x.connect())})}class c0 extends j.c{constructor(N,b){super(),this.source=N,this.subjectFactory=b,this._subject=null,this._refCount=0,this._connection=null,(0,g1.S)(N)&&(this.lift=N.lift)}_subscribe(N){return this.getSubject().subscribe(N)}getSubject(){const N=this._subject;return(!N||N.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:N}=this;this._subject=this._connection=null,N?.unsubscribe()}connect(){let N=this._connection;if(!N){N=this._connection=new $1.yU;const b=this.getSubject();N.add(this.source.subscribe((0,H1._)(b,void 0,()=>{this._teardown(),b.complete()},E=>{this._teardown(),b.error(E)},()=>this._teardown()))),N.closed&&(this._connection=null,N=$1.yU.EMPTY)}return N}refCount(){return r2()(this)}}var s2=v(1413),c2=v(177),P1=v(6354),B2=v(5558),o2=v(6697),C2=v(9172),k2=v(5964),g2=v(1397),K2=v(1594),g4=v(274),F0=v(8141),x4=v(9437);var F1=v(9901);function e2(x){return x<=0?()=>f1.w:(0,g1.N)((N,b)=>{let E=[];N.subscribe((0,H1._)(b,B=>{E.push(B),x{for(const B of E)b.next(B);b.complete()},void 0,()=>{E=null}))})}var h2=v(3774),D1=v(3669),A1=v(3703),v1=v(980),Z1=v(6977),Z=v(6365),X1=v(345);const O1="primary",W2=Symbol("RouteTitle");class s0{constructor(N){this.params=N||{}}has(N){return Object.prototype.hasOwnProperty.call(this.params,N)}get(N){if(this.has(N)){const b=this.params[N];return Array.isArray(b)?b[0]:b}return null}getAll(N){if(this.has(N)){const b=this.params[N];return Array.isArray(b)?b:[b]}return[]}get keys(){return Object.keys(this.params)}}function V2(x){return new s0(x)}function v0(x,N,b){const E=b.path.split("/");if(E.length>x.length||"full"===b.pathMatch&&(N.hasChildren()||E.lengthE[Q]===B)}return x===N}function m2(x){return x.length>0?x[x.length-1]:null}function n4(x){return(0,e.A)(x)?x:(0,g.jNT)(x)?(0,p.H)(Promise.resolve(x)):(0,L.of)(x)}const L4={exact:function H4(x,N,b){if(!n0(x.segments,N.segments)||!$4(x.segments,N.segments,b)||x.numberOfChildren!==N.numberOfChildren)return!1;for(const E in N.children)if(!x.children[E]||!H4(x.children[E],N.children[E],b))return!1;return!0},subset:o0},H3={exact:function J6(x,N){return g0(x,N)},subset:function t0(x,N){return Object.keys(N).length<=Object.keys(x).length&&Object.keys(N).every(b=>_4(x[b],N[b]))},ignored:()=>!0};function X4(x,N,b){return L4[b.paths](x.root,N.root,b.matrixParams)&&H3[b.queryParams](x.queryParams,N.queryParams)&&!("exact"===b.fragment&&x.fragment!==N.fragment)}function o0(x,N,b){return K4(x,N,N.segments,b)}function K4(x,N,b,E){if(x.segments.length>b.length){const B=x.segments.slice(0,b.length);return!(!n0(B,b)||N.hasChildren()||!$4(B,b,E))}if(x.segments.length===b.length){if(!n0(x.segments,b)||!$4(x.segments,b,E))return!1;for(const B in N.children)if(!x.children[B]||!o0(x.children[B],N.children[B],E))return!1;return!0}{const B=b.slice(0,x.segments.length),Q=b.slice(x.segments.length);return!!(n0(x.segments,B)&&$4(x.segments,B,E)&&x.children[O1])&&K4(x.children[O1],N,Q,E)}}function $4(x,N,b){return N.every((E,B)=>H3[b](x[B].parameters,E.parameters))}class _0{constructor(N=new U0([],{}),b={},E=null){this.root=N,this.queryParams=b,this.fragment=E}get queryParamMap(){return this._queryParamMap??=V2(this.queryParams),this._queryParamMap}toString(){return h3.serialize(this)}}class U0{constructor(N,b){this.segments=N,this.children=b,this.parent=null,Object.values(b).forEach(E=>E.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return T0(this)}}class f4{constructor(N,b){this.path=N,this.parameters=b}get parameterMap(){return this._parameterMap??=V2(this.parameters),this._parameterMap}toString(){return E1(this)}}function n0(x,N){return x.length===N.length&&x.every((b,E)=>b.path===N[E].path)}let f0=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>new x0,providedIn:"root"})}}return x})();class x0{parse(N){const b=new R2(N);return new _0(b.parseRootSegment(),b.parseQueryParams(),b.parseFragment())}serialize(N){const b=`/${v4(N.root,!0)}`,E=function z2(x){const N=Object.entries(x).map(([b,E])=>Array.isArray(E)?E.map(B=>`${c3(b)}=${c3(B)}`).join("&"):`${c3(b)}=${c3(E)}`).filter(b=>b);return N.length?`?${N.join("&")}`:""}(N.queryParams);return`${b}${E}${"string"==typeof N.fragment?`#${function J2(x){return encodeURI(x)}(N.fragment)}`:""}`}}const h3=new x0;function T0(x){return x.segments.map(N=>E1(N)).join("/")}function v4(x,N){if(!x.hasChildren())return T0(x);if(N){const b=x.children[O1]?v4(x.children[O1],!1):"",E=[];return Object.entries(x.children).forEach(([B,Q])=>{B!==O1&&E.push(`${B}:${v4(Q,!1)}`)}),E.length>0?`${b}(${E.join("//")})`:b}{const b=function e3(x,N){let b=[];return Object.entries(x.children).forEach(([E,B])=>{E===O1&&(b=b.concat(N(B,E)))}),Object.entries(x.children).forEach(([E,B])=>{E!==O1&&(b=b.concat(N(B,E)))}),b}(x,(E,B)=>B===O1?[v4(x.children[O1],!1)]:[`${B}:${v4(E,!1)}`]);return 1===Object.keys(x.children).length&&null!=x.children[O1]?`${T0(x)}/${b[0]}`:`${T0(x)}/(${b.join("//")})`}}function o3(x){return encodeURIComponent(x).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function c3(x){return o3(x).replace(/%3B/gi,";")}function s1(x){return o3(x).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function M1(x){return decodeURIComponent(x)}function u1(x){return M1(x.replace(/\+/g,"%20"))}function E1(x){return`${s1(x.path)}${function K1(x){return Object.entries(x).map(([N,b])=>`;${s1(N)}=${s1(b)}`).join("")}(x.parameters)}`}const M2=/^[^\/()?;#]+/;function R0(x){const N=x.match(M2);return N?N[0]:""}const r0=/^[^\/()?;=#]+/,R3=/^[^=?&#]+/,p4=/^[^&#]+/;class R2{constructor(N){this.url=N,this.remaining=N}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new U0([],{}):new U0([],this.parseChildren())}parseQueryParams(){const N={};if(this.consumeOptional("?"))do{this.parseQueryParam(N)}while(this.consumeOptional("&"));return N}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const N=[];for(this.peekStartsWith("(")||N.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),N.push(this.parseSegment());let b={};this.peekStartsWith("/(")&&(this.capture("/"),b=this.parseParens(!0));let E={};return this.peekStartsWith("(")&&(E=this.parseParens(!1)),(N.length>0||Object.keys(b).length>0)&&(E[O1]=new U0(N,b)),E}parseSegment(){const N=R0(this.remaining);if(""===N&&this.peekStartsWith(";"))throw new g.wOt(4009,!1);return this.capture(N),new f4(M1(N),this.parseMatrixParams())}parseMatrixParams(){const N={};for(;this.consumeOptional(";");)this.parseParam(N);return N}parseParam(N){const b=function l4(x){const N=x.match(r0);return N?N[0]:""}(this.remaining);if(!b)return;this.capture(b);let E="";if(this.consumeOptional("=")){const B=R0(this.remaining);B&&(E=B,this.capture(E))}N[M1(b)]=M1(E)}parseQueryParam(N){const b=function C4(x){const N=x.match(R3);return N?N[0]:""}(this.remaining);if(!b)return;this.capture(b);let E="";if(this.consumeOptional("=")){const C1=function b4(x){const N=x.match(p4);return N?N[0]:""}(this.remaining);C1&&(E=C1,this.capture(E))}const B=u1(b),Q=u1(E);if(N.hasOwnProperty(B)){let C1=N[B];Array.isArray(C1)||(C1=[C1],N[B]=C1),C1.push(Q)}else N[B]=Q}parseParens(N){const b={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const E=R0(this.remaining),B=this.remaining[E.length];if("/"!==B&&")"!==B&&";"!==B)throw new g.wOt(4010,!1);let Q;E.indexOf(":")>-1?(Q=E.slice(0,E.indexOf(":")),this.capture(Q),this.capture(":")):N&&(Q=O1);const C1=this.parseChildren();b[Q]=1===Object.keys(C1).length?C1[O1]:new U0([],C1),this.consumeOptional("//")}return b}peekStartsWith(N){return this.remaining.startsWith(N)}consumeOptional(N){return!!this.peekStartsWith(N)&&(this.remaining=this.remaining.substring(N.length),!0)}capture(N){if(!this.consumeOptional(N))throw new g.wOt(4011,!1)}}function L0(x){return x.segments.length>0?new U0([],{[O1]:x}):x}function P2(x){const N={};for(const[E,B]of Object.entries(x.children)){const Q=P2(B);if(E===O1&&0===Q.segments.length&&Q.hasChildren())for(const[C1,G1]of Object.entries(Q.children))N[C1]=G1;else(Q.segments.length>0||Q.hasChildren())&&(N[E]=Q)}return function I4(x){if(1===x.numberOfChildren&&x.children[O1]){const N=x.children[O1];return new U0(x.segments.concat(N.segments),N.children)}return x}(new U0(x.segments,N))}function s4(x){return x instanceof _0}function i6(x){let N;const B=L0(function b(Q){const C1={};for(const V1 of Q.children){const I2=b(V1);C1[V1.outlet]=I2}const G1=new U0(Q.url,C1);return Q===x&&(N=G1),G1}(x.root));return N??B}function j4(x,N,b,E){let B=x;for(;B.parent;)B=B.parent;if(0===N.length)return b1(B,B,B,b,E);const Q=function A3(x){if("string"==typeof x[0]&&1===x.length&&"/"===x[0])return new _3(!0,0,x);let N=0,b=!1;const E=x.reduce((B,Q,C1)=>{if("object"==typeof Q&&null!=Q){if(Q.outlets){const G1={};return Object.entries(Q.outlets).forEach(([V1,I2])=>{G1[V1]="string"==typeof I2?I2.split("/"):I2}),[...B,{outlets:G1}]}if(Q.segmentPath)return[...B,Q.segmentPath]}return"string"!=typeof Q?[...B,Q]:0===C1?(Q.split("/").forEach((G1,V1)=>{0==V1&&"."===G1||(0==V1&&""===G1?b=!0:".."===G1?N++:""!=G1&&B.push(G1))}),B):[...B,Q]},[]);return new _3(b,N,E)}(N);if(Q.toRoot())return b1(B,B,new U0([],{}),b,E);const C1=function F3(x,N,b){if(x.isAbsolute)return new Y3(N,!0,0);if(!b)return new Y3(N,!1,NaN);if(null===b.parent)return new Y3(b,!0,0);const E=b0(x.commands[0])?0:1;return function a1(x,N,b){let E=x,B=N,Q=b;for(;Q>B;){if(Q-=B,E=E.parent,!E)throw new g.wOt(4005,!1);B=E.segments.length}return new Y3(E,!1,B-Q)}(b,b.segments.length-1+E,x.numberOfDoubleDots)}(Q,B,x),G1=C1.processChildren?W1(C1.segmentGroup,C1.index,Q.commands):y1(C1.segmentGroup,C1.index,Q.commands);return b1(B,C1.segmentGroup,G1,b,E)}function b0(x){return"object"==typeof x&&null!=x&&!x.outlets&&!x.segmentPath}function G3(x){return"object"==typeof x&&null!=x&&x.outlets}function b1(x,N,b,E,B){let C1,Q={};E&&Object.entries(E).forEach(([V1,I2])=>{Q[V1]=Array.isArray(I2)?I2.map(G0=>`${G0}`):`${I2}`}),C1=x===N?b:g3(x,N,b);const G1=L0(P2(C1));return new _0(G1,Q,B)}function g3(x,N,b){const E={};return Object.entries(x.children).forEach(([B,Q])=>{E[B]=Q===N?b:g3(Q,N,b)}),new U0(x.segments,E)}class _3{constructor(N,b,E){if(this.isAbsolute=N,this.numberOfDoubleDots=b,this.commands=E,N&&E.length>0&&b0(E[0]))throw new g.wOt(4003,!1);const B=E.find(G3);if(B&&B!==m2(E))throw new g.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Y3{constructor(N,b,E){this.segmentGroup=N,this.processChildren=b,this.index=E}}function y1(x,N,b){if(x??=new U0([],{}),0===x.segments.length&&x.hasChildren())return W1(x,N,b);const E=function Y1(x,N,b){let E=0,B=N;const Q={match:!1,pathIndex:0,commandIndex:0};for(;B=b.length)return Q;const C1=x.segments[B],G1=b[E];if(G3(G1))break;const V1=`${G1}`,I2=E0&&void 0===V1)break;if(V1&&I2&&"object"==typeof I2&&void 0===I2.outlets){if(!$2(V1,I2,C1))return Q;E+=2}else{if(!$2(V1,{},C1))return Q;E++}B++}return{match:!0,pathIndex:B,commandIndex:E}}(x,N,b),B=b.slice(E.commandIndex);if(E.match&&E.pathIndexQ!==O1)&&x.children[O1]&&1===x.numberOfChildren&&0===x.children[O1].segments.length){const Q=W1(x.children[O1],N,b);return new U0(x.segments,Q.children)}return Object.entries(E).forEach(([Q,C1])=>{"string"==typeof C1&&(C1=[C1]),null!==C1&&(B[Q]=y1(x.children[Q],N,C1))}),Object.entries(x.children).forEach(([Q,C1])=>{void 0===E[Q]&&(B[Q]=C1)}),new U0(x.segments,B)}}function d2(x,N,b){const E=x.segments.slice(0,N);let B=0;for(;B{"string"==typeof E&&(E=[E]),null!==E&&(N[b]=d2(new U0([],{}),0,E))}),N}function C0(x){const N={};return Object.entries(x).forEach(([b,E])=>N[b]=`${E}`),N}function $2(x,N,b){return x==b.path&&g0(N,b.parameters)}const J0="imperative";var e0=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}(e0||{});class a0{constructor(N,b){this.id=N,this.url=b}}class t4 extends a0{constructor(N,b,E="imperative",B=null){super(N,b),this.type=e0.NavigationStart,this.navigationTrigger=E,this.restoredState=B}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class z4 extends a0{constructor(N,b,E){super(N,b),this.urlAfterRedirects=E,this.type=e0.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var c4=function(x){return x[x.Redirect=0]="Redirect",x[x.SupersededByNewNavigation=1]="SupersededByNewNavigation",x[x.NoDataFromResolver=2]="NoDataFromResolver",x[x.GuardRejected=3]="GuardRejected",x}(c4||{}),A0=function(x){return x[x.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",x[x.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",x}(A0||{});class I0 extends a0{constructor(N,b,E,B){super(N,b),this.reason=E,this.code=B,this.type=e0.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class y4 extends a0{constructor(N,b,E,B){super(N,b),this.reason=E,this.code=B,this.type=e0.NavigationSkipped}}class P4 extends a0{constructor(N,b,E,B){super(N,b),this.error=E,this.target=B,this.type=e0.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class q0 extends a0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=e0.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G4 extends a0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=e0.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class S4 extends a0{constructor(N,b,E,B,Q){super(N,b),this.urlAfterRedirects=E,this.state=B,this.shouldActivate=Q,this.type=e0.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class O4 extends a0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=e0.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class y2 extends a0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=e0.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class P0{constructor(N){this.route=N,this.type=e0.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class P6{constructor(N){this.route=N,this.type=e0.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class i3{constructor(N){this.snapshot=N,this.type=e0.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class q3{constructor(N){this.snapshot=N,this.type=e0.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class N8{constructor(N){this.snapshot=N,this.type=e0.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E8{constructor(N){this.snapshot=N,this.type=e0.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class y6{constructor(N,b,E){this.routerEvent=N,this.position=b,this.anchor=E,this.type=e0.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class u0{}class Q2{constructor(N){this.url=N}}class a4{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new r3,this.attachRef=null}}let r3=(()=>{class x{constructor(){this.contexts=new Map}onChildOutletCreated(b,E){const B=this.getOrCreateContext(b);B.outlet=E,this.contexts.set(b,B)}onChildOutletDestroyed(b){const E=this.getContext(b);E&&(E.outlet=null,E.attachRef=null)}onOutletDeactivated(){const b=this.contexts;return this.contexts=new Map,b}onOutletReAttached(b){this.contexts=b}getOrCreateContext(b){let E=this.getContext(b);return E||(E=new a4,this.contexts.set(b,E)),E}getContext(b){return this.contexts.get(b)||null}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();class v3{constructor(N){this._root=N}get root(){return this._root.value}parent(N){const b=this.pathFromRoot(N);return b.length>1?b[b.length-2]:null}children(N){const b=L3(N,this._root);return b?b.children.map(E=>E.value):[]}firstChild(N){const b=L3(N,this._root);return b&&b.children.length>0?b.children[0].value:null}siblings(N){const b=t3(N,this._root);return b.length<2?[]:b[b.length-2].children.map(B=>B.value).filter(B=>B!==N)}pathFromRoot(N){return t3(N,this._root).map(b=>b.value)}}function L3(x,N){if(x===N.value)return N;for(const b of N.children){const E=L3(x,b);if(E)return E}return null}function t3(x,N){if(x===N.value)return[N];for(const b of N.children){const E=t3(x,b);if(E.length)return E.unshift(N),E}return[]}class F4{constructor(N,b){this.value=N,this.children=b}toString(){return`TreeNode(${this.value})`}}function N4(x){const N={};return x&&x.children.forEach(b=>N[b.value.outlet]=b),N}class Z0 extends v3{constructor(N,b){super(N),this.snapshot=b,Z6(this,N)}toString(){return this.snapshot.toString()}}function h6(x){const N=function Y8(x){const Q=new Q6([],{},{},"",{},O1,x,null,{});return new W3("",new F4(Q,[]))}(x),b=new S.t([new f4("",{})]),E=new S.t({}),B=new S.t({}),Q=new S.t({}),C1=new S.t(""),G1=new X3(b,E,Q,C1,B,O1,x,N.root);return G1.snapshot=N.root,new Z0(new F4(G1,[]),N)}class X3{constructor(N,b,E,B,Q,C1,G1,V1){this.urlSubject=N,this.paramsSubject=b,this.queryParamsSubject=E,this.fragmentSubject=B,this.dataSubject=Q,this.outlet=C1,this.component=G1,this._futureSnapshot=V1,this.title=this.dataSubject?.pipe((0,P1.T)(I2=>I2[W2]))??(0,L.of)(void 0),this.url=N,this.params=b,this.queryParams=E,this.fragment=B,this.data=Q}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,P1.T)(N=>V2(N))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,P1.T)(N=>V2(N))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function C3(x,N,b="emptyOnly"){let E;const{routeConfig:B}=x;return E=null===N||"always"!==b&&""!==B?.path&&(N.component||N.routeConfig?.loadComponent)?{params:{...x.params},data:{...x.data},resolve:{...x.data,...x._resolvedData??{}}}:{params:{...N.params,...x.params},data:{...N.data,...x.data},resolve:{...x.data,...N.data,...B?.data,...x._resolvedData}},B&&z3(B)&&(E.resolve[W2]=B.title),E}class Q6{get title(){return this.data?.[W2]}constructor(N,b,E,B,Q,C1,G1,V1,I2){this.url=N,this.params=b,this.queryParams=E,this.fragment=B,this.data=Q,this.outlet=C1,this.component=G1,this.routeConfig=V1,this._resolve=I2}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??=V2(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=V2(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(E=>E.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class W3 extends v3{constructor(N,b){super(b),this.url=N,Z6(this,b)}toString(){return k4(this._root)}}function Z6(x,N){N.value._routerState=x,N.children.forEach(b=>Z6(x,b))}function k4(x){const N=x.children.length>0?` { ${x.children.map(k4).join(", ")} } `:"";return`${x.value}${N}`}function I3(x){if(x.snapshot){const N=x.snapshot,b=x._futureSnapshot;x.snapshot=b,g0(N.queryParams,b.queryParams)||x.queryParamsSubject.next(b.queryParams),N.fragment!==b.fragment&&x.fragmentSubject.next(b.fragment),g0(N.params,b.params)||x.paramsSubject.next(b.params),function p0(x,N){if(x.length!==N.length)return!1;for(let b=0;bg0(b.parameters,N[E].parameters))}(x.url,N.url);return b&&!(!x.parent!=!N.parent)&&(!x.parent||d0(x.parent,N.parent))}function z3(x){return"string"==typeof x.title||null===x.title}let k3=(()=>{class x{constructor(){this.activated=null,this._activatedRoute=null,this.name=O1,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)(r3),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)(F6,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(b){if(b.name){const{firstChange:E,previousValue:B}=b.name;if(E)return;this.isTrackedInParentContexts(B)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(B)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(b){return this.parentContexts.getContext(b)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const b=this.parentContexts.getContext(this.name);b?.route&&(b.attachRef?this.attach(b.attachRef,b.route):this.activateWith(b.route,b.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 b=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(b.instance),b}attach(b,E){this.activated=b,this._activatedRoute=E,this.location.insert(b.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(b.instance)}deactivate(){if(this.activated){const b=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(b)}}activateWith(b,E){if(this.isActivated)throw new g.wOt(4013,!1);this._activatedRoute=b;const B=this.location,C1=b.snapshot.component,G1=this.parentContexts.getOrCreateContext(this.name).children,V1=new g6(b,G1,B.injector);this.activated=B.createComponent(C1,{index:B.length,injector:V1,environmentInjector:E??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(E){return new(E||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 g6{__ngOutletInjector(N){return new g6(this.route,this.childContexts,N)}constructor(N,b,E){this.route=N,this.childContexts=b,this.parent=E}get(N,b){return N===X3?this.route:N===r3?this.childContexts:this.parent.get(N,b)}}const F6=new g.nKC("");let v6=(()=>{class x{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(b){this.unsubscribeFromRouteData(b),this.subscribeToRouteData(b)}unsubscribeFromRouteData(b){this.outletDataSubscriptions.get(b)?.unsubscribe(),this.outletDataSubscriptions.delete(b)}subscribeToRouteData(b){const{activatedRoute:E}=b,B=(0,A.z)([E.queryParams,E.params,E.data]).pipe((0,B2.n)(([Q,C1,G1],V1)=>(G1={...Q,...C1,...G1},0===V1?(0,L.of)(G1):Promise.resolve(G1)))).subscribe(Q=>{if(!b.isActivated||!b.activatedComponentRef||b.activatedRoute!==E||null===E.component)return void this.unsubscribeFromRouteData(b);const C1=(0,g.HJs)(E.component);if(C1)for(const{templateName:G1}of C1.inputs)b.activatedComponentRef.setInput(G1,Q[G1]);else this.unsubscribeFromRouteData(b)});this.outletDataSubscriptions.set(b,B)}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function Y4(x,N,b){if(b&&x.shouldReuseRoute(N.value,b.value.snapshot)){const E=b.value;E._futureSnapshot=N.value;const B=function X0(x,N,b){return N.children.map(E=>{for(const B of b.children)if(x.shouldReuseRoute(E.value,B.value.snapshot))return Y4(x,E,B);return Y4(x,E)})}(x,N,b);return new F4(E,B)}{if(x.shouldAttach(N.value)){const Q=x.retrieve(N.value);if(null!==Q){const C1=Q.route;return C1.value._futureSnapshot=N.value,C1.children=N.children.map(G1=>Y4(x,G1)),C1}}const E=function _6(x){return new X3(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)}(N.value),B=N.children.map(Q=>Y4(x,Q));return new F4(E,B)}}const J3="ngNavigationCancelingError";function Le(x,N){const{redirectTo:b,navigationBehaviorOptions:E}=s4(N)?{redirectTo:N,navigationBehaviorOptions:void 0}:N,B=$3(!1,c4.Redirect);return B.url=b,B.navigationBehaviorOptions=E,B}function $3(x,N){const b=new Error(`NavigationCancelingError: ${x||""}`);return b[J3]=!0,b.cancellationCode=N,b}function Q4(x){return!!x&&x[J3]}let B4=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275cmp=g.VBU({type:x,selectors:[["ng-component"]],standalone:!0,features:[g.aNF],decls:1,vars:0,template:function(E,B){1&E&&g.nrm(0,"router-outlet")},dependencies:[k3],encapsulation:2})}}return x})();function V4(x){const N=x.children&&x.children.map(V4),b=N?{...x,children:N}:{...x};return!b.component&&!b.loadComponent&&(N||b.loadChildren)&&b.outlet&&b.outlet!==O1&&(b.component=B4),b}function f3(x){return x.outlet||O1}function E4(x){if(!x)return null;if(x.routeConfig?._injector)return x.routeConfig._injector;for(let N=x.parent;N;N=N.parent){const b=N.routeConfig;if(b?._loadedInjector)return b._loadedInjector;if(b?._injector)return b._injector}return null}class e8{constructor(N,b,E,B,Q){this.routeReuseStrategy=N,this.futureState=b,this.currState=E,this.forwardEvent=B,this.inputBindingEnabled=Q}activate(N){const b=this.futureState._root,E=this.currState?this.currState._root:null;this.deactivateChildRoutes(b,E,N),I3(this.futureState.root),this.activateChildRoutes(b,E,N)}deactivateChildRoutes(N,b,E){const B=N4(b);N.children.forEach(Q=>{const C1=Q.value.outlet;this.deactivateRoutes(Q,B[C1],E),delete B[C1]}),Object.values(B).forEach(Q=>{this.deactivateRouteAndItsChildren(Q,E)})}deactivateRoutes(N,b,E){const B=N.value,Q=b?b.value:null;if(B===Q)if(B.component){const C1=E.getContext(B.outlet);C1&&this.deactivateChildRoutes(N,b,C1.children)}else this.deactivateChildRoutes(N,b,E);else Q&&this.deactivateRouteAndItsChildren(b,E)}deactivateRouteAndItsChildren(N,b){N.value.component&&this.routeReuseStrategy.shouldDetach(N.value.snapshot)?this.detachAndStoreRouteSubtree(N,b):this.deactivateRouteAndOutlet(N,b)}detachAndStoreRouteSubtree(N,b){const E=b.getContext(N.value.outlet),B=E&&N.value.component?E.children:b,Q=N4(N);for(const C1 of Object.values(Q))this.deactivateRouteAndItsChildren(C1,B);if(E&&E.outlet){const C1=E.outlet.detach(),G1=E.children.onOutletDeactivated();this.routeReuseStrategy.store(N.value.snapshot,{componentRef:C1,route:N,contexts:G1})}}deactivateRouteAndOutlet(N,b){const E=b.getContext(N.value.outlet),B=E&&N.value.component?E.children:b,Q=N4(N);for(const C1 of Object.values(Q))this.deactivateRouteAndItsChildren(C1,B);E&&(E.outlet&&(E.outlet.deactivate(),E.children.onOutletDeactivated()),E.attachRef=null,E.route=null)}activateChildRoutes(N,b,E){const B=N4(b);N.children.forEach(Q=>{this.activateRoutes(Q,B[Q.value.outlet],E),this.forwardEvent(new E8(Q.value.snapshot))}),N.children.length&&this.forwardEvent(new q3(N.value.snapshot))}activateRoutes(N,b,E){const B=N.value,Q=b?b.value:null;if(I3(B),B===Q)if(B.component){const C1=E.getOrCreateContext(B.outlet);this.activateChildRoutes(N,b,C1.children)}else this.activateChildRoutes(N,b,E);else if(B.component){const C1=E.getOrCreateContext(B.outlet);if(this.routeReuseStrategy.shouldAttach(B.snapshot)){const G1=this.routeReuseStrategy.retrieve(B.snapshot);this.routeReuseStrategy.store(B.snapshot,null),C1.children.onOutletReAttached(G1.contexts),C1.attachRef=G1.componentRef,C1.route=G1.route.value,C1.outlet&&C1.outlet.attach(G1.componentRef,G1.route.value),I3(G1.route.value),this.activateChildRoutes(N,null,C1.children)}else{const G1=E4(B.snapshot);C1.attachRef=null,C1.route=B,C1.injector=G1,C1.outlet&&C1.outlet.activateWith(B,C1.injector),this.activateChildRoutes(N,null,C1.children)}}else this.activateChildRoutes(N,null,E)}}class K3{constructor(N){this.path=N,this.route=this.path[this.path.length-1]}}class j3{constructor(N,b){this.component=N,this.route=b}}function O6(x,N,b){const E=x._root;return r6(E,N?N._root:null,b,[E.value])}function u3(x,N){const b=Symbol(),E=N.get(x,b);return E===b?"function"!=typeof x||(0,g.LfX)(x)?N.get(x):x:E}function r6(x,N,b,E,B={canDeactivateChecks:[],canActivateChecks:[]}){const Q=N4(N);return x.children.forEach(C1=>{(function m3(x,N,b,E,B={canDeactivateChecks:[],canActivateChecks:[]}){const Q=x.value,C1=N?N.value:null,G1=b?b.getContext(x.value.outlet):null;if(C1&&Q.routeConfig===C1.routeConfig){const V1=function H(x,N,b){if("function"==typeof b)return b(x,N);switch(b){case"pathParamsChange":return!n0(x.url,N.url);case"pathParamsOrQueryParamsChange":return!n0(x.url,N.url)||!g0(x.queryParams,N.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!d0(x,N)||!g0(x.queryParams,N.queryParams);default:return!d0(x,N)}}(C1,Q,Q.routeConfig.runGuardsAndResolvers);V1?B.canActivateChecks.push(new K3(E)):(Q.data=C1.data,Q._resolvedData=C1._resolvedData),r6(x,N,Q.component?G1?G1.children:null:b,E,B),V1&&G1&&G1.outlet&&G1.outlet.isActivated&&B.canDeactivateChecks.push(new j3(G1.outlet.component,C1))}else C1&&G(N,G1,B),B.canActivateChecks.push(new K3(E)),r6(x,null,Q.component?G1?G1.children:null:b,E,B)})(C1,Q[C1.value.outlet],b,E.concat([C1.value]),B),delete Q[C1.value.outlet]}),Object.entries(Q).forEach(([C1,G1])=>G(G1,b.getContext(C1),B)),B}function G(x,N,b){const E=N4(x),B=x.value;Object.entries(E).forEach(([Q,C1])=>{G(C1,B.component?N?N.children.getContext(Q):null:N,b)}),b.canDeactivateChecks.push(new j3(B.component&&N&&N.outlet&&N.outlet.isActivated?N.outlet.component:null,B))}function D(x){return"function"==typeof x}function q4(x){return x instanceof V.G||"EmptyError"===x?.name}const c8=Symbol("INITIAL_VALUE");function o4(){return(0,B2.n)(x=>(0,A.z)(x.map(N=>N.pipe((0,o2.s)(1),(0,C2.Z)(c8)))).pipe((0,P1.T)(N=>{for(const b of N)if(!0!==b){if(b===c8)return c8;if(!1===b||b instanceof _0)return b}return!0}),(0,k2.p)(N=>N!==c8),(0,o2.s)(1)))}function Me(x){return(0,L1.F)((0,F0.M)(N=>{if(s4(N))throw Le(0,N)}),(0,P1.T)(N=>!0===N))}class B6{constructor(N){this.segmentGroup=N||null}}class t8 extends Error{constructor(N){super(),this.urlTree=N}}function w6(x){return m1(new B6(x))}class T4{constructor(N,b){this.urlSerializer=N,this.urlTree=b}lineralizeSegments(N,b){let E=[],B=b.root;for(;;){if(E=E.concat(B.segments),0===B.numberOfChildren)return(0,L.of)(E);if(B.numberOfChildren>1||!B.children[O1])return m1(new g.wOt(4e3,!1));B=B.children[O1]}}applyRedirectCommands(N,b,E){const B=this.applyRedirectCreateUrlTree(b,this.urlSerializer.parse(b),N,E);if(b.startsWith("/"))throw new t8(B);return B}applyRedirectCreateUrlTree(N,b,E,B){const Q=this.createSegmentGroup(N,b.root,E,B);return new _0(Q,this.createQueryParams(b.queryParams,this.urlTree.queryParams),b.fragment)}createQueryParams(N,b){const E={};return Object.entries(N).forEach(([B,Q])=>{if("string"==typeof Q&&Q.startsWith(":")){const G1=Q.substring(1);E[B]=b[G1]}else E[B]=Q}),E}createSegmentGroup(N,b,E,B){const Q=this.createSegments(N,b.segments,E,B);let C1={};return Object.entries(b.children).forEach(([G1,V1])=>{C1[G1]=this.createSegmentGroup(N,V1,E,B)}),new U0(Q,C1)}createSegments(N,b,E,B){return b.map(Q=>Q.path.startsWith(":")?this.findPosParam(N,Q,B):this.findOrReturn(Q,E))}findPosParam(N,b,E){const B=E[b.path.substring(1)];if(!B)throw new g.wOt(4001,!1);return B}findOrReturn(N,b){let E=0;for(const B of b){if(B.path===N.path)return b.splice(E),B;E++}return N}}const W4={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function n3(x,N,b,E,B){const Q=W8(x,N,b);return Q.matched?(E=function Q3(x,N){return x.providers&&!x._injector&&(x._injector=(0,g.Ol2)(x.providers,N,`Route: ${x.path}`)),x._injector??N}(N,E),function D8(x,N,b,E){const B=N.canMatch;if(!B||0===B.length)return(0,L.of)(!0);const Q=B.map(C1=>{const G1=u3(C1,x);return n4(function e6(x){return x&&D(x.canMatch)}(G1)?G1.canMatch(N,b):(0,g.N4e)(x,()=>G1(N,b)))});return(0,L.of)(Q).pipe(o4(),Me())}(E,N,b).pipe((0,P1.T)(C1=>!0===C1?Q:{...W4}))):(0,L.of)(Q)}function W8(x,N,b){if("**"===N.path)return function J8(x){return{matched:!0,parameters:x.length>0?m2(x).parameters:{},consumedSegments:x,remainingSegments:[],positionalParamSegments:{}}}(b);if(""===N.path)return"full"===N.pathMatch&&(x.hasChildren()||b.length>0)?{...W4}:{matched:!0,consumedSegments:[],remainingSegments:b,parameters:{},positionalParamSegments:{}};const B=(N.matcher||v0)(b,x,N);if(!B)return{...W4};const Q={};Object.entries(B.posParams??{}).forEach(([G1,V1])=>{Q[G1]=V1.path});const C1=B.consumed.length>0?{...Q,...B.consumed[B.consumed.length-1].parameters}:Q;return{matched:!0,consumedSegments:B.consumed,remainingSegments:b.slice(B.consumed.length),parameters:C1,positionalParamSegments:B.posParams??{}}}function V6(x,N,b,E){return b.length>0&&function _8(x,N,b){return b.some(E=>U6(x,N,E)&&f3(E)!==O1)}(x,b,E)?{segmentGroup:new U0(N,e5(E,new U0(b,x.children))),slicedSegments:[]}:0===b.length&&function xe(x,N,b){return b.some(E=>U6(x,N,E))}(x,b,E)?{segmentGroup:new U0(x.segments,Ue(x,b,E,x.children)),slicedSegments:b}:{segmentGroup:new U0(x.segments,x.children),slicedSegments:b}}function Ue(x,N,b,E){const B={};for(const Q of b)if(U6(x,N,Q)&&!E[f3(Q)]){const C1=new U0([],{});B[f3(Q)]=C1}return{...E,...B}}function e5(x,N){const b={};b[O1]=N;for(const E of x)if(""===E.path&&f3(E)!==O1){const B=new U0([],{});b[f3(E)]=B}return b}function U6(x,N,b){return(!(x.hasChildren()||N.length>0)||"full"!==b.pathMatch)&&""===b.path}class k5{}class S6{constructor(N,b,E,B,Q,C1,G1){this.injector=N,this.configLoader=b,this.rootComponentType=E,this.config=B,this.urlTree=Q,this.paramsInheritanceStrategy=C1,this.urlSerializer=G1,this.applyRedirects=new T4(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(N){return new g.wOt(4002,`'${N.segmentGroup}'`)}recognize(){const N=V6(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(N).pipe((0,P1.T)(b=>{const E=new Q6([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},O1,this.rootComponentType,null,{}),B=new F4(E,b),Q=new W3("",B),C1=function b6(x,N,b=null,E=null){return j4(i6(x),N,b,E)}(E,[],this.urlTree.queryParams,this.urlTree.fragment);return C1.queryParams=this.urlTree.queryParams,Q.url=this.urlSerializer.serialize(C1),this.inheritParamsAndData(Q._root,null),{state:Q,tree:C1}}))}match(N){return this.processSegmentGroup(this.injector,this.config,N,O1).pipe((0,x4.W)(E=>{if(E instanceof t8)return this.urlTree=E.urlTree,this.match(E.urlTree.root);throw E instanceof B6?this.noMatchError(E):E}))}inheritParamsAndData(N,b){const E=N.value,B=C3(E,b,this.paramsInheritanceStrategy);E.params=Object.freeze(B.params),E.data=Object.freeze(B.data),N.children.forEach(Q=>this.inheritParamsAndData(Q,E))}processSegmentGroup(N,b,E,B){return 0===E.segments.length&&E.hasChildren()?this.processChildren(N,b,E):this.processSegment(N,b,E,E.segments,B,!0).pipe((0,P1.T)(Q=>Q instanceof F4?[Q]:[]))}processChildren(N,b,E){const B=[];for(const Q of Object.keys(E.children))"primary"===Q?B.unshift(Q):B.push(Q);return(0,p.H)(B).pipe((0,g4.H)(Q=>{const C1=E.children[Q],G1=function h8(x,N){const b=x.filter(E=>f3(E)===N);return b.push(...x.filter(E=>f3(E)!==N)),b}(b,Q);return this.processSegmentGroup(N,G1,C1,Q)}),function D0(x,N){return(0,g1.N)(function _2(x,N,b,E,B){return(Q,C1)=>{let G1=b,V1=N,I2=0;Q.subscribe((0,H1._)(C1,G0=>{const S0=I2++;V1=G1?x(V1,G0,S0):(G1=!0,G0),E&&C1.next(V1)},B&&(()=>{G1&&C1.next(V1),C1.complete()})))}}(x,N,arguments.length>=2,!0))}((Q,C1)=>(Q.push(...C1),Q)),(0,F1.U)(null),function j1(x,N){const b=arguments.length>=2;return E=>E.pipe(x?(0,k2.p)((B,Q)=>x(B,Q,E)):D1.D,e2(1),b?(0,F1.U)(N):(0,h2.v)(()=>new V.G))}(),(0,g2.Z)(Q=>{if(null===Q)return w6(E);const C1=f6(Q);return function E2(x){x.sort((N,b)=>N.value.outlet===O1?-1:b.value.outlet===O1?1:N.value.outlet.localeCompare(b.value.outlet))}(C1),(0,L.of)(C1)}))}processSegment(N,b,E,B,Q,C1){return(0,p.H)(b).pipe((0,g4.H)(G1=>this.processSegmentAgainstRoute(G1._injector??N,b,G1,E,B,Q,C1).pipe((0,x4.W)(V1=>{if(V1 instanceof B6)return(0,L.of)(null);throw V1}))),(0,K2.$)(G1=>!!G1),(0,x4.W)(G1=>{if(q4(G1))return function L8(x,N,b){return 0===N.length&&!x.children[b]}(E,B,Q)?(0,L.of)(new k5):w6(E);throw G1}))}processSegmentAgainstRoute(N,b,E,B,Q,C1,G1){return function Q8(x,N,b,E){return!!(f3(x)===E||E!==O1&&U6(N,b,x))&&W8(N,x,b).matched}(E,B,Q,C1)?void 0===E.redirectTo?this.matchSegmentAgainstRoute(N,B,E,Q,C1):this.allowRedirects&&G1?this.expandSegmentAgainstRouteUsingRedirect(N,B,b,E,Q,C1):w6(B):w6(B)}expandSegmentAgainstRouteUsingRedirect(N,b,E,B,Q,C1){const{matched:G1,consumedSegments:V1,positionalParamSegments:I2,remainingSegments:G0}=W8(b,B,Q);if(!G1)return w6(b);B.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const S0=this.applyRedirects.applyRedirectCommands(V1,B.redirectTo,I2);return this.applyRedirects.lineralizeSegments(B,S0).pipe((0,g2.Z)(a3=>this.processSegment(N,E,b,a3.concat(G0),C1,!1)))}matchSegmentAgainstRoute(N,b,E,B,Q){const C1=n3(b,E,B,N);return"**"===E.path&&(b.children={}),C1.pipe((0,B2.n)(G1=>G1.matched?this.getChildConfig(N=E._injector??N,E,B).pipe((0,B2.n)(({routes:V1})=>{const I2=E._loadedInjector??N,{consumedSegments:G0,remainingSegments:S0,parameters:a3}=G1,ke=new Q6(G0,a3,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function C8(x){return x.data||{}}(E),f3(E),E.component??E._loadedComponent??null,E,function ee(x){return x.resolve||{}}(E)),{segmentGroup:we,slicedSegments:P8}=V6(b,G0,S0,V1);if(0===P8.length&&we.hasChildren())return this.processChildren(I2,V1,we).pipe((0,P1.T)($8=>null===$8?null:new F4(ke,$8)));if(0===V1.length&&0===P8.length)return(0,L.of)(new F4(ke,[]));const Se=f3(E)===Q;return this.processSegment(I2,V1,we,P8,Se?O1:Q,!0).pipe((0,P1.T)($8=>new F4(ke,$8 instanceof F4?[$8]:[])))})):w6(b)))}getChildConfig(N,b,E){return b.children?(0,L.of)({routes:b.children,injector:N}):b.loadChildren?void 0!==b._loadedRoutes?(0,L.of)({routes:b._loadedRoutes,injector:b._loadedInjector}):function ze(x,N,b,E){const B=N.canLoad;if(void 0===B||0===B.length)return(0,L.of)(!0);const Q=B.map(C1=>{const G1=u3(C1,x);return n4(function w1(x){return x&&D(x.canLoad)}(G1)?G1.canLoad(N,b):(0,g.N4e)(x,()=>G1(N,b)))});return(0,L.of)(Q).pipe(o4(),Me())}(N,b,E).pipe((0,g2.Z)(B=>B?this.configLoader.loadChildren(N,b).pipe((0,F0.M)(Q=>{b._loadedRoutes=Q.routes,b._loadedInjector=Q.injector})):function D4(x){return m1($3(!1,c4.GuardRejected))}())):(0,L.of)({routes:[],injector:N})}}function K8(x){const N=x.value.routeConfig;return N&&""===N.path}function f6(x){const N=[],b=new Set;for(const E of x){if(!K8(E)){N.push(E);continue}const B=N.find(Q=>E.value.routeConfig===Q.value.routeConfig);void 0!==B?(B.children.push(...E.children),b.add(B)):N.push(E)}for(const E of b){const B=f6(E.children);N.push(new F4(E.value,B))}return N.filter(E=>!b.has(E))}function n8(x){const N=x.children.map(b=>n8(b)).flat();return[x,...N]}function be(x){return(0,B2.n)(N=>{const b=x(N);return b?(0,p.H)(b).pipe((0,P1.T)(()=>N)):(0,L.of)(N)})}let R8=(()=>{class x{buildTitle(b){let E,B=b.root;for(;void 0!==B;)E=this.getResolvedTitleForRoute(B)??E,B=B.children.find(Q=>Q.outlet===O1);return E}getResolvedTitleForRoute(b){return b.data[W2]}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(Ye),providedIn:"root"})}}return x})(),Ye=(()=>{class x extends R8{constructor(b){super(),this.title=b}updateTitle(b){const E=this.buildTitle(b);void 0!==E&&this.title.setTitle(E)}static{this.\u0275fac=function(E){return new(E||x)(g.KVO(X1.hE))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const E3=new g.nKC("",{providedIn:"root",factory:()=>({})}),N6=new g.nKC("");let ye=(()=>{class x{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.WQX)(g.Ql9)}loadComponent(b){if(this.componentLoaders.get(b))return this.componentLoaders.get(b);if(b._loadedComponent)return(0,L.of)(b._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(b);const E=n4(b.loadComponent()).pipe((0,P1.T)(u6),(0,F0.M)(Q=>{this.onLoadEndListener&&this.onLoadEndListener(b),b._loadedComponent=Q}),(0,v1.j)(()=>{this.componentLoaders.delete(b)})),B=new c0(E,()=>new s2.B).pipe(r2());return this.componentLoaders.set(b,B),B}loadChildren(b,E){if(this.childrenLoaders.get(E))return this.childrenLoaders.get(E);if(E._loadedRoutes)return(0,L.of)({routes:E._loadedRoutes,injector:E._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(E);const Q=function c5(x,N,b,E){return n4(x.loadChildren()).pipe((0,P1.T)(u6),(0,g2.Z)(B=>B instanceof g.Co$||Array.isArray(B)?(0,L.of)(B):(0,p.H)(N.compileModuleAsync(B))),(0,P1.T)(B=>{E&&E(x);let Q,C1,G1=!1;return Array.isArray(B)?(C1=B,!0):(Q=B.create(b).injector,C1=Q.get(N6,[],{optional:!0,self:!0}).flat()),{routes:C1.map(V4),injector:Q}}))}(E,this.compiler,b,this.onLoadEndListener).pipe((0,v1.j)(()=>{this.childrenLoaders.delete(E)})),C1=new c0(Q,()=>new s2.B).pipe(r2());return this.childrenLoaders.set(E,C1),C1}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function u6(x){return function M8(x){return x&&"object"==typeof x&&"default"in x}(x)?x.default:x}let l8=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(E6),providedIn:"root"})}}return x})(),E6=(()=>{class x{shouldProcessUrl(b){return!0}extract(b){return b}merge(b,E){return b}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const w=new g.nKC(""),q=new g.nKC("");function T(x,N,b){const E=x.get(q),B=x.get(c2.qQ);return x.get(g.SKi).runOutsideAngular(()=>{if(!B.startViewTransition||E.skipNextTransition)return E.skipNextTransition=!1,new Promise(I2=>setTimeout(I2));let Q;const C1=new Promise(I2=>{Q=I2}),G1=B.startViewTransition(()=>(Q(),function U(x){return new Promise(N=>{(0,g.mal)(N,{injector:x})})}(x))),{onViewTransitionCreated:V1}=E;return V1&&(0,g.N4e)(x,()=>V1({transition:G1,from:N,to:b})),C1})}let _1=(()=>{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)(ye),this.environmentInjector=(0,g.WQX)(g.uvJ),this.urlSerializer=(0,g.WQX)(f0),this.rootContexts=(0,g.WQX)(r3),this.location=(0,g.WQX)(c2.aZ),this.inputBindingEnabled=null!==(0,g.WQX)(F6,{optional:!0}),this.titleStrategy=(0,g.WQX)(R8),this.options=(0,g.WQX)(E3,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,g.WQX)(l8),this.createViewTransition=(0,g.WQX)(w,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=B=>this.events.next(new P6(B)),this.configLoader.onLoadStartListener=B=>this.events.next(new P0(B))}complete(){this.transitions?.complete()}handleNavigationRequest(b){const E=++this.navigationId;this.transitions?.next({...this.transitions.value,...b,id:E})}setupNavigations(b,E,B){return this.transitions=new S.t({id:0,currentUrlTree:E,currentRawUrl:E,extractedUrl:this.urlHandlingStrategy.extract(E),urlAfterRedirects:this.urlHandlingStrategy.extract(E),rawUrl:E,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:J0,restoredState:null,currentSnapshot:B.snapshot,targetSnapshot:null,currentRouterState:B,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,k2.p)(Q=>0!==Q.id),(0,P1.T)(Q=>({...Q,extractedUrl:this.urlHandlingStrategy.extract(Q.rawUrl)})),(0,B2.n)(Q=>{let C1=!1,G1=!1;return(0,L.of)(Q).pipe((0,B2.n)(V1=>{if(this.navigationId>Q.id)return this.cancelNavigationTransition(Q,"",c4.SupersededByNewNavigation),f1.w;this.currentTransition=Q,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 I2=!b.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!I2&&"reload"!==(V1.extras.onSameUrlNavigation??b.onSameUrlNavigation)){const S0="";return this.events.next(new y4(V1.id,this.urlSerializer.serialize(V1.rawUrl),S0,A0.IgnoredSameUrlNavigation)),V1.resolve(null),f1.w}if(this.urlHandlingStrategy.shouldProcessUrl(V1.rawUrl))return(0,L.of)(V1).pipe((0,B2.n)(S0=>{const a3=this.transitions?.getValue();return this.events.next(new t4(S0.id,this.urlSerializer.serialize(S0.extractedUrl),S0.source,S0.restoredState)),a3!==this.transitions?.getValue()?f1.w:Promise.resolve(S0)}),function Ge(x,N,b,E,B,Q){return(0,g2.Z)(C1=>function Z8(x,N,b,E,B,Q,C1="emptyOnly"){return new S6(x,N,b,E,B,C1,Q).recognize()}(x,N,b,E,C1.extractedUrl,B,Q).pipe((0,P1.T)(({state:G1,tree:V1})=>({...C1,targetSnapshot:G1,urlAfterRedirects:V1}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,b.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,F0.M)(S0=>{Q.targetSnapshot=S0.targetSnapshot,Q.urlAfterRedirects=S0.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:S0.urlAfterRedirects};const a3=new q0(S0.id,this.urlSerializer.serialize(S0.extractedUrl),this.urlSerializer.serialize(S0.urlAfterRedirects),S0.targetSnapshot);this.events.next(a3)}));if(I2&&this.urlHandlingStrategy.shouldProcessUrl(V1.currentRawUrl)){const{id:S0,extractedUrl:a3,source:ke,restoredState:we,extras:P8}=V1,Se=new t4(S0,this.urlSerializer.serialize(a3),ke,we);this.events.next(Se);const $8=h6(this.rootComponentType).snapshot;return this.currentTransition=Q={...V1,targetSnapshot:$8,urlAfterRedirects:a3,extras:{...P8,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=a3,(0,L.of)(Q)}{const S0="";return this.events.next(new y4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),S0,A0.IgnoredByUrlHandlingStrategy)),V1.resolve(null),f1.w}}),(0,F0.M)(V1=>{const I2=new G4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot);this.events.next(I2)}),(0,P1.T)(V1=>(this.currentTransition=Q={...V1,guards:O6(V1.targetSnapshot,V1.currentSnapshot,this.rootContexts)},Q)),function q8(x,N){return(0,g2.Z)(b=>{const{targetSnapshot:E,currentSnapshot:B,guards:{canActivateChecks:Q,canDeactivateChecks:C1}}=b;return 0===C1.length&&0===Q.length?(0,L.of)({...b,guardsResult:!0}):function Oe(x,N,b,E){return(0,p.H)(x).pipe((0,g2.Z)(B=>function X8(x,N,b,E,B){const Q=N&&N.routeConfig?N.routeConfig.canDeactivate:null;if(!Q||0===Q.length)return(0,L.of)(!0);const C1=Q.map(G1=>{const V1=E4(N)??B,I2=u3(G1,V1);return n4(function M3(x){return x&&D(x.canDeactivate)}(I2)?I2.canDeactivate(x,N,b,E):(0,g.N4e)(V1,()=>I2(x,N,b,E))).pipe((0,K2.$)())});return(0,L.of)(C1).pipe(o4())}(B.component,B.route,b,N,E)),(0,K2.$)(B=>!0!==B,!0))}(C1,E,B,x).pipe((0,g2.Z)(G1=>G1&&function e1(x){return"boolean"==typeof x}(G1)?function u4(x,N,b,E){return(0,p.H)(N).pipe((0,g4.H)(B=>(0,c1.x)(function Ve(x,N){return null!==x&&N&&N(new i3(x)),(0,L.of)(!0)}(B.route.parent,E),function Be(x,N){return null!==x&&N&&N(new N8(x)),(0,L.of)(!0)}(B.route,E),function k6(x,N,b){const E=N[N.length-1],Q=N.slice(0,N.length-1).reverse().map(C1=>function S3(x){const N=x.routeConfig?x.routeConfig.canActivateChild:null;return N&&0!==N.length?{node:x,guards:N}:null}(C1)).filter(C1=>null!==C1).map(C1=>(0,K.v)(()=>{const G1=C1.guards.map(V1=>{const I2=E4(C1.node)??b,G0=u3(V1,I2);return n4(function y0(x){return x&&D(x.canActivateChild)}(G0)?G0.canActivateChild(E,x):(0,g.N4e)(I2,()=>G0(E,x))).pipe((0,K2.$)())});return(0,L.of)(G1).pipe(o4())}));return(0,L.of)(Q).pipe(o4())}(x,B.path,b),function Ce(x,N,b){const E=N.routeConfig?N.routeConfig.canActivate:null;if(!E||0===E.length)return(0,L.of)(!0);const B=E.map(Q=>(0,K.v)(()=>{const C1=E4(N)??b,G1=u3(Q,C1);return n4(function j2(x){return x&&D(x.canActivate)}(G1)?G1.canActivate(N,x):(0,g.N4e)(C1,()=>G1(N,x))).pipe((0,K2.$)())}));return(0,L.of)(B).pipe(o4())}(x,B.route,b))),(0,K2.$)(B=>!0!==B,!0))}(E,Q,x,N):(0,L.of)(G1)),(0,P1.T)(G1=>({...b,guardsResult:G1})))})}(this.environmentInjector,V1=>this.events.next(V1)),(0,F0.M)(V1=>{if(Q.guardsResult=V1.guardsResult,s4(V1.guardsResult))throw Le(0,V1.guardsResult);const I2=new S4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot,!!V1.guardsResult);this.events.next(I2)}),(0,k2.p)(V1=>!!V1.guardsResult||(this.cancelNavigationTransition(V1,"",c4.GuardRejected),!1)),be(V1=>{if(V1.guards.canActivateChecks.length)return(0,L.of)(V1).pipe((0,F0.M)(I2=>{const G0=new O4(I2.id,this.urlSerializer.serialize(I2.extractedUrl),this.urlSerializer.serialize(I2.urlAfterRedirects),I2.targetSnapshot);this.events.next(G0)}),(0,B2.n)(I2=>{let G0=!1;return(0,L.of)(I2).pipe(function ce(x,N){return(0,g2.Z)(b=>{const{targetSnapshot:E,guards:{canActivateChecks:B}}=b;if(!B.length)return(0,L.of)(b);const Q=new Set(B.map(V1=>V1.route)),C1=new Set;for(const V1 of Q)if(!C1.has(V1))for(const I2 of n8(V1))C1.add(I2);let G1=0;return(0,p.H)(C1).pipe((0,g4.H)(V1=>Q.has(V1)?function N3(x,N,b,E){const B=x.routeConfig,Q=x._resolve;return void 0!==B?.title&&!z3(B)&&(Q[W2]=B.title),function T8(x,N,b,E){const B=Y0(x);if(0===B.length)return(0,L.of)({});const Q={};return(0,p.H)(B).pipe((0,g2.Z)(C1=>function z8(x,N,b,E){const B=E4(N)??E,Q=u3(x,B);return n4(Q.resolve?Q.resolve(N,b):(0,g.N4e)(B,()=>Q(N,b)))}(x[C1],N,b,E).pipe((0,K2.$)(),(0,F0.M)(G1=>{Q[C1]=G1}))),e2(1),(0,A1.u)(Q),(0,x4.W)(C1=>q4(C1)?f1.w:m1(C1)))}(Q,x,N,E).pipe((0,P1.T)(C1=>(x._resolvedData=C1,x.data=C3(x,x.parent,b).resolve,null)))}(V1,E,x,N):(V1.data=C3(V1,V1.parent,x).resolve,(0,L.of)(void 0))),(0,F0.M)(()=>G1++),e2(1),(0,g2.Z)(V1=>G1===C1.size?(0,L.of)(b):f1.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,F0.M)({next:()=>G0=!0,complete:()=>{G0||this.cancelNavigationTransition(I2,"",c4.NoDataFromResolver)}}))}),(0,F0.M)(I2=>{const G0=new y2(I2.id,this.urlSerializer.serialize(I2.extractedUrl),this.urlSerializer.serialize(I2.urlAfterRedirects),I2.targetSnapshot);this.events.next(G0)}))}),be(V1=>{const I2=G0=>{const S0=[];G0.routeConfig?.loadComponent&&!G0.routeConfig._loadedComponent&&S0.push(this.configLoader.loadComponent(G0.routeConfig).pipe((0,F0.M)(a3=>{G0.component=a3}),(0,P1.T)(()=>{})));for(const a3 of G0.children)S0.push(...I2(a3));return S0};return(0,A.z)(I2(V1.targetSnapshot.root)).pipe((0,F1.U)(null),(0,o2.s)(1))}),be(()=>this.afterPreactivation()),(0,B2.n)(()=>{const{currentSnapshot:V1,targetSnapshot:I2}=Q,G0=this.createViewTransition?.(this.environmentInjector,V1.root,I2.root);return G0?(0,p.H)(G0).pipe((0,P1.T)(()=>Q)):(0,L.of)(Q)}),(0,P1.T)(V1=>{const I2=function P3(x,N,b){const E=Y4(x,N._root,b?b._root:void 0);return new Z0(E,N)}(b.routeReuseStrategy,V1.targetSnapshot,V1.currentRouterState);return this.currentTransition=Q={...V1,targetRouterState:I2},this.currentNavigation.targetRouterState=I2,Q}),(0,F0.M)(()=>{this.events.next(new u0)}),((x,N,b,E)=>(0,P1.T)(B=>(new e8(N,B.targetRouterState,B.currentRouterState,b,E).activate(x),B)))(this.rootContexts,b.routeReuseStrategy,V1=>this.events.next(V1),this.inputBindingEnabled),(0,o2.s)(1),(0,F0.M)({next:V1=>{C1=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new z4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects))),this.titleStrategy?.updateTitle(V1.targetRouterState.snapshot),V1.resolve(!0)},complete:()=>{C1=!0}}),(0,Z1.Q)(this.transitionAbortSubject.pipe((0,F0.M)(V1=>{throw V1}))),(0,v1.j)(()=>{!C1&&!G1&&this.cancelNavigationTransition(Q,"",c4.SupersededByNewNavigation),this.currentTransition?.id===Q.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,x4.W)(V1=>{if(G1=!0,Q4(V1))this.events.next(new I0(Q.id,this.urlSerializer.serialize(Q.extractedUrl),V1.message,V1.cancellationCode)),function d3(x){return Q4(x)&&s4(x.url)}(V1)?this.events.next(new Q2(V1.url)):Q.resolve(!1);else{this.events.next(new P4(Q.id,this.urlSerializer.serialize(Q.extractedUrl),V1,Q.targetSnapshot??void 0));try{Q.resolve(b.errorHandler(V1))}catch(I2){this.options.resolveNavigationPromiseOnError?Q.resolve(!1):Q.reject(I2)}}return f1.w}))}))}cancelNavigationTransition(b,E,B){const Q=new I0(b.id,this.urlSerializer.serialize(b.extractedUrl),E,B);this.events.next(Q),b.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(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function q1(x){return x!==J0}let l2=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(M4),providedIn:"root"})}}return x})();class O2{shouldDetach(N){return!1}store(N,b){}shouldAttach(N){return!1}retrieve(N){return null}shouldReuseRoute(N,b){return N.routeConfig===b.routeConfig}}let M4=(()=>{class x extends O2{static{this.\u0275fac=(()=>{let b;return function(B){return(b||(b=g.xGo(x)))(B||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),i4=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(P),providedIn:"root"})}}return x})(),P=(()=>{class x extends i4{constructor(){super(...arguments),this.location=(0,g.WQX)(c2.aZ),this.urlSerializer=(0,g.WQX)(f0),this.options=(0,g.WQX)(E3,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,g.WQX)(l8),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new _0,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=h6(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(b){return this.location.subscribe(E=>{"popstate"===E.type&&b(E.url,E.state)})}handleRouterEvent(b,E){if(b instanceof t4)this.stateMemento=this.createStateMemento();else if(b instanceof y4)this.rawUrlTree=E.initialUrl;else if(b instanceof q0){if("eager"===this.urlUpdateStrategy&&!E.extras.skipLocationChange){const B=this.urlHandlingStrategy.merge(E.finalUrl,E.initialUrl);this.setBrowserUrl(B,E)}}else b instanceof u0?(this.currentUrlTree=E.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(E.finalUrl,E.initialUrl),this.routerState=E.targetRouterState,"deferred"===this.urlUpdateStrategy&&(E.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,E))):b instanceof I0&&(b.code===c4.GuardRejected||b.code===c4.NoDataFromResolver)?this.restoreHistory(E):b instanceof P4?this.restoreHistory(E,!0):b instanceof z4&&(this.lastSuccessfulId=b.id,this.currentPageId=this.browserPageId)}setBrowserUrl(b,E){const B=this.urlSerializer.serialize(b);if(this.location.isCurrentPathEqualTo(B)||E.extras.replaceUrl){const C1={...E.extras.state,...this.generateNgRouterState(E.id,this.browserPageId)};this.location.replaceState(B,"",C1)}else{const Q={...E.extras.state,...this.generateNgRouterState(E.id,this.browserPageId+1)};this.location.go(B,"",Q)}}restoreHistory(b,E=!1){if("computed"===this.canceledNavigationResolution){const Q=this.currentPageId-this.browserPageId;0!==Q?this.location.historyGo(Q):this.currentUrlTree===b.finalUrl&&0===Q&&(this.resetState(b),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(E&&this.resetState(b),this.resetUrlToCurrentUrlTree())}resetState(b){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,b.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(b,E){return"computed"===this.canceledNavigationResolution?{navigationId:b,\u0275routerPageId:E}:{navigationId:b}}static{this.\u0275fac=(()=>{let b;return function(B){return(b||(b=g.xGo(x)))(B||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();var X=function(x){return x[x.COMPLETE=0]="COMPLETE",x[x.FAILED=1]="FAILED",x[x.REDIRECTING=2]="REDIRECTING",x}(X||{});function W(x,N){x.events.pipe((0,k2.p)(b=>b instanceof z4||b instanceof I0||b instanceof P4||b instanceof y4),(0,P1.T)(b=>b instanceof z4||b instanceof y4?X.COMPLETE:b instanceof I0&&(b.code===c4.Redirect||b.code===c4.SupersededByNewNavigation)?X.REDIRECTING:X.FAILED),(0,k2.p)(b=>b!==X.REDIRECTING),(0,o2.s)(1)).subscribe(()=>{N()})}function t1(x){throw x}const p1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},T1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let z1=(()=>{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)(i4),this.options=(0,g.WQX)(E3,{optional:!0})||{},this.pendingTasks=(0,g.WQX)(g.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,g.WQX)(_1),this.urlSerializer=(0,g.WQX)(f0),this.location=(0,g.WQX)(c2.aZ),this.urlHandlingStrategy=(0,g.WQX)(l8),this._events=new s2.B,this.errorHandler=this.options.errorHandler||t1,this.navigated=!1,this.routeReuseStrategy=(0,g.WQX)(l2),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,g.WQX)(N6,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,g.WQX)(F6,{optional:!0}),this.eventsSubscription=new $1.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:b=>{this.console.warn(b)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const b=this.navigationTransitions.events.subscribe(E=>{try{const B=this.navigationTransitions.currentTransition,Q=this.navigationTransitions.currentNavigation;if(null!==B&&null!==Q)if(this.stateManager.handleRouterEvent(E,Q),E instanceof I0&&E.code!==c4.Redirect&&E.code!==c4.SupersededByNewNavigation)this.navigated=!0;else if(E instanceof z4)this.navigated=!0;else if(E instanceof Q2){const C1=this.urlHandlingStrategy.merge(E.url,B.currentRawUrl),G1={info:B.extras.info,skipLocationChange:B.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||q1(B.source)};this.scheduleNavigation(C1,J0,null,G1,{resolve:B.resolve,reject:B.reject,promise:B.promise})}(function x2(x){return!(x instanceof u0||x instanceof Q2)})(E)&&this._events.next(E)}catch(B){this.navigationTransitions.transitionAbortSubject.next(B)}});this.eventsSubscription.add(b)}resetRootComponentType(b){this.routerState.root.component=b,this.navigationTransitions.rootComponentType=b}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),J0,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((b,E)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(b,"popstate",E)},0)})}navigateToSyncWithBrowser(b,E,B){const Q={replaceUrl:!0},C1=B?.navigationId?B:null;if(B){const V1={...B};delete V1.navigationId,delete V1.\u0275routerPageId,0!==Object.keys(V1).length&&(Q.state=V1)}const G1=this.parseUrl(b);this.scheduleNavigation(G1,E,C1,Q)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(b){this.config=b.map(V4),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(b,E={}){const{relativeTo:B,queryParams:Q,fragment:C1,queryParamsHandling:G1,preserveFragment:V1}=E,I2=V1?this.currentUrlTree.fragment:C1;let S0,G0=null;switch(G1){case"merge":G0={...this.currentUrlTree.queryParams,...Q};break;case"preserve":G0=this.currentUrlTree.queryParams;break;default:G0=Q||null}null!==G0&&(G0=this.removeEmptyProps(G0));try{S0=i6(B?B.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof b[0]||!b[0].startsWith("/"))&&(b=[]),S0=this.currentUrlTree.root}return j4(S0,b,G0,I2??null)}navigateByUrl(b,E={skipLocationChange:!1}){const B=s4(b)?b:this.parseUrl(b),Q=this.urlHandlingStrategy.merge(B,this.rawUrlTree);return this.scheduleNavigation(Q,J0,null,E)}navigate(b,E={skipLocationChange:!1}){return function U1(x){for(let N=0;N(null!=Q&&(E[B]=Q),E),{})}scheduleNavigation(b,E,B,Q,C1){if(this.disposed)return Promise.resolve(!1);let G1,V1,I2;C1?(G1=C1.resolve,V1=C1.reject,I2=C1.promise):I2=new Promise((S0,a3)=>{G1=S0,V1=a3});const G0=this.pendingTasks.add();return W(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(G0))}),this.navigationTransitions.handleNavigationRequest({source:E,restoredState:B,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:b,extras:Q,resolve:G1,reject:V1,promise:I2,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),I2.catch(S0=>Promise.reject(S0))}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),T2=(()=>{class x{constructor(b,E,B,Q,C1,G1){this.router=b,this.route=E,this.tabIndexAttribute=B,this.renderer=Q,this.el=C1,this.locationStrategy=G1,this.href=null,this.commands=null,this.onChanges=new s2.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const V1=C1.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===V1||"area"===V1,this.isAnchorElement?this.subscription=b.events.subscribe(I2=>{I2 instanceof z4&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(b){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",b)}ngOnChanges(b){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(b){null!=b?(this.commands=Array.isArray(b)?b:[b],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(b,E,B,Q,C1){const G1=this.urlTree;return!!(null===G1||this.isAnchorElement&&(0!==b||E||B||Q||C1||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(G1,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const b=this.urlTree;this.href=null!==b&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(b)):null;const E=null===this.href?null:(0,g.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",E)}applyAttributeValue(b,E){const B=this.renderer,Q=this.el.nativeElement;null!==E?B.setAttribute(Q,b,E):B.removeAttribute(Q,b)}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(E){return new(E||x)(g.rXU(z1),g.rXU(X3),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(E,B){1&E&&g.bIt("click",function(C1){return B.onClick(C1.button,C1.ctrlKey,C1.shiftKey,C1.altKey,C1.metaKey)}),2&E&&g.BMQ("target",B.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 j0{}let p3=(()=>{class x{constructor(b,E,B,Q,C1){this.router=b,this.injector=B,this.preloadingStrategy=Q,this.loader=C1}setUpPreloading(){this.subscription=this.router.events.pipe((0,k2.p)(b=>b instanceof z4),(0,g4.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(b,E){const B=[];for(const Q of E){Q.providers&&!Q._injector&&(Q._injector=(0,g.Ol2)(Q.providers,b,`Route: ${Q.path}`));const C1=Q._injector??b,G1=Q._loadedInjector??C1;(Q.loadChildren&&!Q._loadedRoutes&&void 0===Q.canLoad||Q.loadComponent&&!Q._loadedComponent)&&B.push(this.preloadConfig(C1,Q)),(Q.children||Q._loadedRoutes)&&B.push(this.processRoutes(G1,Q.children??Q._loadedRoutes))}return(0,p.H)(B).pipe((0,Z.U)())}preloadConfig(b,E){return this.preloadingStrategy.preload(E,()=>{let B;B=E.loadChildren&&void 0===E.canLoad?this.loader.loadChildren(b,E):(0,L.of)(null);const Q=B.pipe((0,g2.Z)(C1=>null===C1?(0,L.of)(void 0):(E._loadedRoutes=C1.routes,E._loadedInjector=C1.injector,this.processRoutes(C1.injector??b,C1.routes))));if(E.loadComponent&&!E._loadedComponent){const C1=this.loader.loadComponent(E);return(0,p.H)([Q,C1]).pipe((0,Z.U)())}return Q})}static{this.\u0275fac=function(E){return new(E||x)(g.KVO(z1),g.KVO(g.Ql9),g.KVO(g.uvJ),g.KVO(j0),g.KVO(ye))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const X2=new g.nKC("");let L2=(()=>{class x{constructor(b,E,B,Q,C1={}){this.urlSerializer=b,this.transitions=E,this.viewportScroller=B,this.zone=Q,this.options=C1,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,g.WQX)(g.uvJ),C1.scrollPositionRestoration||="disabled",C1.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(b=>{b instanceof t4?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=b.navigationTrigger,this.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof z4?(this.lastId=b.id,this.scheduleScrollEvent(b,this.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof y4&&b.code===A0.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(b,this.urlSerializer.parse(b.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(b=>{b instanceof y6&&(b.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(b.position):b.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(b.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(b,E){var B=this;this.zone.runOutsideAngular((0,u.A)(function*(){yield new Promise(Q=>{setTimeout(()=>{Q()}),(0,g.mal)(()=>{Q()},{injector:B.environmentInjector})}),B.zone.run(()=>{B.transitions.events.next(new y6(b,"popstate"===B.lastSource?B.store[B.restoredId]:null,E))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(E){g.QTQ()}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function F2(x,N){return{\u0275kind:x,\u0275providers:N}}function w5(){const x=(0,g.WQX)(g.zZn);return N=>{const b=x.get(g.o8S);if(N!==b.components[0])return;const E=x.get(z1),B=x.get(m0);1===x.get(h1)&&E.initialNavigation(),x.get(ne,null,g.$GK.Optional)?.setUpPreloading(),x.get(X2,null,g.$GK.Optional)?.init(),E.resetRootComponentType(b.componentTypes[0]),B.closed||(B.next(),B.complete(),B.unsubscribe())}}const m0=new g.nKC("",{factory:()=>new s2.B}),h1=new g.nKC("",{providedIn:"root",factory:()=>1}),ne=new g.nKC("");function s8(x){return F2(0,[{provide:ne,useExisting:p3},{provide:j0,useExisting:x}])}function B3(x){return F2(9,[{provide:w,useValue:T},{provide:q,useValue:{skipNextTransition:!!x?.skipInitialTransition,...x}}])}const D2=new g.nKC("ROUTER_FORROOT_GUARD"),A8=[c2.aZ,{provide:f0,useClass:x0},z1,r3,{provide:X3,useFactory:function K0(x){return x.routerState.root},deps:[z1]},ye,[]];let Y2=(()=>{class x{constructor(b){}static forRoot(b,E){return{ngModule:x,providers:[A8,[],{provide:N6,multi:!0,useValue:b},{provide:D2,useFactory:N7,deps:[[z1,new g.Xx1,new g.kdw]]},{provide:E3,useValue:E||{}},E?.useHash?{provide:c2.hb,useClass:c2.fw}:{provide:c2.hb,useClass:c2.Sm},{provide:X2,useFactory:()=>{const x=(0,g.WQX)(c2.Xr),N=(0,g.WQX)(g.SKi),b=(0,g.WQX)(E3),E=(0,g.WQX)(_1),B=(0,g.WQX)(f0);return b.scrollOffset&&x.setOffset(b.scrollOffset),new L2(B,E,x,N,b)}},E?.preloadingStrategy?s8(E.preloadingStrategy).\u0275providers:[],E?.initialNavigation?E5(E):[],E?.bindToComponentInputs?F2(8,[v6,{provide:F6,useExisting:v6}]).\u0275providers:[],E?.enableViewTransitions?B3().\u0275providers:[],[{provide:D5,useFactory:w5},{provide:g.iLQ,multi:!0,useExisting:D5}]]}}static forChild(b){return{ngModule:x,providers:[{provide:N6,multi:!0,useValue:b}]}}static{this.\u0275fac=function(E){return new(E||x)(g.KVO(D2,8))}}static{this.\u0275mod=g.$C({type:x})}static{this.\u0275inj=g.G2t({})}}return x})();function N7(x){return"guarded"}function E5(x){return["disabled"===x.initialNavigation?F2(3,[{provide:g.hnV,multi:!0,useFactory:()=>{const N=(0,g.WQX)(z1);return()=>{N.setUpLocationChangeListener()}}},{provide:h1,useValue:2}]).\u0275providers:[],"enabledBlocking"===x.initialNavigation?F2(2,[{provide:h1,useValue:0},{provide:g.hnV,multi:!0,deps:[g.zZn],useFactory:N=>{const b=N.get(c2.hj,Promise.resolve());return()=>b.then(()=>new Promise(E=>{const B=N.get(z1),Q=N.get(m0);W(B,()=>{E(!0)}),N.get(_1).afterPreactivation=()=>(E(!0),Q.closed?(0,L.of)(void 0):Q),B.initialNavigation()}))}}]).\u0275providers:[]]}const D5=new g.nKC("")},60:(k1,r1,v)=>{"use strict";v.d(r1,{aY:()=>U,d0:()=>l2,VA:()=>O2,dX:()=>i4});var u=v(4438);function g(P,X,W){return(X=function V(P){var X=function A(P,X){if("object"!=typeof P||!P)return P;var W=P[Symbol.toPrimitive];if(void 0!==W){var t1=W.call(P,X||"default");if("object"!=typeof t1)return t1;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:W,enumerable:!0,configurable:!0,writable:!0}):P[X]=W,P}function p(P,X){var W=Object.keys(P);if(Object.getOwnPropertySymbols){var t1=Object.getOwnPropertySymbols(P);X&&(t1=t1.filter(function(p1){return Object.getOwnPropertyDescriptor(P,p1).enumerable})),W.push.apply(W,t1)}return W}function L(P){for(var X=1;X{};let L1={},j={},l1=null,m1={mark:K,measure:K};try{typeof window<"u"&&(L1=window),typeof document<"u"&&(j=document),typeof MutationObserver<"u"&&(l1=MutationObserver),typeof performance<"u"&&(m1=performance)}catch{}const{userAgent:f1=""}=L1.navigator||{},$1=L1,g1=j,H1=l1,r2=m1,s2=!!g1.documentElement&&!!g1.head&&"function"==typeof g1.addEventListener&&"function"==typeof g1.createElement,c2=~f1.indexOf("MSIE")||~f1.indexOf("Trident/");var o2={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"}},k2=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],g2="classic",K2="duotone",x4=[g2,K2,"sharp","sharp-duotone"],F1=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}]]),h2=["fak","fa-kit","fakd","fa-kit-duotone"],v1=["fak","fakd"],X1={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},W2=["fak","fa-kit","fakd","fa-kit-duotone"],p0={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]),L4=[...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",X1.GROUP,X1.SWAP_OPACITY,X1.PRIMARY,X1.SECONDARY].concat(m2.map(P=>"".concat(P,"x"))).concat(n4.map(P=>"w-".concat(P)));const X4="___FONT_AWESOME___",J6=16,H4="fa",t0="svg-inline--fa",o0="data-fa-i2svg",K4="data-fa-pseudo-element",$4="data-fa-pseudo-element-pending",_0="data-prefix",U0="data-icon",f4="fontawesome-i2svg",y3="async",n0=["HTML","HEAD","STYLE","SCRIPT"],e3=(()=>{try{return!0}catch{return!1}})();function f0(P){return new Proxy(P,{get:(X,W)=>W in X?X[W]:X[g2]})}const x0=L({},o2);x0[g2]=L(L(L(L({},{"fa-duotone":"duotone"}),o2[g2]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const h3=f0(x0),T0=L({},{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[g2]=L(L(L(L({},{duotone:"fad"}),T0[g2]),{kit:"fak"}),{"kit-duotone":"fakd"});const v4=f0(T0),o3=L({},p0);o3[g2]=L(L({},o3[g2]),{fak:"fa-kit"});const c3=f0(o3),J2=L({},{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[g2]=L(L({},J2[g2]),{"fa-kit":"fak"}),f0(J2);const M1=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,u1="fa-layers-text",E1=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,M2=(f0(L({},{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"]),R0={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},r0=["kit",...L4],l4=$1.FontAwesomeConfig||{};g1&&"function"==typeof g1.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[W,t1]=X;const p1=function C4(P){return""===P||"false"!==P&&("true"===P||P)}(function R3(P){var X=g1.querySelector("script["+P+"]");if(X)return X.getAttribute(P)}(W));null!=p1&&(l4[t1]=p1)});const p4={styleDefault:"solid",familyDefault:g2,cssPrefix:H4,replacementClass:t0,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};l4.familyPrefix&&(l4.cssPrefix=l4.familyPrefix);const b4=L(L({},p4),l4);b4.autoReplaceSvg||(b4.observeMutations=!1);const R2={};Object.keys(p4).forEach(P=>{Object.defineProperty(R2,P,{enumerable:!0,set:function(X){b4[P]=X,L0.forEach(W=>W(R2))},get:function(){return b4[P]}})}),Object.defineProperty(R2,"familyPrefix",{enumerable:!0,set:function(P){b4.cssPrefix=P,L0.forEach(X=>X(R2))},get:function(){return b4.cssPrefix}}),$1.FontAwesomeConfig=R2;const L0=[],I4=J6,s4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},i6="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function j4(){let P=12,X="";for(;P-- >0;)X+=i6[62*Math.random()|0];return X}function b0(P){const X=[];for(let W=(P||[]).length>>>0;W--;)X[W]=P[W];return X}function G3(P){return P.classList?b0(P.classList):(P.getAttribute("class")||"").split(" ").filter(X=>X)}function b1(P){return"".concat(P).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _3(P){return Object.keys(P||{}).reduce((X,W)=>X+"".concat(W,": ").concat(P[W].trim(),";"),"")}function A3(P){return P.size!==s4.size||P.x!==s4.x||P.y!==s4.y||P.rotate!==s4.rotate||P.flipX||P.flipY}var a1=':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 x1(){const P=H4,X=t0,W=R2.cssPrefix,t1=R2.replacementClass;let p1=a1;if(W!==P||t1!==X){const T1=new RegExp("\\.".concat(P,"\\-"),"g"),z1=new RegExp("\\--".concat(P,"\\-"),"g"),U1=new RegExp("\\.".concat(X),"g");p1=p1.replace(T1,".".concat(W,"-")).replace(z1,"--".concat(W,"-")).replace(U1,".".concat(t1))}return p1}let y1=!1;function W1(){R2.autoAddCss&&!y1&&(function b6(P){if(!P||!s2)return;const X=g1.createElement("style");X.setAttribute("type","text/css"),X.innerHTML=P;const W=g1.head.childNodes;let t1=null;for(let p1=W.length-1;p1>-1;p1--){const T1=W[p1],z1=(T1.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(z1)>-1&&(t1=T1)}g1.head.insertBefore(X,t1)}(x1()),y1=!0)}var Y1={mixout:()=>({dom:{css:x1,insertCss:W1}}),hooks:()=>({beforeDOMElementCreation(){W1()},beforeI2svg(){W1()}})};const d2=$1||{};d2[X4]||(d2[X4]={}),d2[X4].styles||(d2[X4].styles={}),d2[X4].hooks||(d2[X4].hooks={}),d2[X4].shims||(d2[X4].shims=[]);var f2=d2[X4];const C0=[],$2=function(){g1.removeEventListener("DOMContentLoaded",$2),J0=1,C0.map(P=>P())};let J0=!1;function a0(P){const{tag:X,attributes:W={},children:t1=[]}=P;return"string"==typeof P?b1(P):"<".concat(X," ").concat(function g3(P){return Object.keys(P||{}).reduce((X,W)=>X+"".concat(W,'="').concat(b1(P[W]),'" '),"").trim()}(W),">").concat(t1.map(a0).join(""),"")}function t4(P,X,W){if(P&&P[X]&&P[X][W])return{prefix:X,iconName:W,icon:P[X][W]}}s2&&(J0=(g1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g1.readyState),J0||g1.addEventListener("DOMContentLoaded",$2));var c4=function(X,W,t1,p1){var x2,T2,A2,T1=Object.keys(X),z1=T1.length,U1=void 0!==p1?function(X,W){return function(t1,p1,T1,z1){return X.call(W,t1,p1,T1,z1)}}(W,p1):W;for(void 0===t1?(x2=1,A2=X[T1[0]]):(x2=0,A2=t1);x2=55296&&p1<=56319&&W{const t1=P[W];return t1.icon?X[t1.iconName]=t1.icon:X[W]=t1,X},{})}function q0(P,X){let W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:t1=!1}=W,p1=P4(X);"function"!=typeof f2.hooks.addPack||t1?f2.styles[P]=L(L({},f2.styles[P]||{}),p1):f2.hooks.addPack(P,P4(X)),"fas"===P&&q0("fa",X)}const{styles:S4,shims:O4}=f2,y2=Object.keys(c3),P0=y2.reduce((P,X)=>(P[X]=Object.keys(c3[X]),P),{});let P6=null,i3={},q3={},N8={},E8={},y6={};const N2=()=>{const P=t1=>c4(S4,(p1,T1,z1)=>(p1[z1]=c4(T1,t1,{}),p1),{});i3=P((t1,p1,T1)=>(p1[3]&&(t1[p1[3]]=T1),p1[2]&&p1[2].filter(U1=>"number"==typeof U1).forEach(U1=>{t1[U1.toString(16)]=T1}),t1)),q3=P((t1,p1,T1)=>(t1[T1]=T1,p1[2]&&p1[2].filter(U1=>"string"==typeof U1).forEach(U1=>{t1[U1]=T1}),t1)),y6=P((t1,p1,T1)=>{const z1=p1[2];return t1[T1]=T1,z1.forEach(U1=>{t1[U1]=T1}),t1});const X="far"in S4||R2.autoFetchSvg,W=c4(O4,(t1,p1)=>{const T1=p1[0];let z1=p1[1];const U1=p1[2];return"far"===z1&&!X&&(z1="fas"),"string"==typeof T1&&(t1.names[T1]={prefix:z1,iconName:U1}),"number"==typeof T1&&(t1.unicodes[T1.toString(16)]={prefix:z1,iconName:U1}),t1},{names:{},unicodes:{}});N8=W.names,E8=W.unicodes,P6=h6(R2.styleDefault,{family:R2.familyDefault})};function a4(P,X){return(i3[P]||{})[X]}function v3(P,X){return(y6[P]||{})[X]}function L3(P){return N8[P]||{prefix:null,iconName:null}}function F4(){return P6}(function P2(P){L0.push(P)})(P=>{P6=h6(P.styleDefault,{family:R2.familyDefault})}),N2();const N4=()=>({prefix:null,iconName:null,rest:[]});function h6(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:W=g2}=X;return W!==K2||P?v4[W][P]||v4[W][h3[W][P]]||(P in f2.styles?P:null)||null:"fad"}function X3(P){return P.sort().filter((X,W,t1)=>t1.indexOf(X)===W)}function C3(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:W=!1}=X;let t1=null;const p1=Y0.concat(W2),T1=X3(P.filter(z0=>p1.includes(z0))),z1=X3(P.filter(z0=>!Y0.includes(z0))),U1=T1.filter(z0=>(t1=z0,!k2.includes(z0))),[x2=null]=U1,T2=function Z0(P){let X=g2;const W=y2.reduce((t1,p1)=>(t1[p1]="".concat(R2.cssPrefix,"-").concat(p1),t1),{});return x4.forEach(t1=>{(P.includes(W[t1])||P.some(p1=>P0[t1].includes(p1)))&&(X=t1)}),X}(T1),A2=L(L({},function Y8(P){let X=[],W=null;return P.forEach(t1=>{const p1=function Q2(P,X){const W=X.split("-"),t1=W[0],p1=W.slice(1).join("-");return t1!==P||""===p1||function u0(P){return~r0.indexOf(P)}(p1)?null:p1}(R2.cssPrefix,t1);p1?W=p1:t1&&X.push(t1)}),{iconName:W,rest:X}}(z1)),{},{prefix:h6(x2,{family:T2})});return L(L(L({},A2),function k4(P){const{values:X,family:W,canonical:t1,givenPrefix:p1="",styles:T1={},config:z1={}}=P,U1=W===K2,x2=X.includes("fa-duotone")||X.includes("fad");if(!U1&&(x2||"duotone"===z1.familyDefault||("fad"===t1.prefix||"fa-duotone"===t1.prefix))&&(t1.prefix="fad"),(X.includes("fa-brands")||X.includes("fab"))&&(t1.prefix="fab"),!t1.prefix&&W3.includes(W)&&(Object.keys(T1).find(j0=>Z6.includes(j0))||z1.autoFetchSvg)){const j0=F1.get(W).defaultShortPrefixId;t1.prefix=j0,t1.iconName=v3(t1.prefix,t1.iconName)||t1.iconName}return("fa"===t1.prefix||"fa"===p1)&&(t1.prefix=F4()||"fas"),t1}({values:P,family:T2,styles:S4,config:R2,canonical:A2,givenPrefix:t1})),function Q6(P,X,W){let{prefix:t1,iconName:p1}=W;if(P||!t1||!p1)return{prefix:t1,iconName:p1};const T1="fa"===X?L3(p1):{},z1=v3(t1,p1);return p1=T1.iconName||z1||p1,t1=T1.prefix||t1,"far"===t1&&!S4.far&&S4.fas&&!R2.autoFetchSvg&&(t1="fas"),{prefix:t1,iconName:p1}}(W,t1,A2))}const W3=x4.filter(P=>P!==g2||P!==K2),Z6=Object.keys(p0).filter(P=>P!==g2).map(P=>Object.keys(p0[P])).flat();let d0=[],z3={};const k3={},g6=Object.keys(k3);function v6(P,X){for(var W=arguments.length,t1=new Array(W>2?W-2:0),p1=2;p1{X=z1.apply(null,[X,...t1])}),X}function P3(P){for(var X=arguments.length,W=new Array(X>1?X-1:0),t1=1;t1{T1.apply(null,W)})}function Y4(){const P=arguments[0],X=Array.prototype.slice.call(arguments,1);return k3[P]?k3[P].apply(null,X):void 0}function X0(P){"fa"===P.prefix&&(P.prefix="fas");let{iconName:X}=P;const W=P.prefix||F4();if(X)return X=v3(W,X)||X,t4(_6.definitions,W,X)||t4(f2.styles,W,X)}const _6=new class I3{constructor(){this.definitions={}}add(){for(var X=arguments.length,W=new Array(X),t1=0;t1{this.definitions[T1]=L(L({},this.definitions[T1]||{}),p1[T1]),q0(T1,p1[T1]);const z1=c3[g2][T1];z1&&q0(z1,p1[T1]),N2()})}reset(){this.definitions={}}_pullDefinitions(X,W){const t1=W.prefix&&W.iconName&&W.icon?{0:W}:W;return Object.keys(t1).map(p1=>{const{prefix:T1,iconName:z1,icon:U1}=t1[p1],x2=U1[2];X[T1]||(X[T1]={}),x2.length>0&&x2.forEach(T2=>{"string"==typeof T2&&(X[T1][T2]=U1)}),X[T1][z1]=U1}),X}},d3={noAuto:()=>{R2.autoReplaceSvg=!1,R2.observeMutations=!1,P3("noAuto")},config:R2,dom:{i2svg:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s2?(P3("beforeI2svg",P),Y4("pseudoElements2svg",P),Y4("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===R2.autoReplaceSvg&&(R2.autoReplaceSvg=!0),R2.observeMutations=!0,function e0(P){s2&&(J0?setTimeout(P,0):C0.push(P))}(()=>{Q4({autoReplaceSvgRoot:X}),P3("watch",P)})}},parse:{icon:P=>{if(null===P)return null;if("object"==typeof P&&P.prefix&&P.iconName)return{prefix:P.prefix,iconName:v3(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],W=h6(P[0]);return{prefix:W,iconName:v3(W,X)||X}}if("string"==typeof P&&(P.indexOf("".concat(R2.cssPrefix,"-"))>-1||P.match(M1))){const X=C3(P.split(" "),{skipLookups:!0});return{prefix:X.prefix||F4(),iconName:v3(X.prefix,X.iconName)||X.iconName}}if("string"==typeof P){const X=F4();return{prefix:X,iconName:v3(X,P)||P}}}},library:_6,findIconDefinition:X0,toHtml:a0},Q4=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X=g1}=P;(Object.keys(f2.styles).length>0||R2.autoFetchSvg)&&s2&&R2.autoReplaceSvg&&d3.dom.i2svg({node:X})};function B4(P,X){return Object.defineProperty(P,"abstract",{get:X}),Object.defineProperty(P,"html",{get:function(){return P.abstract.map(W=>a0(W))}}),Object.defineProperty(P,"node",{get:function(){if(!s2)return;const W=g1.createElement("div");return W.innerHTML=P.html,W.children}}),P}function H0(P){const{icons:{main:X,mask:W},prefix:t1,iconName:p1,transform:T1,symbol:z1,title:U1,maskId:x2,titleId:T2,extra:A2,watchable:z0=!1}=P,{width:j0,height:W0}=W.found?W:X,M0=v1.includes(t1),p3=[R2.replacementClass,p1?"".concat(R2.cssPrefix,"-").concat(p1):""].filter(O3=>-1===A2.classes.indexOf(O3)).filter(O3=>""!==O3||!!O3).concat(A2.classes).join(" ");let X2={children:[],attributes:L(L({},A2.attributes),{},{"data-prefix":t1,"data-icon":p1,class:p3,role:A2.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(j0," ").concat(W0)})};const L2=M0&&!~A2.classes.indexOf("fa-fw")?{width:"".concat(j0/W0*16*.0625,"em")}:{};z0&&(X2.attributes[o0]=""),U1&&(X2.children.push({tag:"title",attributes:{id:X2.attributes["aria-labelledby"]||"title-".concat(T2||j4())},children:[U1]}),delete X2.attributes.title);const D3=L(L({},X2),{},{prefix:t1,iconName:p1,main:X,mask:W,maskId:x2,transform:T1,symbol:z1,styles:L(L({},L2),A2.styles)}),{children:K0,attributes:F2}=W.found&&X.found?Y4("generateAbstractMask",D3)||{children:[],attributes:{}}:Y4("generateAbstractIcon",D3)||{children:[],attributes:{}};return D3.children=K0,D3.attributes=F2,z1?function L6(P){let{prefix:X,iconName:W,children:t1,attributes:p1,symbol:T1}=P;const z1=!0===T1?"".concat(X,"-").concat(R2.cssPrefix,"-").concat(W):T1;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:L(L({},p1),{},{id:z1}),children:t1}]}]}(D3):function Q3(P){let{children:X,main:W,mask:t1,attributes:p1,styles:T1,transform:z1}=P;if(A3(z1)&&W.found&&!t1.found){const{width:U1,height:x2}=W,T2={x:U1/x2/2,y:.5};p1.style=_3(L(L({},T1),{},{"transform-origin":"".concat(T2.x+z1.x/16,"em ").concat(T2.y+z1.y/16,"em")}))}return[{tag:"svg",attributes:p1,children:X}]}(D3)}function w3(P){const{content:X,width:W,height:t1,transform:p1,title:T1,extra:z1,watchable:U1=!1}=P,x2=L(L(L({},z1.attributes),T1?{title:T1}:{}),{},{class:z1.classes.join(" ")});U1&&(x2[o0]="");const T2=L({},z1.styles);A3(p1)&&(T2.transform=function F3(P){let{transform:X,width:W=J6,height:t1=J6,startCentered:p1=!1}=P,T1="";return T1+=p1&&c2?"translate(".concat(X.x/I4-W/2,"em, ").concat(X.y/I4-t1/2,"em) "):p1?"translate(calc(-50% + ".concat(X.x/I4,"em), calc(-50% + ").concat(X.y/I4,"em)) "):"translate(".concat(X.x/I4,"em, ").concat(X.y/I4,"em) "),T1+="scale(".concat(X.size/I4*(X.flipX?-1:1),", ").concat(X.size/I4*(X.flipY?-1:1),") "),T1+="rotate(".concat(X.rotate,"deg) "),T1}({transform:p1,startCentered:!0,width:W,height:t1}),T2["-webkit-transform"]=T2.transform);const A2=_3(T2);A2.length>0&&(x2.style=A2);const z0=[];return z0.push({tag:"span",attributes:x2,children:[X]}),T1&&z0.push({tag:"span",attributes:{class:"sr-only"},children:[T1]}),z0}const{styles:K6}=f2;function $6(P){const X=P[0],W=P[1],[t1]=P.slice(4);let p1=null;return p1=Array.isArray(t1)?{tag:"g",attributes:{class:"".concat(R2.cssPrefix,"-").concat(R0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(R2.cssPrefix,"-").concat(R0.SECONDARY),fill:"currentColor",d:t1[0]}},{tag:"path",attributes:{class:"".concat(R2.cssPrefix,"-").concat(R0.PRIMARY),fill:"currentColor",d:t1[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:t1}},{found:!0,width:X,height:W,icon:p1}}const Z4={found:!1,width:512,height:512};function V4(P,X){let W=X;return"fa"===X&&null!==R2.styleDefault&&(X=F4()),new Promise((t1,p1)=>{if("fa"===W){const T1=L3(P)||{};P=T1.iconName||P,X=T1.prefix||X}if(P&&X&&K6[X]&&K6[X][P])return t1($6(K6[X][P]));(function j6(P,X){!e3&&!R2.showMissingIcons&&P&&console.error('Icon with name "'.concat(P,'" and prefix "').concat(X,'" is missing.'))})(P,X),t1(L(L({},Z4),{},{icon:R2.showMissingIcons&&P&&Y4("missingIconAbstract")||{}}))})}const f3=()=>{},h8=R2.measurePerformance&&r2&&r2.mark&&r2.measure?r2:{mark:f3,measure:f3},E4='FA "6.7.2"',Z3=P=>{h8.mark("".concat(E4," ").concat(P," ends")),h8.measure("".concat(E4," ").concat(P),"".concat(E4," ").concat(P," begins"),"".concat(E4," ").concat(P," ends"))};var e8={begin:P=>(h8.mark("".concat(E4," ").concat(P," begins")),()=>Z3(P)),end:Z3};const K3=()=>{};function j3(P){return"string"==typeof(P.getAttribute?P.getAttribute(o0):null)}function r6(P){return g1.createElementNS("http://www.w3.org/2000/svg",P)}function m3(P){return g1.createElement(P)}function H(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:W=("svg"===P.tag?r6:m3)}=X;if("string"==typeof P)return g1.createTextNode(P);const t1=W(P.tag);return Object.keys(P.attributes||[]).forEach(function(T1){t1.setAttribute(T1,P.attributes[T1])}),(P.children||[]).forEach(function(T1){t1.appendChild(H(T1,{ceFn:W}))}),t1}const D={replace:function(P){const X=P[0];if(X.parentNode)if(P[1].forEach(W=>{X.parentNode.insertBefore(H(W),X)}),null===X.getAttribute(o0)&&R2.keepOriginalSource){let W=g1.createComment(function G(P){let X=" ".concat(P.outerHTML," ");return X="".concat(X,"Font Awesome fontawesome.com "),X}(X));X.parentNode.replaceChild(W,X)}else X.remove()},nest:function(P){const X=P[0],W=P[1];if(~G3(X).indexOf(R2.replacementClass))return D.replace(P);const t1=new RegExp("".concat(R2.cssPrefix,"-.*"));if(delete W[0].attributes.id,W[0].attributes.class){const T1=W[0].attributes.class.split(" ").reduce((z1,U1)=>(U1===R2.replacementClass||U1.match(t1)?z1.toSvg.push(U1):z1.toNode.push(U1),z1),{toNode:[],toSvg:[]});W[0].attributes.class=T1.toSvg.join(" "),0===T1.toNode.length?X.removeAttribute("class"):X.setAttribute("class",T1.toNode.join(" "))}const p1=W.map(T1=>a0(T1)).join("\n");X.setAttribute(o0,""),X.innerHTML=p1}};function e1(P){P()}function w1(P,X){const W="function"==typeof X?X:K3;if(0===P.length)W();else{let t1=e1;R2.mutateApproach===y3&&(t1=$1.requestAnimationFrame||e1),t1(()=>{const p1=function u3(){return!0===R2.autoReplaceSvg?D.replace:D[R2.autoReplaceSvg]||D.replace}(),T1=e8.begin("mutate");P.map(p1),T1(),W()})}}let j2=!1;function y0(){j2=!0}function M3(){j2=!1}let e6=null;function q4(P){if(!H1||!R2.observeMutations)return;const{treeCallback:X=K3,nodeCallback:W=K3,pseudoElementsCallback:t1=K3,observeMutationsRoot:p1=g1}=P;e6=new H1(T1=>{if(j2)return;const z1=F4();b0(T1).forEach(U1=>{if("childList"===U1.type&&U1.addedNodes.length>0&&!j3(U1.addedNodes[0])&&(R2.searchPseudoElements&&t1(U1.target),X(U1.target)),"attributes"===U1.type&&U1.target.parentNode&&R2.searchPseudoElements&&t1(U1.target.parentNode),"attributes"===U1.type&&j3(U1.target)&&~M2.indexOf(U1.attributeName))if("class"===U1.attributeName&&function O6(P){const X=P.getAttribute?P.getAttribute(_0):null,W=P.getAttribute?P.getAttribute(U0):null;return X&&W}(U1.target)){const{prefix:x2,iconName:T2}=C3(G3(U1.target));U1.target.setAttribute(_0,x2||z1),T2&&U1.target.setAttribute(U0,T2)}else(function S3(P){return P&&P.classList&&P.classList.contains&&P.classList.contains(R2.replacementClass)})(U1.target)&&W(U1.target)})}),s2&&e6.observe(p1,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Be(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:W,prefix:t1,rest:p1}=function q8(P){const X=P.getAttribute("data-prefix"),W=P.getAttribute("data-icon"),t1=void 0!==P.innerText?P.innerText.trim():"";let p1=C3(G3(P));return p1.prefix||(p1.prefix=F4()),X&&W&&(p1.prefix=X,p1.iconName=W),p1.iconName&&p1.prefix||(p1.prefix&&t1.length>0&&(p1.iconName=function r3(P,X){return(q3[P]||{})[X]}(p1.prefix,P.innerText)||a4(p1.prefix,I0(P.innerText))),!p1.iconName&&R2.autoFetchSvg&&P.firstChild&&P.firstChild.nodeType===Node.TEXT_NODE&&(p1.iconName=P.firstChild.data)),p1}(P),T1=function Oe(P){const X=b0(P.attributes).reduce((p1,T1)=>("class"!==p1.name&&"style"!==p1.name&&(p1[T1.name]=T1.value),p1),{}),W=P.getAttribute("title"),t1=P.getAttribute("data-fa-title-id");return R2.autoA11y&&(W?X["aria-labelledby"]="".concat(R2.replacementClass,"-title-").concat(t1||j4()):(X["aria-hidden"]="true",X.focusable="false")),X}(P),z1=v6("parseNodeAttributes",{},P);let U1=X.styleParser?function o4(P){const X=P.getAttribute("style");let W=[];return X&&(W=X.split(";").reduce((t1,p1)=>{const T1=p1.split(":"),z1=T1[0],U1=T1.slice(1);return z1&&U1.length>0&&(t1[z1]=U1.join(":").trim()),t1},{})),W}(P):[];return L({iconName:W,title:P.getAttribute("title"),titleId:P.getAttribute("data-fa-title-id"),prefix:t1,transform:s4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:p1,styles:U1,attributes:T1}},z1)}const{styles:Ve}=f2;function Ce(P){const X="nest"===R2.autoReplaceSvg?Be(P,{styleParser:!1}):Be(P);return~X.extra.classes.indexOf(u1)?Y4("generateLayersText",P,X):Y4("generateSvgReplacementMutation",P,X)}function X8(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!s2)return Promise.resolve();const W=g1.documentElement.classList,t1=A2=>W.add("".concat(f4,"-").concat(A2)),p1=A2=>W.remove("".concat(f4,"-").concat(A2)),T1=R2.autoFetchSvg?function k6(){return[...h2,...Y0]}():k2.concat(Object.keys(Ve));T1.includes("fa")||T1.push("fa");const z1=[".".concat(u1,":not([").concat(o0,"])")].concat(T1.map(A2=>".".concat(A2,":not([").concat(o0,"])"))).join(", ");if(0===z1.length)return Promise.resolve();let U1=[];try{U1=b0(P.querySelectorAll(z1))}catch{}if(!(U1.length>0))return Promise.resolve();t1("pending"),p1("complete");const x2=e8.begin("onTree"),T2=U1.reduce((A2,z0)=>{try{const j0=Ce(z0);j0&&A2.push(j0)}catch(j0){e3||"MissingIcon"===j0.name&&console.error(j0)}return A2},[]);return new Promise((A2,z0)=>{Promise.all(T2).then(j0=>{w1(j0,()=>{t1("active"),t1("complete"),p1("pending"),"function"==typeof X&&X(),x2(),A2()})}).catch(j0=>{x2(),z0(j0)})})}function ze(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ce(P).then(W=>{W&&w1([W],X)})}const D8=function(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:W=s4,symbol:t1=!1,mask:p1=null,maskId:T1=null,title:z1=null,titleId:U1=null,classes:x2=[],attributes:T2={},styles:A2={}}=X;if(!P)return;const{prefix:z0,iconName:j0,icon:W0}=P;return B4(L({type:"icon"},P),()=>(P3("beforeDOMElementCreation",{iconDefinition:P,params:X}),R2.autoA11y&&(z1?T2["aria-labelledby"]="".concat(R2.replacementClass,"-title-").concat(U1||j4()):(T2["aria-hidden"]="true",T2.focusable="false")),H0({icons:{main:$6(W0),mask:p1?$6(p1.icon):{found:!1,width:null,height:null,icon:{}}},prefix:z0,iconName:j0,transform:L(L({},s4),W),symbol:t1,title:z1,maskId:T1,titleId:U1,extra:{attributes:T2,styles:A2,classes:x2}})))};var B6={mixout(){return{icon:(P=D8,function(X){let W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t1=(X||{}).icon?X:X0(X||{});let{mask:p1}=W;return p1&&(p1=(p1||{}).icon?p1:X0(p1||{})),P(t1,L(L({},W),{},{mask:p1}))})};var P},hooks:()=>({mutationObserverCallbacks:P=>(P.treeCallback=X8,P.nodeCallback=ze,P)}),provides(P){P.i2svg=function(X){const{node:W=g1,callback:t1=(()=>{})}=X;return X8(W,t1)},P.generateSvgReplacementMutation=function(X,W){const{iconName:t1,title:p1,titleId:T1,prefix:z1,transform:U1,symbol:x2,mask:T2,maskId:A2,extra:z0}=W;return new Promise((j0,W0)=>{Promise.all([V4(t1,z1),T2.iconName?V4(T2.iconName,T2.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(M0=>{let[p3,X2]=M0;j0([X,H0({icons:{main:p3,mask:X2},prefix:z1,iconName:t1,transform:U1,symbol:x2,maskId:A2,title:p1,titleId:T1,extra:z0,watchable:!0})])}).catch(W0)})},P.generateAbstractIcon=function(X){let{children:W,attributes:t1,main:p1,transform:T1,styles:z1}=X;const U1=_3(z1);let x2;return U1.length>0&&(t1.style=U1),A3(T1)&&(x2=Y4("generateAbstractTransformGrouping",{main:p1,transform:T1,containerWidth:p1.width,iconWidth:p1.width})),W.push(x2||p1.icon),{children:W,attributes:t1}}}},t8={mixout:()=>({layer(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:W=[]}=X;return B4({type:"layer"},()=>{P3("beforeDOMElementCreation",{assembler:P,params:X});let t1=[];return P(p1=>{Array.isArray(p1)?p1.map(T1=>{t1=t1.concat(T1.abstract)}):t1=t1.concat(p1.abstract)}),[{tag:"span",attributes:{class:["".concat(R2.cssPrefix,"-layers"),...W].join(" ")},children:t1}]})}})},w6={mixout:()=>({counter(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:W=null,classes:t1=[],attributes:p1={},styles:T1={}}=X;return B4({type:"counter",content:P},()=>(P3("beforeDOMElementCreation",{content:P,params:X}),function p8(P){const{content:X,title:W,extra:t1}=P,p1=L(L(L({},t1.attributes),W?{title:W}:{}),{},{class:t1.classes.join(" ")}),T1=_3(t1.styles);T1.length>0&&(p1.style=T1);const z1=[];return z1.push({tag:"span",attributes:p1,children:[X]}),W&&z1.push({tag:"span",attributes:{class:"sr-only"},children:[W]}),z1}({content:P.toString(),title:W,extra:{attributes:p1,styles:T1,classes:["".concat(R2.cssPrefix,"-layers-counter"),...t1]}})))}})},g8={mixout:()=>({text(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:W=s4,title:t1=null,classes:p1=[],attributes:T1={},styles:z1={}}=X;return B4({type:"text",content:P},()=>(P3("beforeDOMElementCreation",{content:P,params:X}),w3({content:P,transform:L(L({},s4),W),title:t1,extra:{attributes:T1,styles:z1,classes:["".concat(R2.cssPrefix,"-layers-text"),...p1]}})))}}),provides(P){P.generateLayersText=function(X,W){const{title:t1,transform:p1,extra:T1}=W;let z1=null,U1=null;if(c2){const x2=parseInt(getComputedStyle(X).fontSize,10),T2=X.getBoundingClientRect();z1=T2.width/x2,U1=T2.height/x2}return R2.autoA11y&&!t1&&(T1.attributes["aria-hidden"]="true"),Promise.resolve([X,w3({content:X.innerHTML,width:z1,height:U1,transform:p1,title:t1,extra:T1,watchable:!0})])}}};const $0=new RegExp('"',"ug"),D4=[1105920,1112319],T4=L(L(L(L({},{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"}}),W4=Object.keys(T4).reduce((P,X)=>(P[X.toLowerCase()]=T4[X],P),{}),n3=Object.keys(W4).reduce((P,X)=>{const W=W4[X];return P[X]=W[900]||[...Object.entries(W)][0][1],P},{});function V6(P,X){const W="".concat($4).concat(X.replace(":","-"));return new Promise((t1,p1)=>{if(null!==P.getAttribute(W))return t1();const z1=b0(P.children).filter(j0=>j0.getAttribute(K4)===X)[0],U1=$1.getComputedStyle(P,X),x2=U1.getPropertyValue("font-family"),T2=x2.match(E1),A2=U1.getPropertyValue("font-weight"),z0=U1.getPropertyValue("content");if(z1&&!T2)return P.removeChild(z1),t1();if(T2&&"none"!==z0&&""!==z0){const j0=U1.getPropertyValue("content");let W0=function J8(P,X){const W=P.replace(/^['"]|['"]$/g,"").toLowerCase(),t1=parseInt(X),p1=isNaN(t1)?"normal":t1;return(W4[W]||{})[p1]||n3[W]}(x2,A2);const{value:M0,isSecondary:p3}=function W8(P){const X=P.replace($0,""),W=function y4(P,X){const W=P.length;let p1,t1=P.charCodeAt(X);return t1>=55296&&t1<=56319&&W>X+1&&(p1=P.charCodeAt(X+1),p1>=56320&&p1<=57343)?1024*(t1-55296)+p1-56320+65536:t1}(X,0),t1=W>=D4[0]&&W<=D4[1],p1=2===X.length&&X[0]===X[1];return{value:I0(p1?X[0]:X),isSecondary:t1||p1}}(j0),X2=T2[0].startsWith("FontAwesome");let L2=a4(W0,M0),D3=L2;if(X2){const K0=function t3(P){const X=E8[P],W=a4("fas",P);return X||(W?{prefix:"fas",iconName:W}:null)||{prefix:null,iconName:null}}(M0);K0.iconName&&K0.prefix&&(L2=K0.iconName,W0=K0.prefix)}if(!L2||p3||z1&&z1.getAttribute(_0)===W0&&z1.getAttribute(U0)===D3)t1();else{P.setAttribute(W,D3),z1&&P.removeChild(z1);const K0=function u4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:s4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:F2}=K0;F2.attributes[K4]=X,V4(L2,W0).then(O3=>{const C6=H0(L(L({},K0),{},{icons:{main:O3,mask:N4()},prefix:W0,iconName:D3,extra:F2,watchable:!0})),z6=g1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===X?P.insertBefore(z6,P.firstChild):P.appendChild(z6),z6.outerHTML=C6.map(Fe=>a0(Fe)).join("\n"),P.removeAttribute(W),t1()}).catch(p1)}}else t1()})}function Ue(P){return Promise.all([V6(P,"::before"),V6(P,"::after")])}function e5(P){return!(P.parentNode===document.head||~n0.indexOf(P.tagName.toUpperCase())||P.getAttribute(K4)||P.parentNode&&"svg"===P.parentNode.tagName)}function _8(P){if(s2)return new Promise((X,W)=>{const t1=b0(P.querySelectorAll("*")).filter(e5).map(Ue),p1=e8.begin("searchPseudoElements");y0(),Promise.all(t1).then(()=>{p1(),M3(),X()}).catch(()=>{p1(),M3(),W()})})}let U6=!1;const L8=P=>P.toLowerCase().split(" ").reduce((W,t1)=>{const p1=t1.toLowerCase().split("-"),T1=p1[0];let z1=p1.slice(1).join("-");if(T1&&"h"===z1)return W.flipX=!0,W;if(T1&&"v"===z1)return W.flipY=!0,W;if(z1=parseFloat(z1),isNaN(z1))return W;switch(T1){case"grow":W.size=W.size+z1;break;case"shrink":W.size=W.size-z1;break;case"left":W.x=W.x-z1;break;case"right":W.x=W.x+z1;break;case"up":W.y=W.y-z1;break;case"down":W.y=W.y+z1;break;case"rotate":W.rotate=W.rotate+z1}return W},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),Z8={x:0,y:0,width:"100%",height:"100%"};function d6(P){return P.attributes&&(P.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(P.attributes.fill="black"),P}function S6(P){return"g"===P.tag?P.children:[P]}!function F6(P,X){let{mixoutsTo:W}=X;d0=P,z3={},Object.keys(k3).forEach(t1=>{-1===g6.indexOf(t1)&&delete k3[t1]}),d0.forEach(t1=>{const p1=t1.mixout?t1.mixout():{};if(Object.keys(p1).forEach(T1=>{"function"==typeof p1[T1]&&(W[T1]=p1[T1]),"object"==typeof p1[T1]&&Object.keys(p1[T1]).forEach(z1=>{W[T1]||(W[T1]={}),W[T1][z1]=p1[T1][z1]})}),t1.hooks){const T1=t1.hooks();Object.keys(T1).forEach(z1=>{z3[z1]||(z3[z1]=[]),z3[z1].push(T1[z1])})}t1.provides&&t1.provides(k3)})}([Y1,B6,t8,w6,g8,{hooks:()=>({mutationObserverCallbacks:P=>(P.pseudoElementsCallback=_8,P)}),provides(P){P.pseudoElements2svg=function(X){const{node:W=g1}=X;R2.searchPseudoElements&&_8(W)}}},{mixout:()=>({dom:{unwatch(){y0(),U6=!0}}}),hooks:()=>({bootstrap(){q4(v6("mutationObserverCallbacks",{}))},noAuto(){!function c8(){e6&&e6.disconnect()}()},watch(P){const{observeMutationsRoot:X}=P;U6?M3():q4(v6("mutationObserverCallbacks",{observeMutationsRoot:X}))}})},{mixout:()=>({parse:{transform:P=>L8(P)}}),hooks:()=>({parseNodeAttributes(P,X){const W=X.getAttribute("data-fa-transform");return W&&(P.transform=L8(W)),P}}),provides(P){P.generateAbstractTransformGrouping=function(X){let{main:W,transform:t1,containerWidth:p1,iconWidth:T1}=X;const z1={transform:"translate(".concat(p1/2," 256)")},U1="translate(".concat(32*t1.x,", ").concat(32*t1.y,") "),x2="scale(".concat(t1.size/16*(t1.flipX?-1:1),", ").concat(t1.size/16*(t1.flipY?-1:1),") "),T2="rotate(".concat(t1.rotate," 0 0)"),j0={outer:z1,inner:{transform:"".concat(U1," ").concat(x2," ").concat(T2)},path:{transform:"translate(".concat(T1/2*-1," -256)")}};return{tag:"g",attributes:L({},j0.outer),children:[{tag:"g",attributes:L({},j0.inner),children:[{tag:W.icon.tag,children:W.icon.children,attributes:L(L({},W.icon.attributes),j0.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(P,X){const W=X.getAttribute("data-fa-mask"),t1=W?C3(W.split(" ").map(p1=>p1.trim())):N4();return t1.prefix||(t1.prefix=F4()),P.mask=t1,P.maskId=X.getAttribute("data-fa-mask-id"),P}}),provides(P){P.generateAbstractMask=function(X){let{children:W,attributes:t1,main:p1,mask:T1,maskId:z1,transform:U1}=X;const{width:x2,icon:T2}=p1,{width:A2,icon:z0}=T1,j0=function Y3(P){let{transform:X,containerWidth:W,iconWidth:t1}=P;const p1={transform:"translate(".concat(W/2," 256)")},T1="translate(".concat(32*X.x,", ").concat(32*X.y,") "),z1="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:p1,inner:{transform:"".concat(T1," ").concat(z1," ").concat(U1)},path:{transform:"translate(".concat(t1/2*-1," -256)")}}}({transform:U1,containerWidth:A2,iconWidth:x2}),W0={tag:"rect",attributes:L(L({},Z8),{},{fill:"white"})},M0=T2.children?{children:T2.children.map(d6)}:{},p3={tag:"g",attributes:L({},j0.inner),children:[d6(L({tag:T2.tag,attributes:L(L({},T2.attributes),j0.path)},M0))]},X2={tag:"g",attributes:L({},j0.outer),children:[p3]},L2="mask-".concat(z1||j4()),D3="clip-".concat(z1||j4()),K0={tag:"mask",attributes:L(L({},Z8),{},{id:L2,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[W0,X2]},F2={tag:"defs",children:[{tag:"clipPath",attributes:{id:D3},children:S6(z0)},K0]};return W.push(F2,{tag:"rect",attributes:L({fill:"currentColor","clip-path":"url(#".concat(D3,")"),mask:"url(#".concat(L2,")")},Z8)}),{children:W,attributes:t1}}}},{provides(P){let X=!1;$1.matchMedia&&(X=$1.matchMedia("(prefers-reduced-motion: reduce)").matches),P.missingIconAbstract=function(){const W=[],t1={fill:"currentColor"},p1={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};W.push({tag:"path",attributes:L(L({},t1),{},{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 T1=L(L({},p1),{},{attributeName:"opacity"}),z1={tag:"circle",attributes:L(L({},t1),{},{cx:"256",cy:"364",r:"28"}),children:[]};return X||z1.children.push({tag:"animate",attributes:L(L({},p1),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:L(L({},T1),{},{values:"1;0;1;1;0;1;"})}),W.push(z1),W.push({tag:"path",attributes:L(L({},t1),{},{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:L(L({},T1),{},{values:"1;0;0;0;0;1;"})}]}),X||W.push({tag:"path",attributes:L(L({},t1),{},{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:L(L({},T1),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:W}}}},{hooks:()=>({parseNodeAttributes(P,X){const W=X.getAttribute("data-fa-symbol");return P.symbol=null!==W&&(""===W||W),P}})}],{mixoutsTo:d3});const n8=d3.parse,z8=d3.icon,Ye=d3.counter;var E3=v(345);const N6=["*"],M8=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(W=>X[W]?W:null).filter(W=>W)};let E6=(()=>{class P{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}static{this.\u0275fac=function(t1){return new(t1||P)}}static{this.\u0275prov=u.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),w=(()=>{class P{constructor(){this.definitions={}}addIcons(...W){for(const t1 of W){t1.prefix in this.definitions||(this.definitions[t1.prefix]={}),this.definitions[t1.prefix][t1.iconName]=t1;for(const p1 of t1.icon[2])"string"==typeof p1&&(this.definitions[t1.prefix][p1]=t1)}}addIconPacks(...W){for(const t1 of W){const p1=Object.keys(t1).map(T1=>t1[T1]);this.addIcons(...p1)}}getIconDefinition(W,t1){return W in this.definitions&&t1 in this.definitions[W]?this.definitions[W][t1]:null}static{this.\u0275fac=function(t1){return new(t1||P)}}static{this.\u0275prov=u.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),q=(()=>{class P{constructor(){this.stackItemSize="1x"}ngOnChanges(W){if("size"in W)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(t1){return new(t1||P)}}static{this.\u0275dir=u.FsC({type:P,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},standalone:!0,features:[u.OA$]})}}return P})(),T=(()=>{class P{constructor(W,t1){this.renderer=W,this.elementRef=t1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(W){"size"in W&&(null!=W.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${W.size.currentValue}`),null!=W.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${W.size.previousValue}`))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(u.sFG),u.rXU(u.aKT))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-stack"]],inputs:{size:"size"},standalone:!0,features:[u.OA$,u.aNF],ngContentSelectors:N6,decls:1,vars:0,template:function(t1,p1){1&t1&&(u.NAR(),u.SdG(0))},encapsulation:2})}}return P})(),U=(()=>{class P{set spin(W){this.animation=W?"spin":void 0}set pulse(W){this.animation=W?"spin-pulse":void 0}constructor(W,t1,p1,T1,z1){this.sanitizer=W,this.config=t1,this.iconLibrary=p1,this.stackItem=T1,this.classes=[],null!=z1&&null==T1&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(W){if(null!=this.icon||null!=this.config.fallbackIcon){if(W){const p1=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=p1){const T1=this.buildParams();this.renderIcon(p1,T1)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(W){const t1=((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]})(W,this.config.defaultPrefix);return"icon"in t1?t1:this.iconLibrary.getIconDefinition(t1.prefix,t1.iconName)??((P=>{throw new Error(`Could not find icon with iconName=${P.iconName} and prefix=${P.prefix} in the icon library.`)})(t1),null)}buildParams(){const W={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},t1="string"==typeof this.transform?n8.transform(this.transform):this.transform;return{title:this.title,transform:t1,classes:[...M8(W),...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(W,t1){const p1=z8(W,t1);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(p1.html.join("\n"))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(E3.up),u.rXU(E6),u.rXU(w),u.rXU(q,8),u.rXU(T,8))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t1,p1){2&t1&&(u.Mr5("innerHTML",p1.renderedIconHTML,u.npT),u.BMQ("title",p1.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:[u.OA$,u.aNF],decls:0,vars:0,template:function(t1,p1){},encapsulation:2})}}return P})(),l2=(()=>{class P{constructor(W,t1,p1){this.renderer=W,this.elementRef=t1,this.config=p1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-layers"),this.fixedWidth="boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth}ngOnChanges(W){"size"in W&&(null!=W.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${W.size.currentValue}`),null!=W.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${W.size.previousValue}`))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(E6))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-layers"]],hostVars:2,hostBindings:function(t1,p1){2&t1&&u.AVh("fa-fw",p1.fixedWidth)},inputs:{size:"size",fixedWidth:"fixedWidth"},standalone:!0,features:[u.OA$,u.aNF],ngContentSelectors:N6,decls:1,vars:0,template:function(t1,p1){1&t1&&(u.NAR(),u.SdG(0))},encapsulation:2})}}return P})(),O2=(()=>{class P{constructor(W,t1){this.parent=W,this.sanitizer=t1,this.classes=[],((P,X,W)=>{if(!this.parent)throw new Error(`${this.constructor.name} should be used as child of FaLayersComponent only.`)})()}ngOnChanges(W){if(W){const t1=this.buildParams();this.updateContent(t1)}}buildParams(){const W=[];return null!=this.classes&&W.push(...this.classes),null!=this.position&&W.push(`fa-layers-${this.position}`),{title:this.title,classes:W,styles:this.styles}}updateContent(W){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(Ye(this.content||"",W).html.join(""))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(l2,8),u.rXU(E3.up))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-layers-counter"]],hostAttrs:[1,"ng-fa-layers-counter"],hostVars:1,hostBindings:function(t1,p1){2&t1&&u.Mr5("innerHTML",p1.renderedHTML,u.npT)},inputs:{content:"content",title:"title",styles:"styles",classes:"classes",position:"position"},standalone:!0,features:[u.OA$,u.aNF],decls:0,vars:0,template:function(t1,p1){},encapsulation:2})}}return P})(),i4=(()=>{class P{static{this.\u0275fac=function(t1){return new(t1||P)}}static{this.\u0275mod=u.$C({type:P})}static{this.\u0275inj=u.G2t({})}}return P})()},5383:(k1,r1,v)=>{"use strict";v.d(r1,{IPD:()=>Zc,JX9:()=>We,URI:()=>I_,YSf:()=>LL,Z8x:()=>sn,b6I:()=>Ka,f2_:()=>uo,fLc:()=>F8,iRu:()=>b7,qIE:()=>bn,sOt:()=>cs});const sn={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"]},F8={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"]},bn={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"]},Ka={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"]},uo={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"]},We={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"]},Zc={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"]},cs={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"]},I_={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"]},b7={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:(k1,r1,v)=>{"use strict";v.d(r1,{$O8:()=>sN,$UM:()=>gN,APe:()=>$w,BH7:()=>zS,Bwz:()=>Rm,Dwc:()=>gk,EEq:()=>lg,EZy:()=>gS,FJA:()=>AI,KMJ:()=>Dk,LBj:()=>pV,LP:()=>dk,MT7:()=>et,OM7:()=>ac,PKn:()=>$L,QLR:()=>Nk,QRE:()=>$l,Qux:()=>Q_,R1H:()=>Ra,RSf:()=>R2,SZt:()=>P8,Wcv:()=>oE,WfV:()=>du,Wzs:()=>sO,X46:()=>go,XYS:()=>qS,XkK:()=>dO,Z8x:()=>Gt,Zsp:()=>XE,_2z:()=>MR,_Xl:()=>rL,a5l:()=>G1,bLf:()=>Y0,cKG:()=>$S,cbP:()=>$I,e4L:()=>Rz,fLc:()=>u9,hSh:()=>GD,hem:()=>DV,hzq:()=>a2,iRu:()=>WN,jBL:()=>ne,k1j:()=>tS,l8N:()=>$7,p7g:()=>Na,pS3:()=>SD,q9c:()=>$B,s6x:()=>Es,tNR:()=>OS,tP3:()=>Gd,yYc:()=>Dj});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"]},R2={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"]},ne={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"]},G1={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"]},P8={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"]},$7={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"]},Es={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"]},et={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"]},du={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"]},Na={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"]},Ra={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"]},go={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"]},Rz={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"]},Rm={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"]},Gt={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"]},lg={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"]},u9={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"]},ac={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"]},rL={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"]},Gd={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"]},a2={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"]},XE={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"]},$w={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"]},SD={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"]},GD={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"]},tS={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"]},MR={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"]},gS={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"]},dk={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"]},zS={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"]},AI={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"]},$I={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"]},$S={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"]},OS={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"]},qS={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"]},gk={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"]},sN={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"]},gN={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"]},Nk={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"]},Dj={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"]},Dk={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"]},sO={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"]},dO={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"]},$B={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"]},WN={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"]},pV={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"]},DV={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"]},oE={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"]},$L={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:(k1,r1,v)=>{"use strict";v.d(r1,{D9:()=>F0,Wr:()=>j,c$:()=>K2,h:()=>x4});var u=v(4438),g=v(7673),e=v(4402),p=v(7468),L=v(8793),S=v(9030),A=v(6697),V=v(253),c1=v(6354),K=v(274),L1=v(5558);class j{}let l1=(()=>{class _2 extends j{getTranslation(F1){return(0,g.of)({})}static \u0275fac=(()=>{let F1;return function(h2){return(F1||(F1=u.xGo(_2)))(h2||_2)}})();static \u0275prov=u.jDH({token:_2,factory:_2.\u0275fac})}return _2})();class m1{}let f1=(()=>{class _2{handle(F1){return F1.key}static \u0275fac=function(e2){return new(e2||_2)};static \u0275prov=u.jDH({token:_2,factory:_2.\u0275fac})}return _2})();function $1(_2,D0){if(_2===D0)return!0;if(null===_2||null===D0)return!1;if(_2!=_2&&D0!=D0)return!0;let h2,D1,j1,F1=typeof _2;if(F1==typeof D0&&"object"==F1){if(!Array.isArray(_2)){if(Array.isArray(D0))return!1;for(D1 in j1=Object.create(null),_2){if(!$1(_2[D1],D0[D1]))return!1;j1[D1]=!0}for(D1 in D0)if(!(D1 in j1)&&typeof D0[D1]<"u")return!1;return!0}if(!Array.isArray(D0))return!1;if((h2=_2.length)==D0.length){for(D1=0;D1{H1(D0[e2])?e2 in _2?F1[e2]=r2(_2[e2],D0[e2]):Object.assign(F1,{[e2]:D0[e2]}):Object.assign(F1,{[e2]:D0[e2]})}),F1}class c0{}let s2=(()=>{class _2 extends c0{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(F1,e2){let h2;return h2="string"==typeof F1?this.interpolateString(F1,e2):"function"==typeof F1?this.interpolateFunction(F1,e2):F1,h2}getValue(F1,e2){let h2="string"==typeof e2?e2.split("."):[e2];e2="";do{e2+=h2.shift(),!g1(F1)||!g1(F1[e2])||"object"!=typeof F1[e2]&&h2.length?h2.length?e2+=".":F1=void 0:(F1=F1[e2],e2="")}while(h2.length);return F1}interpolateFunction(F1,e2){return F1(e2)}interpolateString(F1,e2){return e2?F1.replace(this.templateMatcher,(h2,D1)=>{let j1=this.getValue(e2,D1);return g1(j1)?j1:h2}):F1}static \u0275fac=(()=>{let F1;return function(h2){return(F1||(F1=u.xGo(_2)))(h2||_2)}})();static \u0275prov=u.jDH({token:_2,factory:_2.\u0275fac})}return _2})();class c2{}let P1=(()=>{class _2 extends c2{compile(F1,e2){return F1}compileTranslations(F1,e2){return F1}static \u0275fac=(()=>{let F1;return function(h2){return(F1||(F1=u.xGo(_2)))(h2||_2)}})();static \u0275prov=u.jDH({token:_2,factory:_2.\u0275fac})}return _2})();class B2{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new u.bkB;onLangChange=new u.bkB;onDefaultLangChange=new u.bkB}const o2=new u.nKC("USE_STORE"),C2=new u.nKC("USE_DEFAULT_LANG"),k2=new u.nKC("DEFAULT_LANGUAGE"),g2=new u.nKC("USE_EXTEND");let K2=(()=>{class _2{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new u.bkB;_onLangChange=new u.bkB;_onDefaultLangChange=new u.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(F1){this.isolate?this._defaultLang=F1:this.store.defaultLang=F1}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(F1){this.isolate?this._currentLang=F1:this.store.currentLang=F1}get langs(){return this.isolate?this._langs:this.store.langs}set langs(F1){this.isolate?this._langs=F1:this.store.langs=F1}get translations(){return this.isolate?this._translations:this.store.translations}set translations(F1){this.isolate?this._translations=F1:this.store.translations=F1}constructor(F1,e2,h2,D1,j1,A1=!0,v1=!1,Z1=!1,Z){this.store=F1,this.currentLoader=e2,this.compiler=h2,this.parser=D1,this.missingTranslationHandler=j1,this.useDefaultLang=A1,this.isolate=v1,this.extend=Z1,Z&&this.setDefaultLang(Z)}setDefaultLang(F1){if(F1===this.defaultLang)return;let e2=this.retrieveTranslations(F1);typeof e2<"u"?(null==this.defaultLang&&(this.defaultLang=F1),e2.pipe((0,A.s)(1)).subscribe(h2=>{this.changeDefaultLang(F1)})):this.changeDefaultLang(F1)}getDefaultLang(){return this.defaultLang}use(F1){if(F1===this.currentLang)return(0,g.of)(this.translations[F1]);let e2=this.retrieveTranslations(F1);return typeof e2<"u"?(this.currentLang||(this.currentLang=F1),e2.pipe((0,A.s)(1)).subscribe(h2=>{this.changeLang(F1)}),e2):(this.changeLang(F1),(0,g.of)(this.translations[F1]))}retrieveTranslations(F1){let e2;return(typeof this.translations[F1]>"u"||this.extend)&&(this._translationRequests[F1]=this._translationRequests[F1]||this.getTranslation(F1),e2=this._translationRequests[F1]),e2}getTranslation(F1){this.pending=!0;const e2=this.currentLoader.getTranslation(F1).pipe((0,V.t)(1),(0,A.s)(1));return this.loadingTranslations=e2.pipe((0,c1.T)(h2=>this.compiler.compileTranslations(h2,F1)),(0,V.t)(1),(0,A.s)(1)),this.loadingTranslations.subscribe({next:h2=>{this.translations[F1]=this.extend&&this.translations[F1]?{...h2,...this.translations[F1]}:h2,this.updateLangs(),this.pending=!1},error:h2=>{this.pending=!1}}),e2}setTranslation(F1,e2,h2=!1){e2=this.compiler.compileTranslations(e2,F1),this.translations[F1]=(h2||this.extend)&&this.translations[F1]?r2(this.translations[F1],e2):e2,this.updateLangs(),this.onTranslationChange.emit({lang:F1,translations:this.translations[F1]})}getLangs(){return this.langs}addLangs(F1){F1.forEach(e2=>{-1===this.langs.indexOf(e2)&&this.langs.push(e2)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(F1,e2,h2){let D1;if(e2 instanceof Array){let j1={},A1=!1;for(let v1 of e2)j1[v1]=this.getParsedResult(F1,v1,h2),(0,e.A)(j1[v1])&&(A1=!0);if(A1){const v1=e2.map(Z1=>(0,e.A)(j1[Z1])?j1[Z1]:(0,g.of)(j1[Z1]));return(0,p.p)(v1).pipe((0,c1.T)(Z1=>{let Z={};return Z1.forEach((X1,O1)=>{Z[e2[O1]]=X1}),Z}))}return j1}if(F1&&(D1=this.parser.interpolate(this.parser.getValue(F1,e2),h2)),typeof D1>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(D1=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e2),h2)),typeof D1>"u"){let j1={key:e2,translateService:this};typeof h2<"u"&&(j1.interpolateParams=h2),D1=this.missingTranslationHandler.handle(j1)}return typeof D1<"u"?D1:e2}get(F1,e2){if(!g1(F1)||!F1.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,K.H)(h2=>(h2=this.getParsedResult(h2,F1,e2),(0,e.A)(h2)?h2:(0,g.of)(h2))));{let h2=this.getParsedResult(this.translations[this.currentLang],F1,e2);return(0,e.A)(h2)?h2:(0,g.of)(h2)}}getStreamOnTranslationChange(F1,e2){if(!g1(F1)||!F1.length)throw new Error('Parameter "key" required');return(0,L.x)((0,S.v)(()=>this.get(F1,e2)),this.onTranslationChange.pipe((0,L1.n)(h2=>{const D1=this.getParsedResult(h2.translations,F1,e2);return"function"==typeof D1.subscribe?D1:(0,g.of)(D1)})))}stream(F1,e2){if(!g1(F1)||!F1.length)throw new Error('Parameter "key" required');return(0,L.x)((0,S.v)(()=>this.get(F1,e2)),this.onLangChange.pipe((0,L1.n)(h2=>{const D1=this.getParsedResult(h2.translations,F1,e2);return(0,e.A)(D1)?D1:(0,g.of)(D1)})))}instant(F1,e2){if(!g1(F1)||!F1.length)throw new Error('Parameter "key" required');let h2=this.getParsedResult(this.translations[this.currentLang],F1,e2);if((0,e.A)(h2)){if(F1 instanceof Array){let D1={};return F1.forEach((j1,A1)=>{D1[F1[A1]]=F1[A1]}),D1}return F1}return h2}set(F1,e2,h2=this.currentLang){this.translations[h2][F1]=this.compiler.compile(e2,h2),this.updateLangs(),this.onTranslationChange.emit({lang:h2,translations:this.translations[h2]})}changeLang(F1){this.currentLang=F1,this.onLangChange.emit({lang:F1,translations:this.translations[F1]}),null==this.defaultLang&&this.changeDefaultLang(F1)}changeDefaultLang(F1){this.defaultLang=F1,this.onDefaultLangChange.emit({lang:F1,translations:this.translations[F1]})}reloadLang(F1){return this.resetLang(F1),this.getTranslation(F1)}resetLang(F1){this._translationRequests[F1]=void 0,this.translations[F1]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let F1=window.navigator.languages?window.navigator.languages[0]:null;return F1=F1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof F1>"u"?void 0:(-1!==F1.indexOf("-")&&(F1=F1.split("-")[0]),-1!==F1.indexOf("_")&&(F1=F1.split("_")[0]),F1)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let F1=window.navigator.languages?window.navigator.languages[0]:null;return F1=F1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,F1}static \u0275fac=function(e2){return new(e2||_2)(u.KVO(B2),u.KVO(j),u.KVO(c2),u.KVO(c0),u.KVO(m1),u.KVO(C2),u.KVO(o2),u.KVO(g2),u.KVO(k2))};static \u0275prov=u.jDH({token:_2,factory:_2.\u0275fac})}return _2})(),F0=(()=>{class _2{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(F1,e2){this.translate=F1,this._ref=e2}updateValue(F1,e2,h2){let D1=j1=>{this.value=void 0!==j1?j1:F1,this.lastKey=F1,this._ref.markForCheck()};if(h2){let j1=this.translate.getParsedResult(h2,F1,e2);(0,e.A)(j1.subscribe)?j1.subscribe(D1):D1(j1)}this.translate.get(F1,e2).subscribe(D1)}transform(F1,...e2){if(!F1||!F1.length)return F1;if($1(F1,this.lastKey)&&$1(e2,this.lastParams))return this.value;let h2;if(g1(e2[0])&&e2.length)if("string"==typeof e2[0]&&e2[0].length){let D1=e2[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{h2=JSON.parse(D1)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e2[0]}`)}}else"object"==typeof e2[0]&&!Array.isArray(e2[0])&&(h2=e2[0]);return this.lastKey=F1,this.lastParams=e2,this.updateValue(F1,h2),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(D1=>{this.lastKey&&D1.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(F1,h2,D1.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(D1=>{this.lastKey&&(this.lastKey=null,this.updateValue(F1,h2,D1.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(F1,h2))})),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||_2)(u.rXU(K2,16),u.rXU(u.gRc,16))};static \u0275pipe=u.EJ8({name:"translate",type:_2,pure:!1});static \u0275prov=u.jDH({token:_2,factory:_2.\u0275fac})}return _2})(),x4=(()=>{class _2{static forRoot(F1={}){return{ngModule:_2,providers:[F1.loader||{provide:j,useClass:l1},F1.compiler||{provide:c2,useClass:P1},F1.parser||{provide:c0,useClass:s2},F1.missingTranslationHandler||{provide:m1,useClass:f1},B2,{provide:o2,useValue:F1.isolate},{provide:C2,useValue:F1.useDefaultLang},{provide:g2,useValue:F1.extend},{provide:k2,useValue:F1.defaultLanguage},K2]}}static forChild(F1={}){return{ngModule:_2,providers:[F1.loader||{provide:j,useClass:l1},F1.compiler||{provide:c2,useClass:P1},F1.parser||{provide:c0,useClass:s2},F1.missingTranslationHandler||{provide:m1,useClass:f1},{provide:o2,useValue:F1.isolate},{provide:C2,useValue:F1.useDefaultLang},{provide:g2,useValue:F1.extend},{provide:k2,useValue:F1.defaultLanguage},K2]}}static \u0275fac=function(e2){return new(e2||_2)};static \u0275mod=u.$C({type:_2});static \u0275inj=u.G2t({})}return _2})()},8866:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>p});class u extends Error{}function p(L,S){if("string"!=typeof L)throw new u("Invalid token specified: must be a string");S||(S={});const A=!0===S.header?0:1,V=L.split(".")[A];if("string"!=typeof V)throw new u(`Invalid token specified: missing part #${A+1}`);let c1;try{c1=function e(L){let S=L.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(L){return decodeURIComponent(atob(L).replace(/(.)/g,(S,A)=>{let V=A.charCodeAt(0).toString(16).toUpperCase();return V.length<2&&(V="0"+V),"%"+V}))}(S)}catch{return atob(S)}}(V)}catch(K){throw new u(`Invalid token specified: invalid base64 for part #${A+1} (${K.message})`)}try{return JSON.parse(c1)}catch(K){throw new u(`Invalid token specified: invalid json for part #${A+1} (${K.message})`)}}u.prototype.name="InvalidTokenError"},467:(k1,r1,v)=>{"use strict";function u(e,p,L,S,A,V,c1){try{var K=e[V](c1),L1=K.value}catch(j){return void L(j)}K.done?p(L1):Promise.resolve(L1).then(S,A)}function g(e){return function(){var p=this,L=arguments;return new Promise(function(S,A){var V=e.apply(p,L);function c1(L1){u(V,S,A,c1,K,"next",L1)}function K(L1){u(V,S,A,c1,K,"throw",L1)}c1(void 0)})}}v.d(r1,{A:()=>g})},1635:(k1,r1,v)=>{"use strict";function j(D1,j1,A1,v1){return new(A1||(A1=Promise))(function(Z,X1){function O1(V2){try{s0(v1.next(V2))}catch(v0){X1(v0)}}function W2(V2){try{s0(v1.throw(V2))}catch(v0){X1(v0)}}function s0(V2){V2.done?Z(V2.value):function Z1(Z){return Z instanceof A1?Z:new A1(function(X1){X1(Z)})}(V2.value).then(O1,W2)}s0((v1=v1.apply(D1,j1||[])).next())})}function s2(D1){return this instanceof s2?(this.v=D1,this):new s2(D1)}function c2(D1,j1,A1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z1,v1=A1.apply(D1,j1||[]),Z=[];return Z1=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),O1("next"),O1("throw"),O1("return",function X1(g0){return function(Y0){return Promise.resolve(Y0).then(g0,v0)}}),Z1[Symbol.asyncIterator]=function(){return this},Z1;function O1(g0,Y0){v1[g0]&&(Z1[g0]=function(_4){return new Promise(function(m2,n4){Z.push([g0,_4,m2,n4])>1||W2(g0,_4)})},Y0&&(Z1[g0]=Y0(Z1[g0])))}function W2(g0,Y0){try{!function s0(g0){g0.value instanceof s2?Promise.resolve(g0.value.v).then(V2,v0):p0(Z[0][2],g0)}(v1[g0](Y0))}catch(_4){p0(Z[0][3],_4)}}function V2(g0){W2("next",g0)}function v0(g0){W2("throw",g0)}function p0(g0,Y0){g0(Y0),Z.shift(),Z.length&&W2(Z[0][0],Z[0][1])}}function B2(D1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A1,j1=D1[Symbol.asyncIterator];return j1?j1.call(D1):(D1=function $1(D1){var j1="function"==typeof Symbol&&Symbol.iterator,A1=j1&&D1[j1],v1=0;if(A1)return A1.call(D1);if(D1&&"number"==typeof D1.length)return{next:function(){return D1&&v1>=D1.length&&(D1=void 0),{value:D1&&D1[v1++],done:!D1}}};throw new TypeError(j1?"Object is not iterable.":"Symbol.iterator is not defined.")}(D1),A1={},v1("next"),v1("throw"),v1("return"),A1[Symbol.asyncIterator]=function(){return this},A1);function v1(Z){A1[Z]=D1[Z]&&function(X1){return new Promise(function(O1,W2){!function Z1(Z,X1,O1,W2){Promise.resolve(W2).then(function(s0){Z({value:s0,done:O1})},X1)}(O1,W2,(X1=D1[Z](X1)).done,X1.value)})}}}v.d(r1,{AQ:()=>c2,N3:()=>s2,sH:()=>j,xN:()=>B2}),"function"==typeof SuppressedError&&SuppressedError},8184:k1=>{"use strict";k1.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"}]')}},k1=>{k1(k1.s=4622)}]); \ No newline at end of file diff --git a/portal/bae-frontend/main.6dad3a11e56e08c8.js b/portal/bae-frontend/main.6dad3a11e56e08c8.js new file mode 100644 index 00000000..6eba0911 --- /dev/null +++ b/portal/bae-frontend/main.6dad3a11e56e08c8.js @@ -0,0 +1 @@ +(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[792],{8508:(k1,r1,v)=>{"use strict";v.d(r1,{K:()=>c1});var u=v(1626),g=v(1985),e=v(6354),p=v(7468),L=v(2087),S=v(8058),A=v(5312),V=v(4438);let c1=(()=>{class K{get apiUrl(){const j=A.c.quoteApi;return j.startsWith("http://")||j.startsWith("https://")?j:`${A.c.BASE_URL}${j}`}get httpOptions(){return{headers:new u.Lr({"Content-Type":"application/json"})}}constructor(j){this.http=j,console.log("\u{1f50d} [DEBUG] QuoteService constructor - BASE_URL:",A.c.BASE_URL)}createQuote(j){return this.http.post(`${this.apiUrl}/quote`,j,this.httpOptions)}createQuoteFromRequest(j){return this.http.post(`${this.apiUrl}${A.c.quoteEndpoints.createQuote}`,j,this.httpOptions)}listQuotes(j,l1,m1){let f1=new u.Nl;return j&&(f1=f1.set("fields",j)),void 0!==l1&&(f1=f1.set("offset",l1.toString())),void 0!==m1&&(f1=f1.set("limit",m1.toString())),this.http.get(`${this.apiUrl}/quote`,{params:f1,...this.httpOptions})}retrieveQuote(j,l1){let m1=new u.Nl;l1&&(m1=m1.set("fields",l1));const f1=encodeURIComponent(j);return console.log("Retrieving quote with URL:",`${this.apiUrl}/quoteById/${f1}`),this.http.get(`${this.apiUrl}/quoteById/${f1}`,{params:m1,...this.httpOptions})}patchQuote(j,l1){const m1=encodeURIComponent(j);return console.log("Updating quote with URL:",`${this.apiUrl}/updateQuoteStatus/${m1}`),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${m1}`,l1,this.httpOptions)}deleteQuote(j){const l1=encodeURIComponent(j);return console.log("Deleting quote with URL:",`${this.apiUrl}/quote/${l1}`),this.http.delete(`${this.apiUrl}/quote/${l1}`,this.httpOptions)}getAllQuotes(){return this.listQuotes()}getQuoteById(j){return this.retrieveQuote(j)}updateQuoteState(j,l1){return this.patchQuote(j,{state:l1})}updateQuoteDescription(j,l1){return this.patchQuote(j,{description:l1})}addNoteToQuote(j,l1,m1){let f1=new u.Nl;f1=f1.set("userId",m1||""),f1=f1.set("messageContent",l1);const $1=encodeURIComponent(j);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(j,l1,m1){const f1={};return l1&&(f1.expectedQuoteCompletionDate=l1),m1&&(f1.requestedQuoteCompletionDate=m1),this.patchQuote(j,f1)}getQuotesByUserAndRole(j,l1){let m1=new u.Nl;m1=m1.set("role","customer"===l1?A.c.BUYER_ROLE:A.c.SELLER_ROLE);const $1=encodeURIComponent(j);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(j){return new g.c(l1=>{this.listQuotes().subscribe({next:m1=>{let f1=m1;j.state&&(f1=f1.filter($1=>$1.state===j.state)),j.category&&(f1=f1.filter($1=>$1.category===j.category)),j.externalId&&(f1=f1.filter($1=>$1.externalId===j.externalId)),j.description&&(f1=f1.filter($1=>$1.description?.toLowerCase().includes(j.description.toLowerCase()))),l1.next(f1)},error:m1=>l1.error(m1)})})}updateQuoteStatus(j,l1){let m1=new u.Nl;m1=m1.set("statusValue",l1);const f1=encodeURIComponent(j);return console.log("Updating quote status with URL:",`${this.apiUrl}/updateQuoteStatus/${f1}`),console.log("Status value:",l1),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${f1}`,null,{params:m1,...this.httpOptions})}updateQuoteDate(j,l1,m1){let f1=new u.Nl;f1=f1.set("date",l1),f1=f1.set("dateType",m1);const $1=encodeURIComponent(j);return console.log("Updating quote date with URL:",`${this.apiUrl}/updateQuoteDate/${$1}`),console.log("Date:",l1,"DateType:",m1),this.http.patch(`${this.apiUrl}/updateQuoteDate/${$1}`,null,{params:f1,...this.httpOptions})}addNoteToQuoteOld(j,l1){return this.addNoteToQuote(j,l1)}addAttachmentToQuote(j,l1,m1){const f1=new FormData;f1.append("file",l1),m1&&f1.append("description",m1);const $1=encodeURIComponent(j);return this.http.patch(`${this.apiUrl}/addAttachmentToQuote/${$1}`,f1)}downloadAttachment(j){let l1=null;if(Array.isArray(j.quoteItem))for(const m1 of j.quoteItem)if(m1.attachment&&m1.attachment.length>0){l1=m1.attachment[0];break}if(!l1)throw new Error("No attachment found for this quote.");if(!l1.content)throw new Error("Attachment content not found or not embedded.");try{const m1=atob(l1.content),f1=new Uint8Array(m1.length);for(let s2=0;s28?j.id.slice(-8):j.id||"unknown",K2=l1.name||`quote-${d2}-attachment.pdf`;H1.download=K2,document.body.appendChild(H1),H1.click(),document.body.removeChild(H1),URL.revokeObjectURL(g1),console.log(`Downloaded attachment: ${K2}`)}catch(m1){throw console.error("Error decoding BASE64 content:",m1),new Error("Error decoding PDF content. The file may be corrupted.")}}getQuotesByUser(j){return new g.c(l1=>{this.listQuotes().subscribe({next:m1=>{const f1=m1.filter($1=>$1.relatedParty?.some(g1=>g1.id===j));l1.next(f1)},error:m1=>l1.error(m1)})})}isQuoteCancelled(j){return j.quoteItem?.some(l1=>l1.state===S.yz.CANCELLED)||!1}isQuoteAccepted(j){return j.quoteItem?.some(l1=>l1.state===S.yz.ACCEPTED)||!1}isQuoteFinalized(j){return this.isQuoteCancelled(j)||this.isQuoteAccepted(j)}updateQuote(j,l1){return this.patchQuote(j,l1)}createCoordinatorQuote(j,l1){const m1={customerMessage:l1,customerIdRef:j},f1=`${this.apiUrl}/tendering/createCoordinatorQuote`;return console.log("\u{1f50d} [DEBUG] QuoteService.createCoordinatorQuote:"),console.log("\u{1f50d} [DEBUG] this.apiUrl:",this.apiUrl),console.log("\u{1f50d} [DEBUG] Full URL being called:",f1),console.log("\u{1f50d} [DEBUG] environment.quoteApi:",A.c.quoteApi),this.http.post(f1,m1,this.httpOptions).pipe((0,e.T)($1=>this.mapQuoteToTender($1)))}createTenderingQuote(j,l1,m1,f1){return this.http.post(`${this.apiUrl}/tendering/createQuote`,{customerMessage:f1||"",customerIdRef:j,providerIdRef:l1,externalId:m1},this.httpOptions).pipe((0,e.T)(g1=>this.mapQuoteToTender(g1)))}createMultipleTenderingQuotes(j,l1,m1,f1){const $1=l1.map(g1=>this.createTenderingQuote(j,g1,m1,f1));return(0,p.p)($1)}getCoordinatorQuotesByUser(j){const l1=encodeURIComponent(j);return console.log("Getting coordinator quotes for user:",l1),this.http.get(`${this.apiUrl}/tendering/coordinatorQuotes/${l1}`,this.httpOptions).pipe((0,e.T)(m1=>m1.map(f1=>this.mapQuoteToTender(f1))))}getTenderingQuotesByUser(j,l1=L.XZ.SELLER,m1){const f1=encodeURIComponent(j);let $1=(new u.Nl).set("role",l1);return m1&&($1=$1.set("externalId",m1)),console.log("Getting tendering quotes for user:",f1,"role:",l1,"externalId:",m1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions}).pipe((0,e.T)(g1=>g1.map(H1=>this.mapQuoteToTender(H1))))}getTenderingQuotesByExternalId(j,l1,m1){const f1=encodeURIComponent(j);let $1=(new u.Nl).set("role",m1).set("externalId",l1);return console.log("Getting tendering quotes by external ID:",l1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions})}broadcastMessage(j,l1,m1){const f1={externalId:j,userId:l1,messageContent:m1};return console.log("Broadcasting message to external ID:",j),this.http.post(`${this.apiUrl}/tendering/broadcastMessage`,f1,this.httpOptions)}updateTenderStatus(j,l1){return this.updateQuoteStatus(j,l1).pipe((0,e.T)(m1=>this.mapQuoteToTender(m1)))}mapQuoteToTender(j){const l1=j.expectedFulfillmentStartDate||j.effectiveQuoteCompletionDate||(new Date).toISOString(),m1=j.description||void 0;let f1;if(j.quoteItem&&j.quoteItem.length>0){const P1=j.quoteItem[0];if(P1.attachment&&P1.attachment.length>0){const O2=P1.attachment[0];f1={name:O2.name||"attachment.pdf",mimeType:O2.mimeType||"application/pdf",content:O2.content||"",size:O2.size?.amount}}}const $1=j.relatedParty?.filter(P1=>P1.role?.toLowerCase()===L.XZ.SELLER.toLowerCase()).map(P1=>P1.id)||[];let g1="coordinator";j.category===S.K0.TENDER?g1="tendering":j.category===S.K0.COORDINATOR&&(g1="coordinator");let H1="pending";j.quoteItem&&j.quoteItem.length>0?H1=j.quoteItem[0].state||j.state||"pending":j.state&&(H1=j.state);let d2="draft";H1===S.yz.PENDING?d2="draft":H1===S.yz.IN_PROGRESS?d2="pre-launched":H1===S.yz.APPROVED?d2="sent":H1===S.yz.ACCEPTED?d2="closed":H1===S.yz.CANCELLED?d2="cancelled":H1===S.yz.REJECTED&&(d2="rejected");const K2=j.externalId,s2=j.relatedParty?.find(P1=>P1.role?.toLowerCase()===L.XZ.SELLER.toLowerCase())?.name,c2=j.relatedParty?.find(P1=>P1.role?.toLowerCase()===L.XZ.BUYER.toLowerCase())?.id;return{id:j.id,category:g1,state:d2,responseDeadline:l1,tenderNote:m1,attachment:f1,selectedProviders:$1,external_id:K2,provider:s2,buyerPartyId:c2,createdAt:j.quoteDate,updatedAt:j.quoteDate,effectiveQuoteCompletionDate:j.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:j.expectedFulfillmentStartDate,expectedQuoteCompletionDate:j.expectedQuoteCompletionDate,requestedQuoteCompletionDate:j.requestedQuoteCompletionDate}}static{this.\u0275fac=function(l1){return new(l1||K)(V.KVO(u.Qq))}}static{this.\u0275prov=V.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}return K})()},8058:(k1,r1,v)=>{"use strict";v.d(r1,{D5:()=>S,Ft:()=>L1,K0:()=>u,L9:()=>c1,NT:()=>L,R4:()=>e,Wc:()=>A,ZR:()=>V,ak:()=>l1,bJ:()=>K,kU:()=>p,te:()=>j,yz:()=>g});const u={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"},L={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"},V={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."}}},c1={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."}}},L1={STATUS_CHANGE:m1=>`Status changed to: ${m1}`,ATTACHMENT_UPLOADED:m1=>`Attachment uploaded: ${m1}`},j="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.",l1={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:(k1,r1,v)=>{"use strict";v.d(r1,{E9:()=>e,XZ:()=>u,Zk:()=>g});const u={BUYER:"Buyer",SELLER:"Seller"},g={BUYER:"buyer",SELLER:"seller"};function e(L){return L===g.BUYER?u.BUYER:u.SELLER}},452:(k1,r1,v)=>{"use strict";v.d(r1,{O:()=>S});var u=v(3207),g=v(5312),e=v(4438),p=v(1626),L=v(3077);class S{static{this.BASE_URL=g.c.BASE_URL}static{this.API_ACCOUNT=g.c.ACCOUNT}constructor(V,c1){this.http=V,this.localStorage=c1}getBillingAccount(){return(0,u.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`))}getBillingAccountById(V){return(0,u.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${V}`))}postBillingAccount(V){return this.http.post(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`,V)}updateBillingAccount(V,c1){return this.http.patch(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${V}`,c1)}deleteBillingAccount(V){return this.http.delete(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${V}`)}getUserInfo(V){return(0,u.s)(this.http.get(`${S.BASE_URL}/party/individual/${V}`))}getOrgInfo(V){return(0,u.s)(this.http.get(`${S.BASE_URL}/party/organization/${V}`))}getOrgList(){return(0,u.s)(this.http.get(`${S.BASE_URL}/party/organization`))}updateUserInfo(V,c1){return this.http.patch(`${S.BASE_URL}/party/individual/${V}`,c1)}updateOrgInfo(V,c1){return this.http.patch(`${S.BASE_URL}/party/organization/${V}`,c1)}static{this.\u0275fac=function(c1){return new(c1||S)(e.KVO(p.Qq),e.KVO(L.s))}}static{this.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}},3077:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>g});var u=v(4438);let g=(()=>{class e{constructor(){}setItem(L,S){localStorage.setItem(L,S)}getItem(L){return localStorage.getItem(L)}setObject(L,S){localStorage.setItem(L,JSON.stringify(S))}getObject(L){return JSON.parse(localStorage.getItem(L)||"{}")}removeItem(L){localStorage.removeItem(L)}clear(){localStorage.clear()}addCategoryFilter(L){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]");-1===S.findIndex(V=>V.id===L.id)&&(S.push(L),localStorage.setItem("selected_categories",JSON.stringify(S)))}removeCategoryFilter(L){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]"),A=S.findIndex(V=>V.id===L.id);A>-1&&(S.splice(A,1),localStorage.setItem("selected_categories",JSON.stringify(S)))}addCartItem(L){const S=JSON.parse(localStorage.getItem("cart_items")||"[]");-1===S.findIndex(V=>V.id===L.id)&&(S.push(L),localStorage.setItem("cart_items",JSON.stringify(S)))}removeCartItem(L){const S=JSON.parse(localStorage.getItem("cart_items")||"[]"),A=S.findIndex(V=>V.id===L.id);A>-1&&(S.splice(A,1),localStorage.setItem("cart_items",JSON.stringify(S)))}addLoginInfo(L){localStorage.setItem("login_items",JSON.stringify(L))}removeLoginInfo(){localStorage.setItem("login_items",JSON.stringify({}))}static{this.\u0275fac=function(S){return new(S||e)}}static{this.\u0275prov=u.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()},7473:(k1,r1,v)=>{"use strict";v.d(r1,{J:()=>e});var u=v(4412),g=v(4438);let e=(()=>{class p{constructor(){this.notificationSubject=new u.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:(k1,r1,v)=>{"use strict";v.d(r1,{F:()=>K});var u=v(467),g=v(8866),e=v(3207),p=v(9437),L=v(7673),S=v(5312),A=v(4438),V=v(1626),c1=v(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(j,l1){this.http=j,this.localStorage=l1}getAllProducts(){return this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/productOffering?lifecycleStatus=Launched&limit=100`)}getProducts(j,l1){let m1=`${K.BASE_URL}${K.API_PRODUCT}/productOffering?limit=${K.PRODUCT_LIMIT}&offset=${j}&lifecycleStatus=Launched`;return null!=l1&&(m1=m1+"&keyword="+l1),(0,e.s)(this.http.get(m1))}getProductsDetails(j){var l1=this;return(0,u.A)(function*(){let m1=[];return Array.isArray(j)?m1=j:j&&"object"==typeof j&&(m1=[j]),yield Promise.all(m1.map(function(){var f1=(0,u.A)(function*($1){try{const[g1,H1]=yield Promise.all([$1.productSpecification?.id?l1.getProductSpecification($1.productSpecification.id):Promise.resolve(void 0),$1.productOfferingPrice?Promise.all($1.productOfferingPrice.map(d2=>l1.getProductPrice(d2.id))):Promise.resolve([])]);return{id:$1.id,href:$1.href,name:$1.name,description:$1.description,isBundle:$1.isBundle,isSellable:$1.isSellable,lastUpdate:$1.lastUpdate,lifecycleStatus:$1.lifecycleStatus,statusReason:$1.statusReason,version:$1.version,agreement:$1.agreement??[],attachment:g1?.attachment??[],bundledProductOffering:$1.bundledProductOffering??[],category:$1.category??[],channel:$1.channel??[],marketSegment:$1.marketSegment??[],place:$1.place??[],prodSpecCharValueUse:$1.prodSpecCharValueUse??[],productOfferingPrice:H1??[],productOfferingRelationship:$1.productOfferingRelationship??[],productOfferingTerm:$1.productOfferingTerm??[],productSpecification:g1??$1.productSpecification,resourceCandidate:$1.resourceCandidate,serviceCandidate:$1.serviceCandidate,serviceLevelAgreement:$1.serviceLevelAgreement,validFor:$1.validFor,"@baseType":$1["@baseType"],"@schemaLocation":$1["@schemaLocation"],"@type":$1["@type"]}}catch(g1){return console.error(`Error processing product ${$1.id}:`,g1),$1}});return function($1){return f1.apply(this,arguments)}}()))})()}getProductsByCategory(j,l1,m1){let f1="";for(let d2=0;d20){for(let d2=0;d2(console.error("Error getting categories:",l1),(0,L.of)([])))))}getCategories(j){let l1=`${K.BASE_URL}${K.API_PRODUCT}/category?limit=${K.CATEGORY_LIMIT}`,m1="";if(j.length>0){for(let f1=0;f1(console.error("Error getting categories:",f1),(0,L.of)([])))))}getDefaultCategories(){var j=this;return(0,u.A)(function*(){let l1=[];if(S.c.DFT_CATALOG_ID&&""!==S.c.DFT_CATALOG_ID){const m1=yield j.getCatalog(S.c.DFT_CATALOG_ID);m1.category&&(l1=yield Promise.all(m1.category.map(function(){var f1=(0,u.A)(function*($1){return j.getCategoryById($1.id)});return function($1){return f1.apply(this,arguments)}}())))}else l1=yield j.getLaunchedCategories();return l1})()}getCategoryById(j){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category/${j}`))}getCategoriesByParentId(j){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category?parentId=${j}`))}postCategory(j){return this.http.post(`${K.BASE_URL}${K.API_PRODUCT}/category`,j)}updateCategory(j,l1){return this.http.patch(`${K.BASE_URL}${K.API_PRODUCT}/category/${l1}`,j)}getCatalogs(j,l1){let m1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${j}&lifecycleStatus=Launched`;return null!=l1&&(m1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${j}&lifecycleStatus=Launched&body=${l1}`),console.log("getcatalogs"),console.log(this),(0,e.s)(this.http.get(m1))}getCatalogsByUser(j,l1,m1,f1){let $1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${j}&relatedParty.id=${f1}`,g1="";if(m1&&m1.length>0){for(let H1=0;H1"Compliance:VC"===f1.name);if(m1){const f1=m1.productSpecCharacteristicValue?.at(0)?.value,$1=(0,g.s)(f1);let g1=null;if("verifiableCredential"in $1?g1=$1.verifiableCredential:"vc"in $1&&(g1=$1.vc),null!=g1){const H1=g1.credentialSubject;"gx:labelLevel"in H1&&(l1=H1["gx:labelLevel"])}}}return l1}static{this.\u0275fac=function(l1){return new(l1||K)(A.KVO(V.Qq),A.KVO(c1.s))}}static{this.\u0275prov=A.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}},3636:(k1,r1,v)=>{"use strict";v.d(r1,{w:()=>c1});var u=v(467),g=v(4438),e=v(177),p=v(9417),L=v(8508),S=v(7473);function A(K,L1){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 V(K,L1){if(1&K){const j=g.RV6();g.j41(0,"div",2),g.bIt("click",function(){g.eBV(j);const m1=g.XpG();return g.Njj(m1.closeModal())}),g.j41(1,"div",3),g.bIt("click",function(m1){return g.eBV(j),g.Njj(m1.stopPropagation())}),g.j41(2,"button",4),g.bIt("click",function(){g.eBV(j);const m1=g.XpG();return g.Njj(m1.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(m1){g.eBV(j);const f1=g.XpG();return g.Njj(f1.onFileSelected(m1))}),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(j);const m1=g.XpG();return g.Njj(m1.uploadAttachment())}),g.EFF(16),g.k0s(),g.j41(17,"button",13),g.bIt("click",function(){g.eBV(j);const m1=g.XpG();return g.Njj(m1.closeModal())}),g.EFF(18," Cancel "),g.k0s()()()()}if(2&K){const j=g.XpG();g.R7$(5),g.SpI(" Add Attachment to Quote ",j.getShortQuoteId()," "),g.R7$(),g.Y8G("ngIf",j.hasExistingAttachment),g.R7$(9),g.Y8G("disabled",!j.selectedFile||j.isUploading),g.R7$(),g.SpI(" ",j.isUploading?"Uploading...":"Upload"," ")}}let c1=(()=>{class K{constructor(j,l1){this.quoteService=j,this.notificationService=l1,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(j=>j.attachment&&j.attachment.length>0))}onFileSelected(j){const l1=j.target.files[0];if(l1){if("application/pdf"!==l1.type)return this.notificationService.showError("Please select a valid PDF file."),this.selectedFile=null,void(j.target.value="");this.selectedFile=l1}else this.selectedFile=null}uploadAttachment(){var j=this;return(0,u.A)(function*(){if(j.selectedFile&&j.quote?.id&&!j.isUploading){j.isUploading=!0;try{const l1=yield j.quoteService.addAttachmentToQuote(j.quote.id,j.selectedFile,"").toPromise();j.notificationService.showSuccess("Attachment uploaded successfully!"),j.uploadSuccess.emit(l1),j.closeModal()}catch(l1){console.error("Error uploading attachment:",l1),j.notificationService.showError("Error uploading attachment. Please try again.")}finally{j.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(l1){return new(l1||K)(g.rXU(L.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(l1,m1){1&l1&&g.DNE(0,V,19,4,"div",1),2&l1&&g.Y8G("ngIf",m1.isOpen)},dependencies:[e.MD,e.bT,p.YN],encapsulation:2})}}return K})()},8338:(k1,r1,v)=>{"use strict";v.d(r1,{g:()=>V});var u=v(60),g=v(604),e=v(4438);const p=["*"],L=()=>[];function S(c1,K){if(1&c1){const L1=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const l1=e.eBV(L1).$index,m1=e.XpG(2);return e.Njj(m1.goTo(l1))}),e.k0s()}if(2&c1){const L1=K.$index,j=e.XpG(2);e.HbH(j.dotClass(j.index===L1))}}function A(c1,K){if(1&c1&&(e.j41(0,"div",4),e.Z7z(1,S,1,2,"button",5,e.Vm6),e.k0s()),2&c1){const L1=e.XpG();e.R7$(),e.Dyx(e.lJ4(0,L).constructor(L1.pages))}}let V=(()=>{class c1{constructor(){this.visible=3,this.arrowTheme="light",this.dotsTheme="light",this.sidePadding=!0,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(L1){return"accent"===this.dotsTheme?L1?"bg-[#00ADD3]":"bg-[#D1F7FF]":L1?"bg-blue-700":"bg-slate-300"}next(){this.index=Math.min(this.index+1,this.maxIndex)}prev(){this.index=Math.max(this.index-1,0)}goTo(L1){this.index=Math.max(0,Math.min(L1,this.maxIndex))}ngOnChanges(L1){this.index=Math.min(this.index,this.maxIndex)}onResize(){this.index=Math.min(this.index,this.maxIndex)}static{this.\u0275fac=function(j){return new(j||c1)}}static{this.\u0275cmp=e.VBU({type:c1,selectors:[["app-carousel"]],hostBindings:function(j,l1){1&j&&e.bIt("resize",function(){return l1.onResize()},!1,e.tSv)},inputs:{items:"items",visible:"visible",arrowTheme:"arrowTheme",dotsTheme:"dotsTheme",sidePadding:"sidePadding"},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(j,l1){1&j&&(e.NAR(),e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return l1.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 l1.next()}),e.nrm(7,"fa-icon",1),e.k0s()(),e.DNE(8,A,3,1,"div",4)),2&j&&(e.HbH(l1.wrapperClass),e.R7$(),e.HbH(l1.leftButtonClass),e.Y8G("disabled",0===l1.index),e.R7$(),e.Y8G("icon",l1.faChevronLeft),e.R7$(2),e.xc7("transform",l1.trackTransform),e.R7$(2),e.HbH(l1.rightButtonClass),e.Y8G("disabled",l1.index===l1.maxIndex),e.R7$(),e.Y8G("icon",l1.faChevronRight),e.R7$(),e.vxM(8,l1.pages>1?8:-1))},dependencies:[u.dX,u.aY],encapsulation:2})}}return c1})()},5586:(k1,r1,v)=>{"use strict";v.d(r1,{d:()=>m1});var u=v(467),g=v(4438),e=v(177),p=v(9417),L=v(8508),S=v(3077),A=v(7473);function V(f1,$1){1&f1&&(g.j41(0,"div",19),g.EFF(1," Loading messages... "),g.k0s())}function c1(f1,$1){1&f1&&(g.j41(0,"div",20),g.EFF(1," Error loading messages "),g.k0s())}function K(f1,$1){1&f1&&(g.j41(0,"div",19),g.EFF(1," No messages yet. "),g.k0s())}function L1(f1,$1){if(1&f1&&(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&f1){const g1=$1.$implicit,H1=g.XpG(3);g.Y8G("ngClass",H1.isMyMessage(g1)?"justify-end":"justify-start"),g.R7$(),g.Y8G("ngClass",H1.isMyMessage(g1)?"bg-blue-100 text-blue-900":"bg-gray-200 text-gray-800"),g.R7$(2),g.JRh(g1.text),g.R7$(),g.Y8G("ngClass",H1.isMyMessage(g1)?"text-right":"text-left"),g.R7$(),g.SpI(" ",H1.formatMessageDate(g1.date)," ")}}function j(f1,$1){if(1&f1&&(g.j41(0,"div"),g.DNE(1,L1,6,5,"div",21),g.k0s()),2&f1){const g1=g.XpG(2);g.R7$(),g.Y8G("ngForOf",g1.messages)}}function l1(f1,$1){if(1&f1){const g1=g.RV6();g.j41(0,"div",3),g.bIt("click",function(){g.eBV(g1);const d2=g.XpG();return g.Njj(d2.closeModal())}),g.j41(1,"div",4),g.bIt("click",function(d2){return g.eBV(g1),g.Njj(d2.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(g1);const d2=g.XpG();return g.Njj(d2.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,V,2,0,"div",11)(11,c1,2,0,"div",12)(12,K,2,0,"div",11)(13,j,2,1,"div",13),g.k0s(),g.j41(14,"form",14,1),g.bIt("ngSubmit",function(){g.eBV(g1);const d2=g.XpG();return g.Njj(d2.sendMessage())}),g.j41(16,"input",15),g.mxI("ngModelChange",function(d2){g.eBV(g1);const K2=g.XpG();return g.DH7(K2.newMessage,d2)||(K2.newMessage=d2),g.Njj(d2)}),g.bIt("keydown.enter",function(d2){g.eBV(g1);const K2=g.XpG();return g.Njj(K2.onEnterKey(d2))}),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(g1);const d2=g.XpG();return g.Njj(d2.closeModal())}),g.EFF(21," Close "),g.k0s()()()()()}if(2&f1){const g1=g.XpG();g.R7$(4),g.SpI(" Chat for Quote ",g1.getShortQuoteId()," "),g.R7$(6),g.Y8G("ngIf",g1.isLoading),g.R7$(),g.Y8G("ngIf",g1.error),g.R7$(),g.Y8G("ngIf",!g1.isLoading&&!g1.error&&0===g1.messages.length),g.R7$(),g.Y8G("ngIf",!g1.isLoading&&!g1.error&&g1.messages.length>0),g.R7$(3),g.R50("ngModel",g1.newMessage),g.Y8G("disabled",g1.isSending),g.R7$(2),g.Y8G("disabled",g1.isSending||!g1.newMessage.trim()),g.R7$(),g.SpI(" ",g1.isSending?"Sending...":"Send"," ")}}let m1=(()=>{class f1{constructor(g1,H1,d2){this.quoteService=g1,this.localStorage=H1,this.notificationService=d2,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 g1=this.localStorage.getObject("login_items");if(g1.logged_as==g1.id)this.currentUserId=g1.partyId;else{let H1=g1.organizations.find(d2=>d2.id==g1.logged_as);this.currentUserId=H1.partyId}this.isOpen&&this.quoteId&&(this.loadMessages(),this.startPolling())}ngOnChanges(){if(this.isOpen&&this.quoteId){let g1=this.localStorage.getObject("login_items");if(g1.logged_as==g1.id)this.currentUserId=g1.partyId;else{let H1=g1.organizations.find(d2=>d2.id==g1.logged_as);this.currentUserId=H1.partyId}this.loadMessages(),this.startPolling()}else this.isOpen||(this.stopPolling(),this.resetState())}ngOnDestroy(){this.stopPolling()}loadMessages(){var g1=this;return(0,u.A)(function*(){if(g1.quoteId){g1.isLoading=!0,g1.error=!1;try{const H1=yield g1.quoteService.getQuoteById(g1.quoteId).toPromise();H1&&(g1.messages=Array.isArray(H1?.note)?H1.note:[]),g1.scrollToBottom()}catch(H1){console.error("Error loading messages:",H1),g1.error=!0}finally{g1.isLoading=!1}}})()}sendMessage(){var g1=this;return(0,u.A)(function*(){if(console.log("sendMessage called"),console.log("newMessage:",g1.newMessage),console.log("quoteId:",g1.quoteId),console.log("currentUserId:",g1.currentUserId),console.log("isSending:",g1.isSending),g1.newMessage.trim()&&g1.quoteId&&g1.currentUserId&&!g1.isSending){console.log("Starting to send message..."),g1.isSending=!0;try{console.log("Calling addNoteToQuote API..."),yield g1.quoteService.addNoteToQuote(g1.quoteId,g1.newMessage.trim(),g1.currentUserId).toPromise(),console.log("Message sent successfully"),g1.newMessage="",yield g1.loadMessages()}catch(H1){console.error("Error sending message:",H1),g1.notificationService.showError("Error sending message. Please try again.")}finally{g1.isSending=!1}}else console.log("Validation failed, returning early")})()}onEnterKey(g1){g1.preventDefault(),this.sendMessage()}isMyMessage(g1){return g1.author===this.currentUserId}formatMessageDate(g1){if(!g1)return"";try{const H1=new Date(g1),d2=H1.getDate().toString().padStart(2,"0"),K2=(H1.getMonth()+1).toString().padStart(2,"0"),s2=H1.getFullYear();return`${d2}/${K2}/${s2} ${H1.getHours().toString().padStart(2,"0")}:${H1.getMinutes().toString().padStart(2,"0")}`}catch{return g1}}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 g1=document.querySelector(".overflow-y-auto");g1&&(g1.scrollTop=g1.scrollHeight)},100)}static{this.\u0275fac=function(H1){return new(H1||f1)(g.rXU(L.K),g.rXU(S.s),g.rXU(A.J))}}static{this.\u0275cmp=g.VBU({type:f1,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(H1,d2){1&H1&&g.DNE(0,l1,22,9,"div",2),2&H1&&g.Y8G("ngIf",d2.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 f1})()},3836:(k1,r1,v)=>{"use strict";v.d(r1,{w:()=>p});var u=v(4438),g=v(177);function e(L,S){if(1&L){const A=u.RV6();u.j41(0,"div",1)(1,"div",2)(2,"h3",3),u.EFF(3),u.k0s(),u.j41(4,"p",4),u.EFF(5),u.k0s(),u.j41(6,"div",5)(7,"button",6),u.bIt("click",function(){u.eBV(A);const c1=u.XpG();return u.Njj(c1.onCancel())}),u.EFF(8," Cancel "),u.k0s(),u.j41(9,"button",7),u.bIt("click",function(){u.eBV(A);const c1=u.XpG();return u.Njj(c1.onConfirm())}),u.EFF(10),u.k0s()()()()}if(2&L){const A=u.XpG();u.R7$(3),u.JRh(A.title),u.R7$(2),u.JRh(A.message),u.R7$(4),u.HbH(A.confirmButtonClass),u.R7$(),u.SpI(" ",A.confirmText," ")}}let p=(()=>{class L{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 u.bkB,this.cancel=new u.bkB}onConfirm(){this.confirm.emit()}onCancel(){this.cancel.emit()}static{this.\u0275fac=function(V){return new(V||L)}}static{this.\u0275cmp=u.VBU({type:L,selectors:[["app-confirm-dialog"]],inputs:{isOpen:"isOpen",title:"title",message:"message",confirmText:"confirmText",confirmButtonClass:"confirmButtonClass"},outputs:{confirm:"confirm",cancel:"cancel"},standalone:!0,features:[u.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(V,c1){1&V&&u.DNE(0,e,11,5,"div",0),2&V&&u.Y8G("ngIf",c1.isOpen)},dependencies:[g.MD,g.bT],encapsulation:2})}}return L})()},8944:(k1,r1,v)=>{"use strict";v.d(r1,{z:()=>S});var u=v(177),g=v(4438),e=v(7473);const p=(A,V,c1)=>({"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":V,"bg-blue-100 text-blue-800":c1});function L(A,V){if(1&A&&(g.j41(0,"div",1),g.EFF(1),g.k0s()),2&A){const c1=V.ngIf;g.Y8G("ngClass",g.sMw(2,p,"success"===c1.type,"error"===c1.type,"info"===c1.type)),g.R7$(),g.SpI(" ",c1.message," ")}}let S=(()=>{class A{constructor(c1){this.notificationService=c1}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,L1){1&K&&(g.DNE(0,L,2,6,"div",0),g.nI1(1,"async")),2&K&&g.Y8G("ngIf",g.bMT(1,1,L1.notificationService.notification$))},dependencies:[u.MD,u.YU,u.bT,u.Jj],encapsulation:2})}}return A})()},6964:(k1,r1,v)=>{"use strict";v.d(r1,{h:()=>A1});var u=v(4438),g=v(177),e=v(9417),p=v(1600),L=v(5558),S=v(7468),A=v(7673),V=v(8508),c1=v(7473),K=v(452),L1=v(7387),j=v(8058),l1=v(2087),m1=v(5586),f1=v(3836);function $1(F1,Z1){1&F1&&(u.j41(0,"div",19),u.nrm(1,"div",20),u.k0s())}function g1(F1,Z1){if(1&F1&&(u.j41(0,"div",21),u.EFF(1),u.k0s()),2&F1){const Z=u.XpG(2);u.R7$(),u.SpI(" ",Z.error," ")}}function H1(F1,Z1){if(1&F1&&(u.j41(0,"div",36)(1,"p",37),u.EFF(2,"Buyer Information"),u.k0s(),u.j41(3,"div",38)(4,"div")(5,"p",39),u.EFF(6,"Buyer:"),u.k0s(),u.j41(7,"p",40),u.EFF(8),u.k0s(),u.j41(9,"p",41),u.EFF(10),u.k0s()(),u.j41(11,"div")(12,"p",39),u.EFF(13,"Buyer Operator:"),u.k0s(),u.j41(14,"p",40),u.EFF(15),u.k0s(),u.j41(16,"p",41),u.EFF(17),u.k0s()()()()),2&F1){const Z=u.XpG(3);u.R7$(8),u.JRh(Z.buyerName),u.R7$(2),u.SpI("VAT ID: ",Z.buyerVatId,""),u.R7$(5),u.JRh(Z.buyerOperatorName),u.R7$(2),u.SpI("VAT ID: ",Z.buyerOperatorVatId,"")}}function d2(F1,Z1){if(1&F1&&(u.j41(0,"div",36)(1,"p",37),u.EFF(2,"Seller Information"),u.k0s(),u.j41(3,"div",38)(4,"div")(5,"p",39),u.EFF(6,"Seller:"),u.k0s(),u.j41(7,"p",40),u.EFF(8),u.k0s(),u.j41(9,"p",41),u.EFF(10),u.k0s()(),u.j41(11,"div")(12,"p",39),u.EFF(13,"Seller Operator:"),u.k0s(),u.j41(14,"p",40),u.EFF(15),u.k0s(),u.j41(16,"p",41),u.EFF(17),u.k0s()()()()),2&F1){const Z=u.XpG(3);u.R7$(8),u.JRh(Z.sellerName),u.R7$(2),u.SpI("VAT ID: ",Z.sellerVatId,""),u.R7$(5),u.JRh(Z.sellerOperatorName),u.R7$(2),u.SpI("VAT ID: ",Z.sellerOperatorVatId,"")}}function K2(F1,Z1){if(1&F1&&(u.j41(0,"div")(1,"p",42),u.EFF(2,"Product:"),u.k0s(),u.j41(3,"p",43),u.EFF(4),u.k0s()()),2&F1){const Z=u.XpG(3);u.R7$(4),u.JRh(Z.productName)}}function s2(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"button",46),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.showExpectedDatePicker=!0)}),u.qSk(),u.j41(1,"svg",47),u.nrm(2,"path",48),u.k0s()()}}function c2(F1,Z1){if(1&F1&&(u.j41(0,"div",38)(1,"div")(2,"p",42),u.EFF(3,"Requested Date:"),u.k0s(),u.j41(4,"p",43),u.EFF(5),u.nI1(6,"date"),u.k0s()(),u.j41(7,"div")(8,"p",42),u.EFF(9,"Expected Date:"),u.k0s(),u.j41(10,"div",44)(11,"p",43),u.EFF(12),u.nI1(13,"date"),u.k0s(),u.DNE(14,s2,3,0,"button",45),u.k0s()()()),2&F1){const Z=u.XpG(3);u.R7$(5),u.SpI(" ",Z.quote.requestedQuoteCompletionDate?u.i5U(6,3,Z.quote.requestedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),u.R7$(7),u.SpI(" ",Z.quote.expectedQuoteCompletionDate?u.i5U(13,6,Z.quote.expectedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),u.R7$(2),u.Y8G("ngIf",Z.canEditExpectedDate())}}function P1(F1,Z1){if(1&F1&&(u.j41(0,"div",38)(1,"div")(2,"p",42),u.EFF(3,"Tender Start Date:"),u.k0s(),u.j41(4,"p",43),u.EFF(5),u.k0s()(),u.j41(6,"div")(7,"p",42),u.EFF(8,"Tender End Date:"),u.k0s(),u.j41(9,"p",43),u.EFF(10),u.k0s()()()),2&F1){const Z=u.XpG(3);u.R7$(5),u.SpI(" ",Z.getTenderStartDate()," "),u.R7$(5),u.SpI(" ",Z.getTenderEndDate()," ")}}function O2(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",51),u.qSk(),u.j41(1,"svg",52),u.nrm(2,"path",53),u.k0s(),u.joV(),u.j41(3,"span",31),u.EFF(4),u.k0s(),u.j41(5,"button",54),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.downloadCoordinatorAttachment())}),u.EFF(6," Download "),u.k0s()()}if(2&F1){const Z=u.XpG(4);u.R7$(4),u.SpI("Customer Request: ",Z.getCoordinatorAttachmentName(),"")}}function r2(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",51),u.qSk(),u.j41(1,"svg",55),u.nrm(2,"path",53),u.k0s(),u.joV(),u.j41(3,"span",31),u.EFF(4),u.k0s(),u.j41(5,"button",54),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.downloadAttachment())}),u.EFF(6," Download "),u.k0s()()}if(2&F1){const Z=u.XpG(4);u.R7$(4),u.JRh(Z.getAttachmentName())}}function z2(F1,Z1){1&F1&&(u.j41(0,"p",62),u.EFF(1,"Uploading..."),u.k0s())}function v2(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",56)(1,"label",57),u.qSk(),u.j41(2,"svg",16),u.nrm(3,"path",58),u.k0s(),u.joV(),u.j41(4,"span"),u.EFF(5,"Upload PDF attachment"),u.k0s(),u.j41(6,"input",59),u.bIt("change",function(O1){u.eBV(Z);const q2=u.XpG(4);return u.Njj(q2.onFileSelected(O1))}),u.k0s()(),u.j41(7,"p",60),u.EFF(8,"Maximum file size: 10MB"),u.k0s(),u.DNE(9,z2,2,0,"p",61),u.k0s()}if(2&F1){const Z=u.XpG(4);u.R7$(9),u.Y8G("ngIf",Z.isUploading)}}function _2(F1,Z1){if(1&F1&&(u.j41(0,"div",29)(1,"p",37),u.EFF(2,"Attachments"),u.k0s(),u.DNE(3,O2,7,1,"div",49)(4,r2,7,1,"div",49)(5,v2,10,1,"div",50),u.k0s()),2&F1){const Z=u.XpG(3);u.R7$(3),u.Y8G("ngIf",Z.hasCoordinatorAttachment()),u.R7$(),u.Y8G("ngIf",Z.hasAttachment()),u.R7$(),u.Y8G("ngIf",Z.canUploadAttachment())}}function Q2(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",65)(1,"p",42),u.EFF(2),u.k0s(),u.j41(3,"button",66),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.acceptQuote())}),u.qSk(),u.j41(4,"svg",16),u.nrm(5,"path",67),u.k0s(),u.EFF(6),u.k0s()()}if(2&F1){const Z=u.XpG(4);u.R7$(2),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER?Z.ACTION_TEXTS.ACCEPT_TENDER_INVITE:Z.ACTION_TEXTS.ACCEPT_QUOTE_PROVIDER," "),u.R7$(),u.Y8G("disabled",Z.isProcessing||!Z.canAcceptQuote())("title",Z.getAcceptButtonTooltip()),u.R7$(3),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER?"Accept Invite":"Accept Quote"," ")}}function _4(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",65)(1,"p",42),u.EFF(2),u.k0s(),u.j41(3,"button",68),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.acceptProposal())}),u.qSk(),u.j41(4,"svg",16),u.nrm(5,"path",67),u.k0s(),u.EFF(6," Accept Quote "),u.k0s()()}if(2&F1){const Z=u.XpG(4);u.R7$(2),u.JRh(Z.ACTION_TEXTS.ACCEPT_PROPOSAL_CUSTOMER),u.R7$(),u.Y8G("disabled",Z.isProcessing)}}function F0(F1,Z1){if(1&F1&&(u.j41(0,"div",29)(1,"div",63),u.DNE(2,Q2,7,4,"div",64)(3,_4,7,2,"div",64),u.k0s()()),2&F1){const Z=u.XpG(3);u.R7$(2),u.Y8G("ngIf","seller"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.PENDING&&(Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.TENDER||Z.getCoordinatorState()===Z.QUOTE_STATUSES.IN_PROGRESS)),u.R7$(),u.Y8G("ngIf","customer"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.APPROVED&&(Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.TENDER||Z.getCoordinatorState()===Z.QUOTE_STATUSES.ACCEPTED))}}function b4(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",65)(1,"p",42),u.EFF(2,"Send a message to all invited providers in this tender"),u.k0s(),u.j41(3,"button",69),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(4);return u.Njj(O1.openBroadcastMessage())}),u.qSk(),u.j41(4,"svg",16),u.nrm(5,"path",70),u.k0s(),u.EFF(6," Broadcast Message "),u.k0s()()}if(2&F1){const Z=u.XpG(4);u.R7$(3),u.Y8G("disabled",Z.isProcessing)}}function L2(F1,Z1){if(1&F1&&(u.j41(0,"div",29)(1,"div",63),u.DNE(2,b4,7,1,"div",64),u.k0s()()),2&F1){const Z=u.XpG(3);u.R7$(2),u.Y8G("ngIf","customer"===Z.currentUserRole&&Z.getPrimaryState()!==Z.QUOTE_STATUSES.PENDING)}}function A0(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",29)(1,"div",65)(2,"p",42),u.EFF(3),u.k0s(),u.j41(4,"button",71),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(3);return u.Njj(O1.cancelQuote())}),u.qSk(),u.j41(5,"svg",16),u.nrm(6,"path",10),u.k0s(),u.EFF(7),u.k0s()()()}if(2&F1){const Z=u.XpG(3);u.R7$(3),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR?"Cancel this tender and all the related quotes / invites":Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER&&"seller"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.PENDING?Z.ACTION_TEXTS.DECLINE_TENDER_INVITE:Z.ACTION_TEXTS.CANCEL_QUOTE_PROVIDER," "),u.R7$(),u.Y8G("disabled",Z.isProcessing),u.R7$(3),u.SpI(" ",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR?"Cancel Tender":"Cancel Quote"," ")}}function y1(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",29)(1,"div",65)(2,"p",42),u.EFF(3),u.k0s(),u.j41(4,"button",15),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG(3);return u.Njj(O1.createOffer())}),u.qSk(),u.j41(5,"svg",16),u.nrm(6,"path",58),u.k0s(),u.EFF(7," Create Offer "),u.k0s()()()}if(2&F1){const Z=u.XpG(3);u.R7$(3),u.JRh(Z.ACTION_TEXTS.CREATE_OFFER)}}function e2(F1,Z1){if(1&F1&&(u.j41(0,"div",22),u.DNE(1,H1,18,4,"div",23)(2,d2,18,4,"div",23)(3,K2,5,1,"div",24),u.j41(4,"div")(5,"p",25),u.EFF(6,"Request:"),u.k0s(),u.j41(7,"div",26)(8,"p",27),u.EFF(9),u.k0s()()(),u.DNE(10,c2,15,9,"div",28)(11,P1,11,2,"div",28),u.j41(12,"div",29)(13,"div",30)(14,"p",31),u.EFF(15,"The quote is in status:"),u.k0s(),u.j41(16,"span",32),u.EFF(17),u.k0s()(),u.j41(18,"p",33),u.EFF(19),u.k0s(),u.j41(20,"p",34),u.EFF(21),u.k0s()(),u.DNE(22,_2,6,3,"div",35)(23,F0,4,2,"div",35)(24,L2,3,1,"div",35)(25,A0,8,3,"div",35)(26,y1,8,1,"div",35),u.k0s()),2&F1){const Z=u.XpG(2);u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TAILORED),u.R7$(6),u.JRh(Z.quote.description||"No message provided"),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TAILORED),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.TENDER||Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(5),u.Y8G("ngClass",Z.getStatusBadgeClass()),u.R7$(),u.SpI(" ",Z.getStatusLabel()," "),u.R7$(2),u.JRh(Z.getStatusExplanation()),u.R7$(2),u.JRh(Z.getAvailableActionsText()),u.R7$(),u.Y8G("ngIf",Z.hasAttachment()||Z.canUploadAttachment()||Z.hasCoordinatorAttachment()),u.R7$(),u.Y8G("ngIf",Z.hasActionButtons()&&Z.getQuoteCategory()!==Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getQuoteCategory()===Z.QUOTE_CATEGORIES.COORDINATOR),u.R7$(),u.Y8G("ngIf",Z.getPrimaryState()!==Z.QUOTE_STATUSES.ACCEPTED&&Z.getPrimaryState()!==Z.QUOTE_STATUSES.CANCELLED),u.R7$(),u.Y8G("ngIf","seller"===Z.currentUserRole&&Z.getPrimaryState()===Z.QUOTE_STATUSES.ACCEPTED)}}function h2(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",4),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeModal())}),u.j41(1,"div",5),u.bIt("click",function(O1){return u.eBV(Z),u.Njj(O1.stopPropagation())}),u.j41(2,"div",6)(3,"h2",7),u.EFF(4),u.k0s(),u.j41(5,"button",8),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeModal())}),u.qSk(),u.j41(6,"svg",9),u.nrm(7,"path",10),u.k0s()()(),u.DNE(8,$1,2,0,"div",11)(9,g1,2,1,"div",12)(10,e2,27,15,"div",13),u.joV(),u.j41(11,"div",14)(12,"button",15),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.openChat())}),u.qSk(),u.j41(13,"svg",16),u.nrm(14,"path",17),u.k0s(),u.EFF(15," Chat "),u.k0s(),u.joV(),u.j41(16,"button",18),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeModal())}),u.EFF(17," Close "),u.k0s()()()()}if(2&F1){const Z=u.XpG();u.R7$(4),u.JRh(Z.getModalTitle()),u.R7$(4),u.Y8G("ngIf",Z.isLoading),u.R7$(),u.Y8G("ngIf",Z.error),u.R7$(),u.Y8G("ngIf",!Z.isLoading&&!Z.error&&Z.quote)}}function D1(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",72)(1,"div",73)(2,"h3",74),u.EFF(3,"Set Expected Completion Date"),u.k0s(),u.j41(4,"p",75),u.EFF(5,"Select when you expect to complete this quote:"),u.k0s(),u.j41(6,"input",76),u.mxI("ngModelChange",function(O1){u.eBV(Z);const q2=u.XpG();return u.DH7(q2.selectedExpectedDate,O1)||(q2.selectedExpectedDate=O1),u.Njj(O1)}),u.k0s(),u.j41(7,"div",77)(8,"button",18),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.showExpectedDatePicker=!1)}),u.EFF(9," Cancel "),u.k0s(),u.j41(10,"button",78),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.saveExpectedDate())}),u.EFF(11," Save "),u.k0s()()()()}if(2&F1){const Z=u.XpG();u.R7$(6),u.R50("ngModel",Z.selectedExpectedDate),u.Y8G("min",Z.minDate),u.R7$(4),u.Y8G("disabled",!Z.selectedExpectedDate)}}function j1(F1,Z1){if(1&F1){const Z=u.RV6();u.j41(0,"div",72)(1,"div",79)(2,"h3",74),u.EFF(3,"Broadcast Message"),u.k0s(),u.j41(4,"p",75),u.EFF(5,"This message will be sent to all invited providers in this tender:"),u.k0s(),u.j41(6,"textarea",80),u.mxI("ngModelChange",function(O1){u.eBV(Z);const q2=u.XpG();return u.DH7(q2.broadcastMessage,O1)||(q2.broadcastMessage=O1),u.Njj(O1)}),u.k0s(),u.j41(7,"div",77)(8,"button",18),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.closeBroadcastModal())}),u.EFF(9," Cancel "),u.k0s(),u.j41(10,"button",78),u.bIt("click",function(){u.eBV(Z);const O1=u.XpG();return u.Njj(O1.sendBroadcastMessage())}),u.EFF(11),u.k0s()()()()}if(2&F1){const Z=u.XpG();u.R7$(6),u.R50("ngModel",Z.broadcastMessage),u.R7$(4),u.Y8G("disabled",!Z.broadcastMessage||Z.isBroadcastSending),u.R7$(),u.SpI(" ",Z.isBroadcastSending?"Sending...":"Send"," ")}}let A1=(()=>{class F1{constructor(){this.isOpen=!1,this.quoteId=null,this.currentUserRole="customer",this.currentUserId="",this.close=new u.bkB,this.quoteUpdated=new u.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=j.ak,this.QUOTE_CATEGORIES=j.K0,this.QUOTE_STATUSES=j.yz,this.quoteService=(0,u.WQX)(V.K),this.notificationService=(0,u.WQX)(c1.J),this.accountService=(0,u.WQX)(K.O),this.productService=(0,u.WQX)(L1.F),this.router=(0,u.WQX)(p.Ix)}get minDate(){return(new Date).toISOString().split("T")[0]}ngOnInit(){this.isOpen&&this.quoteId&&this.loadQuote(this.quoteId)}ngOnChanges(Z){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(Z){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(Z).subscribe({next:X1=>{this.quote=X1,X1.category===j.K0.TENDER&&X1.externalId?this.quoteService.getQuoteById(X1.externalId).subscribe({next:O1=>{this.coordinatorQuote=O1,console.log("Loaded coordinator quote:",O1),this.isLoading=!1,this.enrichQuoteData()},error:O1=>{console.error("Failed to load coordinator quote:",O1),this.isLoading=!1,this.enrichQuoteData()}}):(this.isLoading=!1,this.enrichQuoteData())},error:X1=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}isOrganizationId(Z){return!!Z&&Z.startsWith("urn:ngsi-ld:organization:")}fetchPartyName(Z,X1,O1="N/A"){Z?this.isOrganizationId(Z)?this.accountService.getOrgInfo(Z).then(q2=>{X1(q2?.tradingName||q2?.name||Z)},()=>{X1(Z)}):X1(Z):X1(O1)}enrichQuoteData(){if(!this.quote)return;const Z=this.quote.relatedParty?.find(h0=>"buyer"===h0.role?.toLowerCase()),X1=this.quote.relatedParty?.find(h0=>"buyeroperator"===h0.role?.toLowerCase()),O1=this.quote.relatedParty?.find(h0=>"seller"===h0.role?.toLowerCase()),q2=this.quote.relatedParty?.find(h0=>"selleroperator"===h0.role?.toLowerCase()),B2=h0=>h0?h0.replace(/^did:elsi:/,""):"N/A";this.buyerVatId=B2(Z?.name),this.buyerOperatorVatId=B2(X1?.name),this.sellerVatId=B2(O1?.name),this.sellerOperatorVatId=B2(q2?.name),this.fetchPartyName(Z?.id,h0=>this.buyerName=h0,"N/A"),this.isOrganizationId(X1?.id)&&this.fetchPartyName(X1?.id,h0=>this.buyerOperatorName=h0,"N/A"),this.fetchPartyName(O1?.id,h0=>this.sellerName=h0,"N/A"),this.isOrganizationId(q2?.id)&&this.fetchPartyName(q2?.id,h0=>this.sellerOperatorName=h0,"N/A");const v0=this.quote.quoteItem?.[0]?.productOffering?.id;if(v0){const h0=this.quote.quoteItem?.[0]?.productOffering?.name;h0?this.productName=h0:this.productService.getProductById(v0).then(_0=>{this.productName=_0?.name||v0},()=>{this.productName=v0})}}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 Z=this.getPrimaryState();if(!this.quote)return Z;let X1;switch(X1=this.getQuoteCategory()===j.K0.COORDINATOR?j.R4:this.getQuoteCategory()===j.K0.TENDER?"customer"===this.currentUserRole?j.kU:j.NT:"customer"===this.currentUserRole?j.D5:j.Wc,Z){case j.yz.PENDING:return X1.PENDING;case j.yz.IN_PROGRESS:return X1.IN_PROGRESS;case j.yz.APPROVED:return X1.APPROVED;case j.yz.ACCEPTED:return X1.ACCEPTED;case j.yz.CANCELLED:return X1.CANCELLED;case j.yz.REJECTED:return X1.REJECTED;default:return Z}}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 Z=this.getPrimaryState();return{[j.yz.PENDING]:"border border-[#F2D28A] bg-[#FFF8E6] text-[#7A4D00]",[j.yz.IN_PROGRESS]:"border border-[#B6CAEC] bg-[#EBF0F7] text-[#1f4fbf]",[j.yz.APPROVED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[j.yz.ACCEPTED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[j.yz.REJECTED]:"border border-[#F4C7C7] bg-[#FFF1F1] text-[#B42318]",[j.yz.CANCELLED]:"border border-[#CBD3DF] bg-[#F2F4F8] text-[#324153]"}[Z]||"border border-[#CBD3DF] bg-[#F2F4F8] text-[#526179]"}getQuoteCategory(){return this.quote?.category||"tailored"}getModalTitle(){return this.getQuoteCategory()===j.K0.COORDINATOR?"Tender Details":"Quote Details"}getStatusExplanation(){const Z=this.getPrimaryState(),X1="customer"===this.currentUserRole?"buyer":"provider",O1=this.getQuoteCategory();let q2;return q2=O1===j.K0.COORDINATOR?j.bJ:O1===j.K0.TENDER?j.L9:j.ZR,q2[Z]?.[X1]?.explanation||"Status information unavailable."}getAvailableActionsText(){const Z=this.getPrimaryState(),X1="customer"===this.currentUserRole?"buyer":"provider",O1=this.getQuoteCategory();let q2;return q2=O1===j.K0.COORDINATOR?j.bJ:O1===j.K0.TENDER?j.L9:j.ZR,q2[Z]?.[X1]?.availableActions||""}isQuoteFinalized(){const Z=this.getPrimaryState();return Z===j.yz.CANCELLED||Z===j.yz.ACCEPTED||Z===j.yz.REJECTED}hasAttachment(){return this.quote?.quoteItem?.some(Z=>Z.attachment&&Z.attachment.length>0)||!1}getAttachmentName(){return this.quote?.quoteItem?.[0]?.attachment?.[0]?.name||"attachment.pdf"}hasCoordinatorAttachment(){return this.getQuoteCategory()===j.K0.TENDER&&(this.coordinatorQuote?.quoteItem?.some(Z=>Z.attachment&&Z.attachment.length>0)||!1)}getCoordinatorAttachmentName(){return this.coordinatorQuote?.quoteItem?.[0]?.attachment?.[0]?.name||"tender-request.pdf"}getTenderStartDate(){if(this.getQuoteCategory()===j.K0.TENDER&&this.coordinatorQuote){const X1=this.coordinatorQuote.expectedFulfillmentStartDate;return X1?new Date(X1).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Z=this.quote?.expectedFulfillmentStartDate;return Z?new Date(Z).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}getTenderEndDate(){if(this.getQuoteCategory()===j.K0.TENDER&&this.coordinatorQuote){const X1=this.coordinatorQuote.effectiveQuoteCompletionDate;return X1?new Date(X1).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Z=this.quote?.effectiveQuoteCompletionDate;return Z?new Date(Z).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}canUploadAttachment(){if("seller"!==this.currentUserRole)return!1;if(this.getQuoteCategory()===j.K0.TENDER)return this.getCoordinatorState()===j.yz.APPROVED;const Z=this.getPrimaryState();return Z===j.yz.IN_PROGRESS||Z===j.yz.APPROVED}canEditExpectedDate(){if("seller"!==this.currentUserRole)return!1;const Z=this.getPrimaryState();return!this.isQuoteFinalized()&&(Z===j.yz.PENDING||Z===j.yz.IN_PROGRESS||Z===j.yz.APPROVED)}canRejectOrCancel(){const Z=this.getPrimaryState();return"seller"===this.currentUserRole&&(Z===j.yz.PENDING||Z===j.yz.IN_PROGRESS)||Z===j.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 Z=this.getPrimaryState();return"seller"===this.currentUserRole&&Z===j.yz.PENDING||"customer"===this.currentUserRole&&Z===j.yz.APPROVED}downloadAttachment(){if(this.quote)try{this.quoteService.downloadAttachment(this.quote),this.notificationService.showSuccess("Download started")}catch(Z){this.notificationService.showError(Z.message||"Error downloading attachment")}}downloadCoordinatorAttachment(){if(this.coordinatorQuote)try{this.quoteService.downloadAttachment(this.coordinatorQuote),this.notificationService.showSuccess("Download started")}catch(Z){this.notificationService.showError(Z.message||"Error downloading customer request")}}onFileSelected(Z){const X1=Z.target;if(!X1.files?.length||!this.quote?.id)return;const O1=X1.files[0];if("application/pdf"!==O1.type)return void this.notificationService.showError("Only PDF files are allowed");if(O1.size>10485760)return void this.notificationService.showError("File size exceeds the maximum limit of 10MB");this.isUploading=!0;const o0=O1.name,B2=this.quote.id;this.quoteService.addAttachmentToQuote(B2,O1).pipe((0,L.n)(v0=>(this.quote=v0,this.quoteService.addNoteToQuote(B2,j.Ft.ATTACHMENT_UPLOADED(o0),this.currentUserId).pipe((0,L.n)(()=>this.getPrimaryState()===j.yz.IN_PROGRESS?this.quoteService.updateQuoteStatus(B2,j.yz.APPROVED).pipe((0,L.n)(h0=>(this.quote=h0,this.quoteService.addNoteToQuote(B2,j.Ft.STATUS_CHANGE(j.yz.APPROVED),this.currentUserId)))):[v0]))))).subscribe({next:()=>{this.isUploading=!1,this.notificationService.showSuccess("Attachment uploaded successfully"),this.getPrimaryState()===j.yz.APPROVED&&this.notificationService.showSuccess("Quote has been approved and sent to customer"),this.quoteUpdated.emit(this.quote)},error:v0=>{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 Z=this.quote.id;this.quoteService.updateQuoteStatus(Z,j.yz.IN_PROGRESS).pipe((0,L.n)(X1=>(this.quote=X1,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(j.yz.IN_PROGRESS),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote request accepted"),this.quoteUpdated.emit(this.quote)},error:X1=>{this.isProcessing=!1,this.notificationService.showError("Failed to accept quote")}}),this.showConfirmDialog=!1},this.showConfirmDialog=!0)}acceptProposal(){!this.quote?.id||this.isProcessing||(this.confirmDialogTitle="Accept Quote Proposal",this.confirmDialogMessage="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 Z=this.quote.id;this.quoteService.updateQuoteStatus(Z,j.yz.ACCEPTED).pipe((0,L.n)(X1=>(this.quote=X1,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(j.yz.ACCEPTED),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote proposal accepted"),this.quoteUpdated.emit(this.quote)},error:X1=>{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 Z=this.getQuoteCategory()===j.K0.COORDINATOR;this.confirmDialogTitle=Z?"Cancel Tender":"Cancel Quote",this.confirmDialogMessage=Z?"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=Z?"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,Z?this.cancelCoordinatorWithCascade():this.cancelSingleQuote(this.quote.id)},this.showConfirmDialog=!0}cancelSingleQuote(Z){const X1=j.yz.CANCELLED;this.quoteService.updateQuoteStatus(Z,X1).pipe((0,L.n)(O1=>(this.quote=O1,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(X1),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 Z=this.quote.id,X1=j.yz.CANCELLED;this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,Z,l1.XZ.BUYER).subscribe({next:O1=>{console.log(`Found ${O1.length} related tendering quotes to cancel`);const q2=O1.map(B2=>this.quoteService.updateQuoteStatus(B2.id,X1));(q2.length>0?(0,S.p)(q2):(0,A.of)([])).pipe((0,L.n)(()=>this.quoteService.updateQuoteStatus(Z,X1)),(0,L.n)(B2=>(this.quote=B2,this.quoteService.addNoteToQuote(Z,j.Ft.STATUS_CHANGE(X1),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess(`Tender and ${O1.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 Z=new Date(this.selectedExpectedDate),X1=`${Z.getDate().toString().padStart(2,"0")}-${(Z.getMonth()+1).toString().padStart(2,"0")}-${Z.getFullYear()}`;this.quoteService.updateQuoteDate(this.quote.id,X1,"expected").subscribe({next:O1=>{this.quote=O1,this.showExpectedDatePicker=!1,this.selectedExpectedDate="",this.notificationService.showSuccess("Expected date updated"),this.quoteUpdated.emit(O1)},error:O1=>{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.broadcastMessage(this.quote.id,this.currentUserId,this.broadcastMessage).subscribe({next:()=>{this.notificationService.showSuccess("Message broadcast sent to all invited providers."),this.closeBroadcastModal()},error:Z=>{console.error("Failed to broadcast message:",Z),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(X1){return new(X1||F1)}}static{this.\u0275cmp=u.VBU({type:F1,selectors:[["app-quote-details-modal"]],inputs:{isOpen:"isOpen",quoteId:"quoteId",currentUserRole:"currentUserRole",currentUserId:"currentUserId"},outputs:{close:"close",quoteUpdated:"quoteUpdated"},standalone:!0,features:[u.OA$,u.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"],[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"],["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,"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]"],["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,"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(X1,O1){1&X1&&(u.DNE(0,h2,18,4,"div",0),u.j41(1,"app-chat-modal",1),u.bIt("close",function(){return O1.closeChatModal()}),u.k0s(),u.DNE(2,D1,12,3,"div",2)(3,j1,12,3,"div",2),u.j41(4,"app-confirm-dialog",3),u.bIt("confirm",function(){return O1.confirmDialogCallback&&O1.confirmDialogCallback()})("cancel",function(){return O1.showConfirmDialog=!1}),u.k0s()),2&X1&&(u.Y8G("ngIf",O1.isOpen),u.R7$(),u.Y8G("isOpen",O1.showChatModal)("quoteId",O1.quoteId),u.R7$(),u.Y8G("ngIf",O1.showExpectedDatePicker),u.R7$(),u.Y8G("ngIf",O1.showBroadcastModal),u.R7$(),u.Y8G("isOpen",O1.showConfirmDialog)("title",O1.confirmDialogTitle)("message",O1.confirmDialogMessage)("confirmText",O1.confirmDialogButtonText)("confirmButtonClass",O1.confirmDialogButtonClass))},dependencies:[g.MD,g.YU,g.bT,g.vh,e.YN,e.me,e.BC,e.vS,m1.d,f1.w],encapsulation:2})}}return F1})()},5312:(k1,r1,v)=>{"use strict";v.d(r1,{c:()=>u});const u={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?size=1000",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",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,analytics:"",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}},4622:(k1,r1,v)=>{"use strict";var u=v(345),g=v(1626),e=v(4438),p=v(9417),L=v(177),S=v(1413),A=v(5558),V=v(8750),c1=v(1985),K=v(1397),L1=v(7441),j=v(8071),l1=v(6450);const m1=["addListener","removeListener"],f1=["addEventListener","removeEventListener"],$1=["on","off"];function g1(t,a,c,n){if((0,j.T)(c)&&(n=c,c=void 0),n)return g1(t,a,c).pipe((0,l1.I)(n));const[l,r]=function s2(t){return(0,j.T)(t.addEventListener)&&(0,j.T)(t.removeEventListener)}(t)?f1.map(m=>z=>t[m](a,z,c)):function d2(t){return(0,j.T)(t.addListener)&&(0,j.T)(t.removeListener)}(t)?m1.map(H1(t,a)):function K2(t){return(0,j.T)(t.on)&&(0,j.T)(t.off)}(t)?$1.map(H1(t,a)):[];if(!l&&(0,L1.X)(t))return(0,K.Z)(m=>g1(m,a,c))((0,V.Tg)(t));if(!l)throw new TypeError("Invalid event target");return new c1.c(m=>{const z=(...F)=>m.next(1r(z)})}function H1(t,a){return c=>n=>t[c](a,n)}var c2=v(983),P1=v(6977);const O2=["button"],r2=["*","*"];function z2(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3);e.JRh(c.unified)}}function v2(t,a){if(1&t&&(e.j41(0,"button",4,1)(2,"span",5),e.DNE(3,z2,1,1,"ng-template",2),e.SdG(4),e.k0s()()),2&t){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 _2(t,a){if(1&t&&e.DNE(0,v2,5,8,"button",3),2&t){const c=e.XpG(),n=e.sdS(2);e.Y8G("ngIf",c.useButton)("ngIfElse",n)}}function Q2(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2);e.JRh(c.unified)}}function _4(t,a){if(1&t&&(e.j41(0,"span",6,1)(2,"span",5),e.DNE(3,Q2,1,1,"ng-template",2),e.SdG(4,1),e.k0s()()),2&t){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 F0=[{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-${t}@14.0.0/img/${t}/sheets-256/${a}.png`;let h2=(()=>{class t{uncompressed=!1;names={};emojis=[];constructor(){this.uncompressed||(this.uncompress(b4),this.uncompressed=!0)}uncompress(c){this.emojis=c.map(n=>{const l={...n};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 r=c.find(m=>m.unified===l.obsoletes);r&&(l.keywords=r.keywords?[...l.keywords,...r.keywords,r.shortName]:[...l.keywords,r.shortName])}this.names[l.unified]=l;for(const r of l.shortNames)this.names[r]=l;return l})}getData(c,n,l){let r;if("string"==typeof c){const z=c.match(A0);if(z&&(c=z[1],z[2]&&(n=parseInt(z[2],10))),!this.names.hasOwnProperty(c))return null;r=this.names[c]}else c.id?r=this.names[c.id]:c.unified&&(r=this.names[c.unified.toUpperCase()]);if(r||(r=c,r.custom=!0),r.skinVariations&&r.skinVariations.length&&n&&n>1&&l){r={...r};const z=y1[n-1],F=r.skinVariations.find(I=>I.unified.includes(z));(!F.hidden||!F.hidden.includes(l))&&(r.skinTone=n,r={...r,...F}),r.native=this.unifiedToNative(r.unified)}return r.set=l||"",r}unifiedToNative(c){const n=c.split("-").map(l=>parseInt(`0x${l}`,16));return String.fromCodePoint(...n)}emojiSpriteStyles(c,n="apple",l=24,r=64,m=60,z=e2,F=61,I){const J=!!I;return{width:`${l}px`,height:`${l}px`,display:"inline-block","background-image":`url(${I=I||z(n,r)})`,"background-size":J?"100% 100%":`${100*F}% ${100*m}%`,"background-position":J?void 0:this.getSpritePosition(c,F)}}getSpritePosition(c,n){const[l,r]=c,m=100/(n-1);return`${m*l}% ${m*r}%`}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,n,l){return this.sanitize(this.getData(c,n,l))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),D1=(()=>{class t{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)(h2);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=n=>this.button$.pipe((0,A.n)(l=>l?g1(l,n):c2.w),(0,P1.Q)(this.destroy$));c("click").subscribe(n=>{const l=this.getSanitizedData();this.emojiClickOutsideAngular.emit({emoji:l,$event:n}),this.emojiClick.observed&&this.ngZone.run(()=>this.emojiClick.emit({emoji:l,$event:n}))}),c("mouseenter").subscribe(n=>{const l=this.getSanitizedData();this.emojiOverOutsideAngular.emit({emoji:l,$event:n}),this.emojiOver.observed&&this.ngZone.run(()=>this.emojiOver.emit({emoji:l,$event:n}))}),c("mouseleave").subscribe(n=>{const l=this.getSanitizedData();this.emojiLeaveOutsideAngular.emit({emoji:l,$event:n}),this.emojiLeave.observed&&this.ngZone.run(()=>this.emojiLeave.emit({emoji:l,$event:n}))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=e.VBU({type:t,selectors:[["ngx-emoji"]],viewQuery:function(n,l){if(1&n&&e.GBs(O2,5),2&n){let r;e.mGM(r=e.lsd())&&(l.button=r.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:r2,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(n,l){1&n&&(e.NAR(r2),e.DNE(0,_2,1,2,"ng-template",2)(1,_4,5,8,"ng-template",null,0,e.C5r)),2&n&&e.Y8G("ngIf",l.isVisible)},dependencies:[L.MD,L.bT,L.B3],encapsulation:2,changeDetection:0})}return t})();function A1(t,a){if(1&t){const c=e.RV6();e.j41(0,"span",3),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().index,m=e.XpG();return e.Njj(m.handleClick(l,r))}),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&t){const c=e.XpG().$implicit,n=e.XpG();e.xc7("color",c.name===n.selected?n.color:null),e.AVh("emoji-mart-anchor-selected",c.name===n.selected),e.BMQ("title",n.i18n.categories[c.id]),e.R7$(3),e.BMQ("d",n.icons[c.id]),e.R7$(),e.xc7("background-color",n.color)}}function F1(t,a){1&t&&e.DNE(0,A1,5,8,"span",2),2&t&&e.Y8G("ngIf",!1!==a.$implicit.anchor)}const Z1=["container"],Z=["label"];function X1(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("emoji",c)("size",n.emojiSize)("skin",n.emojiSkin)("isNative",n.emojiIsNative)("set",n.emojiSet)("sheetSize",n.emojiSheetSize)("forceSize",n.emojiForceSize)("tooltip",n.emojiTooltip)("backgroundImageFn",n.emojiBackgroundImageFn)("imageUrlFn",n.emojiImageUrlFn)("hideObsolete",n.hideObsolete)("useButton",n.emojiUseButton)}}function O1(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,X1,1,12,"ngx-emoji",8),e.k0s()),2&t){const c=a.ngIf,n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c)("ngForTrackBy",n.trackById)}}function q2(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,O1,2,2,"div",7),e.nI1(2,"async"),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,c.filteredEmojis$))}}function o0(t,a){if(1&t&&(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&t){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 B2(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("emoji",c)("size",n.emojiSize)("skin",n.emojiSkin)("isNative",n.emojiIsNative)("set",n.emojiSet)("sheetSize",n.emojiSheetSize)("forceSize",n.emojiForceSize)("tooltip",n.emojiTooltip)("backgroundImageFn",n.emojiBackgroundImageFn)("imageUrlFn",n.emojiImageUrlFn)("hideObsolete",n.hideObsolete)("useButton",n.emojiUseButton)}}function v0(t,a){if(1&t&&e.DNE(0,B2,1,12,"ngx-emoji",8),2&t){const c=e.XpG();e.Y8G("ngForOf",c.emojisToDisplay)("ngForTrackBy",c.trackById)}}function h0(t,a){if(1&t){const c=e.RV6();e.j41(0,"span",2)(1,"span",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.handleClick(l))})("keyup.enter",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.handleClick(l))})("keyup.space",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.handleClick(l))}),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG();e.AVh("selected",c===n.skin),e.R7$(),e.ZvI("emoji-mart-skin emoji-mart-skin-tone-",c,""),e.Y8G("tabIndex",n.tabIndex(c)),e.BMQ("aria-hidden",!n.isVisible(c))("aria-pressed",n.pressed(c))("aria-haspopup",!!n.isSelected(c))("aria-expanded",n.expanded(c))("aria-label",n.i18n.skintones[c])("title",n.i18n.skintones[c])}}function _0(t,a){if(1&t&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" :",c,": ")}}function Y0(t,a){if(1&t&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function L4(t,a){if(1&t&&(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,_0,2,1,"span",12),e.k0s(),e.j41(8,"div",13),e.DNE(9,Y0,2,1,"span",14),e.k0s()()()),2&t){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(t,a){if(1&t&&e.nrm(0,"ngx-emoji",16),2&t){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 l4=["inputRef"],C4=["scrollRef"];function P3(t,a){if(1&t){const c=e.RV6();e.j41(0,"emoji-search",8),e.bIt("searchResults",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleSearch(l))})("enterKeyOutsideAngular",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleEnterKey(l))}),e.k0s()}if(2&t){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 W4(t,a){if(1&t){const c=e.RV6();e.j41(0,"emoji-category",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleEmojiOver(l))})("emojiLeaveOutsideAngular",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.handleEmojiLeave())})("emojiClickOutsideAngular",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleEmojiClick(l))}),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG();e.Y8G("id",c.id)("name",c.name)("emojis",c.emojis)("perLine",n.perLine)("totalFrequentLines",n.totalFrequentLines)("hasStickyPosition",n.isNative)("i18n",n.i18n)("hideObsolete",n.hideObsolete)("notFoundEmoji",n.notFoundEmoji)("custom",c.id===n.RECENT_CATEGORY.id?n.CUSTOM_CATEGORY.emojis:void 0)("recent",c.id===n.RECENT_CATEGORY.id?n.recent:void 0)("virtualize",n.virtualize)("virtualizeOffset",n.virtualizeOffset)("emojiIsNative",n.isNative)("emojiSkin",n.skin)("emojiSize",n.emojiSize)("emojiSet",n.set)("emojiSheetSize",n.sheetSize)("emojiForceSize",n.isNative)("emojiTooltip",n.emojiTooltip)("emojiBackgroundImageFn",n.backgroundImageFn)("emojiImageUrlFn",n.imageUrlFn)("emojiUseButton",n.useButton)}}function J6(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",2)(1,"emoji-preview",10),e.bIt("skinChange",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.handleSkinChange(l))}),e.k0s()()}if(2&t){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 G4=(()=>{class t{categories=[];color;selected;i18n;icons={};anchorClick=new e.bkB;trackByFn(c,n){return n.id}handleClick(c,n){this.anchorClick.emit({category:this.categories[n],index:n})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,F1,1,1,"ng-template",1),e.k0s()),2&n&&(e.R7$(),e.Y8G("ngForOf",l.categories)("ngForTrackBy",l.trackByFn))},dependencies:[L.MD,L.Sq,L.bT],encapsulation:2,changeDetection:0})}return t})(),e0=(()=>{class t{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,L.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,L.UE)(this.platformId)&&(localStorage.setItem(`${this.NAMESPACE}.last`,c.id),localStorage.setItem(`${this.NAMESPACE}.frequently`,JSON.stringify(this.frequently)))}get(c,n){if(this.initialized||this.init(),null===this.frequently){this.defaults={};const I=[];for(let J=0;Jthis.frequently[I]-this.frequently[J]).reverse().slice(0,l),F=(0,L.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.last`);return F&&!z.includes(F)&&(z.pop(),z.push(F)),z}static \u0275fac=function(n){return new(n||t)(e.KVO(e.Agw))};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),r0=(()=>{class t{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,n,l){this.ref=c,this.emojiService=n,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(),n=Math.floor(c/(this.emojiSize+12));this.rows=Math.ceil(this.emojisToDisplay.length/n),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:n,height:l}=this.container.nativeElement.getBoundingClientRect(),r=c.getBoundingClientRect().top,m=this.label.nativeElement.getBoundingClientRect().height;this.top=n-r+c.scrollTop,this.maxMargin=0===l?0:l-m}handleScroll(c){let n=c-this.top;if(n=nthis.maxMargin?this.maxMargin:n,this.virtualize){const{top:l,height:r}=this.container.nativeElement.getBoundingClientRect(),m=this.container.nativeElement.parentNode.parentNode.clientHeight;this.filteredEmojisSubject.next(m+(m+this.virtualizeOffset)>=l&&-r-(m+this.virtualizeOffset)<=l?this.emojisToDisplay:[])}return n===this.margin?(this.ref.detectChanges(),!1):(this.hasStickyPosition||(this.label.nativeElement.style.top=`${n}px`),this.margin=n,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(n=>this.custom.filter(r=>r.id===n)[0]||n).filter(n=>!!this.emojiService.getData(n)))}updateDisplay(c){this.containerStyles.display=c,this.updateRecentEmojis(),this.ref.detectChanges()}trackById(c,n){return n}filterEmojis(){const c=[];for(const n of this.emojis||[]){if(!n)continue;const l=this.emojiService.getData(n);!l||l.obsoletedBy&&this.hideObsolete||!l.unified&&!l.custom||c.push(n)}return c}static \u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(h2),e.rXU(e0))};static \u0275cmp=e.VBU({type:t,selectors:[["emoji-category"]],viewQuery:function(n,l){if(1&n&&(e.GBs(Z1,7),e.GBs(Z,7)),2&n){let r;e.mGM(r=e.lsd())&&(l.container=r.first),e.mGM(r=e.lsd())&&(l.label=r.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(n,l){if(1&n&&(e.j41(0,"section",3,0)(2,"div",4)(3,"span",5,1),e.EFF(5),e.k0s()(),e.DNE(6,q2,3,3,"div",6)(7,o0,5,11,"div",7),e.k0s(),e.DNE(8,v0,1,2,"ng-template",null,2,e.C5r)),2&n){const r=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",r),e.R7$(),e.Y8G("ngIf",l.noEmojiToDisplay)}},dependencies:[L.MD,L.Sq,L.bT,L.B3,L.Jj,D1],encapsulation:2,changeDetection:0})}return t})();function a3(t){return t.reduce((a,c)=>(a.includes(c)||a.push(c),a),[])}function $4(t,a){const c=a3(t),n=a3(a);return c.filter(l=>n.indexOf(l)>=0)}let U0=(()=>{class t{emojiService;originalPool={};index={};emojisList={};emoticonsList={};emojiSearch={};constructor(c){this.emojiService=c;for(const n of this.emojiService.emojis){const{shortNames:l,emoticons:r}=n,m=l[0];for(const z of r)this.emoticonsList[z]||(this.emoticonsList[z]=m);this.emojisList[m]=this.emojiService.getSanitizedData(m),this.originalPool[m]=n}}addCustomToPool(c,n){for(const l of c){const r=l.id||l.shortNames[0];r&&!n[r]&&(n[r]=this.emojiService.getData(l),this.emojisList[r]=this.emojiService.getSanitizedData(l))}}search(c,n,l=75,r=[],m=[],z=[]){this.addCustomToPool(z,this.originalPool);let F,I=this.originalPool;if(c.length){if("-"===c||"-1"===c)return[this.emojisList[-1]];if("+"===c||"+1"===c)return[this.emojisList["+1"]];let J=c.toLowerCase().split(/[\s|,|\-|_]+/),d1=[];if(J.length>2&&(J=[J[0],J[1]]),r.length||m.length){I={};for(const i1 of F0||[]){const N1=!r||!r.length||r.indexOf(i1.id)>-1,J1=!(!m||!m.length)&&m.indexOf(i1.id)>-1;if(N1&&!J1)for(const u2 of i1.emojis||[]){const F2=this.emojiService.getData(u2);I[F2?.id??""]=F2}}if(z.length){const i1=!r||!r.length||r.indexOf("custom")>-1,N1=!(!m||!m.length)&&m.indexOf("custom")>-1;i1&&!N1&&this.addCustomToPool(z,I)}}d1=J.map(i1=>{let N1=I,J1=this.index,u2=0;for(let F2=0;F2R0[r4.id]-R0[V0.id])}N1=J1.pool}return J1.results}).filter(i1=>i1),F=d1.length>1?$4.apply(null,d1):d1.length?d1[0]:[]}return F&&(n&&(F=F.filter(J=>!(!J||!J.id)&&n(this.emojiService.names[J.id]))),F&&F.length>l&&(F=F.slice(0,l))),F||null}buildSearch(c,n,l,r,m){const z=[],F=(I,J)=>{if(!I)return;const d1=Array.isArray(I)?I:[I];for(const i1 of d1){const N1=J?i1.split(/[-|_|\s]+/):[i1];for(let J1 of N1)J1=J1.toLowerCase(),z.includes(J1)||z.push(J1)}};return F(c,!0),F(n,!0),F(l,!0),F(r,!0),F(m,!1),z.join(",")}static \u0275fac=function(n){return new(n||t)(e.KVO(h2))};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),d4=(()=>{class t{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(n){return new(n||t)};static \u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"section",0),e.DNE(1,h0,2,12,"span",1),e.k0s()),2&n&&(e.AVh("opened",l.opened),e.R7$(),e.Y8G("ngForOf",l.skinTones))},dependencies:[L.MD,L.Sq],encapsulation:2,changeDetection:0})}return t})(),y3=(()=>{class t{ref;emojiService;title;emoji;idleEmoji;i18n;emojiIsNative;emojiSkin;emojiSize;emojiSet;emojiSheetSize;emojiBackgroundImageFn;emojiImageUrlFn;skinChange=new e.bkB;emojiData={};listedEmoticons;constructor(c,n){this.ref=c,this.emojiService=n}ngOnChanges(){if(!this.emoji)return;this.emojiData=this.emojiService.getData(this.emoji,this.emojiSkin,this.emojiSet);const c=[],n=[];(this.emojiData.emoticons||[]).forEach(r=>{c.indexOf(r.toLowerCase())>=0||(c.push(r.toLowerCase()),n.push(r))}),this.listedEmoticons=n,this.ref?.detectChanges()}static \u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(h2))};static \u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.DNE(0,L4,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(m){return l.skinChange.emit(m)}),e.k0s()()()),2&n&&(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:[L.MD,L.Sq,L.bT,D1,d4],encapsulation:2,changeDetection:0})}return t})(),c0=0,o3=(()=>{class t{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-"+ ++c0;destroy$=new S.B;constructor(c,n){this.ngZone=c,this.emojiSearch=n}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 n=this.emojiSearch.search(this.query,this.emojisToShowFilter,this.maxResults,this.include,this.exclude,this.custom);this.searchResults.emit(n)}handleChange(){this.handleSearch(this.query)}setupKeyupListener(){this.ngZone.runOutsideAngular(()=>g1(this.inputRef.nativeElement,"keyup").pipe((0,P1.Q)(this.destroy$)).subscribe(c=>{!this.query||"Enter"!==c.key||(this.enterKeyOutsideAngular.emit(c),c.preventDefault())}))}static \u0275fac=function(n){return new(n||t)(e.rXU(e.SKi),e.rXU(U0))};static \u0275cmp=e.VBU({type:t,selectors:[["emoji-search"]],viewQuery:function(n,l){if(1&n&&e.GBs(l4,7),2&n){let r;e.mGM(r=e.lsd())&&(l.inputRef=r.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(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.mxI("ngModelChange",function(z){return e.eBV(r),e.DH7(l.query,z)||(l.query=z),e.Njj(z)}),e.bIt("ngModelChange",function(){return e.eBV(r),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(r),e.Njj(l.clear())})("keyup.enter",function(){return e.eBV(r),e.Njj(l.clear())}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path"),e.k0s()()()}2&n&&(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 t})();const u0={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"},x0={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 I0=(()=>{class t{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=u0;searchIcons=x0;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,n)=>`https://cdn.jsdelivr.net/npm/emoji-datasource-${c}@14.0.0/img/${c}/sheets-256/${n}.png`;constructor(c,n,l,r,m){this.ngZone=c,this.renderer=n,this.ref=l,this.frequently=r,this.platformId=m}ngOnInit(){this.measureScrollbar=function L0(){if(typeof document>"u")return 0;const t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const a=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),a}(),this.i18n={...L3,...this.i18n},this.i18n.categories={...L3.categories,...this.i18n.categories},this.skin=JSON.parse((0,L.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.skin`)||"null")||this.skin;const c=[...F0];this.custom.length>0&&(this.CUSTOM_CATEGORY.emojis=this.custom.map(z=>({...z,id:z.shortNames[0],custom:!0})),c.push(this.CUSTOM_CATEGORY)),void 0!==this.include&&c.sort((z,F)=>this.include.indexOf(z.id)>this.include.indexOf(F.id)?1:-1);for(const z of c){const F=!this.include||!this.include.length||this.include.indexOf(z.id)>-1,I=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(z.id)>-1;if(F&&!I){if(this.emojisToShowFilter){const J=[],{emojis:d1}=z;for(let i1=0;i1-1,l=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(this.RECENT_CATEGORY.id)>-1;n&&!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(z=>z.first)[0].name;const r=Math.min(this.categories.length,3);this.setActiveCategories(this.activeCategories=this.categories.slice(0,r));const m=this.categories[r-1].emojis.slice();this.categories[r-1].emojis=m.slice(0,60),setTimeout(()=>{this.categories[r-1].emojis=m,this.setActiveCategories(this.categories),this.ref.detectChanges(),(0,L.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(n=>n.name===this.selected||n===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 n=this.categoryRefs.find(l=>l.id===c.category.id);if(n){let{top:l}=n;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:m})=>m===l.id)?.handleScroll(this.scrollRef.nativeElement.scrollTop)}categoryTrack(c,n){return n.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 n;if(this.SEARCH_CATEGORY.emojis)n=this.SEARCH_CATEGORY;else{const l=this.scrollRef.nativeElement;if(0===l.scrollTop)n=this.categories.find(r=>!0===r.first);else if(l.scrollHeight-l.scrollTop===this.clientHeight)n=this.categories[this.categories.length-1];else for(const r of this.categories)this.categoryRefs.find(({id:F})=>F===r.id)?.handleScroll(l.scrollTop)&&(n=r);this.scrollTop=l.scrollTop}!c&&n&&n.name!==this.selected?(this.selected=n.name,this.ref.detectChanges()):c&&this.ref.detectChanges()}handleSearch(c){this.SEARCH_CATEGORY.emojis=c;for(const n of this.categoryRefs.toArray())"Search"===n.name?(n.emojis=c,n.updateDisplay(c?"block":"none")):n.updateDisplay(c?"none":"block");this.scrollRef.nativeElement.scrollTop=0,this.handleScroll()}handleEnterKey(c,n){if(!n&&null!==this.SEARCH_CATEGORY.emojis&&this.SEARCH_CATEGORY.emojis.length){if(!(n=this.SEARCH_CATEGORY.emojis[0]))return;k4(this.emojiSelect,this.ngZone,{$event:c,emoji:n})}!this.hideRecent&&!this.recent&&n&&this.frequently.add(n);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 n=this.CUSTOM_CATEGORY.emojis.find(l=>l.id===c.emoji.id);n&&(c.emoji={...n}),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){k4(this.emojiClick,this.ngZone,c),k4(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(n){return new(n||t)(e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(e0),e.rXU(e.Agw))};static \u0275cmp=e.VBU({type:t,selectors:[["emoji-mart"]],viewQuery:function(n,l){if(1&n&&(e.GBs(C4,7),e.GBs(y3,5),e.GBs(o3,5),e.GBs(r0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.scrollRef=r.first),e.mGM(r=e.lsd())&&(l.previewRef=r.first),e.mGM(r=e.lsd())&&(l.searchRef=r.first),e.mGM(r=e.lsd())&&(l.categoryRefs=r)}},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(n,l){if(1&n){const r=e.RV6();e.j41(0,"section",1)(1,"div",2)(2,"emoji-mart-anchors",3),e.bIt("anchorClick",function(z){return e.eBV(r),e.Njj(l.handleAnchorClick(z))}),e.k0s()(),e.DNE(3,P3,1,7,"emoji-search",4),e.j41(4,"section",5,0),e.DNE(6,W4,1,23,"emoji-category",6),e.k0s(),e.DNE(7,J6,2,11,"div",7),e.k0s()}2&n&&(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:[L.MD,L.Sq,L.bT,L.B3,G4,o3,y3,r0],encapsulation:2,changeDetection:0})}return t})();function k4(t,a,c){t.observed&&a.run(()=>t.emit(c))}var X2=v(60),s1=v(3955),z1=v(8359);class u1 extends z1.yU{constructor(a,c){super()}schedule(a,c=0){return this}}const E1={setInterval(t,a,...c){const{delegate:n}=E1;return n?.setInterval?n.setInterval(t,a,...c):setInterval(t,a,...c)},clearInterval(t){const{delegate:a}=E1;return(a?.clearInterval||clearInterval)(t)},delegate:void 0};var K1=v(7908),x2=v(6129);class P0{constructor(a,c=P0.now){this.schedulerActionCtor=a,this.now=c}schedule(a,c=0,n){return new this.schedulerActionCtor(this,a).schedule(n,c)}}P0.now=x2.U.now;const s4=new class d0 extends P0{constructor(a,c=P0.now){super(a,c),this.actions=[],this._active=!1}flush(a){const{actions:c}=this;if(this._active)return void c.push(a);let n;this._active=!0;do{if(n=a.execute(a.state,a.delay))break}while(a=c.shift());if(this._active=!1,n){for(;a=c.shift();)a.unsubscribe();throw n}}}(class M2 extends u1{constructor(a,c){super(a,c),this.scheduler=a,this.work=c,this.pending=!1}schedule(a,c=0){var n;if(this.closed)return this;this.state=a;const l=this.id,r=this.scheduler;return null!=l&&(this.id=this.recycleAsyncId(r,l,c)),this.pending=!0,this.delay=c,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,c),this}requestAsyncId(a,c,n=0){return E1.setInterval(a.flush.bind(a,this),n)}recycleAsyncId(a,c,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return c;null!=c&&E1.clearInterval(c)}execute(a,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(a,c);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,c){let l,n=!1;try{this.work(a)}catch(r){n=!0,l=r||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),l}unsubscribe(){if(!this.closed){const{id:a,scheduler:c}=this,{actions:n}=c;this.work=this.state=this.scheduler=null,this.pending=!1,(0,K1.o)(n,this),null!=a&&(this.id=this.recycleAsyncId(c,a,null)),this.delay=null,super.unsubscribe()}}}),S3=s4;var z4=v(9470);function y4(t=0,a,c=S3){let n=-1;return null!=a&&((0,z4.m)(a)?c=a:n=a),new c1.c(l=>{let r=function p4(t){return t instanceof Date&&!isNaN(t)}(t)?+t-c.now():t;r<0&&(r=0);let m=0;return c.schedule(function(){l.closed||(l.next(m++),0<=n?this.schedule(void 0,n):l.complete())},r)})}const D2=["fileSelector"],C0=t=>({openFileSelector:t});function A2(t,a){if(1&t&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.dropZoneLabel)}}function I4(t,a){if(1&t){const c=e.RV6();e.j41(0,"div")(1,"input",9),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.openFileSelector(l))}),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(),e.FS9("value",c.browseBtnLabel),e.Y8G("className",c.browseBtnClassName)}}function a4(t,a){if(1&t&&e.DNE(0,A2,2,1,"div",6)(1,I4,2,2,"div",7),2&t){const c=e.XpG();e.Y8G("ngIf",c.dropZoneLabel),e.R7$(),e.Y8G("ngIf",c.showBrowseBtn)}}function x6(t,a){}class n6{constructor(a,c){this.relativePath=a,this.fileEntry=c}}let j4=(()=>{class t{constructor(c){this.template=c}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:t,selectors:[["","ngx-file-drop-content-tmp",""]]})}}return t})(),b0=(()=>{class t{get disabled(){return this._disabled}set disabled(c){this._disabled=null!=c&&"false"!=`${c}`}constructor(c,n){this.zone=c,this.renderer=n,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 n;n=c.dataTransfer.items?c.dataTransfer.items:c.dataTransfer.files,this.preventAndStop(c),this.checkFiles(n)}}uploadFiles(c){!this.isDropzoneDisabled()&&c.target&&(this.checkFiles(c.target.files||[]),this.resetFileInput())}getFakeDropEntry(c){const n={name:c.name,isDirectory:!1,isFile:!0,file:l=>l(c)};return new n6(n.name,n)}checkFile(c){if(c){if("webkitGetAsEntry"in c){let n=c.webkitGetAsEntry();if(n){if(n.isFile){const l=new n6(n.name,n);this.addToQueue(l)}else n.isDirectory&&this.traverseFileTree(n,n.name);return}}this.addToQueue(this.getFakeDropEntry(c))}}checkFiles(c){for(let n=0;n{if(this.files.length>0&&0===this.numOfActiveReadEntries){const n=this.files;this.files=[],this.onFileDrop.emit(n)}})}traverseFileTree(c,n){if(c.isFile){const l=new n6(n,c);this.files.push(l)}else{n+="/";const l=c.createReader();let r=[];const m=()=>{this.numOfActiveReadEntries++,l.readEntries(z=>{if(z.length)r=r.concat(z),m();else if(0===r.length){const F=new n6(n,c);this.zone.run(()=>{this.addToQueue(F)})}else for(let F=0;F{this.traverseFileTree(r[F],n+r[F].name)});this.numOfActiveReadEntries--})};m()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const c=this.fileSelector.nativeElement,n=c.parentElement,l=this.getHelperFormElement(),r=this.getFileInputPlaceholderElement();n!==l&&(this.renderer.insertBefore(n,r,c),this.renderer.appendChild(l,c),l.reset(),this.renderer.insertBefore(n,c,r),this.renderer.removeChild(n,r))}}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(n){return new(n||t)(e.rXU(e.SKi),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["ngx-file-drop"]],contentQueries:function(n,l,r){if(1&n&&e.wni(r,j4,5,e.C4Q),2&n){let m;e.mGM(m=e.lsd())&&(l.contentTemplate=m.first)}},viewQuery:function(n,l){if(1&n&&e.GBs(D2,7),2&n){let r;e.mGM(r=e.lsd())&&(l.fileSelector=r.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(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",2),e.bIt("drop",function(z){return e.eBV(r),e.Njj(l.dropFiles(z))})("dragover",function(z){return e.eBV(r),e.Njj(l.onDragOver(z))})("dragenter",function(z){return e.eBV(r),e.Njj(l.onDragEnter(z))})("dragleave",function(z){return e.eBV(r),e.Njj(l.onDragLeave(z))}),e.j41(1,"div",3)(2,"input",4,0),e.bIt("change",function(z){return e.eBV(r),e.Njj(l.uploadFiles(z))}),e.k0s(),e.DNE(4,a4,2,2,"ng-template",null,1,e.C5r)(6,x6,0,0,"ng-template",5),e.k0s()()}if(2&n){const r=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||r)("ngTemplateOutletContext",e.eq3(13,C0,l.openFileSelector))}},dependencies:[L.bT,L.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 t})(),$3=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t,bootstrap:[b0]})}static{this.\u0275inj=e.G2t({imports:[L.MD]})}}return t})();var O4=v(8944),b1=v(467),F3=v(6365),j3=v(9326),N3=v(6648);var a1=v(7673),x1=v(3703),v1=v(3669),W1=v(9974),Y1=v(4360);function o2(t,a=v1.D){return t=t??f2,(0,W1.N)((c,n)=>{let l,r=!0;c.subscribe((0,Y1._)(n,m=>{const z=a(m);(r||!t(l,z))&&(r=!1,l=z,n.next(m))}))})}function f2(t,a){return t===a}var z0=v(253),Y2=v(9172),w0=v(6354);v(1594);let Z0={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function M4(t){Z0=t}const c4=/[&<>"']/,H0=new RegExp(c4.source,"g"),D0=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,F4=new RegExp(D0.source,"g"),B4={"&":"&","<":"<",">":">",'"':""","'":"'"},f4=t=>B4[t];function t4(t,a){if(a){if(c4.test(t))return t.replace(H0,f4)}else if(D0.test(t))return t.replace(F4,f4);return t}const E4=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,l0=/(^|[^\[])\^/g;function P2(t,a){t="string"==typeof t?t:t.source,a=a||"";const c={replace:(n,l)=>(l=(l="object"==typeof l&&"source"in l?l.source:l).replace(l0,"$1"),t=t.replace(n,l),c),getRegex:()=>new RegExp(t,a)};return c}function h8(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const c3={exec:()=>null};function m6(t,a){const n=t.replace(/\|/g,(r,m,z)=>{let F=!1,I=m;for(;--I>=0&&"\\"===z[I];)F=!F;return F?"|":" |"}).split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),a)if(n.length>a)n.splice(a);else for(;n.length0)return{type:"space",raw:c[0]}}code(a){const c=this.rules.block.code.exec(a);if(c){const n=c[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:c[0],codeBlockStyle:"indented",text:this.options.pedantic?n:R6(n,"\n")}}}fences(a){const c=this.rules.block.fences.exec(a);if(c){const n=c[0],l=function y0(t,a){const c=t.match(/^(\s+)(?:```)/);if(null===c)return a;const n=c[1];return a.split("\n").map(l=>{const r=l.match(/^\s+/);if(null===r)return l;const[m]=r;return m.length>=n.length?l.slice(n.length):l}).join("\n")}(n,c[3]||"");return{type:"code",raw:n,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 n=c[2].trim();if(/#$/.test(n)){const l=R6(n,"#");(this.options.pedantic||!l||/ $/.test(l))&&(n=l.trim())}return{type:"heading",raw:c[0],depth:c[1].length,text:n,tokens:this.lexer.inline(n)}}}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 n=R6(c[0].replace(/^ *>[ \t]?/gm,""),"\n"),l=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(n);return this.lexer.state.top=l,{type:"blockquote",raw:c[0],tokens:r,text:n}}}list(a){let c=this.rules.block.list.exec(a);if(c){let n=c[1].trim();const l=n.length>1,r={type:"list",raw:"",ordered:l,start:l?+n.slice(0,-1):"",loose:!1,items:[]};n=l?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=l?n:"[*+-]");const m=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let z="",F="",I=!1;for(;a;){let J=!1;if(!(c=m.exec(a))||this.rules.block.hr.test(a))break;z=c[0],a=a.substring(z.length);let d1=c[2].split("\n",1)[0].replace(/^\t+/,U2=>" ".repeat(3*U2.length)),i1=a.split("\n",1)[0],N1=0;this.options.pedantic?(N1=2,F=d1.trimStart()):(N1=c[2].search(/[^ ]/),N1=N1>4?1:N1,F=d1.slice(N1),N1+=c[1].length);let J1=!1;if(!d1&&/^ *$/.test(i1)&&(z+=i1+"\n",a=a.substring(i1.length+1),J=!0),!J){const U2=new RegExp(`^ {0,${Math.min(3,N1-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),R0=new RegExp(`^ {0,${Math.min(3,N1-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r4=new RegExp(`^ {0,${Math.min(3,N1-1)}}(?:\`\`\`|~~~)`),V0=new RegExp(`^ {0,${Math.min(3,N1-1)}}#`);for(;a;){const e4=a.split("\n",1)[0];if(i1=e4,this.options.pedantic&&(i1=i1.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),r4.test(i1)||V0.test(i1)||U2.test(i1)||R0.test(a))break;if(i1.search(/[^ ]/)>=N1||!i1.trim())F+="\n"+i1.slice(N1);else{if(J1||d1.search(/[^ ]/)>=4||r4.test(d1)||V0.test(d1)||R0.test(d1))break;F+="\n"+i1}!J1&&!i1.trim()&&(J1=!0),z+=e4+"\n",a=a.substring(e4.length+1),d1=i1.slice(N1)}}r.loose||(I?r.loose=!0:/\n *\n *$/.test(z)&&(I=!0));let F2,u2=null;this.options.gfm&&(u2=/^\[[ xX]\] /.exec(F),u2&&(F2="[ ] "!==u2[0],F=F.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:z,task:!!u2,checked:F2,loose:!1,text:F,tokens:[]}),r.raw+=z}r.items[r.items.length-1].raw=z.trimEnd(),r.items[r.items.length-1].text=F.trimEnd(),r.raw=r.raw.trimEnd();for(let J=0;J"space"===N1.type),i1=d1.length>0&&d1.some(N1=>/\n.*\n/.test(N1.raw));r.loose=i1}if(r.loose)for(let J=0;J$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline._escapes,"$1"):c[3];return{type:"def",tag:n,raw:c[0],href:l,title:r}}}table(a){const c=this.rules.block.table.exec(a);if(c){if(!/[:|]/.test(c[2]))return;const n={type:"table",raw:c[0],header:m6(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(n.header.length===n.align.length){let r,m,z,F,l=n.align.length;for(r=0;r({text:I,tokens:[]}));for(l=n.header.length,m=0;m/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 n=c[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const m=R6(n.slice(0,-1),"\\");if((n.length-m.length)%2==0)return}else{const m=function q8(t,a){if(-1===t.indexOf(a[1]))return-1;let c=0;for(let n=0;n-1){const F=(0===c[0].indexOf("!")?5:4)+c[1].length+m;c[2]=c[2].substring(0,m),c[0]=c[0].substring(0,F).trim(),c[3]=""}}let l=c[2],r="";if(this.options.pedantic){const m=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);m&&(l=m[1],r=m[3])}else r=c[3]?c[3].slice(1,-1):"";return l=l.trim(),/^$/.test(n)?l.slice(1):l.slice(1,-1)),p6(c,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},c[0],this.lexer)}}reflink(a,c){let n;if((n=this.rules.inline.reflink.exec(a))||(n=this.rules.inline.nolink.exec(a))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=c[l.toLowerCase()],!l){const r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return p6(n,l,n[0],this.lexer)}}emStrong(a,c,n=""){let l=this.rules.inline.emStrong.lDelim.exec(a);if(!(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))&&(!l[1]&&!l[2]||!n||this.rules.inline.punctuation.exec(n))){const m=[...l[0]].length-1;let z,F,I=m,J=0;const d1="*"===l[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d1.lastIndex=0,c=c.slice(-1*a.length+m);null!=(l=d1.exec(c));){if(z=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!z)continue;if(F=[...z].length,l[3]||l[4]){I+=F;continue}if((l[5]||l[6])&&m%3&&!((m+F)%3)){J+=F;continue}if(I-=F,I>0)continue;F=Math.min(F,F+I+J);const i1=[...l[0]][0].length,N1=a.slice(0,m+l.index+i1+F);if(Math.min(m,F)%2){const u2=N1.slice(1,-1);return{type:"em",raw:N1,text:u2,tokens:this.lexer.inlineTokens(u2)}}const J1=N1.slice(2,-2);return{type:"strong",raw:N1,text:J1,tokens:this.lexer.inlineTokens(J1)}}}}codespan(a){const c=this.rules.inline.code.exec(a);if(c){let n=c[2].replace(/\n/g," ");const l=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return l&&r&&(n=n.substring(1,n.length-1)),n=t4(n,!0),{type:"codespan",raw:c[0],text:n}}}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 n,l;return"@"===c[2]?(n=t4(c[1]),l="mailto:"+n):(n=t4(c[1]),l=n),{type:"link",raw:c[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}url(a){let c;if(c=this.rules.inline.url.exec(a)){let n,l;if("@"===c[2])n=t4(c[0]),l="mailto:"+n;else{let r;do{r=c[0],c[0]=this.rules.inline._backpedal.exec(c[0])[0]}while(r!==c[0]);n=t4(c[0]),l="www."===c[1]?"http://"+c[0]:c[0]}return{type:"link",raw:c[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(a){const c=this.rules.inline.text.exec(a);if(c){let n;return n=this.lexer.state.inRawBlock?c[0]:t4(c[0]),{type:"text",raw:c[0],text:n}}}}const J2={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:c3,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?'|\([^()]*\))/};J2.def=P2(J2.def).replace("label",J2._label).replace("title",J2._title).getRegex(),J2.bullet=/(?:[*+-]|\d{1,9}[.)])/,J2.listItemStart=P2(/^( *)(bull) */).replace("bull",J2.bullet).getRegex(),J2.list=P2(J2.list).replace(/bull/g,J2.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+J2.def.source+")").getRegex(),J2._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",J2._comment=/|$)/,J2.html=P2(J2.html,"i").replace("comment",J2._comment).replace("tag",J2._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),J2.lheading=P2(J2.lheading).replace(/bull/g,J2.bullet).getRegex(),J2.paragraph=P2(J2._paragraph).replace("hr",J2.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",J2._tag).getRegex(),J2.blockquote=P2(J2.blockquote).replace("paragraph",J2.paragraph).getRegex(),J2.normal={...J2},J2.gfm={...J2.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},J2.gfm.table=P2(J2.gfm.table).replace("hr",J2.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",J2._tag).getRegex(),J2.gfm.paragraph=P2(J2._paragraph).replace("hr",J2.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",J2.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",J2._tag).getRegex(),J2.pedantic={...J2.normal,html:P2("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",J2._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:c3,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P2(J2.normal._paragraph).replace("hr",J2.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",J2.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const g2={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:c3,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:c3,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~"};g2.punctuation=P2(g2.punctuation,"u").replace(/punctuation/g,g2._punctuation).getRegex(),g2.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,g2.anyPunctuation=/\\[punct]/g,g2._escapes=/\\([punct])/g,g2._comment=P2(J2._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),g2.emStrong.lDelim=P2(g2.emStrong.lDelim,"u").replace(/punct/g,g2._punctuation).getRegex(),g2.emStrong.rDelimAst=P2(g2.emStrong.rDelimAst,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2.emStrong.rDelimUnd=P2(g2.emStrong.rDelimUnd,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2.anyPunctuation=P2(g2.anyPunctuation,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2._escapes=P2(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=P2(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=P2(g2.tag).replace("comment",g2._comment).replace("attribute",g2._attribute).getRegex(),g2._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,g2._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,g2._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,g2.link=P2(g2.link).replace("label",g2._label).replace("href",g2._href).replace("title",g2._title).getRegex(),g2.reflink=P2(g2.reflink).replace("label",g2._label).replace("ref",J2._label).getRegex(),g2.nolink=P2(g2.nolink).replace("ref",J2._label).getRegex(),g2.reflinkSearch=P2(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:P2(/^!?\[(label)\]\((.*?)\)/).replace("label",g2._label).getRegex(),reflink:P2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",g2._label).getRegex()},g2.gfm={...g2.normal,escape:P2(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]*?(?:(?=[\\F+" ".repeat(I.length));a;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(z=>!!(n=z.call({lexer:this},a,c))&&(a=a.substring(n.raw.length),c.push(n),!0)))){if(n=this.tokenizer.space(a)){a=a.substring(n.raw.length),1===n.raw.length&&c.length>0?c[c.length-1].raw+="\n":c.push(n);continue}if(n=this.tokenizer.code(a)){a=a.substring(n.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?c.push(n):(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(n=this.tokenizer.fences(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.heading(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.hr(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.blockquote(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.list(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.html(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.def(a)){a=a.substring(n.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(l.raw+="\n"+n.raw,l.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(n=this.tokenizer.table(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.lheading(a)){a=a.substring(n.raw.length),c.push(n);continue}if(r=a,this.options.extensions&&this.options.extensions.startBlock){let z=1/0;const F=a.slice(1);let I;this.options.extensions.startBlock.forEach(J=>{I=J.call({lexer:this},F),"number"==typeof I&&I>=0&&(z=Math.min(z,I))}),z<1/0&&z>=0&&(r=a.substring(0,z+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){l=c[c.length-1],m&&"paragraph"===l.type?(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(n),m=r.length!==a.length,a=a.substring(n.raw.length);continue}if(n=this.tokenizer.text(a)){a=a.substring(n.raw.length),l=c[c.length-1],l&&"text"===l.type?(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(n);continue}if(a){const z="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(z);break}throw new Error(z)}}return this.state.top=!0,c}inline(a,c=[]){return this.inlineQueue.push({src:a,tokens:c}),c}inlineTokens(a,c=[]){let n,l,r,z,F,I,m=a;if(this.tokens.links){const J=Object.keys(this.tokens.links);if(J.length>0)for(;null!=(z=this.tokenizer.rules.inline.reflinkSearch.exec(m));)J.includes(z[0].slice(z[0].lastIndexOf("[")+1,-1))&&(m=m.slice(0,z.index)+"["+"a".repeat(z[0].length-2)+"]"+m.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(z=this.tokenizer.rules.inline.blockSkip.exec(m));)m=m.slice(0,z.index)+"["+"a".repeat(z[0].length-2)+"]"+m.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(z=this.tokenizer.rules.inline.anyPunctuation.exec(m));)m=m.slice(0,z.index)+"++"+m.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;a;)if(F||(I=""),F=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(J=>!!(n=J.call({lexer:this},a,c))&&(a=a.substring(n.raw.length),c.push(n),!0)))){if(n=this.tokenizer.escape(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.tag(a)){a=a.substring(n.raw.length),l=c[c.length-1],l&&"text"===n.type&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):c.push(n);continue}if(n=this.tokenizer.link(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(n.raw.length),l=c[c.length-1],l&&"text"===n.type&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):c.push(n);continue}if(n=this.tokenizer.emStrong(a,m,I)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.codespan(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.br(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.del(a)){a=a.substring(n.raw.length),c.push(n);continue}if(n=this.tokenizer.autolink(a)){a=a.substring(n.raw.length),c.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(a))){a=a.substring(n.raw.length),c.push(n);continue}if(r=a,this.options.extensions&&this.options.extensions.startInline){let J=1/0;const d1=a.slice(1);let i1;this.options.extensions.startInline.forEach(N1=>{i1=N1.call({lexer:this},d1),"number"==typeof i1&&i1>=0&&(J=Math.min(J,i1))}),J<1/0&&J>=0&&(r=a.substring(0,J+1))}if(n=this.tokenizer.inlineText(r)){a=a.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(I=n.raw.slice(-1)),F=!0,l=c[c.length-1],l&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):c.push(n);continue}if(a){const J="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(J);break}throw new Error(J)}}return c}}class t3{options;constructor(a){this.options=a||Z0}code(a,c,n){const l=(c||"").match(/^\S*/)?.[0];return a=a.replace(/\n$/,"")+"\n",l?'
    '+(n?a:t4(a,!0))+"
    \n":"
    "+(n?a:t4(a,!0))+"
    \n"}blockquote(a){return`
    \n${a}
    \n`}html(a,c){return a}heading(a,c,n){return`${a}\n`}hr(){return"
    \n"}list(a,c,n){const l=c?"ol":"ul";return"<"+l+(c&&1!==n?' start="'+n+'"':"")+">\n"+a+"\n"}listitem(a,c,n){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 n=c.header?"th":"td";return(c.align?`<${n} align="${c.align}">`:`<${n}>`)+a+`\n`}strong(a){return`${a}`}em(a){return`${a}`}codespan(a){return`${a}`}br(){return"
    "}del(a){return`${a}`}link(a,c,n){const l=h8(a);if(null===l)return n;let r='
    ",r}image(a,c,n){const l=h8(a);if(null===l)return n;let r=`${n}"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":n+=this.renderer.code(r.text,r.lang,!!r.escaped);continue;case"table":{const m=r;let z="",F="";for(let J=0;J0&&"paragraph"===i1.tokens[0].type?(i1.tokens[0].text=F2+" "+i1.tokens[0].text,i1.tokens[0].tokens&&i1.tokens[0].tokens.length>0&&"text"===i1.tokens[0].tokens[0].type&&(i1.tokens[0].tokens[0].text=F2+" "+i1.tokens[0].tokens[0].text)):i1.tokens.unshift({type:"text",text:F2+" "}):u2+=F2+" "}u2+=this.parse(i1.tokens,I),J+=this.renderer.listitem(u2,J1,!!N1)}n+=this.renderer.list(J,z,F);continue}case"html":n+=this.renderer.html(r.text,r.block);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(r.tokens));continue;case"text":{let m=r,z=m.tokens?this.parseInline(m.tokens):m.text;for(;l+1{n=n.concat(this.walkTokens(r[m],c))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,c)))}}return n}use(...a){const c=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(n=>{const l={...n};if(l.async=this.defaults.async||l.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const m=c.renderers[r.name];c.renderers[r.name]=m?function(...z){let F=r.renderer.apply(this,z);return!1===F&&(F=m.apply(this,z)),F}:r.renderer}if("tokenizer"in r){if(!r.level||"block"!==r.level&&"inline"!==r.level)throw new Error("extension level must be 'block' or 'inline'");const m=c[r.level];m?m.unshift(r.tokenizer):c[r.level]=[r.tokenizer],r.start&&("block"===r.level?c.startBlock?c.startBlock.push(r.start):c.startBlock=[r.start]:"inline"===r.level&&(c.startInline?c.startInline.push(r.start):c.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(c.childTokens[r.name]=r.childTokens)}),l.extensions=c),n.renderer){const r=this.defaults.renderer||new t3(this.defaults);for(const m in n.renderer){const z=n.renderer[m],I=r[m];r[m]=(...J)=>{let d1=z.apply(r,J);return!1===d1&&(d1=I.apply(r,J)),d1||""}}l.renderer=r}if(n.tokenizer){const r=this.defaults.tokenizer||new O3(this.defaults);for(const m in n.tokenizer){const z=n.tokenizer[m],I=r[m];r[m]=(...J)=>{let d1=z.apply(r,J);return!1===d1&&(d1=I.apply(r,J)),d1}}l.tokenizer=r}if(n.hooks){const r=this.defaults.hooks||new h4;for(const m in n.hooks){const z=n.hooks[m],I=r[m];r[m]=h4.passThroughHooks.has(m)?J=>{if(this.defaults.async)return Promise.resolve(z.call(r,J)).then(i1=>I.call(r,i1));const d1=z.call(r,J);return I.call(r,d1)}:(...J)=>{let d1=z.apply(r,J);return!1===d1&&(d1=I.apply(r,J)),d1}}l.hooks=r}if(n.walkTokens){const r=this.defaults.walkTokens,m=n.walkTokens;l.walkTokens=function(z){let F=[];return F.push(m.call(this,z)),r&&(F=F.concat(r.call(this,z))),F}}this.defaults={...this.defaults,...l}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,c){return J4.lex(a,c??this.defaults)}parser(a,c){return D4.parse(a,c??this.defaults)}#e(a,c){return(n,l)=>{const r={...l},m={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(m.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),m.async=!0);const z=this.#c(!!m.silent,!!m.async);if(typeof n>"u"||null===n)return z(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return z(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(m.hooks&&(m.hooks.options=m),m.async)return Promise.resolve(m.hooks?m.hooks.preprocess(n):n).then(F=>a(F,m)).then(F=>m.walkTokens?Promise.all(this.walkTokens(F,m.walkTokens)).then(()=>F):F).then(F=>c(F,m)).then(F=>m.hooks?m.hooks.postprocess(F):F).catch(z);try{m.hooks&&(n=m.hooks.preprocess(n));const F=a(n,m);m.walkTokens&&this.walkTokens(F,m.walkTokens);let I=c(F,m);return m.hooks&&(I=m.hooks.postprocess(I)),I}catch(F){return z(F)}}}#c(a,c){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",a){const l="

    An error occurred:

    "+t4(n.message+"",!0)+"
    ";return c?Promise.resolve(l):l}if(c)return Promise.reject(n);throw n}}};function $0(t,a){return l6.parse(t,a)}$0.options=$0.setOptions=function(t){return l6.setOptions(t),M4($0.defaults=l6.defaults),$0},$0.getDefaults=function m0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},$0.defaults=Z0,$0.use=function(...t){return l6.use(...t),M4($0.defaults=l6.defaults),$0},$0.walkTokens=function(t,a){return l6.walkTokens(t,a)},$0.parseInline=l6.parseInline,$0.Parser=D4,$0.parser=D4.parse,$0.Renderer=t3,$0.TextRenderer=A6,$0.Lexer=J4,$0.lexer=J4.lex,$0.Tokenizer=O3,$0.Hooks=h4,$0.parse=$0;const f0=["*"];let s6=(()=>{class t{constructor(){this._buttonClick$=new S.B,this.copied$=this._buttonClick$.pipe((0,A.n)(()=>function T6(...t){const a=(0,j3.lI)(t),c=(0,j3.R0)(t,1/0),n=t;return n.length?1===n.length?(0,V.Tg)(n[0]):(0,F3.U)(c)((0,N3.H)(n,a)):c2.w}((0,a1.of)(!0),y4(3e3).pipe((0,x1.u)(!1)))),o2(),(0,z0.t)(1)),this.copiedText$=this.copied$.pipe((0,Y2.Z)(!1),(0,w0.T)(c=>c?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["markdown-clipboard"]],standalone:!0,features:[e.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(n,l){1&n&&(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&n&&(e.AVh("copied",e.bMT(1,3,l.copied$)),e.R7$(2),e.JRh(e.bMT(3,5,l.copiedText$)))},dependencies:[L.Jj],encapsulation:2,changeDetection:0})}}return t})();const h6=new e.nKC("CLIPBOARD_OPTIONS");var U4=function(t){return t.CommandLine="command-line",t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}(U4||{});const q0=new e.nKC("MARKED_EXTENSIONS"),g6=new e.nKC("MARKED_OPTIONS"),v3=new e.nKC("SECURITY_CONTEXT");let k3=(()=>{class t{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,n,l,r,m,z,F){this.clipboardOptions=c,this.extensions=n,this.platform=r,this.securityContext=m,this.http=z,this.sanitizer=F,this.DEFAULT_MARKED_OPTIONS={renderer:new t3},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,n=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:l,inline:r,emoji:m,mermaid:z,disableSanitizer:F}=n,I={...this.options,...n.markedOptions},J=I.renderer||this.renderer||new t3;this.extensions&&(this.renderer=this.extendsRendererForExtensions(J)),z&&(this.renderer=this.extendsRendererForMermaid(J));const d1=this.trimIndentation(c),i1=l?this.decodeHtml(d1):d1,N1=m?this.parseEmoji(i1):i1,J1=this.parseMarked(N1,I,r);return(F?J1:this.sanitizer.sanitize(this.securityContext,J1))||""}render(c,n=this.DEFAULT_RENDER_OPTIONS,l){const{clipboard:r,clipboardOptions:m,katex:z,katexOptions:F,mermaid:I,mermaidOptions:J}=n;z&&this.renderKatex(c,{...this.DEFAULT_KATEX_OPTIONS,...F}),I&&this.renderMermaid(c,{...this.DEFAULT_MERMAID_OPTIONS,...J}),r&&this.renderClipboard(c,l,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...m}),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,w0.T)(n=>this.handleExtension(c,n)))}highlight(c){if(!(0,L.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;c||(c=document);const n=c.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(n,l=>l.classList.add("language-none")),Prism.highlightAllUnder(c)}decodeHtml(c){if(!(0,L.UE)(this.platform))return c;const n=document.createElement("textarea");return n.innerHTML=c,n.value}extendsRendererForExtensions(c){const n=c;return!0===n.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&$0.use(...this.extensions),n.\u0275NgxMarkdownRendererExtendedForExtensions=!0),c}extendsRendererForMermaid(c){const n=c;if(!0===n.\u0275NgxMarkdownRendererExtendedForMermaid)return c;const l=c.code;return c.code=function(r,m,z){return"mermaid"===m?`
    ${r}
    `:l.call(this,r,m,z)},n.\u0275NgxMarkdownRendererExtendedForMermaid=!0,c}handleExtension(c,n){const l=c.lastIndexOf("://"),r=l>-1?c.substring(l+4):c,m=r.lastIndexOf("/"),z=m>-1?r.substring(m+1).split("?")[0]:"",F=z.lastIndexOf("."),I=F>-1?z.substring(F+1):"";return I&&"md"!==I?"```"+I+"\n"+n+"\n```":n}parseMarked(c,n,l=!1){if(n.renderer){const r={...n.renderer};delete r.\u0275NgxMarkdownRendererExtendedForExtensions,delete r.\u0275NgxMarkdownRendererExtendedForMermaid,delete n.renderer,$0.use({renderer:r})}return l?$0.parseInline(c,n):$0.parse(c,n)}parseEmoji(c){if(!(0,L.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,n){if((0,L.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,n)}}renderClipboard(c,n,l){if(!(0,L.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(!n)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:r,buttonTemplate:m}=l,z=c.querySelectorAll("pre");for(let F=0;Fd1.style.opacity="1",I.onmouseout=()=>d1.style.opacity="0",r){const J1=n.createComponent(r);i1=J1.hostView,J1.changeDetectorRef.markForCheck()}else if(m)i1=n.createEmbeddedView(m);else{const J1=n.createComponent(s6);i1=J1.hostView,J1.changeDetectorRef.markForCheck()}i1.rootNodes.forEach(J1=>{J1.onmouseover=()=>d1.style.opacity="1",d1.appendChild(J1),N1=new ClipboardJS(J1,{text:()=>I.innerText})}),i1.onDestroy(()=>N1.destroy())}}renderMermaid(c,n=this.DEFAULT_MERMAID_OPTIONS){if(!(0,L.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(n),mermaid.run({nodes:l}))}trimIndentation(c){if(!c)return"";let n;return c.split("\n").map(l=>{let r=n;return l.length>0&&(r=isNaN(r)?l.search(/\S|$/):Math.min(l.search(/\S|$/),r)),isNaN(n)&&(n=r),r?l.substring(r):l}).join("\n")}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(h6,8),e.KVO(q0,8),e.KVO(g6,8),e.KVO(e.Agw),e.KVO(v3),e.KVO(g.Qq,8),e.KVO(u.up))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac})}}return t})(),T0=(()=>{class t{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,n,l){this.element=c,this.markdownService=n,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,P1.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(c){var n=this;return(0,b1.A)(function*(l,r=!1){const m={decodeHtml:r,inline:n.inline,emoji:n.emoji,mermaid:n.mermaid,disableSanitizer:n.disableSanitizer},z={clipboard:n.clipboard,clipboardOptions:{buttonComponent:n.clipboardButtonComponent,buttonTemplate:n.clipboardButtonTemplate},katex:n.katex,katexOptions:n.katexOptions,mermaid:n.mermaid,mermaidOptions:n.mermaidOptions},F=yield n.markdownService.parse(l,m);n.element.nativeElement.innerHTML=F,n.handlePlugins(),n.markdownService.render(n.element.nativeElement,z,n.viewContainerRef),n.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,U4.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,U4.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(c,n){const l=c.querySelectorAll("pre");for(let r=0;r{const z=n[m];if(z){const F=this.toLispCase(m);l.item(r).setAttribute(F,z.toString())}})}toLispCase(c){const n=c.match(/([A-Z])/g);if(!n)return c;let l=c.toString();for(let r=0,m=n.length;r{class t{static forRoot(c){return{ngModule:t,providers:[P6(c)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({imports:[L.MD]})}}return t})();var b6;function d3(t,a){const c=a?function Q4(t){return"string"==typeof t?()=>{throw new Error(t)}:t}(a):()=>{};let n=!1;return(...l)=>n?c(...l):(n=!0,t(...l))}function e8(t){return t.endsWith("/")?t:`${t}/`}!function(t){let a;var l;let c,n;(l=a=t.SecurityLevel||(t.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=t.Theme||(t.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"}(n=t.LogLevel||(t.LogLevel={}))}(b6||(b6={}));const P4=(t,a)=>{const c=a.createElement("script");return c.type="text/javascript",c.defer=!0,c.async=!0,c.src=t,c},J0=new e.nKC("MATOMO_SCRIPT_FACTORY",{providedIn:"root",factory:()=>P4});function f3(t,a){if(null==t)throw new Error("Unexpected "+t+" value: "+a);return t}let G3=(()=>{class t{constructor(){this.scriptFactory=(0,e.WQX)(J0),this.injector=(0,e.WQX)(e.duS),this.document=(0,e.WQX)(L.qQ)}injectDOMScript(c){const n=(0,e.N4e)(this.injector,()=>this.scriptFactory(c,this.document)),l=f3(this.document.getElementsByTagName("script")[0],"no existing script found");f3(l.parentNode,"no script's parent node found").insertBefore(n,l)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const $6=new e.nKC("MATOMO_ROUTER_ENABLED",{factory:()=>!1}),i6=new e.nKC("MATOMO_CONFIGURATION"),q4=new e.nKC("INTERNAL_MATOMO_CONFIGURATION",{factory(){const{mode:t,requireConsent:a,...c}=f3((0,e.WQX)(i6,{optional:!0}),"No Matomo configuration found! Have you included Matomo module using MatomoModule.forRoot() or provideMatomo()?");return{mode:t?G(t):void 0,disabled:!1,enableLinkTracking:!0,trackAppInitialLoad:!(0,e.WQX)($6),requireConsent:a?e1(a):"none",enableJSErrorTracking:!1,runOutsideAngularZone:!1,disableCampaignParameters:!1,acceptDoNotTrack:!1,...c}}}),Y3=new e.nKC("DEFERRED_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>{const t=(0,e.WQX)(q4);let a;return{configuration:new Promise(n=>a=n),markReady(n){f3(a,"resolveFn")({...t,...n})}}}});new e.nKC("ASYNC_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>(0,e.WQX)(Y3).configuration});var U=function(t){return t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t[t.AUTO_DEFERRED=2]="AUTO_DEFERRED",t}(U||{});function G(t){switch(t){case U.AUTO:return"auto";case U.MANUAL:return"manual";case U.AUTO_DEFERRED:return"deferred";default:return t}}var D=function(t){return t[t.NONE=0]="NONE",t[t.COOKIE=1]="COOKIE",t[t.TRACKING=2]="TRACKING",t}(D||{});function e1(t){switch(t){case D.NONE:return"none";case D.COOKIE:return"cookie";case D.TRACKING:return"tracking";default:return t}}function I2(t){return null!=t.siteId&&null!=t.trackerUrl}function q3(t){return Array.isArray(t.trackers)}function c8(){window._paq=window._paq||[]}function n4(t){const a=[...t];for(;a.length>0&&void 0===a[a.length-1];)a.pop();return a}let ze=(()=>{class t{constructor(){this.ngZone=(0,e.WQX)(e.SKi),this.config=(0,e.WQX)(q4),c8()}get(c){return this.pushFn(n=>n[c]())}pushFn(c){return new Promise(n=>{this.push([function(){n(c(this))}])})}push(c){this.config.runOutsideAngularZone?this.ngZone.runOutsideAngular(()=>{window._paq.push(n4(c))}):window._paq.push(n4(c))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:()=>function Ce(){const t=(0,e.WQX)(q4).disabled,a=(0,L.UE)((0,e.WQX)(e.Agw));return t||!a?new u4:new ze}(),providedIn:"root"})}}return t})();class u4{get(a){return(0,b1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}push(a){}pushFn(a){return(0,b1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}}let C8=(()=>{class t{constructor(){this.delegate=(0,e.WQX)(ze),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,n,l,r,m){this.delegate.push(["trackEvent",c,n,l,r,m])}trackSiteSearch(c,n,l,r){this.delegate.push(["trackSiteSearch",c,n,l,r])}trackGoal(c,n,l){this.delegate.push(["trackGoal",c,n,l])}trackLink(c,n,l){this.delegate.push(["trackLink",c,n,l])}trackAllContentImpressions(){this.delegate.push(["trackAllContentImpressions"])}trackVisibleContentImpressions(c,n){this.delegate.push(["trackVisibleContentImpressions",c,n])}trackContentImpressionsWithinNode(c){this.delegate.push(["trackContentImpressionsWithinNode",c])}trackContentInteractionNode(c,n){this.delegate.push(["trackContentInteractionNode",c,n])}trackContentImpression(c,n,l){this.delegate.push(["trackContentImpression",c,n,l])}trackContentInteraction(c,n,l,r){this.delegate.push(["trackContentInteraction",c,n,l,r])}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,n){this.delegate.push(["addTracker",c,n])}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,n,l,r,m,z){let F;"object"==typeof c&&c?(F=c.networkTimeInMs,n=c.serverTimeInMs,l=c.transferTimeInMs,r=c.domProcessingTimeInMs,m=c.domCompletionTimeInMs,z=c.onloadTimeInMs):F=c,this.delegate.push(["setPagePerformanceTiming",F,n,l,r,m,z])}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,n){this.delegate.push(["setHeartBeatTimer",c,n])}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,n,l,r){this.delegate.push(["setCustomVariable",c,n,l,r])}deleteCustomVariable(c,n){this.delegate.push(["deleteCustomVariable",c,n])}deleteCustomVariables(c){this.delegate.push(["deleteCustomVariables",c])}getCustomVariable(c,n){return this.delegate.pushFn(l=>l.getCustomVariable(c,n))}storeCustomVariablesInCookie(){this.delegate.push(["storeCustomVariablesInCookie"])}setCustomDimension(c,n){this.delegate.push(["setCustomDimension",c,n])}deleteCustomDimension(c){this.delegate.push(["deleteCustomDimension",c])}getCustomDimension(c){return this.delegate.pushFn(n=>n.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,n,l,r){!function Me(t){return"object"==typeof t&&1===Object.keys(t).length&&null!=t.productCategory}(c)?function L8(t){return"object"==typeof t&&"productSKU"in t}(c)?this.delegate.push(["setEcommerceView",c.productSKU,c.productName,c.productCategory,c.price]):this.delegate.push(["setEcommerceView",c,n,l,r]):this.delegate.push(["setEcommerceView",!1,!1,c.productCategory])}addEcommerceItem(c,n,l,r,m){this.delegate.push("string"==typeof c?["addEcommerceItem",c,n,l,r,m]:["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,n,l,r,m,z){this.delegate.push(["trackEcommerceOrder",c,n,l,r,m,z])}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 n=c.flat();this.delegate.push(["setExcludedReferrers",n])}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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function xe(t){return`${t}`}function W8(t,a){return null==a?e8(t)+N8:t+a}const N8="matomo.php";class n8{initialize(){}init(){}initializeTracker(a){}}let l8=(()=>{class t{constructor(){this.config=(0,e.WQX)(q4),this.deferredConfig=(0,e.WQX)(Y3),this.tracker=(0,e.WQX)(C8),this.scriptInjector=(0,e.WQX)(G3),this.initialize=d3(()=>{this.runPreInitTasks(),function w1(t){return null==t.mode||"auto"===t.mode||t.mode===U.AUTO}(this.config)&&this.injectMatomoScript(this.config)},"Matomo has already been initialized"),this.injectMatomoScript=d3(c=>{if(function M3(t){return I2(t)||q3(t)}(c)){const{scriptUrl:n}=c,[l,...r]=function X4(t){return q3(t)?t.trackers:[{trackerUrl:t.trackerUrl,siteId:t.siteId,trackerUrlSuffix:t.trackerUrlSuffix}]}(c),m=n??e8(l.trackerUrl)+"matomo.js";this.registerMainTracker(l),this.registerAdditionalTrackers(r),this.scriptInjector.injectDOMScript(m)}else if(function k0(t){return null!=t.scriptUrl&&!I2(t)}(c)){const{scriptUrl:n,trackers:l}={trackers:[],...c};this.registerAdditionalTrackers(l),this.scriptInjector.injectDOMScript(n)}this.deferredConfig.markReady(c)},"Matomo trackers have already been initialized"),c8()}init(){this.initialize()}initializeTracker(c){this.injectMatomoScript(c)}registerMainTracker(c){const n=W8(c.trackerUrl,c.trackerUrlSuffix),l=xe(c.siteId);this.tracker.setTrackerUrl(n),this.tracker.setSiteId(l)}registerAdditionalTrackers(c){c.forEach(({trackerUrl:n,siteId:l,trackerUrlSuffix:r})=>{const m=W8(n,r),z=xe(l);this.tracker.addTracker(m,z)})}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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:()=>function t8(){const t=(0,e.WQX)(q4).disabled,a=(0,L.UE)((0,e.WQX)(e.Agw));return t||!a?new n8:new l8}(),providedIn:"root"})}}return t})();const j0=Symbol("MATOMO_PROVIDERS"),S4=Symbol("MATOMO_CHECKS");function k5(t,a){const c=[];return a&&c.push(function u3(t){return function T4(t,a,c){return{kind:t,[j0]:a,[S4]:c}}("ScriptFactory",[{provide:J0,useValue:t}])}(a)),function Z4(t,...a){const c=[{provide:e.Z63,multi:!0,useValue(){(0,e.WQX)(l8).initialize()}}],n=[];c.push("function"==typeof t?{provide:i6,useFactory:t}:{provide:i6,useValue:t});for(const l of a)c.push(...l[j0]),n.push(l.kind);for(const l of a)l[S4]?.(n);return(0,e.EmA)(c)}(t,...c)}let D8=(()=>{class t{static forRoot(c,n){return{ngModule:t,providers:[k5(c,n)]}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({})}}return t})();var N2=v(1600),X3=v(7468),Ge=v(4572),K8=v(8793),M8=v(6697),Ye=v(5343);function s8(t,a){return a?c=>(0,K8.x)(a.pipe((0,M8.s)(1),function ye(){return(0,W1.N)((t,a)=>{t.subscribe((0,Y1._)(a,Ye.l))})}()),c.pipe(s8(t))):(0,K.Z)((c,n)=>(0,V.Tg)(t(c,n)).pipe((0,M8.s)(1),(0,x1.u)(c)))}var B6=v(5964),ee=v(274),ce=v(8141),Fe=v(9901);const T8=new e.nKC("MATOMO_ROUTER_CONFIGURATION"),T3={prependBaseHref:!0,trackPageTitle:!0,delay:0,exclude:[],navigationEndComparator:"fullUrl"},V6=new e.nKC("INTERNAL_ROUTER_CONFIGURATION",{factory:()=>{const{disabled:t,enableLinkTracking:a}=(0,e.WQX)(q4),c=(0,e.WQX)(T8,{optional:!0})||{};return{...T3,...c,enableLinkTracking:a,disabled:t}}}),R8=new e.nKC("MATOMO_ROUTER_INTERCEPTORS");class A8{constructor(a,c){this.fn=a,this.injector=c}beforePageTrack(a){return(0,e.N4e)(this.injector,()=>this.fn(a))}}function _6(t){return function c5(t){return"function"!=typeof t.prototype?.beforePageTrack}(t)?{provide:R8,multi:!0,useFactory:()=>new A8(t,(0,e.WQX)(e.duS))}:{provide:R8,multi:!0,useClass:t}}function k6(t){return t?t.map(_6):[]}new e.nKC("MATOMO_ROUTE_DATA_KEY",{providedIn:"root",factory:()=>"matomo"});const $2=new e.nKC("MATOMO_PAGE_TITLE_PROVIDER",{factory:()=>new x4((0,e.WQX)(u.hE))});class x4{constructor(a){this.title=a}getCurrentPageTitle(a){return(0,a1.of)(this.title.getTitle())}}const o4=new e.nKC("MATOMO_PAGE_URL_PROVIDER",{factory:()=>new X((0,e.WQX)(V6),(0,e.WQX)(L.kB,{optional:!0}),(0,e.WQX)(L.hb))});class X{constructor(a,c,n){this.config=a,this.baseHref=c,this.locationStrategy=n}getCurrentPageUrl(a){const c=this.config.prependBaseHref?this.getBaseHrefWithoutTrailingSlash()+a.urlAfterRedirects:a.urlAfterRedirects;return(0,a1.of)(c)}getBaseHrefWithoutTrailingSlash(){return function P(t){return t.endsWith("/")?t.slice(0,-1):t}(this.baseHref??this.locationStrategy.getBaseHref()??"")}}function W(t){return t instanceof N2.wF}function t1(t){return"string"==typeof t?new RegExp(t):t}function U1(t){return(a,c)=>t(a)===t(c)}let k2=(()=>{class t{constructor(c,n,l,r,m,z,F){if(this.router=c,this.platformId=n,this.config=l,this.pageTitleProvider=r,this.pageUrlProvider=m,this.tracker=z,this.interceptors=F,this.initialize=d3(()=>{if(this.config.disabled||!(0,L.UE)(this.platformId))return;const I=-1===this.config.delay?v1.D:function W3(t,a=s4){const c=y4(t,a);return s8(()=>c)}(this.config.delay),J=function y2(t){switch(t.navigationEndComparator){case"fullUrl":return U1(a=>a.urlAfterRedirects);case"ignoreQueryParams":return U1(a=>function M1(t){return t.split("?")[0]}(a.urlAfterRedirects));default:return t.navigationEndComparator}}(this.config);this.router.events.pipe((0,B6.p)(W),(0,B6.p)(function T1(t){const a=function p1(t){return t?Array.isArray(t)?t.map(t1):[t1(t)]:[]}(t);return c=>!a.some(n=>c.urlAfterRedirects.match(n))}(this.config.exclude)),o2(J),I,(0,A.n)(d1=>this.presetPageTitleAndUrl(d1).pipe((0,w0.T)(({pageUrl:i1})=>({pageUrl:i1,event:d1})))),(0,ee.H)(({event:d1,pageUrl:i1})=>this.callInterceptors(d1).pipe((0,ce.M)(()=>this.trackPageView(i1))))).subscribe()},"MatomoRouter has already been initialized"),F&&!Array.isArray(F))throw function l2(){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,X3.p)(this.interceptors.map(n=>{const l=n.beforePageTrack(c);return(null==l?(0,a1.of)(void 0):(0,N3.H)(l)).pipe((0,M8.s)(1),(0,Fe.U)(void 0))})).pipe((0,x1.u)(void 0),(0,Fe.U)(void 0)):(0,a1.of)(void 0)}presetPageTitleAndUrl(c){const n=this.config.trackPageTitle?this.pageTitleProvider.getCurrentPageTitle(c).pipe((0,ce.M)(r=>this.tracker.setDocumentTitle(r))):(0,a1.of)(void 0),l=this.pageUrlProvider.getCurrentPageUrl(c).pipe((0,ce.M)(r=>this.tracker.setCustomUrl(r)));return(0,Ge.z)([n,l]).pipe((0,w0.T)(([r,m])=>({pageUrl:m})))}trackPageView(c){this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking("enable-pseudo"===this.config.enableLinkTracking),this.tracker.setReferrerUrl(c)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(N2.Ix),e.KVO(e.Agw),e.KVO(V6),e.KVO($2),e.KVO(o4),e.KVO(C8),e.KVO(R8,8))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),W0=(()=>{class t{constructor(c,n,l){this.router=c,!n&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:t,providers:[{provide:T8,useValue:c},k6(c.interceptors)]}}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(k2),e.KVO(t,12),e.KVO((0,e.Rfq)(()=>v4),12))}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({providers:[{provide:$6,useValue:!0}]})}}return t})(),v4=(()=>{class t{constructor(c,n,l){this.router=c,!n&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:t,providers:[{provide:T8,useValue:c},k6(c.interceptors)]}}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(k2),e.KVO(W0,12),e.KVO((0,e.Rfq)(()=>t),12))}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({providers:[{provide:$6,useValue:!0}]})}}return t})(),Q0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){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,"h3",4),e.EFF(5,"Error"),e.k0s()(),e.j41(6,"div",5),e.EFF(7),e.k0s()()),2&n&&(e.R7$(7),e.SpI(" ",l.message," "))}})}}return t})();function Z2(t,a){return()=>t.init().then(c=>{a.initializeTracker({siteId:c.matomoId,trackerUrl:c.matomoUrl})})}var s3=v(8508),C2=v(3077),K4=v(7473),s0=v(452),n0=v(7387),L6=v(3836),C6=v(6964),ve=v(5586),w5=v(3636),p0=v(8058),h1=v(5312);function te(t,a){if(1&t&&(e.j41(0,"option",32),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.value),e.R7$(),e.JRh(c.label)}}function S0(t,a){1&t&&(e.j41(0,"div",33),e.nrm(1,"div",34),e.k0s())}function S5(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(9),e.JRh(c.error)}}function ne(t,a){1&t&&(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 a8(t,a){if(1&t&&(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&t){const c=e.XpG(2);e.R7$(5),e.JRh("customer"===c.selectedRole?"PROVIDER":"CUSTOMER")}}function ke(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.viewDetails(l))}),e.EFF(17," Details "),e.qSk(),e.j41(18,"svg",69),e.nrm(19,"path",70),e.k0s()()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.AVh("bg-gray-50",n.isQuoteFinalized(c))("dark:bg-gray-800",n.isQuoteFinalized(c))("hover:bg-gray-50",!n.isQuoteFinalized(c))("dark:hover:bg-gray-800",!n.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(" ",n.getOtherPartyName(c)," "),e.R7$(2),e.SpI(" ",n.getProductName(c)," "),e.R7$(2),e.Y8G("ngClass",n.getStateClass(n.getPrimaryState(c))),e.R7$(),e.SpI(" ",n.getStatusLabel(c)," "),e.R7$(2),e.HbH(n.getIconButtonClass(c,"chat","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200")),e.Y8G("disabled",n.isActionDisabled(c,"chat")),e.R7$(3),e.AVh("opacity-50",n.isActionDisabled(c,"viewDetails"))("cursor-not-allowed",n.isActionDisabled(c,"viewDetails")),e.Y8G("disabled",n.isActionDisabled(c,"viewDetails"))}}function x8(t,a){if(1&t&&(e.j41(0,"div",43),e.DNE(1,ne,7,0,"div",44)(2,a8,12,1,"div",45)(3,ke,20,25,"div",46),e.k0s()),2&t){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 m3(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",80)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.selectedState,l)||(r.selectedState=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",82),e.EFF(3),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("id","state-"+c),e.R50("ngModel",n.selectedState),e.Y8G("value",c),e.R7$(),e.Y8G("for","state-"+c),e.R7$(),e.SpI(" ",n.getStateDisplay(c)," ")}}function t5(t,a){if(1&t){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,m3,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&t){const c=e.XpG();e.R7$(6),e.Y8G("ngForOf",c.availableStates),e.R7$(4),e.Y8G("disabled",!c.selectedState)}}function R3(t,a){if(1&t){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 r=e.XpG();return e.DH7(r.selectedDate,l)||(r.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&t){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 p3=(()=>{class t{constructor(){this.router=(0,e.WQX)(N2.Ix),this.quoteService=(0,e.WQX)(s3.K),this.localStorage=(0,e.WQX)(C2.s),this.notificationService=(0,e.WQX)(K4.J),this.accountService=(0,e.WQX)(s0.O),this.productService=(0,e.WQX)(n0.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=[p0.yz.PENDING,p0.yz.IN_PROGRESS,p0.yz.APPROVED,p0.yz.REJECTED,p0.yz.CANCELLED,p0.yz.ACCEPTED],this.QUOTE_STATUSES=p0.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 n=c.organizations.find(l=>l.id==c.logged_as);this.currentUserId=n.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 n=new Set,l=new Set;if(c.forEach(r=>{r.relatedParty?.forEach(m=>{m.id&&!this.organizationNames.has(m.id)&&this.isOrganizationId(m.id)&&n.add(m.id)}),r.quoteItem?.forEach(m=>{m.productOffering?.id&&!this.productNames.has(m.productOffering.id)&&l.add(m.productOffering.id)})}),n.size>0){const r=Array.from(n).map(m=>this.accountService.getOrgInfo(m).then(z=>({id:m,name:z?.tradingName||z?.name||m}),()=>({id:m,name:m})));Promise.all(r).then(m=>{m.forEach(({id:z,name:F})=>{this.organizationNames.set(z,F)}),this.filteredQuotes=[...this.filteredQuotes]})}if(console.log("Product IDs to fetch:",Array.from(l)),l.size>0){const r=Array.from(l).map(m=>(console.log("Fetching product:",m),this.productService.getProductById(m).then(z=>(console.log("Product fetched:",m,z?.name),{id:m,name:z?.name||"Product Name Unavailable"}),z=>(console.error("Product fetch error:",m,z),{id:m,name:"Product Name Unavailable"}))));Promise.all(r).then(m=>{m.forEach(({id:z,name:F})=>{this.productNames.set(z,F)}),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,n)=>{const l=c.quoteDate?new Date(c.quoteDate).getTime():0;return(n.quoteDate?new Date(n.quoteDate).getTime():0)-l})}get filterStatusOptions(){const c="customer"===this.selectedRole?p0.D5:p0.Wc;return[{value:p0.yz.PENDING,label:c.PENDING},{value:p0.yz.IN_PROGRESS,label:c.IN_PROGRESS},{value:p0.yz.APPROVED,label:c.APPROVED},{value:p0.yz.ACCEPTED,label:c.ACCEPTED},{value:p0.yz.CANCELLED,label:c.CANCELLED},{value:p0.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 n=this.quotes.findIndex(m=>m.id===c.id);-1!==n&&(this.quotes[n]=c,this.filterQuotesByStatus());const l=this.extractShortId(c.id),r=this.getPrimaryState(c);this.notificationService.showSuccess(`Quote ${l} has been updated to ${r}.`)}closeChatModal(){this.showChatModal=!1,this.selectedChatQuoteId=null}closeAttachmentModal(){this.showAttachmentModal=!1,this.selectedAttachmentQuote=null}onAttachmentUploaded(c){const n=this.quotes.findIndex(l=>l.id===c.id);-1!==n&&(this.quotes[n]=c,this.filterQuotesByStatus()),"seller"===this.selectedRole&&this.getPrimaryState(c)===p0.yz.IN_PROGRESS&&(console.log("Provider uploaded PDF, updating quote status to approved:",c.id),this.quoteService.updateQuoteStatus(c.id,p0.yz.APPROVED).subscribe({next:l=>{const r=this.quotes.findIndex(z=>z.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus());const m=this.extractShortId(c.id);console.log("Quote status automatically updated to approved after PDF upload"),this.notificationService.showSuccess(`Quote ${m} 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 n=this.quotes.findIndex(l=>l.id===c.id);-1!==n&&(this.quotes[n]=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){try{this.quoteService.downloadAttachment(c),this.notificationService.showSuccess("Download started")}catch(n){console.error("Error downloading attachment:",n),this.notificationService.showError(n.message||"Error downloading attachment")}}addAttachment(c){this.selectedAttachmentQuote=c,this.showAttachmentModal=!0}acceptQuote(c){const n=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,p0.yz.IN_PROGRESS).subscribe({next:l=>{const r=this.quotes.findIndex(m=>m.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus()),console.log("Quote request successfully accepted"),this.notificationService.showSuccess(`Quote request ${n} 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 n=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,p0.yz.ACCEPTED).subscribe({next:l=>{const r=this.quotes.findIndex(m=>m.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus()),console.log("Quotation successfully accepted by customer"),this.notificationService.showSuccess(`Quotation ${n} 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),n=new Date;return n.setHours(0,0,0,0),c>n}confirmDateUpdate(){if(!(this.selectedDateQuote&&this.datePickerType&&this.selectedDate&&this.isDateValid()))return;const c=this.extractShortId(this.selectedDateQuote.id),n=this.datePickerType,l=new Date(this.selectedDate),r=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log(`Setting ${n} completion date for quote:`,this.selectedDateQuote.id,"Date:",r),this.quoteService.updateQuoteDate(this.selectedDateQuote.id,r,n).subscribe({next:m=>{const z=this.quotes.findIndex(F=>F.id===m.id);-1!==z&&(this.quotes[z]=m,this.filterQuotesByStatus()),console.log(`${n} completion date successfully updated`),this.notificationService.showSuccess(`${"requested"===n?"Requested":"Expected"} completion date for quote ${c} has been set successfully.`),this.closeDatePickerModal()},error:m=>{console.error(`Error setting ${n} completion date:`,m),this.notificationService.showError(`Error setting ${n} completion date: ${m.message||"Unknown error"}`)}})}cancelQuote(c){const n=this.extractShortId(c.id);this.cancelConfirmMessage=`Are you sure you want to cancel quote ${n}? 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,p0.yz.CANCELLED).subscribe({next:l=>{const r=this.quotes.findIndex(m=>m.id===l.id);-1!==r&&(this.quotes[r]=l,this.filterQuotesByStatus()),console.log("Quote successfully cancelled"),this.notificationService.showSuccess(`Quote ${n} 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 n="customer"===this.selectedRole?h1.c.SELLER_ROLE:h1.c.BUYER_ROLE,l=c.relatedParty.find(m=>m.role?.toLowerCase()===n.toLowerCase());if(!l?.id)return"Unknown";const r=this.organizationNames.get(l.id);return r&&r!==l.id?r:"Loading..."}getProductName(c){if(!c.quoteItem||0===c.quoteItem.length)return"Unknown Product";const n=c.quoteItem[0],l=n.productOffering?.id;return n.productOffering?.name?n.productOffering.name:l?this.productNames.get(l)||"Loading...":n.product?.name?n.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 n=this.getPrimaryState(c),l="customer"===this.selectedRole?p0.D5:p0.Wc;switch(n){case p0.yz.PENDING:return l.PENDING;case p0.yz.IN_PROGRESS:return l.IN_PROGRESS;case p0.yz.APPROVED:return l.APPROVED;case p0.yz.ACCEPTED:return l.ACCEPTED;case p0.yz.CANCELLED:return l.CANCELLED;case p0.yz.REJECTED:return l.REJECTED;default:return n}}hasAttachment(c){return Array.isArray(c.quoteItem)&&c.quoteItem.some(n=>n.attachment&&n.attachment.length>0)}isQuoteCancelled(c){return c.quoteItem?.some(n=>n.state===p0.yz.CANCELLED)||!1}isQuoteAccepted(c){return c.quoteItem?.some(n=>n.state===p0.yz.ACCEPTED)||!1}isQuoteFinalized(c){return this.isQuoteCancelled(c)||this.isQuoteAccepted(c)}isActionDisabled(c,n){const l=this.isQuoteCancelled(c),m=(this.isQuoteAccepted(c),this.isQuoteFinalized(c));switch(n){case"viewDetails":case"downloadAttachment":return l;case"chat":case"accept":case"acceptCustomer":case"addRequestedDate":case"addExpectedDate":default:return!1;case"addAttachment":case"cancel":return m}}getButtonClass(c,n){const l="px-2 py-1 text-xs font-medium transition-colors rounded border";return this.isActionDisabled(c,n)?`${l} text-gray-400 cursor-not-allowed border-gray-200`:"viewDetails"===n?`${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,n,l){const r="p-1.5 text-xs cursor-pointer rounded hover:bg-gray-100 transition-colors";return this.isActionDisabled(c,n)?`${r} text-gray-400 cursor-not-allowed hover:bg-transparent`:`${r} ${l}`}getActionTitle(c,n){return this.isActionDisabled(c,n)?"Action disabled - quote is "+(this.isQuoteCancelled(c)?"cancelled":"accepted"):""}getStateDisplay(c){return c?{[p0.yz.PENDING]:"Pending",[p0.yz.IN_PROGRESS]:"In Progress",[p0.yz.APPROVED]:"Approved",[p0.yz.REJECTED]:"Rejected",[p0.yz.CANCELLED]:"Cancelled",[p0.yz.ACCEPTED]:"Accepted"}[c]||c:"Unknown"}getStateClass(c){switch(c){case p0.yz.PENDING:return"status-pending";case p0.yz.IN_PROGRESS:return"status-inProgress";case p0.yz.APPROVED:return"status-approved";case p0.yz.REJECTED:return"status-rejected";case p0.yz.CANCELLED:return"status-cancelled";case p0.yz.ACCEPTED:return"status-accepted";default:return"status-unknown"}}canUpdateState(c){return c!==p0.yz.CANCELLED&&c!==p0.yz.ACCEPTED}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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(m){return e.DH7(l.statusFilter,m)||(l.statusFilter=m),m}),e.bIt("ngModelChange",function(){return l.filterQuotesByStatus()}),e.j41(28,"option",20),e.EFF(29,"All Statuses"),e.k0s(),e.DNE(30,te,2,2,"option",21),e.k0s()()(),e.DNE(31,S0,2,0,"div",22)(32,S5,10,1,"div",23)(33,x8,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,t5,12,2,"div",28),e.j41(38,"app-quote-details-modal",29),e.bIt("close",function(){return l.closeQuoteDetailsModal()})("quoteUpdated",function(m){return l.onQuoteUpdated(m)}),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(m){return l.onAttachmentUploaded(m)}),e.k0s(),e.DNE(41,R3,18,5,"div",28)),2&n&&(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:[L.MD,L.YU,L.Sq,L.bT,L.vh,p.YN,p.xH,p.y7,p.me,p.wz,p.Fm,p.BC,p.vS,L6.w,C6.h,ve.d,w5.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 t})();var E2=v(604);let I8=(()=>{class t{constructor(){this.faFileCertificate=E2.LP,this.faBadgeCheck=E2.Zsp,this.faHandHoldingCircleDollar=E2.EEq,this.faChartNetwork=E2.Qux,this.domePublish=h1.c.DOME_PUBLISH_LINK}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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:[X2.dX,X2.aY,s1.h,s1.D9]})}}return t})();var H2=v(7586),V2=v(3207);class J3{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}createBlogEntry(a){return this.http.post(`${J3.BASE_URL}/domeblog`,a)}getBlogEntries(){return(0,V2.s)(this.http.get(`${J3.BASE_URL}/domeblog`))}getBlogEntryById(a){return(0,V2.s)(this.http.get(`${J3.BASE_URL}/domeblog/${a}`))}updateBlogEntry(a,c){return(0,V2.s)(this.http.patch(`${J3.BASE_URL}/domeblog/${c}`,a))}deleteBlogEntry(a){return(0,V2.s)(this.http.delete(`${J3.BASE_URL}/domeblog/${a}`))}static{this.\u0275fac=function(c){return new(c||J3)(e.KVO(g.Qq),e.KVO(C2.s))}}static{this.\u0275prov=e.jDH({token:J3,factory:J3.\u0275fac,providedIn:"root"})}}function N5(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(4),e.Y8G("disabled",c.deleting)}}function N7(t,a){if(1&t&&(e.j41(0,"span",31),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function E5(t,a){if(1&t&&(e.j41(0,"div",30),e.Z7z(1,N7,2,1,"span",31,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c)}}function D5(t,a){1&t&&e.DNE(0,E5,3,0,"div",30),2&t&&e.vxM(0,a.length>0?0:-1)}function P8(t,a){if(1&t&&(e.j41(0,"div",21),e.nrm(1,"img",32),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("src",a,e.B4B)("alt",c.entry.title+" featured image")}}let T5=(()=>{class t{constructor(c,n,l,r,m,z){this.route=c,this.router=n,this.domeBlogService=l,this.localStorage=r,this.titleService=m,this.metaService=z,this.entry={},this.blogId="",this.partyId="",this.checkAdmin=!1,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,b1.A)(function*(){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(["/blog"])}goToUpdate(){const c=this.entry?._id||(this.isObjectId(this.blogId)?this.blogId:null);c&&this.router.navigate(["/blog-entry/",c])}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,b1.A)(function*(){const n=c.entry?._id||(c.isObjectId(c.blogId)?c.blogId:null);if(n){c.closeDeleteDialog(),c.deleting=!0;try{yield c.domeBlogService.deleteBlogEntry(n),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 n=this;return(0,b1.A)(function*(){if(!c)return{};if(n.isObjectId(c))try{return yield n.domeBlogService.getBlogEntryById(c)}catch{}try{const r=(yield n.domeBlogService.getBlogEntries()).find(m=>m.slug===c);if(r?._id)try{return yield n.domeBlogService.getBlogEntryById(r._id)}catch{return r}if(r)return r}catch{}try{return yield n.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-H2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.checkAdmin=c.roles.some(n=>"admin"===n.name)}}applySeoMetadata(){const c=(this.entry?.title||"").toString().trim(),n=this.getEntryMetaDescription();c&&this.titleService.setTitle(c),n&&this.metaService.updateTag({name:"description",content:n})}getEntryMetaDescription(){const c=(this.entry?.metaDescription||"").toString().trim();if(c)return this.truncateText(c,160);const n=(this.entry?.excerpt||"").toString().trim();if(n)return this.truncateText(n,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(n=>(n??"").toString().trim()).filter(n=>n.length>0):"string"==typeof c?c.split(",").map(n=>n.trim()).filter(n=>n.length>0):[]}stripMarkdown(c){return c.replace(/!\[[^\]]*]\([^)]*\)/g," ").replace(/\[[^\]]*]\([^)]*\)/g," ").replace(/[`*_>#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,n){return!c||c.length<=n?c:`${c.slice(0,n).trim()}...`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.nX),e.rXU(N2.Ix),e.rXU(J3),e.rXU(C2.s),e.rXU(u.hE),e.rXU(u.W8))}}static{this.\u0275cmp=e.VBU({type:t,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-[#DDE6F6]"],[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-[#0B1528]","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(n,l){if(1&n&&(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,N5,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,D5,1,1)(29,P8,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&n){let r,m;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,(r=l.getEntryTags())?28:-1,r),e.R7$(),e.vxM(29,(m=l.getFeaturedImage())?29:-1,m),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:[L.MD,L.vh,T0,L6.w]})}}return t})(),j2=(()=>{class t{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,n){this.eventMessageSubject.next({type:"SellerCreateCustomOffer",value:{offer:c,partyId:n}})}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})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function S9(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCreate())}),e.j41(1,"p",11),e.EFF(2,"Add a new entry"),e.k0s(),e.qSk(),e.j41(3,"svg",12),e.nrm(4,"path",13),e.k0s()()}}function xs(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",16)(1,"button",24),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG();return e.Njj(r.goToUpdate(l._id))}),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().$implicit,r=e.XpG();return e.Njj(r.openDeleteDialog(l))}),e.qSk(),e.j41(5,"svg",28),e.nrm(6,"path",29),e.k0s()()()}if(2&t){const c=e.XpG().$implicit,n=e.XpG();e.R7$(4),e.Y8G("disabled",n.isDeletingEntry(c))}}function b2(t,a){if(1&t&&(e.j41(0,"span",31),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function N9(t,a){if(1&t&&(e.j41(0,"div",30),e.Z7z(1,b2,2,1,"span",31,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c)}}function x(t,a){1&t&&e.DNE(0,N9,3,0,"div",30),2&t&&e.vxM(0,a.length>0?0:-1)}function N(t,a){if(1&t&&e.nrm(0,"img",20),2&t){const c=e.XpG().$implicit;e.Y8G("src",a,e.B4B)("alt",c.title+" featured image")}}function b(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",8)(1,"div",14)(2,"h2",15),e.EFF(3),e.k0s(),e.DNE(4,xs,7,1,"div",16),e.k0s(),e.j41(5,"h4",17),e.EFF(6," Created by "),e.j41(7,"b",18),e.EFF(8),e.k0s(),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.DNE(11,x,1,1),e.j41(12,"div",19),e.DNE(13,N,1,2,"img",20),e.j41(14,"div",21)(15,"p",22),e.EFF(16),e.k0s(),e.j41(17,"button",23),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.goToDetails(l))}),e.j41(18,"p",11),e.EFF(19,"View details"),e.k0s()()()()()}if(2&t){let c,n;const l=a.$implicit,r=e.XpG();e.R7$(3),e.JRh(l.title),e.R7$(),e.vxM(4,r.canManageEntry(l)?4:-1),e.R7$(4),e.JRh(l.author),e.R7$(),e.SpI(" on ",e.i5U(10,7,l.date,"EEEE, dd/MM/yy, HH:mm"),". "),e.R7$(2),e.vxM(11,(c=r.getEntryTags(l))?11:-1,c),e.R7$(2),e.vxM(13,(n=r.getFeaturedImage(l))?13:-1,n),e.R7$(3),e.SpI(" ",r.getEntryExcerpt(l)," ")}}let E=(()=>{class t{constructor(c,n,l,r){this.router=c,this.eventMessage=n,this.localStorage=l,this.domeBlogService=r,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.eventMessage.messages$.subscribe(m=>{"ChangedSession"===m.type&&this.initPartyInfo()})}ngOnInit(){var c=this;return(0,b1.A)(function*(){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-H2().unix()-4>0){if(console.log("user info ---"),console.log(c),c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.checkAdmin=c.roles.some(n=>"admin"===n.name)}}goToDetails(c){this.router.navigate(["/blog/",this.getEntryRouteId(c)])}goToCreate(){this.router.navigate(["/blog-entry"])}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,b1.A)(function*(){if(c.pendingDeleteEntry?._id){c.deletingEntryId=c.pendingDeleteEntry._id,c.closeDeleteDialog();try{yield c.domeBlogService.deleteBlogEntry(c.deletingEntryId),yield c.loadEntries()}catch(n){console.error("There was an error while deleting the entry!",n)}finally{c.deletingEntryId=null}}else c.closeDeleteDialog()})()}loadEntries(){var c=this;return(0,b1.A)(function*(){try{let n=yield c.domeBlogService.getBlogEntries();c.entries=Array.isArray(n)?n:[]}catch{c.entries=[]}})()}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 n=c?.tags;return Array.isArray(n)?n.map(l=>(l??"").toString().trim()).filter(l=>l.length>0):"string"==typeof n?n.split(",").map(l=>l.trim()).filter(l=>l.length>0):[]}getEntryExcerpt(c){const n=(c?.excerpt||"").toString().trim();if(n)return n;const l=(c?.metaDescription||"").toString().trim();if(l)return l;const r=this.stripMarkdown((c?.content||"").toString());return this.truncateText(r,260)}stripMarkdown(c){return c.replace(/!\[[^\]]*]\([^)]*\)/g," ").replace(/\[[^\]]*]\([^)]*\)/g," ").replace(/[`*_>#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,n){return!c||c.length<=n?c:`${c.slice(0,n).trim()}...`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(j2),e.rXU(C2.s),e.rXU(J3))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dome-blog"]],standalone:!0,features:[e.aNF],decls:12,vars:6,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-[#DDE6F6]"],[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-[#0B1528]"],["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"],[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,"text-2xl","font-bold","mb-4","dark:text-white","break-words"],[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"],[1,"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",3,"src","alt"],[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"]],template:function(n,l){1&n&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),e.EFF(6," Blog "),e.k0s()(),e.DNE(7,S9,5,0,"button",6),e.k0s()()(),e.j41(8,"div",7),e.Z7z(9,b,20,10,"div",8,e.fX1),e.k0s()(),e.j41(11,"app-confirm-dialog",9),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&n&&(e.R7$(7),e.vxM(7,l.checkAdmin?7:-1),e.R7$(2),e.Dyx(l.entries),e.R7$(2),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass))},dependencies:[L.MD,L.vh,L6.w]})}}return t})();const bn={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"]},Xe={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"]},Om={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"]},vi={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"]},oc={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"]},BD={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"]},sT={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"]},qT={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"]},AA={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"]},AL={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"]},Hy={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"]},vO={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"]},VV={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"]},Ok={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"]},Af1={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"]},qf1={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"]},M9={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 pe{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_CATALOG=h1.c.PRODUCT_CATALOG}constructor(a){this.http=a}formatCheapestPricePlan(a){var c={},n=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(m=>m.priceType===M9.PRICE.ONE_TIME)).length>0){for(var r=0;rNumber(l[r].price?.value))&&(n=a.productOfferingPrice[r]);c={priceType:n?.priceType,price:n?.price?.value,unit:n?.price?.unit,text:"one time"}}else l=a.productOfferingPrice.filter(function(m){return void 0!==m.priceType?-1!==[M9.PRICE.RECURRING,M9.PRICE.USAGE].indexOf(m.priceType?.toLocaleLowerCase()):""}),c={priceType:l[0]?.priceType,price:l[0]?.price?.value,unit:l[0]?.price?.unit,text:l[0]?.priceType?.toLocaleLowerCase()==M9.PRICE.RECURRING?l[0]?.recurringChargePeriodType:l[0]?.priceType?.toLocaleLowerCase()==M9.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 n=0;n0&&(n="custom"===(yield c.getProductPrice(a.productOfferingPrice[0].id)).priceType?.toLowerCase()),n})()}calculatePrice(a){return console.log("Simulating HTTP call with payload:",a),this.http.post(`${pe.BASE_URL}/billing/order/`,a)}static{this.\u0275fac=function(c){return new(c||pe)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}}var ku1=v(4412);class d8{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_CART=h1.c.SHOPPING_CART}constructor(a){this.http=a,this.cartSubject=new ku1.t([]),this.cart$=this.cartSubject.asObservable()}getShoppingCart(){var a=this;return(0,b1.A)(function*(){let c=`${d8.BASE_URL}${d8.API_CART}/item/`;const n=yield(0,V2.s)(a.http.get(c));return a.cartSubject.next(n),n})()}addItemShoppingCart(a){var c=this;return(0,b1.A)(function*(){console.log("adding to cart"),console.log(a);let n=`${d8.BASE_URL}${d8.API_CART}/item/`;yield(0,V2.s)(c.http.post(n,a)),yield c.refreshCart()})()}removeItemShoppingCart(a){var c=this;return(0,b1.A)(function*(){let n=`${d8.BASE_URL}${d8.API_CART}/item/${a}`;yield(0,V2.s)(c.http.delete(n)),yield c.refreshCart()})()}emptyShoppingCart(){var a=this;return(0,b1.A)(function*(){console.log("removing cart");let c=`${d8.BASE_URL}${d8.API_CART}/empty/`;yield(0,V2.s)(a.http.post(c,{})),yield a.refreshCart()})()}refreshCart(){var a=this;return(0,b1.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 _I1=(t,a)=>({"break-all":t,"break-words":a});function LI1(t,a){1&t&&(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 CI1(t,a){if(1&t&&e.nrm(0,"img",22),2&t){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function zI1(t,a){1&t&&e.nrm(0,"img",30)}function MI1(t,a){1&t&&e.EFF(0," Estimated price: ")}function xI1(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function bI1(t,a){if(1&t&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2),e.k0s(),e.j41(3,"span",33),e.DNE(4,MI1,1,0),e.EFF(5),e.DNE(6,xI1,1,1),e.k0s()()),2&t){const c=a.$implicit,n=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,n.hasKey(c,"recurringChargePeriod")?6:-1)}}function yI1(t,a){if(1&t&&(e.j41(0,"div",26),e.Z7z(1,bI1,7,5,"div",31,e.fX1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function FI1(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"div",20)(3,"div",21),e.DNE(4,CI1,1,1,"img",22)(5,zI1,1,0),e.k0s(),e.j41(6,"div",23)(7,"p",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.goToProdDetails(l))}),e.EFF(8),e.k0s()()(),e.j41(9,"div",25),e.DNE(10,yI1,3,0,"div",26),e.k0s()(),e.j41(11,"div",27)(12,"button",28),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.deleteProduct(l))}),e.qSk(),e.j41(13,"svg",29),e.nrm(14,"path",6),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,_I1,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(10,c.options.pricing?10:-1)}}function vI1(t,a){if(1&t&&e.Z7z(0,FI1,15,7,"div",18,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c)}}function kI1(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",13),e.DNE(1,vI1,2,0),e.j41(2,"div",14)(3,"button",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.goToShoppingCart(r.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&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.vxM(1,n.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 wI1(t,a){if(1&t&&e.Z7z(0,kI1,8,6,"div",13,e.fX1),2&t){const c=e.XpG(2);e.Dyx(c.items)}}function SI1(t,a){1&t&&(e.j41(0,"p",34),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI("",e.bMT(2,1,"CART_DRAWER._empty"),"."))}function NI1(t,a){if(1&t&&(e.j41(0,"div",12),e.DNE(1,wI1,2,0)(2,SI1,3,3),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.items.length>0?1:2)}}let wu1=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.eventMessage=n,this.priceService=l,this.cartService=r,this.api=m,this.cdr=z,this.router=F,this.faCartShopping=AL,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,P1.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 n=(0,b1.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 n.apply(this,arguments)}}())}catch(n){this.loading=!1,this.handleError(n,"There was an error while retrieving the cart!")}}handleError(c,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}hasKey(c,n){return n in c}deleteProduct(c){var n=this;return(0,b1.A)(function*(){yield n.cartService.removeItemShoppingCart(c.id),console.log("deleted"),n.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===h1.c.SELLER_ROLE).id}goToShoppingCart(c){this.hideCart(),this.router.navigate(["/checkout",c])}getProviderInfo(){var c=this;return(0,b1.A)(function*(){for(let n=0;n{const r=l.relatedParty?.find(m=>m.role===h1.c.SELLER_ROLE)?.id;return r&&(n[r]||(n[r]=[]),n[r].push(l)),n},{}));console.log(c),this.items=c}isArray(c){return Array.isArray(c)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(j2),e.rXU(pe),e.rXU(d8),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(N2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.bIt("click",function(m){return m.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,LI1,6,0,"div",8)(13,NI1,3,1),e.k0s()),2&n&&(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:[L.YU,X2.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 t})();const OL1={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"]},vr1={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"]},gC1={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"]},AC1={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"]},ax1={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"]},Mv1={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"]},hI2=(t,a)=>a.id,Jv1=(t,a)=>({"break-all":t,"break-words":a});function gI2(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.FS9("title",null==c?null:c.name),e.Y8G("ngClass",e.l_i(10,Jv1,l.hasLongWord(null==c?null:c.name,20),!l.hasLongWord(null==c?null:c.name,20)))("id","badge-dismiss-"+n),e.R7$(),e.Y8G("ngClass",e.l_i(13,Jv1,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-"+n),e.R7$(4),e.JRh(e.bMT(9,8,"CATEGORIES_FILTER._remove_badge"))}}function _I2(t,a){if(1&t&&e.Z7z(0,gI2,10,16,"span",5,hI2),2&t){const c=e.XpG();e.Dyx(c.selected)}}let CE=(()=>{class t{constructor(c,n){this.localStorage=c,this.eventMessage=n,this.selected=[],this.destroy$=new S.B,this.faAddressCard=oc,this.faFilterList=ax1,this.faTag=E2._2z,this.selected=[],this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(l=>{if("AddedFilter"===l.type){const r=l.value;-1==this.selected.findIndex(z=>z.id===r.id)&&this.selected.push(l.value)}else if("RemovedFilter"===l.type){const r=l.value,m=this.selected.findIndex(z=>z.id===r.id);m>-1&&this.selected.splice(m,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)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,_I2,2,0),e.k0s()()()),2&n&&(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,X2.aY,L.YU]})}}return t})(),Qv1=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"europeTrademark")," "))},dependencies:[s1.D9],encapsulation:2})}}return t})();class Uk{static{this.BASE_URL=h1.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(C2.s))}}static{this.\u0275prov=e.jDH({token:Uk,factory:Uk.\u0275fac,providedIn:"root"})}}const LI2=()=>[1,2,3,4,5];function CI2(t,a){if(1&t&&(e.j41(0,"h5",9),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.rateMessage)}}function zI2(t,a){if(1&t&&(e.j41(0,"h5",9),e.EFF(1),e.k0s(),e.j41(2,"p",13),e.EFF(3,"(optional)"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.writeMessage)}}function MI2(t,a){if(1&t){const c=e.RV6();e.qSk(),e.j41(0,"svg",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.setRating(l))}),e.nrm(1,"path",18),e.k0s()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",n.rating>=c?"text-primary-100":"text-gray-300 dark:text-gray-500")}}function xI2(t,a){1&t&&(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,MI2,2,1,":svg:svg",16,e.fX1),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._tap")),e.R7$(3),e.Dyx(e.lJ4(3,LI2)))}function bI2(t,a){1&t&&(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&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._write")))}function yI2(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"FEEDBACK._send")," "))}function FI2(t,a){if(1&t&&(e.j41(0,"div",7),e.nrm(1,"fa-icon",8),e.DNE(2,CI2,2,1,"h5",9)(3,zI2,4,1),e.k0s(),e.j41(4,"div",10),e.DNE(5,xI2,7,4,"div",11)(6,bI2,6,3)(7,yI2,6,3,"div",12),e.k0s()),2&t){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 vI2(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faHandsHoldingHeart),e.R7$(2),e.JRh(e.bMT(4,2,"FEEDBACK._thanks"))}}function kI2(t,a){if(1&t){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 r=e.XpG();return e.DH7(r.wantsFeedback,l)||(r.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 r=e.XpG();return e.DH7(r.wantsFeedback,l)||(r.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&t){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 NH=(()=>{class t{constructor(c,n,l){this.eventMessage=c,this.feedbackService=n,this.localStorage=l,this.faMessagePen=E2.a5l,this.faHandsHoldingHeart=E2.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,b1.A)(function*(){if(0==c.addComment)c.addComment=!0;else{let n={rating:c.rating,type:c.type};null!=document.getElementById("message")&&(n.description=document.getElementById("message")?.value),yield(0,V2.s)(c.feedbackService.sendFeedback(n)),c.showThanksMessage=!0,yield(0,V2.s)(c.feedbackService.sendFeedback(n)),c.showThanksMessage=!0}})()}hide(){let l={expire:this.localStorage.getObject("feedback")?.expire??h1.c?.feedbackCampaignExpiration??0,approval:!1};this.localStorage.setObject("feedback",l),this.eventMessage.emitCloseFeedback(!0)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2),e.rXU(Uk),e.rXU(C2.s))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["feedback-modal"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(m){return m.stopPropagation()}),e.j41(2,"div",2)(3,"button",3),e.bIt("click",function(m){return l.hide(),m.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,FI2,8,4)(10,vI2,5,4)(11,kI2,19,6),e.k0s()()()),2&n&&(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:[L.YU,p.me,p.Fm,p.BC,p.vS,X2.aY,s1.D9]})}}return t})();const Lk1={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"]},xk1={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"]},Sk1={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"]},Rk1=[{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.support",url:"https://dome-marketplace.eu/contact-us",isRouterLink:!1},{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}]}],rG2=[{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}],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._marketplaceH",children:[{label:"HEADER._browse_serv",url:"/search",isRouterLink:!0},{label:"HEADER._catalogs",url:"/catalogues",isRouterLink:!0}]},{label:"HEADER._blog",url:"/blog",isRouterLink:!0}],footerLinks:Rk1,footerLinksColsNumber:Rk1.length,linkedin:h1.c.DOME_LINKEDIN,youtube:h1.c.DOME_YOUTUBE,twitter:h1.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 Hk=(()=>{class t{constructor(c,n,l,r){this.rendererFactory=c,this.document=n,this.platformId=l,this.injector=r,this.themeManagedMetaAttribute="data-theme-managed-meta",this.availableThemes=rG2,this.renderer=this.rendererFactory.createRenderer(null,null),this.currentThemeSubject=new ku1.t(null),this.currentTheme$=this.currentThemeSubject.asObservable(),this.defaultTheme=this.availableThemes.find(m=>m.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,n){if((0,L.UE)(this.platformId)&&this.document?.body){const l=this.document.body;n&&n!==c&&this.renderer.removeClass(l,`theme-${n.toLowerCase()}`),this.renderer.addClass(l,`theme-${c.toLowerCase()}`)}}applyThemeBrowserMetadata(c){if(!(0,L.UE)(this.platformId)||!this.document)return;const n=c.browserTitle||c.displayName;n&&(this.document.title=n),this.applyThemeMetaTags(c);const l=c.assets?.faviconUrl;if(!l)return;const r=l.startsWith("/")?l:`/${l}`;let m=this.document.querySelector("link[rel*='icon']");!m&&this.document.head&&(m=this.renderer.createElement("link"),this.renderer.setAttribute(m,"rel","icon"),this.renderer.appendChild(this.document.head,m)),m&&this.renderer.setAttribute(m,"href",r)}applyThemeMetaTags(c){const n=this.document.head;n&&(n.querySelectorAll(`meta[${this.themeManagedMetaAttribute}="true"]`).forEach(l=>this.renderer.removeChild(n,l)),c.metaTags?.length&&c.metaTags.forEach(l=>{if(!l.content||!l.name&&!l.property)return;const r=this.renderer.createElement("meta");this.renderer.setAttribute(r,this.themeManagedMetaAttribute,"true"),this.renderer.setAttribute(r,"content",l.content),l.name&&this.renderer.setAttribute(r,"name",l.name),l.property&&this.renderer.setAttribute(r,"property",l.property),this.renderer.appendChild(n,r)}))}initializeProviderTheme(c){let n;if(c&&(n=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),n||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),n||(n=this.defaultTheme),!n&&this.availableThemes.length>0&&(n=this.availableThemes[0]),n){const l=this.currentThemeSubject.value;this.applyThemeClassToBody(n.name,l?.name),this.applyThemeBrowserMetadata(n),this.currentThemeSubject.next(n);try{const r=this.injector.get(s1.c$);r.currentLang&&r.reloadLang(r.currentLang)}catch(r){console.error("No se pudo obtener TranslateService. \xbfEst\xe1 importado el TranslateModule correctamente?",r)}}else console.error("ThemeService: No se pudo determinar un tema para aplicar.")}findTheme(c){let n;return c&&(n=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),n||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),n||(n=this.defaultTheme),n}getCurrentThemeConfig(){return this.currentThemeSubject.value}getAvailableThemes(){return this.availableThemes}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(e._9s),e.KVO(L.qQ),e.KVO(e.Agw),e.KVO(e.zZn))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Ak1=(t,a)=>a.label,Ik1=(t,a)=>a.url,dG2=(t,a)=>a.label+(a.url||""),fG2=t=>({"mr-4":t});function uG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"fa-icon",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.openNewTab(l.url))}),e.k0s()}2&t&&e.Y8G("icon",a.$implicit.icon)}function mG2(t,a){if(1&t&&(e.j41(0,"div",9),e.Z7z(1,uG2,1,1,"fa-icon",14,Ik1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.socialLinks)}}function pG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",19),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(4);return r.feedback=!r.feedback,e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function hG2(t,a){if(1&t&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(2).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function gG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",21),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,r=e.XpG(3);return e.Njj(r.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function _G2(t,a){if(1&t&&e.DNE(0,hG2,3,4,"a",20)(1,gG2,3,3),2&t){const c=e.XpG().$implicit;e.vxM(0,c.isRouterLink?1:0)}}function LG2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,pG2,3,3,"a",18)(2,_G2,2,1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,"Feedback"===c.label?1:2)}}function CG2(t,a){if(1&t&&(e.j41(0,"div")(1,"h3",16),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ul",17),e.Z7z(5,LG2,3,1,"li",null,Ak1),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,c.label)," "),e.R7$(3),e.Dyx(c.navLinks)}}function zG2(t,a){if(1&t&&(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,mG2,3,0,"div",9),e.k0s(),e.j41(10,"div",10)(11,"div",11),e.Z7z(12,CG2,7,3,"div",null,Ak1),e.k0s()()()(),e.j41(14,"div",12)(15,"div",13),e.nrm(16,"app-europe-trademark"),e.k0s()()()()),2&t){const c=e.XpG();e.R7$(9),e.vxM(9,c.socialLinks.length?9:-1),e.R7$(3),e.Dyx(c.footerLinks)}}function MG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"fa-icon",26),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.openNewTab(l.url))}),e.k0s()}if(2&t){const c=a.$implicit;e.Y8G("ngClass",e.eq3(2,fG2,a.$index!==a.$count-1))("icon",c.icon)}}function xG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",27),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(2);return r.feedback=!r.feedback,e.Njj(l.stopPropagation())}),e.EFF(2," Feedback "),e.k0s()()}}function bG2(t,a){if(1&t&&(e.j41(0,"a",28),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function yG2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function FG2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,bG2,3,4,"a",28)(2,yG2,3,3),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function vG2(t,a){if(1&t&&(e.j41(0,"div")(1,"div",22)(2,"div",23),e.Z7z(3,MG2,1,4,"fa-icon",24,Ik1),e.k0s(),e.j41(5,"ul",25),e.DNE(6,xG2,3,0,"li"),e.Z7z(7,FG2,3,1,"li",null,dG2),e.k0s()()()),2&t){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 kG2(t,a){1&t&&(e.nrm(0,"feedback-modal",1),e.nI1(1,"translate"),e.nI1(2,"translate")),2&t&&e.Y8G("rateMessage",e.bMT(1,2,"FEEDBACK._footer_title"))("writeMessage",e.bMT(2,4,"FEEDBACK._footer_improve"))}let Pk1=(()=>{class t{constructor(c,n,l,r){this.themeService=c,this.localStorage=n,this.eventMessage=l,this.router=r,this.faLinkedin=xk1,this.faYoutube=Sk1,this.faXTwitter=Lk1,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-H2().unix()-4>0&&(this.checkLogged=!0)}checkEventMessages(){this.eventMessage.messages$.pipe((0,P1.Q)(this.unSub)).subscribe(c=>{"CloseFeedback"===c.type&&(this.feedback=!1),this.checkIfLogged()})}getCurrentThemeData(){this.themeService.currentTheme$.pipe((0,P1.Q)(this.unSub)).subscribe(c=>{this.isDomeTheme="DOME"===(c?.name||"").toUpperCase(),this.footerLinks=c?.links?.footerLinks||[],this.defaultFooterLinks=this.footerLinks.flatMap(n=>n.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(n){return new(n||t)(e.rXU(Hk),e.rXU(C2.s),e.rXU(j2),e.rXU(N2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,zG2,17,1,"footer",0)(1,vG2,9,1)(2,kG2,3,6,"feedback-modal",1),2&n&&(e.vxM(0,l.isDomeTheme?0:1),e.R7$(2),e.vxM(2,l.feedback?2:-1))},dependencies:[L.YU,X2.aY,Qv1,NH,s1.D9]})}}return t})();const SG2=function(){function t(a,c){void 0===c&&(c=[]),this._eventType=a,this._eventFunctions=c}return t.prototype.init=function(){var a=this;this._eventFunctions.forEach(function(c){typeof window<"u"&&window.addEventListener(a._eventType,c)})},t}();var EH=function(){return EH=Object.assign||function(t){for(var a,c=1,n=arguments.length;c"u")&&(t instanceof ic(t).ShadowRoot||t instanceof ShadowRoot)}typeof window<"u"&&(window.Dismiss=Uk1,window.initDismisses=Ld1);var Xy=Math.max,IH=Math.min,Gk=Math.round;function zd1(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function Hk1(){return!/^((?!chrome|android).)*safari/i.test(zd1())}function Yk(t,a,c){void 0===a&&(a=!1),void 0===c&&(c=!1);var n=t.getBoundingClientRect(),l=1,r=1;a&&k7(t)&&(l=t.offsetWidth>0&&Gk(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Gk(n.height)/t.offsetHeight||1);var z=(qy(t)?ic(t):window).visualViewport,F=!Hk1()&&c,I=(n.left+(F&&z?z.offsetLeft:0))/l,J=(n.top+(F&&z?z.offsetTop:0))/r,d1=n.width/l,i1=n.height/r;return{width:d1,height:i1,top:J,right:I+d1,bottom:J+i1,left:I,x:I,y:J}}function Md1(t){var a=ic(t);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function zs(t){return t?(t.nodeName||"").toLowerCase():null}function jL(t){return((qy(t)?t.ownerDocument:t.document)||window.document).documentElement}function xd1(t){return Yk(jL(t)).left+Md1(t).scrollLeft}function Kd(t){return ic(t).getComputedStyle(t)}function bd1(t){var a=Kd(t);return/auto|scroll|overlay|hidden/.test(a.overflow+a.overflowY+a.overflowX)}function TG2(t,a,c){void 0===c&&(c=!1);var n=k7(a),l=k7(a)&&function DG2(t){var a=t.getBoundingClientRect(),c=Gk(a.width)/t.offsetWidth||1,n=Gk(a.height)/t.offsetHeight||1;return 1!==c||1!==n}(a),r=jL(a),m=Yk(t,l,c),z={scrollLeft:0,scrollTop:0},F={x:0,y:0};return(n||!n&&!c)&&(("body"!==zs(a)||bd1(r))&&(z=function EG2(t){return t!==ic(t)&&k7(t)?function NG2(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):Md1(t)}(a)),k7(a)?((F=Yk(a,!0)).x+=a.clientLeft,F.y+=a.clientTop):r&&(F.x=xd1(r))),{x:m.left+z.scrollLeft-F.x,y:m.top+z.scrollTop-F.y,width:m.width,height:m.height}}function yd1(t){var a=Yk(t),c=t.offsetWidth,n=t.offsetHeight;return Math.abs(a.width-c)<=1&&(c=a.width),Math.abs(a.height-n)<=1&&(n=a.height),{x:t.offsetLeft,y:t.offsetTop,width:c,height:n}}function PH(t){return"html"===zs(t)?t:t.assignedSlot||t.parentNode||(Cd1(t)?t.host:null)||jL(t)}function Gk1(t){return["html","body","#document"].indexOf(zs(t))>=0?t.ownerDocument.body:k7(t)&&bd1(t)?t:Gk1(PH(t))}function zE(t,a){var c;void 0===a&&(a=[]);var n=Gk1(t),l=n===(null==(c=t.ownerDocument)?void 0:c.body),r=ic(n),m=l?[r].concat(r.visualViewport||[],bd1(n)?n:[]):n,z=a.concat(m);return l?z:z.concat(zE(PH(m)))}function RG2(t){return["table","td","th"].indexOf(zs(t))>=0}function Yk1(t){return k7(t)&&"fixed"!==Kd(t).position?t.offsetParent:null}function ME(t){for(var a=ic(t),c=Yk1(t);c&&RG2(c)&&"static"===Kd(c).position;)c=Yk1(c);return c&&("html"===zs(c)||"body"===zs(c)&&"static"===Kd(c).position)?a:c||function AG2(t){var a=/firefox/i.test(zd1());if(/Trident/i.test(zd1())&&k7(t)&&"fixed"===Kd(t).position)return null;var l=PH(t);for(Cd1(l)&&(l=l.host);k7(l)&&["html","body"].indexOf(zs(l))<0;){var r=Kd(l);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||a&&"filter"===r.willChange||a&&r.filter&&"none"!==r.filter)return l;l=l.parentNode}return null}(t)||a}var b5="top",w7="bottom",S7="right",y5="left",xE=[b5,w7,S7,y5],qk="start",bE="end",qk1="viewport",yE="popper",Xk1=xE.reduce(function(t,a){return t.concat([a+"-"+qk,a+"-"+bE])},[]),Wk1=[].concat(xE,["auto"]).reduce(function(t,a){return t.concat([a,a+"-"+qk,a+"-"+bE])},[]),qG2=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function XG2(t){var a=new Map,c=new Set,n=[];function l(r){c.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(z){if(!c.has(z)){var F=a.get(z);F&&l(F)}}),n.push(r)}return t.forEach(function(r){a.set(r.name,r)}),t.forEach(function(r){c.has(r.name)||l(r)}),n}function JG2(t){var a;return function(){return a||(a=new Promise(function(c){Promise.resolve().then(function(){a=void 0,c(t())})})),a}}var Jk1={placement:"bottom",modifiers:[],strategy:"absolute"};function Qk1(){for(var t=arguments.length,a=new Array(t),c=0;c=0?"x":"y"}function Zk1(t){var F,a=t.reference,c=t.element,n=t.placement,l=n?Ms(n):null,r=n?Xk(n):null,m=a.x+a.width/2-c.width/2,z=a.y+a.height/2-c.height/2;switch(l){case b5:F={x:m,y:a.y-c.height};break;case w7:F={x:m,y:a.y+a.height};break;case S7:F={x:a.x+a.width,y:z};break;case y5:F={x:a.x-c.width,y:z};break;default:F={x:a.x,y:a.y}}var I=l?vd1(l):null;if(null!=I){var J="y"===I?"height":"width";switch(r){case qk:F[I]=F[I]-(a[J]/2-c[J]/2);break;case bE:F[I]=F[I]+(a[J]/2-c[J]/2)}}return F}var nY2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kk1(t){var a,c=t.popper,n=t.popperRect,l=t.placement,r=t.variation,m=t.offsets,z=t.position,F=t.gpuAcceleration,I=t.adaptive,J=t.roundOffsets,d1=t.isFixed,i1=m.x,N1=void 0===i1?0:i1,J1=m.y,u2=void 0===J1?0:J1,F2="function"==typeof J?J({x:N1,y:u2}):{x:N1,y:u2};N1=F2.x,u2=F2.y;var U2=m.hasOwnProperty("x"),R0=m.hasOwnProperty("y"),r4=y5,V0=b5,e4=window;if(I){var a0=ME(c),G2="clientHeight",t6="clientWidth";a0===ic(c)&&"static"!==Kd(a0=jL(c)).position&&"absolute"===z&&(G2="scrollHeight",t6="scrollWidth"),(l===b5||(l===y5||l===S7)&&r===bE)&&(V0=w7,u2-=(d1&&a0===e4&&e4.visualViewport?e4.visualViewport.height:a0[G2])-n.height,u2*=F?1:-1),l!==y5&&(l!==b5&&l!==w7||r!==bE)||(r4=S7,N1-=(d1&&a0===e4&&e4.visualViewport?e4.visualViewport.width:a0[t6])-n.width,N1*=F?1:-1)}var Ke,Oe=Object.assign({position:z},I&&nY2),k9=!0===J?function lY2(t,a){var n=t.y,l=a.devicePixelRatio||1;return{x:Gk(t.x*l)/l||0,y:Gk(n*l)/l||0}}({x:N1,y:u2},ic(c)):{x:N1,y:u2};return N1=k9.x,u2=k9.y,Object.assign({},Oe,F?((Ke={})[V0]=R0?"0":"",Ke[r4]=U2?"0":"",Ke.transform=(e4.devicePixelRatio||1)<=1?"translate("+N1+"px, "+u2+"px)":"translate3d("+N1+"px, "+u2+"px, 0)",Ke):((a={})[V0]=R0?u2+"px":"",a[r4]=U2?N1+"px":"",a.transform="",a))}var mY2={left:"right",right:"left",bottom:"top",top:"bottom"};function jH(t){return t.replace(/left|right|bottom|top/g,function(a){return mY2[a]})}var pY2={start:"end",end:"start"};function ew1(t){return t.replace(/start|end/g,function(a){return pY2[a]})}function cw1(t,a){var c=a.getRootNode&&a.getRootNode();if(t.contains(a))return!0;if(c&&Cd1(c)){var n=a;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function kd1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tw1(t,a,c){return a===qk1?kd1(function hY2(t,a){var c=ic(t),n=jL(t),l=c.visualViewport,r=n.clientWidth,m=n.clientHeight,z=0,F=0;if(l){r=l.width,m=l.height;var I=Hk1();(I||!I&&"fixed"===a)&&(z=l.offsetLeft,F=l.offsetTop)}return{width:r,height:m,x:z+xd1(t),y:F}}(t,c)):qy(a)?function _Y2(t,a){var c=Yk(t,!1,"fixed"===a);return c.top=c.top+t.clientTop,c.left=c.left+t.clientLeft,c.bottom=c.top+t.clientHeight,c.right=c.left+t.clientWidth,c.width=t.clientWidth,c.height=t.clientHeight,c.x=c.left,c.y=c.top,c}(a,c):kd1(function gY2(t){var a,c=jL(t),n=Md1(t),l=null==(a=t.ownerDocument)?void 0:a.body,r=Xy(c.scrollWidth,c.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),m=Xy(c.scrollHeight,c.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),z=-n.scrollLeft+xd1(t),F=-n.scrollTop;return"rtl"===Kd(l||c).direction&&(z+=Xy(c.clientWidth,l?l.clientWidth:0)-r),{width:r,height:m,x:z,y:F}}(jL(t)))}function lw1(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function sw1(t,a){return a.reduce(function(c,n){return c[n]=t,c},{})}function FE(t,a){void 0===a&&(a={});var n=a.placement,l=void 0===n?t.placement:n,r=a.strategy,m=void 0===r?t.strategy:r,z=a.boundary,F=void 0===z?"clippingParents":z,I=a.rootBoundary,J=void 0===I?qk1:I,d1=a.elementContext,i1=void 0===d1?yE:d1,N1=a.altBoundary,J1=void 0!==N1&&N1,u2=a.padding,F2=void 0===u2?0:u2,U2=lw1("number"!=typeof F2?F2:sw1(F2,xE)),r4=t.rects.popper,V0=t.elements[J1?i1===yE?"reference":yE:i1],e4=function CY2(t,a,c,n){var l="clippingParents"===a?function LY2(t){var a=zE(PH(t)),n=["absolute","fixed"].indexOf(Kd(t).position)>=0&&k7(t)?ME(t):t;return qy(n)?a.filter(function(l){return qy(l)&&cw1(l,n)&&"body"!==zs(l)}):[]}(t):[].concat(a),r=[].concat(l,[c]),z=r.reduce(function(F,I){var J=tw1(t,I,n);return F.top=Xy(J.top,F.top),F.right=IH(J.right,F.right),F.bottom=IH(J.bottom,F.bottom),F.left=Xy(J.left,F.left),F},tw1(t,r[0],n));return z.width=z.right-z.left,z.height=z.bottom-z.top,z.x=z.left,z.y=z.top,z}(qy(V0)?V0:V0.contextElement||jL(t.elements.popper),F,J,m),a0=Yk(t.elements.reference),G2=Zk1({reference:a0,element:r4,strategy:"absolute",placement:l}),t6=kd1(Object.assign({},r4,G2)),D6=i1===yE?t6:a0,S8={top:e4.top-D6.top+U2.top,bottom:D6.bottom-e4.bottom+U2.bottom,left:e4.left-D6.left+U2.left,right:D6.right-e4.right+U2.right},Oe=t.modifiersData.offset;if(i1===yE&&Oe){var k9=Oe[l];Object.keys(S8).forEach(function(Ke){var Ky=[S7,w7].indexOf(Ke)>=0?1:-1,eF=[b5,w7].indexOf(Ke)>=0?"y":"x";S8[Ke]+=k9[eF]*Ky})}return S8}function vE(t,a,c){return Xy(t,IH(a,c))}function aw1(t,a,c){return void 0===c&&(c={x:0,y:0}),{top:t.top-a.height-c.y,right:t.right-a.width+c.x,bottom:t.bottom-a.height+c.y,left:t.left-a.width-c.x}}function ow1(t){return[b5,S7,w7,y5].some(function(a){return t[a]>=0})}var wd1=ZG2({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function KG2(t){var a=t.state,c=t.instance,n=t.options,l=n.scroll,r=void 0===l||l,m=n.resize,z=void 0===m||m,F=ic(a.elements.popper),I=[].concat(a.scrollParents.reference,a.scrollParents.popper);return r&&I.forEach(function(J){J.addEventListener("scroll",c.update,$H)}),z&&F.addEventListener("resize",c.update,$H),function(){r&&I.forEach(function(J){J.removeEventListener("scroll",c.update,$H)}),z&&F.removeEventListener("resize",c.update,$H)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function cY2(t){var a=t.state;a.modifiersData[t.name]=Zk1({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function sY2(t){var a=t.state,c=t.options,n=c.gpuAcceleration,l=void 0===n||n,r=c.adaptive,m=void 0===r||r,z=c.roundOffsets,F=void 0===z||z,I={placement:Ms(a.placement),variation:Xk(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,Kk1(Object.assign({},I,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:m,roundOffsets:F})))),null!=a.modifiersData.arrow&&(a.styles.arrow=Object.assign({},a.styles.arrow,Kk1(Object.assign({},I,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:F})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function oY2(t){var a=t.state;Object.keys(a.elements).forEach(function(c){var n=a.styles[c]||{},l=a.attributes[c]||{},r=a.elements[c];!k7(r)||!zs(r)||(Object.assign(r.style,n),Object.keys(l).forEach(function(m){var z=l[m];!1===z?r.removeAttribute(m):r.setAttribute(m,!0===z?"":z)}))})},effect:function iY2(t){var a=t.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(n){var l=a.elements[n],r=a.attributes[n]||{},z=Object.keys(a.styles.hasOwnProperty(n)?a.styles[n]:c[n]).reduce(function(F,I){return F[I]="",F},{});!k7(l)||!zs(l)||(Object.assign(l.style,z),Object.keys(r).forEach(function(F){l.removeAttribute(F)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function fY2(t){var a=t.state,n=t.name,l=t.options.offset,r=void 0===l?[0,0]:l,m=Wk1.reduce(function(J,d1){return J[d1]=function dY2(t,a,c){var n=Ms(t),l=[y5,b5].indexOf(n)>=0?-1:1,r="function"==typeof c?c(Object.assign({},a,{placement:t})):c,m=r[0],z=r[1];return m=m||0,z=(z||0)*l,[y5,S7].indexOf(n)>=0?{x:z,y:m}:{x:m,y:z}}(d1,a.rects,r),J},{}),z=m[a.placement],I=z.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=z.x,a.modifiersData.popperOffsets.y+=I),a.modifiersData[n]=m}},{name:"flip",enabled:!0,phase:"main",fn:function xY2(t){var a=t.state,c=t.options,n=t.name;if(!a.modifiersData[n]._skip){for(var l=c.mainAxis,r=void 0===l||l,m=c.altAxis,z=void 0===m||m,F=c.fallbackPlacements,I=c.padding,J=c.boundary,d1=c.rootBoundary,i1=c.altBoundary,N1=c.flipVariations,J1=void 0===N1||N1,u2=c.allowedAutoPlacements,F2=a.options.placement,U2=Ms(F2),r4=F||(U2!==F2&&J1?function MY2(t){if("auto"===Ms(t))return[];var a=jH(t);return[ew1(t),a,ew1(a)]}(F2):[jH(F2)]),V0=[F2].concat(r4).reduce(function(ow,qL){return ow.concat("auto"===Ms(qL)?function zY2(t,a){void 0===a&&(a={});var l=a.boundary,r=a.rootBoundary,m=a.padding,z=a.flipVariations,F=a.allowedAutoPlacements,I=void 0===F?Wk1:F,J=Xk(a.placement),d1=J?z?Xk1:Xk1.filter(function(J1){return Xk(J1)===J}):xE,i1=d1.filter(function(J1){return I.indexOf(J1)>=0});0===i1.length&&(i1=d1);var N1=i1.reduce(function(J1,u2){return J1[u2]=FE(t,{placement:u2,boundary:l,rootBoundary:r,padding:m})[Ms(u2)],J1},{});return Object.keys(N1).sort(function(J1,u2){return N1[J1]-N1[u2]})}(a,{placement:qL,boundary:J,rootBoundary:d1,padding:I,flipVariations:J1,allowedAutoPlacements:u2}):qL)},[]),e4=a.rects.reference,a0=a.rects.popper,G2=new Map,t6=!0,D6=V0[0],S8=0;S8=0,eF=Ky?"width":"height",dc=FE(a,{placement:Oe,boundary:J,rootBoundary:d1,altBoundary:i1,padding:I}),w9=Ky?Ke?S7:y5:Ke?w7:b5;e4[eF]>a0[eF]&&(w9=jH(w9));var _G=jH(w9),cF=[];if(r&&cF.push(dc[k9]<=0),z&&cF.push(dc[w9]<=0,dc[_G]<=0),cF.every(function(ow){return ow})){D6=Oe,t6=!1;break}G2.set(Oe,cF)}if(t6)for(var uf1=function(qL){var OE=V0.find(function(zG){var tF=G2.get(zG);if(tF)return tF.slice(0,qL).every(function(mf1){return mf1})});if(OE)return D6=OE,"break"},jE=J1?3:1;jE>0&&"break"!==uf1(jE);jE--);a.placement!==D6&&(a.modifiersData[n]._skip=!0,a.placement=D6,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function vY2(t){var a=t.state,c=t.options,n=t.name,l=c.mainAxis,r=void 0===l||l,m=c.altAxis,z=void 0!==m&&m,i1=c.tether,N1=void 0===i1||i1,J1=c.tetherOffset,u2=void 0===J1?0:J1,F2=FE(a,{boundary:c.boundary,rootBoundary:c.rootBoundary,padding:c.padding,altBoundary:c.altBoundary}),U2=Ms(a.placement),R0=Xk(a.placement),r4=!R0,V0=vd1(U2),e4=function yY2(t){return"x"===t?"y":"x"}(V0),a0=a.modifiersData.popperOffsets,G2=a.rects.reference,t6=a.rects.popper,D6="function"==typeof u2?u2(Object.assign({},a.rects,{placement:a.placement})):u2,S8="number"==typeof D6?{mainAxis:D6,altAxis:D6}:Object.assign({mainAxis:0,altAxis:0},D6),Oe=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,k9={x:0,y:0};if(a0){if(r){var Ke,Ky="y"===V0?b5:y5,eF="y"===V0?w7:S7,dc="y"===V0?"height":"width",w9=a0[V0],_G=w9+F2[Ky],cF=w9-F2[eF],LG=N1?-t6[dc]/2:0,uf1=R0===qk?G2[dc]:t6[dc],jE=R0===qk?-t6[dc]:-G2[dc],CG=a.elements.arrow,ow=N1&&CG?yd1(CG):{width:0,height:0},qL=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},OE=qL[Ky],zG=qL[eF],tF=vE(0,G2[dc],ow[dc]),mf1=r4?G2[dc]/2-LG-tF-OE-S8.mainAxis:uf1-tF-OE-S8.mainAxis,wb0=r4?-G2[dc]/2+LG+tF+zG+S8.mainAxis:jE+tF+zG+S8.mainAxis,pf1=a.elements.arrow&&ME(a.elements.arrow),Sb0=pf1?"y"===V0?pf1.clientTop||0:pf1.clientLeft||0:0,hE1=null!=(Ke=Oe?.[V0])?Ke:0,Eb0=w9+wb0-hE1,gE1=vE(N1?IH(_G,w9+mf1-hE1-Sb0):_G,w9,N1?Xy(cF,Eb0):cF);a0[V0]=gE1,k9[V0]=gE1-w9}if(z){var _E1,nF=a0[e4],MG="y"===e4?"height":"width",LE1=nF+F2["x"===V0?b5:y5],CE1=nF-F2["x"===V0?w7:S7],hf1=-1!==[b5,y5].indexOf(U2),zE1=null!=(_E1=Oe?.[e4])?_E1:0,ME1=hf1?LE1:nF-G2[MG]-t6[MG]-zE1+S8.altAxis,xE1=hf1?nF+G2[MG]+t6[MG]-zE1-S8.altAxis:CE1,bE1=N1&&hf1?function FY2(t,a,c){var n=vE(t,a,c);return n>c?c:n}(ME1,nF,xE1):vE(N1?ME1:LE1,nF,N1?xE1:CE1);a0[e4]=bE1,k9[e4]=bE1-nF}a.modifiersData[n]=k9}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function SY2(t){var a,c=t.state,n=t.name,l=t.options,r=c.elements.arrow,m=c.modifiersData.popperOffsets,z=Ms(c.placement),F=vd1(z),J=[y5,S7].indexOf(z)>=0?"height":"width";if(r&&m){var d1=function(a,c){return lw1("number"!=typeof(a="function"==typeof a?a(Object.assign({},c.rects,{placement:c.placement})):a)?a:sw1(a,xE))}(l.padding,c),i1=yd1(r),N1="y"===F?b5:y5,J1="y"===F?w7:S7,u2=c.rects.reference[J]+c.rects.reference[F]-m[F]-c.rects.popper[J],F2=m[F]-c.rects.reference[F],U2=ME(r),R0=U2?"y"===F?U2.clientHeight||0:U2.clientWidth||0:0,a0=R0/2-i1[J]/2+(u2/2-F2/2),G2=vE(d1[N1],a0,R0-i1[J]-d1[J1]);c.modifiersData[n]=((a={})[F]=G2,a.centerOffset=G2-a0,a)}},effect:function NY2(t){var a=t.state,n=t.options.element,l=void 0===n?"[data-popper-arrow]":n;null!=l&&("string"==typeof l&&!(l=a.elements.popper.querySelector(l))||cw1(a.elements.popper,l)&&(a.elements.arrow=l))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function DY2(t){var a=t.state,c=t.name,n=a.rects.reference,l=a.rects.popper,r=a.modifiersData.preventOverflow,m=FE(a,{elementContext:"reference"}),z=FE(a,{altBoundary:!0}),F=aw1(m,n),I=aw1(z,l,r),J=ow1(F),d1=ow1(I);a.modifiersData[c]={referenceClippingOffsets:F,popperEscapeOffsets:I,isReferenceHidden:J,hasPopperEscaped:d1},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":J,"data-popper-escaped":d1})}}]}),OL=function(){return OL=Object.assign||function(t){for(var a,c=1,n=arguments.length;cconsole.log(c),error:c=>console.error(c),complete:()=>console.info("complete")})}logout(){let a=`${x9.BASE_URL}/logout`;return console.log("-- logout --"),(0,V2.s)(this.http.get(a))}static{this.\u0275fac=function(c){return new(c||x9)(e.KVO(g.Qq),e.KVO(C2.s))}}static{this.\u0275prov=e.jDH({token:x9,factory:x9.\u0275fac,providedIn:"root"})}}let jY2=(()=>{class t{constructor(){}get intervalId(){return this._intervalId}set intervalId(c){this._intervalId=c}fetchServer(c,n,l,r){let z=new URL(window.location.href).origin;fetch(`${h1.c.BASE_URL}${l}?state=${n}&callback_url=${z}`).then(F=>{400!==F.status&&500!==F.status?401!==F.status&&(this.stopChecking(c),c.close(),r(F)):this.stopChecking(c)}).catch(F=>{this.stopChecking(c)})}poll(c,n,l,r){null!=c&&(this.intervalId=window.setInterval(()=>{this.fetchServer(c,n,l,r)},1e3,c,n),window.setTimeout(z=>{this.stopChecking(z)},45e3,c))}launchPopup(c,n,l,r){window,window,window,window;window.innerWidth?window:document.documentElement.clientWidth?document:screen;const N1=(window.innerHeight?window:document.documentElement.clientHeight?document:screen,window,window.open(c,"_blank"));return N1?.focus(),N1}pollCertCredential(c,n){return new Promise((l,r)=>{this.poll(c,n,h1.c.SIOP_INFO.pollCertPath,function(){var m=(0,b1.A)(function*(z){let F=yield z.json();l(F)});return function(z){return m.apply(this,arguments)}}())})}pollServer(c,n){this.poll(c,n,h1.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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const OY2=["navbarbutton"],_w1=(t,a)=>a.id,Lw1=(t,a)=>a.label,Cw1=()=>({mobile:!1}),zw1=()=>({mobile:!0});function BY2(t,a){if(1&t&&e.nrm(0,"img",7),2&t){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 VY2(t,a){if(1&t&&(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&t){e.XpG();const c=e.sdS(37),n=e.sdS(39);e.R7$(3),e.Y8G("ngTemplateOutlet",c)("ngTemplateOutletContext",e.lJ4(4,zw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",n)("ngTemplateOutletContext",e.lJ4(5,zw1))}}function UY2(t,a){if(1&t){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("/my-offerings"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._offerings")," ")}}function HY2(t,a){if(1&t){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("/admin"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._admin")," ")}}function GY2(t,a){if(1&t){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("/quote-list"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Quotes "),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function YY2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",42),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&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function qY2(t,a){if(1&t){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&t){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faRuler)}}function XY2(t,a){if(1&t&&(e.j41(0,"button",37),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function WY2(t,a){if(1&t){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,UY2,5,4,"li")(14,HY2,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,GY2,4,1,"li")(21,YY2,4,1,"li"),e.j41(22,"li")(23,"a",34),e.nrm(24,"fa-icon",21),e.EFF(25,"Analytics "),e.k0s()(),e.DNE(26,qY2,4,1,"li"),e.j41(27,"li")(28,"button",35),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/product-inventory"))}),e.nrm(29,"fa-icon",21),e.EFF(30),e.nI1(31,"translate"),e.k0s()(),e.j41(32,"li")(33,"button",36),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/checkout"))}),e.nrm(34,"fa-icon",21),e.EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.nrm(37,"div",31),e.j41(38,"div",19),e.DNE(39,XY2,4,4,"button",37),e.j41(40,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.logout())}),e.nrm(41,"fa-icon",21),e.EFF(42),e.nI1(43,"translate"),e.k0s()()()}if(2&t){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,20,"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,22,"HEADER._orders")," "),e.R7$(2),e.vxM(20,c.quotesEnabled?20:-1),e.R7$(),e.vxM(21,c.tenderEnabled?21:-1),e.R7$(2),e.Y8G("href",c.analytics,e.B4B),e.R7$(),e.Y8G("icon",c.faPieChart),e.R7$(2),e.vxM(26,c.roles.includes(c.sellerRole)?26:-1),e.R7$(3),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(31,24,"HEADER._inventory")," "),e.R7$(4),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(36,26,"HEADER._cart")," "),e.R7$(4),e.vxM(39,c.orgs.length>0&&c.isAdmin?39:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(43,28,"HEADER._sign_out")," ")}}function JY2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,r=e.XpG();return r.changeSession(l,!1),e.Njj(r.hideDropdown("orgs-dropdown"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.k0s()()}if(2&t){const c=e.XpG().$implicit,n=e.XpG();e.R7$(2),e.Y8G("icon",n.faUsers),e.R7$(),e.SpI("",c.name," ")}}function QY2(t,a){if(1&t&&e.DNE(0,JY2,4,2,"li"),2&t){const c=a.$implicit,n=e.XpG();e.vxM(0,c.id!=(null==n.loginInfo?null:n.loginInfo.logged_as)||(null==n.loginInfo?null:n.loginInfo.logged_as)==(null==n.loginInfo?null:n.loginInfo.id)?0:-1)}}function ZY2(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(2),e.Y8G("icon",c.faUser),e.R7$(),e.SpI("",null==c.loginInfo?null:c.loginInfo.user," ")}}function KY2(t,a){if(1&t&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function eq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(3).$implicit,m=e.XpG(2);return e.Njj(m.goTo(l.url,r.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.BMQ("data-cy","/search"===c.url?"browseServices":"/catalogues"===c.url?"browseCatalogs":null),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function cq2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,KY2,3,4,"a",20)(2,eq2,3,4),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function tq2(t,a){if(1&t&&(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,cq2,3,1,"li",null,Lw1),e.k0s()()()),2&t){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 nq2(t,a){if(1&t&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function lq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(3).$implicit,m=e.XpG(2);return e.Njj(m.goTo(l.url,r.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function sq2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,nq2,3,4,"a",50)(2,lq2,3,3),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function aq2(t,a){if(1&t&&e.Z7z(0,sq2,3,1,"li",null,Lw1),2&t){const c=e.XpG(2).$implicit;e.Dyx(c.children)}}function oq2(t,a){if(1&t&&e.DNE(0,tq2,10,8,"li",45)(1,aq2,2,0),2&t){const c=e.XpG(2).mobile;e.vxM(0,c?1:0)}}function iq2(t,a){if(1&t&&(e.j41(0,"a",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(3).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function rq2(t,a){if(1&t&&(e.j41(0,"a",53),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){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 dq2(t,a){if(1&t&&e.DNE(0,iq2,3,4,"a",52)(1,rq2,3,5),2&t){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function fq2(t,a){if(1&t&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(3).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function uq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3).$implicit,r=e.XpG(2);return e.Njj(r.goTo(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG(3).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function mq2(t,a){if(1&t&&e.DNE(0,fq2,3,4,"a",50)(1,uq2,3,3),2&t){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function pq2(t,a){if(1&t&&(e.j41(0,"li"),e.DNE(1,dq2,2,1)(2,mq2,2,1),e.k0s()),2&t){const c=e.XpG(2).mobile;e.R7$(),e.vxM(1,c?2:1)}}function hq2(t,a){if(1&t&&e.DNE(0,oq2,2,1)(1,pq2,3,1),2&t){const c=a.$implicit;e.vxM(0,null!=c.children&&c.children.length?0:1)}}function gq2(t,a){if(1&t&&e.Z7z(0,hq2,2,1,null,null,_w1),2&t){const c=e.XpG();e.Dyx(c.headerLinks)}}function _q2(t,a){if(1&t){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&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function Lq2(t,a){if(1&t){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&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function Cq2(t,a){if(1&t&&e.DNE(0,_q2,3,3,"button",55)(1,Lq2,3,3),2&t){const c=e.XpG(2).mobile;e.vxM(0,c?0:1)}}function zq2(t,a){if(1&t){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 Mq2(t,a){if(1&t){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 xq2(t,a){if(1&t&&e.DNE(0,Cq2,2,1)(1,zq2,2,0,"button",54)(2,Mq2,2,0),2&t){const c=e.XpG().mobile,n=e.XpG();e.vxM(0,"DOME"===n.providerThemeName?0:-1),e.R7$(),e.vxM(1,c?1:2)}}function bq2(t,a){if(1&t&&e.nrm(0,"fa-layers-counter",62),2&t){const c=e.XpG(4);e.Y8G("content",c.cartCount.toString())}}function yq2(t,a){if(1&t){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,bq2,1,1,"fa-layers-counter",62),e.k0s()(),e.j41(4,"div",63)(5,"span",64),e.EFF(6),e.k0s()()}if(2&t){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 Fq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._offerings")," ")}}function vq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._admin")," ")}}function kq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function wq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function Sq2(t,a){if(1&t){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&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faRuler)}}function Nq2(t,a){if(1&t&&(e.j41(0,"button",71),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function Eq2(t,a){if(1&t){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,Fq2,4,4,"button",71)(13,vq2,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,kq2,3,1,"button",71)(19,wq2,3,1,"button",71),e.j41(20,"a",50),e.nrm(21,"fa-icon",21),e.EFF(22,"Analytics "),e.k0s(),e.DNE(23,Sq2,3,1,"button",71),e.j41(24,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/product-inventory"))}),e.nrm(25,"fa-icon",21),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/checkout"))}),e.nrm(29,"fa-icon",21),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"a",50),e.nrm(33,"fa-icon",21),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"a",50),e.nrm(37,"fa-icon",21),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.DNE(40,Nq2,4,4,"button",71),e.j41(41,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.logout())}),e.nrm(42,"fa-icon",21),e.EFF(43),e.nI1(44,"translate"),e.k0s()}if(2&t){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,27,"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,29,"HEADER._orders")," "),e.R7$(2),e.vxM(18,c.quotesEnabled?18:-1),e.R7$(),e.vxM(19,c.tenderEnabled?19:-1),e.R7$(),e.Y8G("href",c.analytics,e.B4B),e.R7$(),e.Y8G("icon",c.faPieChart),e.R7$(2),e.vxM(23,c.roles.includes(c.sellerRole)?23:-1),e.R7$(2),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(27,31,"HEADER._inventory")," "),e.R7$(3),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(31,33,"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(35,35,"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(39,37,"HEADER._ticketing")," "),e.R7$(2),e.vxM(40,c.orgs.length>0&&c.isAdmin?40:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(44,39,"HEADER._sign_out")," ")}}function Dq2(t,a){if(1&t&&e.DNE(0,yq2,7,4)(1,Eq2,45,41),2&t){const c=e.XpG().mobile;e.vxM(0,c?1:0)}}function Tq2(t,a){if(1&t&&e.DNE(0,xq2,3,2)(1,Dq2,2,1),2&t){const c=e.XpG();e.vxM(0,c.is_logged?1:0)}}function Rq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",23)(1,"app-cart-drawer",72),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()()}}let Mw1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.translate=c,this.localStorage=n,this.api=l,this.loginService=r,this.cdr=m,this.route=z,this.eventMessage=F,this.router=I,this.qrVerifier=J,this.themeService=d1,this.sc=i1,this.providerThemeName=h1.c.providerThemeName,this.quotesEnabled=h1.c.QUOTES_ENABLED,this.tenderEnabled=h1.c.TENDER_ENABLED,this.knowledge=h1.c.KNOWLEDGE_BASE_URL,this.knowledge_onboarding=h1.c.KB_ONBOARDING_GUIDELINES_URL,this.knowledge_guidelines=h1.c.KB_GUIDELNES_URL,this.registration=h1.c.REGISTRATION_FORM_URL,this.ticketing=h1.c.TICKETING_SYSTEM_URL,this.analytics=h1.c.analytics,this.domeAbout=h1.c.DOME_ABOUT_LINK,this.domePublish=h1.c.DOME_PUBLISH_LINK,this.sellerRole=h1.c.SELLER_ROLE,this.orgAdminRole=h1.c.ORG_ADMIN_ROLE,this.certifierRole=h1.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 z1.yU,this.destroy$=new S.B,this.faCartShopping=AL,this.faHandHoldingBox=Af1,this.faAddressCard=oc,this.faArrowRightFromBracket=Xe,this.faBoxesStacked=Hy,this.faClipboardCheck=qT,this.faBrain=qf1,this.faAnglesLeft=Ok,this.faUser=vi,this.faUsers=Om,this.faCogs=VV,this.faReceipt=vO,this.faRuler=AA,this.faPieChart=BD,this.faBars=bn,this.faArrowRight=sT}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(n=>{this.currentTheme=n,this.themeAuthUrls=n?.authUrls,this.headerLinks=this.resolveLinksEnv(n?.links?.headerLinks||[]),n?.links&&(n.links.headerLinks=this.headerLinks)}),this.hydrateLoginFromStorage(),this.sc.cart$.pipe((0,P1.Q)(this.destroy$)).subscribe(n=>{this.cartCount=n.length,this.cdr.detectChanges()}),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(n=>{"ToggleCartDrawer"===n.type&&(this.showCart=!1,this.cdr.detectChanges()),"LoginProcess"===n.type&&this.hydrateLoginFromStorage()}),S2()}ngAfterViewInit(){S2()}ngOnDestroy(){this.qrWindow?.close(),this.qrWindow=null,this.themeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}resolveLinksEnv(c){const n=l=>l.map(r=>{const m={...r};return r.environmentName&&(m.url=h1.c[r.environmentName]||""),r.children?.length&&(m.children=n(r.children)),m});return n(c)}hydrateLoginFromStorage(){const c=this.localStorage.getObject("login_items");if("{}"!==JSON.stringify(c))if(c.expire-H2().unix()-4<=0)this.resetLoginState();else{if(this.loginInfo=c,this.is_logged=!0,this.orgs=c.organizations??[],this.isAdmin=(c.roles??[]).some(n=>n.name===h1.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(n=>n.name);else{const n=this.orgs.find(l=>l.id===c.logged_as);this.loggedAsOrg=!0,this.username=n?.name??"",this.usercharacters=(this.username.slice(0,2)||"").toUpperCase(),this.email=n?.description??"",this.roles=(n?.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,n){this.closeUserDropdown(),n&&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,b1.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,n){this.closeUserDropdown();const l=this.localStorage.getObject("login_items");if("{}"===JSON.stringify(l))return;if(n)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 S2();const r=this.orgs[c];r&&(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:r.id},this.localStorage.setObject("login_items",this.loginInfo),this.eventMessage.emitChangedSession(this.loginInfo),this.hydrateLoginFromStorage(),S2())}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===h1.c.SIOP_INFO.enabled&&void 0===this.qrVerifier.intervalId){this.statePair=A4();let c=`${h1.c.SIOP_INFO.verifierHost}${h1.c.SIOP_INFO.verifierQRCodePath}?state=${this.statePair}&client_id=${h1.c.SIOP_INFO.clientID}`;if(h1.c.SIOP_INFO.isRedirection){const m=new URL(window.location.href),z=new URL(m.origin);return z.pathname=h1.c.SIOP_INFO.requestUri,c=`${c}&response_type=code&request_uri=${z.toString()}&scope=openid%20learcredential&nonce=${A4()}`,void(window.location.href=c)}const n=new URL(h1.c.SIOP_INFO.callbackURL),l=new URL(window.location.href);return l.pathname=n.pathname,l.search=n.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===h1.c.SIOP_INFO.enabled&&window.location.replace(`${h1.c.BASE_URL}/login`)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(s1.c$),e.rXU(C2.s),e.rXU(n0.F),e.rXU(x9),e.rXU(e.gRc),e.rXU(N2.nX),e.rXU(j2),e.rXU(N2.Ix),e.rXU(jY2),e.rXU(Hk),e.rXU(d8))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-header"]],viewQuery:function(n,l){if(1&n&&e.GBs(OY2,5),2&n){let r;e.mGM(r=e.lsd())&&(l.navbarbutton=r.first)}},hostBindings:function(n,l){1&n&&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","analytics","target","_blank",1,"dropdown-item",3,"href"],["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","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","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"],[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(n,l){if(1&n){const r=e.RV6();e.j41(0,"nav",3)(1,"div",4)(2,"div",5)(3,"a",6),e.bIt("click",function(){return e.eBV(r),e.Njj(l.goTo("/dashboard"))}),e.DNE(4,BY2,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(z){return e.eBV(r),l.toggleNavBar(),e.Njj(z.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,VY2,7,6,"div",16)(18,WY2,44,30,"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,QY2,1,1,null,null,_w1),e.DNE(35,ZY2,4,2,"li"),e.k0s()(),e.DNE(36,gq2,2,0,"ng-template",null,1,e.C5r)(38,Tq2,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(40,Rq2,2,0,"div",23)}if(2&n){const r=e.sdS(37),m=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",r)("ngTemplateOutletContext",e.lJ4(28,Cw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(29,Cw1)),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:[L.T3,X2.aY,X2.d0,X2.VA,N2.Wk,wu1,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 t})();function Aq2(t,a){1&t&&(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 Iq2(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(4),e.SpI(" ",c.errorMessage||"Error during the creation of the quote"," ")}}function Pq2(t,a){1&t&&(e.j41(0,"p",26),e.EFF(1,"Message is required (minimum 10 characters)"),e.k0s())}function $q2(t,a){1&t&&(e.j41(0,"p",26),e.EFF(1,"Request date is required"),e.k0s())}function jq2(t,a){if(1&t){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,Pq2,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,$q2,2,0,"p",26),e.k0s()()()}if(2&t){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 Oq2(t,a){if(1&t){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 Bq2(t,a){1&t&&(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 Vq2(t,a){1&t&&e.EFF(0," Send Request ")}function Uq2(t,a){if(1&t){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,Bq2,5,0,"span",32)(5,Vq2,1,0),e.k0s()()}if(2&t){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 $d1=(()=>{class t{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)(s3.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 n=this.quoteForm.get(c);return!(!n||!n.invalid||!n.dirty&&!n.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,n={customerMessage:c.customerMessage,customerIdRef:this.customerId,providerIdRef:this.orgInfo?.id||"",productOfferingId:this.productOff.id||this.productOff?.productSpecification?.id||""},l=new Date(c.requestDate),r=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log("Submitting quote request with data:",n),console.log("Request date:",r),this.quoteService.createQuoteFromRequest(n).pipe((0,A.n)(m=>{const z=m?.id;return console.log("Quote created successfully with ID:",z),z?(console.log("Updating quote with request date:",r),this.quoteService.updateQuoteDate(z,r,"requested")):(console.warn("No quote ID returned, skipping date update"),[m])})).subscribe({next:m=>{console.log("Quote creation and date update completed:",m),this.quoteCreated.emit(m),this.submitRequest.emit(n),this.isSubmitting=!1,this.showSuccessMessage=!0},error:m=>{console.error("Error creating quote or updating date:",m),this.isSubmitting=!1,this.showErrorMessage=!0,this.errorMessage=m?.error?.message||m?.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 n=this.quoteForm.get(c);n&&n.markAsTouched()}),this.customerId||(this.showErrorMessage=!0,this.errorMessage="Customer ID is required. Please log in first.")}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.bIt("click",function(m){return l.onBackdropClick(m)}),e.j41(1,"div",1),e.bIt("click",function(m){return m.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,Aq2,5,0,"div",8)(10,Iq2,5,1,"div",8)(11,jq2,28,10,"div",9),e.k0s(),e.j41(12,"div",10),e.DNE(13,Oq2,3,0,"div",11)(14,Uq2,6,2,"div",12),e.k0s()()()),2&n&&(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:[L.MD,p.YN,p.qT,p.me,p.BC,p.cb,p.X1,p.j4,p.JD],encapsulation:2})}}return t})();const Hq2=[L.MD,p.YN,p.X1,X2.dX,s1.h,g.q1,$d1];let HL=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({providers:[L.vh,s1.c$],imports:[Hq2,CE,L.MD,p.YN,p.X1,X2.dX,s1.h,g.q1]})}}return t})();const Gq2=(t,a)=>({"break-all":t,"break-words":a});function Yq2(t,a){if(1&t&&e.nrm(0,"markdown",30),2&t){const c=e.XpG();e.Y8G("ngClass",e.l_i(2,Gq2,c.hasLongWord(c.value,20),!c.hasLongWord(c.value,20)))("data",c.value)}}function qq2(t,a){if(1&t){const c=e.RV6();e.j41(0,"textarea",32),e.bIt("input",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.updateValue(l))}),e.k0s()}if(2&t){const c=e.XpG();e.FS9("placeholder",c.placeholder),e.Y8G("value",c.value)}}function Xq2(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.addEmoji(l))}),e.k0s()()}2&t&&(e.R7$(),e.Y8G("darkMode",!1))}let ge=(()=>{class t{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 n=c.target.value;this.value=n,this.onChange(n),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 n=document.getElementById("editor");if(!n)return;const l=n.selectionStart,r=n.selectionEnd,m=this.value.substring(0,l);let z=this.value.substring(l,r);const F=this.value.substring(r);switch(c){case"bold":z=`**${z||"bold text"}**`;break;case"italic":z=`*${z||"italic text"}*`;break;case"link":z=`[${z||"link text"}](http://)`;break;case"list":z=`- ${z||"list item"}`;break;case"orderedList":z=`1. ${z||"ordered item"}`;break;case"blockquote":z=`> ${z||"blockquote"}`;break;case"code":z=`\`${z||"inline code"}\``;break;case"codeBlock":z=`\`\`\`\n${z||"code block"}\n\`\`\``;break;case"table":z=`| Column 1 | Column 2 | Column 3 |\n|----------|----------|----------|\n| ${z||"data"} | data | data |`}this.value=m+z+F,this.onChange(this.value),setTimeout(()=>{n.selectionStart=n.selectionEnd=l+z.length,n.focus()},0)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-markdown-textarea"]],hostBindings:function(n,l){1&n&&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)(()=>t),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(n,l){1&n&&(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(m){return l.showEmoji=!l.showEmoji,m.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,Yq2,1,5,"markdown",30)(69,qq2,1,2)(70,Xq2,2,1,"div",31),e.k0s()()),2&n&&(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:[T0,L.YU,I0,HL,s1.D9]})}}return t})();class b9{static{this.BASE_URL=h1.c.BASE_URL}constructor(a){this.http=a}uploadFile(a){return this.http.post(`${b9.BASE_URL}/charging/api/assetManagement/assets/uploadJob`,a)}static{this.\u0275fac=function(c){return new(c||b9)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:b9,factory:b9.\u0275fac,providedIn:"root"})}}function Wq2(t,a){1&t&&(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 Jq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"Use only lowercase letters, numbers and hyphens."),e.k0s())}function Qq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"This slug is already in use. Pick a different one."),e.k0s())}function Zq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"Meta description cannot exceed 160 characters."),e.k0s())}function Kq2(t,a){1&t&&(e.j41(0,"p",31),e.EFF(1,"Excerpt cannot exceed 300 characters."),e.k0s())}function eX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",43),e.nrm(1,"img",51),e.j41(2,"button",52),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeFeaturedImage())}),e.qSk(),e.j41(3,"svg",53),e.nrm(4,"path",54),e.k0s()()()}if(2&t){const c=e.XpG(2);e.R7$(),e.Y8G("src",c.getFeaturedImageUrl(),e.B4B)}}function cX2(t,a){1&t&&(e.j41(0,"p",47),e.EFF(1,"Uploading featured image..."),e.k0s())}function tX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",50)(1,"button",55),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",56),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&t){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",c.loading),e.R7$(2),e.Y8G("disabled",!c.canSubmit())}}function nX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",50)(1,"button",56),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&t){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",!c.canSubmit())}}function lX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",24)(1,"form",25)(2,"label",26),e.EFF(3,"Title"),e.k0s(),e.nrm(4,"input",27),e.j41(5,"label",28),e.EFF(6,"URL slug"),e.k0s(),e.nrm(7,"input",29),e.j41(8,"p",30),e.EFF(9),e.k0s(),e.DNE(10,Jq2,2,0,"p",31)(11,Qq2,2,0,"p",31),e.j41(12,"label",32),e.EFF(13,"Meta description (extract)"),e.k0s(),e.nrm(14,"textarea",33),e.j41(15,"p",30),e.EFF(16),e.k0s(),e.DNE(17,Zq2,2,0,"p",31),e.j41(18,"label",34),e.EFF(19,"Excerpt"),e.k0s(),e.nrm(20,"textarea",35),e.j41(21,"p",30),e.EFF(22),e.k0s(),e.DNE(23,Kq2,2,0,"p",31),e.j41(24,"label",36),e.EFF(25,"Tags"),e.k0s(),e.nrm(26,"input",37),e.j41(27,"p",30),e.EFF(28,"Separate tags with commas."),e.k0s(),e.j41(29,"label",38),e.EFF(30,"Author"),e.k0s(),e.nrm(31,"input",39),e.j41(32,"label",40),e.EFF(33,"Date"),e.k0s(),e.nrm(34,"input",41),e.j41(35,"p",30),e.EFF(36,"Optional. Leave empty to avoid sending a date."),e.k0s(),e.j41(37,"label",42),e.EFF(38,"Featured image"),e.k0s(),e.DNE(39,eX2,5,1,"div",43),e.j41(40,"div",44)(41,"input",45),e.bIt("change",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.onFeaturedImageSelected(l))}),e.k0s(),e.j41(42,"p",46),e.EFF(43,"Upload to media manager (max 3MB)"),e.k0s(),e.DNE(44,cX2,2,0,"p",47),e.k0s(),e.j41(45,"label",48),e.EFF(46,"Content"),e.k0s(),e.nrm(47,"app-markdown-textarea",49),e.k0s(),e.DNE(48,tX2,5,2,"div",50)(49,nX2,3,1),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("formGroup",c.entryForm),e.R7$(),e.Y8G("formGroup",c.entryForm),e.R7$(8),e.SpI("Blog URL preview: /blog/",c.entryForm.controls.slug.value||"my-blog-entry",""),e.R7$(),e.vxM(10,c.entryForm.controls.slug.touched&&c.entryForm.controls.slug.invalid?10:-1),e.R7$(),e.vxM(11,c.isSlugTaken()?11:-1),e.R7$(5),e.SpI("",(c.entryForm.controls.metaDescription.value||"").length,"/160"),e.R7$(),e.vxM(17,c.entryForm.controls.metaDescription.touched&&c.entryForm.controls.metaDescription.hasError("maxlength")?17:-1),e.R7$(5),e.SpI("",(c.entryForm.controls.excerpt.value||"").length,"/300"),e.R7$(),e.vxM(23,c.entryForm.controls.excerpt.touched&&c.entryForm.controls.excerpt.hasError("maxlength")?23:-1),e.R7$(16),e.vxM(39,c.getFeaturedImageUrl()?39:-1),e.R7$(2),e.Y8G("disabled",c.uploadingFeaturedImage),e.R7$(3),e.vxM(44,c.uploadingFeaturedImage?44:-1),e.R7$(4),e.vxM(48,c.blogId?48:49)}}function sX2(t,a){if(1&t&&(e.j41(0,"div",19)(1,"div",57)(2,"div",10),e.qSk(),e.j41(3,"svg",58),e.nrm(4,"path",59),e.k0s(),e.joV(),e.j41(5,"h3",60),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",61),e.EFF(8),e.k0s()()()),2&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let xw1=(()=>{class t{constructor(c,n,l,r,m){this.route=c,this.router=n,this.localStorage=l,this.domeBlogService=r,this.attachmentService=m,this.slugRegex=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.maxFileSize=h1.c.MAX_FILE_SIZE,this.entryForm=new p.gE({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}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(c.setupSlugHandlers(),c.blogId=c.route.snapshot.paramMap.get("id"),yield c.loadExistingEntries(),c.blogId){let n=yield c.domeBlogService.getBlogEntryById(c.blogId);c.entryForm.controls.title.setValue(n.title);const l=c.slugify(n.slug||n.title||"");c.entryForm.controls.slug.setValue(l,{emitEvent:!1}),c.entryForm.controls.featuredImage.setValue(c.extractFeaturedImageUrl(n.featuredImage)),c.entryForm.controls.metaDescription.setValue(n.metaDescription||""),c.entryForm.controls.excerpt.setValue(n.excerpt||""),c.entryForm.controls.tags.setValue(c.formatTagsForInput(n.tags)),c.entryForm.controls.author.setValue((n.author||"").toString().trim()),c.entryForm.controls.date.setValue(c.formatDateForInput(n.date)),c.slugManuallyEdited=l.length>0&&l!==c.slugify(n.title||""),c.entryForm.controls.content.setValue(n.content)}else c.entryForm.controls.slug.setValue(c.slugify(c.entryForm.value.title||""),{emitEvent:!1});c.initPartyInfo()})()}goBack(){this.router.navigate(["/blog"])}create(){var c=this;return(0,b1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const n=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let r={title:c.entryForm.value.title,slug:c.entryForm.value.slug,featuredImage:c.getFeaturedImageUrl(),metaDescription:c.entryForm.value.metaDescription,excerpt:c.entryForm.value.excerpt,tags:c.parseTagsFromForm(),partyId:c.partyId,author:n||c.name,content:c.entryForm.value.content};l&&(r.date=l),c.domeBlogService.createBlogEntry(r).subscribe({next:m=>{c.loading=!1,c.goBack()},error:m=>{console.error("There was an error while creating!",m),m.error.error?(console.log(m),c.errorMessage="Error: "+m.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,b1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const n=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let r={title:c.entryForm.value.title,slug:c.entryForm.value.slug,featuredImage:c.getFeaturedImageUrl(),metaDescription:c.entryForm.value.metaDescription,excerpt:c.entryForm.value.excerpt,tags:c.parseTagsFromForm(),content:c.entryForm.value.content};n&&(r.author=n),l&&(r.date=l);try{yield c.domeBlogService.updateBlogEntry(r,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,b1.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId,this.name=c.user;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,this.name=n.name}}loadExistingEntries(){var c=this;return(0,b1.A)(function*(){try{const n=yield c.domeBlogService.getBlogEntries();c.existingEntries=Array.isArray(n)?n:[]}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 n=this.slugify(c||"");c!==n&&this.entryForm.controls.slug.setValue(n,{emitEvent:!1});const l=this.slugify(this.entryForm.controls.title.value||"");this.slugManuallyEdited=n.length>0&&n!==l})}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||"");return!!c&&this.existingEntries.some(n=>this.slugify(n.slug||n.title||"")===c&&n._id!==this.blogId)}canSubmit(){return!this.loading&&!this.uploadingFeaturedImage&&this.entryForm.valid&&!this.isSlugTaken()}onFeaturedImageSelected(c){const n=c.target,l=n.files?.[0];if(!l)return;if(!l.type.startsWith("image/"))return this.showTemporaryError("File must have a valid image format!"),void(n.value="");if(l.size>this.maxFileSize)return this.showTemporaryError("File size must be under 3MB."),void(n.value="");const r=l.name.replace(/[^A-Za-z0-9_.-]/g,"_"),m=`blogcover_${Date.now()}_${r}`;if(!this.filenameRegex.test(m))return this.showTemporaryError("File name contains unsupported characters."),void(n.value="");const z=new FileReader;z.onload=F=>{const I=F.target?.result;if("string"!=typeof I||!I.includes(","))return this.showTemporaryError("There was an error while processing the image file."),void(n.value="");const J=I.split(",")[1],d1={content:{name:m,data:J},contentType:l.type,isPublic:!0};this.uploadingFeaturedImage=!0,this.attachmentService.uploadFile(d1).subscribe({next:i1=>{const N1=(i1?.content||"").toString();N1?this.entryForm.controls.featuredImage.setValue(N1):this.showTemporaryError("There was an error while uploading the featured image.")},error:i1=>{console.error("There was an error while uploading featured image!",i1),this.showTemporaryError(413!==i1.status?i1?.error?.error?`Error: ${i1.error.error}`:"There was an error while uploading the featured image.":"File size too large! Must be under 3MB.")},complete:()=>{this.uploadingFeaturedImage=!1,n.value=""}})},z.onerror=()=>{this.showTemporaryError("There was an error while reading the image file."),n.value=""},z.readAsDataURL(l)}removeFeaturedImage(){this.entryForm.controls.featuredImage.setValue("")}getFeaturedImageUrl(){return this.extractFeaturedImageUrl(this.entryForm.controls.featuredImage.value)}parseTagsFromForm(){const c=(this.entryForm.controls.tags.value||"").toString();if(!c.trim())return[];const n=new Map;return c.split(",").forEach(l=>{const r=l.trim().replace(/\s+/g," ");if(!r)return;const m=r.toLowerCase();n.has(m)||n.set(m,r)}),Array.from(n.values())}formatTagsForInput(c){return Array.isArray(c)?c.map(n=>(n??"").toString().trim()).filter(n=>n.length>0).join(", "):"string"==typeof c?c.split(",").map(n=>n.trim()).filter(n=>n.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()}formatDateForInput(c){const n=this.normalizeOptionalText(c);if(!n)return"";if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(n))return n;const l=H2(n);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(n){return new(n||t)(e.rXU(N2.nX),e.rXU(N2.Ix),e.rXU(C2.s),e.rXU(J3),e.rXU(b9))}}static{this.\u0275cmp=e.VBU({type:t,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-[#DDE6F6]"],[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-[#0B1528]","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","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"],["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"],[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"],["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(n,l){1&n&&(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,Wq2,6,0,"div",17)(21,lX2,50,13),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,sX2,9,1,"div",19)),2&n&&(e.R7$(19),e.SpI(" ",l.blogId?"Update blog entry":"Create blog 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:[ge,p.X1,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,L6.w]})}}return t})();class Ze{static{this.BASE_URL=h1.c.BASE_URL}static{this.USAGE_SPEC_LIMIT=h1.c.USAGE_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getUsageSpec(a){return(0,V2.s)(this.http.get(`${Ze.BASE_URL}/usage/usageSpecification/${a}`))}getUsageSpecs(a,c){return(0,V2.s)(this.http.get(`${Ze.BASE_URL}/usage/usageSpecification?limit=${Ze.USAGE_SPEC_LIMIT}&offset=${a}&relatedParty.id=${c}`))}getAllUsageSpecs(a){return(0,V2.s)(this.http.get(`${Ze.BASE_URL}/usage/usageSpecification?relatedParty.id=${a}`))}postUsageSpec(a){return this.http.post(`${Ze.BASE_URL}/usage/usageSpecification`,a)}updateUsageSpec(a,c){return this.http.patch(`${Ze.BASE_URL}/usage/usageSpecification/${c}`,a)}static{this.\u0275fac=function(c){return new(c||Ze)(e.KVO(g.Qq),e.KVO(C2.s))}}static{this.\u0275prov=e.jDH({token:Ze,factory:Ze.\u0275fac,providedIn:"root"})}}class w8{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_ORDERING=h1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=h1.c.ORDER_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}postProductOrder(a){return this.http.post(`${w8.BASE_URL}${w8.API_ORDERING}/productOrder`,a,{observe:"response"})}getProductOrders(a,c,n,l,r=[]){console.log("getProductOrders");let m=`${w8.BASE_URL}${w8.API_ORDERING}/productOrder?limit=${w8.ORDER_LIMIT}&offset=${c}&relatedParty.id=${a}&relatedParty.role=${l}`,z="";if(n.length>0){for(let F=0;F0&&(m=m+"&productOrderItem.action="+r.join(",")),(0,V2.s)(this.http.get(m))}updateOrder(a,c){return console.log("updatingOrder..."),console.log(a),console.log(c),(0,V2.s)(this.http.patch(`${w8.BASE_URL}${w8.API_ORDERING}/productOrder/${a}`,c))}static{this.\u0275fac=function(c){return new(c||w8)(e.KVO(g.Qq),e.KVO(C2.s))}}static{this.\u0275prov=e.jDH({token:w8,factory:w8.\u0275fac,providedIn:"root"})}}class f8{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_INVENTORY=h1.c.INVENTORY}static{this.INVENTORY_LIMIT=h1.c.INVENTORY_LIMIT}static{this.INVENTORY_RES_LIMIT=h1.c.INVENTORY_RES_LIMIT}static{this.INVENTORY_SERV_LIMIT=h1.c.INVENTORY_SERV_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getInventory(a,c,n,l){let r=`${f8.BASE_URL}${f8.API_INVENTORY}/product?limit=${f8.INVENTORY_LIMIT}&offset=${a}&relatedParty.id=${c}`,m="";if(n.length>0){for(let z=0;z0){for(let m=0;m0){for(let m=0;m{class t{constructor(c,n,l,r,m){this.api=c,this.accountService=n,this.orderService=l,this.inventoryService=r,this.invoicesService=m,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=h1.c.CATALOG_LIMIT}getItemsPaginated(c,n,l,r,m,z,F){return(0,b1.A)(function*(){console.log("options"),console.log(z);try{let I=[c];if("keywords"in z&&I.push(z.keywords),"filters"in z&&I.push(z.filters),"partyId"in z&&I.push(z.partyId.toString()),"catalogId"in z&&I.push(z.catalogId.toString()),"sort"in z&&I.push(z.sort),"isBundle"in z&&I.push(z.isBundle),"selectedDate"in z&&I.push(z.selectedDate),"orders"in z&&I.push(z.orders),"role"in z&&I.push(z.role),"actionFilters"in z&&I.push(z.actionFilters),0==l)r=[],m=[],I[0]=c=0,console.log("------ Calling handler"),console.log(I),r=yield F(...I),c+=n;else for(let d1=0;d1null!=d1);return{page:c,items:r,nextItems:m,page_check:I}}})()}getProducts(c,n,l){var r=this;return(0,b1.A)(function*(){try{return console.log("-------------------------- getProducts ----------------------------"),l&&l.length>0?yield r.api.getProductsByCategory(l,c,n):yield r.api.getProducts(c,n)}catch(m){return console.error("Error fetching products:",m),[]}})()}getProductsByCatalog(c,n,l,r){var m=this;return(0,b1.A)(function*(){try{return console.log("-------------------------- getProductsByCatalog ----------------------------"),console.log(c),l&&l.length>0?yield m.api.getProductsByCategoryAndCatalog(l,r,c):yield m.api.getProductsByCatalog(r,c)}catch(z){return console.error("Error fetching products:",z),[]}})()}getOrders(c,n,l,r,m){var z=this;return(0,b1.A)(function*(F,I,J,d1,i1,N1=[]){try{d1=yield z.orderService.getProductOrders(J,F,I,i1,N1),console.log("getOrders",d1);const J1=yield Promise.all(d1.map(F2=>z.accountService.getBillingAccountById(F2.billingAccount.id))),u2=yield Promise.all(d1.map(function(){var F2=(0,b1.A)(function*(U2,R0){const r4=yield Promise.all(U2.productOrderItem.map(function(){var V0=(0,b1.A)(function*(e4){try{console.log("Soy un productOrderItem???????: ",e4);const a0=yield z.api.getProductById(e4.productOffering.id),G2=yield z.api.getProductSpecification(a0.productSpecification.id);if(!a0.productOfferingPrice||0===a0.productOfferingPrice.length)return{id:a0.id,name:a0.name,category:a0.category,description:a0.description,lastUpdate:a0.lastUpdate,attachment:G2.attachment,productSpecification:a0.productSpecification,productOfferingTerm:a0.productOfferingTerm,version:a0.version,productOrderItem:e4};let t6={};if(t6={id:a0.id,name:a0.name,category:a0.category,description:a0.description,lastUpdate:a0.lastUpdate,attachment:G2.attachment,productSpecification:a0.productSpecification,productOfferingTerm:a0.productOfferingTerm,version:a0.version,productOrderItem:e4},a0.productOfferingPrice?.[0]){const D6=yield z.api.getProductPrice(a0.productOfferingPrice[0].id);t6.productOfferingPrice=D6,D6.priceType&&(t6.priceType=D6.priceType)}return t6}catch(a0){return console.error(`Error fetching product details for ${e4.id}:`,a0),null}});return function(e4){return V0.apply(this,arguments)}}()));return{...U2,billingAccount:J1[R0],productOrderItems:r4.filter(Boolean)}});return function(U2,R0){return F2.apply(this,arguments)}}()));return console.log("Orders processed:",u2),u2}catch(J1){return console.error("Error fetching orders:",J1),[]}}).apply(this,arguments)}getOffers(c){var n=this;return(0,b1.A)(function*(){try{return yield Promise.all(c.map(function(){var r=(0,b1.A)(function*(m){const z=yield n.api.getProductById(m.productOffering.id),I=(yield n.api.getProductSpecification(z.productSpecification.id))?.attachment??[];return m.product={id:m.id,name:z.name,category:z.category,description:z.description,lastUpdate:z.lastUpdate,attachment:I,productSpecification:z.productSpecification,productOfferingTerm:z.productOfferingTerm,version:z.version},m});return function(m){return r.apply(this,arguments)}}()))}catch(l){throw console.error("Error fetching offers:",l),l}})()}getInventory(c,n,l,r){var m=this;return(0,b1.A)(function*(){try{console.log("Fetching inventory...");const z=yield m.inventoryService.getInventory(c,r,l,n);return console.log("Inventory received:",z),yield m.getOffers(z)}catch(z){return console.error("Error fetching inventory:",z),[]}})()}getInvoices(c,n,l,r,m){var z=this;return(0,b1.A)(function*(){console.log("---getInvoices---");let F=[];try{F=yield z.invoicesService.getInvoices(l,c,n,r,m)}finally{return console.log("params:",l,c,n,r,m),console.log("---getInvoices result:---",F),console.log(F),F}})()}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(n0.F),e.KVO(s0.O),e.KVO(w8),e.KVO(f8),e.KVO(F5))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const aX2=(t,a)=>a.id,oX2=(t,a)=>({"break-all":t,"break-words":a});function iX2(t,a){1&t&&(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(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(7,"svg",25),e.nrm(8,"path",26),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,oX2,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function dX2(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"USAGE_SPECS._no_usage")," "))}function fX2(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._load_more")," "))}function uX2(t,a){if(1&t&&e.DNE(0,fX2,6,3,"div",30),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function mX2(t,a){1&t&&(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 pX2(t,a){if(1&t&&(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,aX2,!1,dX2,7,3,"div",20),e.k0s()()(),e.DNE(18,uX2,1,1)(19,mX2,6,0),e.k0s()),2&t){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 hX2=(()=>{class t{constructor(c,n,l,r){this.eventMessage=c,this.usageService=n,this.localStorage=l,this.paginationService=r,this.usageSpecs=[],this.nextUsageSpecs=[],this.loading=!1,this.loading_more=!1,this.partyId="",this.page=0,this.page_check=!0,this.USAGE_SPEC_LIMIT=h1.c.USAGE_SPEC_LIMIT}ngOnInit(){var c=this;return(0,b1.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}getUsageSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.USAGE_SPEC_LIMIT,c,n.usageSpecs,n.nextUsageSpecs,{partyId:n.partyId},n.usageService.getUsageSpecs.bind(n.usageService)).then(r=>{n.page_check=r.page_check,n.usageSpecs=r.items,n.nextUsageSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getUsageSpecs(!0)})()}goToCreate(){this.eventMessage.emitCreateUsageSpec(!0)}goToUpdate(c){this.eventMessage.emitUpdateUsageSpec(c)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2),e.rXU(Ze),e.rXU(C2.s),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,iX2,6,0,"div",9)(15,pX2,20,11),e.k0s()),2&n&&(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,X2.dX,L.MD,L.YU]})}}return t})();function ZH(t,a=s4){return(0,W1.N)((c,n)=>{let l=null,r=null,m=null;const z=()=>{if(l){l.unsubscribe(),l=null;const I=r;r=null,n.next(I)}};function F(){const I=m+t,J=a.now();if(J{r=I,m=a.now(),l||(l=a.schedule(F,t),n.add(l))},()=>{z(),n.complete()},void 0,()=>{r=l=null}))})}const gX2=t=>{const a=t.get("paymentOnline")?.value,c=t.get("priceComponents")?.value;return!a||c&&0!==c.length?null:{priceComponentsRequired:!0}};function _X2(t){return a=>{const c=a.get("name");if(!c)return null;const n=c.value?.trim().toLowerCase();return n&&t().map(r=>r?.trim().toLowerCase()).includes(n)?{nonUniqueName:!0}:null}}function e6(t){return 0!==(t.value||"").trim().length?null:{whitespace:!0}}function LX2(t,a){if(1&t&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function CX2(t,a){if(1&t&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",3)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let zX2=(()=>{class t{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),e6])),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),e6])),this.formGroup.addControl("description",new p.MJ(""))),this.isEditMode&&this.formGroup.valueChanges.pipe(ZH(500),(0,P1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const n=this.getDirtyFields(c);if(n.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:n,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(n=>{const r=this.originalValue[n];return JSON.stringify(c[n])!==JSON.stringify(r)})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,LX2,4,4)(1,CX2,4,4),2&n&&(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_,HL,s1.D9,ge]})}}return t})();const bw1=(t,a)=>({"break-all":t,"break-words":a});function MX2(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"USAGE_SPECS._no_metrics")," "))}function xX2(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.deleteMetric(l))}),e.qSk(),e.j41(7,"svg",14),e.nrm(8,"path",15),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,bw1,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,bw1,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function bX2(t,a){if(1&t&&(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,xX2,9,10,"tr",10,e.fX1),e.k0s()()()),2&t){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 yX2(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._create_metric")," "))}function FX2(t,a){if(1&t){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&t){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 vX2=(()=>{class t{constructor(c,n,l){this.eventMessage=c,this.fb=n,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),e6]),description:new p.MJ("")})}ngOnInit(){var c=this;return(0,b1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,console.log(c.metrics)})()}deleteMetric(c){const n=this.metrics.findIndex(z=>z.id===c.id);-1!==n&&this.metrics.splice(n,1),this.onChange([...this.metrics]);const l=[...this.metrics],m={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting change state:",m),this.eventMessage.emitSubformChange(m)}saveMetric(){this.metrics.push({id:A4(),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],n=this.getDirtyFields(c);if(n.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:n,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 n=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&n.push("creatingMetrics"),n}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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2),e.rXU(p.ok),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&e.DNE(0,MX2,9,3,"div",0)(1,bX2,16,9)(2,yX2,6,3,"div",1)(3,FX2,17,12),2&n&&(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,L.YU]})}}return t})();const KH=(t,a)=>({"break-all":t,"break-words":a});function kX2(t,a){if(1&t&&(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&t){let c,n;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,KH,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==(n=l.usageSpecForm.get("generalInfo.description"))?null:n.value)}}function wX2(t,a){if(1&t&&(e.j41(0,"tr",11)(1,"td",12),e.EFF(2),e.k0s(),e.j41(3,"td",13),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,KH,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,KH,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function SX2(t,a){if(1&t&&(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,wX2,5,10,"tr",11,e.fX1),e.k0s()()()),2&t){let c;const n=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=n.usageSpecForm.get("metrics"))?null:c.value)}}let NX2=(()=>{class t{ngOnInit(){var c=this;return(0,b1.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["usage-spec-summary"]],inputs:{usageSpecForm:"usageSpecForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){if(1&n&&(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,kX2,5,8)(8,SX2,15,6),e.k0s()),2&n){let r,m,z,F;e.R7$(3),e.JRh(e.bMT(4,5,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(7,KH,l.hasLongWord(null==(r=l.usageSpecForm.get("generalInfo.name"))?null:r.value,20),!l.hasLongWord(null==(r=l.usageSpecForm.get("generalInfo.name"))?null:r.value,20))),e.R7$(),e.SpI(" ",null==(m=l.usageSpecForm.get("generalInfo.name"))?null:m.value," "),e.R7$(),e.vxM(7,""!=(null==(z=l.usageSpecForm.get("generalInfo.description"))?null:z.value)?7:-1),e.R7$(),e.vxM(8,null!=(F=l.usageSpecForm.get("metrics"))&&F.value?8:-1)}},dependencies:[s1.h,s1.D9,T0,L.YU,HL]})}}return t})();const EX2=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),DX2=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a});function TX2(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._update")," "))}function RX2(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._create")," "))}function AX2(t,a){1&t&&(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 IX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",22),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(2);return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",23),e.EFF(2),e.k0s(),e.j41(3,"span",24),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function PX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"usage-spec-general-info",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)("form",c.usageSpecForm.controls.generalInfo)}}function $X2(t,a){if(1&t){const c=e.RV6();e.j41(0,"usage-spec-metrics",26),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)}}function jX2(t,a){if(1&t&&e.nrm(0,"usage-spec-summary",27),2&t){const c=e.XpG(2);e.Y8G("usageSpecForm",c.usageSpecForm)}}function OX2(t,a){if(1&t){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&t){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 BX2(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,IX2,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,PX2,1,3,"usage-spec-general-info",13)(8,$X2,1,2)(9,jX2,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,OX2,2,3,"button",21),e.k0s()()}if(2&t){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,EX2,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,DX2,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 VX2(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let yw1=(()=>{class t{constructor(c,n,l,r,m){this.api=c,this.eventMessage=n,this.fb=l,this.accService=r,this.usageSpecService=m,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,P1.Q)(this.destroy$)).subscribe(z=>{this.isFormValid="VALID"===z}),this.formSubscription=this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(z=>{if("SubformChange"===z.type){const F=z.value;console.log("Received subform change:",F),this.handleSubformChange(F)}})}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,b1.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(n=>({...n,id:A4()}));this.usageSpecForm.patchValue({generalInfo:{name:this.usageSpec.name,description:this.usageSpec.description},metrics:c})}}createUsageSpec(){var c=this;return(0,b1.A)(function*(){const n=c.usageSpecForm.value,l=n.generalInfo,r=n.metrics.map(({id:z,...F})=>F),m={name:l.name,description:l.description||"",specCharacteristic:r,relatedParty:[{id:c.partyId,href:c.partyId,role:h1.c.SELLER_ROLE}]};console.log(m),c.usageSpecService.postUsageSpec(m).subscribe({next:z=>{console.log("usageSpec created:"),console.log(z),c.goBack()},error:z=>{console.error("There was an error while creating the usageSpec!",z),z.error.error?(console.log(z),c.errorMessage="Error: "+z.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,b1.A)(function*(){console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const n={name:c.usageSpec.name,description:c.usageSpec.description,specCharacteristic:c.usageSpec.specCharacteristic};for(const[l,r]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,r),l){case"generalInfo":n.name=r.currentValue.name,n.description=r.currentValue.description;break;case"metrics":const m=r.currentValue.map(z=>({name:z.name,description:z.description,valueType:"number"}));n.specCharacteristic=m,console.log("------ here"),console.log(m)}console.log("\u{1f4dd} Final update payload:",n);try{yield(0,V2.s)(c.usageSpecService.updateUsageSpec(n,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(n){return new(n||t)(e.rXU(n0.F),e.rXU(j2),e.rXU(p.ok),e.rXU(s0.O),e.rXU(Ze))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,TX2,3,3,"h2",1)(2,RX2,3,3)(3,AX2,6,0,"div",2)(4,BX2,22,20),e.k0s(),e.DNE(5,VX2,9,1,"div",3)),2&n&&(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:[zX2,vX2,NX2,s1.h,s1.D9,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,L.YU]})}}return t})(),UX2=(()=>{class t{constructor(c,n,l,r){this.cdr=c,this.el=n,this.localStorage=l,this.eventMessage=r,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(C2.s),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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:[yw1,s1.h,s1.D9,p.X1]})}}return t})(),HX2=(()=>{class t{constructor(c,n,l,r){this.cdr=c,this.el=n,this.localStorage=l,this.eventMessage=r,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(C2.s),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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:[yw1,s1.h,s1.D9,p.X1]})}}return t})();function GX2(t,a){1&t&&e.nrm(0,"usage-list")}function YX2(t,a){1&t&&e.nrm(0,"create-usage-spec")}function qX2(t,a){if(1&t&&e.nrm(0,"update-usage-spec",16),2&t){const c=e.XpG();e.Y8G("usageSpec",c.usageSpecToUpdate)}}let XX2=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.cdr=n,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,P1.Q)(this.destroy$)).subscribe(r=>{"UsageSpecList"===r.type&&1==r.value?this.goToUsageSpec():"UpdateUsageSpec"===r.type&&r.value?(this.show_update_usage=!0,this.show_usage_specs=!1,this.show_create_usage=!1,this.usageSpecToUpdate=r.value):"CreateUsageSpec"===r.type&&1==r.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(e.gRc),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-usage-specs"]],standalone:!0,features:[e.Jv_([L.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(n,l){1&n&&(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,GX2,1,0,"usage-list")(29,YX2,1,0,"create-usage-spec")(30,qX2,1,1,"update-usage-spec",16),e.k0s()()),2&n&&(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,X2.dX,L.MD,hX2,UX2,HX2]})}}return t})(),rc=(()=>{class t{constructor(c,n){this.localStorage=c,this.router=n}canActivate(c,n){let l=this.localStorage.getObject("login_items");const r=c.data.roles;let m=[];const z={admin:h1.c.ADMIN_ROLE.toLowerCase(),seller:h1.c.SELLER_ROLE.toLowerCase(),buyer:h1.c.BUYER_ROLE.toLowerCase(),orgAdmin:h1.c.ORG_ADMIN_ROLE.toLowerCase(),certifier:h1.c.CERTIFIER_ROLE.toLowerCase(),individual:"individual"};return"{}"!=JSON.stringify(l)&&l.expire-H2().unix()-4>0?(l.logged_as==l.id?(m.push("individual"),l.roles.forEach(F=>m.push(F.name.toLowerCase()))):(l.organizations.find(I=>I.id==l.logged_as).roles.forEach(I=>m.push(I.name.toLowerCase())),l.roles.some(I=>I.name.toLowerCase()===h1.c.ADMIN_ROLE.toLowerCase())&&m.push(h1.c.ADMIN_ROLE.toLowerCase())),!(0!=r.length&&!r.some(I=>m.includes(z[I]))&&(this.router.navigate(["/dashboard"]),1))):(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(C2.s),e.KVO(N2.Ix))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Fw1=(()=>{class t{constructor(c){this.router=c}canActivate(){return!!h1.c.QUOTES_ENABLED||(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(N2.Ix))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function WX2(t,a){1&t&&(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 JX2(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(2),e.JRh(c.title),e.R7$(3),e.SpI(" ",c.description," ")}}function QX2(t,a){if(1&t&&(e.j41(0,"h2",6),e.EFF(1,"Operator revenue sharing"),e.k0s(),e.Z7z(2,JX2,6,2,"div",7,e.fX1)),2&t){const c=e.XpG();e.R7$(2),e.Dyx(c.items)}}let vw1=(()=>{class t{constructor(){this.loading=!1,this.items=[{title:"Total Subcription Revenue",description:"\u20ac45.000 (Q2 2025)"}]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,WX2,6,0,"div",1)(2,QX2,4,0),e.k0s()),2&n&&(e.R7$(),e.vxM(1,l.loading?1:2))},dependencies:[s1.h,X2.dX,L.MD]})}}return t})();function ZX2(t,a){if(1&t&&(e.j41(0,"span",3),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function KX2(t,a){if(1&t&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function eW2(t,a){if(1&t&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function cW2(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function tW2(t,a){if(1&t&&e.nrm(0,"categories-recursion-list",11),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("child",c)("parent",n.child)("path",n.path+" / "+n.child.name)}}function nW2(t,a){if(1&t&&e.Z7z(0,tW2,1,3,"categories-recursion-list",11,e.fX1),2&t){const c=e.XpG();e.Dyx(c.child.children)}}let lW2=(()=>{class t{constructor(c,n){this.cdr=c,this.eventMessage=n}addCategory(c){this.eventMessage.emitCategoryAdded(c)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["categories-recursion-list"]],inputs:{child:"child",parent:"parent",path:"path"},decls:18,vars:8,consts:[[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"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[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"],["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,"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"],[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"],[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(n,l){1&n&&(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.DNE(6,ZX2,2,1,"span",3)(7,KX2,2,1)(8,eW2,2,1)(9,cW2,2,1),e.k0s(),e.j41(10,"td",2),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",4)(14,"button",5),e.bIt("click",function(){return l.goToUpdate(l.child)}),e.qSk(),e.j41(15,"svg",6),e.nrm(16,"path",7),e.k0s()()()(),e.DNE(17,nW2,2,0)),2&n&&(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:[t,L.vh]})}}return t})();const sW2=(t,a)=>a.id;function aW2(t,a){1&t&&(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(t,a){if(1&t&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function iW2(t,a){if(1&t&&(e.j41(0,"span",33),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function rW2(t,a){if(1&t&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function dW2(t,a){if(1&t&&(e.j41(0,"span",35),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function fW2(t,a){if(1&t&&(e.j41(0,"tr")(1,"td",36),e.nrm(2,"categories-recursion-list",37),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2).$implicit;e.R7$(2),e.Y8G("child",c)("parent",n)("path",n.name)}}function uW2(t,a){if(1&t&&e.Z7z(0,fW2,3,3,"tr",null,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c.children)}}function mW2(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",24)(1,"td",25)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",26),e.DNE(5,oW2,2,1,"span",27)(6,iW2,2,1)(7,rW2,2,1)(8,dW2,2,1),e.k0s(),e.j41(9,"td",28),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.j41(12,"td",29)(13,"button",30),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(14,"svg",31),e.nrm(15,"path",32),e.k0s()()()(),e.DNE(16,uW2,2,0)}if(2&t){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 pW2(t,a){1&t&&(e.j41(0,"div",23)(1,"div",38),e.qSk(),e.j41(2,"svg",39),e.nrm(3,"path",40),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CATEGORIES._no_cat")," "))}function hW2(t,a){if(1&t&&(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"),e.Z7z(18,mW2,17,7,null,null,sW2,!1,pW2,7,3,"div",23),e.k0s()()()()),2&t){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 gW2=(()=>{class t{constructor(c,n,l,r,m){this.router=c,this.api=n,this.cdr=l,this.localStorage=r,this.eventMessage=m,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.searchField=new p.MJ,this.categories=[],this.unformattedCategories=[],this.page=0,this.CATEGOY_LIMIT=h1.c.CATEGORY_LIMIT,this.loading=!1,this.status=["Active","Launched"],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(z=>{"ChangedSession"===z.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 n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getCategories(),S2()}createCategory(){this.eventMessage.emitCreateCategory(!0)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}getCategories(){var c=this;return(0,b1.A)(function*(){console.log("Getting categories...");const n=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(n)?n:[];c.unformattedCategories=[...l];const r=yield Promise.all(l.map(m=>c.loadCategorySubtree(m)));c.categories=r.filter(m=>!!m),c.loading=!1,c.cdr.detectChanges(),S2()})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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"],[1,"flex","justify-center","m-4"],[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","adminTableOfferStatus",1,"hidden","md:flex","px-6","py-4","w-fit"],[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"],[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"],[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"],[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(n,l){1&n&&(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,aW2,6,0,"div",9)(15,hW2,21,13),e.k0s()),2&n&&(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:[lW2,L.vh,s1.D9]})}}return t})();function _W2(t,a){if(1&t&&e.nrm(0,"categories-recursion",5),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("child",c)("selected",n.selected)("parent",n.child)("path",n.path+" / "+n.child.name)}}function LW2(t,a){if(1&t&&e.Z7z(0,_W2,1,4,"categories-recursion",5,e.fX1),2&t){const c=e.XpG();e.Dyx(c.child.children)}}let kw1=(()=>{class t{constructor(c,n){this.cdr=c,this.eventMessage=n}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(n){return new(n||t)(e.rXU(e.gRc),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["categories-recursion"]],inputs:{child:"child",parent:"parent",selected:"selected",path:"path"},decls:11,vars:8,consts:[[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-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","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(n,l){1&n&&(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,LW2,2,0)),2&n&&(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:[t,L.vh]})}}return t})();const CW2=(t,a)=>a.id;function zW2(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function MW2(t,a){if(1&t&&(e.j41(0,"tr")(1,"td",56),e.nrm(2,"categories-recursion",57),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",n)("selected",l.selected)("path",n.name)}}function xW2(t,a){if(1&t&&e.Z7z(0,MW2,3,4,"tr",null,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c.children)}}function bW2(t,a){if(1&t){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,r=e.XpG(4);return e.Njj(r.addCategory(l))}),e.k0s()()(),e.DNE(9,xW2,2,0)}if(2&t){const c=a.$implicit,n=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",n.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function yW2(t,a){if(1&t&&(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,bW2,10,7,null,null,CW2),e.k0s()()()),2&t){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 FW2(t,a){if(1&t&&e.DNE(0,zW2,7,3,"div",40)(1,yW2,16,9),2&t){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function vW2(t,a){if(1&t){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,FW2,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&t){let c;const n=e.XpG();e.R7$(),e.JRh(e.bMT(2,11,"CREATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(6,13,"CREATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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",n.parentSelectionCheck),e.R7$(2),e.vxM(18,n.parentSelectionCheck?18:-1),e.R7$(2),e.Y8G("disabled",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory)("ngClass",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(22,19,"CREATE_CATEGORIES._next")," ")}}function kW2(t,a){if(1&t&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function wW2(t,a){if(1&t&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function SW2(t,a){if(1&t&&(e.j41(0,"span",66),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function NW2(t,a){if(1&t&&(e.j41(0,"span",67),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function EW2(t,a){if(1&t&&(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&t){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 DW2(t,a){if(1&t&&(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&t){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 TW2(t,a){if(1&t){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,kW2,2,1,"span",62)(15,wW2,2,1)(16,SW2,2,1)(17,NW2,2,1),e.k0s(),e.DNE(18,EW2,5,4)(19,DW2,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&t){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 RW2(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let AW2=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initPartyInfo(),"CategoryAdded"===F.type&&this.addCategory(F.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getCategories()}goBack(){this.eventMessage.emitAdminCategories(!0)}getCategories(){var c=this;return(0,b1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const n=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(n)?n:[];c.unformattedCategories=[...l];const r=yield Promise.all(l.map(m=>c.loadCategorySubtree(m)));c.categories=r.filter(Boolean),c.loading=!1,c.cdr.detectChanges(),S2()})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(n0.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-category"]],hostBindings:function(n,l){1&n&&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"],["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"],["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"],[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"],[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","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(n,l){1&n&&(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,vW2,25,21)(50,TW2,26,16),e.k0s()()()(),e.DNE(51,RW2,1,1,"error-message",27)),2&n&&(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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,T0,ge,kw1,Q0,L.vh,s1.D9]})}}return t})();const IW2=(t,a)=>a.id;function PW2(t,a){if(1&t){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 $W2(t,a){if(1&t){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 jW2(t,a){if(1&t){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 OW2(t,a){if(1&t){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("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function BW2(t,a){if(1&t){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("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function VW2(t,a){if(1&t){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("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function UW2(t,a){if(1&t){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.setCatStatus("Obsolete"))}),e.j41(1,"span",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function HW2(t,a){if(1&t){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.setCatStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function GW2(t,a){1&t&&(e.j41(0,"div",57)(1,"div",58),e.qSk(),e.j41(2,"svg",59),e.nrm(3,"path",60),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function YW2(t,a){if(1&t&&(e.j41(0,"tr")(1,"td",73),e.nrm(2,"categories-recursion",74),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",n)("selected",l.selected)("path",n.name)}}function qW2(t,a){if(1&t&&e.Z7z(0,YW2,3,4,"tr",null,e.fX1),2&t){const c=e.XpG().$implicit;e.Dyx(c.children)}}function XW2(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",70),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td",71)(8,"input",72),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addCategory(l))}),e.k0s()()(),e.DNE(9,qW2,2,0)}if(2&t){const c=a.$implicit,n=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",n.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function WW2(t,a){if(1&t&&(e.j41(0,"div",61)(1,"table",62)(2,"thead",63)(3,"tr",64)(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,"tbody"),e.Z7z(14,XW2,10,7,null,null,IW2),e.k0s()()()),2&t){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 JW2(t,a){if(1&t&&e.DNE(0,GW2,7,3,"div",57)(1,WW2,16,9),2&t){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function QW2(t,a){if(1&t){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,PW2,5,0,"li",34)(14,$W2,3,0)(15,jW2,5,0,"li",35)(16,OW2,3,0)(17,BW2,5,0,"li",36)(18,VW2,3,0)(19,UW2,5,0,"li",37)(20,HW2,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,JW2,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&t){let c;const n=e.XpG();e.R7$(),e.JRh(e.bMT(2,17,"UPDATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(6,19,"UPDATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.catStatus?13:14),e.R7$(2),e.vxM(15,"Launched"==n.catStatus?15:16),e.R7$(2),e.vxM(17,"Retired"==n.catStatus?17:18),e.R7$(2),e.vxM(19,"Obsolete"==n.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",n.checkDisableParent)("checked",n.parentSelectionCheck),e.R7$(2),e.vxM(31,n.parentSelectionCheck?31:-1),e.R7$(2),e.Y8G("disabled",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory)("ngClass",!n.generalForm.valid||1==n.parentSelectionCheck&&null==n.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(35,27,"UPDATE_CATEGORIES._next")," ")}}function ZW2(t,a){if(1&t&&(e.j41(0,"span",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function KW2(t,a){if(1&t&&(e.j41(0,"span",82),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function eJ2(t,a){if(1&t&&(e.j41(0,"span",83),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function cJ2(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function tJ2(t,a){if(1&t&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",85),e.nrm(4,"markdown",86),e.k0s()),2&t){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 nJ2(t,a){if(1&t&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",87)(4,"label",88),e.EFF(5),e.k0s()()),2&t){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 lJ2(t,a){if(1&t){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",75)(4,"div")(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"label",76),e.EFF(9),e.k0s()(),e.j41(10,"div",77)(11,"label",78),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.DNE(14,ZW2,2,1,"span",79)(15,KW2,2,1)(16,eJ2,2,1)(17,cJ2,2,1),e.k0s(),e.DNE(18,tJ2,5,4)(19,nJ2,6,4),e.j41(20,"div",80)(21,"button",81),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&t){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 sJ2(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let aJ2=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initPartyInfo(),"CategoryAdded"===F.type&&this.addCategory(F.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,b1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const n=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(n)?n:[];c.unformattedCategories=[...l];const r=yield Promise.all(l.map(m=>c.loadCategorySubtree(m)));if(c.categories=c.removeCategoryFromTree(r.filter(Boolean),c.category?.id),c.loading=!1,0==c.category.isRoot){const m=c.findCategoryById(c.categories,c.category.parentId);m&&(c.selectedCategory=m,c.selected=[m])}c.cdr.detectChanges(),S2()})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}findCategoryById(c,n){for(const l of c||[]){if(l?.id===n)return l;const r=this.findCategoryById(l?.children||[],n);if(r)return r}}removeCategoryFromTree(c,n){return n?(c||[]).filter(l=>l?.id!==n).map(l=>({...l,children:this.removeCategoryFromTree(l?.children||[],n)})):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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(n0.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-category"]],hostBindings:function(n,l){1&n&&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"],["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"],[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,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["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"],["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,"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"],[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"],["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"],[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"],[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","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"],["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(n,l){1&n&&(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,QW2,38,29)(50,lJ2,26,16),e.k0s()()()(),e.DNE(51,sJ2,1,1,"error-message",27)),2&n&&(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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,T0,ge,kw1,Q0,L.vh,s1.D9]})}}return t})();function oJ2(t,a){if(1&t&&e.nrm(0,"error-message",25),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let iJ2=(()=>{class t{constructor(c,n){this.eventMessage=c,this.http=n,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(`${h1.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(n){return new(n||t)(e.rXU(j2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){if(1&n&&(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&n){let r;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==(r=l.verificationForm.get("productId"))?null:r.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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,Q0,s1.D9]})}}return t})();function rJ2(t,a){if(1&t&&e.nrm(0,"error-message",31),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let dJ2=(()=>{class t{constructor(c,n){this.eventMessage=c,this.http=n,this.showError=!1,this.errorMessage="",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]),emailUser:new p.MJ("",[p.k0.required]),emailPassword:new p.MJ("",[p.k0.required])})}ngOnInit(){this.getConfig()}goBack(){this.eventMessage.emitAdminCategories(!0)}fillData(c){this.emailForm.setValue({smtpServer:c.smtpServer,smtpPort:c.smtpPort,email:c.email,emailUser:c.emailUser,emailPassword:""})}getConfig(){return this.http.get(`${h1.c.BASE_URL}/charging/api/orderManagement/notify/config`).subscribe({next:n=>{this.fillData(n)},error:n=>{console.error("There was an error while getting config!",n),n.error.error?(console.log(n),this.errorMessage="Error: "+n.error.error):this.errorMessage="There was an error while getting the config",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}addConfig(){return this.http.post(`${h1.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}).subscribe({next:l=>{this.fillData(l)},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 config",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["email"]],decls:52,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","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,"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(n,l){if(1&n&&(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.k0s(),e.j41(45,"div",27)(46,"button",28),e.bIt("click",function(){return l.addConfig()}),e.EFF(47),e.nI1(48,"translate"),e.qSk(),e.j41(49,"svg",29),e.nrm(50,"path",30),e.k0s()()()()()()(),e.DNE(51,rJ2,1,1,"error-message",31)),2&n){let r,m,z,F,I;e.R7$(8),e.SpI(" ",e.bMT(9,16,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,18,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(20,20,"ADMIN._verification")),e.R7$(5),e.Y8G("formGroup",l.emailForm),e.R7$(2),e.JRh(e.bMT(27,22,"ADMIN._smtpServer")),e.R7$(2),e.Y8G("ngClass",1==(null==(r=l.emailForm.get("smtpServer"))?null:r.invalid)&&""!=l.emailForm.value.smtpServer?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(31,24,"ADMIN._smtpPort")),e.R7$(2),e.Y8G("ngClass",1==(null==(m=l.emailForm.get("smtpPort"))?null:m.invalid)&&""!=l.emailForm.value.smtpPort?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(35,26,"ADMIN._email")),e.R7$(2),e.Y8G("ngClass",1==(null==(z=l.emailForm.get("email"))?null:z.invalid)&&""!=l.emailForm.value.email?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(39,28,"ADMIN._emailUser")),e.R7$(2),e.Y8G("ngClass",1==(null==(F=l.emailForm.get("emailUser"))?null:F.invalid)&&""!=l.emailForm.value.emailUser?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(43,30,"ADMIN._emailPass")),e.R7$(2),e.Y8G("ngClass",1==(null==(I=l.emailForm.get("emailPassword"))?null:I.invalid)&&""!=l.emailForm.value.emailPassword?"border-red-600":"border-gray-300"),e.R7$(3),e.SpI(" ",e.bMT(48,32,"ADMIN._add")," "),e.R7$(4),e.vxM(51,l.showError?51:-1)}},dependencies:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,Q0,s1.D9]})}}return t})();function fJ2(t,a){1&t&&e.nrm(0,"admin-categories")}function uJ2(t,a){1&t&&e.nrm(0,"create-category")}function mJ2(t,a){if(1&t&&e.nrm(0,"update-category",19),2&t){const c=e.XpG();e.Y8G("category",c.category_to_update)}}function pJ2(t,a){1&t&&e.nrm(0,"verification")}function hJ2(t,a){1&t&&e.nrm(0,"operator-revenue-sharing")}function gJ2(t,a){1&t&&e.nrm(0,"email")}let _J2=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.cdr=n,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.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{"AdminCategories"===r.type&&1==r.value&&this.goToCategories(),"CreateCategory"===r.type&&1==r.value&&this.goToCreateCategories(),"UpdateCategory"===r.type&&(this.category_to_update=r.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.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.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.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.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.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.cdr.detectChanges()}selectCategories(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectVerification(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectEmail(){let c=document.getElementById("categories-button"),n=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),r=document.getElementById("email-button");this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.selectMenu(r,"text-white bg-primary-100")}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(e.gRc),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-admin"]],decls:53,vars:33,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","mb-8"],["id","categories-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"],["id","verify-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"],["id","revenue-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"],["id","email-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,"category"]],template:function(n,l){1&n&&(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")(17,"a",11),e.bIt("click",function(){return l.goToCategories()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"li")(21,"a",11),e.bIt("click",function(){return l.goToVerification()}),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"li")(25,"a",11),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li")(29,"a",11),e.bIt("click",function(){return l.goToEmail()}),e.EFF(30),e.nI1(31,"translate"),e.k0s()()()(),e.j41(32,"div",12)(33,"div",13)(34,"div",14)(35,"button",15),e.bIt("click",function(){return l.goToCategories()}),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.j41(38,"button",16),e.bIt("click",function(){return l.goToVerification()}),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"button",17),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"button",18),e.bIt("click",function(){return l.goToEmail()}),e.EFF(45),e.nI1(46,"translate"),e.k0s()()(),e.DNE(47,fJ2,1,0,"admin-categories")(48,uJ2,1,0,"create-category")(49,mJ2,1,1,"update-category",19)(50,pJ2,1,0,"verification")(51,hJ2,1,0,"operator-revenue-sharing")(52,gJ2,1,0,"email"),e.k0s()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,15,"ADMIN._admin")),e.R7$(15),e.JRh(e.bMT(19,17,"ADMIN._categories")),e.R7$(4),e.JRh(e.bMT(23,19,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(27,21,"ADMIN._revenue")),e.R7$(4),e.JRh(e.bMT(31,23,"ADMIN._email")),e.R7$(6),e.SpI(" ",e.bMT(37,25,"ADMIN._categories")," "),e.R7$(3),e.SpI(" ",e.bMT(40,27,"ADMIN._verification")," "),e.R7$(3),e.SpI(" ",e.bMT(43,29,"ADMIN._revenue")," "),e.R7$(3),e.SpI(" ",e.bMT(46,31,"ADMIN._email")," "),e.R7$(2),e.vxM(47,l.show_categories?47:-1),e.R7$(),e.vxM(48,l.show_create_categories?48:-1),e.R7$(),e.vxM(49,l.show_update_categories?49:-1),e.R7$(),e.vxM(50,l.show_verification?50:-1),e.R7$(),e.vxM(51,l.show_revenue?51:-1),e.R7$(),e.vxM(52,l.show_email?52:-1))},dependencies:[vw1,gW2,AW2,aJ2,iJ2,dJ2,s1.D9]})}}return t})();const jd1=(t,a)=>a.id,eG=(t,a)=>({"break-all":t,"break-words":a});function LJ2(t,a){1&t&&(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 CJ2(t,a){if(1&t&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",e.l_i(2,eG,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name)}}function zJ2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CATALOGS._no_cat")))}function MJ2(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.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,CJ2,2,5,"span",18,jd1,!1,zJ2,3,3,"span",19),e.k0s(),e.j41(11,"div",20)(12,"button",21),e.bIt("click",function(l){const r=e.eBV(c).$implicit;return e.XpG(2).showFullDesc(r),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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(9,eG,n.hasLongWord(c.name,20),!n.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 xJ2(t,a){if(1&t&&(e.j41(0,"div",10),e.Z7z(1,MJ2,19,12,"div",11,jd1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.catalogs)}}function bJ2(t,a){if(1&t){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 yJ2(t,a){if(1&t&&e.DNE(0,bJ2,5,0,"div",26),2&t){const c=e.XpG();e.vxM(0,c.page_check?0:-1)}}function FJ2(t,a){1&t&&(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 vJ2(t,a){if(1&t&&(e.j41(0,"span",39),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("ngClass",e.l_i(2,eG,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function kJ2(t,a){1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CATALOGS._no_cat")," "))}function wJ2(t,a){if(1&t){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,vJ2,2,5,"span",39,jd1,!1,kJ2,3,3,"span",40),e.k0s()()()()}if(2&t){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,eG,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 SJ2=(()=>{class t{constructor(c,n,l,r){this.router=c,this.api=n,this.cdr=l,this.paginationService=r,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=h1.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=AC1,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",n=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))})}getCatalogs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:n.filter},n.api.getCatalogs.bind(n.api)).then(r=>{n.page_check=r.page_check,n.catalogs=r.items.filter(m=>m.id!==h1.c.DFT_CATALOG_ID),n.nextCatalogs=r.nextItems,n.page=r.page,n.loading=!1,n.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,b1.A)(function*(){yield c.getCatalogs(!0)})()}showFullDesc(c){this.showDesc=!0,this.showingCat=c}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-catalogs"]],hostBindings:function(n,l){1&n&&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",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(n,l){1&n&&(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,LJ2,6,0,"div",4)(9,xJ2,3,0)(10,yJ2,1,1)(11,FJ2,6,0),e.k0s(),e.DNE(12,wJ2,16,10,"div",5)),2&n&&(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:[L.YU,T0,s1.D9]})}}return t})();var NJ2=v(9350),EJ2=v(7707);function wE(t,a){const c="object"==typeof a;return new Promise((n,l)=>{const r=new EJ2.Ms({next:m=>{n(m),r.unsubscribe()},error:l,complete:()=>{c?n(a.defaultValue):l(new NJ2.G)}});t.subscribe(r)})}class Jy{static{this.BASE_URL=h1.c.BASE_URL}static{this.CHARGING=h1.c.CHARGING}static{this.ORDER_LIMIT=h1.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),this.http.post(`${Jy.BASE_URL}${Jy.CHARGING}/api/orderManagement/orders/confirm/`,c,{observe:"response"})}static{this.\u0275fac=function(c){return new(c||Jy)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:Jy,factory:Jy.\u0275fac,providedIn:"root"})}}const cG=[{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"}],Qy=[{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"}],DJ2={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 ww1(t,a){t=t.split("-"),a=a.split("-");for(var c=t[0].split("."),n=a[0].split("."),l=0;l<3;l++){var r=Number(c[l]),m=Number(n[l]);if(r>m)return 1;if(m>r)return-1;if(!isNaN(r)&&isNaN(m))return 1;if(isNaN(r)&&!isNaN(m))return-1}return t[1]&&a[1]?t[1]>a[1]?1:t[1]t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.split(""));!(n=c()).done;)a+=FQ2(n.value,a)||"";return a}function FQ2(t,a,c){return"+"===t?a?void("function"==typeof c&&c("end")):"+":function $w1(t){return xQ2[t]}(t)}function Bw1(t,a){(null==a||a>t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}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=n()).done;){var r=l.value;t.indexOf(r)<0&&c.push(r)}return c.sort(function(m,z){return m-z})}(r,m.possibleLengths()))}else if(c&&!l)return"INVALID_LENGTH";var z=t.length,F=r[0];return F===z?"IS_POSSIBLE":F>z?"TOO_SHORT":r[r.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Uw1(t,a,c){return"IS_POSSIBLE"===Gd1(t,a,c)}function ef(t,a){return t=t||"",new RegExp("^(?:"+a+")$").test(t)}function Hw1(t,a){(null==a||a>t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(DQ2);!(r=l()).done;){var m=r.value;if(qd1(n,m,c))return m}}}}function qd1(t,a,c){return!(!(a=c.type(a))||!a.pattern()||a.possibleLengths()&&a.possibleLengths().indexOf(t.length)<0)&&ef(t,a.pattern())}var IQ2=new RegExp("(["+y9+"])");function Gw1(t,a){(null==a||a>t.length)&&(a=t.length);for(var c=0,n=Array(a);c=t.length?{done:!0}:{done:!1,value:t[n++]}}}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);!(r=l()).done;){var m=r.value;if(n.selectNumberingPlan(m),n.leadingDigits()){if(t&&0===t.search(n.leadingDigits()))return m}else if(Yd1({phone:t,country:m},void 0,n.metadata))return m}}(c,{countries:l,metadata:n.metadata}):void 0}function Xd1(t,a,c){var n=function $Q2(t,a){if(t&&a.numberingPlan.nationalPrefixForParsing()){var c=new RegExp("^(?:"+a.numberingPlan.nationalPrefixForParsing()+")"),n=c.exec(t);if(n){var l,r,I,m=n.length-1,z=m>0&&n[m];if(a.nationalPrefixTransformRule()&&z?(l=t.replace(c,a.nationalPrefixTransformRule()),m>1&&(r=n[1])):(l=t.slice(n[0].length),z&&(r=n[1])),z){var J=t.indexOf(n[1]);t.slice(0,J)===a.numberingPlan.nationalPrefix()&&(I=a.numberingPlan.nationalPrefix())}else I=n[0];return{nationalNumber:l,nationalPrefix:I,carrierCode:r}}}return{nationalNumber:t}}(t,c),l=n.carrierCode,r=n.nationalNumber;if(r!==t){if(!function UQ2(t,a,c){return!(ef(t,c.nationalNumberPattern())&&!ef(a,c.nationalNumberPattern()))}(t,r,c))return{nationalNumber:t};if(c.numberingPlan.possibleLengths()&&(a||(a=Yw1(c.numberingPlan.callingCode(),{nationalNumber:r,metadata:c})),!function HQ2(t,a,c){switch(Gd1(t,a,c)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(r,a,c)))return{nationalNumber:t}}return{nationalNumber:r,carrierCode:l}}function qw1(t,a,c,n,l){if(!t)return{};var r;if("+"!==t[0]){var m=function PQ2(t,a,c,n){if(a){var l=new _e(n);l.selectNumberingPlan(a,c);var r=new RegExp(l.IDDPrefix());if(0===t.search(r)){var m=(t=t.slice(t.match(r)[0].length)).match(IQ2);if(!(m&&null!=m[1]&&m[1].length>0&&"0"===m[1]))return t}}}(t,a||c,n,l);if(!m||m===t){if(a||c||n){var z=function GQ2(t,a,c,n,l){var r=a||c?lG(a||c,l):n;if(0===t.indexOf(r)){(l=new _e(l)).selectNumberingPlan(a||c,r);var m=t.slice(r.length),F=Xd1(m,a,l).nationalNumber,J=Xd1(t,a,l).nationalNumber;if(!ef(J,l.nationalNumberPattern())&&ef(F,l.nationalNumberPattern())||"TOO_LONG"===Gd1(J,a,l))return{countryCallingCode:r,number:m}}return{number:t}}(t,a,c,n,l),F=z.countryCallingCode;if(F)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:F,number:z.number}}return{number:t}}r=!0,t="+"+m}if("0"===t[1])return{};l=new _e(l);for(var J=2;J-1<=XJ2&&J<=t.length;){var d1=t.slice(1,J);if(l.hasCallingCode(d1))return l.selectNumberingPlan(d1),{countryCallingCodeSource:r?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:d1,number:t.slice(J)};J++}return{}}var qQ2=/(\$\d)/;var WQ2=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,Jw1={formatExtension:function(a,c,n){return"".concat(a).concat(n.ext()).concat(c)}};function aG(t,a,c,n,l){var r=function lZ2(t,a){return function oZ2(t,a){for(var c=0;c0){var n=c.leadingDigitsPatterns()[c.leadingDigitsPatterns().length-1];if(0!==a.search(n))return!1}return ef(a,c.pattern())})}(n.formats(),t);return r?function XQ2(t,a,c){var n=c.useInternationalFormat,l=c.withNationalPrefix,z=t.replace(new RegExp(a.pattern()),n?a.internationalFormat():l&&a.nationalPrefixFormattingRule()?a.format().replace(qQ2,a.nationalPrefixFormattingRule()):a.format());return n?function YQ2(t){return t.replace(new RegExp("[".concat(sG,"]+"),"g")," ").trim()}(z):z}(t,r,{useInternationalFormat:"INTERNATIONAL"===c,withNationalPrefix:!(r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&l&&!1===l.nationalPrefix),carrierCode:a,metadata:n}):t}function Wd1(t,a,c,n){return a?n(t,a,c):t}function EE(t){return(EE="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})(t)}function Qw1(t,a){var c=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),c.push.apply(c,n)}return c}function Zw1(t){for(var a=1;a=0}(a,r,c)}):[]}(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function SQ2(t,a,c){if(void 0===a&&(a={}),c=new _e(c),a.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!c.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));c.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(t.countryCallingCode)}}if(c.possibleLengths())return Uw1(t.phone||t.nationalNumber,t.country,c);if(t.countryCallingCode&&c.isNonGeographicCallingCode(t.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 TQ2(t,a,c){return a=a||{},(c=new _e(c)).selectNumberingPlan(t.country,t.countryCallingCode),c.hasTypes()?void 0!==Yd1(t,a,c.metadata):ef(a.v2?t.nationalNumber:t.phone,c.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new _e(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(c){return this.number===c.number&&this.ext===c.ext}},{key:"getType",value:function(){return Yd1(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(c,n){return function nZ2(t,a,c,n){if(c=c?function aZ2(){for(var t=1,a=arguments.length,c=new Array(a),n=0;n=t.length)return"";var n=t.indexOf(";",c);return n>=0?t.substring(c,n):t.substring(c)}(t);if(!function kZ2(t){return null===t||0!==t.length&&(CZ2.test(t)||yZ2.test(t))}(n))throw new GL("NOT_A_NUMBER");if(null===n)l=c(t)||"";else{l="",n.charAt(0)===cS1&&(l+=n);var m,r=t.indexOf(nS1);m=r>=0?r+nS1.length:0;var z=t.indexOf(Qd1);l+=t.substring(m,z)}var F=l.indexOf(FZ2);if(F>0&&(l=l.substring(0,F)),""!==l)return l}(t,{extractFormattedPhoneNumber:function(m){return function RZ2(t,a,c){if(t){if(t.length>SZ2){if(c)throw new GL("TOO_LONG");return}if(!1===a)return t;var n=t.search(NZ2);if(!(n<0))return t.slice(n).replace(EZ2,"")}}(m,c,a)}});if(!n)return{};if(!function _Q2(t){return t.length>=Bd1&&gQ2.test(t)}(n))return function LQ2(t){return pQ2.test(t)}(n)?{error:"TOO_SHORT"}:{};var l=function CQ2(t){var a=t.search(Iw1);if(a<0)return{};for(var c=t.slice(0,a),n=t.match(Iw1),l=1;lqJ2){if(a.v2)throw new GL("TOO_LONG");return{}}if(a.v2){var N1=new mZ2(J,I,c.metadata);return F&&(N1.country=F),i1&&(N1.carrierCode=i1),r&&(N1.ext=r),N1.__countryCallingCodeSource=d1,N1}var J1=!!(a.extended?c.hasSelectedNumberingPlan():F)&&ef(I,c.nationalNumberPattern());return a.extended?{country:F,countryCallingCode:J,carrierCode:i1,valid:J1,possible:!!J1||!(!0!==a.extended||!c.possibleLengths()||!Uw1(I,F,c)),phone:I,ext:r}:J1?function IZ2(t,a,c){var n={country:t,phone:a};return c&&(n.ext=c),n}(F,I,r):{}}function DE(t){return(DE="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})(t)}function lS1(t,a){var c=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);a&&(n=n.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),c.push.apply(c,n)}return c}function sS1(t){for(var a=1;at.length)&&(a=t.length);for(var c=0,n=Array(a);ca.code;function cK2(t,a){1&t&&(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 tK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function nK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function lK2(t,a){if(1&t&&(e.j41(0,"option",45),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function sK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function aK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function oK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function iK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function rK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function dK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function fK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function uK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_larger")))}function mK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_email")))}function pK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._email_format")))}function hK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function gK2(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.selectPrefix(l))}),e.j41(1,"div",49),e.EFF(2),e.k0s()()}if(2&t){const c=a.$implicit;e.BMQ("data-country",c.country),e.R7$(2),e.SpI(" ",c.text," ")}}function _K2(t,a){if(1&t&&(e.j41(0,"div",40)(1,"ul",46,0)(3,"li"),e.Z7z(4,gK2,3,2,"button",47,eK2),e.k0s()()()),2&t){const c=e.XpG(2);e.R7$(4),e.Dyx(c.prefixes)}}function LK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2,"You cannot enter negative numbers."),e.k0s()())}function CK2(t,a){1&t&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function zK2(t,a){if(1&t){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&t){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 MK2(t,a){if(1&t){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&t){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 xK2(t,a){if(1&t){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,tK2,4,3,"p",12)(7,nK2,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,lK2,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,sK2,4,3,"p",12)(20,aK2,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,oK2,4,3,"p",12)(27,iK2,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,rK2,4,3,"p",12)(34,dK2,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,fK2,4,3,"p",12)(41,uK2,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,mK2,4,3,"p",12)(48,pK2,4,3,"p",12)(49,hK2,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,_K2,6,0,"div",40),e.joV(),e.nrm(76,"input",41),e.k0s(),e.DNE(77,LK2,3,0,"p",12)(78,CK2,4,3),e.k0s()(),e.j41(79,"div",42),e.DNE(80,zK2,3,5,"button",43)(81,MK2,3,5),e.k0s()()}if(2&t){let c,n,l,r,m,z,F,I,J,d1,i1,N1,J1,u2,F2,U2,R0,r4,V0,e4,a0;const G2=e.XpG();e.Y8G("formGroup",G2.billingForm),e.R7$(3),e.SpI("",e.bMT(4,36,"BILLING._title")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(c=G2.billingForm.get("name"))&&c.touched&&null!=(c=G2.billingForm.get("name"))&&c.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(6,null!=(n=G2.billingForm.get("name"))&&n.touched&&null!=(n=G2.billingForm.get("name"))&&n.hasError("required")?6:-1),e.R7$(),e.vxM(7,null!=(l=G2.billingForm.get("name"))&&l.invalid&&null!=(l=G2.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",G2.euCountries),e.R7$(3),e.SpI("",e.bMT(17,40,"BILLING._city")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(r=G2.billingForm.get("city"))&&r.touched&&null!=(r=G2.billingForm.get("city"))&&r.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(19,null!=(m=G2.billingForm.get("city"))&&m.touched&&null!=(m=G2.billingForm.get("city"))&&m.hasError("required")?19:-1),e.R7$(),e.vxM(20,null!=(z=G2.billingForm.get("city"))&&z.invalid&&null!=(z=G2.billingForm.get("city"))&&null!=z.errors&&z.errors.maxlength?20:-1),e.R7$(3),e.SpI("",e.bMT(24,42,"BILLING._state")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(F=G2.billingForm.get("stateOrProvince"))&&F.touched&&null!=(F=G2.billingForm.get("stateOrProvince"))&&F.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(26,null!=(I=G2.billingForm.get("stateOrProvince"))&&I.touched&&null!=(I=G2.billingForm.get("stateOrProvince"))&&I.hasError("required")?26:-1),e.R7$(),e.vxM(27,null!=(J=G2.billingForm.get("stateOrProvince"))&&J.invalid&&null!=(J=G2.billingForm.get("stateOrProvince"))&&null!=J.errors&&J.errors.maxlength?27:-1),e.R7$(3),e.SpI("",e.bMT(31,44,"BILLING._post_code")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(d1=G2.billingForm.get("postCode"))&&d1.touched&&null!=(d1=G2.billingForm.get("postCode"))&&d1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(33,null!=(i1=G2.billingForm.get("postCode"))&&i1.touched&&null!=(i1=G2.billingForm.get("postCode"))&&i1.hasError("required")?33:-1),e.R7$(),e.vxM(34,null!=(N1=G2.billingForm.get("postCode"))&&N1.invalid&&null!=(N1=G2.billingForm.get("postCode"))&&null!=N1.errors&&N1.errors.maxlength?34:-1),e.R7$(3),e.SpI("",e.bMT(38,46,"BILLING._street")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(J1=G2.billingForm.get("street"))&&J1.touched&&null!=(J1=G2.billingForm.get("street"))&&J1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(40,null!=(u2=G2.billingForm.get("street"))&&u2.touched&&null!=(u2=G2.billingForm.get("street"))&&u2.hasError("required")?40:-1),e.R7$(),e.vxM(41,null!=(F2=G2.billingForm.get("street"))&&F2.invalid&&null!=(F2=G2.billingForm.get("street"))&&null!=F2.errors&&F2.errors.maxlength?41:-1),e.R7$(3),e.SpI("",e.bMT(45,48,"BILLING._email")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(U2=G2.billingForm.get("email"))&&U2.touched&&null!=(U2=G2.billingForm.get("email"))&&U2.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(47,null!=(R0=G2.billingForm.get("email"))&&R0.invalid&&null!=(R0=G2.billingForm.get("email"))&&null!=R0.errors&&R0.errors.maxlength?47:-1),e.R7$(),e.vxM(48,null!=(r4=G2.billingForm.get("email"))&&r4.invalid&&null!=(r4=G2.billingForm.get("email"))&&null!=r4.errors&&r4.errors.pattern?48:-1),e.R7$(),e.vxM(49,null!=(V0=G2.billingForm.get("email"))&&V0.touched&&null!=(V0=G2.billingForm.get("email"))&&V0.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(" ",G2.phonePrefix.flag," ",G2.phonePrefix.code," "),e.R7$(3),e.vxM(75,1==G2.prefixCheck?75:-1),e.R7$(),e.Y8G("ngClass",null!=(e4=G2.billingForm.get("telephoneNumber"))&&e4.touched&&1==(null==(e4=G2.billingForm.get("telephoneNumber"))?null:e4.invalid)?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(77,null!=(a0=G2.billingForm.get("telephoneNumber"))&&a0.invalid&&null!=(a0=G2.billingForm.get("telephoneNumber"))&&null!=a0.errors&&a0.errors.min&&null!=(a0=G2.billingForm.get("telephoneNumber"))&&a0.touched?77:null!=(a0=G2.billingForm.get("telephoneNumber"))&&a0.touched&&null!=(a0=G2.billingForm.get("telephoneNumber"))&&a0.hasError("required")?78:-1),e.R7$(3),e.vxM(80,G2.is_create?80:81)}}function bK2(t,a){1&t&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_phone")))}function yK2(t,a){1&t&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_email")))}function FK2(t,a){if(1&t&&(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,bK2,3,3,"div",55)(6,yK2,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&t){let c,n;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==(n=l.billingForm.get("email"))?null:n.invalid)?6:-1)}}function vK2(t,a){if(1&t&&e.nrm(0,"error-message",3),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Zd1=(()=>{class t{constructor(c,n,l,r,m){this.localStorage=c,this.cdr=n,this.router=l,this.accountService=r,this.eventMessage=m,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=[...cG].sort((z,F)=>this.getCountryName(z.text).localeCompare(this.getCountryName(F.text))),this.countries=Qy,this.phonePrefix=cG[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,P1.Q)(this.destroy$)).subscribe(z=>{"ChangedSession"===z.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-H2().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:h1.c.SELLER_ROLE};else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,console.log("loggedOrg info"),console.log(n),this.partyInfo={id:this.partyId,name:n.name,href:this.partyId,role:h1.c.SELLER_ROLE}}}setDefaultValues(){if(null!=this.billAcc){const c=ew(this.billAcc.telephoneNumber);if(c){let n=this.prefixes.filter(l=>l.code==="+"+c.countryCallingCode);n.length>0&&(this.phonePrefix=n[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 n=ew(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(n){if(!n.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 n=ew(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(n){if(!n.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 n=c.match(/\+\d+\s+(.+)$/);return n?n[1]:c}onKeydown(c){if(!this.prefixCheck)return;const n=c.key.toLowerCase();if(!/^[a-z]$/.test(n))return;const l=this.prefixes.find(m=>this.getCountryName(m.text).toLowerCase().startsWith(n));if(!l||!this.prefixListRef)return;const r=this.prefixListRef.nativeElement.querySelector(`[data-country="${l.country}"]`);r&&r.scrollIntoView({block:"nearest"})}selectPrefix(c){console.log(c),this.prefixCheck=!1,this.phonePrefix=c}detectCountry(){let r=function HJ2(){return function TJ2(t,a){var c=Array.prototype.slice.call(a);return c.push(DJ2),t.apply(this,c)}(lG,arguments)}(navigator.language.split("-")[1].toUpperCase());if(r){let m=this.prefixes.filter(z=>z.code==="+"+r);m.length>0&&(this.phonePrefix=m[0])}}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(e.gRc),e.rXU(N2.Ix),e.rXU(s0.O),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-billing-account-form"]],viewQuery:function(n,l){if(1&n&&e.GBs(KZ2,5),2&n){let r;e.mGM(r=e.lsd())&&(l.prefixListRef=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("keydown",function(m){return l.onKeydown(m)})},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(n,l){1&n&&e.DNE(0,cK2,6,0,"div",1)(1,xK2,82,54)(2,FK2,12,2,"div",2)(3,vK2,1,1,"error-message",3),2&n&&(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:[L.YU,L.Sq,p.qT,p.xH,p.y7,p.me,p.Q0,p.wz,p.BC,p.cb,p.j4,p.JD,Q0,s1.D9]})}}return t})();const kK2=(t,a)=>({"break-all":t,"break-words":a});function wK2(t,a){if(1&t){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&t){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 SK2(t,a){if(1&t){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&t){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 iS1=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.accountService=n,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,P1.Q)(this.destroy$)).subscribe(r=>{0==r.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(s0.O),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-billing-address"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(m){return l.selectBillingAddress(m)}),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(m){return l.editBill=!0,m.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,wK2,14,8,"div",9)(14,SK2,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&n&&(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,kK2,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:[L.YU,Zd1,s1.D9]})}}return t})();const rS1=(t,a)=>a.id,NK2=(t,a)=>({"break-all":t,"break-words":a});function EK2(t,a){1&t&&(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&t&&(e.R7$(3),e.JRh(e.bMT(4,1,"SHOPPING_CART._loading_purchase")))}function DK2(t,a){if(1&t){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 TK2(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-billing-address",39),e.bIt("selectedEvent",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onSelected(l))})("deletedEvent",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onDeleted(l))}),e.k0s()}if(2&t){const n=a.$index;e.Y8G("data",a.$implicit)("position",n)}}function RK2(t,a){if(1&t&&(e.j41(0,"div",18),e.Z7z(1,TK2,1,2,"app-billing-address",38,rS1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.billingAddresses)}}function AK2(t,a){1&t&&e.nrm(0,"app-billing-account-form",40),2&t&&e.Y8G("preferred",!0)}function IK2(t,a){1&t&&(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 PK2(t,a){if(1&t&&e.nrm(0,"img",49),2&t){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function $K2(t,a){1&t&&e.nrm(0,"img",58)}function jK2(t,a){1&t&&e.EFF(0," Estimated price: ")}function OK2(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function BK2(t,a){if(1&t&&(e.j41(0,"div",59)(1,"span",60),e.EFF(2),e.k0s(),e.j41(3,"span",61),e.DNE(4,jK2,1,0),e.EFF(5),e.DNE(6,OK2,1,1),e.k0s()()),2&t){const c=a.$implicit,n=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,n.hasKey(c,"recurringChargePeriod")?6:-1)}}function VK2(t,a){if(1&t&&(e.j41(0,"div",54),e.Z7z(1,BK2,7,5,"div",59,e.fX1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function UK2(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.goToProdDetails(l))}),e.DNE(4,PK2,1,1,"img",49)(5,$K2,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,VK2,3,0,"div",54),e.k0s()()(),e.j41(12,"div",52)(13,"button",55),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.deleteProduct(l))}),e.qSk(),e.j41(14,"svg",56),e.nrm(15,"path",57),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,NK2,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.vxM(11,c.options.pricing?11:-1)}}function HK2(t,a){if(1&t&&e.Z7z(0,UK2,16,7,"div",45,rS1),2&t){const c=e.XpG();e.Dyx(c.items)}}function GK2(t,a){1&t&&(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 YK2(t,a){if(1&t){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&t){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 qK2(t,a){if(1&t&&e.nrm(0,"error-message",29),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}class RE{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c,n,l,r,m,z,F,I,J,d1){var i1=this;this.localStorage=a,this.account=c,this.orderService=n,this.eventMessage=l,this.priceService=r,this.cartService=m,this.paymentService=z,this.api=F,this.cdr=I,this.router=J,this.route=d1,this.faCartShopping=AL,this.PURCHASE_ENABLED=h1.c.PURCHASE_ENABLED,this.TAX_RATE=h1.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,P1.Q)(this.destroy$)).subscribe(function(){var N1=(0,b1.A)(function*(J1){"BillAccChanged"===J1.type&&i1.getBilling(),1==J1.value&&(i1.addBill=!1),"ChangedSession"===J1.type&&(console.log("changing session..."),yield i1.initCheckoutData()),"AddedCartItem"===J1.type&&(i1.loadingItems=!0,console.log("Elemento a\xf1adido"),i1.cartService.getShoppingCart().then(function(){var u2=(0,b1.A)(function*(F2){console.log("---CARRITO API---"),console.log(F2),i1.items=F2,i1.providerId&&(yield i1.getProviderInfo(),i1.groupItemsByOwner(i1.providerId)),i1.cdr.detectChanges(),i1.getTotalPrice(),i1.loadingItems=!1,console.log("------------------")});return function(F2){return u2.apply(this,arguments)}}())),"RemovedCartItem"===J1.type&&(i1.loadingItems=!0,i1.cartService.getShoppingCart().then(function(){var u2=(0,b1.A)(function*(F2){console.log("---CARRITO API---"),console.log(F2),i1.items=F2,i1.providerId&&(yield i1.getProviderInfo(),i1.groupItemsByOwner(i1.providerId)),i1.cdr.detectChanges(),i1.getTotalPrice(),i1.loadingItems=!1,console.log("------------------")});return function(F2){return u2.apply(this,arguments)}}()))});return function(J1){return N1.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()==M9.PRICE.RECURRING?a.options.pricing.recurringChargePeriodType:a.options.pricing.priceType?.toLocaleLowerCase()==M9.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 n=0;nn.options.pricing).map(n=>a.createProductPayload(n));console.log("Productos creados:",c);try{const n=a.createProductOrder(c);console.log("--- order ---"),console.log(n);const l=yield wE(a.orderService.postProductOrder(n)),r=l.headers.get("X-Redirect-URL");console.log(l.headers),console.log(r),console.log("PROD ORDER DONE"),r?(console.log("redirectURL"),window.location.href=r):(console.log("non-redirectURL"),yield a.emptyShoppingCart(),a.goToInventory())}catch(n){a.handleError(n,"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:h1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBillingAddress.id,href:this.selectedBillingAddress.id},notificationContact:this.selectedBillingAddress.email};if(""!=this.orderNote){const n={text:this.orderNote,id:`urn:ngsi-ld:note:${A4()}`,author:this.relatedParty,date:(new Date).toISOString()};c.note=[n]}return c}emptyShoppingCart(){var a=this;return(0,b1.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 n=c.ref.split("?jwt");c.ref=n[0],c.jwt=n[1]}this.loading_purchase=!0,wE(this.paymentService.completePayment(c)).then(n=>{this.loading_purchase=!1,console.log("--- Payment Response ---"),console.log(n),"accept"==a.action&&200==n.status?this.emptyShoppingCart().then(()=>this.goToInventory()):this.initCheckoutData()}).catch(n=>{this.loading_purchase=!0,console.log("--- Payment Error ---"),console.log(n),this.initCheckoutData()})}else this.initCheckoutData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initCheckoutData(){var a=this;return(0,b1.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(r=>r.id==c.logged_as);a.relatedParty=l.partyId}console.log("--- Login Info ---"),console.log(c);let n=yield a.cartService.getShoppingCart();console.log("---CARRITO API---"),console.log(n),a.items=n,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,b1.A)(function*(){for(let c=0;cn.relatedParty?.find(r=>r.role===h1.c.SELLER_ROLE)?.id===a);console.log(c),this.items=c}getBilling(){var a=this;return(0,b1.A)(function*(){a.selectedBillingAddress=null;let c=!1;a.billingAddresses=[];let n=yield a.account.getBillingAccount();for(let l=0;l0),a.validBillAddr=!!a.selectedBillingAddress?.id,a.cdr.detectChanges()})()}onSelected(a){var c=this;return(0,b1.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 n=JSON.parse(JSON.stringify(c.items));for(const l of n){console.log("---- cart item ----"),console.log(l);let m=(yield(0,V2.s)(c.priceService.calculatePrice({productOrder:{id:A4(),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;m=m.map(z=>({...z,id:l.options.pricing[0].id})),l.options.pricing=m}yield c.emptyShoppingCart(),c.items=n;for(const l of c.items)yield c.cartService.addItemShoppingCart(l);c.getTotalPrice(),c.cdr.detectChanges()}catch(n){c.validBillAddr=!1,c.cdr.detectChanges(),c.handleError(n,"Invalid biling address")}})()}buildUsageFromCartItem(a){var c=this;return(0,b1.A)(function*(){if(!a.options.pricing||0===a.options.pricing.length)return[];let n=[];const l=yield c.api.getOfferingPrice(a.options.pricing[0].id);if(l.isBundle)for(const r of l.bundledPopRelationship){const m=yield c.api.getOfferingPrice(r.id);m.usageSpecId&&m.unitOfMeasure&&n.push({usageSpecification:{id:m.usageSpecId},usageCharacteristic:[{name:m.unitOfMeasure.units,value:1}]})}else n.push(l);return n})()}onDeleted(a){console.log("Deleting billing account")}deleteProduct(a){var c=this;return(0,b1.A)(function*(){yield c.cartService.removeItemShoppingCart(a.id),console.log("deleted"),c.eventMessage.emitRemovedCartItem(a),c.cartService.getShoppingCart().then(function(){var n=(0,b1.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 n.apply(this,arguments)}}())})()}goToProdDetails(a){this.router.navigate(["/search/",a.id])}hasLongWord(a,c=20){return!!a&&a.split(/\s+/).some(n=>n.length>c)}static{this.\u0275fac=function(c){return new(c||RE)(e.rXU(C2.s),e.rXU(s0.O),e.rXU(w8),e.rXU(j2),e.rXU(pe),e.rXU(d8),e.rXU(Jy),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(N2.Ix),e.rXU(N2.nX))}}static{this.\u0275cmp=e.VBU({type:RE,selectors:[["app-checkout"]],hostBindings:function(c,n){1&c&&e.bIt("click",function(){return n.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,n){1&c&&(e.DNE(0,EK2,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,DK2,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,RK2,3,0,"div",18)(37,AK2,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(r){return e.DH7(n.orderNote,r)||(n.orderNote=r),r}),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,IK2,6,0,"div",25)(58,HK2,2,0),e.k0s(),e.DNE(59,GK2,7,0,"div",26),e.j41(60,"button",27),e.bIt("click",function(){return n.orderProduct()}),e.EFF(61),e.nI1(62,"translate"),e.k0s()()()()(),e.DNE(63,YK2,14,8,"div",28)(64,qK2,1,1,"error-message",29)),2&c&&(e.vxM(0,n.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("",n.contact.username," ",n.contact.email,""),e.R7$(7),e.JRh(e.bMT(30,26,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(31,n.billingAddresses.length>0?31:-1),e.R7$(3),e.JRh(e.bMT(35,28,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(36,n.billingAddresses.length>0?36:37),e.R7$(8),e.JRh(e.bMT(45,30,"SHOPPING_CART._order_note")),e.R7$(4),e.R50("ngModel",n.orderNote),e.R7$(6),e.JRh(e.bMT(55,32,"SHOPPING_CART._your_order")),e.R7$(3),e.vxM(57,n.loadingItems?57:58),e.R7$(2),e.vxM(59,n.validBillAddr?-1:59),e.R7$(),e.Y8G("disabled",0==n.items.length||!n.validBillAddr)("ngClass",0!=n.items.length&&n.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,n.addBill?63:-1),e.R7$(),e.vxM(64,n.showError?64:-1))},dependencies:[L.YU,p.me,p.BC,p.vS,iS1,Zd1,Q0,s1.D9]})}}let XK2=(()=>{class t{constructor(c){this.http=c,this.BASE_URL=h1.c.BASE_URL}sendEmail(c){return this.http.post(`${this.BASE_URL}/contact-us`,c)}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function WK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function JK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function QK2(t,a){if(1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&t){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 ZK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function KK2(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function e10(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function c10(t,a){1&t&&(e.j41(0,"span",29),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.privacyRequired")," "))}function t10(t,a){if(1&t){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,"div",16)(11,"label",17),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",18),e.nI1(15,"translate"),e.DNE(16,WK2,3,3,"span",19),e.k0s(),e.j41(17,"div",16)(18,"label",17),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"input",20),e.nI1(22,"translate"),e.DNE(23,JK2,3,3,"span",19),e.k0s()(),e.j41(24,"div",16)(25,"label",17),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",21),e.nI1(29,"translate"),e.DNE(30,QK2,4,5,"span",19),e.k0s(),e.j41(31,"div",15)(32,"div",16)(33,"label",17),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.nrm(36,"input",22),e.nI1(37,"translate"),e.DNE(38,ZK2,3,3,"span",19),e.k0s(),e.j41(39,"div",16)(40,"label",17),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.nrm(43,"input",23),e.nI1(44,"translate"),e.DNE(45,KK2,3,3,"span",19),e.k0s()(),e.j41(46,"div",16)(47,"label",17),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.nrm(50,"textarea",24),e.nI1(51,"translate"),e.DNE(52,e10,3,3,"span",19),e.k0s(),e.j41(53,"label",25),e.nrm(54,"input",26),e.j41(55,"span"),e.EFF(56),e.nI1(57,"translate"),e.j41(58,"a",27),e.EFF(59),e.nI1(60,"translate"),e.k0s(),e.EFF(61),e.nI1(62,"translate"),e.j41(63,"a",28),e.EFF(64),e.nI1(65,"translate"),e.k0s(),e.EFF(66),e.nI1(67,"translate"),e.k0s()(),e.DNE(68,c10,3,3,"span",29),e.j41(69,"label",30),e.nrm(70,"input",31),e.j41(71,"span"),e.EFF(72),e.nI1(73,"translate"),e.k0s()(),e.j41(74,"button",32),e.EFF(75),e.nI1(76,"translate"),e.k0s()()()}if(2&t){const c=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,41,"ContactUs.form.title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,43,"ContactUs.form.subtitle")," "),e.R7$(2),e.Y8G("formGroup",c.form),e.R7$(4),e.SpI(" ",e.bMT(13,45,"ContactUs.fields.firstName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("firstName")),e.Y8G("placeholder",e.bMT(15,47,"ContactUs.fields.firstName.placeholder")),e.R7$(2),e.vxM(16,c.hasError("firstName")?16:-1),e.R7$(3),e.SpI(" ",e.bMT(20,49,"ContactUs.fields.lastName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("lastName")),e.Y8G("placeholder",e.bMT(22,51,"ContactUs.fields.lastName.placeholder")),e.R7$(2),e.vxM(23,c.hasError("lastName")?23:-1),e.R7$(3),e.SpI(" ",e.bMT(27,53,"ContactUs.fields.email.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("email")),e.Y8G("placeholder",e.bMT(29,55,"ContactUs.fields.email.placeholder")),e.R7$(2),e.vxM(30,c.hasError("email")?30:-1),e.R7$(4),e.SpI(" ",e.bMT(35,57,"ContactUs.fields.organization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("organization")),e.Y8G("placeholder",e.bMT(37,59,"ContactUs.fields.organization.placeholder")),e.R7$(2),e.vxM(38,c.hasError("organization")?38:-1),e.R7$(3),e.SpI(" ",e.bMT(42,61,"ContactUs.fields.roleInOrganization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("roleInOrganization")),e.Y8G("placeholder",e.bMT(44,63,"ContactUs.fields.roleInOrganization.placeholder")),e.R7$(2),e.vxM(45,c.hasError("roleInOrganization")?45:-1),e.R7$(3),e.SpI(" ",e.bMT(49,65,"ContactUs.fields.message.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("message")),e.Y8G("placeholder",e.bMT(51,67,"ContactUs.fields.message.placeholder")),e.R7$(2),e.vxM(52,c.hasError("message")?52:-1),e.R7$(4),e.SpI(" ",e.bMT(57,69,"ContactUs.checkboxes.privacy.prefix")," "),e.R7$(3),e.SpI(" ",e.bMT(60,71,"ContactUs.checkboxes.privacy.privacyPolicy")," "),e.R7$(2),e.SpI(" ",e.bMT(62,73,"ContactUs.checkboxes.privacy.middle")," "),e.R7$(3),e.SpI(" ",e.bMT(65,75,"ContactUs.checkboxes.privacy.termsOfService")," "),e.R7$(2),e.SpI(" ",e.bMT(67,77,"ContactUs.checkboxes.privacy.suffix")," "),e.R7$(2),e.vxM(68,c.hasError("privacyAccepted")?68:-1),e.R7$(4),e.SpI(" ",e.bMT(73,79,"ContactUs.checkboxes.marketing")," "),e.R7$(3),e.SpI(" ",e.bMT(76,81,"ContactUs.cta.submit")," ")}}function n10(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",33)(1,"div",34)(2,"div",35)(3,"div",36),e.nrm(4,"fa-icon",37),e.k0s()(),e.j41(5,"h3",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",39),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",40)(12,"button",41),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&t){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 l10=(()=>{class t{constructor(){this.fb=(0,e.WQX)(p.ok),this.router=(0,e.WQX)(N2.Ix),this.contactUsService=(0,e.WQX)(XK2),this.faThumbsUp=Mv1,this.unsub=new S.B,this.submitted=!1,this.submittedSuccessfully=!1,this.form=this.fb.nonNullable.group({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 n=this.form.controls[c];return!!n&&n.invalid&&(n.touched||this.submitted)}onSubmit(){this.submitted=!0,this.form.markAllAsTouched(),!this.form.invalid&&this.contactUsService.sendEmail(this.form.getRawValue()).pipe((0,P1.Q)(this.unsub)).subscribe({next:()=>{this.submittedSuccessfully=!0}})}onContinueBrowsing(){this.submittedSuccessfully=!1,this.submitted=!1,this.form.reset({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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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,"grid","grid-cols-1","gap-4","sm:grid-cols-2"],[1,"contact-field"],[1,"contact-label"],["type","text","formControlName","firstName",1,"contact-input",3,"placeholder"],[1,"contact-error"],["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(n,l){1&n&&(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,t10,77,83,"div",10)(17,n10,15,10),e.k0s()()),2&n&&(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:[L.MD,p.X1,p.qT,p.me,p.Zm,p.BC,p.cb,p.j4,p.JD,s1.h,s1.D9,X2.dX,X2.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-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 t})();const s10=(t,a)=>a.id;function a10(t,a){if(1&t){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,r=e.XpG();return e.Njj(r.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&t){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 o10=(()=>{class t{constructor(c,n,l,r){this.eventMessage=c,this.localStorage=n,this.router=l,this.api=r,this.categories=[]}ngOnInit(){this.api.getDefaultCategories().then(c=>{for(let n=0;n{class t{constructor(){this.customerLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.customers._cards.access.title",hoverText:"DASHBOARD.customers._cards.access.desc",icon:cf1},{html:"DASHBOARD.customers._cards.discovery.title",hoverText:"DASHBOARD.customers._cards.discovery.desc",icon:lN1},{html:"DASHBOARD.customers._cards.procurement.title",hoverText:"DASHBOARD.customers._cards.procurement.desc",icon:cw.b6I},{html:"DASHBOARD.customers._cards.ecosystem.title",hoverText:"DASHBOARD.customers._cards.ecosystem.desc",icon:cw.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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,h40,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,_40,3,0,"div",15),e.j41(20,"a",16),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()()()),2&n&&(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:[X2.dX,X2.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 t})();function C40(t,a){if(1&t&&(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&t){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 z40(t,a){if(1&t&&(e.j41(0,"div",14),e.Z7z(1,C40,7,10,"div",21,e.Vm6),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.milestones)}}let M40=(()=>{class t{constructor(){this.providersLink=e.hFB.required(),this.customersLink=e.hFB.required(),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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-ecosystem"]],inputs:{providersLink:[e.Mj6.SignalBased,"providersLink"],customersLink:[e.Mj6.SignalBased,"customersLink"]},standalone:!0,features:[e.aNF],decls:43,vars:33,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"],["target","_blank",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",3,"href"],["target","_blank",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",3,"href"],[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(n,l){1&n&&(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,z40,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&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,17,"DASHBOARD.ecosystem._title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,19,"DASHBOARD.ecosystem._subtitle")," "),e.R7$(4),e.AVh("text-[#2B5BB8]",l.milestones[0].active),e.R7$(),e.SpI(" ",e.bMT(12,21,"DASHBOARD.ecosystem._nowLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[1].active),e.R7$(),e.SpI(" ",e.bMT(15,23,"DASHBOARD.ecosystem._nextLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[2].active),e.R7$(),e.SpI(" ",e.bMT(18,25,"DASHBOARD.ecosystem._beyondLabel")," "),e.R7$(13),e.vxM(30,l.milestones.length?30:-1),e.R7$(4),e.SpI(" ",e.bMT(35,27,"DASHBOARD.ecosystem._ctaTitle")," "),e.R7$(3),e.Y8G("href",l.customersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(39,29,"DASHBOARD.ecosystem._ctaCustomers")," "),e.R7$(2),e.Y8G("href",l.providersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(42,31,"DASHBOARD.ecosystem._ctaProviders")," "))},dependencies:[s1.h,s1.D9],encapsulation:2})}}return t})();const AN1=(t,a)=>a.name;function x40(t,a){if(1&t&&(e.j41(0,"li",18),e.nrm(1,"img",20),e.k0s()),2&t){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 b40(t,a){if(1&t&&(e.j41(0,"li",18),e.nrm(1,"img",20),e.k0s()),2&t){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 y40=(()=>{class t{constructor(){this.providersLink=e.hFB.required(),this.customersLink=e.hFB.required(),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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-hero"]],inputs:{providersLink:[e.Mj6.SignalBased,"providersLink"],customersLink:[e.Mj6.SignalBased,"customersLink"]},standalone:!0,features:[e.aNF],decls:40,vars:26,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"],["target","_blank","rel","noopener noreferrer",1,"hero-btn","hero-btn--primary",3,"href"],["target","_blank","rel","noopener noreferrer",1,"hero-btn","hero-btn--secondary",3,"href"],["aria-label","Partner logos",1,"hero-marquee","mt-[108px]","sm:mt-40","lg:mt-32"],[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(n,l){1&n&&(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,x40,2,4,"li",18,AN1),e.k0s(),e.j41(37,"ul",19),e.Z7z(38,b40,2,4,"li",18,AN1),e.k0s()()()()()),2&n&&(e.R7$(9),e.SpI(" ",e.bMT(10,10,"DASHBOARD.hero._titleLine1Part1")," "),e.R7$(3),e.JRh(e.bMT(13,12,"DASHBOARD.hero._titleLine1Accent")),e.R7$(2),e.SpI(" ",e.bMT(15,14,"DASHBOARD.hero._titleLine1Part2")," "),e.R7$(3),e.JRh(e.bMT(18,16,"DASHBOARD.hero._titleLine2")),e.R7$(3),e.SpI(" ",e.bMT(21,18,"DASHBOARD.hero._subtitleLine1")," "),e.R7$(3),e.SpI(" ",e.bMT(24,20,"DASHBOARD.hero._subtitleLine2")," "),e.R7$(3),e.Y8G("href",l.customersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(28,22,"DASHBOARD.hero._customerCta")," "),e.R7$(2),e.Y8G("href",l.providersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(31,24,"DASHBOARD.hero._providerCta")," "),e.R7$(5),e.Dyx(l.heroLogos),e.R7$(3),e.Dyx(l.heroLogos))},dependencies:[s1.h,s1.D9],styles:["[_nghost-%COMP%]{display:block}.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:640px;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;width:100%;max-width:1050px;margin-inline:auto;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:.85}@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:640px}.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:640px}.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}.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 t})();function F40(t,a){if(1&t&&(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&t){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 v40(t,a){if(1&t&&(e.j41(0,"div",11),e.Z7z(1,F40,10,7,"div",17,e.Vm6),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.featureCards)}}function k40(t,a){if(1&t&&(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&t){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 w40(t,a){if(1&t&&(e.j41(0,"div",15),e.Z7z(1,k40,10,7,"div",24,e.Vm6),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.steps)}}let S40=(()=>{class t{constructor(){this.providersLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.providers.features.market.title",hoverText:"DASHBOARD.providers.features.market.desc",icon:cw.YSf},{html:"DASHBOARD.providers.features.trust.title",hoverText:"DASHBOARD.providers.features.trust.desc",icon:cw.Z8x},{html:"DASHBOARD.providers.features.tools.title",hoverText:"DASHBOARD.providers.features.tools.desc",icon:cw.f2_},{html:"DASHBOARD.providers.features.portfolio.title",hoverText:"DASHBOARD.providers.features.portfolio.desc",icon:cw.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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,v40,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,w40,3,0,"div",15),e.j41(20,"a",16),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()()()),2&n&&(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:[X2.dX,X2.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 t})();var N40=v(8338);const E40=(t,a)=>a.id;function D40(t,a){if(1&t&&(e.j41(0,"div",9)(1,"div",10)(2,"div",11),e.nrm(3,"img",12),e.k0s(),e.j41(4,"div",13)(5,"h3",14),e.EFF(6),e.k0s(),e.nrm(7,"p",15),e.j41(8,"a",16),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()()),2&t){const c=a.$implicit,n=e.XpG();e.xc7("width",100/n.visibleItems,"%"),e.R7$(3),e.Y8G("src",n.getProductImage(c),e.B4B),e.R7$(3),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("innerHTML",c.description,e.npT),e.R7$(),e.Y8G("href","/search;keywords="+c.name,e.B4B),e.R7$(),e.SpI(" ",e.bMT(10,7,"DASHBOARD.marketplace.viewService")," ")}}let T40=(()=>{class t{constructor(c){this.cdr=c,this.faArrowRight=OL1,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 n=[];if(c?.attachment){const l=c.attachment.filter(r=>"Profile Picture"===r.name)??[];n=c.attachment.filter(r=>"Picture"===r.attachmentType)??[],0!==l.length&&(n=l)}return n.length>0?n.at(0)?.url:"https://placehold.co/600x400/svg"}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard-services"]],hostBindings:function(n,l){1&n&&e.bIt("resize",function(){return l.onResize()},!1,e.tSv)},inputs:{productOfferings:[e.Mj6.SignalBased,"productOfferings"]},standalone:!0,features:[e.aNF],decls:17,vars:12,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"],[1,"shrink-0","px-3","md:px-4",3,"width"],[1,"shrink-0","px-3","md:px-4"],[1,"bg-white","rounded-2xl","border","shadow-sm","hover:shadow-lg","transition-all","flex","flex-col","h-full"],[1,"h-52","rounded-t-2xl","overflow-hidden"],[1,"w-full","h-full","object-contain",3,"src"],[1,"p-6","flex","flex-col","flex-1"],[1,"text-xl","font-bold","text-slate-800"],[1,"mt-3","text-slate-600","text-sm","line-clamp-3",3,"innerHTML"],[1,"mt-auto","border-2","border-blue-700","text-blue-700","rounded-lg","py-3","font-semibold","flex","items-center","justify-center","gap-2","hover:bg-blue-700","hover:text-white","transition-all",3,"href"]],template:function(n,l){1&n&&(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,D40,11,9,"div",8,E40),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,6,"DASHBOARD.marketplace.title")," "),e.R7$(3),e.SpI(" ",e.bMT(9,8,"DASHBOARD.marketplace.subtitle")," "),e.R7$(3),e.SpI(" ",e.bMT(12,10,"DASHBOARD.marketplace.browseFullCatalog")," "),e.R7$(2),e.Y8G("icon",l.faArrowRight),e.R7$(),e.Y8G("items",l.productOfferings())("visible",l.visibleItems),e.R7$(),e.Dyx(l.productOfferings()))},dependencies:[X2.dX,X2.aY,s1.h,s1.D9,N40.g],changeDetection:0})}}return t})(),R40=(()=>{class t{constructor(){this.stats=e.hFB.required()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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 t})(),A40=(()=>{class t{constructor(){this.faShieldCheck=E2.R1H,this.faEye=E2.pS3,this.faPuzzle=E2._Xl,this.faClipboard=gC1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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&n&&(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:[X2.dX,X2.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 t})();class tw{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}getStats(){return(0,V2.s)(this.http.get(`${tw.BASE_URL}/stats`))}static{this.\u0275fac=function(c){return new(c||tw)(e.KVO(g.Qq),e.KVO(C2.s))}}static{this.\u0275prov=e.jDH({token:tw,factory:tw.\u0275fac,providedIn:"root"})}}function I40(t,a){if(1&t&&e.nrm(0,"app-dashboard-stats",2),2&t){const c=e.XpG(2);e.Y8G("stats",c.stats)}}function P40(t,a){if(1&t&&e.nrm(0,"app-dashboard-services",3),2&t){const c=e.XpG(2);e.Y8G("productOfferings",c.productOfferings)}}function $40(t,a){if(1&t&&(e.j41(0,"div",0),e.nrm(1,"app-dashboard-hero",1),e.DNE(2,I40,1,1,"app-dashboard-stats",2),e.nrm(3,"app-dashboard-whatsdome"),e.DNE(4,P40,1,1,"app-dashboard-services",3),e.nrm(5,"app-dashboard-customers",4)(6,"app-dashboard-providers",5)(7,"app-dashboard-ecosystem",1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("providersLink",c.providersLink)("customersLink",c.customersLink),e.R7$(),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),e.R7$(),e.Y8G("providersLink",c.providersLink)("customersLink",c.customersLink)}}function j40(t,a){if(1&t&&(e.j41(0,"a",25),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",n.hasLongWord(c,20))("break-words",!n.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function O40(t,a){if(1&t&&e.DNE(0,j40,2,11,"a",24),2&t){const c=a.$index,n=e.XpG(2);e.vxM(0,n.currentIndexServ===c?0:-1)}}function B40(t,a){if(1&t&&(e.j41(0,"a",27),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",n.hasLongWord(c,20))("break-words",!n.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function V40(t,a){if(1&t&&e.DNE(0,B40,2,11,"a",26),2&t){const c=a.$index,n=e.XpG(2);e.vxM(0,n.currentIndexPub===c?0:-1)}}function U40(t,a){if(1&t){const c=e.RV6();e.j41(0,"section",22)(1,"form",28)(2,"div",29)(3,"div",30)(4,"input",31),e.nI1(5,"translate"),e.bIt("keydown.enter",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.filterSearch(l))}),e.k0s(),e.j41(6,"button",32),e.bIt("click",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.filterSearch(l))}),e.qSk(),e.j41(7,"svg",33),e.nrm(8,"path",34),e.k0s(),e.joV(),e.j41(9,"span",35),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()()()}if(2&t){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 H40(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",6)(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"h1",11),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",12),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToSearch())}),e.qSk(),e.j41(12,"svg",14),e.nrm(13,"path",15),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.joV(),e.j41(16,"div",16)(17,"div",17)(18,"div",18)(19,"p",19),e.EFF(20),e.k0s(),e.Z7z(21,O40,1,1,null,null,e.fX1),e.k0s(),e.j41(23,"div",18)(24,"p",20),e.EFF(25),e.k0s(),e.Z7z(26,V40,1,1,null,null,e.fX1),e.k0s(),e.j41(28,"a",21),e.qSk(),e.j41(29,"svg",14),e.nrm(30,"path",15),e.k0s(),e.EFF(31),e.nI1(32,"translate"),e.k0s()()()()()(),e.DNE(33,U40,12,8,"section",22),e.joV(),e.nrm(34,"bae-off-featured",23),e.k0s()}if(2&t){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 G40=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.productService=c,this.domSanitizer=n,this.route=l,this.loginService=r,this.localStorage=m,this.eventMessage=z,this.cdr=F,this.router=I,this.statsService=J,this.themeService=d1,this.customersLink=h1.c.DOME_CUSTOMER_REGISTER_LINK,this.providersLink=h1.c.DOME_REGISTER_LINK,this.unSub=new S.B,this.MAX_CATEGORIES_PER_PRODUCT_OFFERING=3,this.providerThemeName=h1.c.providerThemeName,this.currentTheme=null,this.isFilterPanelShown=!1,this.searchField=new p.MJ,this.searchEnabled=h1.c.SEARCH_ENABLED,this.domeRegister=h1.c.DOME_REGISTER_LINK,this.services=[],this.publishers=[],this.currentIndexServ=0,this.currentIndexPub=0,this.delay=2e3}ngOnInit(){this.themeService.currentTheme$.pipe((0,P1.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 n={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!=n.organizations&&n.organizations.length>0&&(n.logged_as=n.organizations[0].id),this.localStorage.addLoginInfo(n),this.eventMessage.emitLogin(n),S2()}),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(H2().unix()),console.log(c.expire-H2().unix()),console.log(c.expire-H2().unix()<=5))}this.cdr.detectChanges(),console.log("----")}getFirstThreeRandomProductOfferings(){this.productService.getAllProducts().pipe((0,w0.T)(c=>c.map(n=>({...n,description:n.description?this.domSanitizer.sanitize(e.WPN.HTML,n.description)??void 0:n.description}))),(0,w0.T)(c=>{const n=new Set,l=Math.min(15,c.length);for(;n.sizec[r])}),(0,P1.Q)(this.unSub)).subscribe(c=>{this.productService.getProductsDetails(c).then(n=>{this.productOfferings=n.filter(l=>l.attachment?.some(r=>"Picture"===r.attachmentType||"Profile Picture"===r.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}ngOnDestroy(){this.rotationIntervalId&&clearInterval(this.rotationIntervalId),this.unSub.next(),this.unSub.complete()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(n0.F),e.rXU(u.up),e.rXU(N2.nX),e.rXU(x9),e.rXU(C2.s),e.rXU(j2),e.rXU(e.gRc),e.rXU(N2.Ix),e.rXU(tw),e.rXU(Hk))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-dashboard"]],standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"page"],[3,"providersLink","customersLink"],[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(n,l){1&n&&e.DNE(0,$40,8,8,"div",0)(1,H40,35,18),2&n&&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_,o10,L.YU,A40,y40,R40,T40,L40,S40,M40],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 t})();const af1=(t,a)=>({"break-all":t,"break-words":a});function Y40(t,a){if(1&t&&(e.j41(0,"a",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.Mz_("href","mailto: ",c.characteristic.emailAddress,"",e.B4B),e.R7$(),e.SpI(" ",c.characteristic.emailAddress," ")}}function q40(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.LHq(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince," ")}}function X40(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.phoneNumber," ")}}function W40(t,a){if(1&t&&(e.j41(0,"tr",34)(1,"td",36),e.EFF(2),e.k0s(),e.j41(3,"td",37),e.DNE(4,Y40,2,3,"a",38)(5,q40,1,4)(6,X40,1,1),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.vxM(4,"Email"==c.mediumType?4:"PostalAddress"==c.mediumType?5:6)}}function J40(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}let Q40=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.cdr=c,this.route=n,this.router=l,this.elementRef=r,this.localStorage=m,this.eventMessage=z,this.accService=F,this.location=I,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 n=0;nl.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(N2.nX),e.rXU(N2.Ix),e.rXU(e.aKT),e.rXU(C2.s),e.rXU(j2),e.rXU(s0.O),e.rXU(L.aZ))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-organization-details"]],decls:54,vars:40,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(n,l){1&n&&(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",33),e.EFF(48),e.nI1(49,"translate"),e.k0s()()(),e.j41(50,"tbody"),e.Z7z(51,W40,7,2,"tr",34,e.fX1,!1,J40,7,3,"div",35),e.k0s()()()()()()),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,19,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,21,"ORGANIZATION._details")),e.R7$(4),e.FS9("src",l.logo,e.B4B),e.R7$(3),e.Y8G("ngClass",e.l_i(31,af1,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(34,af1,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,23,"ORGANIZATION._details")),e.R7$(2),e.Y8G("ngClass",e.l_i(37,af1,l.hasLongWord(l.description,20),!l.hasLongWord(l.description,20)))("data",l.description),e.R7$(2),e.JRh(e.bMT(39,25,"PROFILE._contact_info")),e.R7$(7),e.SpI(" ",e.bMT(46,27,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(49,29,"PROFILE._info")," "),e.R7$(3),e.Dyx(null==l.orgInfo?null:l.orgInfo.contactMedium))},dependencies:[L.YU,T0,s1.D9]})}}return t})();const v5=[{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}],Z40=(t,a)=>({"break-all":t,"break-words":a});function K40(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(2),e.Y8G("formControl",c.control)}}function e30(t,a){if(1&t){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&t){let c,n;const l=e.XpG(3);e.R7$(),e.Y8G("min",null==(c=l.getSliderRange())?null:c.min)("max",null==(n=l.getSliderRange())?null:n.max)("formControl",l.control),e.R7$(2),e.Lme("",l.control.value," ",l.getUnit(),"")}}function c30(t,a){if(1&t&&(e.j41(0,"option",12),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(4);e.Y8G("ngValue",c.value),e.R7$(),e.Lme(" ",c.value," ",n.getUnit()," ")}}function t30(t,a){if(1&t){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,c30,2,3,"option",11),e.k0s()()}if(2&t){const c=e.XpG(3);e.R7$(),e.Y8G("formControl",c.control),e.R7$(),e.Y8G("ngForOf",c.characteristic.productSpecCharacteristicValue)}}function n30(t,a){if(1&t&&e.DNE(0,K40,4,1,"div",3)(1,e30,4,5)(2,t30,3,2),2&t){const c=e.XpG(2);e.vxM(0,c.isBoolean()?0:c.isSlider()?1:2)}}function l30(t,a){if(1&t&&(e.j41(0,"div",0)(1,"h4",1),e.EFF(2),e.k0s(),e.nrm(3,"markdown",2),e.k0s(),e.DNE(4,n30,3,1)),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.characteristic.name),e.R7$(),e.Y8G("ngClass",e.l_i(4,Z40,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 s30(t,a){if(1&t&&(e.j41(0,"div",13)(1,"div",14),e.EFF(2),e.k0s(),e.j41(3,"span",15),e.EFF(4),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.SpI("",c.characteristic.name,":"),e.R7$(2),e.Lme("",c.control.value," ",c.getUnit(),"")}}let IN1=(()=>{class t{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),n=c?.value??c?.valueFrom;console.log("defaultValue: ",n),void 0!==n&&(this.control=new p.MJ({value:n,disabled:this.readOnly}))}onControlCommit(){this.readOnly||this.valueChange.emit({characteristicId:this.characteristic.id,selectedValue:this.control.value})}isSlider(){return this.characteristic.productSpecCharacteristicValue?.some(n=>void 0!==n.valueFrom&&void 0!==n.valueTo)||!1}isBoolean(){const c=this.characteristic.productSpecCharacteristicValue;return!(!c||0===c.length)&&c.every(n=>"boolean"==typeof n.value)}getSliderRange(){const c=this.characteristic.productSpecCharacteristicValue?.find(n=>void 0!==n.valueFrom&&void 0!==n.valueTo);return c?{min:c.valueFrom,max:c.valueTo}:null}getUnit(){return this.characteristic.productSpecCharacteristicValue?.[0].unitOfMeasure}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,l30,5,7)(1,s30,5,3),2&n&&e.vxM(0,l.readOnly?1:0)},dependencies:[L.Sq,L.YU,p.X1,p.xH,p.y7,p.me,p.MR,p.Zm,p.wz,p.BC,p.l_,T0]})}}return t})(),a30=(()=>{class t{constructor(c){this.api=c,this.usagePriceComponentsCache=new Map}getAppliedMetrics(c,n){var l=this;return(0,b1.A)(function*(){const r=yield l.getUsagePriceComponents(c);if(0===r.length)return[];const m=new Map;for(const z of n||[])z?.id&&m.set(z.id,z.value);return r.filter(z=>l.isPriceComponentApplied(z,m)).map(z=>({priceId:z?.id,usageSpecId:z?.usageSpecId,unitOfMeasure:l.getMetricName(z?.unitOfMeasure),value:0}))})()}clearCache(c){c?this.usagePriceComponentsCache.delete(c):this.usagePriceComponentsCache.clear()}getUsagePriceComponents(c){var n=this;return(0,b1.A)(function*(){if(!c)return[];const l=c?.id?String(c.id):"";if(l&&n.usagePriceComponentsCache.has(l))return n.usagePriceComponentsCache.get(l)||[];const m=(yield n.resolvePriceComponents(c)).filter(z=>n.isUsagePriceComponent(z));return l&&n.usagePriceComponentsCache.set(l,m),m})()}resolvePriceComponents(c){var n=this;return(0,b1.A)(function*(){if(!c)return[];const l=Array.isArray(c?.bundledPopRelationship)?c.bundledPopRelationship:[];if(0===l.length)return[c];const r=[];for(const m of l)if(m?.id)try{const z=yield n.api.getOfferingPrice(m.id);z&&r.push(z)}catch(z){console.error("Error loading price component for applied metrics evaluation",z)}return r})()}isUsagePriceComponent(c){return"usage"===String(c?.priceType||"").toLowerCase()&&!!c?.usageSpecId&&!!this.getMetricName(c?.unitOfMeasure)}isPriceComponentApplied(c,n){const l=Array.isArray(c?.prodSpecCharValueUse)?c.prodSpecCharValueUse:[];return 0===l.length||l.every(r=>this.matchesCharacteristicUse(r,n))}matchesCharacteristicUse(c,n){const l=c?.id;if(!l||!n.has(l))return!1;const r=n.get(l),m=Array.isArray(c?.productSpecCharacteristicValue)?c.productSpecCharacteristicValue:[];return 0===m.length||m.some(z=>this.matchesRequiredValue(r,z))}matchesRequiredValue(c,n){if(void 0!==n?.valueFrom||void 0!==n?.valueTo){const m=Number(c);if(Number.isNaN(m))return!1;const z=void 0!==n?.valueFrom,F=void 0!==n?.valueTo;return!(z&&mNumber(n.valueTo))}if(void 0===n?.value)return!1;const r=n.value;if("boolean"==typeof r){const m=this.normalizeBoolean(c);return null!==m&&m===r}if("number"==typeof r){const m=Number(c);return!Number.isNaN(m)&&m===r}return String(c)===String(r)}normalizeBoolean(c){if("boolean"==typeof c)return c;if("string"==typeof c){const n=c.toLowerCase();if("true"===n)return!0;if("false"===n)return!1}return null}getMetricName(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(n0.F))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const o30=(t,a)=>a.name,AE=(t,a)=>a.id,i30=(t,a)=>a.unitOfMeasure,iG=(t,a)=>({"break-all":t,"break-words":a}),r30=(t,a)=>({"border-primary-100 text-wrap border":t,"border-transparent outline outline-2 outline-teal-500 bg-teal-50":a}),d30=()=>[];function f30(t,a){if(1&t){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 u30(t,a){if(1&t&&(e.j41(0,"div",20)(1,"span",21),e.EFF(2),e.k0s(),e.EFF(3),e.k0s()),2&t){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.SpI(" ",c.value," ")}}function m30(t,a){if(1&t&&(e.j41(0,"div",10)(1,"h6",18),e.EFF(2,"Current characteristics:"),e.k0s(),e.j41(3,"div",19),e.Z7z(4,u30,4,2,"div",20,o30),e.k0s()()),2&t){const c=e.XpG();e.R7$(4),e.Dyx(c.existingCharacteristics)}}function p30(t,a){1&t&&(e.j41(0,"span",26),e.EFF(1,"PROFILE"),e.k0s())}function h30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.onPricePlanSelected(l))}),e.j41(1,"div",25),e.EFF(2),e.DNE(3,p30,2,0,"span",26),e.k0s(),e.nrm(4,"markdown",27),e.k0s()}if(2&t){let c;const n=a.$implicit,l=e.XpG(2);e.Y8G("ngClass",e.l_i(5,r30,n.id!==(null==(c=l.form.get("selectedPricePlan"))?null:c.value),n.id===(null==(c=l.form.get("selectedPricePlan"))?null:c.value))),e.R7$(2),e.SpI(" ",n.name," "),e.R7$(),e.vxM(3,n.prodSpecCharValueUse?3:-1),e.R7$(),e.Y8G("ngClass",e.l_i(8,iG,l.hasLongWord(n.description,20),!l.hasLongWord(n.description,20)))("data",n.description)}}function g30(t,a){1&t&&(e.j41(0,"div"),e.EFF(1,"The offering is free"),e.k0s())}function _30(t,a){if(1&t&&(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,h30,5,11,"div",23,AE,!1,g30,2,0,"div")),2&t){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 L30(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-characteristic",31),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()}if(2&t){const c=e.XpG().$implicit;e.Y8G("characteristic",c)("readOnly",!0)}}function C30(t,a){if(1&t&&e.DNE(0,L30,1,2,"app-characteristic",30),2&t){const c=a.$implicit;e.vxM(0,null!=c.name&&c.name.endsWith("- enabled")?-1:0)}}function z30(t,a){if(1&t&&(e.j41(0,"p",28),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",29),e.Z7z(3,C30,1,1,null,null,AE),e.k0s()),2&t){const c=e.XpG(2);e.R7$(3),e.Dyx(c.filteredCharacteristics)}}function M30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",36)(1,"div",37)(2,"app-characteristic",38),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",n.disabledCharacteristics.includes(c.id))("canBeDisabled",n.canBeDisabledChars.includes(c.id))}}function x30(t,a){if(1&t&&(e.j41(0,"div",33)(1,"p",34),e.EFF(2,"Boolean toggles"),e.k0s(),e.j41(3,"div",35),e.Z7z(4,M30,3,4,"div",36,AE),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(4),e.Dyx(c.booleanCharacteristics)}}function b30(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",39)(1,"input",40),e.bIt("change",function(l){e.eBV(c);const r=e.XpG().$implicit,m=e.XpG(4);return e.Njj(m.onToggleChange(l,r.name))}),e.k0s(),e.nrm(2,"div",41),e.k0s()}if(2&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(),e.Y8G("checked",!n.disabledCharacteristics.includes(c.id))}}function y30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",36),e.DNE(1,b30,3,1,"label",39),e.j41(2,"div",37)(3,"app-characteristic",38),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.vxM(1,n.canBeDisabledChars.includes(c.id)&&!n.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",n.disabledCharacteristics.includes(c.id))("canBeDisabled",n.canBeDisabledChars.includes(c.id))}}function F30(t,a){if(1&t&&(e.j41(0,"div",33)(1,"p",34),e.EFF(2,"Choices"),e.k0s(),e.j41(3,"div",35),e.Z7z(4,y30,4,5,"div",36,AE),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(4),e.Dyx(c.choiceCharacteristics)}}function v30(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",39)(1,"input",40),e.bIt("change",function(l){e.eBV(c);const r=e.XpG().$implicit,m=e.XpG(4);return e.Njj(m.onToggleChange(l,r.name))}),e.k0s(),e.nrm(2,"div",41),e.k0s()}if(2&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(),e.Y8G("checked",!n.disabledCharacteristics.includes(c.id))}}function k30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",36),e.DNE(1,v30,3,1,"label",39),e.j41(2,"div",37)(3,"app-characteristic",38),e.bIt("valueChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.onValueChange(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.vxM(1,n.canBeDisabledChars.includes(c.id)&&!n.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",n.disabledCharacteristics.includes(c.id))("canBeDisabled",n.canBeDisabledChars.includes(c.id))}}function w30(t,a){if(1&t&&(e.j41(0,"div",33)(1,"p",34),e.EFF(2,"Ranges"),e.k0s(),e.j41(3,"div",35),e.Z7z(4,k30,4,5,"div",36,AE),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(4),e.Dyx(c.rangeCharacteristics)}}function S30(t,a){if(1&t&&(e.j41(0,"p",28),e.EFF(1,"Please select the characteristics you need to suit this offer to you."),e.k0s(),e.j41(2,"div",32),e.DNE(3,x30,6,0,"div",33)(4,F30,6,0,"div",33)(5,w30,6,0,"div",33),e.k0s()),2&t){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 N30(t,a){if(1&t&&e.DNE(0,z30,5,0)(1,S30,6,3),2&t){const c=e.XpG();e.vxM(0,c.hasProfile?0:c.filteredCharacteristics.length>0?1:-1)}}function E30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",44)(1,"h5",45),e.EFF(2),e.k0s(),e.j41(3,"input",46),e.bIt("input",function(l){const r=e.eBV(c).$implicit,m=e.XpG(2);return e.Njj(m.onMetricChange(l,r))}),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,iG,n.hasLongWord(c.unitOfMeasure,20),!n.hasLongWord(c.unitOfMeasure,20))),e.R7$(),e.JRh(c.unitOfMeasure),e.R7$(),e.FS9("placeholder",c.value)}}function D30(t,a){if(1&t&&(e.j41(0,"p",42),e.EFF(1,"You can change the metric values to simulate final prices"),e.k0s(),e.j41(2,"div",43),e.Z7z(3,E30,4,6,"div",44,i30),e.k0s()),2&t){const c=e.XpG();e.R7$(3),e.Dyx(c.metrics||e.lJ4(0,d30))}}function T30(t,a){if(1&t&&(e.j41(0,"div",11)(1,"h5",47),e.EFF(2,"Terms and conditions:"),e.k0s(),e.j41(3,"div",48),e.nrm(4,"markdown",49),e.k0s(),e.j41(5,"div",50),e.nrm(6,"input",51),e.j41(7,"label",52),e.EFF(8,"I accept the terms and conditions"),e.k0s()()()),2&t){const c=e.XpG();e.R7$(4),e.Y8G("ngClass",e.l_i(2,iG,c.hasLongWord(c.tsAndCs.description,20),!c.hasLongWord(c.tsAndCs.description,20)))("data",c.tsAndCs.description)}}function R30(t,a){1&t&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",53),e.nrm(2,"path",54)(3,"path",55),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading price..."),e.k0s()())}function A30(t,a){1&t&&(e.j41(0,"div",56)(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 I30(t,a){1&t&&(e.j41(0,"div",56)(1,"p"),e.EFF(2,"This offer is free"),e.k0s()())}function P30(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function $30(t,a){if(1&t&&(e.j41(0,"div",57)(1,"span",58),e.EFF(2),e.k0s(),e.j41(3,"span",59),e.EFF(4),e.DNE(5,P30,1,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.Lme("",c.price.taxIncludedAmount.value," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(5,n.hasKey(c,"recurringChargePeriod")?5:-1)}}function j30(t,a){if(1&t&&(e.j41(0,"div",56),e.Z7z(1,$30,6,4,"div",57,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.price)}}function O30(t,a){1&t&&(e.j41(0,"p",60),e.EFF(1,"Please, select a price plan to get its price"),e.k0s())}let rG=(()=>{class t{handleEscape(c){"Escape"===c.key&&this.isOpen&&this.onClose()}constructor(c,n,l,r,m,z){this.fb=c,this.priceService=n,this.cartService=l,this.eventMessage=r,this.cdr=m,this.pricePlanMetricsService=z,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=F=>this.handleEscape(F),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(n=>{console.log(n.name),console.log("----"),"procurement"!=n.name&&(console.log("---- Setting the term"),this.tsAndCs=n)}),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(n=>"Profile Picture"===n.name)??[];console.log("profile..."),console.log(c),this.images=0==c.length?this.productOff?.attachment?.filter(n=>"Picture"===n.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 n=this.productOff?.productOfferingTerm?.find(l=>"License"===l.name);n&&(this.tsAndCs={description:n.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 n=this.productOff?.attachment?.filter(l=>"Profile Picture"===l.name)??[];this.images=0==n.length?this.productOff?.attachment?.filter(l=>"Picture"===l.attachmentType)??[]:n}}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 r=l.productSpecCharacteristicValue?.[0]?.value;return"false"===String(r).toLowerCase()}).map(l=>l.name?.replace(/ - enabled$/,"").trim()),this.filteredCharacteristics=this.characteristics.filter(l=>{const r=v5.some(I=>I.name===l.name),m="credentialsConfiguration"===l.valueType,z="authorizationPolicy"===l.valueType,F=l?.name?.startsWith("Compliance:");return!(r||F||m||z)});const n=this.fb.group({});this.filteredCharacteristics.forEach(l=>{if(null!=l.id){const r=l.productSpecCharacteristicValue?.find(m=>m.isDefault)?.value??l.productSpecCharacteristicValue?.find(m=>m.isDefault)?.valueFrom;if(n.addControl(l.id,this.fb.control(r??null,p.k0.required)),!l.name?.endsWith("- enabled")&&this.filteredCharacteristics.some(m=>m.name===l.name+" - enabled")){this.canBeDisabledChars.push(l.id);const z=this.filteredCharacteristics.find(F=>F.name===l.name+" - enabled")?.productSpecCharacteristicValue?.find(F=>F.isDefault);z?"false"===String(z.value).toLowerCase()&&this.disabledCharacteristics.push(l.id):this.disabledCharacteristics.push(l.id)}}}),this.form.setControl("characteristics",n),this.groupCharacteristics()}isBooleanCharacteristic(c){const n=c.productSpecCharacteristicValue;return!(!n||0===n.length)&&n.every(l=>"boolean"==typeof l?.value)}isRangeCharacteristic(c){return c.productSpecCharacteristicValue?.some(n=>void 0!==n?.valueFrom&&void 0!==n?.valueTo)??!1}isEnabledCharacteristic(c){return c.name?.endsWith("- enabled")??!1}groupCharacteristics(){const c=this.filteredCharacteristics.filter(n=>!this.isEnabledCharacteristic(n));this.booleanCharacteristics=c.filter(n=>this.isBooleanCharacteristic(n)),this.rangeCharacteristics=c.filter(n=>!this.isBooleanCharacteristic(n)&&this.isRangeCharacteristic(n)),this.choiceCharacteristics=c.filter(n=>!this.isBooleanCharacteristic(n)&&!this.isRangeCharacteristic(n))}onToggleChange(c,n){var l=this;return(0,b1.A)(function*(){const m=c.target.checked;let z=l.filteredCharacteristics.find(d1=>d1.name==n+" - enabled");const F=l.form.get("characteristics");z&&z.id&&F.get(z.id)?.setValue(m);const I=z?.name?.replace(/- enabled$/,"").trim(),J=l.filteredCharacteristics.find(d1=>d1.name===I);J&&(m?l.disabledCharacteristics=l.disabledCharacteristics.filter(d1=>d1!==J.id):l.disabledCharacteristics.includes(J.id)||l.disabledCharacteristics.push(J.id)),yield l.refreshAppliedMetrics(),yield l.calculatePrice()})()}onPricePlanSelected(c){var n=this;return(0,b1.A)(function*(){n.metrics=[],console.log("precio"),console.log(c),n.form.get("selectedPricePlan")?.setValue(c),n.isCustom="custom"===c.priceType,c.prodSpecCharValueUse?(n.characteristics=c.prodSpecCharValueUse,n.hasProfile=!0):(n.characteristics=n.prodSpec.productSpecCharacteristic||[],n.hasProfile=!1),n.filterCharacteristics(),n.selectedPricePlan=c,yield n.refreshAppliedMetrics(),console.log(n.selectedPricePlan),yield n.calculatePrice()})()}onUsageSpecChange(c){this.selectedUsageSpecId=c.target.value,this.selectedUnitOfMeasure=null}onMetricChange(c,n){n.value=c.target.valueAsNumber,console.log("Metric changed:",n.unitOfMeasure,"Value:",n.value),console.log(this.metrics),this.calculatePrice()}get usageSpecIds(){return Object.keys(this.groupedMetrics)}onValueChange(c){var n=this;return(0,b1.A)(function*(){n.form.get("characteristics").get(c.characteristicId)?.setValue(c.selectedValue),yield n.refreshAppliedMetrics(),yield n.calculatePrice()})()}metricKey(c){return c?.usageSpecId&&c?.unitOfMeasure?`${c.usageSpecId}:${c.unitOfMeasure}`:""}getSelectedCharacteristicsForMetrics(){const c=this.form.get("characteristics")?.value||{},n=[];for(const l of this.getKeys(c))this.disabledCharacteristics.includes(l)||n.push({id:l,value:c[l]});return n}refreshAppliedMetrics(){var c=this;return(0,b1.A)(function*(){if(!c.selectedPricePlan)return void(c.metrics=[]);const n=c.getSelectedCharacteristicsForMetrics(),l=new Map;for(const r of c.metrics){const m=c.metricKey(r);m&&l.set(m,r.value??0)}try{const r=yield c.pricePlanMetricsService.getAppliedMetrics(c.selectedPricePlan,n);c.metrics=(Array.isArray(r)?r:[]).map(m=>{const z=c.metricKey(m);return z?{...m,value:l.has(z)?l.get(z):m.value??0}:m})}catch(r){console.error("Error refreshing applied metrics",r)}})()}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}isFormValid(){return this.form.valid}get objectKeys(){return Object.keys}hasKey(c,n){return n in c}getKeys(c){return Object.keys(c)}getValues(c){return Object.values(c)}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 n=0;nr.id===this.getKeys(c)[n]);if(console.log(this.filteredCharacteristics[l]),!this.disabledCharacteristics.includes(this.filteredCharacteristics[l].id)){let r=this.getValues(c)[n];const m=this.filteredCharacteristics[l];if(m.productSpecCharacteristicValue?.some(I=>"boolean"==typeof I?.value)&&"string"==typeof r){const I=r.toLowerCase();("true"===I||"false"===I)&&(r="true"===I)}let F=m.valueType;F||"boolean"!=typeof r?F||isNaN(Number(r))?F||(F="string"):F="number":F="boolean",null==r&&"number"==F&&(r=0),m.name?.endsWith("- enabled")||this.orderChars.push({name:m.name,value:r,valueType:F})}}console.log("Calculating the price with..."),console.log(this.orderChars)}calculatePrice(){var c=this;return(0,b1.A)(function*(n=!1){if(c.updateOrderChars(),c.isFree&&(c.price=[],c.isLoading=!1),c.isCustom||c.isFree)return;const l=c.form.get("selectedPricePlan")?.value;let r={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&&(r.product.id=c.inventoryProductId);let m=[];c.metrics.length>0&&(m=c.metrics.map(J=>({usageSpecification:{id:J.usageSpecId},usageCharacteristic:[{name:J.unitOfMeasure,value:n?1:J.value}]})));let z=[];z.push(r);const I={productOrder:{id:A4(),productOrderItem:z},usage:m};if(l){console.log("--- prod ---"),console.log(r),console.log("--- prod ---"),c.isLoading=!0;try{const J=yield(0,V2.s)(c.priceService.calculatePrice(I));return console.log("calculate price..."),console.log(J.orderTotalPrice),c.price=J.orderTotalPrice,c.price=c.price.map(d1=>({...d1,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,b1.A)(function*(){if(c.form.invalid)return void console.error("Form is invalid");const n=c.form.value,l={productId:c.productOff?.id,pricePlan:n.selectedPricePlan,characteristics:c.orderChars,tsAccepted:n.tsAccepted,priceSummary:c.price};try{yield c.calculatePrice(!0)}catch(m){return void console.error("Error calculating price:",m)}if("modify"===c.mode){const m=n.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:m.id,href:m.href,name:m.name}}],product:{id:c.inventoryProductId,productCharacteristic:c.orderChars}}),void c.onClose()}const r=c.buildProdOptions(n.tsAccepted);c.isCustom&&(r.options.pricing=[{id:l.pricePlan.id}]);try{yield c.cartService.addItemShoppingCart(r),console.log("Update successful"),c.eventMessage.emitAddedCartItem(r),console.log("Order Payload:",l)}catch(m){console.error("There was an error while updating the cart:",m)}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(n){return new(n||t)(e.rXU(p.ok),e.rXU(pe),e.rXU(d8),e.rXU(j2),e.rXU(e.gRc),e.rXU(a30))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-price-plan-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscape(m)},!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-hidden","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"],[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,"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"],[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"],[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(n,l){if(1&n&&(e.DNE(0,f30,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,m30,6,0,"div",10)(13,_30,10,4)(14,N30,2,1)(15,D30,5,1)(16,T30,9,5,"div",11),e.k0s(),e.j41(17,"div",12),e.DNE(18,R30,6,0,"div",13)(19,A30,3,0)(20,I30,3,0)(21,j30,3,0)(22,O30,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&n){let r,m;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,iG,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!=(r=l.form.get("selectedPricePlan"))&&r.value?14:-1),e.R7$(),e.vxM(15,l.metrics.length>0?15:-1),e.R7$(),e.vxM(16,null!=(m=l.form.get("selectedPricePlan"))&&m.value&&null!=(m=l.form.get("characteristics"))&&m.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:[IN1,T0,L.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 t})(),of1=(()=>{class t{constructor(){this.category={name:"Default"},this.faAddressCard=oc,this.faCloud=E2.jBL}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"a",0),e.nrm(1,"fa-icon",1),e.j41(2,"p",2),e.EFF(3),e.k0s()()),2&n&&(e.R7$(),e.Y8G("icon",l.faCloud),e.R7$(2),e.SpI(" ",l.category.name," "))},dependencies:[X2.aY],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]})}}return t})();const PN1=(t,a)=>a.id,B30=(t,a)=>a.value,V30=(t,a)=>a.name,IE=(t,a)=>({"break-all":t,"break-words":a});function U30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(n.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function H30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=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,IE,r.hasLongWord(n.name,20),!r.hasLongWord(n.name,20))),e.R7$(),e.JRh(n.name),e.R7$(2),e.Y8G("ngClass",e.l_i(9,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function G30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(n.name),e.R7$(),e.Y8G("ngClass",e.l_i(5,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function Y30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(n.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,IE,r.hasLongWord(null==n?null:n.description,20),!r.hasLongWord(null==n?null:n.description,20)))("data",null==n?null:n.description)}}function q30(t,a){if(1&t&&e.DNE(0,U30,9,8,"div",35)(1,H30,9,12)(2,G30,8,8)(3,Y30,9,8),2&t){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:"custom"===c.priceType?2:3)}}function X30(t,a){if(1&t&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",34),e.Z7z(4,q30,4,1,null,null,PN1),e.k0s()),2&t){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 W30(t,a){1&t&&(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&t&&(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 J30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",58)(1,"input",59),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),r=l.$implicit,m=l.$index,z=e.XpG().$index,F=e.XpG(2);return e.Njj(F.onCharChange(z,m,r))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+r+l)("name","char-radio-"+r),e.R7$(),e.Y8G("for","char-radio-"+r+l),e.R7$(),e.JRh(n.value)}}function Q30(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",58)(1,"input",61),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),r=l.$implicit,m=l.$index,z=e.XpG().$index,F=e.XpG(2);return e.Njj(F.onCharChange(z,m,r))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&t){const c=e.XpG(),n=c.$implicit,l=c.$index,r=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+r+l)("name","char-radio-"+r),e.R7$(),e.Y8G("for","char-radio-"+r+l),e.R7$(),e.JRh(n.value)}}function Z30(t,a){if(1&t&&(e.j41(0,"div",57),e.DNE(1,J30,4,4,"div",58)(2,Q30,4,4),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.vxM(1,1==(null==c?null:c.isDefault)?1:2)}}function K30(t,a){if(1&t&&(e.j41(0,"div",55)(1,"h5",56),e.EFF(2),e.k0s(),e.Z7z(3,Z30,3,1,"div",57,B30),e.k0s()),2&t){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function e60(t,a){if(1&t&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,K30,5,1,"div",55,PN1)),2&t){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,1,"CARD._select_char"),":"),e.R7$(2),e.Dyx(c.prodSpec.productSpecCharacteristic)}}function c60(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CARD._no_chars")," "))}function t60(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(2),e.Y8G("data",c.description)}}function n60(t,a){if(1&t){const c=e.RV6();e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,t60,5,2,null,null,V30),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&t){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 l60(t,a){if(1&t){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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,2,"CARD._no_terms")," "),e.R7$(4),e.SpI(" ",e.bMT(10,4,"CARD._checkout")," "))}function s60(t,a){if(1&t&&e.nrm(0,"error-message",32),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let $N1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J){this.cdr=c,this.route=n,this.api=l,this.priceService=r,this.router=m,this.elementRef=z,this.localStorage=F,this.cartService=I,this.eventMessage=J,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,n,l){this.selected_chars[c].value={isDefault:!0,value:l.value};let m=this.selected_chars[c].characteristic.productSpecCharacteristicValue;if(null!=m)for(let z=0;zl.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(N2.nX),e.rXU(n0.F),e.rXU(pe),e.rXU(N2.Ix),e.rXU(e.aKT),e.rXU(C2.s),e.rXU(d8),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["cart-card"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.bIt("click",function(m){return m.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,X30,6,3)(38,W30,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,e60,5,3)(47,c60,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,n60,16,11)(56,l60,13,6),e.k0s()()()()()(),e.DNE(57,s60,1,1,"error-message",32)),2&n&&(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:[L.YU,T0,Q0,s1.D9]})}}return t})();const a60=["relationshipsContent"],o60=["detailsContent"],i60=["charsContent"],r60=["attachContent"],d60=["agreementsContent"],f60=["textDiv"],u60=["termsText"],m60=["agreementsScrollAnchor"],p60=["relScrollAnchor"],h60=["attachScrollAnchor"],g60=["charsScrollAnchor"],_60=["detailsScrollAnchor"],F9=(t,a)=>a.id,L60=(t,a)=>a.value,u8=(t,a)=>({"break-all":t,"break-words":a});function C60(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",33),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"a",69),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(4),e.k0s()()}if(2&t){const c=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,2,"CARD._owner"),": "),e.R7$(3),e.JRh(c.orgInfo.tradingName)}}function z60(t,a){1&t&&e.nrm(0,"bae-badge",36),2&t&&e.Y8G("category",a.$implicit)}function M60(t,a){if(1&t&&(e.j41(0,"a",37),e.nrm(1,"fa-icon",70),e.EFF(2," No level "),e.k0s()),2&t){const c=e.XpG();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 x60(t,a){1&t&&e.nrm(0,"img",71)}function b60(t,a){1&t&&e.nrm(0,"img",72)}function y60(t,a){1&t&&e.nrm(0,"img",73)}function F60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",74),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToChars(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._chars")," "))}function v60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",75),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToAttach(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._attach")," "))}function k60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",76),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToAgreements(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._agreements")," "))}function w60(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",45)(1,"button",77),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToRelationships(!0))}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"PRODUCT_DETAILS._relationships")," "))}function S60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",80),e.nrm(2,"path",81),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&t){const c=e.XpG(2);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 N60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",82),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.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",84),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function E60(t,a){if(1&t&&e.DNE(0,S60,5,5,"button",78)(1,N60,5,3),2&t){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function D60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",80),e.nrm(2,"path",81),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&t){const c=e.XpG(2);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 T60(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",87),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.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",84),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function R60(t,a){if(1&t&&e.DNE(0,D60,5,5,"button",85)(1,T60,5,3),2&t){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function A60(t,a){if(1&t&&(e.j41(0,"p",89)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",90),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("data",c.description)}}function I60(t,a){if(1&t&&(e.j41(0,"div",52)(1,"h5",88),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,A60,5,6,"p",89,F9),e.k0s()),2&t){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 P60(t,a){if(1&t&&(e.j41(0,"p",91)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",92),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function $60(t,a){if(1&t&&(e.j41(0,"div",52)(1,"h5",88),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,P60,5,6,"p",91,F9),e.k0s()),2&t){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 j60(t,a){1&t&&(e.j41(0,"h3",55),e.EFF(1," No level "),e.k0s())}function O60(t,a){1&t&&e.nrm(0,"img",93)}function B60(t,a){1&t&&e.nrm(0,"img",94)}function V60(t,a){1&t&&e.nrm(0,"img",95)}function U60(t,a){if(1&t&&(e.j41(0,"a",57),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG();e.Y8G("href",c.selfAtt,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,"PRODUCT_DETAILS._self_attestation")," ")}}function H60(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",97)(1,"div",98),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.goToLink(l.href))}),e.nrm(2,"fa-icon",99),e.j41(3,"h3",100),e.EFF(4),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("icon",n.faAtom),e.R7$(2),e.JRh(c.name)}}function G60(t,a){if(1&t&&(e.j41(0,"h3",55),e.EFF(1," 3rd party certifications: "),e.k0s(),e.j41(2,"div",96),e.Z7z(3,H60,5,2,"div",97,F9),e.k0s()),2&t){const c=e.XpG();e.R7$(3),e.Dyx(c.complianceProf)}}function Y60(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",97)(1,"div",98),e.bIt("click",function(){let l;const r=e.eBV(c).$implicit,m=e.XpG(2);return e.Njj(m.goToLink(null==r.productSpecCharacteristicValue||null==(l=r.productSpecCharacteristicValue.at(0))?null:l.value))}),e.nrm(2,"fa-icon",99),e.j41(3,"h3",100),e.EFF(4),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("icon",n.faAtom),e.R7$(2),e.JRh(n.normalizeName(c.name))}}function q60(t,a){if(1&t&&(e.j41(0,"h3",55),e.EFF(1," Additional certifications: "),e.k0s(),e.j41(2,"div",96),e.Z7z(3,Y60,5,2,"div",97,F9),e.k0s()),2&t){const c=e.XpG();e.R7$(3),e.Dyx(c.additionalCerts)}}function X60(t,a){if(1&t&&(e.j41(0,"div",103)(1,"div",104)(2,"h2",105),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",106),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function W60(t,a){1&t&&e.DNE(0,X60,5,10,"div",103),2&t&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function J60(t,a){1&t&&(e.j41(0,"div",102)(1,"div",107)(2,"div",108)(3,"h5",109),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",110),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(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 Q60(t,a){if(1&t&&(e.j41(0,"div",101),e.Z7z(1,W60,1,1,null,null,F9),e.DNE(3,J60,9,6,"div",102),e.k0s()),2&t){const c=e.XpG(2);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 Z60(t,a){if(1&t&&(e.j41(0,"div",112)(1,"div",113)(2,"h5",114),e.EFF(3),e.k0s()(),e.j41(4,"div",115),e.nrm(5,"markdown",106),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,u8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function K60(t,a){if(1&t&&(e.j41(0,"div",111)(1,"div",116)(2,"h5",117),e.EFF(3),e.k0s()(),e.j41(4,"div",115),e.nrm(5,"markdown",106),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,u8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function e80(t,a){if(1&t&&(e.j41(0,"div",111)(1,"div",108)(2,"h5",118),e.EFF(3),e.k0s()(),e.j41(4,"div",115),e.nrm(5,"markdown",106),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(2),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,u8,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function c80(t,a){if(1&t&&e.DNE(0,Z60,6,10,"div",112)(1,K60,6,10)(2,e80,6,10),2&t){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:2)}}function t80(t,a){1&t&&(e.j41(0,"div",111)(1,"div",108)(2,"h5",109),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",119),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&t&&(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 n80(t,a){if(1&t&&(e.j41(0,"div",101),e.Z7z(1,c80,3,1,null,null,F9),e.DNE(3,t80,8,6,"div",111),e.k0s()),2&t){const c=e.XpG(2);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 l80(t,a){if(1&t&&e.DNE(0,Q60,4,1,"div",101)(1,n80,4,1),2&t){const c=e.XpG();e.vxM(0,c.checkCustom?0:1)}}function s80(t,a){if(1&t&&(e.j41(0,"div",97)(1,"div",121)(2,"h3",122),e.EFF(3),e.k0s(),e.nrm(4,"markdown",123),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function a80(t,a){if(1&t&&(e.j41(0,"h2",53),e.EFF(1,"Usage metrics"),e.k0s(),e.j41(2,"div",54)(3,"div",120),e.Z7z(4,s80,5,10,"div",97,F9),e.k0s()()),2&t){const c=e.XpG();e.R7$(4),e.Dyx(c.usageMetrics)}}function o80(t,a){if(1&t&&e.nrm(0,"markdown",128),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.Y8G("ngClass",e.l_i(2,u8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function i80(t,a){1&t&&(e.j41(0,"span",129),e.EFF(1,"Optional"),e.k0s())}function r80(t,a){if(1&t&&(e.j41(0,"div",131)(1,"span",132),e.EFF(2,"Default"),e.k0s(),e.j41(3,"span",133),e.EFF(4),e.k0s()()),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.R7$(3),e.Y8G("ngClass",n.getBooleanDefaultValue(c)?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-gray-200 text-gray-700 dark:bg-gray-700 dark:text-gray-200"),e.R7$(),e.SpI(" ",n.getBooleanDefaultValue(c)?"Enabled":"Disabled"," ")}}function d80(t,a){if(1&t&&(e.j41(0,"label",136),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicValueLabel(c)),e.R7$(),e.JRh(n.getCharacteristicValuePreview(c))}}function f80(t,a){if(1&t&&(e.j41(0,"label",136),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicRangeLabel(c)),e.R7$(),e.JRh(n.getCharacteristicRangePreview(c))}}function u80(t,a){if(1&t&&(e.j41(0,"div",134),e.nrm(1,"input",135),e.DNE(2,d80,2,2,"label",136)(3,f80,2,2),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(2),e.vxM(2,null!=c.value?2:3)}}function m80(t,a){if(1&t&&(e.j41(0,"label",138),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicValueLabel(c)),e.R7$(),e.JRh(n.getCharacteristicValuePreview(c))}}function p80(t,a){if(1&t&&(e.j41(0,"label",138),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2).$implicit,n=e.XpG(4);e.Y8G("title",n.getCharacteristicRangeLabel(c)),e.R7$(),e.JRh(n.getCharacteristicRangePreview(c))}}function h80(t,a){if(1&t&&(e.j41(0,"div",134),e.nrm(1,"input",137),e.DNE(2,m80,2,2,"label",138)(3,p80,2,2),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(2),e.vxM(2,null!=c.value?2:3)}}function g80(t,a){if(1&t&&e.DNE(0,u80,4,1,"div",134)(1,h80,4,1),2&t){const c=a.$implicit;e.vxM(0,1==(null==c?null:c.isDefault)?0:1)}}function _80(t,a){if(1&t&&e.Z7z(0,g80,2,1,null,null,L60),2&t){const c=e.XpG().$implicit;e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function L80(t,a){if(1&t&&(e.j41(0,"div",97)(1,"div",126)(2,"h3",127),e.EFF(3),e.k0s(),e.DNE(4,o80,1,5,"markdown",128)(5,i80,2,0,"span",129),e.j41(6,"div",130),e.DNE(7,r80,5,2,"div",131)(8,_80,2,0),e.k0s()()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(5,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.vxM(4,c.description?4:-1),e.R7$(),e.vxM(5,n.isOptionalCharacteristic(c)?5:-1),e.R7$(2),e.vxM(7,n.isBooleanCharacteristic(c)?7:8)}}function C80(t,a){1&t&&(e.j41(0,"div",125)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",142),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",143),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function z80(t,a){if(1&t&&(e.j41(0,"div",59,6)(2,"h2",124),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",54)(6,"div",120),e.Z7z(7,L80,9,8,"div",97,F9,!1,C80,9,3,"div",125),e.k0s()()()),2&t){const c=e.XpG();e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_DETAILS._product_chars")),e.R7$(4),e.Dyx(c.prodChars)}}function M80(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",97)(1,"div",145)(2,"div",146)(3,"h3",122),e.EFF(4),e.k0s()(),e.j41(5,"div",147)(6,"fa-icon",148),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.goToLink(l.url))}),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(3),e.Y8G("ngClass",e.l_i(3,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("icon",n.faDownload)}}function x80(t,a){1&t&&(e.j41(0,"div",125)(1,"div",149),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",142),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",143),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_attach")," "))}function b80(t,a){if(1&t&&(e.j41(0,"h2",53,7),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",144)(5,"div",120),e.Z7z(6,M80,7,6,"div",97,F9,!1,x80,9,3,"div",125),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"PRODUCT_DETAILS._product_att")),e.R7$(4),e.Dyx(c.attatchments)}}function y80(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",155),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.toggleTermsReadMore())}),e.EFF(1),e.k0s()}if(2&t){const c=e.XpG(3);e.R7$(),e.SpI(" ",c.showTermsMore?"Read less":"Read more"," ")}}function F80(t,a){if(1&t&&(e.j41(0,"h2",124,8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",54)(5,"div",150)(6,"div",151)(7,"div",147),e.nrm(8,"fa-icon",99),e.k0s()(),e.j41(9,"div",152,9),e.nrm(11,"markdown",153),e.k0s(),e.DNE(12,y80,2,1,"button",154),e.k0s()()),2&t){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"PRODUCT_DETAILS._license")),e.R7$(6),e.Y8G("icon",c.faScaleBalanced),e.R7$(),e.AVh("line-clamp-5",!c.showTermsMore),e.R7$(2),e.Y8G("ngClass",e.l_i(9,u8,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(12,c.showReadMoreButton?12:-1)}}function v80(t,a){if(1&t&&(e.j41(0,"h2",156),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"p",157),e.EFF(4),e.k0s()),2&t){const c=e.XpG(2);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 k80(t,a){if(1&t&&e.DNE(0,F80,13,12)(1,v80,5,4),2&t){const c=e.XpG();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 w80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faArrowProgress)}}function S80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faArrowRightArrowLeft)}}function N80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faObjectExclude)}}function E80(t,a){if(1&t&&e.nrm(0,"fa-icon",99),2&t){const c=e.XpG(3);e.Y8G("icon",c.faSwap)}}function D80(t,a){if(1&t&&(e.j41(0,"div",97)(1,"div",121)(2,"h3",122),e.EFF(3),e.k0s(),e.j41(4,"div",159)(5,"p",160),e.EFF(6),e.k0s(),e.DNE(7,w80,1,1,"fa-icon",99)(8,S80,1,1)(9,N80,1,1)(10,E80,1,1),e.k0s()()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(4,u8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.JRh(c.relationshipType),e.R7$(),e.vxM(7,"dependency"==c.relationshipType?7:"migration"==c.relationshipType?8:"exclusivity"==c.relationshipType?9:"substitution"==c.relationshipType?10:-1)}}function T80(t,a){if(1&t&&(e.j41(0,"h2",124,10),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",158)(5,"div",120),e.Z7z(6,D80,11,7,"div",97,F9),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,1,"PRODUCT_DETAILS._product_rels")),e.R7$(4),e.Dyx(c.prodSpec.productSpecificationRelationship)}}function R80(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",64)(1,"div",161),e.qSk(),e.j41(2,"svg",162),e.nrm(3,"path",163),e.k0s(),e.joV(),e.j41(4,"div",164),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",165)(8,"button",166),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",167),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",142),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",168),e.nrm(16,"path",169),e.k0s()()()(),e.joV(),e.j41(17,"div",170),e.nrm(18,"div",171),e.k0s()()}2&t&&(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 A80(t,a){if(1&t&&e.nrm(0,"cart-card",65),2&t){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function I80(t,a){if(1&t&&e.nrm(0,"error-message",66),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function P80(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-quote-request-modal",172),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&t){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 $80=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1,N1){this.cdr=c,this.route=n,this.api=l,this.priceService=r,this.router=m,this.elementRef=z,this.localStorage=F,this.cartService=I,this.eventMessage=J,this.accService=d1,this.usageService=i1,this.location=N1,this.providerThemeName=h1.c.providerThemeName,this.quotesEnabled=h1.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.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=h1.c.PURCHASE_ENABLED,this.showReadMoreButton=!1,this.customerId="",this.orgInfo=void 0,this.showQuoteModal=!1,this.productAlreadyInCart=!1,this.faScaleBalanced=E2.iRu,this.faArrowProgress=E2.SZt,this.faArrowRightArrowLeft=E2.tNR,this.faObjectExclude=E2.tP3,this.faSwap=E2.FJA,this.faGlobe=E2.Bwz,this.faBook=E2.LBj,this.faShieldHalved=E2.fLc,this.faAtom=E2.RSf,this.faDownload=E2.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,P1.Q)(this.destroy$)).subscribe(J1=>{if("CloseCartCard"===J1.type){if(this.hideCartSelection(),null!=J1.value){this.lastAddedProd=J1.value,this.toastVisibility=!0,this.cdr.detectChanges();let u2=document.getElementById("progress-bar"),F2=document.getElementById("toast-add-cart");null!=u2&&null!=F2&&(u2.style.width="0%",u2.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}else"CloseQuoteRequest"===J1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==J1.type||"AddedCartItem"==J1.type)&&this.cartService.getShoppingCart().then(u2=>{this.productAlreadyInCart=!!u2.some(U2=>U2.id===this.productOff?.id)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateTabs(c){if(this.isManualScroll)return;const n=[{id:"details-container",tab:"details-button",handler:()=>this.goToDetails(!1)},{id:"chars-container",tab:"chars-button",handler:()=>this.goToChars(!1)},{id:"attach-container",tab:"attach-button",handler:()=>this.goToAttach(!1)},{id:"agreements-container",tab:"agreements-button",handler:()=>this.goToAgreements(!1)},{id:"relationships-container",tab:"relationships-button",handler:()=>this.goToRelationships(!1)}];let r=null;for(let m=n.length-1;m>=0;m--){const z=n[m],F=document.getElementById(z.id);if(!F)continue;const I=F.getBoundingClientRect();if(I.top<=150&&I.bottom>150){r=z;break}I.top>150&&(r=z)}r&&r.handler()}ngOnInit(){var c=this;return(0,b1.A)(function*(){S2();let n=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(n)&&n.expire-H2().unix()-4>0)if(c.check_logged=!0,c.cdr.detectChanges(),n.logged_as==n.id)c.customerId=n.partyId;else{let I=n.organizations.find(J=>J.id==n.logged_as);c.customerId=I.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),r=yield c.api.getProductSpecification(l.productSpecification.id);c.prodSpec=r,c.getOwner();let m=l.productOfferingPrice,z=[];if(void 0!==m)for(let I=0;I!J.name.startsWith("Compliance:")&&!J.name?.endsWith(" - enabled")),c.additionalCerts=c.prodSpec.productSpecCharacteristic.filter(J=>{const d1=J.name.replace("Compliance:","").trim();return J.name.startsWith("Compliance:")&&!v5.some(i1=>i1.name===d1)&&"Compliance:SelfAtt"!=J.name}),console.log("--- additional"),console.log(c.additionalCerts);const I=J=>J?.replace(/compliance:/i,"").trim()??"";for(let J=0;JI(N1.name)===v5[J].name);if(d1){let N1=v5[J];N1.href=d1.productSpecCharacteristicValue?.at(0)?.value,c.complianceProf.push(N1)}const i1=c.prodChars.findIndex(N1=>I(N1.name)===v5[J].name);-1!==i1&&c.prodChars.splice(i1,1)}console.log(c.complianceProf)}if(null!=c.prodSpec.serviceSpecification)for(let I=0;I"Profile Picture"===I.name)??[];if(console.log("profile..."),console.log(F),0==F.length?(c.images=c.productOff?.attachment?.filter(I=>"Picture"===I.attachmentType)??[],c.attatchments=c.productOff?.attachment?.filter(I=>"Picture"!=I.attachmentType)??[]):(c.images=F,c.attatchments=c.productOff?.attachment?.filter(I=>"Profile Picture"!=I.name)??[]),c.licenseTerm=c.productOff?.productOfferingTerm?.find(I=>"License"===I.name),null!=c.prodSpec.productSpecCharacteristic){let I=c.prodSpec.productSpecCharacteristic.find(J=>"Compliance:SelfAtt"===J.name);I&&(c.selfAtt=I.productSpecCharacteristicValue?.at(0)?.value)}if(c.complianceLevel=c.api.getComplianceLevel(c.prodSpec),c.complianceDescription=c.getComplianceDescription(),c.check_logged){const J=(yield c.cartService.getShoppingCart()).some(d1=>d1.id===c.productOff?.id);c.productAlreadyInCart=J,c.cdr.detectChanges()}})()}loadUsageMetrics(c){var n=this;return(0,b1.A)(function*(){if(!c||0===c.length)return void(n.usageMetrics=[]);const l=new Map,r=new Map;for(const m of c)yield n.collectUsageMetricsFromPrice(m,l,r);n.usageMetrics=Array.from(l.values())})()}collectUsageMetricsFromPrice(c,n,l){var r=this;return(0,b1.A)(function*(){if(!c)return;const m=Array.isArray(c.bundledPopRelationship)?c.bundledPopRelationship:[];if(m.length>0){for(const z of m)if(z?.id)try{const F=yield r.api.getOfferingPrice(z.id);yield r.addMetricFromPrice(F,n,l)}catch(F){console.error("Error loading linked product offering price",F)}}else yield r.addMetricFromPrice(c,n,l)})()}addMetricFromPrice(c,n,l){var r=this;return(0,b1.A)(function*(){const m=c?.usageSpecId,z=r.getMetricName(c?.unitOfMeasure);if(!m||!z)return;const F=`${m}:${z}`;if(n.has(F))return;let I=l.get(m);if(void 0===I){try{I=yield r.usageService.getUsageSpec(m)}catch{I=null}l.set(m,I)}n.set(F,{id:F,usageSpecId:m,name:z,description:I?.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)}checkOverflow(){const c=this.termsTextRef?.nativeElement;c&&(this.showReadMoreButton=c.scrollHeight>c.clientHeight)}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,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,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 n=this;return(0,b1.A)(function*(){void 0!==c&&(yield n.cartService.removeItemShoppingCart(c.id),console.log("removed"),n.eventMessage.emitRemovedCartItem(c)),n.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}goToDetails(c){if(c){this.isManualScroll=!0,clearTimeout(this.scrollTimeout);const F=this.detailsScrollAnchor?.nativeElement;if(!F)return;document.scrollingElement||document,F.scrollIntoView({behavior:"smooth",block:"start"});const J=F.getBoundingClientRect().top+window.scrollY-88;window.scrollTo({top:J,behavior:"smooth"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3)}let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.selectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToChars(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.charsScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToAttach(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.attachScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToAgreements(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.agreementsScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}goToRelationships(c){c&&(this.isManualScroll=!0,clearTimeout(this.scrollTimeout),this.relScrollAnchor.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}),this.scrollTimeout=setTimeout(()=>{this.isManualScroll=!1},1e3));let n=document.getElementById("details-button"),l=document.getElementById("chars-button"),r=document.getElementById("attach-button"),m=document.getElementById("agreements-button"),z=document.getElementById("relationships-button");this.unselectTag(n,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(l,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(r,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.unselectTag(m,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100"),this.selectTag(z,"text-primary-100 dark:text-primary-50 dark:border-primary-50 border-b-2 border-primary-100")}unselectTag(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectTag(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}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 n=0;n{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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}getCharacteristicValueLabel(c){const n=this.formatCharacteristicScalar(c?.value),l=this.getUnitLabel(c?.unitOfMeasure);return l?`${n} (${l})`:n}getCharacteristicValuePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicValueLabel(c))}getCharacteristicRangeLabel(c){const n=this.formatCharacteristicScalar(c?.valueFrom),l=this.formatCharacteristicScalar(c?.valueTo),r=this.getUnitLabel(c?.unitOfMeasure),m=`${n} - ${l}`;return r?`${m} (${r})`:m}getCharacteristicRangePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicRangeLabel(c))}isOptionalCharacteristic(c){const n=(c?.name??"").toString().trim();if(!n||!this.prodSpec?.productSpecCharacteristic)return!1;const l=`${n} - enabled`.toLowerCase();return this.prodSpec.productSpecCharacteristic.some(r=>(r?.name??"").toString().trim().toLowerCase()===l)}isBooleanCharacteristic(c){const n=c?.productSpecCharacteristicValue;return!(!Array.isArray(n)||0===n.length)&&n.every(l=>"boolean"==typeof l?.value)}getBooleanDefaultValue(c){const n=c?.productSpecCharacteristicValue;return!(!Array.isArray(n)||0===n.length)&&!0===(n.find(r=>!0===r?.isDefault)??n[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,n=120){return c?c.length>n?`${c.slice(0,n)}...`:c:""}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(N2.nX),e.rXU(n0.F),e.rXU(pe),e.rXU(N2.Ix),e.rXU(e.aKT),e.rXU(C2.s),e.rXU(d8),e.rXU(j2),e.rXU(s0.O),e.rXU(Ze),e.rXU(L.aZ))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-product-details"]],viewQuery:function(n,l){if(1&n&&(e.GBs(a60,5),e.GBs(o60,5),e.GBs(i60,5),e.GBs(r60,5),e.GBs(d60,5),e.GBs(f60,5),e.GBs(u60,5),e.GBs(m60,5),e.GBs(p60,5),e.GBs(h60,5),e.GBs(g60,5),e.GBs(_60,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.relationshipsContent=r.first),e.mGM(r=e.lsd())&&(l.detailsContent=r.first),e.mGM(r=e.lsd())&&(l.charsContent=r.first),e.mGM(r=e.lsd())&&(l.attachContent=r.first),e.mGM(r=e.lsd())&&(l.agreementsContent=r.first),e.mGM(r=e.lsd())&&(l.textDiv=r.first),e.mGM(r=e.lsd())&&(l.termsTextRef=r.first),e.mGM(r=e.lsd())&&(l.agreementsScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.relScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.attachScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.charsScrollAnchor=r.first),e.mGM(r=e.lsd())&&(l.detailsScrollAnchor=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("scroll",function(m){return l.updateTabs(m)},!1,e.tSv)},decls:101,vars:66,consts:[["detailsScrollAnchor",""],["detailsContent",""],["charsScrollAnchor",""],["attachScrollAnchor",""],["agreementsScrollAnchor",""],["relScrollAnchor",""],["charsContent",""],["attachContent",""],["agreementsContent",""],["termsText",""],["relationshipsContent",""],[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","text-wrap","break-words",3,"ngClass"],[1,"pt-2","line-clamp-5","h-fit"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"flex","flex-row","justify-between","h-fit"],[1,"dark:text-gray-200"],[1,"h-fit","pt-2","dark:text-gray-300"],[1,"h-fit","overflow-x-hidden","flex","items-center","flex-wrap"],[1,"mr-2",3,"category"],[1,"text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","mb-1",3,"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","Product image",1,"object-contain","h-5/6","w-5/6","max-h-[350px]","z-10","p-8","dark:text-white",3,"src"],["id","tabs-container",1,"sticky","top-[72px]","z-10","w-full","h-full","bg-secondary-50","rounded-t-lg","pt-4","pr-4","pl-4","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border-t"],[1,"inline-flex","overflow-x-auto","overflow-y-hidden","w-full","text-sm","font-medium","text-center","text-gray-600","dark:text-white","border-b","border-gray-300","dark:border-white","justify-between"],[1,"flex","flex-wrap","-mb-px"],[1,"mr-2"],["id","details-button",1,"inline-block","p-4","text-primary-100","dark:text-primary-50","dark:border-primary-50","border-b-2","border-primary-100","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],[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-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["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,"container","mx-auto","px-4"],[1,"text-2xl","font-bold","text-primary-100","dark:text-primary-50","text-left","mb-2"],[1,"mb-2","text-gray-800","dark:text-gray-200"],["target","_blank",1,"font-medium","text-blue-600","dark:text-blue-500","hover:underline",3,"href"],["id","chars-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["id","chars-container"],["id","attach-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["id","agreements-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["id","agreements-container"],["id","rel-scroll-anchor",1,"pt-[88px]","-mt-[88px]"],["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"],["data-cy","pricePlanDrawer",3,"closeDrawer","drawerId","productOff","prodSpec","isOpen","width"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"mr-2",3,"icon","ngClass"],["src","assets/logos/baseline.png","alt","Baseline logo",1,"z-10","h-[1.2rem]","max-w-[8rem]","object-contain","rounded-md","mr-2"],["src","assets/logos/prof.png","alt","Professional logo",1,"z-10","h-[1.2rem]","max-w-[8rem]","object-contain","rounded-md","mr-2"],["src","assets/logos/profplus.png","alt","Professional plus logo",1,"z-10","h-[1.2rem]","max-w-[8rem]","object-contain","rounded-md","mr-2"],["id","chars-button","aria-current","page",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["id","attach-button",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["id","agreements-button",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["id","relationships-button",1,"inline-block","p-4","rounded-t-lg","hover:text-primary-50","hover:border-primary-50",3,"click"],["type","button",1,"hidden","md:flex","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"disabled","ngClass"],["type","button",1,"hidden","md:flex","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","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","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,"hidden","md:flex","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"],["type","button",1,"flex","md:hidden","justify-end","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"disabled","ngClass"],["type","button",1,"flex","md:hidden","justify-end","w-fit","m-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","px-5","py-2.5","text-center","inline-flex","items-center","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click","disabled","ngClass"],["type","button",1,"md:hidden","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"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50"],[1,"pl-4","dark:text-gray-200",3,"ngClass"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"data"],[1,"pl-4","dark:text-gray-200"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],["src","assets/logos/baseline.png",1,"z-10","dark:text-white","rounded-md","mr-2","max-w-md"],["src","assets/logos/prof.png",1,"z-10","dark:text-white","rounded-md","mr-2","max-w-md"],["src","assets/logos/profplus.png",1,"z-10","dark:text-white","rounded-md","mr-2","max-w-md"],[1,"flex","flex-wrap","-mx-4","mt-4","justify-center"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"border","border-2","rounded-lg","shadow","bg-white","dark:bg-secondary-200","shadow-md","p-8","h-full","border-primary-100","cursor-pointer",3,"click"],[1,"fa-2xl","text-primary-100","align-middle",3,"icon"],[1,"text-2xl","font-bold","mt-4","dark:text-white"],[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,"flex","flex-wrap","-mx-4","justify-center"],[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","break-words",3,"ngClass"],[1,"text-gray-700","dark:text-gray-200","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,"flex","justify-center","items-center","w-full"],[1,"relative","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","break-words","pr-28",3,"ngClass"],[1,"text-sm","text-gray-700","dark:text-gray-200","text-wrap","break-words","mb-4",3,"ngClass","data"],[1,"absolute","top-4","right-4","inline-flex","items-center","rounded-md","bg-blue-100","px-2","py-1","text-xs","font-medium","text-blue-700","dark:bg-blue-900/60","dark:text-blue-200"],[1,"mt-3"],[1,"pl-4","flex","items-center","gap-2"],[1,"text-sm","font-medium","text-gray-600","dark:text-gray-300"],[1,"inline-flex","items-center","rounded-md","px-2","py-1","text-xs","font-medium",3,"ngClass"],[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",3,"title"],["disabled","","id","disabled-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","dark:bg-gray-600","dark:border-gray-800","border-gray-300","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","text-wrap","break-all",3,"title"],["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"],["id","attach-container",1,"container","mx-auto","px-4"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full","grid","grid-cols-80/20","pb-4","h-1/4"],[1,"flex","justify-start"],[1,"flex","justify-end"],[1,"fa-xl","cursor-pointer","text-primary-100","align-middle",3,"click","icon"],["role","alert",1,"flex","items-center","w-full","md: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,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","p-8"],[1,"pb-4","h-1/4"],[1,"overflow-hidden"],[1,"text-lg","font-normal","text-gray-700","dark:text-gray-200","mb-4","break-words",3,"ngClass","data"],[1,"mt-4","text-blue-500","focus:outline-none"],[1,"mt-4","text-blue-500","focus:outline-none",3,"click"],[1,"text-4xl","font-extrabold","text-primary-100","text-center","pb-8","pt-12"],[1,"mb-2","pl-4","font-normal","text-gray-700"],["id","relationships-container",1,"container","mx-auto","px-4"],[1,"flex","justify-between"],[1,"mb-2","font-normal","pl-4","text-gray-700","dark:text-gray-200"],[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"],["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"]],template:function(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",11)(1,"div",12)(2,"nav",13)(3,"ol",14)(4,"li",15)(5,"button",16),e.bIt("click",function(){return e.eBV(r),e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",17),e.nrm(7,"path",18),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",19)(11,"div",20),e.qSk(),e.j41(12,"svg",21),e.nrm(13,"path",22),e.k0s(),e.joV(),e.j41(14,"span",23),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",24)(18,"div",25),e.nrm(19,"img",26),e.k0s(),e.j41(20,"div",27)(21,"div",28)(22,"h5",29),e.EFF(23),e.k0s()(),e.j41(24,"div",30),e.nrm(25,"markdown",31),e.k0s(),e.j41(26,"div",32),e.DNE(27,C60,5,4,"div",33),e.j41(28,"div",34),e.EFF(29),e.k0s()(),e.j41(30,"div",35),e.Z7z(31,z60,1,1,"bae-badge",36,F9),e.DNE(33,M60,3,3,"a",37)(34,x60,1,0)(35,b60,1,0)(36,y60,1,0),e.k0s()(),e.j41(37,"div",38)(38,"div",39),e.nrm(39,"div",40)(40,"img",41),e.k0s()()(),e.j41(41,"div",42)(42,"div",43)(43,"ul",44)(44,"li",45)(45,"button",46),e.bIt("click",function(){return e.eBV(r),e.Njj(l.goToDetails(!0))}),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.DNE(48,F60,4,3,"li",45)(49,v60,4,3,"li",45)(50,k60,4,3,"li",45)(51,w60,4,3,"li",45),e.k0s(),e.DNE(52,E60,2,1),e.k0s(),e.DNE(53,R60,2,1),e.k0s(),e.j41(54,"div",47)(55,"div",48),e.nrm(56,"div",49,0),e.j41(58,"div",50)(59,"h2",51,1),e.EFF(61,"Description"),e.k0s(),e.nrm(62,"markdown",31),e.DNE(63,I60,6,3,"div",52)(64,$60,6,3,"div",52),e.j41(65,"h2",53),e.EFF(66),e.nI1(67,"translate"),e.k0s(),e.j41(68,"div",54),e.DNE(69,j60,2,0,"h3",55)(70,O60,1,0)(71,B60,1,0)(72,V60,1,0),e.j41(73,"p",56),e.EFF(74),e.k0s(),e.DNE(75,U60,3,4,"a",57)(76,G60,5,0)(77,q60,5,0),e.k0s(),e.j41(78,"h2",53),e.EFF(79),e.nI1(80,"translate"),e.k0s(),e.DNE(81,l80,2,1)(82,a80,6,0),e.k0s(),e.nrm(83,"div",58,2),e.DNE(85,z80,10,4,"div",59),e.nrm(86,"div",60,3),e.DNE(88,b80,9,4),e.nrm(89,"div",61,4),e.j41(91,"div",62),e.DNE(92,k80,2,2),e.k0s(),e.nrm(93,"div",63,5),e.DNE(95,T80,8,3),e.k0s()(),e.DNE(96,R80,19,9,"div",64)(97,A80,1,4,"cart-card",65)(98,I80,1,1,"error-message",66)(99,P80,1,6,"app-quote-request-modal",67),e.j41(100,"app-price-plan-drawer",68),e.bIt("closeDrawer",function(){return e.eBV(r),e.Njj(l.closeDrawer())}),e.k0s()()}2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,47,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,49,"PRODUCT_DETAILS._details")),e.R7$(4),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(3),e.Y8G("ngClass",e.l_i(57,u8,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$(2),e.Y8G("ngClass",e.l_i(60,u8,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.vxM(27,null!=l.orgInfo?27:-1),e.R7$(2),e.SpI("V: ",(null==l.productOff?null:l.productOff.version)||"latest",""),e.R7$(2),e.Dyx(l.categories),e.R7$(2),e.vxM(33,"NL"==l.complianceLevel?33:"BL"==l.complianceLevel?34:"P"==l.complianceLevel?35:36),e.R7$(6),e.muq("background-image: url(",l.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(6),e.SpI(" ",e.bMT(47,51,"PRODUCT_DETAILS._details")," "),e.R7$(2),e.vxM(48,null!=l.prodSpec.productSpecCharacteristic&&l.prodSpec.productSpecCharacteristic.length>0?48:-1),e.R7$(),e.vxM(49,l.attatchments.length>0?49:-1),e.R7$(),e.vxM(50,l.licenseTerm||null!=l.productOff&&l.productOff.serviceLevelAgreement?50:-1),e.R7$(),e.vxM(51,null!=l.prodSpec.productSpecificationRelationship&&l.prodSpec.productSpecificationRelationship.length>0?51:-1),e.R7$(),e.vxM(52,l.check_logged?52:-1),e.R7$(),e.vxM(53,l.check_logged?53:-1),e.R7$(9),e.Y8G("ngClass",e.l_i(63,u8,l.hasLongWord(l.prodSpec.description,20),!l.hasLongWord(l.prodSpec.description,20)))("data",l.prodSpec.description),e.R7$(),e.vxM(63,l.serviceSpecs.length>0?63:-1),e.R7$(),e.vxM(64,l.resourceSpecs.length>0?64:-1),e.R7$(2),e.JRh(e.bMT(67,53,"CARD._comp_profile")),e.R7$(3),e.vxM(69,"NL"==l.complianceLevel?69:"BL"==l.complianceLevel?70:"P"==l.complianceLevel?71:72),e.R7$(5),e.SpI(" ",l.complianceDescription," "),e.R7$(),e.vxM(75,l.selfAtt?75:-1),e.R7$(),e.vxM(76,l.complianceProf.length>0?76:-1),e.R7$(),e.vxM(77,l.additionalCerts.length>0?77:-1),e.R7$(2),e.JRh(e.bMT(80,55,"PRODUCT_DETAILS._product_pricing")),e.R7$(2),e.vxM(81,null!=(null==l.productOff?null:l.productOff.productOfferingPrice)?81:-1),e.R7$(),e.vxM(82,l.usageMetrics.length>0?82:-1),e.R7$(3),e.vxM(85,null!=l.prodSpec.productSpecCharacteristic&&l.prodChars.length>0?85:-1),e.R7$(3),e.vxM(88,l.attatchments.length>0?88:-1),e.R7$(4),e.vxM(92,l.licenseTerm||null!=l.productOff&&l.productOff.serviceLevelAgreement?92:-1),e.R7$(3),e.vxM(95,null!=l.prodSpec.productSpecificationRelationship&&l.prodSpec.productSpecificationRelationship.length>0?95:-1),e.R7$(),e.vxM(96,l.toastVisibility?96:-1),e.R7$(),e.vxM(97,l.cartSelection?97:-1),e.R7$(),e.vxM(98,l.showError?98:-1),e.R7$(),e.vxM(99,l.showQuoteModal?99:-1),e.R7$(),e.Y8G("drawerId","drawer-product")("productOff",l.productOff)("prodSpec",l.prodSpec)("isOpen",l.isDrawerOpen)("width","w-2/3"))},dependencies:[L.YU,X2.aY,$d1,T0,rG,of1,Q0,$N1,s1.D9],styles:[".container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;background-size:cover;background-repeat:no-repeat;background-position:center}"]})}}return t})();const if1=(t,a)=>a.id,PE=(t,a)=>({"break-all":t,"break-words":a});function j80(t,a){if(1&t&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,PE,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function O80(t,a){if(1&t&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,j80,5,6,"p",36,if1),e.k0s()),2&t){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 B80(t,a){if(1&t&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,PE,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20)))("data",c.description)}}function V80(t,a){if(1&t&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,B80,5,6,"p",36,if1),e.k0s()),2&t){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 U80(t,a){1&t&&(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&t&&(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 H80(t,a){if(1&t&&(e.j41(0,"div",43)(1,"div",44)(2,"h2",45),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",46),e.k0s()),2&t){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,PE,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 G80(t,a){if(1&t&&(e.j41(0,"div",33),e.DNE(1,U80,9,6,"div",38)(2,H80,5,6),e.k0s()),2&t){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 Y80(t,a){if(1&t&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function q80(t,a){if(1&t&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function X80(t,a){if(1&t&&(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,Y80,2,2,"label",56)(7,q80,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function W80(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function J80(t,a){if(1&t&&(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,X80,8,2,"div",50,if1,!1,W80,9,3,"div",51),e.k0s()()()),2&t){const c=e.XpG();e.R7$(6),e.Dyx(c.prod.productCharacteristic)}}let Q80=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.cdr=c,this.route=n,this.api=l,this.priceService=r,this.router=m,this.elementRef=z,this.localStorage=F,this.eventMessage=I,this.inventoryServ=J,this.location=d1,this.check_logged=!1,this.images=[],this.attatchments=[],this.serviceSpecs=[],this.resourceSpecs=[],this.prod={},this.prodSpec={},this.checkCustom=!1,this.faScaleBalanced=E2.iRu,this.faArrowProgress=E2.SZt,this.faArrowRightArrowLeft=E2.tNR,this.faObjectExclude=E2.tP3,this.faSwap=E2.FJA,this.faGlobe=E2.Bwz,this.faBook=E2.LBj,this.faShieldHalved=E2.fLc,this.faAtom=E2.RSf,this.faDownload=E2.cbP}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(S2(),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 n=yield c.api.getProductById(c.prod.productOffering.id);c.prodSpec=yield c.api.getProductSpecification(n.productSpecification.id),c.prod.productPrice.length>0&&(c.pricePlan=yield c.loadPricePlan(c.prod.productPrice[0].productOfferingPrice.id)),c.productOff={id:n.id,name:n.name,category:n.category,description:n.description,lastUpdate:n.lastUpdate,attachment:c.prodSpec?.attachment??[],productOfferingPrice:c.prod.productPrice,productSpecification:n.productSpecification,productOfferingTerm:n.productOfferingTerm,serviceLevelAgreement:n.serviceLevelAgreement,version:n.version},console.log(c.productOff),c.organizeAttachments(),c.completeCharacteristics(),yield c.fetchSpecifications(),c.cdr.detectChanges()}catch(n){console.error("Error fetching product details:",n)}})()}completeCharacteristics(){this.prod.productCharacteristic=this.prod?.productCharacteristic?.map(c=>(this.prodSpec?.productSpecCharacteristic?.forEach(n=>{c.name===n.name&&n.productSpecCharacteristicValue&&n.productSpecCharacteristicValue.length>0&&n.productSpecCharacteristicValue[0].unitOfMeasure&&(c.unitOfMeasure=n.productSpecCharacteristicValue[0].unitOfMeasure)}),c))}handleLoginState(){const c=this.localStorage.getObject("login_items"),n=c&&Object.keys(c).length>0&&c.expire-H2().unix()-4>0;this.check_logged=n,this.cdr.detectChanges()}organizeAttachments(){const c=this.productOff?.attachment?.filter(n=>"Profile Picture"===n.name)??[];0===c.length?(this.images=this.productOff?.attachment?.filter(n=>"Picture"===n.attachmentType)??[],this.attatchments=this.productOff?.attachment?.filter(n=>"Picture"!==n.attachmentType)??[]):(this.images=c,this.attatchments=this.productOff?.attachment?.filter(n=>"Profile Picture"!==n.name)??[])}fetchSpecifications(){var c=this;return(0,b1.A)(function*(){const n=c.prodSpec?.serviceSpecification?.map(z=>c.api.getServiceSpec(z.id))??[],l=c.prodSpec?.resourceSpecification?.map(z=>c.api.getResourceSpec(z.id))??[],[r,m]=yield Promise.all([Promise.all(n),Promise.all(l)]);c.serviceSpecs=r,c.resourceSpecs=m})()}loadPricePlan(c){var n=this;return(0,b1.A)(function*(){return yield n.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(N2.nX),e.rXU(n0.F),e.rXU(pe),e.rXU(N2.Ix),e.rXU(e.aKT),e.rXU(C2.s),e.rXU(j2),e.rXU(f8),e.rXU(L.aZ))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){if(1&n){const r=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(r),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,O80,6,3,"div",31)(40,V80,6,3,"div",31),e.j41(41,"h2",32),e.EFF(42,"Price Plan"),e.k0s(),e.DNE(43,G80,3,1,"div",33),e.k0s(),e.DNE(44,J80,9,1,"div",34),e.k0s()()()}2&n&&(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,PE,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,PE,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:[L.YU,T0,s1.D9]})}}return t})();const YL=(t,a)=>a.id,Z80=()=>[],v9=(t,a)=>({"break-all":t,"break-words":a});function K80(t,a){1&t&&(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 ee0(t,a){1&t&&e.nrm(0,"bae-badge",46),2&t&&e.Y8G("category",a.$implicit)}function ce0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",50)(1,"button",55),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().$implicit;return e.XpG(3).openModifyFromCard(r),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 r=e.XpG().$implicit;return e.XpG(3).showUnsubscribeModal(r),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&t){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 te0(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function ne0(t,a){if(1&t&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function le0(t,a){if(1&t&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function se0(t,a){if(1&t&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function ae0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",37)(1,"div",39),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.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,ee0,1,1,"bae-badge",46,YL),e.k0s(),e.j41(10,"div",47)(11,"a",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.goToProductDetails(l.product))}),e.j41(12,"h5",49),e.EFF(13),e.k0s()(),e.DNE(14,ce0,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,te0,2,1,"span",54)(21,ne0,2,1)(22,le0,2,1)(23,se0,2,1),e.k0s()()()()()}if(2&t){const c=a.$implicit,n=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-"+n),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 oe0(t,a){1&t&&(e.j41(0,"div",38),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_INVENTORY._not_found")))}function ie0(t,a){if(1&t){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 re0(t,a){if(1&t&&e.DNE(0,ie0,5,0,"div",66),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function de0(t,a){1&t&&(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 fe0(t,a){if(1&t&&(e.j41(0,"div",36),e.Z7z(1,ae0,24,10,"div",37,YL,!1,oe0,3,3,"div",38),e.k0s(),e.DNE(4,re0,1,1)(5,de0,6,0)),2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.inventory),e.R7$(3),e.vxM(4,c.loading_more?5:4)}}function ue0(t,a){if(1&t){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,K80,6,0,"div",31)(44,fe0,6,2)}if(2&t){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 me0(t,a){if(1&t&&(e.j41(0,"div",107)(1,"div",108)(2,"h2",109),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",110),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function pe0(t,a){1&t&&e.DNE(0,me0,5,10,"div",107),2&t&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function he0(t,a){1&t&&(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&t&&(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 ge0(t,a){if(1&t&&(e.j41(0,"div",105),e.Z7z(1,pe0,1,1,null,null,YL),e.DNE(3,he0,9,6,"div",106),e.k0s()),2&t){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 _e0(t,a){if(1&t&&(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&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function Le0(t,a){if(1&t&&(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&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function Ce0(t,a){if(1&t&&(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&t){const c=e.XpG().$implicit,n=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,v9,n.hasLongWord(null==c?null:c.description,20),!n.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function ze0(t,a){if(1&t&&e.DNE(0,_e0,6,10,"div",116)(1,Le0,6,10)(2,Ce0,6,10),2&t){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:2)}}function Me0(t,a){1&t&&(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&t&&(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 xe0(t,a){if(1&t&&(e.j41(0,"div",105),e.Z7z(1,ze0,3,1,null,null,YL),e.DNE(3,Me0,8,6,"div",115),e.k0s()),2&t){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 be0(t,a){if(1&t&&e.DNE(0,ge0,4,1,"div",105)(1,xe0,4,1),2&t){const c=e.XpG(2);e.vxM(0,c.checkCustom?0:1)}}function ye0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function Fe0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function ve0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,v9,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function ke0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function we0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function Se0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function Ne0(t,a){if(1&t&&(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,we0,2,2,"label",140)(7,Se0,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function Ee0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function De0(t,a){if(1&t&&(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,Ne0,8,2,"div",134,YL,!1,Ee0,9,3,"div",135),e.k0s()()()),2&t){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 Te0(t,a){if(1&t){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,be0,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,ye0,8,7,"tr",102,YL,!1,Fe0,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,ve0,8,7,"tr",102,YL,!1,ke0,7,3,"div",103),e.k0s()()()()(),e.DNE(82,De0,10,4,"div",104),e.k0s()()()}if(2&t){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,v9,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 Re0(t,a){if(1&t){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&t){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 Ae0(t,a){if(1&t){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&t){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 Ie0(t,a){if(1&t&&e.nrm(0,"error-message",4),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Pe0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-billing-address",165),e.bIt("selectedEvent",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onBillingSelected(l))}),e.k0s()}if(2&t){const n=a.$index;e.Y8G("data",a.$implicit)("position",n)}}function $e0(t,a){1&t&&(e.j41(0,"p",161),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._no_billing")))}function je0(t,a){if(1&t){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,Pe0,1,2,"app-billing-address",160,YL,!1,$e0,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&t){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 Oe0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.inventoryService=c,this.localStorage=n,this.api=l,this.cdr=r,this.priceService=m,this.router=z,this.orderService=F,this.eventMessage=I,this.paginationService=J,this.accountService=d1,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.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=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{"ChangedSession"===i1.type&&this.initInventory()})}ngOnInit(){null==this.prodId&&(this.checkFrom=!1),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-H2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getInventory(!1)}let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.keywordFilter=void 0,this.getInventory(!1))}),S2()}onClick(){1==this.unsubscribeModal&&(this.unsubscribeModal=!1,this.cdr.detectChanges()),1==this.prodToRenew&&(this.prodToRenew=!1,this.cdr.detectChanges())}getProductImage(c){let n=[];if(c?.attachment){let l=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[];n=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[],0!=l.length&&(n=l)}return n.length>0?n?.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 n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0);let l={keywords:n.keywordFilter,filters:n.filters,partyId:n.partyId};yield n.paginationService.getItemsPaginated(n.page,n.INVENTORY_LIMIT,c,n.inventory,n.nextInventory,l,n.paginationService.getInventory.bind(n.paginationService)).then(r=>{if(n.page_check=r.page_check,n.inventory=r.items,n.nextInventory=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1,S2(),null!=n.prodId&&n.checkFrom){let m=n.inventory.findIndex(z=>z.id==n.prodId);n.selectProduct(n.inventory[m]),n.checkFrom=!1}})})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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,b1.A)(function*(){yield c.getInventory(!0)})()}filterInventoryByKeywords(){this.keywordFilter=this.searchField.value,this.getInventory(!1)}unsubscribeProduct(){var c=this;return(0,b1.A)(function*(){const n=c.prodToUnsubscribe,l={id:n.productOffering.id,action:"delete",productOffering:{id:n.productOffering.id,href:n.productOffering.id},product:{id:n.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 n=this;return(0,b1.A)(function*(){n.selectedProduct=c,console.log("selecting prod"),console.log(n.selectedProduct),n.selectedResources=[],n.selectedServices=[],console.log("is prod spec undefined?"),console.log(n.selectedProduct.product);let l=yield n.api.getProductSpecification(n.selectedProduct.product.productSpecification.id);if(n.selectedProdSpec=l,null!=l.serviceSpecification)for(let F=0;Fl.length>n)}openModifyFromCard(c){var n=this;return(0,b1.A)(function*(){yield n.selectProduct(c),n.showDetails=!1,n.isModifyDrawerOpen=!0})()}onModifySubmit(c){var n=this;return(0,b1.A)(function*(){n.pendingModifyPayload=c,yield n.getBilling(),n.showBillingSelector=!0})()}getBilling(){var c=this;return(0,b1.A)(function*(){c.selectedBillingAddress=null,c.billingAddresses=[];let n=yield c.accountService.getBillingAccount();for(let l=0;l{c.showError=!1},3e3)}c.showBillingSelector=!1})()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(f8),e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(pe),e.rXU(N2.Ix),e.rXU(w8),e.rXU(j2),e.rXU(E6),e.rXU(s0.O))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["inventory-products"]],hostBindings:function(n,l){1&n&&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",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(n,l){1&n&&(e.j41(0,"div",2),e.DNE(1,ue0,45,26)(2,Te0,83,50)(3,Re0,21,14,"div",3)(4,Ae0,21,14,"div",3)(5,Ie0,1,1,"error-message",4),e.j41(6,"app-price-plan-drawer",5),e.bIt("closeDrawer",function(){return l.isModifyDrawerOpen=!1})("modifySubmit",function(m){return l.onModifySubmit(m)}),e.k0s(),e.DNE(7,je0,20,15,"div",6),e.k0s()),2&n&&(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,Z80))("width","w-2/3"),e.R7$(),e.vxM(7,l.showBillingSelector?7:-1))},dependencies:[L.YU,X2.aY,T0,rG,of1,iS1,Q0,s1.D9]})}}return t})();const jN1=(t,a)=>a.id,ON1=(t,a)=>({"break-all":t,"break-words":a});function Be0(t,a){1&t&&(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 Ve0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,ON1,n.hasLongWord(c.name,20),!n.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 Ue0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function He0(t,a){if(1&t){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 Ge0(t,a){if(1&t&&e.DNE(0,He0,5,0,"div",50),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function Ye0(t,a){1&t&&(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 qe0(t,a){if(1&t&&(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,Ve0,11,11,"tr",41,jN1,!1,Ue0,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,Ge0,1,1)(23,Ye0,6,0),e.k0s()()),2&t){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 Xe0(t,a){if(1&t){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,Be0,6,0,"div",30)(54,qe0,24,14)}if(2&t){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 We0(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function Je0(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function Qe0(t,a){if(1&t&&(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,We0,2,2,"label",79)(7,Je0,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function Ze0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function Ke0(t,a){if(1&t&&(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,Qe0,8,2,"div",73,jN1,!1,Ze0,9,3,"div",74),e.k0s()()()),2&t){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 e50(t,a){if(1&t){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,Ke0,10,4,"div",69),e.k0s()()}if(2&t){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,ON1,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 c50=(()=>{class t{constructor(c,n,l,r,m,z,F){this.inventoryService=c,this.localStorage=n,this.api=l,this.cdr=r,this.router=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.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=h1.c.INVENTORY_RES_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.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-H2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getInventory(!1)}S2()}getInventory(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.INVENTORY_LIMIT,c,n.resources,n.nextResources,{partyId:n.partyId,filters:n.status},n.inventoryService.getResourceInventory.bind(n.inventoryService)).then(r=>{n.page_check=r.page_check,n.resources=r.items,n.nextResources=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1,console.log(n.resources)})})()}next(){var c=this;return(0,b1.A)(function*(){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 n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(f8),e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(N2.Ix),e.rXU(j2),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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"],["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(n,l){1&n&&(e.j41(0,"div",1),e.DNE(1,Xe0,55,32)(2,e50,23,15),e.k0s()),2&n&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[L.YU,X2.aY,T0,L.vh,s1.D9]})}}return t})();const BN1=(t,a)=>a.id,VN1=(t,a)=>({"break-all":t,"break-words":a});function t50(t,a){1&t&&(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 n50(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.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&t){const c=a.$implicit,n=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,VN1,n.hasLongWord(c.name,20),!n.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 l50(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function s50(t,a){if(1&t){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 a50(t,a){if(1&t&&e.DNE(0,s50,5,0,"div",50),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function o50(t,a){1&t&&(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 i50(t,a){if(1&t&&(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,n50,11,11,"tr",41,BN1,!1,l50,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,a50,1,1)(23,o50,6,0),e.k0s()()),2&t){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 r50(t,a){if(1&t){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,t50,6,0,"div",30)(54,i50,24,14)}if(2&t){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 d50(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function f50(t,a){if(1&t&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function u50(t,a){if(1&t&&(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,d50,2,2,"label",79)(7,f50,2,3),e.k0s()()()),2&t){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function m50(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function p50(t,a){if(1&t&&(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,u50,8,2,"div",73,BN1,!1,m50,9,3,"div",74),e.k0s()()()),2&t){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 h50(t,a){if(1&t){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,p50,10,4,"div",69),e.k0s()()}if(2&t){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,VN1,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 g50=(()=>{class t{constructor(c,n,l,r,m,z,F){this.inventoryService=c,this.localStorage=n,this.api=l,this.cdr=r,this.router=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.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=h1.c.INVENTORY_SERV_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.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-H2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}this.getInventory(!1)}S2()}getInventory(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.INVENTORY_LIMIT,c,n.services,n.nextServices,{partyId:n.partyId,filters:n.status},n.inventoryService.getServiceInventory.bind(n.inventoryService)).then(r=>{n.page_check=r.page_check,n.services=r.items,n.nextServices=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){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 n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(f8),e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(N2.Ix),e.rXU(j2),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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",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(n,l){1&n&&(e.j41(0,"div",1),e.DNE(1,r50,55,32)(2,h50,23,15),e.k0s()),2&n&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[L.YU,X2.aY,T0,L.vh,s1.D9]})}}return t})();function _50(t,a){if(1&t&&e.nrm(0,"inventory-products",19),2&t){const c=e.XpG();e.Y8G("prodId",c.openProdId)}}function L50(t,a){if(1&t&&e.nrm(0,"inventory-services",20),2&t){const c=e.XpG();e.Y8G("serviceId",c.openServiceId)("prodId",c.openProdId)}}function C50(t,a){if(1&t&&e.nrm(0,"inventory-resources",21),2&t){const c=e.XpG();e.Y8G("resourceId",c.openResourceId)("prodId",c.openProdId)}}let z50=(()=>{class t{constructor(c,n){this.cdr=c,this.eventMessage=n,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,P1.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(){S2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){S2()}goToOffers(){S2(),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(),S2()}getResources(){this.selectRes(),this.show_orders=!1,this.show_prods=!1,this.show_serv=!1,this.show_res=!0,this.cdr.detectChanges(),S2()}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectProd(){let c=document.getElementById("prod-button"),n=document.getElementById("serv-button"),l=document.getElementById("res-button"),r=document.getElementById("order-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectServ(){let c=document.getElementById("prod-button"),n=document.getElementById("serv-button"),l=document.getElementById("res-button"),r=document.getElementById("order-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectRes(){let c=document.getElementById("prod-button"),n=document.getElementById("serv-button"),l=document.getElementById("res-button"),r=document.getElementById("order-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,_50,1,1,"inventory-products",19)(42,L50,1,2,"inventory-services",20)(43,C50,1,2,"inventory-resources",21),e.k0s()()()),2&n&&(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:[Oe0,c50,g50,s1.D9]})}}return t})();const M50=["confirmModal"],x50=["noteContainer"],UN1=(t,a)=>a.id,b50=t=>({"text-primary-100 border-primary-100 active dark:text-primary-50 dark:border-primary-50 group":t}),y50=(t,a)=>({"translate-x-0":t,"translate-x-full":a}),F50=(t,a)=>({"justify-end":t,"justify-start":a}),v50=(t,a)=>({"bg-blue-200 text-blue-900":t,"bg-gray-200 text-gray-800":a});function k50(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(5,b50,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 w50(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG();e.SpI(" ",c.actionFilters.join(", ")," ")}}function S50(t,a){1&t&&(e.EFF(0),e.nI1(1,"translate")),2&t&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_action")," ")}function N50(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG();e.SpI(" ",c.filters.join(", ")," ")}}function E50(t,a){1&t&&(e.EFF(0),e.nI1(1,"translate")),2&t&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_state")," ")}function D50(t,a){1&t&&(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 T50(t,a){if(1&t&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function R50(t,a){if(1&t&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function A50(t,a){if(1&t&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function I50(t,a){if(1&t&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function P50(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function $50(t,a){if(1&t&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function j50(t,a){if(1&t&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function O50(t,a){1&t&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function B50(t,a){1&t&&(e.qSk(),e.j41(0,"svg",84),e.nrm(1,"path",90),e.k0s())}function V50(t,a){1&t&&(e.qSk(),e.j41(0,"svg",91),e.nrm(1,"path",92),e.k0s())}function U50(t,a){if(1&t){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,T50,2,1,"span",77)(6,R50,2,1)(7,A50,2,1)(8,I50,2,1)(9,P50,2,1)(10,$50,2,1)(11,j50,2,1)(12,O50,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 r=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(r),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 r=e.eBV(c).$implicit;return e.XpG(2).toggleDrawer(r),e.Njj(l.stopPropagation())}),e.DNE(25,B50,2,0,":svg:svg",84)(26,V50,2,0),e.k0s()()()}if(2&t){const c=a.$implicit,n=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,n.hasNotes(c)?25:26)}}function H50(t,a){1&t&&(e.j41(0,"div",73)(1,"span",93),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function G50(t,a){if(1&t){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 Y50(t,a){if(1&t&&e.DNE(0,G50,5,0,"div",94),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function q50(t,a){1&t&&(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 X50(t,a){if(1&t&&(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,U50,27,9,"tr",72,UN1),e.k0s()(),e.DNE(23,H50,4,3,"div",73),e.k0s(),e.DNE(24,Y50,1,1)(25,q50,6,0),e.k0s()),2&t){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 W50(t,a){if(1&t&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function J50(t,a){if(1&t&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Q50(t,a){if(1&t&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Z50(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function K50(t,a){if(1&t&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function ec0(t,a){if(1&t&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function cc0(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function tc0(t,a){1&t&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function nc0(t,a){if(1&t&&(e.j41(0,"td",76),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",null!==(c=n.productOfferingPrice.name)&&void 0!==c?c:"Custom"," ")}}function lc0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" Bundled price plan: ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.name," ")}}function sc0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.unitOfMeasure?null:c.productOfferingPrice.unitOfMeasure.units," ")}}function ac0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.recurringChargePeriodType," ")}}function oc0(t,a){if(1&t&&(e.EFF(0),e.DNE(1,sc0,1,1)(2,ac0,1,1)),2&t){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 ic0(t,a){if(1&t&&(e.j41(0,"td",76),e.DNE(1,lc0,1,1)(2,oc0,3,4),e.k0s()),2&t){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 rc0(t,a){if(1&t&&e.DNE(0,nc0,2,1,"td",76)(1,ic0,3,1),2&t){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function dc0(t,a){1&t&&(e.j41(0,"td",76),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function fc0(t,a){if(1&t&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function uc0(t,a){if(1&t&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function mc0(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function pc0(t,a){if(1&t&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function hc0(t,a){if(1&t&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function gc0(t,a){if(1&t&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function _c0(t,a){1&t&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function Lc0(t,a){if(1&t&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function Cc0(t,a){if(1&t&&(e.j41(0,"span",128),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function zc0(t,a){if(1&t&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function Mc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",129),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.openModal("cancelled",l))}),e.qSk(),e.j41(4,"svg",133),e.nrm(5,"path",134),e.k0s()()}}function xc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",136),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,r=e.XpG(2);return e.Njj(r.openModal("inProgress",l))}),e.qSk(),e.j41(1,"svg",137),e.nrm(2,"path",138)(3,"path",139),e.k0s()()}}function bc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",140),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.openModal("failed",l))}),e.qSk(),e.j41(4,"svg",141),e.nrm(5,"path",144),e.k0s()()}}function yc0(t,a){if(1&t&&e.DNE(0,xc0,4,0,"button",135)(1,bc0,6,0),2&t){const c=e.XpG(3).$implicit;e.vxM(0,"acknowledged"===c.productOrderItem.state?0:"inProgress"===c.productOrderItem.state?1:-1)}}function Fc0(t,a){1&t&&(e.j41(0,"td",127),e.EFF(1," n/a "),e.k0s())}function vc0(t,a){if(1&t&&e.DNE(0,yc0,2,1)(1,Fc0,2,0),2&t){const c=e.XpG(4);e.vxM(0,c.role==c.sellerRole?0:1)}}function kc0(t,a){if(1&t&&e.DNE(0,Mc0,6,0)(1,vc0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG(2);e.vxM(0,c.productOrderItem.state||n.role!=n.sellerRole?1:0)}}function wc0(t,a){if(1&t&&(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,rc0,2,1)(6,dc0,3,3),e.j41(7,"td",76),e.DNE(8,fc0,2,1,"span",111)(9,uc0,2,1)(10,mc0,2,1)(11,pc0,2,1)(12,hc0,2,1)(13,gc0,2,1)(14,_c0,2,0),e.k0s(),e.j41(15,"td",76),e.DNE(16,Lc0,2,1,"span",111)(17,Cc0,2,1)(18,zc0,2,1),e.k0s(),e.j41(19,"td",127),e.DNE(20,kc0,2,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.FS9("src",n.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,n.hasProcurementAutomaticTerm(c)?-1:20)}}function Sc0(t,a){if(1&t){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,W50,2,1,"span",111)(25,J50,2,1)(26,Q50,2,1)(27,Z50,2,1)(28,K50,2,1)(29,ec0,2,1)(30,cc0,2,1)(31,tc0,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,wc0,21,6,"tr",119,UN1),e.k0s()()()()()()}if(2&t){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 Nc0(t,a){1&t&&(e.j41(0,"div",159),e.nrm(1,"div",160),e.j41(2,"p",161),e.EFF(3,"Loading notes..."),e.k0s()())}function Ec0(t,a){1&t&&(e.j41(0,"div",165)(1,"p"),e.EFF(2,"No notes in this order."),e.k0s()())}function Dc0(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.nI1(2,"async"),e.bVm()),2&t){const c=e.XpG().$implicit,n=e.XpG(3);e.R7$(),e.SpI(" ",e.bMT(2,1,n.getUsername(c.author))," ")}}function Tc0(t,a){if(1&t&&(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,Dc0,3,3,"ng-container",170),e.k0s()()()),2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",e.l_i(9,F50,c.author===n.partyId,c.author!==n.partyId)),e.R7$(),e.Y8G("ngClass",e.l_i(12,v50,c.author===n.partyId,c.author!==n.partyId)),e.R7$(2),e.JRh(c.text),e.R7$(2),e.Lme(" ",c.author===n.partyId?n.currentUser:n.userCache.get(c.author)||"Loading..."," - ",e.i5U(6,6,c.date,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(2),e.Y8G("ngIf",!n.userCache.has(c.author))}}function Rc0(t,a){if(1&t&&(e.j41(0,"div",162,1),e.DNE(2,Ec0,3,0,"div",163)(3,Tc0,8,15,"div",164),e.k0s()),2&t){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 Ac0(t,a){if(1&t){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,Nc0,4,0,"div",153)(11,Rc0,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 r=e.XpG();return e.DH7(r.newNoteText,l)||(r.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&t){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(5,y50,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 Ic0(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let Pc0=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.localStorage=c,this.api=n,this.cdr=l,this.router=r,this.accountService=m,this.orderService=z,this.eventMessage=F,this.paginationService=I,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=Qy,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.showError=!1,this.errorMessage="",this.page=0,this.ORDER_LIMIT=h1.c.ORDER_LIMIT,this.filters=[],this.actionFilters=[],this.check_custom=!1,this.buyerRole=h1.c.BUYER_ROLE,this.sellerRole=h1.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=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.destroy$=new S.B,this.JSON=JSON,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(J=>{"ChangedSession"===J.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges())}openModal(c,n){this.actionType=c,this.selectedItem=n,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,b1.A)(function*(){return c.updateLifecycle(c.actionType,c.selectedItem)})()}updateLifecycle(c,n){var l=this;return(0,b1.A)(function*(){if(!l.orderToShow)return void console.error("No order selected! Is this possible?");console.log("Transitioning to...",c,n),l.selectedItem=n;const r=l.selectedItem.productOrderItem.state;try{l.selectedItem.productOrderItem.state=c;const m={productOrderItem:l.orderToShow.productOrderItem},z=yield l.orderService.updateOrder(l.orderToShow.id,m);console.log("Order state updated successfully:",z),l.orderToShow.state=z.state}catch(m){l.selectedItem.productOrderItem.state=r,l.handleError("Error updating order state"),console.error("Error updating order:",m)}try{const m={text:`Order state updated to ${c}`,id:`urn:ngsi-ld:note:${A4()}`,author:l.partyId,date:(new Date).toISOString()};l.orderToShow.note||(l.orderToShow.note=[]),l.orderToShow.note.push(m);const z={note:l.orderToShow.note},F=yield l.orderService.updateOrder(l.orderToShow.id,z);console.log("Order note added successfully:",F)}catch(m){console.error("Error updating order notes:",m)}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-H2().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 n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}S2()}ngAfterViewInit(){S2();const c=document.getElementById("drawer-notes");c&&(this.drawerInstance=new RY2(c,{placement:"right",backdrop:!1})),setTimeout(()=>{this.confirmModal&&(this.modalInstance=new rw1(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((n,l)=>new Date(n.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 n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.ORDER_LIMIT,c,n.orders,n.nextOrders,{filters:n.filters,partyId:n.partyId,orders:n.orders,role:n.role,actionFilters:n.actionFilters},n.paginationService.getOrders.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.orders),n.page_check=r.page_check,n.orders=r.items,n.nextOrders=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){console.log("-order-info-NEXT--"),yield c.getOrders(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?this.filters.splice(n,1):this.filters.push(c),this.getOrders(!1)}onActionFilterChange(c){const n=this.actionFilters.findIndex(l=>l===c);-1!==n?this.actionFilters.splice(n,1):this.actionFilters.push(c),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let n=[],l=!1;this.check_custom=!1;for(let r=0;r"procurement"===n.name&&"automatic"===n.description)}hasNotes(c){return!!c.note}addNote(){var c=this;return(0,b1.A)(function*(){if(!c.newNoteText.trim())return;const n={text:c.newNoteText,id:`urn:ngsi-ld:note:${A4()}`,author:c.partyId,date:(new Date).toISOString()};c.selectedOrder.note.push(n),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(n=>n.role?.toLowerCase()===this.buyerRole.toLowerCase());window.open(this.router.serializeUrl(this.router.createUrlTree(["/org-details",c?.id])),"_blank")}getCustomerName(){var c=this;return(0,b1.A)(function*(){if(c.orderToShow?.relatedParty){const n=c.orderToShow.relatedParty.find(l=>l.role?.toLowerCase()===c.buyerRole.toLowerCase());if(n?.id)return c.getUsername(n.id)}return""})()}getUsername(c){var n=this;return(0,b1.A)(function*(){if(n.userCache.has(c))return n.userCache.get(c);try{let l;if(c.startsWith("urn:ngsi-ld:individual:")){const r=yield n.accountService.getUserInfo(c);l=`${r?.givenName||""} ${r?.familyName||""}`.trim()||`Unknown (${c})`}else l=c.startsWith("urn:ngsi-ld:organization:")?(yield n.accountService.getOrgInfo(c))?.tradingName||`Unknown Organization (${c})`:`Unknown (${c})`;return n.userCache.set(c,l),l}catch(l){return console.error("Error fetching name for",c,l),`Unknown (${c})`}})()}formatDate(c){const n=new Date(c);return`${n.toLocaleDateString()} ${n.toLocaleTimeString()}`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(N2.Ix),e.rXU(s0.O),e.rXU(w8),e.rXU(j2),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-order-info"]],viewQuery:function(n,l){if(1&n&&(e.GBs(M50,5),e.GBs(x50,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.confirmModal=r.first),e.mGM(r=e.lsd())&&(l.noteContainer=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)("keydown.escape",function(m){return l.handleEscapeKey(m)},!1,e.EBC)},standalone:!0,features:[e.Jv_([L.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(n,l){if(1&n){const r=e.RV6();e.j41(0,"div",2)(1,"ul",3)(2,"li",4)(3,"a",5),e.bIt("click",function(){return e.eBV(r),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,k50,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(z){return e.eBV(r),e.Njj(z.stopPropagation())}),e.DNE(18,w50,1,1)(19,S50,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(r),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(r),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(r),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(z){return e.eBV(r),e.Njj(z.stopPropagation())}),e.DNE(46,N50,1,1)(47,E50,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(r),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(r),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(r),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(r),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(r),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(r),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(r),e.Njj(l.onStateFilterChange("cancelled"))}),e.k0s(),e.j41(87,"label",43),e.EFF(88),e.nI1(89,"translate"),e.k0s()()()()()()(),e.DNE(90,D50,6,0,"div",44)(91,X50,26,17)(92,Sc0,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(r),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(r),e.Njj(l.confirmAction())}),e.EFF(110," Yes, Confirm "),e.k0s(),e.j41(111,"button",56),e.bIt("click",function(){return e.eBV(r),e.Njj(l.closeModal())}),e.EFF(112," Cancel "),e.k0s()()()()(),e.DNE(113,Ac0,17,8)(114,Ic0,9,1,"div",57)}2&n&&(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,X2.dX,X2.aY,L.MD,L.YU,L.Sq,L.bT,L.Jj,L.vh,HL,p.me,p.BC,p.vS]})}}return t})();const HN1=(t,a)=>a.id,$c0=t=>({"text-blue-600 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group":t});function jc0(t,a){if(1&t){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&t){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-blue-600 dark:text-blue-500"),e.R7$(2),e.SpI(" ",e.bMT(5,3,"INVOICES._as_provider")," ")}}function Oc0(t,a){1&t&&(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 Bc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"input",36),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.editableInvoiceName,l)||(r.editableInvoiceName=l),e.Njj(l)}),e.k0s()}if(2&t){const c=e.XpG(3);e.R50("ngModel",c.editableInvoiceName)}}function Vc0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",null==c?null:c.billNo," ")}}function Uc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),r=l.$implicit,m=l.$index,z=e.XpG(2);return e.Njj(z.saveInvoice(m,r))}),e.nrm(1,"fa-icon",39),e.k0s()}if(2&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faSave)}}function Hc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),r=l.$implicit,m=l.$index,z=e.XpG(2);return e.Njj(z.editInvoice(m,r))}),e.nrm(1,"fa-icon",39),e.k0s()}if(2&t){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faEdit)}}function Gc0(t,a){if(1&t&&e.DNE(0,Uc0,2,1,"button",37)(1,Hc0,2,1),2&t){const c=e.XpG().$index,n=e.XpG(2);e.vxM(0,n.editingIndex===c?0:1)}}function Yc0(t,a){if(1&t){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,Bc0,1,1,"input",25)(6,Vc0,1,1),e.k0s(),e.j41(7,"td",26),e.EFF(8),e.k0s(),e.j41(9,"td",26),e.EFF(10),e.k0s(),e.j41(11,"td",24)(12,"div",27)(13,"button",28),e.bIt("click",function(l){const r=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(14,"svg",29)(15,"g",30),e.nrm(16,"path",31)(17,"path",32),e.k0s()()(),e.joV(),e.j41(18,"button",33),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.downloadInvoice(l))}),e.qSk(),e.j41(19,"svg",34),e.nrm(20,"path",35),e.k0s()(),e.DNE(21,Gc0,2,1),e.k0s()()()}if(2&t){const c=a.$implicit,n=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===n?5:6),e.R7$(3),e.Lme(" ",null==c?null:c.taxIncludedAmount.value,"",null==c?null:c.taxIncludedAmount.unit," "),e.R7$(2),e.SpI(" ",null==c?null:c.state," "),e.R7$(11),e.vxM(21,l.role==l.sellerRole?21:-1)}}function qc0(t,a){1&t&&(e.j41(0,"div",23)(1,"span",40),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function Xc0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",41)(1,"button",42),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",43),e.nrm(4,"path",44),e.k0s()()()}}function Wc0(t,a){if(1&t&&e.DNE(0,Xc0,5,0,"div",41),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Jc0(t,a){1&t&&(e.j41(0,"div",45),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 Qc0(t,a){if(1&t&&(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,Yc0,22,9,"tr",22,HN1),e.k0s()(),e.DNE(23,qc0,4,3,"div",23),e.k0s(),e.DNE(24,Wc0,1,1)(25,Jc0,6,0),e.k0s()),2&t){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 Zc0(t,a){1&t&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",55),e.nrm(2,"path",12)(3,"path",13),e.k0s()())}function Kc0(t,a){1&t&&(e.j41(0,"p",56),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INVOICES._no_billing_rates")," "))}function e70(t,a){if(1&t&&(e.j41(0,"div",60)(1,"p",61),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",62),e.EFF(5),e.nI1(6,"date"),e.nI1(7,"date"),e.k0s()()),2&t){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 c70(t,a){if(1&t&&(e.j41(0,"div",58)(1,"div",59)(2,"div",60)(3,"p",61),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"p",62),e.EFF(7),e.k0s()(),e.j41(8,"div",60)(9,"p",61),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p",62),e.EFF(13),e.k0s()(),e.j41(14,"div",60)(15,"p",61),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"p",63),e.EFF(19),e.k0s()(),e.j41(20,"div",60)(21,"p",61),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"p",64),e.EFF(25),e.k0s()(),e.j41(26,"div",60)(27,"p",61),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"p",65)(31,"u")(32,"a",66),e.EFF(33),e.k0s()()()(),e.DNE(34,e70,8,11,"div",60),e.k0s()()),2&t){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 t70(t,a){if(1&t&&(e.j41(0,"div",57),e.Z7z(1,c70,35,24,"div",58,HN1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.appliedCustomerBillingRates)}}function n70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",7)(1,"div",46),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",47)(3,"h2",48),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showInvoiceDetails=!1)}),e.qSk(),e.j41(7,"svg",50),e.nrm(8,"path",51),e.k0s(),e.joV(),e.j41(9,"span",14),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",52)(13,"div",53),e.DNE(14,Zc0,4,0,"div",54)(15,Kc0,3,3)(16,t70,3,0),e.k0s()()()()}if(2&t){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 l70=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.invoicesService=m,this.eventMessage=z,this.paginationService=F,this.router=I,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=h1.c.INVOICE_LIMIT,this.sellerRole=h1.c.SELLER_ROLE,this.buyerRole=h1.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=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.faEdit=E2.MT7,this.faSave=E2.hSh,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(J=>{"ChangedSession"===J.type&&this.initPartyInfo()})}onClick(){1==this.showInvoiceDetails&&(this.showInvoiceDetails=!1,this.cdr.detectChanges()),S2()}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-H2().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 n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.invoices=[],this.getInvoices(!1)}S2()}ngAfterViewInit(){S2()}getProductImage(c){let n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getInvoices(c){var n=this;return(0,b1.A)(function*(){console.log("-getOrders--"),0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.INVOICE_LIMIT,c,n.invoices,n.nextInvoices,{filters:n.filters,partyId:n.partyId,selectedDate:n.selectedDate,invoices:n.invoices,role:n.role,name:n.name},n.paginationService.getInvoices.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.invoices),n.page_check=r.page_check,n.invoices=r.items,n.name=r.name,n.nextInvoices=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){console.log("-invoice-info-NEXT--"),yield c.getInvoices(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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 n=[],l=!1;this.check_custom=!1;for(let r=0;r{console.log("actualizado invoice")},error:r=>{n.billNo=l,console.error("There was an error while updating!",r)}}),this.editingIndex=null}downloadInvoice(c){console.log("Downloading invoice"),window.open(`${h1.c.BASE_URL}/invoicing/invoices/${c.id}?format=xml-html`,"_blank")}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(s0.O),e.rXU(F5),e.rXU(j2),e.rXU(E6),e.rXU(N2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-invoices-info"]],hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},standalone:!0,features:[e.Jv_([L.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,"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"],["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(n,l){1&n&&(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,jc0,6,7,"li",2),e.k0s()(),e.DNE(9,Oc0,6,0,"div",6)(10,Qc0,26,17)(11,n70,17,8,"div",7)),2&n&&(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,X2.dX,X2.aY,L.MD,L.YU,L.vh,p.YN,p.me,p.BC,p.vS]})}}return t})();function s70(t,a){1&t&&e.nrm(0,"app-order-info")}function a70(t,a){1&t&&e.nrm(0,"app-invoices-info")}let o70=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.orderService=m,this.eventMessage=z,this.paginationService=F,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=Qy,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=h1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=h1.c.BUYER_ROLE,this.show_orders=!0,this.show_invoices=!1,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),S2()}ngOnInit(){this.loading=!0;let c=document.getElementById("order-button"),n=document.getElementById("bill-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"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-H2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}S2()}ngAfterViewInit(){S2()}getProductImage(c){let n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.ORDER_LIMIT,c,n.orders,n.nextOrders,{filters:n.filters,partyId:n.partyId,orders:n.orders,role:n.role},n.paginationService.getOrders.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.orders),n.page_check=r.page_check,n.orders=r.items,n.nextOrders=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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 n=[],l=!1;this.check_custom=!1;for(let r=0;r{class t{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(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const i70=[{name:"compliance_profile",children:[{name:"Baseline"},{name:"Professional"},{name:"Professional+"}]}],r70=(t,a)=>a.id,YN1=(t,a)=>({"break-all":t,"break-words":a});function d70(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.SpI("(",null==c.data?null:c.data.count,")")}}function f70(t,a){if(1&t){const c=e.RV6();e.j41(0,"input",1,0),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.checked,l)||(r.checked=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",2),e.bIt("click",function(){e.eBV(c);const l=e.sdS(1),r=e.XpG(2);return e.Njj(r.onClick(l.checked))}),e.j41(3,"div",3)(4,"div",4),e.EFF(5),e.DNE(6,d70,2,1,"span",5),e.k0s(),e.nrm(7,"fa-icon",6),e.k0s()()}if(2&t){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,YN1,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 u70(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const c=e.XpG(4);e.R7$(),e.SpI("(",c.data.count,")")}}function m70(t,a){if(1&t&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",21),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function p70(t,a){if(1&t){const c=e.RV6();e.j41(0,"h2",7)(1,"div",8)(2,"span",9),e.EFF(3),e.DNE(4,u70,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,m70,2,1,"li",null,r70),e.k0s()()()}if(2&t){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,YN1,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 h70(t,a){if(1&t&&e.DNE(0,p70,17,14),2&t){const c=e.XpG(2);e.vxM(0,c.data?0:-1)}}function g70(t,a){if(1&t&&e.DNE(0,f70,8,11)(1,h70,1,1),2&t){const c=e.XpG();e.vxM(0,0==(null==c.data||null==c.data.children?null:c.data.children.length)?0:1)}}let _70=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.eventMessage=n,this.cdr=l,this.faCircleCheck=E2.QRE,this.faCircle=vr1,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,P1.Q)(this.destroy$)).subscribe(r=>{const m=r.value;if("AddedFilter"===r.type&&m?.id===this.data?.id?this.checked=!0:"RemovedFilter"===r.type&&m?.id===this.data?.id&&(this.checked=!1),"AddedFilter"!==r.type||this.isCheckedCategory(m)){if("RemovedFilter"===r.type&&this.isCheckedCategory(m)){const z=this.checkedCategories.findIndex(F=>F===m.id);-1!==z&&(this.checkedCategories.splice(z,1),this.cdr.detectChanges()),console.log(this.isCheckedCategory(m))}}else this.checkedCategories.push(m.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 n=this.checkedCategories.findIndex(l=>l===this.data.id);-1!==n&&this.checkedCategories.splice(n,1)}else this.checkedCategories.push(this.data.id),this.localStorage.addCategoryFilter(this.data),this.eventMessage.emitAddedFilter(this.data);this.checked=!this.checked}onClickCategory(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const n=this.checkedCategories.findIndex(l=>l===c.id);-1!==n&&this.checkedCategories.splice(n,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c)}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let n=!1;if(null!=c)for(let l=0;ll.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(j2),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,g70,2,1),2&n&&e.vxM(0,null!=l.data&&l.data.children?0:-1)},dependencies:[L.YU,X2.aY,p.Zm,p.BC,p.vS,t]})}}return t})();const qN1=(t,a)=>a.id,L70=(t,a)=>({"break-all":t,"break-words":a});function C70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",3)(1,"span",4),e.EFF(2),e.k0s(),e.j41(3,"div",5)(4,"div",6),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,r=e.XpG();return e.Njj(r.onClick(l))}),e.nrm(5,"input",7)(6,"fa-icon",8),e.k0s(),e.j41(7,"button",9),e.qSk(),e.j41(8,"svg",10),e.nrm(9,"path",11),e.k0s()()()()}if(2&t){const c=e.XpG(2),n=c.$implicit,l=c.$index,r=c.$index,m=c.$count,z=e.XpG();e.Y8G("ngClass",z.checkClasses(0===r,r===m-1,n)),e.R7$(),e.Y8G("ngClass",e.l_i(7,L70,z.hasLongWord(null==n?null:n.name,20),!z.hasLongWord(null==n?null:n.name,20))),e.R7$(),e.JRh(null==n?null:n.name),e.R7$(3),e.Y8G("checked",z.isCheckedCategory(n)),e.R7$(),e.Y8G("icon",z.isCheckedCategory(n)?z.faCircleCheck:z.faCircle),e.R7$(),e.BMQ("data-accordion-target","#accordion-body-"+l)("aria-controls","accordion-body-"+l)}}function z70(t,a){if(1&t&&e.nrm(0,"bae-category-item",12),2&t){const c=e.XpG(2),l=c.$index,r=c.$count;e.Y8G("data",c.$implicit)("isParent",!0)("isFirst",0===l)("isLast",l===r-1)}}function M70(t,a){if(1&t&&e.DNE(0,C70,10,10,"div",3)(1,z70,1,4),2&t){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:1)}}function x70(t,a){if(1&t&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",16),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function b70(t,a){if(1&t&&(e.j41(0,"div",13)(1,"div",14)(2,"ul",15),e.Z7z(3,x70,2,1,"li",null,qN1),e.k0s()()()),2&t){const c=e.XpG(2),n=c.$implicit,l=c.$index;e.Y8G("id","accordion-body-"+l),e.BMQ("aria-labelledby","accordion-heading-"+l),e.R7$(3),e.Dyx(n.children)}}function y70(t,a){if(1&t&&e.DNE(0,b70,5,2,"div",13),2&t){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:-1)}}function F70(t,a){if(1&t&&(e.j41(0,"h2",2),e.DNE(1,M70,2,1),e.k0s(),e.DNE(2,y70,1,1)),2&t){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 v70(t,a){}let XN1=(()=>{class t{constructor(c,n,l,r){this.localStorage=c,this.eventMessage=n,this.api=l,this.cdr=r,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.aiSearchEnabled=h1.c.AI_SEARCH_ENABLED,this.aiFacets={},this.dynamicAiCategories=[],this.configuredAiCategories=[],this.faCircleCheck=E2.QRE,this.faCircle=vr1,this.destroy$=new S.B,this.categories=[],this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(m=>{const z=m.value;if("AddedFilter"!==m.type||this.isCheckedCategory(z))if("RemovedFilter"===m.type&&this.isCheckedCategory(z)){const F=this.checkedCategories.findIndex(I=>I===z.id);-1!==F&&(this.checkedCategories.splice(F,1),this.cdr.detectChanges())}else"AiSearchFacets"===m.type&&this.aiSearchEnabled?(this.aiFacets=m.value||{},this.updateAiFacetCategories(),this.cdr.detectChanges()):"AiSearchCleared"===m.type&&this.aiSearchEnabled&&(this.aiFacets={},this.categories=[...this.cloneCategories(this.dynamicAiCategories),...this.cloneCategories(this.configuredAiCategories)],S2(),this.cdr.detectChanges());else this.checkedCategories.push(z.id),this.cdr.detectChanges()})}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.selected=c.localStorage.getObject("selected_categories")||[];for(let n=0;nr.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let r=0;rz.id==n.id)){let z=r.findIndex(F=>F.id==n.id);r[z]=n,c[l].children=r}this.saveChildren(r,n)}}}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))}removeCategory(c){const n=this.selected.indexOf(c,0);if(n>-1){this.selected.splice(n,1),this.selectedCategories.emit(this.selected),this.localStorage.setObject("selected_categories",this.selected),this.eventMessage.emitRemovedFilter(c);const l=this.checkedCategories.findIndex(r=>r===c.id);-1!==l&&this.checkedCategories.splice(l,1)}}isRoot(c,n){const l=this.categories.indexOf(c,0);let r=this.categories[l].children;return null!=r&&r.length>0?r:[]}onClick(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const n=this.checkedCategories.findIndex(l=>l===c.id);-1!==n&&this.checkedCategories.splice(n,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c)}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let n=!1;if(null!=c)for(let l=0;ll.length>n)}updateAiFacetCategories(){const c=this.applyFacetCountsToDynamicCategories(this.dynamicAiCategories,this.aiFacets),n=this.applyFacetCountsToConfiguredCategories(this.configuredAiCategories,this.aiFacets);this.categories=[...c,...n],S2()}applyFacetCountsToDynamicCategories(c,n){return(c||[]).map(l=>{const r=this.getFacetDataForDynamicRoot(l,n);return this.applyDynamicCategoryCounts(l,r,n)})}getFacetDataForDynamicRoot(c,n){const l=[String(c.id||""),this.toAiFacetKey(c.name||""),String(c.name||"")].filter(Boolean);for(const r of l)if(n?.[r])return n[r];return{}}applyDynamicCategoryCounts(c,n,l){const r=(c.children||[]).map(z=>this.applyDynamicCategoryCounts(z,n,l)),m=this.resolveDynamicCategoryCount(c,n,l);return{...c,count:"number"==typeof m&&Number.isFinite(m)&&m>0?m:void 0,children:r}}resolveDynamicCategoryCount(c,n,l){const r=this.readCountFromFacetMap(n,c.name,c.id);if(Number.isFinite(r)&&r>0)return r;const m=l?.[String(c.id||"")]||l?.[String(c.name||"")];if(m&&"object"==typeof m){const F=this.sumFacetCounts(m);if(F>0)return F}const z=this.findGlobalFacetCount(c,l);return z>0?z:void 0}readCountFromFacetMap(c,n,l){if(!c)return;const r=void 0!==n?Number(c[n]):NaN;if(Number.isFinite(r)&&r>0)return r;const m=void 0!==l?Number(c[l]):NaN;return Number.isFinite(m)&&m>0?m:void 0}findGlobalFacetCount(c,n){let l=0;for(const r of Object.values(n||{})){const m=this.readCountFromFacetMap(r,c.name,c.id);m&&m>0&&(l+=m)}return l}sumFacetCounts(c){return Object.values(c||{}).reduce((n,l)=>{const r=Number(l);return Number.isFinite(r)&&r>0?n+r:n},0)}applyFacetCountsToConfiguredCategories(c,n){return(c||[]).map(l=>{const r=String(l.id||""),m=n?.[r]||{};return{...l,children:this.applyFacetCountsRecursively(l.children||[],m)}})}applyFacetCountsRecursively(c,n){return(c||[]).map(l=>{const r=this.applyFacetCountsRecursively(l.children||[],n),z=Number(n[l.name]);return{...l,count:Number.isFinite(z)&&z>0?z:void 0,children:r}})}cloneCategories(c){return(c||[]).map(n=>({...n,children:this.cloneCategories(n.children||[])}))}convertDynamicCategoriesToAiFilterCategories(c){return(c||[]).map(n=>{const l=this.toAiFacetKey(n.name||"");return this.convertDynamicCategoryNode(n,l,!0)})}convertDynamicCategoryNode(c,n,l){const r=l?n:`${n}::${c.name}`;return{...c,id:r,sanitizedId:l?this.sanitizeIdForCss(n):`${this.sanitizeIdForCss(n)}-${this.sanitizeIdForCss(c.name||"")}`,children:(c.children||[]).map(m=>this.convertDynamicCategoryNode(m,n,!1))}}loadCatalogCategories(){var c=this;return(0,b1.A)(function*(){if(c.categories=[],null!=c.catalogId&&""!==String(c.catalogId).trim()){const m=yield c.api.getCatalog(c.catalogId).catch(()=>null),z=Array.isArray(m?.category)?m.category:[];if(z.length>0){const F=yield Promise.all(z.map(function(){var I=(0,b1.A)(function*(J){if(!J?.id)return null;const d1=yield c.api.getCategoryById(J.id).catch(()=>null),i1=d1?.parentId?String(d1.parentId):"";return d1?.id&&!0===d1.isRoot&&!i1?c.loadCategorySubtree(d1):null});return function(J){return I.apply(this,arguments)}}()));return void(c.categories=F.filter(I=>null!==I))}}const l=yield c.api.getLaunchedCategories(),r=Array.isArray(l)?l:[];for(const m of r)c.findChildren(m,r)})()}loadCategorySubtree(c){var n=this;return(0,b1.A)(function*(){const l=yield n.api.getCategoriesByParentId(c.id).catch(()=>[]),r=Array.isArray(l)?l:[],m=yield Promise.all(r.map(z=>n.loadCategorySubtree(z)));return{...c,children:m}})()}formatFacetName(c){return c.split("_").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}convertFiltersToCategories(c){return c.map(n=>this.convertFilterToCategory(n,!0,n.name))}convertFilterToCategory(c,n=!1,l){const r=l||c.name,m=this.sanitizeIdForCss(c.name);return{id:n?c.name:`${r}::${c.name}`,name:n?this.formatFacetName(c.name):c.name,isRoot:n,children:(c.children||[]).map(z=>this.convertFilterToCategory(z,!1,r)),sanitizedId:n?m:`${this.sanitizeIdForCss(r)}-${m}`}}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(n){return new(n||t)(e.rXU(C2.s),e.rXU(j2),e.rXU(n0.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-categories-filter"]],inputs:{catalogId:"catalogId"},outputs:{selectedCategories:"selectedCategories"},decls:7,vars:4,consts:[[1,"text-2xl","dark:text-secondary-50","p-2"],["id","accordion-collapse","data-accordion","open"],[3,"id"],[3,"ngClass"],[1,"text-left","justify-start","text-wrap","break-words",3,"ngClass"],[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(n,l){1&n&&(e.j41(0,"h2",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",1),e.Z7z(4,F70,3,3,null,null,qN1,!1,v70,0,0),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,2,"CATEGORIES._categories")),e.R7$(3),e.Dyx(l.categories))},dependencies:[L.YU,X2.aY,_70,s1.D9]})}}return t})();const k70=["myProdImage"],rf1=(t,a)=>a.id,dG=(t,a)=>({"break-all":t,"break-words":a});function w70(t,a){if(1&t&&(e.j41(0,"a",8),e.nrm(1,"fa-icon",26),e.EFF(2," No level "),e.k0s()),2&t){const c=e.XpG();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 S70(t,a){1&t&&e.nrm(0,"img",27)}function N70(t,a){1&t&&e.nrm(0,"img",28)}function E70(t,a){1&t&&e.nrm(0,"img",29)}function D70(t,a){1&t&&e.nrm(0,"bae-badge",9),2&t&&e.Y8G("category",a.$implicit)}function T70(t,a){if(1&t&&(e.j41(0,"a",10),e.nrm(1,"fa-icon",30),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faEllipsis)}}function R70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CARD._add_cart")," ")}}function A70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",33),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.qSk(),e.j41(3,"svg",34),e.nrm(4,"path",35),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function I70(t,a){if(1&t&&e.DNE(0,R70,3,5,"button",31)(1,A70,5,3),2&t){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function P70(t,a){if(1&t&&(e.j41(0,"a",8),e.nrm(1,"fa-icon",26),e.EFF(2," No level "),e.k0s()),2&t){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 $70(t,a){1&t&&e.nrm(0,"img",27)}function j70(t,a){1&t&&e.nrm(0,"img",28)}function O70(t,a){1&t&&e.nrm(0,"img",29)}function B70(t,a){1&t&&e.nrm(0,"bae-badge",9),2&t&&e.Y8G("category",a.$implicit)}function V70(t,a){1&t&&e.nrm(0,"bae-badge",9),2&t&&e.Y8G("category",a.$implicit)}function U70(t,a){if(1&t&&e.Z7z(0,V70,1,1,"bae-badge",9,rf1),2&t){const c=e.XpG(2);e.Dyx(c.categoriesMore)}}function H70(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",65),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.loadMoreCategories())}),e.nrm(1,"fa-icon",30),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faEllipsis)}}function G70(t,a){if(1&t){const c=e.RV6();e.j41(0,"a",65),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.closeCategories())}),e.nrm(1,"fa-icon",30),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faClose)}}function Y70(t,a){if(1&t&&(e.j41(0,"li",57),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"CARD._id_number"),": ",c.prodSpec.productNumber,"")}}function q70(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",59),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"a",66),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&t){const c=e.XpG(2);e.Y8G("ngClass",e.l_i(5,dG,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 X70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",68),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",69),e.nrm(2,"path",70),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&t){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 W70(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",33),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",34),e.nrm(4,"path",35),e.k0s()()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function J70(t,a){if(1&t&&e.DNE(0,X70,5,5,"button",67)(1,W70,5,3),2&t){const c=e.XpG(2);e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function Q70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",21)(1,"div",36),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",37)(3,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.hideModal())}),e.qSk(),e.j41(4,"svg",39),e.nrm(5,"path",40),e.k0s(),e.joV(),e.j41(6,"span",41),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",42)(10,"div",43)(11,"h5",44),e.EFF(12),e.k0s(),e.j41(13,"div",45)(14,"div",46),e.EFF(15),e.k0s()(),e.j41(16,"div",47),e.DNE(17,P70,3,3,"a",8)(18,$70,1,0)(19,j70,1,0)(20,O70,1,0),e.Z7z(21,B70,1,1,"bae-badge",9,rf1),e.DNE(23,U70,2,0)(24,H70,2,1,"a",48)(25,G70,2,1,"a",48),e.k0s()(),e.j41(26,"div",49),e.nrm(27,"div",3)(28,"img",50),e.k0s(),e.nrm(29,"hr",51),e.k0s(),e.j41(30,"div",52)(31,"div",53)(32,"h5",54),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nrm(35,"markdown",55),e.k0s(),e.j41(36,"div",53)(37,"h5",54),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"ul",56)(41,"li",57),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"li",58),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"li",57),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"li",57),e.EFF(51),e.nI1(52,"translate"),e.nI1(53,"date"),e.k0s(),e.j41(54,"li",57),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.DNE(57,Y70,3,4,"li",57)(58,q70,5,8,"li",59),e.k0s()()(),e.nrm(59,"hr",60),e.j41(60,"div",61),e.DNE(61,J70,2,1),e.j41(62,"button",62),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",63),e.nrm(66,"path",64),e.k0s()()()()()()}if(2&t){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,dG,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,dG,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 Z70(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",22)(1,"div",71),e.qSk(),e.j41(2,"svg",72),e.nrm(3,"path",73),e.k0s(),e.joV(),e.j41(4,"div",74),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",75)(8,"button",76),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",77),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",41),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",78),e.nrm(16,"path",40),e.k0s()()()(),e.joV(),e.j41(17,"div",79),e.nrm(18,"div",80),e.k0s()()}2&t&&(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 K70(t,a){if(1&t&&e.nrm(0,"cart-card",23),2&t){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function et0(t,a){if(1&t&&e.nrm(0,"error-message",24),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function ct0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-quote-request-modal",81),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&t){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 WN1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J){this.cdr=c,this.localStorage=n,this.eventMessage=l,this.api=r,this.priceService=m,this.cartService=z,this.accService=F,this.themeService=I,this.router=J,this.providerThemeName=h1.c.providerThemeName,this.quotesEnabled=h1.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=v5,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.check_logged=!1,this.faAtom=E2.RSf,this.faClose=E2.yYc,this.faEllipsis=E2.Dwc,this.PURCHASE_ENABLED=h1.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 z1.yU,this.destroy$=new S.B,this.productAlreadyInCart=!1,this.showQuoteModal=!1,this.customerId="",this.isCustomPrice=!1,this.isDrawerOpen=!1,this.JSON=JSON,this.targetModal=document.getElementById("details-modal"),this.modal=new rw1(this.targetModal),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(d1=>{if("CloseCartCard"===d1.type){if(this.hideCartSelection(),null!=d1.value){this.lastAddedProd=d1.value,this.toastVisibility=!0,this.cdr.detectChanges();let i1=document.getElementById("progress-bar"),N1=document.getElementById("toast-add-cart");null!=i1&&null!=N1&&(i1.style.width="0%",i1.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}"CloseQuoteRequest"===d1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==d1.type||"AddedCartItem"==d1.type)&&this.cartService.getShoppingCart().then(i1=>{this.productAlreadyInCart=!!i1.some(J1=>J1.id===this.productOff?.id)}),"CloseQuoteRequest"===d1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==d1.type||"AddedCartItem"==d1.type)&&this.cartService.getShoppingCart().then(i1=>{this.productAlreadyInCart=!!i1.some(J1=>J1.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.destroy$.next(),this.destroy$.complete()}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.themeSubscription=c.themeService.currentTheme$.subscribe(r=>{c.currentTheme=r});let n=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(n)&&n.expire-H2().unix()-4>0){if(c.check_logged=!0,n.logged_as==n.id)c.customerId=n.partyId;else{let z=n.organizations.find(F=>F.id==n.logged_as);c.customerId=z.partyId}c.cdr.detectChanges();const m=(yield c.cartService.getShoppingCart()).some(z=>z.id===c.productOff?.id);c.productAlreadyInCart=m,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(r=>"Profile Picture"===r.name)??[];c.images=0==l.length?c.productOff?.attachment?.filter(r=>"Picture"===r.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.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(){S2()}addProductToCart(c,n){var l=this;return(0,b1.A)(function*(){if(!c||!c.productOfferingPrice)return;const r=l.createProdOptions(c,n);l.lastAddedProd=r;try{yield l.cartService.addItemShoppingCart(r),console.log("Update successful"),l.showToast(),l.eventMessage.emitAddedCartItem(c)}catch(m){l.handleError(m,"There was an error while adding item to the cart!")}l.cartSelection&&l.resetSelections(),l.cdr.detectChanges()})()}createProdOptions(c,n){return{id:c.id,name:c.name,image:this.getProductImage(),href:c.href,options:{characteristics:this.selected_chars,pricing:this.selected_price},termsAccepted:!n||this.selected_terms}}showToast(){this.toastVisibility=!0,this.cdr.detectChanges();const c=document.getElementById("progress-bar"),n=document.getElementById("toast-add-cart");c&&n&&(c.style.width="0%",c.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}handleError(c,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,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 n=this;return(0,b1.A)(function*(){void 0!==c&&(yield n.cartService.removeItemShoppingCart(c.id),console.log("removed"),n.eventMessage.emitRemovedCartItem(c)),n.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(n=>"License"===n.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 n=0;n{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(n){return new(n||t)(e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(n0.F),e.rXU(pe),e.rXU(d8),e.rXU(s0.O),e.rXU(Hk),e.rXU(N2.Ix))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-off-card"]],viewQuery:function(n,l){if(1&n&&e.GBs(k70,5),2&n){let r;e.mGM(r=e.lsd())&&(l.myProdImage=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{productOff:"productOff",prodSpecInput:"prodSpecInput",cardId:"cardId"},decls:34,vars:28,consts:[[1,"flex","flex-col","w-full","h-full","bg-secondary-50","dark:bg-secondary-100","rounded-lg","dark:border-secondary-100","border-secondary-50","border"],[1,"rounded-t","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,"src"],[1,"flex-1","h-full","bg-cover","bg-right-bottom","bg-opacity-25","bg-blend-multiply","rounded-lg"],[1,"flex-1","h-full","px-5","py-5","bg-secondary-50/95","dark:bg-tertiary-100/95","rounded-b-lg"],["data-cy","searchOfferCategories",1,"flex","items-center","flex-wrap","overflow-y-hidden","overflow-x-hidden","align-middle"],[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"],["data-cy","searchShowAllCategories",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","mr-2"],[1,"cursor-pointer",3,"click"],["data-cy","searchOfferTitle",1,"text-xl","font-semibold","line-clamp-2","tracking-tight","text-primary-100","dark:text-white","text-wrap","break-words",3,"ngClass"],["data-cy","searchOfferDescription",1,"min-h-19","h-19","line-clamp-2","text-gray-600","dark:text-gray-400",3,"data"],[1,"flex","sticky","top-[100vh]","items-center","justify-center","align-items-bottom","rounded-lg","mt-4"],["data-cy","searchViewDetails","type","button",1,"flex","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"],["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,"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,"text-secondary-50","dark:text-primary-100",3,"icon"],["data-cy","addToCart","id","add-to-cart","type","button",1,"flex","align-items-bottom","text-white","cursor-pointer","bg-green-700","hover:bg-green-900","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-green-600","dark:hover:bg-green-700","dark:focus:ring-green-800",3,"disabled","ngClass"],["data-cy","addToCart","id","add-to-cart","type","button",1,"flex","align-items-bottom","text-white","cursor-pointer","bg-green-700","hover:bg-green-900","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-green-600","dark:hover:bg-green-700","dark:focus:ring-green-800",3,"click","disabled","ngClass"],["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,"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,"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"],["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,"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"],["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"],[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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(){return l.goToProductDetails(l.productOff)}),e.j41(2,"div",2),e.nrm(3,"div",3)(4,"img",4),e.k0s()(),e.j41(5,"div",5)(6,"div",6)(7,"div",7),e.DNE(8,w70,3,3,"a",8)(9,S70,1,0)(10,N70,1,0)(11,E70,1,0),e.Z7z(12,D70,1,1,"bae-badge",9,rf1),e.DNE(14,T70,2,1,"a",10),e.k0s(),e.j41(15,"a",11),e.bIt("click",function(){return l.goToProductDetails(l.productOff)}),e.j41(16,"h5",12),e.EFF(17),e.k0s()(),e.nrm(18,"markdown",13),e.j41(19,"div",14)(20,"button",15),e.bIt("click",function(m){return l.toggleDetailsModal(),m.stopPropagation()}),e.qSk(),e.j41(21,"svg",16)(22,"g",17),e.nrm(23,"path",18)(24,"path",19),e.k0s()(),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,I70,2,1),e.k0s()()()(),e.joV(),e.j41(28,"app-price-plan-drawer",20),e.bIt("closeDrawer",function(){return l.closeDrawer()}),e.k0s(),e.DNE(29,Q70,67,58,"div",21)(30,Z70,19,9,"div",22)(31,K70,1,4,"cart-card",23)(32,et0,1,1,"error-message",24)(33,ct0,1,6,"app-quote-request-modal",25)),2&n&&(e.R7$(3),e.muq("background-image: url(",l.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(),e.xc7("background-image","url("+(null==l.currentTheme||null==l.currentTheme.assets?null:l.currentTheme.assets.cardDefaultBgUrl)+")"),e.R7$(3),e.vxM(8,"NL"==l.complianceLevel?8:"BL"==l.complianceLevel?9:"P"==l.complianceLevel?10:11),e.R7$(4),e.Dyx(l.categories),e.R7$(2),e.vxM(14,l.checkMoreCats?14:-1),e.R7$(2),e.Y8G("ngClass",e.l_i(25,dG,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$(),e.Y8G("data",null==l.productOff?null:l.productOff.description),e.R7$(7),e.SpI(" ",e.bMT(26,23,"CARD._details")," "),e.R7$(2),e.vxM(27,l.check_logged?27:-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(29,l.showModal?29:-1),e.R7$(),e.vxM(30,l.toastVisibility?30:-1),e.R7$(),e.vxM(31,l.cartSelection?31:-1),e.R7$(),e.vxM(32,l.showError?32:-1),e.R7$(),e.vxM(33,l.showQuoteModal?33:-1))},dependencies:[L.YU,X2.aY,$d1,T0,rG,of1,Q0,$N1,L.vh,s1.D9],styles:[".fade[_ngcontent-%COMP%]{transition:all linear .5s;opacity:1}"]})}}return t})();const tt0=(t,a)=>a.id,nt0=(t,a)=>({"break-all":t,"break-words":a});function lt0(t,a){if(1&t){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&t){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 st0(t,a){if(1&t&&e.nrm(0,"bae-categories-filter",28),2&t){const c=e.XpG();e.Y8G("catalogId",c.catalog.id)}}function at0(t,a){1&t&&(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 ot0(t,a){if(1&t&&e.nrm(0,"bae-off-card",41),2&t){const n=a.$index;e.Y8G("productOff",a.$implicit)("cardId",n)}}function it0(t,a){1&t&&(e.j41(0,"div",42),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"DASHBOARD._not_found")))}function rt0(t,a){if(1&t){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 dt0(t,a){if(1&t&&e.DNE(0,rt0,5,0,"div",43),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function ft0(t,a){1&t&&(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 ut0(t,a){if(1&t&&(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,ot0,1,2,"bae-off-card",41,tt0,!1,it0,3,3,"div",42),e.k0s(),e.DNE(14,dt0,1,1)(15,ft0,6,0)),2&t){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 mt0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1){this.route=c,this.api=n,this.accService=l,this.priceService=r,this.cdr=m,this.eventMessage=z,this.localStorage=F,this.router=I,this.paginationService=J,this.state=d1,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=h1.c.PRODUCT_LIMIT,this.showDrawer=!1,this.searchEnabled=h1.c.SEARCH_ENABLED,this.showPanel=!1,this.feedback=!1,this.providerThemeName=h1.c.providerThemeName,this.logo="",this.destroy$=new S.B,this.navigatingToDetail=!1,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{("AddedFilter"===i1.type||"RemovedFilter"===i1.type)&&this.checkPanel()}),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{"CloseFeedback"===i1.type&&(this.feedback=!1)}),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(i1=>{("AddedFilter"===i1.type||"RemovedFilter"===i1.type)&&this.getProducts(!1)})}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(S2(),c.checkPanel(),c.id=c.route.snapshot.paramMap.get("id"),c.api.getCatalog(c.id).then(l=>{c.catalog=l,c.cdr.detectChanges();const r=c.catalog.relatedParty.find(m=>m.role===h1.c.SELLER_ROLE);r.id.startsWith("urn:ngsi-ld:individual")?(c.accService.getUserInfo(r.id).then(m=>{console.log("info"),console.log(m),c.providerName=m.givenName;const z=m.partyCharacteristic.find(F=>"description"===F.name);c.providerDescription=z.value}),c.logo="assets/images/Dome-Marketplace.svg"):c.accService.getOrgInfo(r.id).then(m=>{if(console.log("info"),console.log(m),c.providerName=m.tradingName,Array.isArray(m?.partyCharacteristic)&&m.partyCharacteristic.length>0){const z=m.partyCharacteristic.find(I=>"description"===I.name);c.providerDescription=z?.value?z.value:"";const F=m.partyCharacteristic.find(I=>"logo"===I.name);c.logo=F?.value?F.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 n=c.localStorage.getObject("login_items");"{}"!=JSON.stringify(n)&&n.expire-H2().unix()-4>0&&(c.feedback=!0),c.router.events.pipe((0,P1.Q)(c.destroy$)).subscribe(l=>{l instanceof N2.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 n=0;n0,this.showPanel!=n&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.nX),e.rXU(n0.F),e.rXU(s0.O),e.rXU(pe),e.rXU(e.gRc),e.rXU(j2),e.rXU(C2.s),e.rXU(N2.Ix),e.rXU(E6),e.rXU(GN1))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-search-catalog"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,lt0,8,5,"div",15)(19,st0,1,1),e.j41(20,"div",16)(21,"section",17)(22,"button",18),e.bIt("click",function(m){return l.showDrawer=!l.showDrawer,m.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,at0,6,0,"div",21)(28,ut0,16,7),e.k0s()()()),2&n&&(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,nt0,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:[L.YU,CE,T0,XN1,WN1,s1.D9]})}}return t})(),pt0=(()=>{class t{constructor(){this.apiUrl=this.buildProxyApiUrl(h1.c.BASE_URL,h1.c.AI_SEARCH_API_URL),this.apiKey=h1.c.AI_SEARCH_API_KEY,this.scoreThreshold=h1.c.AI_SEARCH_SCORE_THRESHOLD,this.answerMaxItems=h1.c.AI_SEARCH_ANSWER_MAX_ITEMS,this.profile=h1.c.AI_SEARCH_PROFILE}buildProxyApiUrl(c,n){return`${(c||"").replace(/\/+$/,"")}${this.normalizeAiPath(n)}`}normalizeAiPath(c){if(!c)return"/rag/";let n=c.trim();return n.startsWith("/")||(n=`/${n}`),n.endsWith("/")||(n=`${n}/`),n}search(c){var n=this;return(0,b1.A)(function*(l,r=[],m=!0,z=6,F=0){const J=JSON.stringify({profile:n.profile,text:l,score_threshold:n.scoreThreshold,filter:r,auto_filter:m,limit:z,offset:F});try{const i1=yield(yield fetch(`${n.apiUrl}search`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":n.apiKey},body:J})).text();return JSON.parse(i1)||{items:[],total_count:0,facets:{}}}catch(d1){return console.error("AI Search error:",d1),{items:[],total_count:0,facets:{}}}}).apply(this,arguments)}getAnswer(c){var n=this;return(0,b1.A)(function*(l,r=[]){if(!l.trim())return"";const m={profile:n.profile,text:l,score_threshold:n.scoreThreshold,filter:r,auto_filter:!1,limit:n.answerMaxItems};try{return(yield(yield fetch(`${n.apiUrl}answer`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":n.apiKey},body:JSON.stringify(m)})).json())?.answer||""}catch(z){return console.error("AI Answer error:",z),""}}).apply(this,arguments)}searchWithAnswer(c){var n=this;return(0,b1.A)(function*(l,r=[],m=6,z=0){const[F,I]=yield Promise.all([n.search(l,r,!0,m,z),n.getAnswer(l,r)]);return{searchResponse:F,answer:I}}).apply(this,arguments)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const ht0=(t,a)=>a.id,JN1=()=>[];function gt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",21),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"button",22),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDrawer=!l.showDrawer)}),e.qSk(),e.j41(2,"svg",23),e.nrm(3,"path",24),e.k0s(),e.joV(),e.j41(4,"span",16),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"bae-categories-filter",25),e.k0s()}if(2&t){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.DFT_CATALOG)}}function _t0(t,a){if(1&t&&e.nrm(0,"bae-categories-filter",26),2&t){const c=e.XpG();e.Y8G("catalogId",c.DFT_CATALOG)}}function Lt0(t,a){1&t&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",27),e.nrm(2,"path",28),e.k0s()())}function Ct0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",15),e.nrm(1,"circle",29)(2,"path",30),e.k0s())}function zt0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",31),e.nrm(1,"path",32),e.k0s())}function Mt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",17)(1,"div",33)(2,"div",34),e.qSk(),e.j41(3,"svg",35),e.nrm(4,"path",28),e.k0s()(),e.joV(),e.j41(5,"div",36)(6,"h4",37),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",38),e.nrm(10,"markdown",39),e.k0s()(),e.j41(11,"button",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.aiAnswer="")}),e.qSk(),e.j41(12,"svg",41),e.nrm(13,"path",24),e.k0s()()()()}if(2&t){const c=e.XpG();e.R7$(7),e.JRh(e.bMT(8,2,"DASHBOARD._ai_answer")),e.R7$(3),e.Y8G("data",c.aiAnswer)}}function xt0(t,a){1&t&&(e.j41(0,"div",18)(1,"div",42)(2,"div",43),e.qSk(),e.j41(3,"svg",44),e.nrm(4,"circle",29)(5,"path",30),e.k0s()(),e.joV(),e.j41(6,"span",45),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.JRh(e.bMT(8,1,"DASHBOARD._ai_thinking")))}function bt0(t,a){1&t&&(e.j41(0,"div",19),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47)(3,"path",48),e.k0s(),e.joV(),e.j41(4,"span",16),e.EFF(5,"Loading..."),e.k0s()())}function yt0(t,a){if(1&t&&(e.j41(0,"div",49),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.Lme(" ",c.aiTotalItems," ",e.bMT(2,2,"DASHBOARD._relevant_products")," ")}}function Ft0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,r=e.XpG(3);return e.Njj(r.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&t){const c=e.XpG().$index,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===n.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50 dark:border-gray-700 dark:bg-gray-700 dark:text-white":"text-gray-500 bg-white border-gray-300 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"),e.R7$(),e.SpI(" ",c+1," ")}}function vt0(t,a){1&t&&(e.j41(0,"li")(1,"span",59),e.EFF(2,"..."),e.k0s()())}function kt0(t,a){if(1&t&&e.DNE(0,Ft0,3,2,"li")(1,vt0,3,0),2&t){const c=a.$index,n=e.XpG(3);e.vxM(0,c+1===n.aiCurrentPage||c+1===1||c+1===n.aiTotalPages||c+1>=n.aiCurrentPage-2&&c+1<=n.aiCurrentPage+2?0:c+1===n.aiCurrentPage-3||c+1===n.aiCurrentPage+3?1:-1)}}function wt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"nav",50)(1,"ul",55)(2,"li")(3,"button",56),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,kt0,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",57),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&t){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,JN1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function St0(t,a){if(1&t&&e.nrm(0,"bae-off-card",52),2&t){const n=a.$index;e.Y8G("productOff",a.$implicit)("cardId",n)}}function Nt0(t,a){1&t&&(e.j41(0,"div",53),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"DASHBOARD._not_found")))}function Et0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,r=e.XpG(3);return e.Njj(r.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&t){const c=e.XpG().$index,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===n.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50 dark:border-gray-700 dark:bg-gray-700 dark:text-white":"text-gray-500 bg-white border-gray-300 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"),e.R7$(),e.SpI(" ",c+1," ")}}function Dt0(t,a){1&t&&(e.j41(0,"li")(1,"span",59),e.EFF(2,"..."),e.k0s()())}function Tt0(t,a){if(1&t&&e.DNE(0,Et0,3,2,"li")(1,Dt0,3,0),2&t){const c=a.$index,n=e.XpG(3);e.vxM(0,c+1===n.aiCurrentPage||c+1===1||c+1===n.aiTotalPages||c+1>=n.aiCurrentPage-2&&c+1<=n.aiCurrentPage+2?0:c+1===n.aiCurrentPage-3||c+1===n.aiCurrentPage+3?1:-1)}}function Rt0(t,a){if(1&t){const c=e.RV6();e.j41(0,"nav",54)(1,"ul",55)(2,"li")(3,"button",56),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,Tt0,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",57),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&t){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,JN1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function At0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",60)(1,"button",61),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",62),e.nrm(4,"path",63),e.k0s()()()}}function It0(t,a){if(1&t&&e.DNE(0,At0,5,0,"div",60),2&t){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function Pt0(t,a){1&t&&(e.j41(0,"div",64),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47)(3,"path",48),e.k0s(),e.joV(),e.j41(4,"span",16),e.EFF(5,"Loading..."),e.k0s()())}function $t0(t,a){if(1&t&&e.DNE(0,It0,1,1)(1,Pt0,6,0),2&t){const c=e.XpG(2);e.vxM(0,c.loading_more?1:0)}}function jt0(t,a){if(1&t&&(e.DNE(0,yt0,3,4,"div",49)(1,wt0,12,9,"nav",50),e.j41(2,"div",51),e.Z7z(3,St0,1,2,"bae-off-card",52,ht0,!1,Nt0,3,3,"div",53),e.k0s(),e.DNE(6,Rt0,12,9,"nav",54)(7,$t0,2,1)),2&t){const c=e.XpG();e.vxM(0,c.aiSearchEnabled&&c.aiTotalItems>0?0:-1),e.R7$(),e.vxM(1,c.aiSearchEnabled&&c.aiTotalPages>1?1:-1),e.R7$(2),e.Dyx(c.products),e.R7$(3),e.vxM(6,c.aiSearchEnabled&&c.aiTotalPages>1?6:-1),e.R7$(),e.vxM(7,c.aiSearchEnabled?-1:7)}}function Ot0(t,a){1&t&&e.nrm(0,"feedback-modal",20)}let Bt0=(()=>{class t{get aiTotalPages(){return Math.ceil(this.aiTotalItems/this.aiPageSize)}constructor(c,n,l,r,m,z,F,I,J,d1){var i1=this;this.api=c,this.cdr=n,this.route=l,this.router=r,this.localStorage=m,this.eventMessage=z,this.loginService=F,this.paginationService=I,this.state=J,this.aiSearchService=d1,this.products=[],this.nextProducts=[],this.loading=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.DFT_CATALOG=h1.c.DFT_CATALOG_ID,this.showDrawer=!1,this.searchEnabled=h1.c.SEARCH_ENABLED,this.keywords=void 0,this.searchField=new p.MJ,this.showPanel=!1,this.feedback=!1,this.providerThemeName=h1.c.providerThemeName,this.navigatingToDetail=!1,this.destroy$=new S.B,this.aiSearchEnabled=h1.c.AI_SEARCH_ENABLED,this.aiAnswer="",this.aiSearchLoading=!1,this.aiTotalItems=0,this.aiCurrentPage=1,this.aiPageSize=h1.c.PRODUCT_LIMIT,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(function(){var N1=(0,b1.A)(function*(J1){("AddedFilter"===J1.type||"RemovedFilter"===J1.type)&&(i1.aiSearchEnabled?yield i1.runInitialAiSearch():yield i1.getProducts(!1),i1.checkPanel())});return function(J1){return N1.apply(this,arguments)}}()),this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(N1=>{"CloseFeedback"===N1.type&&(this.feedback=!1)})}ngOnInit(){var c=this;return(0,b1.A)(function*(){if(c.router.events.pipe((0,P1.Q)(c.destroy$)).subscribe(l=>{l instanceof N2.Z&&(c.navigatingToDetail=!!l.url.startsWith("/search/urn:ngsi-ld:product-offering"))}),c.products=[],c.nextProducts=[],c.checkPanel(),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,void c.searchField.setValue(c.keywords);c.aiSearchEnabled?c.keywords?yield c.runAiSearch():yield c.runInitialAiSearch():yield c.getProducts(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",function(){var l=(0,b1.A)(function*(r){""==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(r){return l.apply(this,arguments)}}()),setTimeout(()=>{const l=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(l)&&l.expire-H2().unix()-4>0&&h1.c.feedbackCampaign){let r=c.localStorage.getObject("feedback");if(console.log("---------------------- feedbackInfo"),console.log(r),"{}"===JSON.stringify(r)){let m={expire:h1.c?.feedbackCampaignExpiration??H2().add(1,"week").unix()};c.localStorage.setObject("feedback",m),c.feedback=!0}else{if("expire"in r){if((r?.expire??0)-H2().unix()-4<0&&h1.c.feedbackCampaignExpiration-H2().unix()-4>0){let z={expire:h1.c?.feedbackCampaignExpiration};"approval"in r&&(z.approval=r.approval),c.localStorage.setObject("feedback",z)}}else{let m={expire:h1.c?.feedbackCampaignExpiration};"approval"in r&&(m.approval=r.approval),c.localStorage.setObject("feedback",m)}c.feedback=!("approval"in r)}}})})()}onClick(){1==this.showDrawer&&(this.showDrawer=!1,this.cdr.detectChanges())}ngOnDestroy(){if(this.navigatingToDetail)return;let c=this.localStorage.getObject("selected_categories")||[];for(let n=0;n0,this.showPanel!=n&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}onUnifiedSearch(c){var n=this;return(0,b1.A)(function*(){c.preventDefault(),n.aiSearchEnabled&&n.searchField.value?.trim()?(n.keywords=n.searchField.value,n.updateQueryParams(n.keywords),yield n.runAiSearch()):n.aiSearchEnabled?(n.keywords=void 0,n.updateQueryParams(n.keywords),n.aiAnswer="",n.eventMessage.emitAiSearchCleared(),yield n.runInitialAiSearch()):(n.keywords=n.searchField.value||void 0,n.updateQueryParams(n.keywords),n.aiAnswer="",n.eventMessage.emitAiSearchCleared(),yield n.getProducts(!1))})()}runInitialAiSearch(){var c=this;return(0,b1.A)(function*(){c.loading=!0,c.aiCurrentPage=1,c.keywords||c.searchField.reset(),c.cdr.detectChanges();try{const n=c.localStorage.getObject("selected_categories")||[],l=c.convertCategoriesToAiFilters(n),r=yield c.aiSearchService.search("",l,!1,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(r.items||[]),c.nextProducts=[],c.aiTotalItems=r.total_count,c.page_check=!1,r.facets&&c.eventMessage.emitAiSearchFacets(r.facets),c.state.save({products:c.products,nextProducts:c.nextProducts,page:c.page,page_check:c.page_check,keywords:c.keywords})}catch(n){console.error("Initial AI Search error:",n),yield c.getProducts(!1)}finally{c.loading=!1,c.cdr.detectChanges()}})()}runAiSearch(){var c=this;return(0,b1.A)(function*(){const n=c.searchField.value?.trim();if(n){c.aiSearchLoading=!0,c.aiAnswer="",c.loading=!0,c.aiCurrentPage=1,c.cdr.detectChanges();try{const l=c.localStorage.getObject("selected_categories")||[],r=c.convertCategoriesToAiFilters(l),{searchResponse:m,answer:z}=yield c.aiSearchService.searchWithAnswer(n,r,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(m.items||[]),c.aiTotalItems=m.total_count,m.facets&&c.eventMessage.emitAiSearchFacets(m.facets),c.nextProducts=[],c.page_check=!1,c.aiAnswer=z,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 n=this;return(0,b1.A)(function*(){n.aiCurrentPage=c,n.loading=!0,n.cdr.detectChanges();try{const l=n.localStorage.getObject("selected_categories")||[],r=n.convertCategoriesToAiFilters(l),m=(n.aiCurrentPage-1)*n.aiPageSize,z=yield n.aiSearchService.search(n.keywords||"",r,!1,n.aiPageSize,m);n.products=n.mapAiSearchToProducts(z.items||[]),n.aiTotalItems=z.total_count,z.facets&&n.eventMessage.emitAiSearchFacets(z.facets)}catch(l){console.error("AI Search page change error:",l)}finally{n.loading=!1,n.cdr.detectChanges()}})()}convertCategoriesToAiFilters(c){if(!Array.isArray(c))return[];const n=new Map;return c.forEach(l=>{let r,m;if(l.id?.includes("::")){const z=l.id.split("::");r=z[0],m=z.slice(1).join("::")}else if(l.id?.startsWith("ai-facet-")){const z=l.id.split("-");if(!(z.length>=4))return;z.shift(),z.shift(),r=z.shift()||"",m=z.join("-")}else r=l.id||"",m=l.name||"";n.has(r)||n.set(r,[]),n.get(r).push(m)}),Array.from(n.entries()).map(([l,r])=>({key:l,value:r}))}mapAiSearchToProducts(c){return c.map(n=>({id:n.id,href:n.id,name:n.offeringName||n.specificationName,description:n.offeringDescription||n.specificationDescription,lifecycleStatus:n.lifecycleStatus||"Launched",category:n.categories||[],attachment:n.imageUrl?[{id:"ai-image",name:"Profile Picture",attachmentType:"Picture",url:n.imageUrl,mimeType:"image/png"}]:[],productSpecification:{id:n.id,name:n.specificationName,description:n.specificationDescription,brand:n.brand,productSpecCharacteristic:n.complianceProfiles?[{name:"complianceProfiles",productSpecCharacteristicValue:n.complianceProfiles.map(l=>({value:l.name}))}]:[]},productOfferingPrice:[],_aiSearchData:n}))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(n0.F),e.rXU(e.gRc),e.rXU(N2.nX),e.rXU(N2.Ix),e.rXU(C2.s),e.rXU(j2),e.rXU(x9),e.rXU(E6),e.rXU(GN1),e.rXU(pt0))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["bae-search"]],hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:29,vars:20,consts:[[1,"fixed","z-30","w-full","top-[72px]","transition","transform","opacity-0","duration-200",3,"ngClass"],[1,"flex","p-5",3,"ngClass"],["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","flex-col"],[1,"flex","items-center","mb-4"],["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"],[1,"w-full",3,"ngSubmit"],[1,"flex"],[1,"relative","w-full"],[1,"absolute","inset-y-0","start-0","flex","items-center","ps-3","pointer-events-none"],["type","search","id","search",1,"block","p-2.5","w-full","text-sm","text-gray-900","bg-gray-50","rounded-lg","dark:bg-secondary-500","dark:placeholder-gray-400","dark:text-white",3,"keydown.enter","formControl","ngClass","placeholder"],["type","submit",1,"absolute","top-0","end-0","p-2.5","text-sm","font-medium","h-full","text-white","rounded-e-lg","border","focus:ring-4","focus:outline-none",3,"ngClass"],["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"],[1,"w-full","mt-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","mt-4","p-4","bg-gray-50","dark:bg-gray-800","border","border-gray-200","dark:border-gray-700","rounded-lg"],["role","status",1,"h-full","flex","justify-center","align-middle"],["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"],["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"],[3,"catalogId"],[1,"hidden","md:block","w-1/5","md:w-2/4","lg:w-1/4",3,"catalogId"],["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-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,"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"],[1,"flex","items-center","gap-3"],[1,"flex-shrink-0"],["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"],["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,"md:pl-5","px-2","pb-2","text-sm","text-gray-500","dark:text-gray-400"],["aria-label","Pagination",1,"flex","justify-center","pb-4"],[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"],["data-cy","searchNoOffersFound",1,"min-h-19","dark:text-gray-600","text-center"],["aria-label","Pagination",1,"flex","justify-center","pt-4","pb-12"],[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","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white","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","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white","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","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400"],[1,"flex","pb-12","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",1,"w-full","h-full","flex","justify-center","align-middle"]],template:function(n,l){1&n&&(e.nrm(0,"bae-categories-panel",0),e.j41(1,"section",1),e.DNE(2,gt0,8,5,"div",2)(3,_t0,1,1),e.j41(4,"div",3)(5,"section",4)(6,"div",5)(7,"button",6),e.bIt("click",function(m){return l.showDrawer=!l.showDrawer,m.stopPropagation()}),e.qSk(),e.j41(8,"svg",7),e.nrm(9,"path",8),e.k0s(),e.EFF(10," Categories "),e.k0s()(),e.joV(),e.j41(11,"form",9),e.bIt("ngSubmit",function(m){return l.onUnifiedSearch(m)}),e.j41(12,"div",10)(13,"div",11),e.DNE(14,Lt0,3,0,"div",12),e.j41(15,"input",13),e.nI1(16,"translate"),e.nI1(17,"translate"),e.bIt("keydown.enter",function(m){return l.onUnifiedSearch(m)}),e.k0s(),e.j41(18,"button",14),e.DNE(19,Ct0,3,0,":svg:svg",15)(20,zt0,2,0),e.j41(21,"span",16),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()(),e.DNE(24,Mt0,14,4,"div",17)(25,xt0,9,3,"div",18),e.k0s(),e.DNE(26,bt0,6,0,"div",19)(27,jt0,8,5),e.k0s()(),e.DNE(28,Ot0,1,0,"feedback-modal",20)),2&n&&(e.Y8G("ngClass",l.showPanel?"opacity-100":"hidden"),e.R7$(),e.Y8G("ngClass",l.showPanel?"pt-[75px]":""),e.R7$(),e.vxM(2,l.showDrawer?2:3),e.R7$(12),e.vxM(14,l.aiSearchEnabled?14:-1),e.R7$(),e.FS9("placeholder",l.aiSearchEnabled?e.bMT(16,14,"DASHBOARD._ai_search_ph"):e.bMT(17,16,"DASHBOARD._search_ph")),e.Y8G("formControl",l.searchField)("ngClass",l.aiSearchEnabled?"ps-10 border-purple-300 focus:ring-purple-500 focus:border-purple-500 dark:border-purple-600 dark:focus:border-purple-500":"border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:border-s-gray-700 dark:border-gray-600 dark:focus:border-blue-500"),e.R7$(3),e.Y8G("ngClass",l.aiSearchEnabled?"bg-purple-600 border-purple-600 hover:bg-purple-700 focus:ring-purple-300 dark:bg-purple-500 dark:hover:bg-purple-600 dark:focus:ring-purple-800":"bg-primary-100 border-secondary-100 hover:bg-primary-50 focus:ring-blue-300 dark:border-secondary-400"),e.R7$(),e.vxM(19,l.aiSearchLoading?19:20),e.R7$(3),e.JRh(e.bMT(23,18,"DASHBOARD._search")),e.R7$(2),e.vxM(24,l.aiSearchEnabled&&l.aiAnswer?24:-1),e.R7$(),e.vxM(25,l.aiSearchEnabled&&l.aiSearchLoading?25:-1),e.R7$(),e.vxM(26,l.loading?26:27),e.R7$(2),e.vxM(28,l.feedback?28:-1))},dependencies:[L.YU,p.qT,p.me,p.BC,p.cb,p.cV,p.l_,NH,CE,T0,XN1,WN1,s1.D9]})}}return t})();function Vt0(t,a){1&t&&e.nrm(0,"seller-catalogs")}function Ut0(t,a){1&t&&e.nrm(0,"seller-product-spec")}function Ht0(t,a){1&t&&e.nrm(0,"seller-service-spec")}function Gt0(t,a){1&t&&e.nrm(0,"seller-resource-spec")}function Yt0(t,a){1&t&&e.nrm(0,"seller-offer")}function qt0(t,a){1&t&&e.nrm(0,"create-product-spec")}function Xt0(t,a){1&t&&e.nrm(0,"create-service-spec")}function Wt0(t,a){1&t&&e.nrm(0,"create-resource-spec")}function Jt0(t,a){1&t&&e.nrm(0,"create-offer")}function Qt0(t,a){1&t&&e.nrm(0,"create-catalog")}function Zt0(t,a){if(1&t&&e.nrm(0,"update-product-spec",21),2&t){const c=e.XpG();e.Y8G("prod",c.prod_to_update)}}function Kt0(t,a){if(1&t&&e.nrm(0,"update-service-spec",22),2&t){const c=e.XpG();e.Y8G("serv",c.serv_to_update)}}function e90(t,a){if(1&t&&e.nrm(0,"update-resource-spec",23),2&t){const c=e.XpG();e.Y8G("res",c.res_to_update)}}function c90(t,a){if(1&t&&e.nrm(0,"update-offer",24),2&t){const c=e.XpG();e.Y8G("offer",c.offer_to_update)}}function t90(t,a){if(1&t&&e.nrm(0,"update-catalog",25),2&t){const c=e.XpG();e.Y8G("cat",c.catalog_to_update)}}function n90(t,a){if(1&t&&e.nrm(0,"app-custom-offer",26),2&t){const c=e.XpG();e.Y8G("offer",c.offer_to_update)("partyId",c.custom_offer_partyId)}}function l90(t,a){1&t&&e.nrm(0,"feedback-modal",27)}let QN1=(()=>{class t{constructor(c,n,l,r,m,z){this.localStorage=c,this.cdr=n,this.eventMessage=l,this.router=r,this.quoteService=m,this.api=z,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.feedback=!1,this.isDomeTheme="DOME"===(h1.c.providerThemeName||"").toUpperCase(),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,P1.Q)(this.destroy$)).subscribe(F=>{if("SellerProductSpec"===F.type&&(1==F.value&&this.isDomeTheme&&"{}"!=JSON.stringify(this.userInfo)&&this.userInfo.expire-H2().unix()-4>0&&(this.feedback=!0),this.goToProdSpec()),"SellerCreateProductSpec"===F.type&&1==F.value&&this.goToCreateProdSpec(),"SellerServiceSpec"===F.type&&1==F.value&&this.goToServiceSpec(),"SellerCreateServiceSpec"===F.type&&1==F.value&&this.goToCreateServSpec(),"SellerResourceSpec"===F.type&&1==F.value&&this.goToResourceSpec(),"SellerCreateResourceSpec"===F.type&&1==F.value&&this.goToCreateResSpec(),"SellerOffer"===F.type&&1==F.value&&this.goToOffers(),"SellerCatalog"==F.type&&1==F.value&&this.goToCatalogs(),"SellerCreateOffer"===F.type&&1==F.value&&this.goToCreateOffer(),"SellerCatalogCreate"===F.type&&1==F.value&&this.goToCreateCatalog(),"SellerUpdateProductSpec"===F.type&&(this.prod_to_update=F.value,this.goToUpdateProdSpec()),"SellerUpdateServiceSpec"===F.type&&(this.serv_to_update=F.value,this.goToUpdateServiceSpec()),"SellerUpdateResourceSpec"===F.type&&(this.res_to_update=F.value,this.goToUpdateResourceSpec()),"SellerUpdateOffer"===F.type&&(this.offer_to_update=F.value,this.goToUpdateOffer()),"SellerCreateCustomOffer"===F.type){const I=F.value;this.offer_to_update=I.offer,this.custom_offer_partyId=I.partyId||null,this.goToCreateCustomOffer()}"SellerCatalogUpdate"===F.type&&(this.catalog_to_update=F.value,this.goToUpdateCatalog()),"CloseFeedback"===F.type&&(this.feedback=!1)})}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.userInfo=c.localStorage.getObject("login_items");const n=localStorage.getItem("activeSection");console.log(n),n&&(c.activeSection=n),n&&c.sectionActions[n]&&c.sectionActions[n].call(c);const l=history.state;if(console.log("Checking state"),console.log(l),l&&l.quoteId){const r=yield wE(c.quoteService.getQuoteById(l.quoteId)),m=r?.quoteItem?.[0]?.productOffering?.id;let z=null;m&&(z=yield c.api.getProductById(m));const F=r?.relatedParty?.find(I=>I.role.toLowerCase()===h1.c.BUYER_ROLE.toLowerCase());c.eventMessage.emitSellerCreateCustomOffer(z,F?.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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(r,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(m,"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"),n=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),r=document.getElementById("res-spec-button"),m=document.getElementById("offers-button");this.selectMenu(m,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(e.gRc),e.rXU(j2),e.rXU(N2.Ix),e.rXU(s3.K),e.rXU(n0.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-seller-offerings"]],decls:74,vars:56,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"],["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","recommendation",1,"fixed","inset-0","flex","items-center","justify-center","z-40"]],template:function(n,l){1&n&&(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,Vt0,1,0,"seller-catalogs")(58,Ut0,1,0,"seller-product-spec")(59,Ht0,1,0,"seller-service-spec")(60,Gt0,1,0,"seller-resource-spec")(61,Yt0,1,0,"seller-offer")(62,qt0,1,0,"create-product-spec")(63,Xt0,1,0,"create-service-spec")(64,Wt0,1,0,"create-resource-spec")(65,Jt0,1,0,"create-offer")(66,Qt0,1,0,"create-catalog")(67,Zt0,1,1,"update-product-spec",21)(68,Kt0,1,1,"update-service-spec",22)(69,e90,1,1,"update-resource-spec",23)(70,c90,1,1,"update-offer",24)(71,t90,1,1,"update-catalog",25)(72,n90,1,2,"app-custom-offer",26),e.k0s()(),e.DNE(73,l90,1,0,"feedback-modal",27)),2&n&&(e.R7$(3),e.JRh(e.bMT(4,30,"OFFERINGS._my_offerings")),e.R7$(5),e.JRh(e.bMT(9,32,"OFFERINGS._my_offerings")),e.R7$(6),e.SpI(" ",e.bMT(15,34,"OFFERINGS._offerings")," "),e.R7$(6),e.JRh(e.bMT(21,36,"OFFERINGS._catalogs")),e.R7$(4),e.JRh(e.bMT(25,38,"OFFERINGS._offers")),e.R7$(4),e.JRh(e.bMT(29,40,"OFFERINGS._prod_spec")),e.R7$(4),e.JRh(e.bMT(33,42,"OFFERINGS._serv_spec")),e.R7$(4),e.JRh(e.bMT(37,44,"OFFERINGS._res_spec")),e.R7$(6),e.SpI(" ",e.bMT(43,46,"OFFERINGS._catalogs")," "),e.R7$(3),e.SpI(" ",e.bMT(46,48,"OFFERINGS._offers")," "),e.R7$(4),e.SpI(" ",e.bMT(50,50,"OFFERINGS._prod_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(53,52,"OFFERINGS._serv_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(56,54,"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),e.R7$(),e.vxM(73,l.feedback?73:-1))}})}}return t})();const ZN1=(t,a)=>a.id,s90=(t,a)=>a.value;function a90(t,a){1&t&&(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 o90(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",35),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(3);return e.Njj(r.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&t){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 i90(t,a){if(1&t&&(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,o90,7,7,"tr",34,ZN1),e.k0s()()()),2&t){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 r90(t,a){1&t&&(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&t&&(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 d90(t,a){if(1&t&&e.DNE(0,i90,16,9,"div",30)(1,r90,9,6),2&t){const c=e.XpG();e.vxM(0,c.billing_accounts.length>0?0:1)}}function f90(t,a){if(1&t&&(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&t){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 u90(t,a){if(1&t&&(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&t){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 m90(t,a){if(1&t&&(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&t){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 p90(t,a){if(1&t&&(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&t){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 h90(t,a){if(1&t&&(e.j41(0,"h5",50),e.EFF(1,"Selected characteristics:"),e.k0s(),e.j41(2,"div",61)(3,"div",62),e.Z7z(4,p90,7,2,"div",63,s90),e.k0s()()),2&t){const c=e.XpG().$implicit;e.R7$(4),e.Dyx(c.options.characteristics)}}function g90(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",42),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.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,f90,12,5,"div",52)(15,u90,12,5)(16,m90,10,4),e.k0s(),e.DNE(17,h90,6,0),e.k0s()}if(2&t){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 fG{static{this.BASE_URL=h1.c.BASE_URL}constructor(a,c,n,l,r,m,z,F){this.eventMessage=a,this.api=c,this.account=n,this.cartService=l,this.cdr=r,this.localStorage=m,this.orderService=z,this.router=F,this.faCartShopping=AL,this.TAX_RATE=h1.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(n=>n.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("------------------"),S2()}),this.account.getBillingAccount().then(c=>{for(let n=0;na.buildProductPayload(r)),n=a.buildProductOrder(c);console.log("--- order ---"),console.log(n);const l=yield wE(a.orderService.postProductOrder(n));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:h1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBilling.id,href:this.selectedBilling.id},orderDate:H2().utc(),notificationContact:this.selectedBilling.email}}emptyShoppingCart(){var a=this;return(0,b1.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||fG)(e.rXU(j2),e.rXU(n0.F),e.rXU(s0.O),e.rXU(d8),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(w8),e.rXU(N2.Ix))}}static{this.\u0275cmp=e.VBU({type:fG,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,n){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 n.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,a90,6,0,"div",21)(33,d90,2,1),e.k0s(),e.j41(34,"div",17)(35,"h5",20),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.Z7z(38,g90,18,6,null,null,ZN1),e.k0s()(),e.j41(40,"div",22)(41,"button",23),e.bIt("click",function(){return n.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,n.loading?32:33),e.R7$(4),e.SpI("",e.bMT(37,18,"SHOPPING_CART._cart"),":"),e.R7$(2),e.Dyx(n.items),e.R7$(4),e.SpI(" ",e.bMT(43,20,"SHOPPING_CART._buy")," "))},dependencies:[L.YU,p.qT,p.cb,p.cV,s1.D9]})}}function _90(t,a){if(1&t&&(e.j41(0,"a",4),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.Y8G("href",c.node.link,e.B4B),e.R7$(),e.SpI(" ",c.node.text," ")}}function L90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2);e.SpI(" ",c.node.text," ")}}function C90(t,a){if(1&t&&(e.j41(0,"span"),e.DNE(1,_90,2,2,"a",4)(2,L90,1,1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.node.link?1:2)}}function z90(t,a){1&t&&e.nrm(0,"app-revenue-report",5),2&t&&e.Y8G("node",a.$implicit)}function M90(t,a){if(1&t&&(e.j41(0,"div",3),e.Z7z(1,z90,1,1,"app-revenue-report",5,e.fX1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.Dyx(c.node.items)}}let x90=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"h3",2),e.EFF(3),e.k0s(),e.DNE(4,C90,3,1,"span"),e.k0s(),e.DNE(5,M90,3,0,"div",3),e.k0s()),2&n&&(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:[t]})}}return t})();class Zy{static{this.BASE_URL=h1.c.BASE_URL}static{this.PAYMENT_URL=h1.c.PAYMENT_URL}constructor(a,c){this.http=a,this.localStorage=c}getRevenue(a){return(0,V2.s)(this.http.get(`${Zy.BASE_URL}${Zy.PAYMENT_URL}/dashboard/${a}`))}static{this.\u0275fac=function(c){return new(c||Zy)(e.KVO(g.Qq),e.KVO(C2.s))}}static{this.\u0275prov=e.jDH({token:Zy,factory:Zy.\u0275fac,providedIn:"root"})}}function b90(t,a){1&t&&(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 y90(t,a){if(1&t&&(e.j41(0,"div",8),e.nrm(1,"app-revenue-report",9),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.Y8G("node",c)}}function F90(t,a){if(1&t&&e.Z7z(0,y90,2,1,"div",8,e.fX1),2&t){const c=e.XpG();e.Dyx(c.report)}}function v90(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let KN1=(()=>{class t{constructor(c,n){this.localStorage=c,this.revenueService=n,this.loading=!1,this.errorMessage="",this.showError=!1,this.partyId="",this.report=[]}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.loading=!0,c.initPartyInfo();try{let n=yield c.revenueService.getRevenue(c.partyId);c.loading=!1,console.log("------"),console.log(n),c.report=n}catch(n){c.handleError(n,"There was an error accessing revenue sharing's data, please contact with an administrator."),c.loading=!1}finally{c.loading=!1}})()}handleError(c,n){console.error(n,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:n,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(Zy))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Provider revenue sharing"),e.k0s(),e.DNE(3,b90,6,0,"div",2)(4,F90,2,0),e.k0s(),e.DNE(5,v90,9,1,"div",3)),2&n&&(e.R7$(3),e.vxM(3,l.loading?3:4),e.R7$(2),e.vxM(5,l.showError?5:-1))},dependencies:[s1.h,X2.dX,L.MD,x90]})}}return t})();const k90=["imgURL"],eE1=(t,a)=>a.code,w90=(t,a,c,n)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":t,"bg-gray-50 dark:bg-secondary-300":a,"border-red-600":c,"border-gray-300 dark:border-secondary-200":n}),uG=(t,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":t,"bg-gray-50 dark:bg-secondary-300":a}),S90=(t,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed pointer-events-none":t,"bg-gray-50 dark:bg-secondary-300":a}),cE1=(t,a)=>({"break-all":t,"break-words":a}),N90=()=>({position:"relative",left:"200px",top:"-500px"});function E90(t,a){1&t&&(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 D90(t,a){1&t&&(e.j41(0,"p",16)(1,"span",29),e.EFF(2,"This field is mandatory."),e.k0s()())}function T90(t,a){if(1&t&&(e.j41(0,"option",30),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function R90(t,a){if(1&t&&(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&t){const c=e.XpG(2);e.R7$(3),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(6,uG,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(9,uG,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(12,uG,c.isReadOnly,!c.isReadOnly))}}function A90(t,a){if(1&t&&(e.j41(0,"div",21)(1,"div",35),e.nrm(2,"markdown",36),e.k0s()()),2&t){const c=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(2,cE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function I90(t,a){if(1&t&&e.nrm(0,"markdown",36),2&t){const c=e.XpG(3);e.Y8G("ngClass",e.l_i(2,cE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function P90(t,a){1&t&&e.nrm(0,"textarea",67)}function $90(t,a){if(1&t){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 r=e.XpG(3);return e.Njj(r.addEmoji(l))}),e.k0s()}2&t&&(e.Aen(e.lJ4(3,N90)),e.Y8G("darkMode",!1))}function j90(t,a){if(1&t){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 r=e.XpG(2);return r.showEmoji=!r.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,I90,1,5,"markdown",36)(69,P90,1,0)(70,$90,1,4,"emoji-mart",66),e.k0s()()}if(2&t){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 O90(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function B90(t,a){if(1&t){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&t&&(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 V90(t,a){1&t&&(e.j41(0,"div",100),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",101),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function U90(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",84)(1,"ngx-file-drop",85),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(2,B90,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,V90,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&t){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 H90(t,a){if(1&t&&(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,O90,5,1,"div",79)(17,U90,14,8)),2&t){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 G90(t,a){1&t&&(e.j41(0,"th",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._actions")," "))}function Y90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.emailAddress," ")}}function q90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SjE(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince,", ",c.characteristic.country," ")}}function X90(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.Lme(" (",c.characteristic.contactType,") ",c.characteristic.phoneNumber," ")}}function W90(t,a){if(1&t){const c=e.RV6();e.j41(0,"td",104)(1,"button",105),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.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,r=e.XpG(2);return e.Njj(r.removeMedium(l))}),e.qSk(),e.j41(5,"svg",106),e.nrm(6,"path",109),e.k0s()()()}}function J90(t,a){if(1&t&&(e.j41(0,"tr",27)(1,"td",102),e.EFF(2),e.k0s(),e.j41(3,"td",103),e.DNE(4,Y90,1,1)(5,q90,1,5)(6,X90,1,2),e.k0s(),e.DNE(7,W90,7,0,"td",104),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.vxM(4,"Email"==c.mediumType?4:"PostalAddress"==c.mediumType?5:6),e.R7$(3),e.vxM(7,n.isReadOnly?-1:7)}}function Q90(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}function Z90(t,a){if(1&t&&(e.j41(0,"div",31)(1,"label",125),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",126),e.k0s()),2&t){let c;const n=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"PROFILE._email")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("email"))?null:c.invalid)&&""!=n.mediumForm.value.email||1==(null==(c=n.mediumForm.get("email"))?null:c.touched)&&""==n.mediumForm.value.email?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function K90(t,a){if(1&t&&(e.j41(0,"div")(1,"label",127),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",128),e.k0s(),e.j41(5,"div")(6,"label",129),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",130),e.k0s(),e.j41(10,"div")(11,"label",131),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",132),e.k0s(),e.j41(15,"div")(16,"label",133),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",134),e.k0s(),e.j41(20,"div",31)(21,"label",135),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",136),e.k0s()),2&t){let c,n,l,r,m;const z=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,10,"PROFILE._country")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=z.mediumForm.get("country"))?null:c.invalid)&&""!=z.mediumForm.value.country||null!=(c=z.mediumForm.get("country"))&&c.touched&&""==z.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==(n=z.mediumForm.get("city"))?null:n.invalid)&&""!=z.mediumForm.value.city||null!=(n=z.mediumForm.get("city"))&&n.touched&&""==z.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=z.mediumForm.get("stateOrProvince"))?null:l.invalid)&&""!=z.mediumForm.value.stateOrProvince||null!=(l=z.mediumForm.get("stateOrProvince"))&&l.touched&&""==z.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==(r=z.mediumForm.get("postCode"))?null:r.invalid)&&""!=z.mediumForm.value.postCode||null!=(r=z.mediumForm.get("postCode"))&&r.touched&&""==z.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==(m=z.mediumForm.get("street"))?null:m.invalid)&&""!=z.mediumForm.value.street||null!=(m=z.mediumForm.get("street"))&&m.touched&&""==z.mediumForm.value.street?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function en0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",155),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.selectPrefix(l))}),e.j41(1,"div",156),e.EFF(2),e.k0s()()}if(2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function cn0(t,a){if(1&t&&(e.j41(0,"div",151)(1,"ul",153)(2,"li"),e.Z7z(3,en0,3,1,"button",154,eE1),e.k0s()()()),2&t){const c=e.XpG(4);e.R7$(3),e.Dyx(c.prefixes)}}function tn0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",137)(1,"label",138),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",139)(5,"option",140),e.EFF(6,"Mobile"),e.k0s(),e.j41(7,"option",141),e.EFF(8,"Landline"),e.k0s(),e.j41(9,"option",142),e.EFF(10,"Office"),e.k0s(),e.j41(11,"option",143),e.EFF(12,"Home"),e.k0s(),e.j41(13,"option",144),e.EFF(14,"Other"),e.k0s()()(),e.j41(15,"div",137)(16,"label",145),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"div",146)(20,"div",147)(21,"button",148),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(22),e.qSk(),e.j41(23,"svg",149),e.nrm(24,"path",150),e.k0s()(),e.DNE(25,cn0,5,0,"div",151),e.joV(),e.nrm(26,"input",152),e.k0s()()()}if(2&t){let c;const n=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,6,"PROFILE._phone_type")),e.R7$(15),e.JRh(e.bMT(18,8,"PROFILE._phone")),e.R7$(5),e.Lme(" ",n.phonePrefix.flag," ",n.phonePrefix.code," "),e.R7$(3),e.vxM(25,1==n.prefixCheck?25:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function nn0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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),e.DNE(13,Z90,5,4,"div",31)(14,K90,25,20)(15,tn0,27,10),e.k0s(),e.j41(16,"div",119)(17,"button",120),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveMedium())}),e.EFF(18),e.nI1(19,"translate"),e.qSk(),e.j41(20,"svg",121),e.nrm(21,"path",122),e.k0s()()(),e.joV(),e.j41(22,"div",123)(23,"button",124),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.updateProfile())}),e.EFF(24),e.nI1(25,"translate"),e.k0s()()}if(2&t){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,9,"PROFILE._add_new_contact")),e.R7$(11),e.Y8G("formGroup",c.mediumForm),e.R7$(),e.vxM(13,c.emailSelected?13:c.addressSelected?14:15),e.R7$(4),e.Y8G("disabled",!c.mediumForm.valid)("ngClass",c.mediumForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(19,11,"PROFILE._save")," "),e.R7$(5),e.Y8G("disabled",!c.profileForm.valid)("ngClass",c.profileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(25,13,"PROFILE._update")," ")}}function ln0(t,a){if(1&t&&(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,D90,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,T90,2,2,"option",19),e.k0s()(),e.DNE(23,R90,12,15),e.j41(24,"label",20),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,A90,3,5,"div",21)(28,j90,71,28),e.k0s(),e.DNE(29,H90,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",26),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.DNE(44,G90,3,3,"th",25),e.k0s()(),e.j41(45,"tbody"),e.Z7z(46,J90,8,3,"tr",27,e.fX1,!1,Q90,7,3,"div",28),e.k0s()()(),e.DNE(49,nn0,26,15),e.k0s()),2&t){let c,n;const l=e.XpG();e.R7$(2),e.JRh(e.bMT(3,23,"PROFILE._organization")),e.R7$(3),e.Y8G("formGroup",l.profileForm),e.R7$(3),e.SpI("",e.bMT(9,25,"PROFILE._name")," (*)"),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.ziG(39,w90,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!=(n=l.profileForm.get("name"))&&n.invalid&&null!=(n=l.profileForm.get("name"))&&null!=n.errors&&n.errors.required&&null!=(n=l.profileForm.get("name"))&&n.touched&&""==l.profileForm.value.name?11:-1),e.R7$(3),e.JRh(e.bMT(15,27,"PROFILE._website")),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.l_i(44,uG,l.isReadOnly,!l.isReadOnly)),e.R7$(3),e.SpI("",e.bMT(20,29,"PROFILE._country")," (*)"),e.R7$(2),e.Y8G("disabled",l.isReadOnly)("ngClass",e.l_i(47,S90,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,31,"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,33,"PROFILE._contact_info")),e.R7$(8),e.SpI(" ",e.bMT(40,35,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(43,37,"PROFILE._info")," "),e.R7$(2),e.vxM(44,l.isReadOnly?-1:44),e.R7$(2),e.Dyx(l.contactmediums),e.R7$(3),e.vxM(49,l.isReadOnly?-1:49)}}function sn0(t,a){if(1&t&&e.nrm(0,"error-message",2),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function an0(t,a){if(1&t&&(e.j41(0,"div",31)(1,"label",125),e.EFF(2,"Email"),e.k0s(),e.nrm(3,"input",164),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(3),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("email"))?null:c.invalid)&&""!=n.mediumForm.value.email?"border-red-600":"border-gray-300")}}function on0(t,a){1&t&&(e.j41(0,"div")(1,"label",127),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",165),e.k0s(),e.j41(5,"div")(6,"label",129),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",166),e.k0s(),e.j41(10,"div")(11,"label",131),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",167),e.k0s(),e.j41(15,"div")(16,"label",133),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",168),e.k0s(),e.j41(20,"div",31)(21,"label",135),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",169),e.k0s()),2&t&&(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 in0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",155),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.selectPrefix(l))}),e.j41(1,"div",156),e.EFF(2),e.k0s()()}if(2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function rn0(t,a){if(1&t&&(e.j41(0,"div",151)(1,"ul",153)(2,"li"),e.Z7z(3,in0,3,1,"button",154,eE1),e.k0s()()()),2&t){const c=e.XpG(3);e.R7$(3),e.Dyx(c.prefixes)}}function dn0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",137)(1,"label",138),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",139)(5,"option",140),e.EFF(6,"Mobile"),e.k0s(),e.j41(7,"option",141),e.EFF(8,"Landline"),e.k0s(),e.j41(9,"option",142),e.EFF(10,"Office"),e.k0s(),e.j41(11,"option",143),e.EFF(12,"Home"),e.k0s(),e.j41(13,"option",144),e.EFF(14,"Other"),e.k0s()()(),e.j41(15,"div",137)(16,"label",145),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"div",146)(20,"div",147)(21,"button",148),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(22),e.qSk(),e.j41(23,"svg",149),e.nrm(24,"path",150),e.k0s()(),e.DNE(25,rn0,5,0,"div",151),e.joV(),e.nrm(26,"input",170),e.k0s()()()}if(2&t){let c;const n=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,6,"PROFILE._phone_type")),e.R7$(15),e.JRh(e.bMT(18,8,"PROFILE._phone")),e.R7$(5),e.Lme(" ",n.phonePrefix.flag," ",n.phonePrefix.code," "),e.R7$(3),e.vxM(25,1==n.prefixCheck?25:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=n.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function fn0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",3)(1,"div",157),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",158)(3,"h2",11),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",159),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showEditMedium=!1)}),e.qSk(),e.j41(7,"svg",160),e.nrm(8,"path",161),e.k0s(),e.joV(),e.j41(9,"span",9),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",162)(13,"form",118),e.DNE(14,an0,4,1,"div",31)(15,on0,25,15)(16,dn0,27,10),e.k0s(),e.j41(17,"div",119)(18,"button",163),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editMedium())}),e.EFF(19),e.nI1(20,"translate"),e.qSk(),e.j41(21,"svg",121),e.nrm(22,"path",122),e.k0s()()()()()()}if(2&t){const c=e.XpG();e.Y8G("ngClass",c.showEditMedium?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,6,"PROFILE._edit")),e.R7$(6),e.JRh(e.bMT(11,8,"CARD._close")),e.R7$(3),e.Y8G("formGroup",c.mediumForm),e.R7$(),e.vxM(14,"Email"==c.selectedMedium.mediumType?14:"PostalAddress"==c.selectedMedium.mediumType?15:16),e.R7$(5),e.SpI(" ",e.bMT(20,10,"PROFILE._save")," ")}}function un0(t,a){1&t&&(e.j41(0,"div",174),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_phone")))}function mn0(t,a){1&t&&(e.j41(0,"div",174),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_email")))}function pn0(t,a){if(1&t&&(e.j41(0,"div",4)(1,"div",171),e.qSk(),e.j41(2,"svg",172),e.nrm(3,"path",173),e.k0s()(),e.joV(),e.j41(4,"div"),e.DNE(5,un0,3,3,"div",174)(6,mn0,3,3,"div",174),e.k0s(),e.j41(7,"button",175)(8,"span",9),e.EFF(9,"Close"),e.k0s(),e.qSk(),e.j41(10,"svg",160),e.nrm(11,"path",161),e.k0s()()()),2&t){let c,n;const l=e.XpG();e.R7$(5),e.vxM(5,1==(null==(c=l.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?5:-1),e.R7$(),e.vxM(6,1==(null==(n=l.mediumForm.get("email"))?null:n.invalid)?6:-1)}}function hn0(t,a){1&t&&(e.j41(0,"div",5)(1,"div",176)(2,"div",177),e.qSk(),e.j41(3,"svg",178),e.nrm(4,"path",112),e.k0s(),e.joV(),e.j41(5,"h3",179),e.EFF(6,"Update success"),e.k0s()(),e.j41(7,"div",180),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let gn0=(()=>{class t{constructor(c,n,l,r,m,z){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.eventMessage=m,this.attachmentService=z,this.isDataspaceEnabled=h1.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({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=cG,this.countries=Qy,this.phonePrefix=cG[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=h1.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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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(()=>{S2()},500)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-H2().unix()-4>0){if(c.logged_as!==c.id){let n=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=n.partyId,n&&n.roles){const r=n.roles.map(m=>m.name).some(m=>m===h1.c.ORG_ADMIN_ROLE);this.isReadOnly=!r}}else this.partyId=c.partyId,this.isReadOnly=!1;this.token=c.token,this.email=c.email,this.profileForm.reset(),this.getProfile()}S2()}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(),S2()}updateProfile(){let c=[],n=[];""!=this.imgPreview&&n.push({name:"logo",value:this.imgPreview}),""!=this.profileForm.value.description&&n.push({name:"description",value:this.profileForm.value.description}),""!=this.profileForm.value.website&&n.push({name:"website",value:this.profileForm.value.website}),""!=this.profileForm.value.country&&n.push({name:"country",value:this.profileForm.value.country});const l=this.profileForm.value.contractManagementAddress?.trim()??"",r=this.profileForm.value.contractManagementClientId?.trim()??"",m=this.parseContractManagementScopes(this.profileForm.value.contractManagementScopes);this.isDataspaceEnabled&&(""!==l||""!==r||m.length>0)&&n.push({name:"contractManagement",value:{address:l,clientId:r,scope:m}});for(let F=0;F{this.profileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.mediumForm.reset()},error:F=>{console.error("There was an error while updating!",F),this.errorMessage=F.error.error?"Error: "+F.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 n=0;nn.trim()).filter(n=>n.length>0):[]}formatContractManagementScopes(c){return Array.isArray(c)?c.filter(n=>"string"==typeof n).join(", "):"string"==typeof c?c:""}saveMedium(){if(this.phoneSelected)try{const c=ew(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:A4(),mediumType:"Email",preferred:!1,characteristic:{contactType:"Email",emailAddress:this.mediumForm.value.email}}:this.addressSelected?{id:A4(),mediumType:"PostalAddress",preferred:!1,characteristic:{contactType:"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:A4(),mediumType:"TelephoneNumber",preferred:!1,characteristic:{contactType:this.mediumForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}),this.mediumForm.reset()}removeMedium(c){const n=this.contactmediums.findIndex(l=>l.id===c.id);-1!==n&&this.contactmediums.splice(n,1)}editMedium(){const c=this.contactmediums.findIndex(n=>n.id===this.selectedMedium.id);if(-1!==c){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:!1,characteristic:{contactType:"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:!1,characteristic:{contactType:"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 n=ew(this.phonePrefix.code+this.mediumForm.value.telephoneNumber);if(n){if(!n.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:!1,characteristic:{contactType:this.mediumForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}}this.mediumForm.reset(),this.showEditMedium=!1}}showEdit(c){if(this.selectedMedium=c,"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 n=ew(this.selectedMedium.characteristic.phoneNumber);if(n){let l=this.prefixes.filter(r=>r.code==="+"+n.countryCallingCode);l.length>0&&(this.phonePrefix=l[0]),this.mediumForm.controls.telephoneNumber.setValue(n.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 n=this.mediumForm.get(c);!n||!n.validator||n.validator({})}printAllActiveValidators(){Object.keys(this.mediumForm.controls).forEach(c=>{this.printActiveValidators(c)})}dropped(c,n){this.files=c;for(const l of c)l.fileEntry.isFile&&l.fileEntry.file(m=>{if(m){const z=new FileReader;z.onload=F=>{const I=F.target.result.split(",")[1];let J={content:{name:"orglogo"+m.name,data:I},contentType:m.type,isPublic:!0};return this.isValidFilename(J.content.name)?m.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(J).subscribe({next:d1=>{"img"==n&&(m.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=d1.content):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3))),this.cdr.detectChanges()},error:d1=>{console.error("There was an error while uploading!",d1),this.errorMessage=d1.error.error?"Error: "+d1.error.error:"There was an error while uploading the file!",413===d1.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))},z.readAsDataURL(m)}})}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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(s0.O),e.rXU(j2),e.rXU(b9))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["org-info"]],viewQuery:function(n,l){if(1&n&&e.GBs(k90,5),2&n){let r;e.mGM(r=e.lsd())&&(l.imgURL=r.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"],[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"],[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"],["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"],["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"],["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(n,l){1&n&&e.DNE(0,E90,6,0,"div",1)(1,ln0,50,50)(2,sn0,1,1,"error-message",2)(3,fn0,23,12,"div",3)(4,pn0,12,2,"div",4)(5,hn0,10,3,"div",5),2&n&&(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:[L.YU,L.Sq,L.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,I0,b0,j4,T0,Q0,s1.D9]})}}return t})();const _n0=(t,a)=>a.code;function Ln0(t,a){1&t&&(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 Cn0(t,a){1&t&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function zn0(t,a){1&t&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function Mn0(t,a){if(1&t&&(e.j41(0,"option",49),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.code),e.R7$(),e.JRh(c.name)}}function xn0(t,a){if(1&t){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,Cn0,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,zn0,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,Mn0,2,2,"option",49,_n0),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&t){let c,n,l,r;const m=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",m.profile.externalReference[0].name),e.R7$(2),e.JRh(e.bMT(13,31,"PROFILE._email")),e.R7$(2),e.FS9("value",m.email),e.R7$(3),e.JRh(e.bMT(18,33,"PROFILE._token")),e.R7$(2),e.FS9("value",m.token),e.R7$(2),e.JRh(e.bMT(22,35,"PROFILE._profile")),e.R7$(3),e.Y8G("formGroup",m.userProfileForm),e.R7$(3),e.JRh(e.bMT(28,37,"PROFILE._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=m.userProfileForm.get("name"))?null:c.invalid)&&""!=m.userProfileForm.value.name||null!=(c=m.userProfileForm.get("name"))&&c.touched&&""==m.userProfileForm.value.name?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(30,null!=(n=m.userProfileForm.get("name"))&&n.invalid&&null!=(n=m.userProfileForm.get("name"))&&null!=n.errors&&n.errors.required&&null!=(n=m.userProfileForm.get("name"))&&n.touched&&""==m.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=m.userProfileForm.get("lastname"))?null:l.invalid)&&""!=m.userProfileForm.value.lastname||null!=(l=m.userProfileForm.get("lastname"))&&l.touched&&""==m.userProfileForm.value.lastname?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(62,null!=(r=m.userProfileForm.get("lastname"))&&r.invalid&&null!=(r=m.userProfileForm.get("lastname"))&&null!=r.errors&&r.errors.required&&null!=(r=m.userProfileForm.get("lastname"))&&r.touched&&""==m.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",m.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(m.countries),e.R7$(3),e.Y8G("disabled",!m.userProfileForm.valid)("ngClass",m.userProfileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(109,57,"PROFILE._update")," ")}}function bn0(t,a){if(1&t&&e.nrm(0,"error-message",1),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function yn0(t,a){1&t&&(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&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let Fn0=(()=>{class t{constructor(c,n,l,r,m){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.eventMessage=m,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=Qy,this.preferred=!1,this.errorMessage="",this.showError=!1,this.successVisibility=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(z=>{"ChangedSession"===z.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-H2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,this.accountService.getOrgInfo(this.partyId).then(l=>{})}this.token=c.token,this.email=c.email,this.getProfile()}S2()}getProfile(){this.accountService.getUserInfo(this.partyId).then(c=>{this.profile=c,this.loadProfileData(this.profile),this.loading=!1,this.cdr.detectChanges()}),this.cdr.detectChanges(),S2()}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:n=>{this.userProfileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.getProfile()},error:n=>{console.error("There was an error while updating!",n),n.error.error?(console.log(n),this.errorMessage="Error: "+n.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(n){return new(n||t)(e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(s0.O),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,Ln0,6,0,"div",0)(1,xn0,110,59)(2,bn0,1,1,"error-message",1)(3,yn0,10,3,"div",2),2&n&&(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:[L.YU,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,Q0,s1.D9]})}}return t})();const vn0=(t,a)=>a.id,kn0=(t,a)=>({"break-all":t,"break-words":a});function wn0(t,a){1&t&&(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 Sn0(t,a){1&t&&(e.j41(0,"th",14),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"BILLING._action")," "))}function Nn0(t,a){if(1&t){const c=e.RV6();e.j41(0,"td",21)(1,"button",22),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().$implicit;return e.XpG(2).toggleEditBill(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(2,"svg",23),e.nrm(3,"path",24),e.k0s()()()}}function En0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.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,Nn0,4,0,"td",21),e.k0s()}if(2&t){const c=a.$implicit,n=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,kn0,n.hasLongWord(c.name,20),!n.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,n.isReadOnly?-1:9)}}function Dn0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"BILLING._no_billing")," "))}function Tn0(t,a){if(1&t&&(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&t){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"BILLING._add")),e.R7$(3),e.Y8G("preferred",c.preferred)}}function Rn0(t,a){if(1&t&&(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,Sn0,3,3,"th",14),e.k0s()(),e.j41(22,"tbody"),e.Z7z(23,En0,10,15,"tr",15,vn0,!1,Dn0,7,3,"div",16),e.k0s()()(),e.DNE(26,Tn0,5,4),e.k0s()),2&t){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 An0(t,a){if(1&t){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&t){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 In0(t,a){if(1&t){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&t){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 Pn0(t,a){if(1&t&&e.nrm(0,"error-message",3),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let $n0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.api=n,this.cdr=l,this.router=r,this.accountService=m,this.orderService=z,this.eventMessage=F,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=Qy,this.preferred=!1,this.isReadOnly=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"BillAccChanged"===I.type&&this.getBilling(),0==I.value&&(this.editBill=!1),"ChangedSession"===I.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-H2().unix()-4>0){if(c.logged_as!==c.id){let n=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=n.partyId,console.log("loggedOrg info"),console.log(n),this.partyInfo={id:this.partyId,name:n.name,href:this.partyId,role:h1.c.SELLER_ROLE},n&&n.roles){const r=n.roles.map(m=>m.name).some(m=>m===h1.c.ORG_ADMIN_ROLE);this.isReadOnly=!r}}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:h1.c.SELLER_ROLE},this.isReadOnly=!1;this.getBilling()}S2()}getBilling(){let c=!1;this.accountService.getBillingAccount().then(n=>{this.billing_accounts=[];for(let l=0;l0),console.log(this.billing_accounts),this.cdr.detectChanges()}),this.cdr.detectChanges(),S2()}selectBill(c){const n=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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(N2.Ix),e.rXU(s0.O),e.rXU(w8),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["billing-info"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&e.DNE(0,wn0,6,0,"div",0)(1,Rn0,27,18)(2,An0,14,8,"div",1)(3,In0,24,14,"div",2)(4,Pn0,1,1,"error-message",3),2&n&&(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:[L.YU,Zd1,Q0,s1.D9]})}}return t})();const tE1=(t,a)=>a.id;function jn0(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.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&t){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 On0(t,a){1&t&&(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 Bn0(t,a){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Vn0(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Un0(t,a){if(1&t&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Hn0(t,a){if(1&t&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Gn0(t,a){if(1&t&&(e.j41(0,"span",57),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Yn0(t,a){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function qn0(t,a){if(1&t&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Xn0(t,a){if(1&t){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,Bn0,2,1,"span",48)(5,Vn0,2,1)(6,Un0,2,1)(7,Hn0,2,1)(8,Gn0,2,1)(9,Yn0,2,1)(10,qn0,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 r=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(r),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&t){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 Wn0(t,a){1&t&&(e.j41(0,"div",45)(1,"span",58),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function Jn0(t,a){if(1&t){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 Qn0(t,a){if(1&t&&e.DNE(0,Jn0,5,0,"div",59),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Zn0(t,a){1&t&&(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 Kn0(t,a){if(1&t&&(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,Xn0,24,8,"tr",44,tE1),e.k0s()(),e.DNE(26,Wn0,4,3,"div",45),e.k0s(),e.DNE(27,Qn0,1,1)(28,Zn0,6,0),e.k0s()),2&t){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 el0(t,a){if(1&t&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function cl0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function tl0(t,a){if(1&t&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function nl0(t,a){if(1&t&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function ll0(t,a){if(1&t&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function sl0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function al0(t,a){if(1&t&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function ol0(t,a){1&t&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._custom")," "))}function il0(t,a){if(1&t&&(e.j41(0,"td",47),e.EFF(1),e.k0s()),2&t){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 rl0(t,a){if(1&t&&e.DNE(0,ol0,3,3,"td",47)(1,il0,2,3),2&t){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function dl0(t,a){1&t&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function fl0(t,a){if(1&t&&(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,rl0,2,1)(6,dl0,3,3),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.FS9("src",n.getProductImage(c),e.B4B),e.R7$(2),e.SpI(" ",c.name," "),e.R7$(),e.vxM(5,c.productOfferingPrice?5:6)}}function ul0(t,a){if(1&t&&(e.j41(0,"p",83),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.E5c("",c.price," ",c.unit," ",c.text,"")}}function ml0(t,a){1&t&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._custom")))}function pl0(t,a){1&t&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._free")))}function hl0(t,a){if(1&t&&e.DNE(0,ml0,3,3,"p",91)(1,pl0,3,3),2&t){const c=e.XpG(2);e.vxM(0,1==c.check_custom?0:1)}}function gl0(t,a){if(1&t){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,el0,2,1,"span",75)(25,cl0,2,1)(26,tl0,2,1)(27,nl0,2,1)(28,ll0,2,1)(29,sl0,2,1)(30,al0,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,fl0,7,3,"tr",77,tE1),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,ul0,2,3,"p",83,e.fX1,!1,hl0,2,1),e.k0s()()()()()()}if(2&t){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 _l0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.localStorage=c,this.api=n,this.cdr=l,this.accountService=r,this.orderService=m,this.eventMessage=z,this.paginationService=F,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=Qy,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=h1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=h1.c.BUYER_ROLE,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),S2()}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-H2().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let n=c.organizations.find(r=>r.id==c.logged_as);this.partyId=n.partyId,n.roles.map(r=>r.name).includes(h1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}S2()}ngAfterViewInit(){S2()}getProductImage(c){let n=c?.attachment?.filter(r=>"Profile Picture"===r.name)??[],l=c.attachment?.filter(r=>"Picture"===r.attachmentType)??[];return 0!=n.length&&(l=n),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.ORDER_LIMIT,c,n.orders,n.nextOrders,{filters:n.filters,partyId:n.partyId,orders:n.orders,role:n.role},n.paginationService.getOrders.bind(n.paginationService)).then(r=>{console.log("--pag"),console.log(r),console.log(n.orders),n.page_check=r.page_check,n.orders=r.items,n.nextOrders=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const n=this.filters.findIndex(l=>l===c);-1!==n?(this.filters.splice(n,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 n=[],l=!1;this.check_custom=!1;for(let r=0;r{class t{constructor(c,n,l,r){this.localStorage=c,this.cdr=n,this.eventMessage=l,this.http=r,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,P1.Q)(this.destroy$)).subscribe(m=>{"ChangedSession"===m.type&&this.initPartyInfo()})}ngOnInit(){let c=new Date;c.setMonth(c.getMonth()-1),this.initPartyInfo(),setTimeout(()=>{S2()},100)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-H2().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 n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId,this.loggedAsUser=!1,this.show_profile=!1,this.show_org_profile=!0,this.getOrgProfile()}S2()}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(()=>{S2()},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(),S2()}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(),S2()}getPayment(){(0,V2.s)(this.http.get(`${h1.c.BASE_URL}/paymentInfo`)).then(n=>{window.open(n.providerUrl,"_blank")}).catch(()=>{})}getLear(){window.open(`${h1.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"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(n,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectBilling(){let c=document.getElementById("bill-button"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectOrder(){let c=document.getElementById("bill-button"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(r,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("bill-button"),n=document.getElementById("general-button"),l=document.getElementById("order-button"),r=document.getElementById("revenue-button");this.selectMenu(r,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(n,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100")}removeClass(c,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&c.className.match(n)&&this.removeClass(c,n)}selectMenu(c,n){null!=c&&(c.className.match(n)||this.addClass(c,n))}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(e.gRc),e.rXU(j2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,Ll0,3,3,"button",15)(29,Cl0,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,zl0,1,0,"user-info")(44,Ml0,1,0,"org-info")(45,xl0,1,0,"order-info")(46,bl0,1,0,"billing-info")(47,yl0,1,0,"provider-revenue-sharing"),e.k0s()()()),2&n&&(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:[KN1,gn0,Fn0,$n0,_l0,s1.D9]})}}return t})(),canActivate:[rc],data:{roles:[]}},{path:"my-offerings",component:QN1,canActivate:[rc],data:{roles:["seller"]}},{path:"admin",component:_J2,canActivate:[rc],data:{roles:["admin","certifier"]}},{path:"contact-us",component:l10},{path:"product-orders",component:o70,canActivate:[rc],data:{roles:[]}},{path:"quote-list",component:p3,canActivate:[rc,Fw1],data:{roles:[]}},{path:"tenders",loadChildren:()=>v.e(365).then(v.bind(v,4365)).then(t=>t.TendersModule),canActivate:[rc,Fw1],data:{roles:[]}},{path:"usage-spec",component:XX2,canActivate:[rc],data:{roles:["seller"]}},{path:"blog",component:E},{path:"blog/:slugOrId",component:T5},{path:"blog-entry",component:xw1,canActivate:[rc],data:{roles:["admin"]}},{path:"blog-entry/:id",component:xw1,canActivate:[rc],data:{roles:["admin"]}},{path:"landing-page",children:[{path:"customers",loadComponent:()=>Promise.all([v.e(76),v.e(342)]).then(v.bind(v,5342)).then(t=>t.LandingPageCustomersComponent)},{path:"providers",loadComponent:()=>Promise.all([v.e(76),v.e(826)]).then(v.bind(v,6826)).then(t=>t.LandingPageProvidersComponent)}]},{path:"**",redirectTo:"dashboard",pathMatch:"full"}];let vl0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({imports:[N2.iI.forRoot(Fl0),N2.iI]})}}return t})(),wl0=(()=>{class t{constructor(c,n,l,r,m){this.localStorage=c,this.api=n,this.router=l,this.eventMessage=r,this.notificationService=m}startInterval(c,n){this.intervalObservable=function kl0(t=0,a=s4){return t<0&&(t=0),y4(t,t,a)}(c),this.intervalSubscription=this.intervalObservable.subscribe(()=>{let l=this.localStorage.getObject("login_items");this.api.getLogin(l.token).then(r=>{this.stopInterval(),this.localStorage.setObject("login_items",{id:r.id,user:r.username,email:r.email,token:r.accessToken,expire:r.expire,partyId:l.partyId,roles:r.roles,organizations:l.organizations,logged_as:l.logged_as}),r.expire>H2().unix()+4?this.startInterval(1e3*(r.expire-H2().unix()-4),r):this.logout()}).catch(r=>{console.error("Error refreshing token",r),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(n=>{console.error("Error during logout:",n)}),this.router.navigate(["/dashboard"]).then(()=>{this.notificationService.showInfo("Your session has expired. Please log in again.")}))}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(C2.s),e.KVO(x9),e.KVO(N2.Ix),e.KVO(j2),e.KVO(K4.J))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Sl0(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.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&t){const c=e.XpG();e.Y8G("ngClass",c.state?"chatbox--active":"")}}let Nl0=(()=>{class t{constructor(c,n,l){this.cdr=c,this.el=n,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 n=c.value;if(""===n)return;let l="guest",r=h1.c.BUYER_ROLE;const m=this.localStorage.getObject("login_items");if(m.id){let F=[];r=h1.c.BUYER_ROLE,l=m.username,F=m.logged_as!==m.id?m.organizations.find(J=>J.id==m.logged_as).roles.map(J=>J.name):m.roles.map(I=>I.name),F.includes(h1.c.SELLER_ROLE)&&(r="Provider")}this.messages.push({name:l,message:n,role:r}),this.updateChatText(),c.value="",fetch(h1.c.CHAT_API,{method:"POST",body:JSON.stringify({message:n,role:r}),mode:"cors",headers:{"Content-Type":"application/json"}}).then(F=>F.json()).then(F=>{this.messages.push({name:"DomeGPT",message:F.answer}),this.updateChatText()}).catch(F=>{console.error("Error:",F),this.updateChatText()})}updateChatText(){var c="";this.messages.slice().reverse().forEach(function(l,r){c+="DomeGPT"===l.name?'
    '+l.message+"
    ":'
    '+l.message+"
    "}),this.chatbox.querySelector(".chatbox__messages").innerHTML=c,this.cdr.detectChanges()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(C2.s))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,Sl0,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&n&&(e.R7$(2),e.vxM(2,l.state?2:-1))},dependencies:[L.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 t})();function El0(t,a){1&t&&e.nrm(0,"app-chatbot-widget",3)}function Dl0(t,a){1&t&&(e.j41(0,"noscript"),e.nrm(1,"img",4),e.k0s())}let Tl0=(()=>{class t{constructor(c,n,l,r,m,z,F,I){this.translate=c,this.localStorage=n,this.eventMessage=l,this.route=r,this.router=m,this.api=z,this.themeService=F,this.refreshApi=I,this.title="BAE Marketplace",this.showPanel=!1,this.providerThemeName=h1.c.providerThemeName,this.isProduction=h1.c.isProduction,this.showHeaderAndFooter=!1,this.translate.addLangs(["en","es"]),this.translate.setDefaultLang("es");let J=this.localStorage.getItem("current_language");J&&null!=J?this.translate.use(J):(this.localStorage.setItem("current_language",""),this.translate.use("es")),this.localStorage.getObject("selected_categories")||this.localStorage.setObject("selected_categories",[])}ngOnInit(){this.themeService.initializeProviderTheme(h1.c.providerThemeName),S2(),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-H2().unix()-4),l),S2())});let n=this.localStorage.getObject("login_items");"{}"===JSON.stringify(n)||n.expire-H2().unix()-4>0&&(this.refreshApi.stopInterval(),this.refreshApi.startInterval(1e3*(n.expire-H2().unix()-4),n),S2()),this.router.events.pipe((0,B6.p)(l=>l instanceof N2.wF)).subscribe(()=>{window.scrollTo({top:0,behavior:"smooth"})})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(s1.c$),e.rXU(C2.s),e.rXU(j2),e.rXU(N2.nX),e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(Hk),e.rXU(wl0))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,El0,1,0,"app-chatbot-widget",3)(7,Dl0,2,0,"noscript")),2&n&&(e.R7$(6),e.vxM(6,"DOME"===l.providerThemeName?6:-1),e.R7$(),e.vxM(7,l.isProduction?7:-1))},dependencies:[Mw1,Pk1,N2.n3,Nl0,O4.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 t})();class cf{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_ORDERING=h1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=h1.c.ORDER_LIMIT}constructor(a){this.localStorage=a}intercept(a,c){let n=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(n)&&n.expire-H2().unix()-4>0){if(!this.shouldAttachAuthHeaders(a.url))return c.handle(a);if(n.logged_as!=n.id){let l=a.clone({setHeaders:{Authorization:"Bearer "+n.token,"X-Organization":n.logged_as}});return a.url.startsWith(`${cf.BASE_URL}${cf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+n.token,"X-Organization":n.logged_as,"X-Terms-Accepted":"true"}})),c.handle(l)}{let l=a.clone({setHeaders:{Authorization:"Bearer "+n.token}});return a.url.startsWith(`${cf.BASE_URL}${cf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+n.token,"X-Terms-Accepted":"true"}})),c.handle(l)}}return console.log("not logged"),c.handle(a)}shouldAttachAuthHeaders(a){return function Rl0(t,a){return!nE1(t)||a.filter(nE1).some(c=>function Al0(t,a){try{const c=new URL(t),n=new URL(a),l=n.pathname.replace(/\/$/,"");return c.origin===n.origin&&(""===l||c.pathname===l||c.pathname.startsWith(`${l}/`))}catch{return!1}}(t,c))}(a,[h1.c.BASE_URL,this.quoteApiBaseUrl()])}quoteApiBaseUrl(){const a=h1.c.quoteApi;return a.startsWith("http://")||a.startsWith("https://")?a:`${h1.c.BASE_URL}${a}`}static{this.\u0275fac=function(c){return new(c||cf)(e.KVO(C2.s))}}static{this.\u0275prov=e.jDH({token:cf,factory:cf.\u0275fac})}}function nE1(t){return/^https?:\/\//i.test(t)}const Il0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Pl0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),lE1=(t,a)=>({"break-all":t,"break-words":a});function $l0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function jl0(t,a){if(1&t&&(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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_CATALOG._description"))}}function Ol0(t,a){1&t&&(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 Bl0(t,a){if(1&t&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Vl0(t,a){if(1&t&&(e.j41(0,"span",46),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Ul0(t,a){if(1&t&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Hl0(t,a){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Gl0(t,a){if(1&t&&(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&t){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,lE1,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 Yl0(t,a){if(1&t&&(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,Bl0,2,1,"span",45)(11,Vl0,2,1)(12,Ul0,2,1)(13,Hl0,2,1),e.k0s(),e.DNE(14,Gl0,5,8)),2&t){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,lE1,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 ql0(t,a){if(1&t&&(e.j41(0,"div",35),e.DNE(1,Ol0,6,0,"div",36)(2,Yl0,15,13),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Xl0(t,a){if(1&t){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&t){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 Wl0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Jl0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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),e6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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:h1.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(n0.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-catalog"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,$l0,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,jl0,9,8,"form",18)(29,ql0,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,Xl0,3,5,"button",26),e.k0s()()()()(),e.DNE(42,Wl0,1,1,"error-message",27)),2&n&&(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,Il0,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,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(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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,T0,ge,Q0,s1.D9]})}}return t})();const Ql0=(t,a)=>a.id,Zl0=(t,a)=>({"break-all":t,"break-words":a});function Kl0(t,a){1&t&&(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 es0(t,a){if(1&t&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function cs0(t,a){if(1&t&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ts0(t,a){if(1&t&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ns0(t,a){if(1&t&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ls0(t,a){if(1&t){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,es0,2,1,"span",45)(5,cs0,2,1)(6,ts0,2,1)(7,ns0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(12,"svg",49),e.nrm(13,"path",50),e.k0s()()()()}if(2&t){let c;const n=a.$implicit,l=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,Zl0,l.hasLongWord(n.name,20),!l.hasLongWord(n.name,20))),e.R7$(),e.SpI(" ",n.name," "),e.R7$(2),e.vxM(4,"Active"==n.lifecycleStatus?4:"Launched"==n.lifecycleStatus?5:"Retired"==n.lifecycleStatus?6:"Obsolete"==n.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",null==n.relatedParty||null==(c=n.relatedParty.at(0))?null:c.role," ")}}function ss0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function as0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function os0(t,a){if(1&t&&e.DNE(0,as0,6,3,"div",57),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function is0(t,a){1&t&&(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 rs0(t,a){if(1&t&&(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,ls0,14,7,"tr",41,Ql0,!1,ss0,7,3,"div",42),e.k0s()()(),e.DNE(21,os0,1,1)(22,is0,6,0),e.k0s()),2&t){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 ds0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.api=n,this.cdr=l,this.localStorage=r,this.eventMessage=m,this.paginationService=z,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.searchField=new p.MJ,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initCatalogs()})}ngOnInit(){this.initCatalogs()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getCatalogs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))}),S2()}ngAfterViewInit(){S2()}getCatalogs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:n.filter,filters:n.status,partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.page_check=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getCatalogs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&(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,Kl0,6,0,"div",29)(52,rs0,23,14),e.k0s()),2&n&&(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:[L.YU,X2.aY,s1.D9]})}}return t})();const fs0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),us0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),sE1=(t,a)=>({"break-all":t,"break-words":a});function ms0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function ps0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._active")," "))}function hs0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._active")," "))}function gs0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._launched")," "))}function _s0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._launched")," "))}function Ls0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._retired")," "))}function Cs0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._retired")," "))}function zs0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._obsolete")," "))}function Ms0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._obsolete")," "))}function xs0(t,a){if(1&t&&(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,ps0,6,3,"li",36)(11,hs0,4,3)(12,gs0,6,3,"li",37)(13,_s0,4,3)(14,Ls0,6,3,"li",38)(15,Cs0,4,3)(16,zs0,6,3,"li",39)(17,Ms0,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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.catStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==n.catStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==n.catStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==n.catStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_CATALOG._description"))}}function bs0(t,a){1&t&&(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 ys0(t,a){if(1&t&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function Fs0(t,a){if(1&t&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function vs0(t,a){if(1&t&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function ks0(t,a){if(1&t&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function ws0(t,a){if(1&t&&(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&t){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,sE1,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 Ss0(t,a){if(1&t&&(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,ys0,2,1,"span",62)(11,Fs0,2,1)(12,vs0,2,1)(13,ks0,2,1),e.k0s(),e.DNE(14,ws0,5,8)),2&t){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,sE1,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 Ns0(t,a){if(1&t&&(e.j41(0,"div",53),e.DNE(1,bs0,6,0,"div",54)(2,Ss0,15,13),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Es0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Ds0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.api=z,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),e6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(n0.F))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-catalog"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,ms0,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,xs0,22,15,"form",18)(29,Ns0,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,Es0,1,1,"error-message",27)),2&n&&(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,fs0,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,us0,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:[L.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,T0,ge,Q0,s1.D9]})}}return t})();var $E=v(4261);class c6{static{this.BASE_URL=h1.c.BASE_URL}static{this.API_PRODUCT_CATALOG=h1.c.PRODUCT_CATALOG}static{this.API_PRODUCT_SPEC=h1.c.PRODUCT_SPEC}static{this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getProdSpecByUser(a,c,n,l,r){let m=`${c6.BASE_URL}${c6.API_PRODUCT_CATALOG}${c6.API_PRODUCT_SPEC}?limit=${c6.PROD_SPEC_LIMIT}&offset=${a}&relatedParty.id=${n}`;null!=l&&(m=m+"&sort="+l),null!=r&&(m=m+"&isBundle="+r);let z="";if(c&&c.length>0){for(let F=0;F0){for(let z=0;z0){for(let z=0;z{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=h1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=h1.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=$E.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=$E.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,P1.Q)(this.destroy$)).subscribe(N1=>{if("CategoryAdded"===N1.type&&this.addCategory(N1.value),"ChangedSession"===N1.type&&this.initPartyInfo(),"SavePricePlan"===N1.type&&(this.createdPrices.push(N1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===N1.type){let J1=N1.value;-1!=this.createdPrices.findIndex(F2=>F2.id===J1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((F2,U2)=>U2==U2?J1:F2)),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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,S2()}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,S2()}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,S2()}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 n=this.createdPrices.findIndex(l=>l.id===c.id);-1!==n&&this.createdPrices.splice(n,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(n=>n===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 n=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==n&&this.createdSLAs.splice(n,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 n=0;nr.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let r=0;r{if(n=l,c.children=n,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=n.length)for(let r=0;rz.id==n.id)){let z=r.findIndex(F=>F.id==n.id);r[z]=n,c[l].children=r}this.saveChildren(r,n)}}}addParent(c){const n=this.unformattedCategories.findIndex(l=>l.id===c);-1!=n&&(0==this.unformattedCategories[n].isRoot?this.addCategory(this.unformattedCategories[n]):this.selectedCategories.push(this.unformattedCategories[n]))}addCategory(c){const n=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==n?(console.log("eliminar"),this.selectedCategories.splice(n,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(r=>r.id===c.parentId);-1==n&&-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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingCatalog=!0),n.paginationService.getItemsPaginated(n.catalogPage,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.catalogPageCheck=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.catalogPage=r.page,n.loadingCatalog=!1,n.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,b1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingProdSpec=!0),n.paginationService.getItemsPaginated(n.prodSpecPage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecPageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.prodSpecPage=r.page,n.loadingProdSpec=!1,n.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,b1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PRODUCT_LIMIT,c,n.bundledOffers,n.nextBundledOffers,{filters:["Active","Launched"],partyId:n.partyId,sort:void 0,isBundle:!1},n.api.getProductOfferByOwner.bind(n.api)).then(r=>{n.bundlePageCheck=r.page_check,n.bundledOffers=r.items,n.nextBundledOffers=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const n=this.offersBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.offersBundle.splice(n,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,b1.A)(function*(){if(c.postedPrices=[],c.createdPrices.length>0)for(let n=0;n{c.showError=!1},3e3)}}try{let J=yield(0,V2.s)(c.api.postOfferingPrice(F));r.push({id:J.id,href:J.id,name:J.name}),console.log("componente"),console.log(J)}catch(J){console.error("There was an error while creating offers price!",J),J.error.error?(console.log(J),c.errorMessage="Error: "+J.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let m={name:c.createdPrices[n].name,isBundle:!0,description:c.createdPrices[n].description,lifecycleStatus:c.createdPrices[n].lifecycleStatus,bundledPopRelationship:r};c.createdPrices[n].prodSpecCharValueUse&&(m.prodSpecCharValueUse=c.createdPrices[n].prodSpecCharValueUse),c.createdPrices[n].unitOfMeasure&&(m.unitOfMeasure=c.createdPrices[n].unitOfMeasure);try{let z=yield(0,V2.s)(c.api.postOfferingPrice(m));console.log("precio"),console.log(z),c.createdPrices[n].id=z.id,n==c.createdPrices.length-1&&c.saveOfferInfo()}catch(z){console.error("There was an error while creating offers price!",z),z.error.error?(console.log(z),c.errorMessage="Error: "+z.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[n].name,isBundle:!1,description:c.createdPrices[n].description,lifecycleStatus:c.createdPrices[n].lifecycleStatus,priceType:c.createdPrices[n].priceType};"custom"!=c.createdPrices[n].priceType&&(l.price={unit:c.createdPrices[n]?.price?.unit,value:c.createdPrices[n]?.price?.value}),"recurring"==c.createdPrices[n].priceType&&(l.recurringChargePeriodType=c.createdPrices[n].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[n].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[n].priceType&&(l.recurringChargePeriodType=c.createdPrices[n].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[n].recurringChargePeriodLength),"usage"==c.createdPrices[n].priceType&&(l.unitOfMeasure=c.createdPrices[n].unitOfMeasure),c.createdPrices[n].prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.createdPrices[n].prodSpecCharValueUse),c.createdPrices[n].unitOfMeasure&&(l.unitOfMeasure=c.createdPrices[n].unitOfMeasure);try{let r=yield(0,V2.s)(c.api.postOfferingPrice(l));console.log("precio"),console.log(r),c.createdPrices[n].id=r.id,n==c.createdPrices.length-1&&c.saveOfferInfo()}catch(r){console.error("There was an error while creating offers price!",r),r.error.error?(console.log(r),c.errorMessage="Error: "+r.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=[],n=[];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,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(c6),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(u6),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-offer"]],viewQuery:function(n,l){if(1&n&&(e.GBs(Ts0,5),e.GBs(Rs0,5),e.GBs(As0,5),e.GBs(Is0,5),e.GBs(Ps0,5),e.GBs($s0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.updatemetric=r.first),e.mGM(r=e.lsd())&&(l.responsemetric=r.first),e.mGM(r=e.lsd())&&(l.delaymetric=r.first),e.mGM(r=e.lsd())&&(l.usageUnit=r.first),e.mGM(r=e.lsd())&&(l.usageUnitAlter=r.first),e.mGM(r=e.lsd())&&(l.usageUnitUpdate=r.first)}},hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,js0,1,1,"error-message",13),e.k0s()),2&n&&(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 t})();const Os0=(t,a)=>a.id,Bs0=(t,a)=>({"break-all":t,"break-words":a});function Vs0(t,a){1&t&&(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 Us0(t,a){if(1&t&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Hs0(t,a){if(1&t&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Gs0(t,a){if(1&t&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ys0(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function qs0(t,a){1&t&&(e.j41(0,"span",45),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function Xs0(t,a){1&t&&(e.j41(0,"span",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function Ws0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,r=e.XpG(2);return e.Njj(r.goToCreateCustom(l))}),e.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",55),e.k0s()()}}function Js0(t,a){if(1&t){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,Us0,2,1,"span",45)(5,Hs0,2,1)(6,Gs0,2,1)(7,Ys0,2,1),e.k0s(),e.j41(8,"td",46),e.DNE(9,qs0,3,3,"span",45)(10,Xs0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",49),e.nrm(17,"path",50),e.k0s()(),e.DNE(18,Ws0,3,0,"button",51),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(9,Bs0,n.hasLongWord(c.name,20),!n.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,n.customMap[c.id]?18:-1)}}function Qs0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_offerings")," "))}function Zs0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Ks0(t,a){if(1&t&&e.DNE(0,Zs0,6,3,"div",59),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function ea0(t,a){1&t&&(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 ca0(t,a){if(1&t&&(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,Js0,19,12,"tr",41,Os0,!1,Qs0,7,3,"div",42),e.k0s()()(),e.DNE(24,Ks0,1,1)(25,ea0,6,0),e.k0s()),2&t){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 ta0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.cdr=l,this.localStorage=r,this.eventMessage=m,this.paginationService=z,this.priceService=F,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.faSparkles=E2.p7g,this.searchField=new p.MJ,this.offers=[],this.nextOffers=[],this.page=0,this.PROD_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initOffers()})}ngOnInit(){this.initOffers()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.offers=[],this.nextOffers=[],this.getOffers(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getOffers(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateOffer(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateOffer(c)}goToCreateCustom(c){this.eventMessage.emitSellerCreateCustomOffer(c)}getOffers(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.PROD_SPEC_LIMIT,c,n.offers,n.nextOffers,{filters:n.status,partyId:n.partyId,sort:n.sort,isBundle:n.isBundle},n.api.getProductOfferByOwner.bind(n.api)).then(function(){var r=(0,b1.A)(function*(m){n.page_check=m.page_check,n.offers=m.items,n.nextOffers=m.nextItems,n.page=m.page,n.loading=!1,n.loading_more=!1,n.customMap={};for(const z of n.offers)n.customMap[z.id]=yield n.priceService.isCustomOffering(z)});return function(m){return r.apply(this,arguments)}}())})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getOffers(!0)})()}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(E6),e.rXU(pe))}}static{this.\u0275cmp=e.VBU({type:t,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"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&(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,Vs0,6,0,"div",29)(52,ca0,26,17),e.k0s()),2&n&&(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:[L.YU,X2.aY,L.vh,s1.D9]})}}return t})();const na0=["updatemetric"],la0=["responsemetric"],sa0=["delaymetric"],aa0=["usageUnit"],oa0=["usageUnitUpdate"],ia0=["usageUnitAlter"];function ra0(t,a){if(1&t&&e.nrm(0,"error-message",14),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let oE1=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=h1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=h1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=h1.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=[$E.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=$E.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,P1.Q)(this.destroy$)).subscribe(N1=>{if("CategoryAdded"===N1.type&&this.addCategory(N1.value),"ChangedSession"===N1.type&&this.initPartyInfo(),"SavePricePlan"===N1.type&&(this.createdPrices.push(N1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===N1.type){let J1=N1.value;-1!=this.createdPrices.findIndex(F2=>F2.id===J1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((F2,U2)=>U2==U2?J1:F2)),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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}populateOfferInfo(){var c=this;return(0,b1.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 n=(0,b1.A)(function*(l){c.selectedProdSpec=l});return function(l){return n.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(n=>{"procurement"==n.name&&(c.procurementMode=n.description)})),c.offer.productOfferingPrice)for(let n=0;n{z.push(I)});console.log(z),m.bundledPopRelationship=z,console.log(m)}r.recurringChargePeriodType&&console.log("recurring"),r.unitOfMeasure&&(console.log("usage"),m.unitOfMeasure=r.unitOfMeasure),c.createdPrices.push(r),c.oldPrices.push(r)});return function(r){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,S2()}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 n=this.createdPrices.findIndex(l=>l.id===c.id);-1!==n&&this.createdPrices.splice(n,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(n=>n===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 n=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==n&&this.createdSLAs.splice(n,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 n=0;nr.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let r=0;r{if(n=l,c.children=n,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=n.length)for(let r=0;rz.id==n.id)){let z=r.findIndex(F=>F.id==n.id);r[z]=n,c[l].children=r}this.saveChildren(r,n)}}}addParent(c){const n=this.unformattedCategories.findIndex(l=>l.id===c);-1!=n&&(0==this.unformattedCategories[n].isRoot?this.addCategory(this.unformattedCategories[n]):this.selectedCategories.push(this.unformattedCategories[n]))}addCategory(c){const n=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==n?(console.log("eliminar"),this.selectedCategories.splice(n,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(r=>r.id===c.parentId);-1==n&&-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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingCatalog=!0),n.paginationService.getItemsPaginated(n.catalogPage,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.catalogPageCheck=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.catalogPage=r.page,n.loadingCatalog=!1,n.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,b1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingProdSpec=!0),n.paginationService.getItemsPaginated(n.prodSpecPage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecPageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.prodSpecPage=r.page,n.loadingProdSpec=!1,n.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,b1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PRODUCT_LIMIT,c,n.bundledOffers,n.nextBundledOffers,{filters:["Active","Launched"],partyId:n.partyId,sort:void 0,isBundle:!1},n.api.getProductOfferByOwner.bind(n.api)).then(r=>{n.bundlePageCheck=r.page_check,n.bundledOffers=r.items,n.nextBundledOffers=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const n=this.offersBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.offersBundle.splice(n,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,b1.A)(function*(){if(c.createdPrices.length>0){let n=c.createdPrices.length-1,l=!1,r=!1;for(let m=0;mF.id===c.createdPrices[m].id);-1==z?(l=!0,r=!0):c.oldPrices[z]!=c.createdPrices[m]&&(n=m,l=!1,r=!0)}if(0==r)c.saveOfferInfo();else{console.log(c.oldPrices),console.log(c.createdPrices);for(let m=0;mF.id===c.createdPrices[m].id);if(-1==z)if(console.log("precio nuevo"),1==c.createdPrices[m].isBundle){let F=c.createdPrices[m].bundledPopRelationship,I=[];if(null!=F)for(let d1=0;d1{c.showError=!1},3e3)}}try{let J1=yield(0,V2.s)(c.api.postOfferingPrice(i1));I.push({id:J1.id,href:J1.id,name:J1.name}),console.log("componente"),console.log(J1)}catch(J1){console.error("There was an error while creating offers price!",J1),J1.error.error?(console.log(J1),c.errorMessage="Error: "+J1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let J={name:c.createdPrices[m].name,isBundle:!0,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus,bundledPopRelationship:I};c.createdPrices[m].prodSpecCharValueUse&&(J.prodSpecCharValueUse=c.createdPrices[m].prodSpecCharValueUse),c.createdPrices[m].unitOfMeasure&&(J.unitOfMeasure=c.createdPrices[m].unitOfMeasure);try{let d1=yield(0,V2.s)(c.api.postOfferingPrice(J));console.log("precio"),console.log(d1),c.createdPrices[m].id=d1.id,m==c.createdPrices.length-1&&c.saveOfferInfo()}catch(d1){console.error("There was an error while creating offers price!",d1),d1.error.error?(console.log(d1),c.errorMessage="Error: "+d1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let F={name:c.createdPrices[m].name,isBundle:!1,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus,priceType:c.createdPrices[m].priceType};"custom"!=c.createdPrices[m].priceType&&(F.price={unit:c.createdPrices[m]?.price?.unit,value:c.createdPrices[m]?.price?.value}),"recurring"==c.createdPrices[m].priceType&&(F.recurringChargePeriodType=c.createdPrices[m].recurringChargePeriodType,F.recurringChargePeriodLength=c.createdPrices[m].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[m].priceType&&(F.recurringChargePeriodType=c.createdPrices[m].recurringChargePeriodType,F.recurringChargePeriodLength=c.createdPrices[m].recurringChargePeriodLength),"usage"==c.createdPrices[m].priceType&&(F.unitOfMeasure=c.createdPrices[m].unitOfMeasure),c.createdPrices[m].prodSpecCharValueUse&&(F.prodSpecCharValueUse=c.createdPrices[m].prodSpecCharValueUse),c.createdPrices[m].unitOfMeasure&&(F.unitOfMeasure=c.createdPrices[m].unitOfMeasure);try{let I=yield(0,V2.s)(c.api.postOfferingPrice(F));console.log("precio"),console.log(I),c.createdPrices[m].id=I.id,m==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 if(console.log("precio existente -update"),c.oldPrices[z]!=c.createdPrices[m])if(1==c.createdPrices[m].isBundle){let F=c.createdPrices[m].bundledPopRelationship,I=[];if(null!=F)for(let i1=0;i1J1.id===F?.[i1]?.id);if(c.oldPrices[z].bundledPopRelationship[N1].id.startsWith("urn:ngsi")||(N1=-1),-1!=N1){let J1={id:F[i1].id,name:F[i1].name,description:F[i1].description,lifecycleStatus:F[i1].lifecycleStatus,priceType:F[i1].priceType,price:{unit:F[i1]?.price?.unit,value:F[i1]?.price?.value}};"recurring"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"recurring-prepaid"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"usage"==F[i1].priceType&&(J1.unitOfMeasure=F[i1].unitOfMeasure),F[i1].prodSpecCharValueUse&&(J1.prodSpecCharValueUse=F[i1].prodSpecCharValueUse),F[i1].unitOfMeasure&&(J1.unitOfMeasure=F[i1].unitOfMeasure);let u2=F[i1].popRelationship,F2=c.oldPrices[z].bundledPopRelationship[N1].popRelationship;if(null!=u2)if(null!=F2&&F2!=u2){let U2={id:u2[0]?.id,name:u2[0]?.name,priceType:u2[0]?.priceType,validFor:u2[0]?.validFor};u2[0].percentage?U2.percentage=u2[0]?.percentage:U2.price=u2[0]?.price;try{let R0=U2.id;delete U2.id,yield(0,V2.s)(c.api.updateOfferingPrice(U2,R0))}catch(R0){console.error("There was an error while creating offers price!",R0),R0.error.error?(console.log(R0),c.errorMessage="Error: "+R0.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let U2={name:u2[0]?.name,priceType:u2[0]?.priceType,validFor:u2[0]?.validFor};u2[0].percentage?U2.percentage=u2[0]?.percentage:U2.price=u2[0]?.price;try{let R0=yield(0,V2.s)(c.api.postOfferingPrice(U2));console.log("price Alteration"),console.log(R0),J1.popRelationship=[{id:R0.id,href:R0.id,name:R0.name}]}catch(R0){console.error("There was an error while creating offers price!",R0),R0.error.error?(console.log(R0),c.errorMessage="Error: "+R0.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(J1),console.log("id"),console.log(J1.id);let U2=J1.id;delete J1.id,yield(0,V2.s)(c.api.updateOfferingPrice(J1,U2))}catch(U2){console.error("There was an error while creating offers price!",U2),U2.error.error?(console.log(U2),c.errorMessage="Error: "+U2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let J1={name:F[i1].name,description:F[i1].description,lifecycleStatus:F[i1].lifecycleStatus,priceType:F[i1].priceType,price:{unit:F[i1]?.price?.unit,value:F[i1]?.price?.value}};"recurring"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"recurring-prepaid"==F[i1].priceType&&(J1.recurringChargePeriodType=F[i1].recurringChargePeriodType,J1.recurringChargePeriodLength=F[i1].recurringChargePeriodLength),"usage"==F[i1].priceType&&(J1.unitOfMeasure=F[i1].unitOfMeasure),F[i1].prodSpecCharValueUse&&(J1.prodSpecCharValueUse=F[i1].prodSpecCharValueUse),F[i1].unitOfMeasure&&(J1.unitOfMeasure=F[i1].unitOfMeasure);let u2=F[i1].popRelationship;if(null!=u2){let F2={name:u2[0]?.name,priceType:u2[0]?.priceType,validFor:u2[0]?.validFor};u2[0].percentage?F2.percentage=u2[0]?.percentage:F2.price=u2[0]?.price;try{let U2=yield(0,V2.s)(c.api.postOfferingPrice(F2));console.log("price Alteration"),console.log(U2),J1.popRelationship=[{id:U2.id,href:U2.id,name:U2.name}]}catch(U2){console.error("There was an error while creating offers price!",U2),U2.error.error?(console.log(U2),c.errorMessage="Error: "+U2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}try{let F2=yield(0,V2.s)(c.api.postOfferingPrice(J1));I.push({id:F2.id,href:F2.id,name:F2.name}),console.log("componente"),console.log(F2)}catch(F2){console.error("There was an error while creating offers price!",F2),F2.error.error?(console.log(F2),c.errorMessage="Error: "+F2.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[m]);let J=c.createdPrices[m].bundledPopRelationship?.map(({id:i1,href:N1,name:J1})=>({id:i1,href:N1,name:J1})),d1={id:c.createdPrices[m].id,name:c.createdPrices[m].name,isBundle:!0,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus,bundledPopRelationship:J?.concat(I).filter(i1=>i1.id&&i1.id.startsWith("urn:ngsi"))};try{let i1=d1.id;delete d1.id;let N1=yield(0,V2.s)(c.api.updateOfferingPrice(d1,i1));console.log("precio"),console.log(N1),c.createdPrices[m].id=N1.id,0==l&&m==n&&c.saveOfferInfo()}catch(i1){console.error("There was an error while creating offers price!",i1),i1.error.error?(console.log(i1),c.errorMessage="Error: "+i1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let F={id:c.createdPrices[m].id,name:c.createdPrices[m].name,isBundle:!0,description:c.createdPrices[m].description,lifecycleStatus:c.createdPrices[m].lifecycleStatus};try{let I=F.id;delete F.id;let J=yield(0,V2.s)(c.api.updateOfferingPrice(F,I));console.log("precio"),console.log(J),c.createdPrices[m].id=J.id,0==l&&m==n&&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.offerToUpdate)})()}saveOfferInfo(){let c=[],n=[];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,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(c6),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(u6),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-offer"]],viewQuery:function(n,l){if(1&n&&(e.GBs(na0,5),e.GBs(la0,5),e.GBs(sa0,5),e.GBs(aa0,5),e.GBs(oa0,5),e.GBs(ia0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.updatemetric=r.first),e.mGM(r=e.lsd())&&(l.responsemetric=r.first),e.mGM(r=e.lsd())&&(l.delaymetric=r.first),e.mGM(r=e.lsd())&&(l.usageUnit=r.first),e.mGM(r=e.lsd())&&(l.usageUnitUpdate=r.first),e.mGM(r=e.lsd())&&(l.usageUnitAlter=r.first)}},hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,ra0,1,1,"error-message",14),e.k0s()),2&n&&(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 t})();const da0=["attachName"],fa0=["imgURL"],ua0=["certificationName"],mG=(t,a)=>a.id,iE1=(t,a)=>a.name,ma0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),pa0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),m8=(t,a)=>({"break-all":t,"break-words":a}),pG=()=>({standalone:!0});function ha0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",33),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",34),e.EFF(2),e.k0s(),e.j41(3,"span",35),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function ga0(t,a){if(1&t&&(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.j41(19,"label",44),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"app-markdown-textarea",45),e.k0s()),2&t){let c,n,l;const r=e.XpG();e.Y8G("formGroup",r.generalForm),e.R7$(3),e.JRh(e.bMT(4,9,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=r.generalForm.get("name"))?null:c.invalid)&&""!=r.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(8,11,"CREATE_PROD_SPEC._product_version")),e.R7$(2),e.Y8G("ngClass",1==(null==(n=r.generalForm.get("version"))?null:n.invalid)?"border-red-600":"border-gray-300"),e.R7$(3),e.JRh(e.bMT(13,13,"CREATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=r.generalForm.get("brand"))?null:l.invalid)&&""!=r.generalForm.value.brand?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(17,15,"CREATE_PROD_SPEC._id_number")),e.R7$(4),e.JRh(e.bMT(21,17,"CREATE_PROD_SPEC._product_description"))}}function _a0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function La0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function Ca0(t,a){if(1&t&&(e.j41(0,"span",68),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function za0(t,a){if(1&t&&(e.j41(0,"span",72),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ma0(t,a){if(1&t&&(e.j41(0,"span",73),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function xa0(t,a){if(1&t&&(e.j41(0,"span",74),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ba0(t,a){1&t&&(e.j41(0,"span",68),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._simple")))}function ya0(t,a){1&t&&(e.j41(0,"span",72),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._bundle")))}function Fa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",67),e.DNE(4,Ca0,2,1,"span",68)(5,za0,2,1)(6,Ma0,2,1)(7,xa0,2,1),e.k0s(),e.j41(8,"td",67),e.DNE(9,ba0,3,3,"span",68)(10,ya0,3,3),e.k0s(),e.j41(11,"td",69),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",70)(15,"input",71),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.addProdToBundle(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(),e.Y8G("ngClass",e.l_i(9,m8,n.hasLongWord(c.name,20),!n.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",n.isProdInBundle(c))}}function va0(t,a){if(1&t&&(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",63),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",64),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",62),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,Fa0,16,12,"tr",65,mG),e.k0s()()()),2&t){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 ka0(t,a){if(1&t&&e.DNE(0,La0,7,3,"div",55)(1,va0,22,15),2&t){const c=e.XpG(3);e.vxM(0,0==c.prodSpecs.length?0:1)}}function wa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",76),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Sa0(t,a){if(1&t&&e.DNE(0,wa0,6,3,"div",75),2&t){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function Na0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Ea0(t,a){if(1&t&&e.DNE(0,_a0,6,0,"div",50)(1,ka0,2,1)(2,Sa0,1,1)(3,Na0,6,0),2&t){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function Da0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",46)(1,"label",40),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",47)(5,"input",48),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleBundleCheck())}),e.k0s(),e.nrm(6,"div",49),e.k0s()(),e.DNE(7,Ea0,4,2)}if(2&t){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 Ta0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",94),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeSelfAtt())}),e.qSk(),e.j41(1,"svg",85),e.nrm(2,"path",95),e.k0s()()}}function Ra0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li")(1,"div",83)(2,"label",101),e.EFF(3),e.k0s(),e.j41(4,"button",102),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addISO(l))}),e.qSk(),e.j41(5,"svg",103),e.nrm(6,"path",78),e.k0s()()()()}if(2&t){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 Aa0(t,a){if(1&t&&(e.j41(0,"div",99)(1,"ul",100),e.Z7z(2,Ra0,7,2,"li",null,e.fX1),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function Ia0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",96),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",97),e.nrm(4,"path",98),e.k0s()(),e.DNE(5,Aa0,4,0,"div",99)}if(2&t){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 Pa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s(),e.j41(5,"td",105)(6,"button",106),e.bIt("click",function(l){const r=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(7,"svg",85),e.nrm(8,"path",86),e.k0s()(),e.joV(),e.j41(9,"button",107),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(2);return e.Njj(r.removeISO(l))}),e.qSk(),e.j41(10,"svg",85),e.nrm(11,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function $a0(t,a){1&t&&(e.j41(0,"div",89)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_comp_profile")," "))}function ja0(t,a){1&t&&(e.j41(0,"div",108),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",109),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function Oa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s(),e.j41(5,"td",105)(6,"button",94),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.removeCert(l))}),e.qSk(),e.j41(7,"svg",85),e.nrm(8,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Ba0(t,a){if(1&t&&(e.j41(0,"h3",80),e.EFF(1," You added the following additional certifications: "),e.k0s(),e.j41(2,"div",88)(3,"table",60)(4,"thead",61)(5,"tr")(6,"th",62),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",62),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",62),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"tbody"),e.Z7z(16,Oa0,9,6,"tr",65,iE1),e.k0s()()()),2&t){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 Va0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",110),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",111),e.nrm(4,"path",78),e.k0s()()()}}function Ua0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",124),e.qSk(),e.j41(1,"svg",125),e.nrm(2,"path",126),e.k0s(),e.joV(),e.j41(3,"div",127)(4,"p",128),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",129),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&t&&(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 Ha0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",122),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,Ua0,10,6,"ng-template",123),e.k0s()}}function Ga0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",130)(1,"span",54),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",131),e.EFF(4),e.k0s(),e.j41(5,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAdditionalCert(!0))}),e.qSk(),e.j41(6,"svg",133),e.nrm(7,"path",95),e.k0s()()()}if(2&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function Ya0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",112)(1,"h3",80),e.EFF(2," Add an additional certification: "),e.k0s(),e.j41(3,"div",113)(4,"div",114)(5,"label",115),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",116,0),e.k0s(),e.DNE(10,Ha0,2,0,"ngx-file-drop",117)(11,Ga0,8,1),e.k0s(),e.j41(12,"div",118)(13,"button",119),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",111),e.nrm(16,"path",120),e.k0s()(),e.joV(),e.j41(17,"button",121),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&t){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 qa0(t,a){if(1&t){const c=e.RV6();e.j41(0,"h3",80),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",81)(4,"p",82),e.EFF(5),e.k0s(),e.j41(6,"div",83)(7,"button",84),e.bIt("click",function(l){return e.eBV(c),e.XpG().toggleUploadSelfAtt(),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(8,"svg",85),e.nrm(9,"path",86),e.k0s()(),e.DNE(10,Ta0,3,0,"button",87),e.k0s()(),e.DNE(11,Ia0,6,4),e.joV(),e.j41(12,"div",88)(13,"table",60)(14,"thead",61)(15,"tr")(16,"th",62),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"th",62),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"th",62),e.EFF(23),e.nI1(24,"translate"),e.k0s()()(),e.j41(25,"tbody"),e.Z7z(26,Pa0,12,6,"tr",65,iE1,!1,$a0,9,3,"div",89),e.k0s()()(),e.j41(29,"div",90)(30,"div",91),e.DNE(31,ja0,4,3,"div",92),e.k0s()(),e.DNE(32,Ba0,18,9)(33,Va0,5,0,"div",93)(34,Ya0,19,8)}if(2&t){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 Xa0(t,a){1&t&&(e.j41(0,"div",55)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_chars")," "))}function Wa0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value),", ")}}function Ja0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value)," ")}}function Qa0(t,a){if(1&t&&e.DNE(0,Wa0,1,1)(1,Ja0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Za0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ka0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function eo0(t,a){if(1&t&&e.DNE(0,Za0,4,2)(1,Ka0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function co0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function to0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function no0(t,a){if(1&t&&e.DNE(0,co0,1,1)(1,to0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function lo0(t,a){if(1&t&&e.DNE(0,Qa0,2,1)(1,eo0,2,1)(2,no0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function so0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ao0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function oo0(t,a){if(1&t&&e.DNE(0,so0,4,3)(1,ao0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function io0(t,a){if(1&t&&e.DNE(0,lo0,3,1)(1,oo0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ro0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",134),e.EFF(2),e.k0s(),e.j41(3,"td",135),e.EFF(4),e.k0s(),e.j41(5,"td",104),e.Z7z(6,io0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",70)(9,"button",136),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",133),e.nrm(11,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function do0(t,a){if(1&t&&(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",64),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,ro0,12,10,"tr",65,mG),e.k0s()()()),2&t){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 fo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",137),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",111),e.nrm(5,"path",78),e.k0s()()()}if(2&t){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 uo0(t,a){1&t&&(e.j41(0,"option",148),e.EFF(1,"Endpoint URL"),e.k0s(),e.j41(2,"option",149),e.EFF(3,"Upstream Address"),e.k0s(),e.j41(4,"option",150),e.EFF(5,"Endpoint Description"),e.k0s(),e.j41(6,"option",151),e.EFF(7,"Target Specification"),e.k0s(),e.j41(8,"option",152),e.EFF(9,"Service Configuration"),e.k0s(),e.j41(10,"option",153),e.EFF(11,"Credentials Configuration"),e.k0s(),e.j41(12,"option",154),e.EFF(13,"Authorization Policy"),e.k0s())}function mo0(t,a){1&t&&(e.j41(0,"option",155),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",156),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",157),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",158),e.EFF(7,"Boolean"),e.k0s())}function po0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div")(1,"label",140),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",162),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.optionalDftTrue,l)||(r.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",163),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",163),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&t){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,pG)),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 ho0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",159)(1,"label",160),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",47)(5,"input",161),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.isOptional,l)||(r.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",49),e.k0s()(),e.DNE(7,po0,11,14,"div")}if(2&t){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,pG)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function go0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",166)(1,"div",167)(2,"input",168),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.j41(3,"label",169),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",170),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",133),e.nrm(10,"path",95),e.k0s()()()}if(2&t){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 _o0(t,a){if(1&t&&e.Z7z(0,go0,11,4,"div",166,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Lo0(t,a){if(1&t&&(e.j41(0,"label",172),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Co0(t,a){if(1&t&&(e.j41(0,"label",172),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(5);e.R7$(),e.JRh(n.getValuePreview(c.value))}}function zo0(t,a){if(1&t&&(e.j41(0,"label",172),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function Mo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",166)(1,"div",167)(2,"input",171),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,Lo0,5,2,"label",172)(4,Co0,2,1)(5,zo0,2,1),e.k0s(),e.j41(6,"button",170),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(7,"svg",133),e.nrm(8,"path",95),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===n.charTypeSelected?3:n.isJsonCharacteristicType(n.charTypeSelected)?4:5)}}function xo0(t,a){if(1&t&&e.Z7z(0,Mo0,9,2,"div",166,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function bo0(t,a){if(1&t&&(e.j41(0,"label",164),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",165),e.DNE(3,_o0,2,0)(4,xo0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function yo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",146)(1,"input",173),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",174),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",175),e.nrm(4,"path",78),e.k0s()()()}if(2&t){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 Fo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",176)(1,"div",177)(2,"span",178),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",179),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",177)(7,"span",178),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",180),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",181),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",175),e.nrm(13,"path",78),e.k0s()()()}if(2&t){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 vo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",159)(1,"label",182),e.EFF(2,"Default value"),e.k0s(),e.j41(3,"label",47)(4,"input",183),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.booleanDefaultTrue,l)||(r.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",49),e.k0s()()}if(2&t){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,pG))}}function ko0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",176)(1,"div",177)(2,"span",178),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",184),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",177)(7,"span",178),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",185),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.toValue,l)||(r.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",177)(12,"span",178),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",186),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",187),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",175),e.nrm(18,"path",78),e.k0s()()()}if(2&t){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 wo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",188)(1,"label",189),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",190),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.jsonValue,l)||(r.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",191),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",192),e.nrm(7,"path",78),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&t){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 So0(t,a){if(1&t&&e.DNE(0,wo0,10,9,"div",188),2&t){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function No0(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",138)(1,"div")(2,"label",36),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",139),e.k0s(),e.j41(6,"div")(7,"label",140),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",141),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.charTypeSelected,l)||(r.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onTypeChange(l))}),e.DNE(11,uo0,14,0)(12,mo0,8,0),e.k0s()(),e.j41(13,"div",142)(14,"label",143),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"textarea",144),e.k0s(),e.DNE(18,ho0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,bo0,5,1),e.j41(21,"label",145),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,yo0,5,3,"div",146)(25,Fo0,14,10)(26,vo0,6,3)(27,ko0,19,14)(28,So0,1,1),e.j41(29,"div",118)(30,"button",147),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",111),e.nrm(34,"path",120),e.k0s()()()()}if(2&t){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,pG)),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 Eo0(t,a){if(1&t&&e.DNE(0,Xa0,9,3,"div",55)(1,do0,19,12)(2,fo0,6,3,"div",93)(3,No0,35,26),2&t){const c=e.XpG();e.vxM(0,0===c.getFilteredCharacteristicsForCurrentStep().length?0:1),e.R7$(2),e.vxM(2,c.showCreateChar?3:2)}}function Do0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function To0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function Ro0(t,a){if(1&t&&(e.j41(0,"span",68),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ao0(t,a){if(1&t&&(e.j41(0,"span",72),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Io0(t,a){if(1&t&&(e.j41(0,"span",73),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Po0(t,a){if(1&t&&(e.j41(0,"span",74),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function $o0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",67),e.DNE(4,Ro0,2,1,"span",68)(5,Ao0,2,1)(6,Io0,2,1)(7,Po0,2,1),e.k0s(),e.j41(8,"td",69),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",70)(12,"input",71),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addResToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,n.hasLongWord(c.name,20),!n.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",n.isResSelected(c))}}function jo0(t,a){if(1&t&&(e.j41(0,"div",59)(1,"table",193)(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",64),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,$o0,13,11,"tr",65,mG),e.k0s()()()),2&t){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 Oo0(t,a){if(1&t&&e.DNE(0,To0,7,3,"div",55)(1,jo0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function Bo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",194),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Vo0(t,a){if(1&t&&e.DNE(0,Bo0,6,3,"div",75),2&t){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function Uo0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Ho0(t,a){if(1&t&&e.DNE(0,Do0,6,0,"div",50)(1,Oo0,2,1)(2,Vo0,1,1)(3,Uo0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function Go0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Yo0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function qo0(t,a){if(1&t&&(e.j41(0,"span",68),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Xo0(t,a){if(1&t&&(e.j41(0,"span",72),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Wo0(t,a){if(1&t&&(e.j41(0,"span",73),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Jo0(t,a){if(1&t&&(e.j41(0,"span",74),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Qo0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",67),e.DNE(4,qo0,2,1,"span",68)(5,Xo0,2,1)(6,Wo0,2,1)(7,Jo0,2,1),e.k0s(),e.j41(8,"td",69),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",70)(12,"input",71),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addServToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,n.hasLongWord(c.name,20),!n.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",n.isServSelected(c))}}function Zo0(t,a){if(1&t&&(e.j41(0,"div",59)(1,"table",195)(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",64),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,Qo0,13,11,"tr",65,mG),e.k0s()()()),2&t){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 Ko0(t,a){if(1&t&&e.DNE(0,Yo0,7,3,"div",55)(1,Zo0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function ei0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",76),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function ci0(t,a){if(1&t&&e.DNE(0,ei0,6,3,"div",75),2&t){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function ti0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function ni0(t,a){if(1&t&&e.DNE(0,Go0,6,0,"div",50)(1,Ko0,2,1)(2,ci0,1,1)(3,ti0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function li0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",207),e.nrm(1,"img",209),e.j41(2,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",133),e.nrm(4,"path",95),e.k0s()()()}if(2&t){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function si0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",124),e.qSk(),e.j41(1,"svg",125),e.nrm(2,"path",126),e.k0s(),e.joV(),e.j41(3,"div",127)(4,"p",128),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",219),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&t&&(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 ai0(t,a){1&t&&(e.j41(0,"div",220),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",109),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_name")," "))}function oi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",210)(1,"ngx-file-drop",211),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileLeave(l))}),e.DNE(2,si0,10,6,"ng-template",123),e.k0s()(),e.j41(3,"label",212),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",213),e.DNE(7,ai0,4,3,"div",214),e.j41(8,"div",215)(9,"input",216,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",217),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",133),e.nrm(13,"path",218),e.k0s()()()()}if(2&t){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 ii0(t,a){1&t&&(e.j41(0,"div",208)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_att")," "))}function ri0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s(),e.j41(5,"td",70)(6,"button",136),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.removeAtt(l))}),e.qSk(),e.j41(7,"svg",133),e.nrm(8,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function di0(t,a){if(1&t&&(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",62),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,"tbody"),e.Z7z(14,ri0,9,6,"tr",65,e.fX1),e.k0s()()()),2&t){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 fi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",221),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",111),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._new_att")," "))}function ui0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",124),e.qSk(),e.j41(1,"svg",125),e.nrm(2,"path",126),e.k0s(),e.joV(),e.j41(3,"div",127)(4,"p",128),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",129),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&t&&(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 mi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",122),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,ui0,10,6,"ng-template",123),e.k0s()}}function pi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",130)(1,"span",54),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",131),e.EFF(4),e.k0s(),e.j41(5,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAtt())}),e.qSk(),e.j41(6,"svg",133),e.nrm(7,"path",95),e.k0s()()()}if(2&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function hi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",112)(1,"div",222)(2,"div",114)(3,"label",223),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",224,2),e.k0s(),e.DNE(8,mi0,2,0,"ngx-file-drop",117)(9,pi0,8,1),e.k0s(),e.j41(10,"div",118)(11,"button",119),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",111),e.nrm(15,"path",120),e.k0s()()()()}if(2&t){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 gi0(t,a){if(1&t&&(e.j41(0,"div",196)(1,"h4",197),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",198),e.qSk(),e.j41(5,"svg",199),e.nrm(6,"path",200),e.k0s()(),e.joV(),e.j41(7,"div",201)(8,"div",202)(9,"h3",203),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",204)(13,"p",205),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nrm(16,"div",206),e.k0s()(),e.DNE(17,li0,5,1,"div",207)(18,oi0,14,8),e.j41(19,"h4",197),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,ii0,9,3,"div",208)(23,di0,16,9)(24,fi0,6,3,"div",93)(25,hi0,16,11)),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.JRh(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 _i0(t,a){1&t&&(e.j41(0,"div",225)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_relatioships")," "))}function Li0(t,a){if(1&t&&(e.j41(0,"span",226),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Ci0(t,a){if(1&t&&(e.j41(0,"span",228),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function zi0(t,a){if(1&t&&(e.j41(0,"span",229),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Mi0(t,a){if(1&t&&(e.j41(0,"span",230),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function xi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",65)(1,"td",70),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.DNE(6,Li0,2,1,"span",226)(7,Ci0,2,1)(8,zi0,2,1)(9,Mi0,2,1),e.k0s(),e.j41(10,"td",69),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",70)(14,"button",227),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.deleteRel(l))}),e.qSk(),e.j41(15,"svg",133),e.nrm(16,"path",95),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,n.hasLongWord(c.productSpec.name,20),!n.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 bi0(t,a){if(1&t&&(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",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",64),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",62),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,xi0,17,11,"tr",65,e.fX1),e.k0s()()()),2&t){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 yi0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",93)(1,"button",231),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",111),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._add_relationship")," "))}function Fi0(t,a){1&t&&(e.j41(0,"div",50),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function vi0(t,a){1&t&&(e.j41(0,"div",55)(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function ki0(t,a){1&t&&(e.j41(0,"span",68),e.EFF(1,"Simple"),e.k0s())}function wi0(t,a){1&t&&(e.j41(0,"span",72),e.EFF(1,"Bundle"),e.k0s())}function Si0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",241),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.selectRelationship(l))}),e.j41(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,ki0,2,0,"span",68)(5,wi0,2,0),e.k0s(),e.j41(6,"td",242),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.Y8G("ngClass",c.id==n.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,n.hasLongWord(c.name,20),!n.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 Ni0(t,a){if(1&t&&(e.j41(0,"div",238)(1,"table",60)(2,"thead",61)(3,"tr")(4,"th",62),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",239),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Si0,9,11,"tr",240,e.fX1),e.k0s()()()),2&t){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 Ei0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",75)(1,"button",76),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",77),e.nrm(5,"path",78),e.k0s()()()}2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Di0(t,a){if(1&t&&e.DNE(0,Ei0,6,3,"div",75),2&t){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Ti0(t,a){1&t&&(e.j41(0,"div",79),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function Ri0(t,a){if(1&t&&e.DNE(0,vi0,7,3,"div",55)(1,Ni0,16,9)(2,Di0,1,1)(3,Ti0,6,0),2&t){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 Ai0(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",232),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onRelChange(l))}),e.j41(4,"option",233),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",234),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",235),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",236),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,Fi0,6,0,"div",50)(13,Ri0,4,2),e.j41(14,"div",118)(15,"button",237),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",111),e.nrm(19,"path",120),e.k0s()()()}if(2&t){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 Ii0(t,a){if(1&t&&(e.j41(0,"div",21),e.DNE(1,_i0,9,3,"div",225)(2,bi0,22,15)(3,yi0,6,3,"div",93)(4,Ai0,20,9),e.k0s()),2&t){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 Pi0(t,a){1&t&&(e.j41(0,"div",243),e.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53),e.k0s(),e.joV(),e.j41(4,"span",54),e.EFF(5,"Loading..."),e.k0s()())}function $i0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",246),e.EFF(4),e.k0s()),2&t){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 ji0(t,a){if(1&t&&(e.j41(0,"span",249),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Oi0(t,a){if(1&t&&(e.j41(0,"span",250),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Bi0(t,a){if(1&t&&(e.j41(0,"span",251),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Vi0(t,a){if(1&t&&(e.j41(0,"span",252),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Ui0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",253),e.nrm(4,"markdown",254),e.k0s()),2&t){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.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 Hi0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",207),e.nrm(4,"img",209),e.k0s()),2&t){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 Gi0(t,a){if(1&t&&(e.j41(0,"span",226),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Yi0(t,a){if(1&t&&(e.j41(0,"span",228),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function qi0(t,a){if(1&t&&(e.j41(0,"span",229),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Xi0(t,a){if(1&t&&(e.j41(0,"span",230),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Wi0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,Gi0,2,1,"span",226)(5,Yi0,2,1)(6,qi0,2,1)(7,Xi0,2,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.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 Ji0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),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,"tbody"),e.Z7z(14,Wi0,8,6,"tr",65,e.fX1),e.k0s()()()),2&t){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 Qi0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value),", ")}}function Zi0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value)," ")}}function Ki0(t,a){if(1&t&&e.DNE(0,Qi0,1,1)(1,Zi0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function er0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cr0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function tr0(t,a){if(1&t&&e.DNE(0,er0,4,2)(1,cr0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function nr0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function lr0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function sr0(t,a){if(1&t&&e.DNE(0,nr0,1,1)(1,lr0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function ar0(t,a){if(1&t&&e.DNE(0,Ki0,2,1)(1,tr0,2,1)(2,sr0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function or0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ir0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function rr0(t,a){if(1&t&&e.DNE(0,or0,4,3)(1,ir0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function dr0(t,a){if(1&t&&e.DNE(0,ar0,3,1)(1,rr0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function fr0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",135),e.EFF(4),e.k0s(),e.j41(5,"td",104),e.Z7z(6,dr0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function ur0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",64),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,fr0,8,10,"tr",65,e.fX1),e.k0s()()()),2&t){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 mr0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function pr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,mr0,3,5,"tr",65,e.fX1),e.k0s()()()),2&t){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 hr0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function gr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,hr0,3,5,"tr",65,e.fX1),e.k0s()()()),2&t){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 _r0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",66),e.EFF(2),e.k0s(),e.j41(3,"td",104),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Lr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),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,"tbody"),e.Z7z(14,_r0,5,6,"tr",65,e.fX1),e.k0s()()()),2&t){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 Cr0(t,a){if(1&t&&(e.j41(0,"span",256),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function zr0(t,a){if(1&t&&(e.j41(0,"span",257),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Mr0(t,a){if(1&t&&(e.j41(0,"span",258),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function xr0(t,a){if(1&t&&(e.j41(0,"span",259),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function br0(t,a){if(1&t&&(e.j41(0,"tr",65)(1,"td",70),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.DNE(6,Cr0,2,1,"span",256)(7,zr0,2,1)(8,Mr0,2,1)(9,xr0,2,1),e.k0s(),e.j41(10,"td",69),e.EFF(11),e.nI1(12,"date"),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,n.hasLongWord(c.productSpec.name,20),!n.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 yr0(t,a){if(1&t&&(e.j41(0,"label",140),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",255)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),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",63),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",64),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,br0,13,11,"tr",65,e.fX1),e.k0s()()()),2&t){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 Fr0(t,a){if(1&t&&(e.j41(0,"div",244)(1,"div")(2,"label",140),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",245),e.EFF(6),e.k0s(),e.j41(7,"label",38),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",246),e.EFF(11),e.k0s()(),e.j41(12,"div")(13,"label",140),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"label",245),e.EFF(17),e.k0s(),e.DNE(18,$i0,5,4),e.k0s()(),e.j41(19,"div",247)(20,"label",248),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,ji0,2,1,"span",249)(24,Oi0,2,1)(25,Bi0,2,1)(26,Vi0,2,1),e.k0s(),e.DNE(27,Ui0,5,8)(28,Hi0,5,4)(29,Ji0,16,9)(30,ur0,19,12)(31,pr0,13,6)(32,gr0,13,6)(33,Lr0,16,9)(34,yr0,22,15)),2&t){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,m8,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,m8,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 vr0(t,a){if(1&t&&(e.j41(0,"div",22),e.DNE(1,Pi0,6,0,"div",243)(2,Fr0,35,33),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function kr0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",260),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&t){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 wr0(t,a){if(1&t){const c=e.RV6();e.qSk(),e.j41(0,"svg",125),e.nrm(1,"path",126),e.k0s(),e.joV(),e.j41(2,"p",271),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"button",272),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}2&t&&(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 Sr0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",31)(1,"div",261),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",262)(3,"button",263),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",264),e.nrm(5,"path",265),e.k0s(),e.joV(),e.j41(6,"span",54),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",266),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.dropped(l,r.selectedISO))})("onFileOver",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileLeave(l))}),e.DNE(10,wr0,8,6,"ng-template",267),e.k0s(),e.j41(11,"div",268)(12,"button",269),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",270),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&t){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 Nr0(t,a){if(1&t&&e.nrm(0,"error-message",32),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Er0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=h1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=h1.c.RES_SPEC_LIMIT,this.BUNDLE_ENABLED=h1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=h1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=h1.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.currentStep=0,this.highestStep=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),e6]),brand:new p.MJ("",[p.k0.required,e6]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),e6]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),e6]),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=["endpointUrl","upstreamAddress","endpointDescription","targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.dataSpaceJsonCharacteristicTypes=["targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let N1=0;N1{"ChangedSession"===N1.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.bundlePageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const n=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.prodSpecsBundle.splice(n,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 n=this.availableISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("seleccionar"),this.availableISOS.splice(n,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 n=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(r=>r.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:n,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const n=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("eliminar additional cert"),this.additionalISOS.splice(n,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){console.log("remove self att"),console.log(this.selfAtt);const c=this.finishChars.findIndex(n=>n.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(n=>""===n.url)}hasSelfAttestation(){const c=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value;return"string"==typeof c?""!==c.trim():!!c}dropped(c,n){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(m=>{if(console.log("dropped"),m){const z=new FileReader;z.onload=F=>{const I=F.target.result.split(",")[1];console.log("BASE 64...."),console.log(I);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let d1={content:{name:A4()+"_"+m.name,data:I},contentType:m.type,isPublic:!0};if(!this.isValidFilename(d1.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(m.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 i1=this.selectedISOS.findIndex(N1=>N1.name===n.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{-1!==i1?(this.selectedISOS[i1].url=N1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=N1.content},error:N1=>{console.error("There was an error while uploading the file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.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 i1=this.finishChars.findIndex(N1=>N1.name===this.selfAtt.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{console.log(N1),-1!==i1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:N1.content}],this.finishChars[i1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+A4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:N1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:N1=>{console.error("There was an error while uploading the file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}this.isCurrentStep("attachments")&&(console.log(m),this.attachmentService.uploadFile(d1).subscribe({next:i1=>{console.log(i1),"img"==n?m.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=i1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:m.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:i1.content,attachmentType:m.type},this.cdr.detectChanges(),console.log("uploaded")},error:i1=>{console.error("There was an error while uploading!",i1),i1.error.error?(console.log(i1),this.errorMessage="Error: "+i1.error.error):this.errorMessage="There was an error while uploading the file!",413===i1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},z.readAsDataURL(m)}}):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.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()}getResSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingResourceSpec=!0),n.paginationService.getItemsPaginated(n.resourceSpecPage,n.RES_SPEC_LIMIT,c,n.resourceSpecs,n.nextResourceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.resSpecService.getResourceSpecByUser.bind(n.resSpecService)).then(r=>{n.resourceSpecPageCheck=r.page_check,n.resourceSpecs=r.items,n.nextResourceSpecs=r.nextItems,n.resourceSpecPage=r.page,n.loadingResourceSpec=!1,n.loadingResourceSpec_more=!1})})()}nextRes(){var c=this;return(0,b1.A)(function*(){yield c.getResSpecs(!0)})()}addResToSelected(c){const n=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedResourceSpecs.splice(n,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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingServiceSpec=!0),n.paginationService.getItemsPaginated(n.serviceSpecPage,n.SERV_SPEC_LIMIT,c,n.serviceSpecs,n.nextServiceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.servSpecService.getServiceSpecByUser.bind(n.servSpecService)).then(r=>{n.serviceSpecPageCheck=r.page_check,n.serviceSpecs=r.items,n.nextServiceSpecs=r.nextItems,n.serviceSpecPage=r.page,n.loadingServiceSpec=!1,n.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,b1.A)(function*(){yield c.getServSpecs(!0)})()}addServToSelected(c){const n=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedServiceSpecs.splice(n,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(()=>{S2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(n=>n.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 n=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==n&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[n].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(n,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 n=this;return(0,b1.A)(function*(){0==c&&(n.loadingprodSpecRel=!0),n.paginationService.getItemsPaginated(n.prodSpecRelPage,n.PROD_SPEC_LIMIT,c,n.prodSpecRels,n.nextProdSpecRels,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecRelPageCheck=r.page_check,n.prodSpecRels=r.items,n.nextProdSpecRels=r.nextItems,n.prodSpecRelPage=r.page,n.loadingprodSpecRel=!1,n.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,b1.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 n=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==n&&(console.log("eliminar"),this.prodRelationships.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m!n.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(n=>this.isDataSpaceCharacteristicType(n.valueType)):c.filter(n=>!this.isDataSpaceCharacteristicType(n.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?this.dataSpaceCharacteristicTypes[0]:"string"}getFormSteps(){const c=["General Info"];return this.BUNDLE_ENABLED&&c.push("Bundle"),c.push("Compliance profile"),c.push("Characteristics"),this.DATA_SPACE_ENABLED&&c.push("Dataspace Configuration"),c.push("Resource specifications"),c.push("Service specifications"),c.push("Attachments"),c.push("Relationships"),c.push("Summary"),c}getStepIndex(c){const l=1+(this.BUNDLE_ENABLED?1:0),r=l+1,m=this.DATA_SPACE_ENABLED?r+1:-1,z=r+(this.DATA_SPACE_ENABLED?2:1),F=z+1,I=F+1,J=I+1,d1=J+1;switch(c){case"general":return 0;case"bundle":return this.BUNDLE_ENABLED?1:-1;case"compliance":return l;case"characteristics":return r;case"dataspace":return m;case"resource":return z;case"service":return F;case"attachments":return I;case"relationships":return J;case"summary":return d1;default:return-1}}isCurrentStep(c){const n=this.getStepIndex(c);return n>=0&&this.currentStep===n}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,n){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(n,1),console.log(this.creatingChars))}selectDefaultChar(c,n){for(let l=0;ll.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:"+A4(),name:this.charsForm.value.name,description:null!=this.charsForm.value.description?this.charsForm.value.description:"",productSpecCharacteristicValue:this.creatingChars},n=this.getSchemaLocationForType(this.charTypeSelected);this.isDataSpaceCharacteristicType(this.charTypeSelected)&&(c.valueType=this.charTypeSelected),n&&(c["@schemaLocation"]=n),this.prodChars.push(c),this.isOptional&&"boolean"!==this.charTypeSelected&&!this.isJsonCharacteristicType(this.charTypeSelected)&&this.prodChars.push({id:"urn:ngsi-ld:characteristic:"+A4(),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 n=this.prodChars.findIndex(l=>l.id===c.id);if(-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(r=>r.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 n=0;nr.name===this.prodChars[n].name)){const r=this.prodChars[n]?.name?.replace("Compliance:","").trim();-1==this.availableISOS.findIndex(z=>z.name===r)&&"Compliance:SelfAtt"!=this.prodChars[n].name?(console.log("--- check if deleted additional cert"),console.log(this.prodChars[n].name),-1!=this.additionalISOS.findIndex(F=>F.name===r)&&this.finishChars.push(this.prodChars[n]),this.prodChars[n].name?.startsWith("Compliance:")||this.finishChars.push(this.prodChars[n])):this.finishChars.push(this.prodChars[n])}for(let n=0;nr.name===this.selectedISOS[n].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+A4(),name:this.selectedISOS[n].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.selectedISOS[n].url}]});for(let n=0;nr.name===this.additionalISOS[n].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+A4(),name:this.additionalISOS[n].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[n].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const n="Compliance:SelfAtt",l=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,r=this.finishChars.findIndex(F=>F.name===n),z={id:this.selfAtt?.id?this.selfAtt.id:-1!==r&&this.finishChars[r]?.id?this.finishChars[r].id:`urn:ngsi-ld:characteristic:${A4()}`,name:n,productSpecCharacteristicValue:[{isDefault:!0,value:l}]};-1===r?this.finishChars.push(z):this.finishChars[r]=z}let c=[];for(let n=0;n{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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}getValuePreview(c,n=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>n?`${l.slice(0,n)}...`:l}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),this.isCurrentStep("compliance")&&setTimeout(()=>{S2()},100),this.isCurrentStep("resource")&&this.getResSpecs(!1),this.isCurrentStep("service")&&this.getServSpecs(!1),this.isCurrentStep("attachments")&&setTimeout(()=>{S2()},100),this.isCurrentStep("relationships")&&this.getProdSpecsRel(!1),this.isCurrentStep("summary")&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}isStepDisabled(){return 0===this.currentStep?!this.generalForm?.valid||!1:this.BUNDLE_ENABLED&&this.currentStep===this.getStepIndex("bundle")?this.prodSpecsBundle.length<2&&this.bundleChecked:this.currentStep===this.getStepIndex("compliance")&&this.checkValidISOS()}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(c6),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(u6),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-product-spec"]],viewQuery:function(n,l){if(1&n&&(e.GBs(da0,5),e.GBs(fa0,5),e.GBs(ua0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.attachName=r.first),e.mGM(r=e.lsd())&&(l.imgURL=r.first),e.mGM(r=e.lsd())&&(l.certificationName=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:49,vars:37,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"],["for","prod-name",1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","description",1,"col-span-2"],[1,"col-span-2","flex","align-items-middle","h-fit","m-4"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["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"],["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","endpointUrl"],["value","upstreamAddress"],["value","endpointDescription"],["value","targetSpecification"],["value","serviceConfiguration"],["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"],["data-cy","tableServiceSpecs",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[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(n,l){1&n&&(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,ha0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,ga0,23,19,"form",20)(27,Da0,8,5)(28,qa0,35,19)(29,Eo0,4,2)(30,Ho0,4,2)(31,ni0,4,2)(32,gi0,26,15)(33,Ii0,5,2,"div",21)(34,vr0,3,1,"div",22),e.k0s(),e.j41(35,"div",23)(36,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(37,"svg",25),e.nrm(38,"path",26),e.k0s(),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.joV(),e.j41(41,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(42),e.nI1(43,"translate"),e.qSk(),e.j41(44,"svg",28),e.nrm(45,"path",29),e.k0s()(),e.DNE(46,kr0,3,5,"button",30),e.k0s()()()(),e.DNE(47,Sr0,18,10,"div",31)(48,Nr0,1,1,"error-message",32)),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,21,"CREATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,23,"CREATE_PROD_SPEC._create")),e.R7$(4),e.JRh(e.bMT(20,25,"CREATE_PROD_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&&l.BUNDLE_ENABLED?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,l.isCurrentStep("attachments")?32:-1),e.R7$(),e.vxM(33,l.isCurrentStep("relationships")?33:-1),e.R7$(),e.vxM(34,l.isCurrentStep("summary")?34:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(31,ma0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(40,27,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep)||l.isStepDisabled())("ngClass",e.l_i(34,pa0,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(43,29,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(46,l.isCurrentStep("summary")?46:-1),e.R7$(),e.vxM(47,l.showUploadFile?47:-1),e.R7$(),e.vxM(48,l.showError?48:-1))},dependencies:[L.YU,L.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,b0,j4,T0,ge,Q0,L.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 t})();const Dr0=(t,a)=>a.id,Tr0=(t,a)=>({"break-all":t,"break-words":a});function Rr0(t,a){1&t&&(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 Ar0(t,a){if(1&t&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ir0(t,a){if(1&t&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Pr0(t,a){if(1&t&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function $r0(t,a){if(1&t&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function jr0(t,a){1&t&&(e.j41(0,"span",49),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function Or0(t,a){1&t&&(e.j41(0,"span",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function Br0(t,a){if(1&t){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,Ar0,2,1,"span",47)(5,Ir0,2,1)(6,Pr0,2,1)(7,$r0,2,1),e.k0s(),e.j41(8,"td",48),e.DNE(9,jr0,3,3,"span",49)(10,Or0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",52),e.nrm(17,"path",53),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(8,Tr0,n.hasLongWord(c.name,20),!n.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 Vr0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function Ur0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Hr0(t,a){if(1&t&&e.DNE(0,Ur0,6,3,"div",59),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Gr0(t,a){1&t&&(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 Yr0(t,a){if(1&t&&(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,Br0,18,11,"tr",43,Dr0,!1,Vr0,7,3,"div",44),e.k0s()()(),e.DNE(24,Hr0,1,1)(25,Gr0,6,0),e.k0s()),2&t){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 qr0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.faSparkles=E2.p7g,this.searchField=new p.MJ,this.prodSpecs=[],this.nextProdSpecs=[],this.page=0,this.PROD_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initProdSpecs()})}ngOnInit(){this.initProdSpecs()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getProdSpecs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getProdSpecs(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateProductSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateProductSpec(c)}getProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:n.status,partyId:n.partyId,sort:n.sort,isBundle:n.isBundle},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.page_check=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getProdSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(c6),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,Rr0,6,0,"div",30)(55,Yr0,26,17),e.k0s()),2&n&&(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:[L.YU,X2.aY,L.vh,s1.D9]})}}return t})();var Xr0=v(8866);const Wr0=(t,a)=>a.type+a.name+a.value;function Jr0(t,a){1&t&&(e.j41(0,"span",27),e.EFF(1,"Not provided"),e.k0s())}function Qr0(t,a){if(1&t&&(e.j41(0,"a",28),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.Y8G("href",c.value,e.B4B),e.R7$(),e.SpI(" ",c.value," ")}}function Zr0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG().$implicit;e.SpI(" ",c.value," ")}}function Kr0(t,a){if(1&t&&(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,Jr0,2,0,"span",27)(7,Qr0,2,2)(8,Zr0,1,1),e.k0s()()),2&t){const c=a.$implicit,n=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:n.isHttpUrl(c.value)?7:8)}}function ed0(t,a){1&t&&(e.j41(0,"tr")(1,"td",29),e.EFF(2," No compliance evidence available. "),e.k0s()())}function cd0(t,a){1&t&&(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 td0(t,a){if(1&t&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.SpI(" ",c.requestValidationError," ")}}let nd0=(()=>{class t{constructor(c,n,l){this.localStorage=c,this.accountService=n,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=[],n=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value??"";c.push({type:"Self attestation",name:"Self attestation",value:n,missing:!n});for(const l of this.selectedISOS){const r=l?.url??"";c.push({type:"Third-party certification",name:this.normalizeName(l?.name),value:r,missing:!r})}for(const l of this.additionalISOS){const r=l?.url??"";c.push({type:"Additional certification",name:this.normalizeName(l?.name),value:r,missing:!r})}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,b1.A)(function*(){const n=c.getOrganizationPartyId();if(n)try{const l=yield c.accountService.getOrgInfo(n);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(r=>r?.id==c.logged_as)?.partyId??"":""}mapOrganizationInfo(c){const n=Array.isArray(c?.contactMedium)?c.contactMedium:[],l=Array.isArray(c?.partyCharacteristic)?c.partyCharacteristic:[],r=Array.isArray(c?.externalReference)?c.externalReference:[],m=n.find(J=>"Email"===J?.mediumType),F=n.find(J=>"PostalAddress"===J?.mediumType)?.characteristic??{},I=this.getPartyCharacteristicValue(l,"country");return{organizationName:c?.tradingName??c?.name??"",organizationVat:this.getOrganizationVat(r),organizationAddress:this.formatPostalAddress(F),organizationCountry:I,organizationWebsite:this.getPartyCharacteristicValue(l,"website"),organizationEmail:m?.characteristic?.emailAddress??""}}getOrganizationVat(c){return c.length?c.find(l=>"idm_id"===(l?.externalReferenceType??"").toLowerCase())?.name??"":""}getPartyCharacteristicValue(c,n){return c.find(r=>r?.name===n)?.value??""}formatPostalAddress(c){return c?[c.street1,c.postCode,c.city,c.stateOrProvince].filter(n=>!!n).join(", "):""}getEmptyOrganizationInfo(){return{organizationName:"",organizationVat:"",organizationAddress:"",organizationCountry:"",organizationWebsite:"",organizationEmail:""}}buildRequestPayload(c){return JSON.parse(JSON.stringify(c))}extractErrorMessage(c){const n=c?.error?.error??c?.error?.message??c?.message;return n?`Error: ${n}`:"Error: there was a problem requesting the validation."}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(C2.s),e.rXU(s0.O),e.rXU(c6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0),e.bIt("click",function(){return l.closeModal.emit()}),e.j41(1,"div",1),e.bIt("click",function(m){return m.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,Kr0,9,3,"tr",15,Wr0,!1,ed0,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,cd0,2,0,"div",20)(64,td0,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&n&&(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:[L.YU]})}}return t})();const ld0=["attachName"],sd0=["imgURL"],ad0=["certificationName"],hG=(t,a)=>a.id,rE1=(t,a)=>a.name,od0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),id0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),p8=(t,a)=>({"break-all":t,"break-words":a}),gG=()=>({standalone:!0});function rd0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",34),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",35),e.EFF(2),e.k0s(),e.j41(3,"span",36),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function dd0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._active")," "))}function fd0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._active")," "))}function ud0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._launched")," "))}function md0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._launched")," "))}function pd0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._retired")," "))}function hd0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._retired")," "))}function gd0(t,a){if(1&t){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&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._obsolete")," "))}function _d0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._obsolete")," "))}function Ld0(t,a){if(1&t&&(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,dd0,6,3,"li",48)(25,fd0,4,3)(26,ud0,6,3,"li",49)(27,md0,4,3)(28,pd0,6,3,"li",50)(29,hd0,4,3)(30,gd0,6,3,"li",51)(31,_d0,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&t){let c,n,l;const r=e.XpG();e.Y8G("formGroup",r.generalForm),e.R7$(3),e.JRh(e.bMT(4,14,"UPDATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=r.generalForm.get("name"))?null:c.invalid)&&""!=r.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==(n=r.generalForm.get("version"))?null:n.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=r.generalForm.get("brand"))?null:l.invalid)&&""!=r.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"==r.prodStatus?24:25),e.R7$(2),e.vxM(26,"Launched"==r.prodStatus?26:27),e.R7$(2),e.vxM(28,"Retired"==r.prodStatus?28:29),e.R7$(2),e.vxM(30,"Obsolete"==r.prodStatus?30:31),e.R7$(3),e.JRh(e.bMT(34,24,"UPDATE_PROD_SPEC._product_description"))}}function Cd0(t,a){1&t&&(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 zd0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Md0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function xd0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function bd0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function yd0(t,a){1&t&&(e.j41(0,"span",84),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._simple")))}function Fd0(t,a){1&t&&(e.j41(0,"span",88),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._bundle")))}function vd0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,zd0,2,1,"span",84)(5,Md0,2,1)(6,xd0,2,1)(7,bd0,2,1),e.k0s(),e.j41(8,"td",83),e.DNE(9,yd0,3,3,"span",84)(10,Fd0,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&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(9,p8,n.hasLongWord(c.name,20),!n.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",n.isProdInBundle(c))}}function kd0(t,a){if(1&t&&(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,vd0,16,12,"tr",81,hG),e.k0s()()()),2&t){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 wd0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Sd0(t,a){if(1&t&&e.DNE(0,wd0,6,3,"div",91),2&t){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function Nd0(t,a){1&t&&(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 Ed0(t,a){if(1&t&&e.DNE(0,Cd0,6,0,"div",70)(1,kd0,22,15)(2,Sd0,1,1)(3,Nd0,6,0),2&t){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function Dd0(t,a){if(1&t&&(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,Ed0,4,2)),2&t){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 Td0(t,a){1&t&&e.nrm(0,"img",97)}function Rd0(t,a){1&t&&e.nrm(0,"img",125)}function Ad0(t,a){1&t&&e.nrm(0,"img",126)}function Id0(t,a){1&t&&(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 Pd0(t,a){if(1&t){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 $d0(t,a){if(1&t){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,r=e.XpG(4);return e.Njj(r.addISO(l))}),e.qSk(),e.j41(5,"svg",136),e.nrm(6,"path",94),e.k0s()()()()}if(2&t){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 jd0(t,a){if(1&t&&(e.j41(0,"div",132)(1,"ul",133),e.Z7z(2,$d0,7,2,"li",null,e.fX1),e.k0s()()),2&t){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function Od0(t,a){if(1&t){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,jd0,4,0,"div",132)}if(2&t){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 Bd0(t,a){if(1&t){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 r=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(r),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,r=e.XpG(2);return e.Njj(r.removeISO(l))}),e.qSk(),e.j41(10,"svg",100),e.nrm(11,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Vd0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_comp_profile")," "))}function Ud0(t,a){1&t&&(e.j41(0,"div",142),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function Hd0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.removeCert(l))}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",n.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Gd0(t,a){if(1&t&&(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,Hd0,9,6,"tr",81,rE1),e.k0s()()()),2&t){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 Yd0(t,a){if(1&t){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 qd0(t,a){if(1&t){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&t&&(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 Xd0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,qd0,10,6,"ng-template",157),e.k0s()}}function Wd0(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function Jd0(t,a){if(1&t){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,Xd0,2,0,"ngx-file-drop",151)(11,Wd0,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&t){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 Qd0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",96)(1,"div",11),e.DNE(2,Td0,1,0,"img",97)(3,Rd0,1,0)(4,Ad0,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,Id0,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,Pd0,3,0,"button",112),e.k0s()(),e.DNE(25,Od0,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,Bd0,12,6,"tr",81,rE1,!1,Vd0,9,3,"div",120),e.k0s()()(),e.j41(52,"div",121)(53,"div",122),e.DNE(54,Ud0,4,3,"div",123),e.k0s()(),e.DNE(55,Gd0,18,9)(56,Yd0,5,0,"div",124)(57,Jd0,19,8)}if(2&t){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.JRh(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 Zd0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_chars")," "))}function Kd0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value),", ")}}function ef0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(4);e.SpI(" ",n.getValuePreview(c.value)," ")}}function cf0(t,a){if(1&t&&e.DNE(0,Kd0,1,1)(1,ef0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tf0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function nf0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lf0(t,a){if(1&t&&e.DNE(0,tf0,4,2)(1,nf0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function sf0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function af0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function of0(t,a){if(1&t&&e.DNE(0,sf0,1,1)(1,af0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function if0(t,a){if(1&t&&e.DNE(0,cf0,2,1)(1,lf0,2,1)(2,of0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function rf0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function df0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ff0(t,a){if(1&t&&e.DNE(0,rf0,4,3)(1,df0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function uf0(t,a){if(1&t&&e.DNE(0,if0,3,1)(1,ff0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function mf0(t,a){if(1&t){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,uf0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",167),e.nrm(11,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,p8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function pf0(t,a){if(1&t&&(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,mf0,12,10,"tr",81,hG),e.k0s()()()),2&t){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 hf0(t,a){if(1&t){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&t){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 gf0(t,a){1&t&&(e.j41(0,"option",182),e.EFF(1,"Endpoint URL"),e.k0s(),e.j41(2,"option",183),e.EFF(3,"Upstream Address"),e.k0s(),e.j41(4,"option",184),e.EFF(5,"Endpoint Description"),e.k0s(),e.j41(6,"option",185),e.EFF(7,"Target Specification"),e.k0s(),e.j41(8,"option",186),e.EFF(9,"Service Configuration"),e.k0s(),e.j41(10,"option",187),e.EFF(11,"Credentials Configuration"),e.k0s(),e.j41(12,"option",188),e.EFF(13,"Authorization Policy"),e.k0s())}function _f0(t,a){1&t&&(e.j41(0,"option",189),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",190),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",191),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",192),e.EFF(7,"Boolean"),e.k0s())}function Lf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div")(1,"label",174),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",197),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.optionalDftTrue,l)||(r.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",198),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",198),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&t){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,gG)),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 Cf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",193)(1,"label",194),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",195)(5,"input",196),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.isOptional,l)||(r.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",69),e.k0s()(),e.DNE(7,Lf0,11,14,"div")}if(2&t){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,gG)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function zf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",201)(1,"div",202)(2,"input",203),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.j41(3,"label",204),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",205),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",167),e.nrm(10,"path",128),e.k0s()()()}if(2&t){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 Mf0(t,a){if(1&t&&e.Z7z(0,zf0,11,4,"div",201,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function xf0(t,a){if(1&t&&(e.j41(0,"label",207),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function bf0(t,a){if(1&t&&(e.j41(0,"label",207),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit,n=e.XpG(5);e.R7$(),e.JRh(n.getValuePreview(c.value))}}function yf0(t,a){if(1&t&&(e.j41(0,"label",207),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function Ff0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",201)(1,"div",202)(2,"input",206),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,xf0,5,2,"label",207)(4,bf0,2,1)(5,yf0,2,1),e.k0s(),e.j41(6,"button",205),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===n.charTypeSelected?3:n.isJsonCharacteristicType(n.charTypeSelected)?4:5)}}function vf0(t,a){if(1&t&&e.Z7z(0,Ff0,9,2,"div",201,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function kf0(t,a){if(1&t&&(e.j41(0,"label",199),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",200),e.DNE(3,Mf0,2,0)(4,vf0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function wf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",180)(1,"input",208),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",209),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",210),e.nrm(4,"path",94),e.k0s()()()}if(2&t){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 Sf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",211)(1,"div",212)(2,"span",213),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",214),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",212)(7,"span",213),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",215),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",209),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",210),e.nrm(13,"path",94),e.k0s()()()}if(2&t){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 Nf0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",193)(1,"label",216),e.EFF(2,"Default value is true"),e.k0s(),e.j41(3,"label",195)(4,"input",217),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.booleanDefaultTrue,l)||(r.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&t){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,gG))}}function Ef0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",211)(1,"div",212)(2,"span",218),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",214),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",212)(7,"span",218),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",214),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.toValue,l)||(r.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",212)(12,"span",218),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",215),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",209),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",210),e.nrm(18,"path",94),e.k0s()()()}if(2&t){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 Df0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",219)(1,"label",220),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",221),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.jsonValue,l)||(r.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",222),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",223),e.nrm(7,"path",94),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&t){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 Tf0(t,a){if(1&t&&e.DNE(0,Df0,10,9,"div",219),2&t){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function Rf0(t,a){if(1&t){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 r=e.XpG(2);return e.DH7(r.charTypeSelected,l)||(r.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onTypeChange(l))}),e.DNE(11,gf0,14,0)(12,_f0,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,Cf0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,kf0,5,1),e.j41(21,"label",179),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,wf0,5,3,"div",180)(25,Sf0,14,10)(26,Nf0,6,3)(27,Ef0,19,14)(28,Tf0,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&t){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,gG)),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||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,"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.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,"UPDATE_PROD_SPEC._save_char")," ")}}function Af0(t,a){if(1&t&&e.DNE(0,Zd0,9,3,"div",168)(1,pf0,19,12)(2,hf0,6,3,"div",124)(3,Rf0,35,26),2&t){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 If0(t,a){1&t&&(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 Pf0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function $f0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function jf0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Of0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Bf0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Vf0(t,a){if(1&t){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,$f0,2,1,"span",84)(5,jf0,2,1)(6,Of0,2,1)(7,Bf0,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",224),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addResToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,p8,n.hasLongWord(c.name,20),!n.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",n.isResSelected(c))}}function Uf0(t,a){if(1&t&&(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,Vf0,13,11,"tr",81,hG),e.k0s()()()),2&t){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 Hf0(t,a){if(1&t&&e.DNE(0,Pf0,7,3,"div",168)(1,Uf0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function Gf0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Yf0(t,a){if(1&t&&e.DNE(0,Gf0,6,3,"div",91),2&t){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function qf0(t,a){1&t&&(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 Xf0(t,a){if(1&t&&e.DNE(0,If0,6,0,"div",70)(1,Hf0,2,1)(2,Yf0,1,1)(3,qf0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function Wf0(t,a){1&t&&(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 Jf0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function Qf0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zf0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Kf0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function eu0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function cu0(t,a){if(1&t){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,Qf0,2,1,"span",84)(5,Zf0,2,1)(6,Kf0,2,1)(7,eu0,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",224),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.addServToSelected(l))}),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,p8,n.hasLongWord(c.name,20),!n.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",n.isServSelected(c))}}function tu0(t,a){if(1&t&&(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,cu0,13,11,"tr",81,hG),e.k0s()()()),2&t){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 nu0(t,a){if(1&t&&e.DNE(0,Jf0,7,3,"div",168)(1,tu0,19,12),2&t){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function lu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function su0(t,a){if(1&t&&e.DNE(0,lu0,6,3,"div",91),2&t){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function au0(t,a){1&t&&(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 ou0(t,a){if(1&t&&e.DNE(0,Wf0,6,0,"div",70)(1,nu0,2,1)(2,su0,1,1)(3,au0,6,0),2&t){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function iu0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",228),e.nrm(1,"img",230),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&t){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function ru0(t,a){if(1&t){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&t&&(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 du0(t,a){1&t&&(e.j41(0,"div",239),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function fu0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",231)(1,"ngx-file-drop",232),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.fileLeave(l))}),e.DNE(2,ru0,10,6,"ng-template",157),e.k0s()(),e.j41(3,"label",233),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",234),e.DNE(7,du0,4,3,"div",235),e.j41(8,"div",236)(9,"input",237,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",238),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&t){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 uu0(t,a){1&t&&(e.j41(0,"div",229)(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_att")," "))}function mu0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.removeAtt(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function pu0(t,a){if(1&t&&(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,mu0,9,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 hu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._new_att")," "))}function gu0(t,a){if(1&t){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&t&&(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 _u0(t,a){if(1&t){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.fileLeave(l))}),e.DNE(1,gu0,10,6,"ng-template",157),e.k0s()}}function Lu0(t,a){if(1&t){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&t){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function Cu0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",146)(1,"div",147)(2,"div",148)(3,"label",240),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",241,2),e.k0s(),e.DNE(8,_u0,2,0,"ngx-file-drop",151)(9,Lu0,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&t){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 zu0(t,a){if(1&t&&(e.j41(0,"div",225)(1,"h4",226),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",227),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,iu0,5,1,"div",228)(18,fu0,14,8),e.j41(19,"h4",226),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,uu0,9,3,"div",229)(23,pu0,16,9)(24,hu0,6,3,"div",124)(25,Cu0,16,11)),2&t){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"UPDATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.JRh(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 Mu0(t,a){1&t&&(e.j41(0,"div",242)(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_relatioships")," "))}function xu0(t,a){if(1&t){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,r=e.XpG(3);return e.Njj(r.deleteRel(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function bu0(t,a){if(1&t&&(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,xu0,9,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 yu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._add_relationship")," "))}function Fu0(t,a){1&t&&(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 vu0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function ku0(t,a){1&t&&(e.j41(0,"span",84),e.EFF(1,"Simple"),e.k0s())}function wu0(t,a){1&t&&(e.j41(0,"span",88),e.EFF(1,"Bundle"),e.k0s())}function Su0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",250),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(5);return e.Njj(r.selectRelationship(l))}),e.j41(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,ku0,2,0,"span",84)(5,wu0,2,0),e.k0s(),e.j41(6,"td",85),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.Y8G("ngClass",c.id==n.selectedProdSpec.id?"bg-gray-300 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(8,p8,n.hasLongWord(c.name,20),!n.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 Nu0(t,a){if(1&t&&(e.j41(0,"div",248)(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,Su0,9,11,"tr",249,e.fX1),e.k0s()()()),2&t){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 Eu0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Du0(t,a){if(1&t&&e.DNE(0,Eu0,6,3,"div",91),2&t){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Tu0(t,a){1&t&&(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 Ru0(t,a){if(1&t&&e.DNE(0,vu0,7,3,"div",168)(1,Nu0,16,9)(2,Du0,1,1)(3,Tu0,6,0),2&t){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 Au0(t,a){if(1&t){const c=e.RV6();e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",243),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.onRelChange(l))}),e.j41(4,"option",244),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",245),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",246),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",247),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,Fu0,6,0,"div",70)(13,Ru0,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&t){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 Iu0(t,a){if(1&t&&(e.j41(0,"div",21),e.DNE(1,Mu0,9,3,"div",242)(2,bu0,16,9)(3,yu0,6,3,"div",124)(4,Au0,20,9),e.k0s()),2&t){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 Pu0(t,a){1&t&&(e.j41(0,"div",251),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 $u0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",254),e.EFF(4),e.k0s()),2&t){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 ju0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function Ou0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function Bu0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function Vu0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function Uu0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",257),e.nrm(4,"markdown",258),e.k0s()),2&t){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,p8,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 Hu0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",228),e.nrm(4,"img",230),e.k0s()),2&t){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 Gu0(t,a){if(1&t&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Yu0(t,a){if(1&t&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function qu0(t,a){if(1&t&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Xu0(t,a){if(1&t&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Wu0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",86),e.DNE(4,Gu0,2,1,"span",84)(5,Yu0,2,1)(6,qu0,2,1)(7,Xu0,2,1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,p8,n.hasLongWord(c.name,20),!n.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 Ju0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,Wu0,8,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 Qu0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value),", ")}}function Zu0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit,n=e.XpG(5);e.SpI(" ",n.getValuePreview(c.value)," ")}}function Ku0(t,a){if(1&t&&e.DNE(0,Qu0,1,1)(1,Zu0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function em0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function tm0(t,a){if(1&t&&e.DNE(0,em0,4,2)(1,cm0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function nm0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function lm0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function sm0(t,a){if(1&t&&e.DNE(0,nm0,1,1)(1,lm0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function am0(t,a){if(1&t&&e.DNE(0,Ku0,2,1)(1,tm0,2,1)(2,sm0,2,1),2&t){const c=e.XpG().$implicit,n=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isJsonCharacteristicType(n.valueType)?0:c.unitOfMeasure?1:2)}}function om0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function im0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function rm0(t,a){if(1&t&&e.DNE(0,om0,4,3)(1,im0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function dm0(t,a){if(1&t&&e.DNE(0,am0,3,1)(1,rm0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function fm0(t,a){if(1&t&&(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,dm0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,p8,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function um0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,fm0,8,10,"tr",81,e.fX1),e.k0s()()()),2&t){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 mm0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function pm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,mm0,3,5,"tr",81,e.fX1),e.k0s()()()),2&t){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 hm0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function gm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,hm0,3,5,"tr",81,e.fX1),e.k0s()()()),2&t){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 _m0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Lm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,_m0,5,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 Cm0(t,a){if(1&t&&(e.j41(0,"tr",81)(1,"td",86),e.EFF(2),e.k0s(),e.j41(3,"td",82),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,p8,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function zm0(t,a){if(1&t&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",259)(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,Cm0,5,6,"tr",81,e.fX1),e.k0s()()()),2&t){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 Mm0(t,a){if(1&t&&(e.j41(0,"div",252)(1,"div")(2,"label",174),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",253),e.EFF(6),e.k0s(),e.j41(7,"label",39),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",254),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",253),e.EFF(17),e.k0s(),e.DNE(18,$u0,5,4),e.k0s()(),e.j41(19,"div",255)(20,"label",256),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,ju0,2,1,"span",84)(24,Ou0,2,1)(25,Bu0,2,1)(26,Vu0,2,1),e.k0s(),e.DNE(27,Uu0,5,8)(28,Hu0,5,4)(29,Ju0,16,9)(30,um0,19,12)(31,pm0,13,6)(32,gm0,13,6)(33,Lm0,16,9)(34,zm0,16,9)),2&t){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,p8,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,p8,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 xm0(t,a){if(1&t&&(e.j41(0,"div",22),e.DNE(1,Pu0,6,0,"div",251)(2,Mm0,35,33),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function bm0(t,a){if(1&t){const c=e.RV6();e.qSk(),e.j41(0,"svg",159),e.nrm(1,"path",160),e.k0s(),e.joV(),e.j41(2,"p",270),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&t&&(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 ym0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",32)(1,"div",260),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",261)(3,"button",262),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",263),e.nrm(5,"path",264),e.k0s(),e.joV(),e.j41(6,"span",74),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",265),e.bIt("onFileDrop",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.dropped(l,r.selectedISO))})("onFileOver",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.fileLeave(l))}),e.DNE(10,bm0,8,6,"ng-template",266),e.k0s(),e.j41(11,"div",267)(12,"button",268),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",269),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&t){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 Fm0(t,a){if(1&t&&e.nrm(0,"error-message",33),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let vm0=(()=>{class t{constructor(c,n,l,r,m,z,F,I,J,d1,i1){this.router=c,this.api=n,this.prodSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.elementRef=F,this.attachmentService=I,this.servSpecService=J,this.resSpecService=d1,this.paginationService=i1,this.PROD_SPEC_LIMIT=h1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=h1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=h1.c.RES_SPEC_LIMIT,this.DOME_TRUST_LINK=h1.c.DOME_TRUST_LINK,this.BUNDLE_ENABLED=h1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=h1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=h1.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.currentStep=0,this.highestStep=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),e6]),brand:new p.MJ("",[p.k0.required,e6]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),e6]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),e6]),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=["endpointUrl","upstreamAddress","endpointDescription","targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.dataSpaceJsonCharacteristicTypes=["targetSpecification","serviceConfiguration","credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let N1=0;N1{"ChangedSession"===N1.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(),S2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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(v5),console.log("--"),console.log(this.prod.productSpecCharacteristic);for(let c=0;cr.name===n);-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)for(let c=0;cl.name===this.prod.productSpecCharacteristic[c].name)&&this.prodChars.push({id:this.prod.productSpecCharacteristic[c].id?this.prod.productSpecCharacteristic[c].id:"urn:ngsi-ld:characteristic:"+A4(),name:this.prod.productSpecCharacteristic[c].name,description:this.prod.productSpecCharacteristic[c].description?this.prod.productSpecCharacteristic[c].description:"",valueType:this.prod.productSpecCharacteristic[c].valueType,"@schemaLocation":this.prod.productSpecCharacteristic[c]["@schemaLocation"],productSpecCharacteristicValue:this.prod.productSpecCharacteristic[c].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(n=>"Profile Picture"===n.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:n})})}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(),S2()}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(),S2()}toggleBundleCheck(){this.prodSpecs=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getProdSpecs(!1)):this.prodSpecsBundle=[]}getProdSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingBundle=!0),n.paginationService.getItemsPaginated(n.bundlePage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.bundlePageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.bundlePage=r.page,n.loadingBundle=!1,n.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,b1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const n=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.prodSpecsBundle.splice(n,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(()=>{S2()},100),this.refreshChars()}addISO(c){const n=this.availableISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("seleccionar"),this.availableISOS.splice(n,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 n=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(r=>r.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:n,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const n=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==n&&(console.log("eliminar additional cert"),this.additionalISOS.splice(n,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){const c=this.finishChars.findIndex(n=>n.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(n=>""===n.url)}addISOValue(c){this.selectedISOS.findIndex(r=>r.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 n=["NL","BL","P","PP"];try{const l=(0,Xr0.s)(c);let r=null;"verifiableCredential"in l?r=l.verifiableCredential:"vc"in l&&(r=l.vc);const m=r?.credentialSubject;if(!m)return void(this.complianceLevel="NL");const z=m["gx:labelLevel"];this.complianceLevel="string"==typeof z&&n.includes(z)?z:"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,n){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(m=>{if(console.log("dropped"),m){const z=new FileReader;z.onload=F=>{const I=F.target.result.split(",")[1];console.log("BASE 64...."),console.log(I);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let d1={content:{name:A4()+"_"+m.name,data:I},contentType:m.type,isPublic:!0};if(!this.isValidFilename(d1.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(m.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 i1=this.selectedISOS.findIndex(N1=>N1.name===n.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{console.log(N1),-1!==i1?(this.selectedISOS[i1].url=N1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=N1.content},error:N1=>{console.error("There was an error while uploading file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.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 i1=this.finishChars.findIndex(N1=>N1.name===this.selfAtt.name);this.attachmentService.uploadFile(d1).subscribe({next:N1=>{-1!==i1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:N1.content}],this.finishChars[i1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+A4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:N1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:N1=>{console.error("There was an error while uploading the file!",N1),N1.error.error?(console.log(N1),this.errorMessage="Error: "+N1.error.error):this.errorMessage="There was an error while uploading the file!",413===N1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}this.isCurrentStep("attachments")&&(console.log(m),this.attachmentService.uploadFile(d1).subscribe({next:i1=>{console.log(i1),"img"==n?m.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=i1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:m.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:i1.content,attachmentType:m.type},this.cdr.detectChanges(),console.log("uploaded")},error:i1=>{console.error("There was an error while uploading file!",i1),i1.error.error?(console.log(i1),this.errorMessage="Error: "+i1.error.error):this.errorMessage="There was an error while uploading the file!",413===i1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},z.readAsDataURL(m)}}):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(),S2()}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(),S2()}getResSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingResourceSpec=!0),n.paginationService.getItemsPaginated(n.resourceSpecPage,n.RES_SPEC_LIMIT,c,n.resourceSpecs,n.nextResourceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.resSpecService.getResourceSpecByUser.bind(n.resSpecService)).then(r=>{n.resourceSpecPageCheck=r.page_check,n.resourceSpecs=r.items,n.nextResourceSpecs=r.nextItems,n.resourceSpecPage=r.page,n.loadingResourceSpec=!1,n.loadingResourceSpec_more=!1})})()}nextRes(){var c=this;return(0,b1.A)(function*(){yield c.getResSpecs(!0)})()}addResToSelected(c){const n=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedResourceSpecs.splice(n,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(),S2()}getServSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingServiceSpec=!0),n.paginationService.getItemsPaginated(n.serviceSpecPage,n.SERV_SPEC_LIMIT,c,n.serviceSpecs,n.nextServiceSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.servSpecService.getServiceSpecByUser.bind(n.servSpecService)).then(r=>{n.serviceSpecPageCheck=r.page_check,n.serviceSpecs=r.items,n.nextServiceSpecs=r.nextItems,n.serviceSpecPage=r.page,n.loadingServiceSpec=!1,n.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,b1.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 n=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==n?(console.log("eliminar"),this.selectedServiceSpecs.splice(n,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(()=>{S2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(n=>n.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 n=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==n&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[n].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(n,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(),S2()}getProdSpecsRel(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingprodSpecRel=!0),n.paginationService.getItemsPaginated(n.prodSpecRelPage,n.PROD_SPEC_LIMIT,c,n.prodSpecRels,n.nextProdSpecRels,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecRelPageCheck=r.page_check,n.prodSpecRels=r.items,n.nextProdSpecRels=r.nextItems,n.prodSpecRelPage=r.page,n.loadingprodSpecRel=!1,n.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,b1.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 n=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==n&&(console.log("eliminar"),this.prodRelationships.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m!n.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(n=>this.isDataSpaceCharacteristicType(n.valueType)):c.filter(n=>!this.isDataSpaceCharacteristicType(n.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?this.dataSpaceCharacteristicTypes[0]:"string"}getFormSteps(){const c=["General Info"];return this.BUNDLE_ENABLED&&c.push("Bundle"),c.push("Compliance profile"),c.push("Characteristics"),this.DATA_SPACE_ENABLED&&c.push("Dataspace Configuration"),c.push("Resource specifications"),c.push("Service specifications"),c.push("Attachments"),c.push("Relationships"),c.push("Summary"),c}getStepIndex(c){const l=1+(this.BUNDLE_ENABLED?1:0),r=l+1,m=this.DATA_SPACE_ENABLED?r+1:-1,z=r+(this.DATA_SPACE_ENABLED?2:1),F=z+1,I=F+1,J=I+1,d1=J+1;switch(c){case"general":return 0;case"bundle":return this.BUNDLE_ENABLED?1:-1;case"compliance":return l;case"characteristics":return r;case"dataspace":return m;case"resource":return z;case"service":return F;case"attachments":return I;case"relationships":return J;case"summary":return d1;default:return-1}}isCurrentStep(c){const n=this.getStepIndex(c);return n>=0&&this.currentStep===n}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,n){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(n,1),console.log(this.creatingChars))}selectDefaultChar(c,n){for(let l=0;ll.id===c.id);if(-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(r=>r.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(),S2()}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(m=>m.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(z=>z.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:"+A4(),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:"+A4(),name:this.additionalISOS[c].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[c].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const c="Compliance:SelfAtt",n=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,l=this.finishChars.findIndex(z=>z.name===c),m={id:this.selfAtt?.id?this.selfAtt.id:-1!==l&&this.finishChars[l]?.id?this.finishChars[l].id:`urn:ngsi-ld:characteristic:${A4()}`,name:c,productSpecCharacteristicValue:[{isDefault:!0,value:n}]};-1===l?this.finishChars.push(m):this.finishChars[l]=m}if(null!=this.complianceVC&&this.finishChars.push({id:this.complianceVCId?this.complianceVCId:`urn:ngsi-ld:characteristic:${A4()}`,name:"Compliance:VC",productSpecCharacteristicValue:[{isDefault:!0,value:this.complianceVC}]}),null!=this.generalForm.value.name&&null!=this.generalForm.value.version&&null!=this.generalForm.value.brand){let c=[];for(let n=0;n{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(){return 0===this.currentStep?!this.generalForm?.valid||!1:this.BUNDLE_ENABLED&&this.currentStep===this.getStepIndex("bundle")?this.prodSpecsBundle.length<2&&this.bundleChecked:this.currentStep===this.getStepIndex("compliance")&&this.checkValidISOS()}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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}getValuePreview(c,n=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>n?`${l.slice(0,n)}...`:l}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),this.isCurrentStep("compliance")&&setTimeout(()=>{S2()},100),this.isCurrentStep("resource")&&this.getResSpecs(!1),this.isCurrentStep("service")&&this.getServSpecs(!1),this.isCurrentStep("attachments")&&setTimeout(()=>{S2()},100),this.isCurrentStep("relationships")&&this.getProdSpecsRel(!1),this.isCurrentStep("summary")&&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)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}getCurrentComplianceEvidenceSignature(){const c=[],n=this.normalizeComplianceValue(this.selfAtt?.productSpecCharacteristicValue?.[0]?.value);n&&c.push(this.toComplianceEntrySignature("Compliance:SelfAtt",n));for(const l of this.selectedISOS){const r=this.normalizeComplianceName(l?.name);if(!r)continue;const m=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(r,m))}for(const l of this.additionalISOS){const r=this.normalizeComplianceName(l?.name);if(!r)continue;const m=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(r,m))}return c.sort().join("|")}normalizeComplianceName(c){const n=this.normalizeComplianceValue(c);return n?n.toLowerCase().startsWith("compliance:")?n:`Compliance:${n}`:""}normalizeComplianceValue(c){return null==c?"":String(c).trim()}toComplianceEntrySignature(c,n){return`${c.toLowerCase()}::${n}`}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(c6),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(b9),e.rXU(W6),e.rXU(u6),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-product-spec"]],viewQuery:function(n,l){if(1&n&&(e.GBs(ld0,5),e.GBs(sd0,5),e.GBs(ad0,5)),2&n){let r;e.mGM(r=e.lsd())&&(l.attachName=r.first),e.mGM(r=e.lsd())&&(l.imgURL=r.first),e.mGM(r=e.lsd())&&(l.certificationName=r.first)}},hostBindings:function(n,l){1&n&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{prod:"prod"},decls:52,vars:46,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","endpointUrl"],["value","upstreamAddress"],["value","endpointDescription"],["value","targetSpecification"],["value","serviceConfiguration"],["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,"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(n,l){1&n&&(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,rd0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,Ld0,36,26,"form",20)(27,Dd0,8,5)(28,Qd0,58,26)(29,Af0,4,2)(30,Xf0,4,2)(31,ou0,4,2)(32,zu0,26,15)(33,Iu0,5,2,"div",21)(34,xm0,3,1,"div",22),e.k0s(),e.j41(35,"div",23)(36,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(37,"svg",25),e.nrm(38,"path",26),e.k0s(),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.joV(),e.j41(41,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(42),e.nI1(43,"translate"),e.qSk(),e.j41(44,"svg",28),e.nrm(45,"path",29),e.k0s()(),e.joV(),e.j41(46,"button",30),e.bIt("click",function(){return l.updateProduct()}),e.EFF(47),e.nI1(48,"translate"),e.k0s()()()()(),e.j41(49,"request-validation-modal",31),e.bIt("closeModal",function(){return l.closeRequestValidationModal()}),e.k0s(),e.DNE(50,ym0,18,10,"div",32)(51,Fm0,1,1,"error-message",33)),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,28,"UPDATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,30,"UPDATE_PROD_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,32,"UPDATE_PROD_SPEC._update_prod")),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&&l.BUNDLE_ENABLED?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,l.isCurrentStep("attachments")?32:-1),e.R7$(),e.vxM(33,l.isCurrentStep("relationships")?33:-1),e.R7$(),e.vxM(34,l.isCurrentStep("summary")?34:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(40,od0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(40,34,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||l.isStepDisabled())("ngClass",e.l_i(43,id0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||l.isStepDisabled())),e.R7$(),e.SpI(" ",e.bMT(43,36,"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(48,38,"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(50,l.showUploadFile?50:-1),e.R7$(),e.vxM(51,l.showError?51:-1))},dependencies:[L.YU,L.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,b0,j4,T0,ge,Q0,nd0,L.vh,s1.D9]})}}return t})();const km0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),wm0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),nw=(t,a)=>({"break-all":t,"break-words":a});function Sm0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Nm0(t,a){if(1&t&&(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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_RES_SPEC._description"))}}function Em0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_RES_SPEC._no_chars")," "))}function Dm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Tm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Rm0(t,a){if(1&t&&e.DNE(0,Dm0,4,2)(1,Tm0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Am0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Im0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Pm0(t,a){if(1&t&&e.DNE(0,Am0,1,1)(1,Im0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function $m0(t,a){if(1&t&&e.DNE(0,Rm0,2,1)(1,Pm0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function jm0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Om0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Bm0(t,a){if(1&t&&e.DNE(0,jm0,4,3)(1,Om0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Vm0(t,a){if(1&t&&e.DNE(0,$m0,2,1)(1,Bm0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Um0(t,a){if(1&t){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,Vm0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function Hm0(t,a){if(1&t&&(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,Um0,12,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 Gm0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_RES_SPEC._new_char")," "))}function Ym0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&t){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 qm0(t,a){if(1&t&&e.Z7z(0,Ym0,11,4,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Xm0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Wm0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function Jm0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,Xm0,5,2,"label",80)(4,Wm0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function Qm0(t,a){if(1&t&&e.Z7z(0,Jm0,8,2,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Zm0(t,a){if(1&t&&(e.j41(0,"label",72),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",73),e.DNE(4,qm0,2,0)(5,Qm0,2,0),e.k0s()),2&t){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 Km0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 ep0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 cp0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 tp0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,Zm0,6,4),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,Km0,5,3,"div",68)(28,ep0,14,10)(29,cp0,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&t){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 np0(t,a){if(1&t&&e.DNE(0,Em0,9,3,"div",34)(1,Hm0,19,12)(2,Gm0,6,3,"div",35)(3,tp0,36,21),2&t){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 lp0(t,a){1&t&&(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 sp0(t,a){if(1&t&&(e.j41(0,"span",98),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function ap0(t,a){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function op0(t,a){if(1&t&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function ip0(t,a){if(1&t&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function rp0(t,a){if(1&t&&(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&t){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.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 dp0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function fp0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function up0(t,a){if(1&t&&e.DNE(0,dp0,4,2)(1,fp0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function mp0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function pp0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function hp0(t,a){if(1&t&&e.DNE(0,mp0,1,1)(1,pp0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function gp0(t,a){if(1&t&&e.DNE(0,up0,2,1)(1,hp0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function _p0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Lp0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Cp0(t,a){if(1&t&&e.DNE(0,_p0,4,3)(1,Lp0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function zp0(t,a){if(1&t&&e.DNE(0,gp0,2,1)(1,Cp0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Mp0(t,a){if(1&t&&(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,zp0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function xp0(t,a){if(1&t&&(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,Mp0,8,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 bp0(t,a){if(1&t&&(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,sp0,2,1,"span",98)(11,ap0,2,1)(12,op0,2,1)(13,ip0,2,1),e.k0s(),e.DNE(14,rp0,5,8)(15,xp0,19,12)),2&t){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.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 yp0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,lp0,6,0,"div",91)(2,bp0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Fp0(t,a){if(1&t){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&t){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 vp0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let kp0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.resSpecService=z,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),e6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),e6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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:h1.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(u6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-resource-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,Sm0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,Nm0,9,8,"form",17)(27,np0,4,2)(28,yp0,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,Fp0,3,5,"button",26),e.k0s()()()(),e.DNE(41,vp0,1,1,"error-message",27)),2&n&&(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,km0,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,wm0,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:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,T0,ge,Q0,s1.D9]})}}return t})();const wp0=(t,a)=>a.id,Sp0=(t,a)=>({"break-all":t,"break-words":a});function Np0(t,a){1&t&&(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 Ep0(t,a){if(1&t&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Dp0(t,a){if(1&t&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Tp0(t,a){if(1&t&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Rp0(t,a){if(1&t&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ap0(t,a){if(1&t){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,Ep0,2,1,"span",44)(5,Dp0,2,1)(6,Tp0,2,1)(7,Rp0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,Sp0,n.hasLongWord(c.name,20),!n.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 Ip0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function Pp0(t,a){if(1&t){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 $p0(t,a){if(1&t&&e.DNE(0,Pp0,5,0,"div",55),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function jp0(t,a){1&t&&(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 Op0(t,a){if(1&t&&(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,Ap0,15,10,"tr",40,wp0,!1,Ip0,7,3,"div",41),e.k0s()()(),e.DNE(21,$p0,1,1)(22,jp0,6,0),e.k0s()),2&t){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 Bp0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.resSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.searchField=new p.MJ,this.resSpecs=[],this.nextResSpecs=[],this.page=0,this.RES_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initResources()})}ngOnInit(){this.initResources()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getResSpecs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getResSpecs(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateResourceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateResourceSpec(c)}getResSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.RES_SPEC_LIMIT,c,n.resSpecs,n.nextResSpecs,{filters:n.status,partyId:n.partyId,sort:n.sort},n.resSpecService.getResourceSpecByUser.bind(n.resSpecService)).then(r=>{n.page_check=r.page_check,n.resSpecs=r.items,n.nextResSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}next(){var c=this;return(0,b1.A)(function*(){yield c.getResSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(u6),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&(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,Np0,6,0,"div",29)(52,Op0,23,14),e.k0s()),2&n&&(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:[L.YU,X2.aY,L.vh,s1.D9]})}}return t})();const Vp0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Up0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),lw=(t,a)=>({"break-all":t,"break-words":a});function Hp0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Gp0(t,a){if(1&t){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 Yp0(t,a){if(1&t){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 qp0(t,a){if(1&t){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 Xp0(t,a){if(1&t){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 Wp0(t,a){if(1&t){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 Jp0(t,a){if(1&t){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 Qp0(t,a){if(1&t){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 Zp0(t,a){if(1&t){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 Kp0(t,a){if(1&t&&(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,Gp0,5,0,"li",36)(11,Yp0,3,0)(12,qp0,5,0,"li",37)(13,Xp0,3,0)(14,Wp0,5,0,"li",38)(15,Jp0,3,0)(16,Qp0,5,0,"li",39)(17,Zp0,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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.resStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==n.resStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==n.resStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==n.resStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_RES_SPEC._description"))}}function eh0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_RES_SPEC._no_chars")," "))}function ch0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function th0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function nh0(t,a){if(1&t&&e.DNE(0,ch0,4,2)(1,th0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function lh0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function sh0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function ah0(t,a){if(1&t&&e.DNE(0,lh0,1,1)(1,sh0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function oh0(t,a){if(1&t&&e.DNE(0,nh0,2,1)(1,ah0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function ih0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function rh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function dh0(t,a){if(1&t&&e.DNE(0,ih0,4,3)(1,rh0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function fh0(t,a){if(1&t&&e.DNE(0,oh0,2,1)(1,dh0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function uh0(t,a){if(1&t){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,fh0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function mh0(t,a){if(1&t&&(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,uh0,12,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 ph0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_RES_SPEC._new_char")," "))}function hh0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&t){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 gh0(t,a){if(1&t&&e.Z7z(0,hh0,11,4,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function _h0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Lh0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function Ch0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,_h0,5,2,"label",98)(4,Lh0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function zh0(t,a){if(1&t&&e.Z7z(0,Ch0,8,2,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Mh0(t,a){if(1&t&&(e.j41(0,"label",90),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",91),e.DNE(4,gh0,2,0)(5,zh0,2,0),e.k0s()),2&t){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 xh0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 bh0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 yh0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 Fh0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,Mh0,6,4),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,xh0,5,3,"div",86)(28,bh0,14,10)(29,yh0,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&t){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 vh0(t,a){if(1&t&&e.DNE(0,eh0,9,3,"div",53)(1,mh0,19,12)(2,ph0,6,3,"div",54)(3,Fh0,36,21),2&t){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 kh0(t,a){1&t&&(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 wh0(t,a){if(1&t&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function Sh0(t,a){if(1&t&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function Nh0(t,a){if(1&t&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function Eh0(t,a){if(1&t&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function Dh0(t,a){if(1&t&&(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&t){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.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 Th0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Rh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ah0(t,a){if(1&t&&e.DNE(0,Th0,4,2)(1,Rh0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ih0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Ph0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function $h0(t,a){if(1&t&&e.DNE(0,Ih0,1,1)(1,Ph0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function jh0(t,a){if(1&t&&e.DNE(0,Ah0,2,1)(1,$h0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function Oh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Bh0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Vh0(t,a){if(1&t&&e.DNE(0,Oh0,4,3)(1,Bh0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Uh0(t,a){if(1&t&&e.DNE(0,jh0,2,1)(1,Vh0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Hh0(t,a){if(1&t&&(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,Uh0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function Gh0(t,a){if(1&t&&(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,Hh0,8,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 Yh0(t,a){if(1&t&&(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,wh0,2,1,"span",115)(11,Sh0,2,1)(12,Nh0,2,1)(13,Eh0,2,1),e.k0s(),e.DNE(14,Dh0,5,8)(15,Gh0,19,12)),2&t){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.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 qh0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,kh0,6,0,"div",108)(2,Yh0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Xh0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Wh0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.resSpecService=z,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),e6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),e6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),console.log(this.res),this.populateResInfo(),S2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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(()=>{S2()},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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{S2()},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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(u6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-resource-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,Hp0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,Kp0,22,15,"form",17)(27,vh0,4,2)(28,qh0,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,Xh0,1,1,"error-message",27)),2&n&&(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,Vp0,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,Up0,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:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,T0,ge,Q0,s1.D9]})}}return t})();const Jh0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Qh0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),sw=(t,a)=>({"break-all":t,"break-words":a});function Zh0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Kh0(t,a){if(1&t&&(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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_SERV_SPEC._description"))}}function eg0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_SERV_SPEC._no_chars")," "))}function cg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function tg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ng0(t,a){if(1&t&&e.DNE(0,cg0,4,2)(1,tg0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function lg0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function sg0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function ag0(t,a){if(1&t&&e.DNE(0,lg0,1,1)(1,sg0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function og0(t,a){if(1&t&&e.DNE(0,ng0,2,1)(1,ag0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function ig0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function rg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function dg0(t,a){if(1&t&&e.DNE(0,ig0,4,3)(1,rg0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function fg0(t,a){if(1&t&&e.DNE(0,og0,2,1)(1,dg0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ug0(t,a){if(1&t){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,fg0,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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function mg0(t,a){if(1&t&&(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,ug0,12,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 pg0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_SERV_SPEC._new_char")," "))}function hg0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&t){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 gg0(t,a){if(1&t&&e.Z7z(0,hg0,11,4,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function _g0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Lg0(t,a){if(1&t&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function Cg0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,_g0,5,2,"label",80)(4,Lg0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function zg0(t,a){if(1&t&&e.Z7z(0,Cg0,8,2,"div",74,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Mg0(t,a){if(1&t&&(e.j41(0,"label",72),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",73),e.DNE(3,gg0,2,0)(4,zg0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function xg0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 bg0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 yg0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 Fg0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,Mg0,5,1),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,xg0,5,3,"div",68)(28,bg0,14,10)(29,yg0,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&t){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 vg0(t,a){if(1&t&&e.DNE(0,eg0,9,3,"div",34)(1,mg0,19,12)(2,pg0,6,3,"div",35)(3,Fg0,36,21),2&t){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 kg0(t,a){1&t&&(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 wg0(t,a){if(1&t&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function Sg0(t,a){if(1&t&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function Ng0(t,a){if(1&t&&(e.j41(0,"span",102),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function Eg0(t,a){if(1&t&&(e.j41(0,"span",103),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function Dg0(t,a){if(1&t&&(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&t){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.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 Tg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Rg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ag0(t,a){if(1&t&&e.DNE(0,Tg0,4,2)(1,Rg0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ig0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Pg0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function $g0(t,a){if(1&t&&e.DNE(0,Ig0,1,1)(1,Pg0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function jg0(t,a){if(1&t&&e.DNE(0,Ag0,2,1)(1,$g0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function Og0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Bg0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Vg0(t,a){if(1&t&&e.DNE(0,Og0,4,3)(1,Bg0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ug0(t,a){if(1&t&&e.DNE(0,jg0,2,1)(1,Vg0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Hg0(t,a){if(1&t&&(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,Ug0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function Gg0(t,a){if(1&t&&(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,Hg0,8,10,"tr",45,e.fX1),e.k0s()()()),2&t){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 Yg0(t,a){if(1&t&&(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,wg0,2,1,"span",100)(11,Sg0,2,1)(12,Ng0,2,1)(13,Eg0,2,1),e.k0s(),e.DNE(14,Dg0,5,8)(15,Gg0,19,12)),2&t){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.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 qg0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,kg0,6,0,"div",93)(2,Yg0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Xg0(t,a){if(1&t){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&t){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 Wg0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Jg0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.servSpecService=z,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),e6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),e6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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:h1.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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(W6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["create-service-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,Zh0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,Kh0,9,8,"form",17)(27,vg0,4,2)(28,qg0,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,Xg0,3,5,"button",26),e.k0s()()()(),e.DNE(41,Wg0,1,1,"error-message",27)),2&n&&(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,Jh0,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,Qh0,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:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,T0,ge,Q0,s1.D9]})}}return t})();const Qg0=(t,a)=>a.id,Zg0=(t,a)=>({"break-all":t,"break-words":a});function Kg0(t,a){1&t&&(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 e_0(t,a){if(1&t&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function c_0(t,a){if(1&t&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function t_0(t,a){if(1&t&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function n_0(t,a){if(1&t&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function l_0(t,a){if(1&t){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,e_0,2,1,"span",44)(5,c_0,2,1)(6,t_0,2,1)(7,n_0,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,r=e.XpG(2);return e.Njj(r.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,Zg0,n.hasLongWord(c.name,20),!n.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 s_0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function a_0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function o_0(t,a){if(1&t&&e.DNE(0,a_0,6,3,"div",55),2&t){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function i_0(t,a){1&t&&(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 r_0(t,a){if(1&t&&(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,l_0,15,10,"tr",40,Qg0,!1,s_0,7,3,"div",41),e.k0s()()(),e.DNE(21,o_0,1,1)(22,i_0,6,0),e.k0s()),2&t){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 d_0=(()=>{class t{constructor(c,n,l,r,m,z,F){this.router=c,this.api=n,this.servSpecService=l,this.cdr=r,this.localStorage=m,this.eventMessage=z,this.paginationService=F,this.faIdCard=E2.cKG,this.faSort=E2.OM7,this.faSwatchbook=E2.l8N,this.searchField=new p.MJ,this.servSpecs=[],this.nextServSpecs=[],this.page=0,this.SERV_SPEC_LIMIT=h1.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.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(I=>{"ChangedSession"===I.type&&this.initServices()})}ngOnInit(){this.initServices()}ngOnDestroy(){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 l=c.organizations.find(r=>r.id==c.logged_as);this.partyId=l.partyId}this.getServSpecs(!1);let n=document.querySelector("[type=search]");n?.addEventListener("input",l=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getServSpecs(!1))}),S2()}ngAfterViewInit(){S2()}goToCreate(){this.eventMessage.emitSellerCreateServiceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateServiceSpec(c)}getServSpecs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loading=!0),n.paginationService.getItemsPaginated(n.page,n.SERV_SPEC_LIMIT,c,n.servSpecs,n.nextServSpecs,{filters:n.status,partyId:n.partyId,sort:n.sort},n.servSpecService.getServiceSpecByUser.bind(n.servSpecService)).then(r=>{n.page_check=r.page_check,n.servSpecs=r.items,n.nextServSpecs=r.nextItems,n.page=r.page,n.loading=!1,n.loading_more=!1})})()}filterInventoryByKeywords(){}onStateFilterChange(c){const n=this.status.findIndex(l=>l===c);-1!==n?(this.status.splice(n,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,b1.A)(function*(){yield c.getServSpecs(!0)})()}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getServSpecs(!1)}hasLongWord(c,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(n0.F),e.rXU(W6),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,Kg0,6,0,"div",29)(52,r_0,23,14),e.k0s()),2&n&&(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:[L.YU,X2.aY,L.vh,s1.D9]})}}return t})();const f_0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),u_0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a}),aw=(t,a)=>({"break-all":t,"break-words":a});function m_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG();return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function p_0(t,a){if(1&t){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 h_0(t,a){if(1&t){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 g_0(t,a){if(1&t){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 __0(t,a){if(1&t){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 L_0(t,a){if(1&t){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 C_0(t,a){if(1&t){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 z_0(t,a){if(1&t){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 M_0(t,a){if(1&t){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 x_0(t,a){if(1&t&&(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,p_0,5,0,"li",36)(11,h_0,3,0)(12,g_0,5,0,"li",37)(13,__0,3,0)(14,L_0,5,0,"li",38)(15,C_0,3,0)(16,z_0,5,0,"li",39)(17,M_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&t){let c;const n=e.XpG();e.Y8G("formGroup",n.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=n.generalForm.get("name"))?null:c.invalid)&&""!=n.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"==n.servStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==n.servStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==n.servStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==n.servStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_SERV_SPEC._description"))}}function b_0(t,a){1&t&&(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&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_SERV_SPEC._no_chars")," "))}function y_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function F_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function v_0(t,a){if(1&t&&e.DNE(0,y_0,4,2)(1,F_0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function k_0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function w_0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function S_0(t,a){if(1&t&&e.DNE(0,k_0,1,1)(1,w_0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function N_0(t,a){if(1&t&&e.DNE(0,v_0,2,1)(1,S_0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function E_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function D_0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function T_0(t,a){if(1&t&&e.DNE(0,E_0,4,3)(1,D_0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function R_0(t,a){if(1&t&&e.DNE(0,N_0,2,1)(1,T_0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function A_0(t,a){if(1&t){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,R_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,r=e.XpG(3);return e.Njj(r.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,aw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,aw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function I_0(t,a){if(1&t&&(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,A_0,12,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 P_0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_SERV_SPEC._new_char")," "))}function $_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),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),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&t){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 j_0(t,a){if(1&t&&e.Z7z(0,$_0,11,4,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function O_0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function B_0(t,a){if(1&t&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function V_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.selectDefaultChar(r,m))}),e.k0s(),e.DNE(3,O_0,5,2,"label",98)(4,B_0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),r=l.$implicit,m=l.$index,z=e.XpG(5);return e.Njj(z.removeCharValue(r,m))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,n.numberCharSelected?3:4)}}function U_0(t,a){if(1&t&&e.Z7z(0,V_0,8,2,"div",92,e.fX1),2&t){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function H_0(t,a){if(1&t&&(e.j41(0,"label",90),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",91),e.DNE(3,j_0,2,0)(4,U_0,2,0),e.k0s()),2&t){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function G_0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(3);return e.DH7(r.stringValue,l)||(r.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&t){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 Y_0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.numberValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.numberUnit,l)||(r.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&t){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 q_0(t,a){if(1&t){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 r=e.XpG(3);return e.DH7(r.fromValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.toValue,l)||(r.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 r=e.XpG(3);return e.DH7(r.rangeUnit,l)||(r.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&t){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 X_0(t,a){if(1&t){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 r=e.XpG(2);return e.Njj(r.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,H_0,5,1),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,G_0,5,3,"div",86)(28,Y_0,14,10)(29,q_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&t){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 W_0(t,a){if(1&t&&e.DNE(0,b_0,9,3,"div",53)(1,I_0,19,12)(2,P_0,6,3,"div",54)(3,X_0,36,21),2&t){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 J_0(t,a){1&t&&(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 Q_0(t,a){if(1&t&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function Z_0(t,a){if(1&t&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function K_0(t,a){if(1&t&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function eL0(t,a){if(1&t&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function cL0(t,a){if(1&t&&(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&t){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,aw,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 tL0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function nL0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lL0(t,a){if(1&t&&e.DNE(0,tL0,4,2)(1,nL0,4,2),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function sL0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function aL0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function oL0(t,a){if(1&t&&e.DNE(0,sL0,1,1)(1,aL0,1,1),2&t){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function iL0(t,a){if(1&t&&e.DNE(0,lL0,2,1)(1,oL0,2,1),2&t){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function rL0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function dL0(t,a){if(1&t&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function fL0(t,a){if(1&t&&e.DNE(0,rL0,4,3)(1,dL0,4,3),2&t){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function uL0(t,a){if(1&t&&e.DNE(0,iL0,2,1)(1,fL0,2,1),2&t){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function mL0(t,a){if(1&t&&(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,uL0,2,1,null,null,e.fX1),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,aw,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,aw,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function pL0(t,a){if(1&t&&(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,mL0,8,10,"tr",64,e.fX1),e.k0s()()()),2&t){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 hL0(t,a){if(1&t&&(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,Q_0,2,1,"span",115)(11,Z_0,2,1)(12,K_0,2,1)(13,eL0,2,1),e.k0s(),e.DNE(14,cL0,5,8)(15,pL0,19,12)),2&t){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,aw,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 gL0(t,a){if(1&t&&(e.j41(0,"div",18),e.DNE(1,J_0,6,0,"div",108)(2,hL0,16,14),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function _L0(t,a){if(1&t&&e.nrm(0,"error-message",27),2&t){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let LL0=(()=>{class t{constructor(c,n,l,r,m,z){this.router=c,this.cdr=n,this.localStorage=l,this.eventMessage=r,this.elementRef=m,this.servSpecService=z,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),e6]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),e6]),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,P1.Q)(this.destroy$)).subscribe(F=>{"ChangedSession"===F.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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,n){for(let l=0;ll.id===c.id);-1!==n&&(console.log("eliminar"),this.prodChars.splice(n,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,n){c.className=(" "+c.className+" ").replace(" "+n+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,n){c.className+=" "+n}unselectMenu(c,n){null!=c&&(c.className.match(n)?this.removeClass(c,n):console.log("already unselected"))}selectMenu(c,n){null!=c&&(c.className.match(n)?console.log("already selected"):this.addClass(c,n))}selectStep(c,n){const l=this.stepsElements.findIndex(m=>m===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 m=0;mm===n);if(-1!==l){this.stepsCircles.splice(r,1),this.selectMenu(document.getElementById(n),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(n),"border-gray-400");for(let m=0;m 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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{S2()},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(n){return new(n||t)(e.rXU(N2.Ix),e.rXU(e.gRc),e.rXU(C2.s),e.rXU(j2),e.rXU(e.aKT),e.rXU(W6))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["update-service-spec"]],hostBindings:function(n,l){1&n&&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(n,l){1&n&&(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,m_0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,x_0,22,15,"form",17)(27,W_0,4,2)(28,gL0,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,_L0,1,1,"error-message",27)),2&n&&(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,f_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,u_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_SERV_SPEC._update_serv")," "),e.R7$(2),e.vxM(43,l.showError?43:-1))},dependencies:[L.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,T0,ge,Q0,s1.D9]})}}return t})(),dE1=(()=>{class t{constructor(c){this.http=c}init(){return new Promise((c,n)=>{const l={next:r=>{const m=r.ai??{};h1.c.SIOP_INFO=r.siop,h1.c.CHAT_API=r.chat,h1.c.MATOMO_SITE_ID=r.matomoId,h1.c.MATOMO_TRACKER_URL=r.matomoUrl,h1.c.KNOWLEDGE_BASE_URL=r.knowledgeBaseUrl,h1.c.TICKETING_SYSTEM_URL=r.ticketingUrl,h1.c.SEARCH_ENABLED=!0,h1.c.DOME_TRUST_LINK=r.domeTrust,h1.c.DOME_ABOUT_LINK=r.domeAbout,h1.c.PURCHASE_ENABLED=r.purchaseEnabled??!0,h1.c.DOME_REGISTER_LINK=r.domeRegister,h1.c.DOME_CUSTOMER_REGISTER_LINK=r.domeRegisterCustomer,h1.c.DOME_PUBLISH_LINK=r.domePublish,h1.c.KB_ONBOARDING_GUIDELINES_URL=r.domeOnboardingGuidelines,h1.c.KB_GUIDELNES_URL=r.domeGuidelines,h1.c.REGISTRATION_FORM_URL=r.domeRegistrationForm,h1.c.DFT_CATALOG_ID=r.defaultId,h1.c.SELLER_ROLE=r.roles?.seller,h1.c.BUYER_ROLE=r.roles?.customer,h1.c.ADMIN_ROLE=r.roles?.admin,h1.c.ORG_ADMIN_ROLE=r.roles?.orgAdmin,h1.c.CERTIFIER_ROLE=r.roles?.certifier,h1.c.quoteApi=r.quoteApi??"http://localhost:8080/quoteManagement",h1.c.analytics=r.analytics??"https://analytics.dome-marketplace-sbx.org/",h1.c.feedbackCampaign=r.feedbackCampaign??!1,h1.c.feedbackCampaignExpiration=r.feedbackCampaign??H2().add(1,"week").unix(),h1.c.providerThemeName=r.theme??"default",h1.c.QUOTES_ENABLED=r.quotesEnabled??!1,h1.c.TENDER_ENABLED=r.tenderingEnabled??!1,h1.c.DATA_SPACE_ENABLED=r.dataSpaceEnabled??!1,h1.c.LEAR_URL=r.learUrl??"",h1.c.LAUNCH_VALIDATION_ENABLED=r.launchValidationEnabled??!1,h1.c.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED=r.tenderDevButtonsOpenCloseEnabled??!1,h1.c.AI_SEARCH_ENABLED=m.aiEnabled??r.aiEnabled??!1,h1.c.AI_SEARCH_API_KEY=m.aiApiKey??r.aiApiKey??"",h1.c.AI_SEARCH_API_URL=m.aiApiUrl??r.aiApiUrl??"",h1.c.AI_SEARCH_PROFILE=m.aiSearchProfile??r.aiSearchProfile??"",c(r)},error:r=>{n(r)},complete:()=>{}};this.http.get(`${h1.c.BASE_URL}/config`).subscribe(l)})}static{this.\u0275fac=function(n){return new(n||t)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var CL0=v(9437);class zL0{constructor(a,c){this.http=a,this.themeService=c}getTranslation(a){const c=this.themeService.getCurrentThemeConfig()?.name,n=`assets/i18n/themes/${a}-${c}.json`;return(0,X3.p)([this.http.get(`assets/i18n/${a}.json`),this.http.get(n).pipe((0,CL0.W)(()=>(0,a1.of)({})))]).pipe((0,w0.T)(([r,m])=>this.deepMerge(r,m)))}deepMerge(a,c){const n={...a};return this.isObject(a)&&this.isObject(c)&&Object.keys(c).forEach(l=>{this.isObject(c[l])?l in a?n[l]=this.deepMerge(a[l],c[l]):Object.assign(n,{[l]:c[l]}):Object.assign(n,{[l]:c[l]})}),n}isObject(a){return a&&"object"==typeof a&&!Array.isArray(a)}}function ML0(t,a){1&t&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"_yes")))}function xL0(t,a){1&t&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"_no")))}function bL0(t,a){if(1&t){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,ML0,3,3,"span",9)(7,xL0,3,3,"span",10),e.k0s(),e.j41(8,"td",11)(9,"button",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.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),r=l.$implicit,m=l.$index,z=e.XpG();return e.Njj(z.confirmDelete(r,m))}),e.qSk(),e.j41(13,"svg",16),e.nrm(14,"path",17),e.k0s()()()()}if(2&t){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 yL0(t,a){1&t&&(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&t&&(e.R7$(5),e.JRh(e.bMT(6,1,"FORMS.PRICE_PLANS._no_price_plans")))}function FL0(t,a){if(1&t){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&t&&(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 vL0=(()=>{class t{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,n){this.pricePlanToDelete=c,this.planIndex=n,this.showDeleteModal=!0}deletePricePlan(){this.pricePlanToDelete&&this.planIndex>=0&&(this.delete.emit(this.planIndex),this.showDeleteModal=!1,this.pricePlanToDelete=null)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,bL0,15,4,"tr",5,e.Vm6,!1,yL0,7,3,"tr"),e.k0s()()(),e.DNE(20,FL0,15,12,"div",6)),2&n&&(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:[L.bT,s1.h,s1.D9]})}}return t})();const kL0=(t,a)=>a.id;function wL0(t,a){if(1&t){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,r=e.XpG();return e.Njj(r.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,r=e.XpG();return e.Njj(r.confirmDelete(l))}),e.qSk(),e.j41(12,"svg",13),e.nrm(13,"path",14),e.k0s()()()()}if(2&t){const c=a.$implicit,n=e.XpG();e.R7$(2),e.JRh(c.name),e.R7$(2),e.JRh(c.description),e.R7$(2),e.JRh(n.getPriceTypeLabel(c.priceType))}}function SL0(t,a){1&t&&(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&t&&(e.R7$(6),e.JRh(e.bMT(7,1,"FORMS.PRICE_PLANS._no_price_plans_components")))}function NL0(t,a){if(1&t){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&t&&(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 EL0=(()=>{class t{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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,wL0,14,3,"tr",5,kL0,!1,SL0,8,3,"tr"),e.k0s()()(),e.DNE(20,NL0,15,12,"div",6)),2&n&&(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:[L.bT,s1.h,s1.D9]})}}return t})();const DL0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),TL0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),RL0=()=>({standalone:!0});function AL0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_required")," "))}function IL0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_limit")," "))}function PL0(t,a){1&t&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_positive")," "))}function $L0(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,AL0,3,3,"div")(2,IL0,3,3)(3,PL0,3,3),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.vxM(1,null!=(c=n.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.required?1:null!=(c=n.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.max?2:null!=(c=n.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.min&&(null!=(c=n.priceComponentForm.get("price"))&&c.touched||null!=(c=n.priceComponentForm.get("price"))&&c.dirty)?3:-1)}}function jL0(t,a){1&t&&(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&t&&(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 OL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function BL0(t,a){if(1&t&&(e.j41(0,"option",37),e.EFF(1,"Select a characteristic"),e.k0s(),e.Z7z(2,OL0,2,2,"option",38,e.fX1)),2&t){const c=e.XpG(2);e.R7$(2),e.Dyx(c.filteredChars)}}function VL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function UL0(t,a){if(1&t&&e.DNE(0,VL0,2,2,"option",38),2&t){const c=a.$implicit,n=e.XpG(3);e.vxM(0,n.selectedCharacteristic.id!=c.id?0:-1)}}function HL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,UL0,1,1,null,null,e.fX1)),2&t){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 GL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function YL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.JRh(c.value)}}function qL0(t,a){if(1&t&&e.DNE(0,GL0,2,3,"option",38)(1,YL0,2,2),2&t){const c=a.$implicit,n=e.XpG(3);e.vxM(0,n.hasKey(c,"unitOfMeasure")?0:1)}}function XL0(t,a){if(1&t){const c=e.RV6();e.j41(0,"select",39),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.changePriceComponentCharValue(l))}),e.Z7z(1,qL0,2,1,null,null,e.fX1),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.Dyx(c.selectedCharacteristic.productSpecCharacteristicValue)}}function WL0(t,a){if(1&t&&(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&t){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 JL0(t,a){if(1&t){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,jL0,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 r=e.XpG();return e.Njj(r.changePriceComponentChar(l))}),e.DNE(13,BL0,4,0)(14,HL0,4,2),e.k0s(),e.DNE(15,XL0,3,0,"select",34),e.k0s(),e.DNE(16,WL0,13,4,"div",35)}if(2&t){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 QL0(t,a){1&t&&(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&t&&(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 ZL0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function KL0(t,a){if(1&t&&(e.j41(0,"option",37),e.EFF(1,"Select a usage specification"),e.k0s(),e.Z7z(2,ZL0,2,2,"option",38,e.fX1)),2&t){const c=e.XpG(2);e.R7$(2),e.Dyx(c.usageSpecs)}}function eC0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function cC0(t,a){if(1&t&&e.DNE(0,eC0,2,2,"option",38),2&t){const c=a.$implicit,n=e.XpG(3);e.vxM(0,c.name!=n.selectedUsageSpec.name?0:-1)}}function tC0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,cC0,1,1,null,null,e.fX1)),2&t){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 nC0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function lC0(t,a){if(1&t&&e.Z7z(0,nC0,2,2,"option",38,e.fX1),2&t){const c=e.XpG(3);e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function sC0(t,a){if(1&t&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function aC0(t,a){if(1&t&&e.DNE(0,sC0,2,2,"option",38),2&t){const c=a.$implicit,n=e.XpG(4);e.vxM(0,c.name!=n.selectedMetric?0:-1)}}function oC0(t,a){if(1&t&&(e.j41(0,"option",55),e.EFF(1),e.k0s(),e.Z7z(2,aC0,1,1,null,null,e.fX1)),2&t){const c=e.XpG(3);e.R7$(),e.JRh(c.selectedMetric),e.R7$(),e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function iC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"select",54),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.changePriceComponentMetric(l))}),e.DNE(1,lC0,2,0)(2,oC0,4,1),e.k0s()}if(2&t){const c=e.XpG(2);e.R7$(),e.vxM(1,c.selectedMetric?2:1)}}function rC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",32)(1,"select",52),e.bIt("change",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.changePriceComponentUsageSpec(l))}),e.DNE(2,KL0,4,0)(3,tC0,4,2),e.k0s(),e.DNE(4,iC0,3,1,"select",53),e.k0s()}if(2&t){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 dC0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_positive")," "))}function fC0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_limit")," "))}function uC0(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,dC0,3,3,"div")(2,fC0,3,3),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=n.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.min?1:null!=(c=n.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.max?2:-1)}}function mC0(t,a){1&t&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._duration_positive")," "))}function pC0(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,mC0,3,3,"div"),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=n.priceComponentForm.get("discountDuration"))&&null!=c.errors&&c.errors.min?1:-1)}}function hC0(t,a){if(1&t&&(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,uC0,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,pC0,2,1,"div",11),e.k0s()),2&t){let c,n,l,r;const m=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=m.priceComponentForm.get("discountValue"))?null:c.invalid)&&""!=m.priceComponentForm.value.discountValue||null!=(c=m.priceComponentForm.get("discountValue"))&&c.touched&&""==m.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!=(n=m.priceComponentForm.get("discountValue"))&&n.invalid&&null!=(n=m.priceComponentForm.get("discountValue"))&&n.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=m.priceComponentForm.get("discountDuration"))?null:l.invalid)&&""!=m.priceComponentForm.value.discountDuration||null!=(l=m.priceComponentForm.get("discountDuration"))&&l.touched&&""==m.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!=(r=m.priceComponentForm.get("discountDuration"))&&r.invalid&&null!=(r=m.priceComponentForm.get("discountDuration"))&&r.touched?33:-1)}}let gC0=(()=>{class t{constructor(c,n,l,r){this.fb=c,this.cdr=n,this.usageService=l,this.localStorage=r,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;cn.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 n=this.priceComponentForm.get("selectedCharacteristic")?.value;if(Array.isArray(n)&&n.length>0){const r=n[0]?.productSpecCharacteristicValue;this.showValueSelect=!(Array.isArray(r)&&r.length>0&&"valueFrom"in r[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(n=>n.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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.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 n=this.prodChars.find(l=>l.id===c.target.value);this.selectedCharacteristic=n,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 n={id:this.selectedCharacteristic.id,name:this.selectedCharacteristic.name,description:this.selectedCharacteristic.description||"",valueType:this.selectedCharacteristic.valueType};return this.showValueSelect?n.productSpecCharacteristicValue=[this.selectedCharacteristic.productSpecCharacteristicValue.find(l=>String(l.value)===String(c))]:this.selectedCharacteristic.productSpecCharacteristicValue?.[0]&&(n.productSpecCharacteristicValue=[{valueFrom:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom,valueTo:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo,isDefault:!0}]),n}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(n=>n.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,n){return n in c}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(Ze),e.rXU(C2.s))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-price-component-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){if(1&n&&(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 m;return null==(m=l.priceComponentForm.get("price"))?null:m.markAsTouched()}),e.k0s(),e.DNE(22,$L0,4,1,"div",11),e.k0s(),e.DNE(23,JL0,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,QL0,17,15,"div")(42,rC0,5,2),e.j41(43,"div",17)(44,"input",18),e.mxI("ngModelChange",function(m){return e.DH7(l.showDiscount,m)||(l.showDiscount=m),m}),e.k0s(),e.j41(45,"label",19),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.DNE(48,hC0,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&n){let r,m,z;e.Y8G("ngClass",e.l_i(46,DL0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(49,TL0,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==(r=l.priceComponentForm.get("price"))?null:r.invalid)&&""!=l.priceComponentForm.value.price||null!=(r=l.priceComponentForm.get("price"))&&r.touched&&""==l.priceComponentForm.value.price?"border-red-600":"dark:border-gray-600"),e.R7$(),e.vxM(22,null!=(m=l.priceComponentForm.get("price"))&&m.invalid&&(null!=(m=l.priceComponentForm.get("price"))&&m.touched||null!=(m=l.priceComponentForm.get("price"))&&m.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==(z=l.priceComponentForm.get("priceType"))?null:z.value)||"recurring-prepaid"===(null==(z=l.priceComponentForm.get("priceType"))?null:z.value)?41:"usage"===(null==(z=l.priceComponentForm.get("priceType"))?null:z.value)?42:-1),e.R7$(3),e.R50("ngModel",l.showDiscount),e.Y8G("ngModelOptions",e.lJ4(53,RL0)),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,ge,s1.h,s1.D9,L.YU]})}}return t})();const _C0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),LC0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),CC0=(t,a)=>({"bg-primary-100 hover:bg-primary-50":t,"bg-gray-400 cursor-not-allowed":a});function zC0(t,a){if(1&t&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&t){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 MC0(t,a){if(1&t){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 r=e.XpG().$index,m=e.XpG(2);return e.Njj(m.changeProfileValue(r,l))}),e.k0s(),e.j41(4,"span",16),e.EFF(5),e.k0s(),e.DNE(6,zC0,2,2,"span",17),e.j41(7,"span",18),e.EFF(8),e.k0s()()}if(2&t){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 xC0(t,a){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.SpI("(",c.unitOfMeasure,")")}}function bC0(t,a){if(1&t&&(e.j41(0,"option",22),e.EFF(1),e.DNE(2,xC0,2,1,"span",23),e.k0s()),2&t){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 yC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"select",20),e.bIt("change",function(l){e.eBV(c);const r=e.XpG(2).$index,m=e.XpG(2);return e.Njj(m.changeProfileValue(r,l))}),e.DNE(1,bC0,3,4,"option",21),e.k0s()}if(2&t){const c=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",c.value.options)}}function FC0(t,a){if(1&t&&e.DNE(0,yC0,2,1,"select",19),2&t){const c=e.XpG().$implicit;e.Y8G("ngIf",!(null!=c.value.options&&null!=c.value.options[0]&&c.value.options[0].valueFrom))}}function vC0(t,a){if(1&t&&(e.j41(0,"div",8)(1,"h5",12),e.EFF(2),e.k0s(),e.DNE(3,MC0,9,6,"div",13)(4,FC0,1,1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(2),e.SpI("",c.value.name,":"),e.R7$(),e.vxM(3,n.hasKey(null==c?null:c.value.options[0],"valueFrom")?3:4)}}function kC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",7),e.Z7z(1,vC0,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&t){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,CC0,c.form.valid,c.form.invalid)),e.R7$(),e.SpI(" ",e.bMT(9,5,"FORMS.PRICE_PLANS._save")," ")}}function wC0(t,a){1&t&&(e.j41(0,"div",24)(1,"span",25),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._prod_spec_no_chars")))}let SC0=(()=>{class t{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;lz.name===r)&&!r.startsWith("Compliance:")&&!m&&"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 n=c.productSpecCharacteristicValue.find(r=>r.isDefault),l=n?.value??n?.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,n){const l=n.target.value;let r=l;"true"===l?r=!0:"false"===l&&(r=!1),this.characteristics.at(c).patchValue({selectedValue:r}),console.log(this.characteristics.at(c))}mapFormToProfile(){return this.characteristics.value.map(n=>({id:n.id,name:n.name,description:n.description||"",productSpecCharacteristicValue:n.options.map(l=>((!("value"in l)||"valueFrom"in l)&&(l.value="unitOfMeasure"in l?Number(n.selectedValue):n.selectedValue),{...l,isDefault:String(l.value)===String(n.selectedValue)}))}))}hasKey(c,n){return c?.hasOwnProperty(n)}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(n){return new(n||t)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-configuration-profile-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){1&n&&(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,kC0,10,10)(10,wC0,4,3),e.k0s()()),2&n&&(e.Y8G("ngClass",e.l_i(6,_C0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngClass",e.sMw(9,LC0,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:[L.YU,L.bT,L.Sq,s1.h,s1.D9]})}}return t})();const NC0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),EC0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),DC0=()=>({standalone:!0});function TC0(t,a){if(1&t&&(e.j41(0,"option",15),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.E5c(" ",c.name," (",c.productSpecCharacteristicValue[0].valueFrom," - ",c.productSpecCharacteristicValue[0].valueTo,") ")}}function RC0(t,a){1&t&&(e.j41(0,"div",16)(1,"span",17),e.EFF(2,"Please select a range characteristic to start creating tier pricing."),e.k0s()())}function AC0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.removeMarker(l))}),e.k0s(),e.j41(3,"span",28),e.EFF(4),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG(2);e.xc7("left",(c-n.rangeMin)/(n.rangeMax-n.rangeMin)*100,"%"),e.R7$(4),e.SpI(" ",c," ")}}function IC0(t,a){if(1&t){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 r=e.eBV(c).index,m=e.XpG(3);return e.Njj(m.onMarkerChange(r,l))}),e.k0s(),e.j41(4,"button",42),e.bIt("click",function(){const l=e.eBV(c).index,r=e.XpG(3);return e.Njj(r.removeMarker(l))}),e.qSk(),e.j41(5,"svg",43),e.nrm(6,"path",44),e.k0s()()()}if(2&t){const c=a.$implicit,n=a.index,l=e.XpG(3);e.R7$(2),e.SpI("Marker ",n+1,":"),e.R7$(),e.Y8G("value",c)("min",l.rangeMin+1)("max",l.rangeMax-1)}}function PC0(t,a){if(1&t&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",37),e.DNE(4,IC0,7,4,"div",38),e.k0s()()),2&t){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 $C0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",57),e.nrm(1,"path",58),e.k0s())}function jC0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",59),e.nrm(1,"path",60),e.k0s())}function OC0(t,a){if(1&t&&(e.j41(0,"div",61),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.Lme(" Price: ",c.priceComponent.price," | Type: ",c.priceComponent.priceType," ")}}function BC0(t,a){1&t&&(e.qSk(),e.nrm(0,"path",23))}function VC0(t,a){1&t&&(e.qSk(),e.nrm(0,"path",65))}function UC0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){e.eBV(c);const l=e.XpG().index,r=e.XpG(3);return e.Njj(r.openPriceForm(l))}),e.qSk(),e.j41(1,"svg",22),e.DNE(2,BC0,1,0,"path",63)(3,VC0,1,0,"path",64),e.k0s(),e.EFF(4),e.k0s()}if(2&t){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 HC0(t,a){1&t&&(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 GC0(t,a){if(1&t&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(6);e.Y8G("value",c.id)("selected",(null==n.selectedUsageSpec?null:n.selectedUsageSpec.id)===c.id),e.R7$(),e.SpI(" ",c.name," ")}}function YC0(t,a){if(1&t&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&t){const c=a.$implicit,n=e.XpG(7);e.Y8G("value",c.name)("selected",n.selectedMetric===c.name),e.R7$(),e.SpI(" ",c.name," ")}}function qC0(t,a){if(1&t){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 r=e.XpG(6);return e.Njj(r.changePriceComponentMetric(l))}),e.DNE(4,YC0,2,3,"option",92),e.k0s()()}if(2&t){const c=e.XpG(6);e.R7$(4),e.Y8G("ngForOf",c.selectedUsageSpec.specCharacteristic)}}function XC0(t,a){if(1&t){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 r=e.XpG(5);return e.Njj(r.changePriceComponentUsageSpec(l))}),e.j41(5,"option",8),e.EFF(6,"Select a usage specification"),e.k0s(),e.DNE(7,GC0,2,3,"option",92),e.k0s()(),e.DNE(8,qC0,5,1,"div",11),e.k0s()}if(2&t){const c=e.XpG(5);e.R7$(7),e.Y8G("ngForOf",c.usageSpecs),e.R7$(),e.Y8G("ngIf",c.showMetricSelect)}}function WC0(t,a){1&t&&(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 JC0(t,a){if(1&t){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,HC0,12,0,"div",11)(27,XC0,9,2,"div",77),e.j41(28,"div",78)(29,"input",79),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(4);return e.DH7(r.showDiscount,l)||(r.showDiscount=l),e.Njj(l)}),e.k0s(),e.j41(30,"label",80),e.EFF(31," Include Discount "),e.k0s()(),e.DNE(32,WC0,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&t){let c,n,l;const r=e.XpG(4);e.R7$(),e.Y8G("formGroup",r.priceForm),e.R7$(8),e.Y8G("ngClass",null!=(c=r.priceForm.get("price"))&&c.invalid&&null!=(c=r.priceForm.get("price"))&&c.touched?"border-red-500":""),e.R7$(17),e.Y8G("ngIf","recurring"===(null==(n=r.priceForm.get("priceType"))?null:n.value)||"recurring-prepaid"===(null==(n=r.priceForm.get("priceType"))?null:n.value)),e.R7$(),e.Y8G("ngIf","usage"===(null==(l=r.priceForm.get("priceType"))?null:l.value)),e.R7$(2),e.R50("ngModel",r.showDiscount),e.Y8G("ngModelOptions",e.lJ4(9,DC0)),e.R7$(3),e.Y8G("ngIf",r.showDiscount),e.R7$(4),e.Y8G("disabled",r.priceForm.invalid)("ngClass",r.priceForm.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer")}}function QC0(t,a){if(1&t&&(e.j41(0,"div",47)(1,"div",48)(2,"div",49)(3,"div",39),e.DNE(4,$C0,2,0,"svg",50)(5,jC0,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,OC0,2,2,"div",54),e.k0s(),e.DNE(11,UC0,5,4,"button",55),e.k0s(),e.DNE(12,JC0,38,10,"div",56),e.k0s()),2&t){const c=a.$implicit,n=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 ",n+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 ZC0(t,a){if(1&t&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",45),e.DNE(4,QC0,13,10,"div",46),e.k0s()()),2&t){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 KC0(t,a){if(1&t&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.R7$(),e.JRh(c)}}function ez0(t,a){if(1&t&&(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,KC0,2,1,"li",108),e.k0s()()()),2&t){const c=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",c.validationErrors)}}function cz0(t,a){if(1&t){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,AC0,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,PC0,5,3,"div",31)(23,ZC0,5,3,"div",31)(24,ez0,6,1,"div",31),e.k0s()}if(2&t){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 tz0=(()=>{class t{constructor(c,n,l,r){this.cdr=c,this.fb=n,this.usageService=l,this.localStorage=r,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 n=c.productSpecCharacteristicValue?.[0];return n&&"valueFrom"in n&&"valueTo"in n}),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-H2().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let n=c.organizations.find(l=>l.id==c.logged_as);this.partyId=n.partyId}}onCharacteristicChange(c){const n=c.target.value;if(!n)return this.selectedCharacteristic=null,void this.resetSlider();if(this.selectedCharacteristic=this.rangeCharacteristics.find(l=>l.id===n),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((m,z)=>m-z),this.rangeMax];let n=0,l=0;for(let m=0;mn&&(n=z,l=m)}const r=Math.floor((c[l]+c[l+1])/2);this.sliderMarkers.push(r)}this.updateSubRanges()}removeMarker(c){this.sliderMarkers.splice(c,1),this.updateSubRanges()}onMarkerChange(c,n){const l=parseInt(n.target.value,10);this.sliderMarkers[c]=l,this.updateSubRanges()}updateSubRanges(){if(!this.selectedCharacteristic)return;const c=[this.rangeMin,...this.sliderMarkers.sort((l,r)=>l-r),this.rangeMax],n=[];for(let l=0;lI.valueFrom===r&&I.valueTo===z);n.push({id:`temp-tier-${l}`,valueFrom:r,valueTo:z,name:`${this.selectedCharacteristic.name} ${r}-${z}`,priceComponent:F?.priceComponent||null})}this.subRanges=n,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(r=>!r.priceComponent);c.length>0&&this.validationErrors.push(`${c.length} subrange(s) need price configuration`);for(let r=0;r=z.valueFrom&&this.validationErrors.push(`Subranges cannot overlap: ${m.name} and ${z.name}`)}}openPriceForm(c){this.subRanges.forEach(r=>r.isEditing=!1);const n=this.subRanges[c];this.editingSubRangeIndex=c,n.isEditing=!0;const l=n.priceComponent;this.priceForm=this.fb.group({name:[l?.name||n.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(r=>r.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(n=>n.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],n=this.priceForm.value,l={id:c.priceComponent?.id||`temp-tier-${Date.now()}-${this.editingSubRangeIndex}`,name:n.name,price:n.price,description:n.description,priceType:n.priceType,recurringPeriod:n.recurringPeriod,discountValue:this.showDiscount?n.discountValue:null,discountUnit:this.showDiscount?n.discountUnit:null,discountDuration:this.showDiscount?n.discountDuration:null,discountDurationUnit:this.showDiscount?n.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"===n.priceType&&(l.usageUnit=n.usageUnit,l.usageSpecId=n.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(n=>null!==n.priceComponent).map(n=>n.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,n){return n.id}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc),e.rXU(p.ok),e.rXU(Ze),e.rXU(C2.s))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-tier-pricing-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){1&n&&(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(m){return l.onCharacteristicChange(m)}),e.j41(11,"option",8),e.EFF(12,"-- Select a characteristic --"),e.k0s(),e.DNE(13,TC0,2,4,"option",9),e.k0s()(),e.DNE(14,RC0,3,0,"div",10)(15,cz0,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&n&&(e.Y8G("ngClass",e.l_i(7,NC0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(10,EC0,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,L.YU,L.bT,L.Sq]})}}return t})();const nz0=(t,a)=>a.code,lz0=(t,a)=>({"opacity-100":t,"opacity-0 pointer-events-none":a}),sz0=(t,a,c)=>({"translate-x-0":t,"translate-x-full":a,"-translate-x-full":c}),az0=(t,a)=>({"bg-primary-100 hover:bg-primary-50":t,"bg-gray-400 cursor-not-allowed":a});function oz0(t,a){1&t&&e.nrm(0,"div",21)}function iz0(t,a){1&t&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._unique")))}function rz0(t,a){1&t&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._mandatory")))}function dz0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2).$implicit;e.Lme(" ",c.selectedValue.value," ",c.selectedValue.unitOfMeasure||""," ")}}function fz0(t,a){if(1&t&&e.EFF(0),2&t){const c=e.XpG(2).$implicit;e.SpI(" ",c.selectedValue," ")}}function uz0(t,a){if(1&t&&e.DNE(0,dz0,1,2)(1,fz0,1,1),2&t){const c=e.XpG().$implicit;e.vxM(0,void 0!==(null==c.selectedValue?null:c.selectedValue.value)?0:1)}}function mz0(t,a){1&t&&(e.EFF(0),e.nI1(1,"translate")),2&t&&e.SpI(" ",e.bMT(1,1,"FORMS.PRICE_PLANS._no_value_selected")," ")}function pz0(t,a){if(1&t&&(e.j41(0,"tr",50)(1,"td",51),e.EFF(2),e.k0s(),e.j41(3,"td",51),e.DNE(4,uz0,2,1)(5,mz0,2,3),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.vxM(4,null!=c.selectedValue?4:5)}}function hz0(t,a){if(1&t){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,pz0,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&t){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 gz0(t,a){if(1&t){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&t){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 _z0(t,a){if(1&t&&e.DNE(0,hz0,31,20)(1,gz0,10,6),2&t){const c=e.XpG(2);e.vxM(0,c.getProcessedProfileData().length>0?0:1)}}function Lz0(t,a){1&t&&(e.j41(0,"div",52)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._price_comp_with_chars")))}function Cz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-configuration-profile-drawer",55),e.bIt("save",function(l){e.eBV(c);const r=e.XpG(2);return e.Njj(r.updateConfigurationProfile(l))})("close",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showConfigurationDrawer=!1)}),e.k0s()}if(2&t){const c=e.XpG(2);e.Y8G("profileData",c.getProfileData())}}function zz0(t,a){if(1&t&&(e.j41(0,"option",27),e.EFF(1),e.k0s()),2&t){let c;const n=a.$implicit,l=e.XpG(2);e.FS9("value",n.code),e.Y8G("selected",n.code===(null==(c=l.formGroup.get("currency"))?null:c.value)),e.R7$(),e.Lme("(",n.code,") ",n.name,"")}}function Mz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",9)(1,"h3",10),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,_z0,2,1)(5,Lz0,4,3)(6,Cz0,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,zz0,2,4,"option",27,nz0),e.k0s()(),e.j41(18,"div",28)(19,"app-price-components-table",29),e.bIt("edit",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.editPriceComponent(l))})("delete",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.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&t){let c;const n=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,11,"FORMS.PRICE_PLANS._config_profile")," "),e.R7$(2),e.vxM(4,n.checkPriceCompChars()?5:4),e.R7$(2),e.Y8G("ngIf",n.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(n.currencies),e.R7$(3),e.Y8G("priceComponents",null==(c=n.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",!n.hasRangeCharacteristics()||n.hasProfilePricePlan())("ngClass",n.hasRangeCharacteristics()&&!n.hasProfilePricePlan()?"bg-green-500 hover:bg-green-600 cursor-pointer":"bg-gray-400 cursor-not-allowed opacity-50")("title",n.hasProfilePricePlan()?"Tier pricing is not available when a configuration profile is set":n.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 xz0(t,a){if(1&t&&(e.j41(0,"div",14)(1,"span",22),e.EFF(2),e.k0s()()),2&t){const c=e.XpG();e.R7$(2),e.JRh(c.rangeValidationError)}}function bz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-component-drawer",56),e.bIt("save",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.closePriceComponentDrawer(l))})("close",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.closePriceComponentDrawer(l))}),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("component",c.editingComponent)("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)("profileData",c.checkProfileData())}}function yz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-tier-pricing-drawer",57),e.bIt("saveTierPricing",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.closeTierPricingDrawer(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeTierPricingDrawer(null))}),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)}}let Fz0=(()=>{class t{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=[$E.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,P1.Q)(this.destroy$)).subscribe(n=>{n?this.formGroup.get("priceType")?.setValue(""):this.formGroup.get("priceType")?.setValue("custom")}),this.formGroup.valueChanges.pipe((0,P1.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={},n={},l=this.getRangeCharacteristics();for(const m of l){const z=m.productSpecCharacteristicValue[0];c[m.id]={totalRange:{from:Number(z.valueFrom),to:Number(z.valueTo)}},n[m.id]=m.name}const r=this.formGroup.get("priceComponents")?.value||[];for(const m of r){const z=m.selectedCharacteristic?.[0];if(z&&c[z.id]){const F=z.productSpecCharacteristicValue?.[0];if(F&&"valueFrom"in F&&"valueTo"in F){const I=Number(F.valueFrom),J=Number(F.valueTo);c[z.id][I]||(c[z.id][I]=[]),c[z.id][I].push(J)}}}for(const[m,z]of Object.entries(c)){const F=z,I=Object.keys(F);if(1===I.length&&"totalRange"===I[0])continue;const J=F.totalRange;if(!this.hasCompletePathDFS(F,J.from,J.to))return this.rangeValidationError=`The range characteristic "${n[m]||m}" does not have complete coverage from ${J.from} to ${J.to}. Please ensure all ranges are continuous and cover the full specification range.`,console.log(`Range characteristic with ID "${m}" does not have complete coverage`),console.log(" Range data:",F),!1}return!0}getRangeCharacteristics(){return this.prodSpec?.productSpecCharacteristic?this.prodSpec.productSpecCharacteristic.filter(c=>{const n=c.productSpecCharacteristicValue?.[0];return n&&"valueFrom"in n&&"valueTo"in n}):[]}hasCompletePathDFS(c,n,l){const r=new Set,m=z=>{const F=c[z];if(!F||0===F.length)return!1;for(const I of F){if(I===l)return!0;const J=I+1;if(!r.has(J)&&(r.add(J),c[J]&&m(J)))return!0}return!1};return m(n)}openPriceComponentDrawer(c=null){this.editingComponent=c,this.showPriceComponentDrawer=!0}closePriceComponentDrawer(c){if(c){const n=this.formGroup.get("priceComponents")?.value||[];if(this.editingComponent){const l=n.findIndex(r=>r.id===this.editingComponent.id);l>-1&&(this.editingComponent.id?.startsWith("temp-id")||(c.id=this.editingComponent.id),n[l]=c)}else n.push(c);this.formGroup.get("priceComponents")?.setValue(n),console.log(this.formGroup.get("priceComponents")?.value)}this.showPriceComponentDrawer=!1,this.editingComponent=null}editPriceComponent(c){this.openPriceComponentDrawer(c)}deletePriceComponent(c){const n=this.formGroup.get("priceComponents")?.value||[];this.formGroup.get("priceComponents")?.setValue(n.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(),n=this.currentPage*this.pageSize;return c.slice(n,n+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(n=>n.isDefault)||null}))||[]:this.formGroup?.get("productProfile")?.value?.selectedValues?.filter(c=>!this.isOptionalToggleCharacteristicName(c?.name))||[]}updateIsDefault(c,n){return c.map(l=>{const r=n.find(m=>m.id===l.id);return r?{...l,productSpecCharacteristicValue:l.productSpecCharacteristicValue.map(m=>({...m,isDefault:String(m.value)===String(r.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 n=this.formGroup.get("priceComponents")?.value||[];n.push(...c),this.formGroup.get("priceComponents")?.setValue(n),console.log("Tier pricing components added:",c)}this.showTierPricingDrawer=!1}hasRangeCharacteristics(){return!!this.prodSpec?.productSpecCharacteristic&&this.prodSpec.productSpecCharacteristic.some(c=>{const n=c.productSpecCharacteristicValue?.[0];return n&&"valueFrom"in n&&"valueTo"in n})}hasProfilePricePlan(){const c=this.formGroup?.get("prodSpecCharValueUse")?.value;return c&&c.length>0}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-price-plan-drawer"]],hostBindings:function(n,l){1&n&&e.bIt("keydown.escape",function(m){return l.handleEscapeKey(m)},!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(n,l){if(1&n&&(e.j41(0,"div",0),e.DNE(1,oz0,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,iz0,4,3,"p",12)(17,rz0,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,Mz0,31,21)(24,xz0,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,bz0,1,3,"app-price-component-drawer",19)(35,yz0,1,1,"app-tier-pricing-drawer",20),e.k0s()),2&n){let r,m,z,F;e.Y8G("ngClass",e.l_i(28,lz0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngIf",l.showPriceComponentDrawer||l.showTierPricingDrawer),e.R7$(),e.Y8G("ngClass",e.sMw(31,sz0,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==(r=l.formGroup.get("name"))?null:r.invalid)&&""!=l.formGroup.value.name||null!=(r=l.formGroup.get("name"))&&r.touched&&""==l.formGroup.value.name||l.formGroup.hasError("nonUniqueName")&&null!=(r=l.formGroup.get("name"))&&r.touched?"border-red-600":"border-gray-300 dark:border-gray-600"),e.R7$(),e.vxM(16,l.formGroup.hasError("nonUniqueName")&&null!=(m=l.formGroup.get("name"))&&m.touched?16:-1),e.R7$(),e.vxM(17,null!=(z=l.formGroup.get("name"))&&z.invalid&&null!=(z=l.formGroup.get("name"))&&null!=z.errors&&z.errors.required&&null!=(z=l.formGroup.get("name"))&&z.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!=(F=l.formGroup.get("paymentOnline"))&&F.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,az0,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,L.YU,ge,L.bT,gC0,EL0,SC0,tz0,L.Sq]})}}return t})();function vz0(t,a){1&t&&(e.j41(0,"option",9),e.EFF(1,"Tailored price"),e.k0s())}function kz0(t,a){if(1&t){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 r=e.XpG();return e.Njj(r.onPaymentOnlineChange(l))}),e.j41(3,"option",8),e.EFF(4,"Free"),e.k0s(),e.DNE(5,vz0,2,0,"option",9),e.j41(6,"option",10),e.EFF(7,"Online paid price"),e.k0s()()}if(2&t){const c=e.XpG();e.R7$(2),e.Y8G("value",c.priceType),e.R7$(3),e.vxM(5,c.custom?-1:5)}}function wz0(t,a){if(1&t&&(e.j41(0,"label",11),e.EFF(1),e.k0s()),2&t){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 Sz0(t,a){if(1&t){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&t&&(e.R7$(4),e.JRh(e.bMT(5,1,"FORMS.PRICE_PLANS._add")))}function Nz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-plan-drawer",16),e.bIt("save",function(l){e.eBV(c);const r=e.XpG();return e.Njj(r.savePricePlan(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.k0s()}if(2&t){const c=e.XpG();e.Y8G("formGroup",c.selectedPricePlan)("prodSpec",c.prodSpec)("action",c.action)}}let fE1=(()=>{class t{constructor(c,n,l){this.fb=c,this.cdr=n,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(n=>this.createPricePlanForm(n))),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(n=>({id:n.id,name:n.name,description:n.description,isBundle:n.isBundle,lastUpdate:n.lastUpdate,lifecycleStatus:n.lifecycleStatus,paymentOnline:n.paymentOnline,priceType:n.priceType,currency:n.currency,unitOfMeasure:n.unitOfMeasure,validFor:n.validFor,priceComponents:n.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(n=>({id:n.id,name:n.name,description:n.description,isBundle:n.isBundle,lastUpdate:n.lastUpdate,lifecycleStatus:n.lifecycleStatus,paymentOnline:n.paymentOnline,priceType:n.priceType,currency:n.currency,unitOfMeasure:n.unitOfMeasure,validFor:n.validFor,priceComponents:n.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(n=>n.name).filter(n=>!!n),console.log("\u{1f4dd} Original state:",this.originalPricePlans),console.log("\u{1f50d} Last known state:",this.lastKnownState),this.formSubscription=this.pricePlansForm.valueChanges.pipe(ZH(500),o2(),(0,B6.p)(()=>this.pricePlansForm.dirty),(0,P1.Q)(this.destroy$)).subscribe(n=>{console.log("\u{1f4ca} Form array value changed:",n),this.checkChanges()}),this.pricePlansForm.controls.forEach((n,l)=>{n.valueChanges.pipe(ZH(500),o2(),(0,P1.Q)(this.destroy$)).subscribe(r=>{console.log(`\u{1f4c8} Price plan ${l} changed:`,r),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 n=this.getDetailedChanges(c);console.log("\u{1f4dd} Detailed changes:",n);const l={subformType:"pricePlans",isDirty:this.pricePlansForm.dirty,dirtyFields:Object.keys(this.pricePlansForm.controls).filter(r=>this.pricePlansForm.get(r)?.dirty),originalValue:this.originalValue,currentValue:c,priceComponentsChanged:n.some(r=>r.priceComponents.added.length>0||r.priceComponents.modified.length>0||r.priceComponents.deleted.length>0),profileChanged:this.checkProfileChanges(),modifiedPricePlans:n};console.log("\u{1f680} Emitting price plans change state:",l),this.formChange.emit(l),this.lastKnownState=c.map(r=>({id:r.id,name:r.name,description:r.description,isBundle:r.isBundle,lastUpdate:r.lastUpdate,lifecycleStatus:r.lifecycleStatus,paymentOnline:r.paymentOnline,priceType:r.priceType,currency:r.currency,unitOfMeasure:r.unitOfMeasure,validFor:r.validFor,priceComponents:r.priceComponents?.map(z=>({id:z.id,name:z.name,price:z.price,currency:z.currency,recurringPeriod:z.recurringPeriod,usageUnit:z.usageUnit}))||[]}))}getDetailedChanges(c){const n=[];return c.forEach(l=>{const r=this.originalPricePlans.find(N1=>N1.id===l.id),m=this.lastKnownState.find(N1=>N1.id===l.id),z=this.getModifiedFields(r,l),F=this.getModifiedFields(m,l),i1=this.getDetailedComponentChanges(r?.priceComponents||[],m?.priceComponents||[],l.priceComponents||[]);(z.length>0||F.length>0||i1.added.length>0||i1.modified.length>0||i1.deleted.length>0)&&n.push({id:l.id,isNew:!r,modifiedFields:z,oldValue:m,newValue:l,priceComponents:i1})}),n}getDetailedComponentChanges(c,n,l){const r=l.filter(F=>!c.find(I=>I.id===F.id)).map(F=>({id:F.id,name:F.name,price:F.price,currency:F.currency,recurringPeriod:F.recurringPeriod,usageUnit:F.usageUnit,modifiedFields:Object.keys(F),newValue:F})),m=c.filter(F=>!l.find(I=>I.id===F.id)).map(F=>F.id);return{added:r,modified:l.filter(F=>{const I=c.find(d1=>d1.id===F.id),J=n.find(d1=>d1.id===F.id);return I&&(this.getModifiedFields(I,F).length>0||this.getModifiedFields(J,F).length>0)}).map(F=>{c.find(d1=>d1.id===F.id);const J=n.find(d1=>d1.id===F.id);return{id:F.id,name:F.name,price:F.price,currency:F.currency,recurringPeriod:F.recurringPeriod,usageUnit:F.usageUnit,modifiedFields:this.getModifiedFields(J,F),oldValue:J,newValue:F}}),deleted:m}}getModifiedFields(c,n){return c?Object.keys(n).filter(l=>{if("priceComponents"===l||"productProfile"===l||"controls"===l||"_parent"===l)return!1;const r=c[l],m=n[l];return r instanceof p.gE||m instanceof p.gE||r instanceof p.Yp||m instanceof p.Yp?JSON.stringify(r?.value)!==JSON.stringify(m?.value):JSON.stringify(r)!==JSON.stringify(m)}):Object.keys(n)}checkProfileChanges(){return(this.pricePlansForm.get("pricePlans")?.value||[]).some(n=>n.productProfile?.dirty||n.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:[gX2,_X2(()=>this.existingPlanNames)]})}mapProductProfile(c){return this.fb.group({selectedValues:this.fb.array(c.map(n=>this.fb.group({id:[n.id],name:[n.name],selectedValue:[n.productSpecCharacteristicValue.find(l=>l.isDefault)?.value??null,p.k0.required]})))})}addPricePlan(c){console.log("add plan");const n=c?.paymentOnline??this.paymentOnline,l=this.createPricePlanForm({...c,paymentOnline:n});this.pricePlansForm.push(l),this.existingPlanNames=this.pricePlans.map(r=>r.name).filter(r=>!!r),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 n=this.pricePlansForm.controls.findIndex(m=>m.getRawValue().id===this.selectedPricePlan?.getRawValue().id),r={...c,paymentOnline:"edit"===this.action?this.selectedPricePlan?.getRawValue().paymentOnline:this.paymentOnline};n>-1?this.pricePlansForm.at(n).patchValue(r):this.addPricePlan(r),this.syncPricePlans(),this.showDrawer=!1,this.selectedPricePlan=null}generateId(){return`temp-id:${A4()}`}openPricePlanDrawer(c=null){if(c){console.log("\u{1f4dd} Editing existing price plan:",c);const n=this.pricePlansForm.controls.findIndex(l=>l.value.id===c.id);console.log(n),-1!==n?this.selectedPricePlan=this.pricePlansForm.at(n):(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(n=>n.name).filter(n=>!!n),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(n=>n.id!==this.selectedPricePlan.value.id).map(n=>n.name).filter(n=>!!n),this.form.updateValueAndValidity()):(this.action="create",this.selectedPricePlan=this.createPricePlanForm({paymentOnline:this.paymentOnline}),this.existingPlanNames=this.pricePlans.map(n=>n.name).filter(n=>!!n),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(n=>this.addPricePlan(n))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&(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,kz0,8,2)(6,wz0,2,1),e.k0s(),e.j41(7,"app-price-plans-table",3),e.bIt("edit",function(m){return l.editPricePlan(m)})("delete",function(m){return l.removePricePlan(m)}),e.k0s(),e.DNE(8,Sz0,6,3,"button",4),e.k0s(),e.DNE(9,Nz0,1,3,"app-price-plan-drawer",5)),2&n&&(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:[vL0,s1.h,s1.D9,Fz0,p.X1,p.xH,p.y7,p.cb,p.j4]})}}return t})();const Ez0=(t,a)=>a.id;function Dz0(t,a){if(1&t&&(e.j41(0,"option",6),e.EFF(1),e.k0s()),2&t){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.JRh(c.name)}}function Tz0(t,a){if(1&t&&(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&t){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 Rz0(t,a){1&t&&(e.j41(0,"p",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_OFFER._pla_spec_id_required")))}function Az0(t,a){if(1&t&&(e.j41(0,"label",11),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",12),e.DNE(4,Rz0,3,3,"p",13)),2&t){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 Iz0(t,a){if(1&t){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&t){const c=e.XpG();e.R7$(11),e.SpI(" ",c.errorMessage," "),e.R7$(2),e.FS9("href",c.gatewayUrl,e.B4B)}}let uE1=(()=>{class t{constructor(c,n,l){this.cdr=c,this.eventMessage=n,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,P1.Q)(this.destroy$)).subscribe(r=>{if("UpdateOffer"===r.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const m={id:this.procurementMode,name:this.procurementModes.find(z=>z.id===this.procurementMode)?.name||"Manual",extBillingEnabled:this.formGroup.get("extBillingEnabled")?.value??!1,plaSpecId:this.formGroup.get("plaSpecId")?.value??""};JSON.stringify(m)!==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:m}))}})}writeValue(c){if(console.log("\u{1f4dd} writeValue - Input value:",c),c){const n=c.id||c;console.log("\u{1f4dd} writeValue - Selected mode:",n),this.procurementMode=n,console.log("\u{1f4dd} writeValue - Updated procurementMode:",this.procurementMode),this.formGroup&&this.formGroup.patchValue({mode:n});const l=this.procurementModes.find(r=>r.id===n);this.onChange(l||{id:n,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(n=>"procurement"===n.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 n=this.data?.pricingLogicAlgorithm?.[0]?.plaSpecId??"";this.formGroup.addControl("extBillingEnabled",new p.MJ(!!n)),this.formGroup.addControl("plaSpecId",new p.MJ(n,n?[p.k0.required]:[])),this.formGroup.get("extBillingEnabled").valueChanges.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{const m=this.formGroup.get("plaSpecId");r?m.setValidators([p.k0.required]):m.clearValidators(),m.updateValueAndValidity()}),this.isEditMode&&(this.originalValue={id:c,name:this.procurementModes.find(r=>r.id===c)?.name||"Manual",extBillingEnabled:!!n,plaSpecId:n},console.log("\u{1f4dd} Original value stored:",this.originalValue)),this.formSub=this.form.valueChanges.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{if(console.log("\u{1f4dd} Form value changed in subscription:",r),r){if(r.mode){if("manual"!=r.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 m=this.procurementModes.find(z=>z.id===r.mode)||this.procurementModes[0];console.log("\u{1f4dd} Found mode:",m),this.procurementMode=m.id,console.log("\u{1f4dd} Current procurementMode:",this.procurementMode)}this.hasBeenModified=!0}}),(0,V2.s)(this.http.get(`${h1.c.BASE_URL}/paymentInfo`)).then(r=>{this.gatewayUrl=r.providerUrl,this.gatewayCount=r.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 n=this.procurementModes.find(l=>l.id===c.target.value);console.log("\u{1f504} changeProcurement - Found mode:",n),n&&(this.formGroup.patchValue({mode:c.target.value}),this.hasBeenModified=!0,this.onChange(n))}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(n=>n.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(n){return new(n||t)(e.rXU(e.gRc),e.rXU(j2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&(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,Dz0,2,2,"option",6,Ez0),e.k0s()()()(),e.DNE(11,Tz0,5,4,"div",7)(12,Az0,5,7)(13,Iz0,15,2,"div",8)),2&n&&(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 t})();function Pz0(t,a){1&t&&(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 $z0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function jz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const r=e.eBV(c).$implicit,m=e.XpG(3);return l.stopPropagation(),e.Njj(m.toggleSelection(r))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=e.XpG(3);e.Y8G("ngClass",n.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",n.isSelected(c.id)),e.R7$(2),e.JRh(c.tradingName)}}function Oz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"div",9)(1,"input",10),e.mxI("ngModelChange",function(l){e.eBV(c);const r=e.XpG(2);return e.DH7(r.searchTerm,l)||(r.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,jz0,5,3,"tr",16,e.Vm6),e.k0s()()()}if(2&t){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 Bz0(t,a){if(1&t&&e.DNE(0,$z0,7,3,"div",5)(1,Oz0,13,4),2&t){const c=e.XpG();e.vxM(0,0==c.parties.length?0:1)}}let Vz0=(()=>{class t{constructor(c,n){this.accService=c,this.cdr=n,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(n=>n.tradingName?.toLowerCase().includes(c)):this.parties}ngOnInit(){var c=this;return(0,b1.A)(function*(){c.loading=!0;try{c.parties=yield c.accService.getOrgList(),console.log("Parties loaded:",c.parties);const n=c.incomingValue?.id??c.partyId;if(n){if(c.selectedParty=c.parties.find(l=>l.id===n)??null,!c.selectedParty)try{const l=yield c.accService.getOrgInfo(n);l?.id&&(c.parties=[l,...c.parties.filter(r=>r.id!==l.id)],c.selectedParty=l)}catch(l){console.error("Unable to load requested party by id:",n,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(n){return new(n||t)(e.rXU(s0.O),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-related-party-id"]],inputs:{partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){1&n&&e.DNE(0,Pz0,6,0,"div",0)(1,Bz0,2,1),2&n&&e.vxM(0,l.loading?0:1)},dependencies:[s1.h,s1.D9,L.YU,p.YN,p.me,p.BC,p.vS]})}}return t})();const Uz0=(t,a)=>a.id,Hz0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Gz0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a});function Yz0(t,a){1&t&&(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 qz0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(2);return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Xz0(t,a){1&t&&(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 Wz0(t,a){if(1&t&&e.nrm(0,"app-related-party-id",24),2&t){const c=e.XpG(3);e.Y8G("partyId",c.partyId)}}function Jz0(t,a){if(1&t&&e.nrm(0,"app-price-plans-form",25),2&t){let c;const n=e.XpG(3);e.Y8G("form",n.productOfferForm)("prodSpec",null==(c=n.productOfferForm.get("prodSpec"))?null:c.value)("custom",!0)}}function Qz0(t,a){if(1&t&&e.nrm(0,"app-procurement-mode",26),2&t){const c=e.XpG(3);e.Y8G("data",c.offer)("form",c.productOfferForm.controls.procurementMode)}}function Zz0(t,a){if(1&t&&(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&t){let c;const n=e.XpG(4);e.R7$(3),e.JRh(null==(c=n.productOfferForm.get("partyInfo"))?null:c.value.tradingName)}}function Kz0(t,a){if(1&t&&(e.j41(0,"tr",39)(1,"td",40),e.EFF(2),e.k0s(),e.j41(3,"td",41),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function eM0(t,a){if(1&t&&(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,Kz0,5,2,"tr",39,Uz0),e.k0s()()()),2&t){let c;const n=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=n.productOfferForm.get("pricePlans"))?null:c.value)}}function cM0(t,a){if(1&t&&(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,Zz0,5,1,"h2",33)(15,eM0,16,9),e.k0s()),2&t){let c,n;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!=(n=l.productOfferForm.get("pricePlans"))&&n.value?15:-1)}}function tM0(t,a){if(1&t&&(e.j41(0,"div",23),e.DNE(1,Wz0,1,1,"app-related-party-id",24)(2,Jz0,1,3)(3,Qz0,1,2)(4,cM0,16,10),e.k0s()),2&t){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 nM0(t,a){if(1&t){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&t){const c=e.XpG(2);e.Y8G("disabled",c.loading)("ngClass",c.loading?"opacity-50":"hover:bg-primary-50")}}function lM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,qz0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,Xz0,6,0,"div",2)(7,tM0,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,nM0,2,2,"button",19),e.k0s()()}if(2&t){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,Hz0,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,Gz0,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 sM0(t,a){if(1&t&&(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&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let mE1=(()=>{class t{constructor(c,n,l,r){this.api=c,this.eventMessage=n,this.fb=l,this.quoteService=r,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,b1.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,b1.A)(function*(){if(console.log("Loading offer into form...",c.offer),c.offer.productOfferingTerm){console.log("Found productOfferingTerm:",c.offer.productOfferingTerm);const n=c.offer.productOfferingTerm.find(l=>"procurement"===l.name);if(n){const l={id:n.description,name:n.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 n=(0,b1.A)(function*(l){c.productOfferForm.patchValue({prodSpec:l||null})});return function(l){return n.apply(this,arguments)}}()))})()}createOffer(){var c=this;return(0,b1.A)(function*(){c.loading=!0;const n=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!==n.length)for(let l=0;lc.createPriceComponent(d1,r.currency))),I=c.createBundledPricePlan(r,F);z=(yield(0,V2.s)(c.api.postOfferingPrice(I))).id,c.productOfferForm.value.pricePlans[l].id=z,l===n.length-1&&c.saveOfferInfo()}catch(z){c.handleApiError(z)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,n=c.pricePlans.map(F=>({id:F.id,href:F.id})),l=this.offer.productOfferingTerm.find(F=>"License"===F.name);let r=this.offer.name;this.productOfferForm.get("partyInfo")?.value.tradingName&&(r=`${this.offer.name} - ${this.productOfferForm.get("partyInfo")?.value.tradingName}`);const m={name:r,description:this.offer?.description||"",lifecycleStatus:"Active",isBundle:this.bundleChecked,isSellable:!1,bundledProductOffering:this.offersBundle,place:[],version:this.offer.version,category:this.offer.category,productOfferingPrice:n,validFor:{startDateTime:(new Date).toISOString()},relatedParty:[{role:h1.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||(m.productSpecification=this.offer.productSpecification),this.offerToCreate=m,console.log("---- Offer to create -----"),console.log(this.offerToCreate),this.api.postProductOffering(m,null).subscribe({next:F=>{console.log("product offer created:"),console.log(F),this.loading=!1,this.goBack()},error:F=>{console.error("Error during offer save/update:",F),this.errorMessage=F?.error?.error?"Error: "+F.error.error:"An error occurred while saving the offer!",this.loading=!1,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}})}createPriceComponent(c,n){var l=this;return(0,b1.A)(function*(){console.log("component format"),console.log(c);let r={name:c.name,description:c.description??c?.newValue.description,lifecycleStatus:c?.lifecycleStatus??c?.newValue?.lifecycleStatus??"Active",priceType:c.priceType??c?.newValue?.priceType,price:{unit:n,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},m=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(m)&&(r.recurringChargePeriodType=c.recurringPeriod,r.recurringChargePeriodLength=1),"usage"===m&&(console.log(c.newValue),r.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},r["@baseType"]="ProductOfferingPrice",r["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",r.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(r)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(r.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(r.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const F=yield l.createPriceAlteration(c,n);r.popRelationship=[{id:F.id,href:F.id,name:F.name}]}console.log("create price comp"),console.log(r);const z=yield(0,V2.s)(l.api.postOfferingPrice(r));return{id:z.id,href:z.id,name:z.name}})()}createPriceAlteration(c,n){var l=this;return(0,b1.A)(function*(){const r={name:"discount",priceType:"discount",validFor:{startDateTime:H2().toISOString(),endDateTime:H2().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?r.percentage=c.discountValue:r.price={value:c.discountValue,unit:n},yield(0,V2.s)(l.api.postOfferingPrice(r))})()}createBundledPricePlan(c,n){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:n};return c?.priceType&&"custom"==c?.priceType&&(l.priceType="custom"),c.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.prodSpecCharValueUse.map(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.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 n=this.validateCurrentStep();console.log(!n),n&&(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(n){return new(n||t)(e.rXU(n0.F),e.rXU(j2),e.rXU(p.ok),e.rXU(s3.K))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Yz0,6,0,"div",2)(5,lM0,20,20),e.k0s(),e.DNE(6,sM0,9,1,"div",3)),2&n&&(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,fE1,uE1,Vz0,L.YU]})}}return t})();function aM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",10)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function oM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",11)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function iM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",12)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function rM0(t,a){if(1&t&&(e.qSk(),e.nrm(0,"path",13)),2&t){const c=e.XpG().$implicit,n=e.XpG();e.BMQ("fill",n.getFillColor(c))}}function dM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG();return e.Njj(r.selectStatus(l))}),e.j41(1,"span",4),e.qSk(),e.j41(2,"svg",5),e.DNE(3,aM0,1,1,"path",6)(4,oM0,1,1,"path",7)(5,iM0,1,1,"path",8)(6,rM0,1,1,"path",9),e.k0s(),e.joV(),e.j41(7,"span"),e.EFF(8),e.k0s()()()}if(2&t){const c=a.$implicit,n=e.XpG();e.Y8G("ngClass",n.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 fM0=(()=>{class t{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(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-status-selector"]],inputs:{statuses:"statuses",disabledStatuses:"disabledStatuses"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){1&n&&(e.j41(0,"div",0)(1,"ol",1),e.Z7z(2,dM0,9,7,"li",2,e.Vm6),e.k0s()()),2&n&&(e.R7$(2),e.Dyx(l.statuses))},dependencies:[HL,L.YU,L.bT],styles:["svg[_ngcontent-%COMP%]{min-width:24px;width:24px;height:24px}"]})}}return t})();function uM0(t,a){if(1&t&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function mM0(t,a){if(1&t&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",3)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("formControl",c.versionControl)}}function pM0(t,a){if(1&t&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-status-selector",5)),2&t){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 hM0(t,a){if(1&t&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",6)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let gM0=(()=>{class t{constructor(c,n){this.eventMessage=c,this.apiService=n,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),e6])),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*)?$"),e6])),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),h1.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),e6])),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*)?$"),e6]))),this.isEditMode&&this.formGroup.valueChanges.pipe(ZH(500),(0,P1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const n=this.getDirtyFields(c);if(n.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:n,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(n=>{const r=this.originalValue[n];return JSON.stringify(c[n])!==JSON.stringify(r)})}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2),e.rXU(n0.F))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,uM0,4,4)(1,mM0,4,4)(2,pM0,4,5)(3,hM0,4,4),2&n&&(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_,HL,s1.D9,ge,fM0]})}}return t})();function _M0(t,a){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,"span",4),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&t&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_OFFER._no_prod_spec")," "))}function LM0(t,a){1&t&&(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 CM0(t,a){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,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function zM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",18),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(!r.isEditMode&&r.toggleSelection(l))}),e.j41(1,"td",19)(2,"input",20),e.bIt("click",function(l){const r=e.eBV(c).$implicit,m=e.XpG(4);return l.stopPropagation(),e.Njj(!m.isEditMode&&m.toggleSelection(r))}),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&t){const c=a.$implicit,n=e.XpG(4);e.Y8G("ngClass",n.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",n.isSelected(c.id))("disabled",n.isEditMode),e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",n.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",n.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 MM0(t,a){if(1&t&&(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,zM0,16,16,"tr",17,e.Vm6),e.k0s()()()),2&t){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 xM0(t,a){1&t&&(e.qSk(),e.j41(0,"svg",28),e.nrm(1,"path",29),e.k0s())}function bM0(t,a){if(1&t){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,xM0,2,0,":svg:svg",28),e.k0s()}if(2&t){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 yM0(t,a){if(1&t&&e.DNE(0,CM0,7,3,"div",0)(1,MM0,20,12)(2,bM0,7,5,"div",9),2&t){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 FM0(t,a){if(1&t&&e.DNE(0,LM0,6,0,"div",5)(1,yM0,3,2),2&t){const c=e.XpG();e.vxM(0,c.loadingProdSpec?0:1)}}let vM0=(()=>{class t{constructor(c,n){this.prodSpecService=c,this.paginationService=n,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=h1.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,b1.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 n={subformType:"productSpecification",isDirty:!0,dirtyFields:c,originalValue:this.originalValue,currentValue:this.selectedProdSpecInternal};console.log("\u{1f680} Emitting final change state:",n),this.formChange.emit(n)}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 n=this;return(0,b1.A)(function*(){c||(n.loadingProdSpec=!0),n.paginationService.getItemsPaginated(n.prodSpecPage,n.PROD_SPEC_LIMIT,c,n.prodSpecs,n.nextProdSpecs,{filters:["Active","Launched"],partyId:n.partyId},n.prodSpecService.getProdSpecByUser.bind(n.prodSpecService)).then(r=>{n.prodSpecPageCheck=r.page_check,n.prodSpecs=r.items,n.nextProdSpecs=r.nextItems,n.prodSpecPage=r.page,n.loadingProdSpec=!1,n.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,b1.A)(function*(){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(n){return new(n||t)(e.rXU(c6),e.rXU(E6))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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"],["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","ml-2"],["d","M93.9676 39.0409C96.393 38.4038...","fill","currentFill"]],template:function(n,l){1&n&&e.DNE(0,_M0,9,3,"div",0)(1,FM0,2,1),2&n&&e.vxM(0,l.bundleChecked?0:1)},dependencies:[L.vh,s1.h,s1.D9,L.YU]})}}return t})();const kM0=(t,a)=>a.id,wM0=t=>({$implicit:t,level:0}),SM0=(t,a,c)=>({"bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600":t,"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}),NM0=(t,a)=>({"rotate-90":t,"rotate-0":a}),EM0=(t,a)=>({$implicit:t,level:a});function DM0(t,a){1&t&&(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 TM0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function RM0(t,a){1&t&&e.eu8(0)}function AM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",23),e.bIt("click",function(l){e.eBV(c);const r=e.XpG().$implicit;return e.XpG(4).toggleCategory(r),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25),e.k0s()()}if(2&t){const c=e.XpG().$implicit,n=e.XpG().level;e.xc7("padding-left",10*n,"px"),e.R7$(),e.Y8G("ngClass",e.l_i(3,NM0,c.expanded,!c.expanded))}}function IM0(t,a){1&t&&e.eu8(0)}function PM0(t,a){if(1&t&&e.DNE(0,IM0,1,0,"ng-container",16),2&t){const c=e.XpG().$implicit,n=e.XpG().level;e.XpG();const l=e.sdS(14);e.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",e.l_i(2,EM0,c.children,n+1))}}function $M0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(4);return e.Njj(r.manageCategory(l))}),e.j41(1,"td",18),e.DNE(2,AM0,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 r=e.eBV(c).$implicit;return e.XpG(4).manageCategory(r),e.Njj(l.stopPropagation())}),e.k0s()()(),e.DNE(7,PM0,1,5,"ng-container")}if(2&t){const c=a.$implicit,n=e.XpG().level,l=e.XpG(3);e.Y8G("ngClass",e.sMw(7,SM0,0===n,n>0,l.isCategorySelected(c))),e.R7$(2),e.Y8G("ngIf",c.childrenLoaded||!c.childrenLoaded),e.R7$(),e.xc7("padding-left",20*n,"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 jM0(t,a){1&t&&(e.j41(0,"tr")(1,"td",26),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&t&&(e.R7$(2),e.JRh(e.bMT(3,1,"CREATE_OFFER._no_subcats")))}function OM0(t,a){1&t&&e.Z7z(0,$M0,8,11,null,null,kM0,!1,jM0,4,3,"tr"),2&t&&e.Dyx(a.$implicit)}function BM0(t,a){if(1&t&&(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,RM0,1,0,"ng-container",16),e.k0s()(),e.DNE(13,OM0,3,1,"ng-template",null,0,e.C5r),e.k0s()),2&t){const c=e.sdS(14),n=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,wM0,n.categories))}}function VM0(t,a){if(1&t&&e.DNE(0,TM0,7,3,"div",6)(1,BM0,15,10),2&t){const c=e.XpG();e.vxM(0,0==c.categories.length?0:1)}}let UM0=(()=>{class t{constructor(c,n){this.api=c,this.cdr=n,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,b1.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(n=>n.id===c.id)}getCategories(){var c=this;return(0,b1.A)(function*(){console.log("Obteniendo categor\xedas..."),c.loadingCategory=!0,c.categories=[];try{const n=yield c.api.getDefaultCategories();if(!Array.isArray(n)||0===n.length)return console.error("No hay categor\xedas disponibles."),void(c.loadingCategory=!1);console.log("Datos recibidos:",n),c.categories=n.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(n){console.error("Error al obtener categor\xedas:",n),c.loadingCategory=!1}})()}loadChildren(c){var n=this;return(0,b1.A)(function*(){if(c){if(c.childrenLoaded)return void(c.expanded=!c.expanded);try{console.log(`Cargando hijos de ${c.name}...`);const l=yield n.api.getCategoriesByParentId(c.id);c.children=l.map(r=>({...r,expanded:!1,childrenLoaded:!1,children:[]})),c.childrenLoaded=!0,c.expanded=!0,setTimeout(()=>n.cdr.detectChanges(),0)}catch(l){console.error(`Error al cargar hijos de ${c.name}:`,l)}}})()}manageCategory(c){if(!c)return;const n=this.selectedCategories.findIndex(z=>z.id===c.id);n>-1?(this.selectedCategories.splice(n,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],m={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",m),this.formChange.emit(m)}removeChildren(c){if(c.children&&0!==c.children.length)for(let n of c.children){const l=this.selectedCategories.findIndex(r=>r.id===n.id);l>-1&&this.selectedCategories.splice(l,1),this.removeChildren(n)}}addParent(c){if(!c)return;const n=this.findCategoryById(c,this.categories);n&&(this.selectedCategories.find(r=>r.id===n.id)||(this.selectedCategories.push(n),this.addParent(n.parentId)))}findCategoryById(c,n){for(let l of n){if(l.id===c)return l;if(l.children&&l.children.length>0){const r=this.findCategoryById(c,l.children);if(r)return r}}return null}toggleCategory(c){var n=this;return(0,b1.A)(function*(){c&&(c.childrenLoaded?c.expanded=!c.expanded:yield n.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],n=this.getDirtyFields(c);if(n.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:n,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 n=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&n.push("selectedCategories"),n}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(n0.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,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)(()=>t),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(n,l){1&n&&e.DNE(0,DM0,6,0,"div",1)(1,VM0,2,1),2&n&&e.vxM(0,l.loadingCategory?0:1)},dependencies:[s1.h,s1.D9,L.bT,L.T3,L.YU]})}}return t})();function HM0(t,a){if(1&t&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",1)),2&t){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let GM0=(()=>{class t{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,P1.Q)(this.destroy$)).subscribe(n=>{if("UpdateOffer"===n.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const l={treatment:"License",description:this.descControl?.value||""},r=this.getDirtyFields(l);if(r.length>0){const m={subformType:"license",isDirty:!0,dirtyFields:r,originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",m),this.formChange.emit(m)}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(n=>"License"==n.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,P1.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||""},n=this.getDirtyFields(c);if(n.length>0){const l={subformType:"license",isDirty:!0,dirtyFields:n,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 n=[];return this.originalValue&&(c.treatment!==this.originalValue.treatment&&n.push("treatment"),c.description!==this.originalValue.description&&n.push("description")),n}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(j2))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&e.DNE(0,HM0,4,4),2&n&&e.vxM(0,l.descControl?0:-1)},dependencies:[ge,p.X1,p.BC,p.l_,s1.h,s1.D9]})}}return t})();const YM0=(t,a)=>({"break-all":t,"break-words":a});function qM0(t,a){1&t&&(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 XM0(t,a){1&t&&(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&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function WM0(t,a){if(1&t&&(e.j41(0,"span",22),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function JM0(t,a){if(1&t&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function QM0(t,a){if(1&t&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ZM0(t,a){if(1&t&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function KM0(t,a){if(1&t){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,r=e.XpG(3);return e.Njj(r.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const r=e.eBV(c).$implicit,m=e.XpG(3);return l.stopPropagation(),e.Njj(m.toggleSelection(r))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s(),e.j41(5,"td",21),e.DNE(6,WM0,2,1,"span",22)(7,JM0,2,1)(8,QM0,2,1)(9,ZM0,2,1),e.k0s(),e.j41(10,"td",21),e.EFF(11),e.k0s()()}if(2&t){let c;const n=a.$implicit,l=e.XpG(3);e.Y8G("ngClass",n.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(n.id)),e.R7$(),e.Y8G("ngClass",e.l_i(6,YM0,l.hasLongWord(n.name,20),!l.hasLongWord(n.name,20))),e.R7$(),e.SpI(" ",n.name," "),e.R7$(2),e.vxM(6,"Active"==n.lifecycleStatus?6:"Launched"==n.lifecycleStatus?7:"suspended"==n.lifecycleStatus?8:"terminated"==n.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",null==n.relatedParty||null==(c=n.relatedParty.at(0))?null:c.role," ")}}function ex0(t,a){if(1&t&&(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,KM0,12,9,"tr",16,e.fX1),e.k0s()()()),2&t){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 cx0(t,a){if(1&t){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&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function tx0(t,a){if(1&t&&e.DNE(0,cx0,6,3,"div",26),2&t){const c=e.XpG(2);e.vxM(0,c.catalogPageCheck?0:-1)}}function nx0(t,a){1&t&&(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 lx0(t,a){if(1&t&&e.DNE(0,XM0,7,3,"div",5)(1,ex0,17,9)(2,tx0,1,1)(3,nx0,6,0),2&t){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 sx0=(()=>{class t{constructor(c,n,l){this.api=c,this.paginationService=n,this.cdr=l,this.CATALOG_LIMIT=h1.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,b1.A)(function*(){yield c.getSellerCatalogs(!1)})()}ngAfterViewInit(){setTimeout(()=>this.cdr.detectChanges(),0)}getSellerCatalogs(c){var n=this;return(0,b1.A)(function*(){0==c&&(n.loadingCatalog=!0),n.paginationService.getItemsPaginated(n.catalogPage,n.CATALOG_LIMIT,c,n.catalogs,n.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:n.partyId},n.api.getCatalogsByUser.bind(n.api)).then(r=>{n.catalogPageCheck=r.page_check,n.catalogs=r.items,n.nextCatalogs=r.nextItems,n.catalogPage=r.page,n.loadingCatalog=!1,n.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,b1.A)(function*(){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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(n0.F),e.rXU(E6),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-catalogue"]],inputs:{partyId:"partyId"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(n,l){1&n&&e.DNE(0,qM0,6,0,"div",0)(1,lx0,4,2),2&n&&e.vxM(0,l.loadingCatalog?0:1)},dependencies:[s1.h,s1.D9,L.YU]})}}return t})();const pE1=(t,a)=>a.id,tf=(t,a)=>({"break-all":t,"break-words":a});function ax0(t,a){if(1&t&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function ox0(t,a){if(1&t&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function ix0(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function rx0(t,a){if(1&t&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG();e.R7$(),e.JRh(null==(c=n.productOfferForm.get("generalInfo.status"))||null==(c=c.get("status"))?null:c.value)}}function dx0(t,a){if(1&t&&(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&t){let c,n;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,tf,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==(n=l.productOfferForm.get("generalInfo.description"))?null:n.value)}}function fx0(t,a){if(1&t&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function ux0(t,a){if(1&t&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function mx0(t,a){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function px0(t,a){if(1&t&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&t){let c;const n=e.XpG(2);e.R7$(),e.JRh(null==(c=n.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function hx0(t,a){if(1&t&&(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,fx0,2,1,"span",8)(22,ux0,2,1)(23,mx0,2,1)(24,px0,2,1),e.k0s(),e.j41(25,"td",22),e.EFF(26),e.k0s()()()()()),2&t){let c,n,l,r;const m=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,tf,m.hasLongWord(null==(c=m.productOfferForm.get("catalogue"))?null:c.value.name,20),!m.hasLongWord(null==(c=m.productOfferForm.get("catalogue"))?null:c.value.name,20))),e.R7$(),e.SpI(" ",null==(n=m.productOfferForm.get("catalogue"))?null:n.value.name," "),e.R7$(2),e.vxM(21,"active"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?21:"Launched"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?22:"suspended"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?23:"terminated"==(null==(l=m.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?24:-1),e.R7$(5),e.SpI(" ",null==(r=m.productOfferForm.get("catalogue"))||null==r.value.relatedParty||null==(r=r.value.relatedParty.at(0))?null:r.role," ")}}function gx0(t,a){if(1&t&&(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&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(6,tf,n.hasLongWord(c.name,20),!n.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 _x0(t,a){if(1&t&&(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,gx0,6,9,"tr",19,pE1),e.k0s()()()),2&t){let c;const n=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=n.productOfferForm.get("category"))?null:c.value)}}function Lx0(t,a){if(1&t&&(e.j41(0,"tr",19)(1,"td",23),e.EFF(2),e.k0s(),e.j41(3,"td",24),e.EFF(4),e.k0s()()),2&t){const c=a.$implicit,n=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,tf,n.hasLongWord(c.name,20),!n.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,tf,n.hasLongWord(c.description,20),!n.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function Cx0(t,a){if(1&t&&(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,Lx0,5,10,"tr",19,pE1),e.k0s()()()),2&t){let c;const n=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=n.productOfferForm.get("pricePlans"))?null:c.value)}}function zx0(t,a){if(1&t&&(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&t){let c,n;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,tf,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==(n=l.productOfferForm.get("license"))||null==(n=n.get("description"))?null:n.value)}}function Mx0(t,a){if(1&t&&(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,zx0,5,8),e.k0s()),2&t){let c,n,l;const r=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,tf,r.hasLongWord(null==(c=r.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20),!r.hasLongWord(null==(c=r.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20))),e.R7$(),e.SpI(" ",null==(n=r.productOfferForm.get("license"))||null==(n=n.get("treatment"))?null:n.value," "),e.R7$(),e.vxM(9,""!==(null==(l=r.productOfferForm.get("license"))||null==(l=l.get("description"))?null:l.value)?9:-1)}}let xx0=(()=>{class t{ngOnInit(){var c=this;return(0,b1.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,n=20){return!!c&&c.split(/\s+/).some(l=>l.length>n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=e.VBU({type:t,selectors:[["app-offer-summary"]],inputs:{productOfferForm:"productOfferForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>t),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(n,l){if(1&n&&(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,ax0,2,1,"span",8)(19,ox0,2,1)(20,ix0,2,1)(21,rx0,2,1),e.k0s(),e.DNE(22,dx0,5,8)(23,hx0,27,19)(24,_x0,16,9)(25,Cx0,16,9)(26,Mx0,10,12),e.k0s()),2&n){let r,m,z,F,I,J,d1,i1,N1;e.R7$(4),e.JRh(e.bMT(5,13,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(19,tf,l.hasLongWord(null==(r=l.productOfferForm.get("generalInfo.name"))?null:r.value,20),!l.hasLongWord(null==(r=l.productOfferForm.get("generalInfo.name"))?null:r.value,20))),e.R7$(),e.SpI(" ",null==(m=l.productOfferForm.get("generalInfo.name"))?null:m.value," "),e.R7$(3),e.JRh(e.bMT(11,15,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("ngClass",e.l_i(22,tf,l.hasLongWord(null==(z=l.productOfferForm.get("generalInfo.version"))?null:z.value,20),!l.hasLongWord(null==(z=l.productOfferForm.get("generalInfo.version"))?null:z.value,20))),e.R7$(),e.SpI(" ",null==(F=l.productOfferForm.get("generalInfo.version"))?null:F.value," "),e.R7$(3),e.JRh(e.bMT(17,17,"CREATE_OFFER._status")),e.R7$(2),e.vxM(18,"Active"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?18:"Launched"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?19:"Retired"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?20:"Obsolete"==(null==(I=l.productOfferForm.get("generalInfo"))||null==(I=I.get("status"))?null:I.value)?21:-1),e.R7$(4),e.vxM(22,""!=(null==(J=l.productOfferForm.get("generalInfo.description"))?null:J.value)?22:-1),e.R7$(),e.vxM(23,null!=(d1=l.productOfferForm.get("catalogue"))&&d1.value?23:-1),e.R7$(),e.vxM(24,null!=(i1=l.productOfferForm.get("category"))&&i1.value?24:-1),e.R7$(),e.vxM(25,null!=(N1=l.productOfferForm.get("pricePlans"))&&N1.value?25:-1),e.R7$(),e.vxM(26,l.isLicenseEmpty?-1:26)}},dependencies:[s1.h,s1.D9,T0,L.YU,HL,L.vh]})}}return t})();const bx0=(t,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":t,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),yx0=(t,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":t,"cursor-not-allowed opacity-50":a});function Fx0(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_OFFER._update")," "))}function vx0(t,a){1&t&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_OFFER._create")," "))}function kx0(t,a){1&t&&(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 wx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,r=e.XpG(2);return e.Njj(r.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&t){const c=a.$implicit,n=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(n))("opacity-50",!l.canNavigate(n))("text-primary-100",l.currentStep===n),e.R7$(),e.AVh("bg-primary-100",l.currentStep===n)("text-white",l.currentStep===n),e.R7$(),e.SpI(" ",n+1," "),e.R7$(2),e.JRh(c)}}function Sx0(t,a){1&t&&(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 Nx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-general-info-form",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.generalInfo)}}function Ex0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-prod-spec-form",26),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(3);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(3);e.Y8G("data",c.offer)("partyId",c.partyId)("formType",c.formType)}}function Dx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-category-form",28),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)}}function Tx0(t,a){if(1&t&&e.nrm(0,"app-catalogue",29),2&t){const c=e.XpG(4);e.Y8G("partyId",c.partyId)}}function Rx0(t,a){if(1&t&&e.DNE(0,Dx0,1,2,"app-category-form",27)(1,Tx0,1,1),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function Ax0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-license-form",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.license)}}function Ix0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-category-form",28),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)}}function Px0(t,a){if(1&t&&e.DNE(0,Ax0,1,3,"app-license-form",24)(1,Ix0,1,2),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function $x0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-plans-form",31),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){let c;const n=e.XpG(4);e.Y8G("form",n.productOfferForm)("prodSpec",null==(c=n.productOfferForm.get("prodSpec"))?null:c.value)("custom",!1)}}function jx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-license-form",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.license)}}function Ox0(t,a){if(1&t&&e.DNE(0,$x0,1,3,"app-price-plans-form",30)(1,jx0,1,3),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function Bx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-procurement-mode",33),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("form",c.productOfferForm.controls.procurementMode)("formType",c.formType)}}function Vx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-price-plans-form",31),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){let c;const n=e.XpG(4);e.Y8G("form",n.productOfferForm)("prodSpec",null==(c=n.productOfferForm.get("prodSpec"))?null:c.value)("custom",!1)}}function Ux0(t,a){if(1&t&&e.DNE(0,Bx0,1,3,"app-procurement-mode",32)(1,Vx0,1,3),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function Hx0(t,a){if(1&t&&e.nrm(0,"app-offer-summary",34),2&t){const c=e.XpG(4);e.Y8G("productOfferForm",c.productOfferForm)}}function Gx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"app-procurement-mode",25),e.bIt("formChange",function(l){e.eBV(c);const r=e.XpG(4);return e.Njj(r.handleSubformChange(l))}),e.k0s()}if(2&t){const c=e.XpG(4);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.procurementMode)}}function Yx0(t,a){if(1&t&&e.DNE(0,Hx0,1,1,"app-offer-summary",34)(1,Gx0,1,3),2&t){const c=e.XpG(3);e.vxM(0,"update"==c.formType?0:1)}}function qx0(t,a){if(1&t&&e.nrm(0,"app-offer-summary",34),2&t){const c=e.XpG(3);e.Y8G("productOfferForm",c.productOfferForm)}}function Xx0(t,a){if(1&t&&(e.j41(0,"div",23),e.DNE(1,Nx0,1,3,"app-general-info-form",24)(2,Ex0,1,3)(3,Rx0,2,1)(4,Px0,2,1)(5,Ox0,2,1)(6,Ux0,2,1)(7,Yx0,2,1)(8,qx0,1,1),e.k0s()),2&t){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:4===c.currentStep?5:5===c.currentStep?6:6===c.currentStep?7:7===c.currentStep?8:-1)}}function Wx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"button",35),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.submitForm())}),e.EFF(1),e.k0s()}if(2&t){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 Jx0(t,a){if(1&t){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,wx0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,Sx0,6,0,"div",2)(7,Xx0,9,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,Wx0,2,3,"button",19),e.k0s()()}if(2&t){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,bx0,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||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStep))("ngClass",e.l_i(17,yx0,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(16,12,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(19,"create"===c.formType&&7===c.currentStep||"update"===c.formType?19:-1)}}function Qx0(t,a){if(1&t&&(e.j41(0,"div",3)(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,"h3",40),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",41),e.EFF(8),e.k0s()()()),2&t){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let df1=(()=>{class t{constructor(c,n,l){this.api=c,this.eventMessage=n,this.fb=l,this.formType="create",this.offer={},this.currentStep=0,this.highestStep=0,this.steps=["General Info","Product Specification","Catalogue","Category","License","Price Plans","Procurement Mode","Summary"],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({}),pricePlans:new p.MJ([]),procurementMode:this.fb.group({}),replicationMode:this.fb.group({})}),this.productOfferForm.statusChanges.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{this.isFormValid=!(!this.productOfferForm.controls.generalInfo.valid||!this.productOfferForm.get("procurementMode")?.valid)}),this.formSubscription=this.eventMessage.messages$.pipe((0,P1.Q)(this.destroy$)).subscribe(r=>{if(console.log("subform changed-----"),"SubformChange"===r.type){const m=r.value;console.log("Received subform change:",m),this.handleSubformChange(m)}})}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(){switch(this.currentStep){case 0:return this.productOfferForm.get("generalInfo")?.valid||!1;case 1:return!!this.productOfferForm.get("prodSpec")?.value;case 2:return!!this.productOfferForm.get("catalogue")?.value;case 3:case 5:default:return!0;case 4:return this.productOfferForm.get("license")?.valid||!1;case 6:return this.productOfferForm.get("procurementMode")?.valid||!1}}canNavigate(c){return"create"==this.formType?this.productOfferForm.get("generalInfo")?.valid&&c<=this.currentStep||this.productOfferForm.get("generalInfo")?.valid&&c<=this.highestStep:this.isFormValid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}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,b1.A)(function*(){"update"===c.formType&&c.offer&&(c.loadingData=!0,c.steps=["General Info","Product Specification","Category","License","Price Plans","Procurement Mode","Summary"],yield c.loadOfferData(),c.loadingData=!1)})()}loadOfferData(){var c=this;return(0,b1.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 n=(0,b1.A)(function*(l){c.selectedProdSpec=l});return function(l){return n.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 n=c.offer.productOfferingTerm.find(r=>"License"===r.name);c.productOfferForm.patchValue(n?{license:{treatment:"License",description:n.description}}:{license:{treatment:"License",description:""}});const l=c.offer.productOfferingTerm.find(r=>"procurement"===r.name);if(l){const r={id:l.description,name:l.description};console.log("Setting procurement value:",r),c.productOfferForm.patchValue({procurementMode:r})}else c.productOfferForm.patchValue({procurementMode:{id:"manual",name:"Manual"}})}if(Array.isArray(c.offer.productOfferingPrice)&&c.offer.productOfferingPrice.length>0){for(let n of c.offer.productOfferingPrice){let l=[];const r=yield c.api.getOfferingPrice(n.id);console.log("-- price plan ----"),console.log(r);let m=!1;m=!!(r?.prodSpecCharValueUse&&r?.prodSpecCharValueUse.length>0);let z={id:r.id,name:r.name,description:r.description,lifecycleStatus:r.lifecycleStatus,paymentOnline:r?.paymentOnline??!!r?.bundledPopRelationship,productProfile:m?c.mapProductProfile(r?.prodSpecCharValueUse||[]):[]};if(r.bundledPopRelationship)for(let F=0;Fthis.fb.group({id:[n.id],name:[n.name],selectedValue:[n.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,n){var l=this;return(0,b1.A)(function*(){const r={name:"discount",priceType:"discount",validFor:{startDateTime:H2().toISOString(),endDateTime:H2().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?r.percentage=c.discountValue:r.price={value:c.discountValue,unit:n},yield(0,V2.s)(l.api.postOfferingPrice(r))})()}createPriceComponent(c,n){var l=this;return(0,b1.A)(function*(){console.log("component format"),console.log(c);let r={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:n,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},m=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(m)&&(r.recurringChargePeriodType=c.recurringPeriod,r.recurringChargePeriodLength=1),"usage"===m&&(console.log(c.newValue),r.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},r["@baseType"]="ProductOfferingPrice",r["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",r.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(r)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(r.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(r.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const F=yield l.createPriceAlteration(c,n);r.popRelationship=[{id:F.id,href:F.id,name:F.name}]}console.log("create price comp"),console.log(r);const z=yield(0,V2.s)(l.api.postOfferingPrice(r));return{id:z.id,href:z.id,name:z.name}})()}updatePriceComponent(c,n){var l=this;return(0,b1.A)(function*(){console.log("update function"),console.log(c),console.log(n),console.log("------");let r={name:c.newValue.name,isBundle:!1,description:c.newValue.description,lifecycleStatus:c.newValue.lifecycleStatus,priceType:c.newValue.priceType,price:{unit:n,value:c.newValue.price}};if(["recurring","recurring-prepaid"].includes(c.newValue.priceType)&&(r.recurringChargePeriodType=c.newValue.recurringPeriod,r.recurringChargePeriodLength=1),"usage"===c.newValue.priceType&&(console.log(c.newValue),r.unitOfMeasure={amount:1,units:c.newValue.usageUnit},r.usageSpecId=c.newValue.usageSpecId,console.log("----- here"),console.log(r)),c.newValue.selectedCharacteristic&&(r.prodSpecCharValueUse=c.newValue.selectedCharacteristic),c.newValue.unitOfMeasure&&(r.unitOfMeasure=c.newValue.usageUnit),null!=c.newValue.discountValue){let z={discountValue:c.newValue.discountValue};c.newValue.discountUnit&&(z.discountUnit=c.newValue.discountUnit),c.newValue.discountDuration&&(z.discountDuration=c.newValue.discountDuration),c.newValue.discountDurationUnit&&(z.discountDurationUnit=c.newValue.discountDurationUnit);const F=yield l.createPriceAlteration(z,n);r.popRelationship=[{id:F.id,href:F.id,name:F.name}]}console.log("update price comp"),console.log(r);const m=yield(0,V2.s)(l.api.updateOfferingPrice(r,c.id));return{id:m.id,href:m.id,name:m.name}})()}createBundledPricePlan(c,n){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:n};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(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(r=>({...r,productSpecCharacteristicValue:r.productSpecCharacteristicValue.filter(m=>m.isDefault)}))),console.log(l.prodSpecCharValueUse),c.usageUnit&&(l.unitOfMeasure=c.usageUnit),c?.newValue?.usageUnit&&(l.unitOfMeasure=c?.newValue?.usageUnit),l}updatePricePlan(c,n,l){var r=this;return(0,b1.A)(function*(){console.log("plan info"),console.log(c),console.log(c.id),console.log(n);let m={name:c.newValue.name,isBundle:!0,bundledPopRelationship:n};return l.includes("description")&&(m.description=c.newValue.description),l.includes("prodSpecCharValueUse")&&null!=c.newValue.prodSpecCharValueUse&&(m.prodSpecCharValueUse=c.newValue.prodSpecCharValueUse.map(F=>({...F,productSpecCharacteristicValue:F.productSpecCharacteristicValue.filter(I=>I.isDefault)}))),yield(0,V2.s)(r.api.updateOfferingPrice(m,c.id))})()}createOffer(){var c=this;return(0,b1.A)(function*(){c.loading=!0;const n=c.productOfferForm.value.pricePlans;if(0!==n.length)for(let l=0;lc.createPriceComponent(d1,r.currency))),I=c.createBundledPricePlan(r,F);z=(yield(0,V2.s)(c.api.postOfferingPrice(I))).id,c.productOfferForm.value.pricePlans[l].id=z,l===n.length-1&&c.saveOfferInfo()}catch(z){c.handleApiError(z)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,n=c.category.map(I=>({id:I.id,href:I.id})),l=c.pricePlans.map(I=>({id:I.id,href:I.id})),r=c.generalInfo,z={name:r.name,description:r.description||"",lifecycleStatus:"update"===this.formType?r.status:"Active",isBundle:this.bundleChecked,bundledProductOffering:this.offersBundle,place:[],version:r.version,...c.procurementMode.extBillingEnabled&&c.procurementMode.plaSpecId?{pricingLogicAlgorithm:[{name:"external billing",plaSpecId:c.procurementMode.plaSpecId}]}:{},category:n,productOfferingPrice:l,validFor:{startDateTime:(new Date).toISOString()},productOfferingTerm:[{name:"License",description:c.license.description||""},{name:"procurement",description:c.procurementMode.mode}]};!this.bundleChecked&&"create"===this.formType&&(z.productSpecification={id:c.prodSpec.id,href:c.prodSpec.href}),this.offerToCreate=z,("create"===this.formType?this.api.postProductOffering(z,c.catalogue.id):this.api.updateProductOffering(z,this.offer.id)).subscribe({next:I=>{console.log("product offer created:"),console.log(I),this.loading=!1,this.goBack()},error:I=>{console.error("Error during offer save/update:",I),this.errorMessage=I?.error?.error?"Error: "+I.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,n){const r={day:"days",week:"weeks",month:"months",year:"years"}[n.toLowerCase()];if(r)return H2().add(c,r).toISOString();throw new Error(`Invalid unit: ${n}. Must be one of day, week, month, or year.`)}calculateDiscountDuration(c,n){const l=H2(c.startDateTime);return H2(c.endDateTime).diff(l,n)}updateOffer(){var c=this;return(0,b1.A)(function*(){c.loading=!0,console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const n={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,r]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,r),l){case"generalInfo":n.name=r.currentValue.name,n.description=r.currentValue.description,n.version=r.currentValue.version,n.lifecycleStatus=r.currentValue.status;break;case"productSpecification":n.productSpecification={id:r.currentValue.id,href:r.currentValue.id};break;case"category":n.category=r.currentValue.map(I=>({id:I.id,href:I.id}));break;case"license":const m=n.productOfferingTerm.find(I=>"License"===I.name);m?m.description=r.currentValue.description:n.productOfferingTerm.unshift({name:"License",description:r.currentValue.description});break;case"pricePlans":n.productOfferingPrice=r.currentValue.map(I=>({id:I.id,href:I.id})),console.log("Cambio en el plan de precios"),console.log(n.productOfferingPrice),console.log(r.modifiedPricePlans);let z=r.modifiedPricePlans;for(let I=0;I0){for(let d1=0;d10)for(let d1=0;d10),console.log(z[I].priceComponents.modified[d1].id==z[I].id),z[I].priceComponents.modified[d1].id==z[I].id&&!z[I]?.oldValue.isBundle&&z[I].priceComponents.added.length>0){console.log("Si entra en el check");let i1=yield c.createPriceComponent(z[I].priceComponents.modified[d1],z[I]?.newValue.currency);J.push(i1)}else if(z[I].priceComponents.modified[d1].id!=z[I].id){let i1=yield c.updatePriceComponent(z[I].priceComponents.modified[d1],z[I]?.newValue.currency);J.push(i1)}console.log("The following price comp has been updated:"),console.log(z[I].priceComponents.modified[d1])}if(z[I].id.startsWith("temp-id")){let d1=yield c.createBundledPricePlan(z[I],J);const i1=yield(0,V2.s)(c.api.postOfferingPrice(d1));let N1=n.productOfferingPrice.findIndex(J1=>J1.id===z[I].id);n.productOfferingPrice[N1].id=i1.id,n.productOfferingPrice[N1].href=i1.id,console.log("New price plan"),console.log(d1)}else{let d1=yield c.updatePricePlan(z[I],J,z[I].modifiedFields);console.log("Modified price plan"),console.log(d1)}}break;case"procurement":const F=n.productOfferingTerm.find(I=>"procurement"===I.name);F?F.description=r.currentValue.id:n.productOfferingTerm.push({name:"procurement",description:r.currentValue.id}),r.currentValue.extBillingEnabled&&r.currentValue.plaSpecId?n.pricingLogicAlgorithm=[{name:"external billing",plaSpecId:r.currentValue.plaSpecId}]:r.originalValue.extBillingEnabled&&!r.currentValue.extBillingEnabled&&(n.pricingLogicAlgorithm=[])}Object.keys(n).forEach(l=>{null==n[l]&&delete n[l]}),console.log("\u{1f4dd} Final update payload:",n);try{yield(0,V2.s)(c.api.updateProductOffering(n,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)}})()}static{this.\u0275fac=function(n){return new(n||t)(e.rXU(n0.F),e.rXU(j2),e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:t,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,"data","formType","form"],[3,"formChange","data","formType","form"],["formControlName","prodSpec",3,"formChange","data","partyId","formType"],["formControlName","category",3,"data","formType"],["formControlName","category",3,"formChange","data","formType"],["formControlName","catalogue",3,"partyId"],[3,"form","prodSpec","custom"],[3,"formChange","form","prodSpec","custom"],[3,"data","form","formType"],[3,"formChange","data","form","formType"],[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(n,l){1&n&&(e.j41(0,"div",0),e.DNE(1,Fx0,3,3,"h2",1)(2,vx0,3,3)(3,kx0,6,0,"div",2)(4,Jx0,20,20),e.k0s(),e.DNE(5,Qx0,9,1,"div",3)),2&n&&(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:[gM0,s1.h,s1.D9,vM0,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,UM0,GM0,fE1,sx0,uE1,xx0,L.YU]})}}return t})();function Zx0(t,a){if(1&t){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 Kx0(t,a){1&t&&(e.j41(0,"div",11),e.nrm(1,"div",12),e.k0s())}function eb0(t,a){if(1&t&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&t){const c=e.XpG();e.R7$(),e.SpI(" ",c.error," ")}}function cb0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.removeRelatedParty(l))}),e.EFF(11," Remove Party "),e.k0s()()}if(2&t){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 tb0(t,a){if(1&t){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,r=e.XpG(2);return e.Njj(r.removeQuoteItem(l))}),e.EFF(16," Remove Item "),e.k0s()()}if(2&t){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 nb0(t,a){if(1&t){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,cb0,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,tb0,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&t){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 ff1=(()=>{class t{constructor(c,n,l,r,m){this.formBuilder=c,this.quoteService=n,this.router=l,this.route=r,this.notificationService=m,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 n=decodeURIComponent(c);this.loadQuote(n)}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:n=>{for(this.quoteForm.patchValue({description:n.description});this.relatedPartyArray.length;)this.relatedPartyArray.removeAt(0);for(;this.quoteItemArray.length;)this.quoteItemArray.removeAt(0);n.relatedParty?.forEach(l=>{this.relatedPartyArray.push(this.formBuilder.group({id:[l.id],"@type":[l["@type"]]}))}),n.quoteItem?.forEach(l=>{this.quoteItemArray.push(this.formBuilder.group({state:[l.state]}))}),this.isLoading=!1},error:n=>{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 n={...this.quoteForm.value,quoteDate:(new Date).toISOString(),state:"draft"},l=this.route.snapshot.paramMap.get("id");(l?this.quoteService.updateQuote(decodeURIComponent(l),n):this.quoteService.createQuote(n)).subscribe({next:()=>{this.notificationService.showSuccess(`Quote ${this.isEditMode?"updated":"created"} successfully`),this.router.navigate(["/quotes"])},error:m=>{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(n){return new(n||t)(e.rXU(p.ok),e.rXU(s3.K),e.rXU(N2.Ix),e.rXU(N2.nX),e.rXU(K4.J))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(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,Zx0,2,0,"button",5),e.k0s(),e.DNE(7,Kx0,2,0,"div",6)(8,eb0,2,1,"div",7)(9,nb0,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&n&&(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:[L.MD,L.Sq,L.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,L6.w],encapsulation:2})}}return t})();const lb0=[{path:"",component:p3},{path:"new",component:ff1},{path:":id/edit",component:ff1}],sb0=(t,a,c)=>({"px-2 inline-flex text-xs leading-5 font-semibold rounded-full":!0,"bg-green-100 text-green-800":t,"bg-red-100 text-red-800":a,"bg-blue-100 text-blue-800":c});function ab0(t,a){if(1&t){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 ob0(t,a){if(1&t){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 ib0(t,a){1&t&&(e.j41(0,"div",18),e.nrm(1,"div",19),e.k0s())}function rb0(t,a){if(1&t&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&t){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.error," ")}}function db0(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.id||"-"," "),e.R7$(4),e.SpI(" ",c["@type"]||"-"," ")}}function fb0(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,db0,9,2,"div",29),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.relatedParty)}}function ub0(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1,"No related parties"),e.k0s())}function mb0(t,a){if(1&t&&(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,fb0,2,1,"div",28)(31,ub0,2,0,"ng-template",null,0,e.C5r),e.k0s()()),2&t){const c=e.sdS(32),n=e.XpG(2);e.R7$(9),e.JRh(n.quote.id),e.R7$(5),e.JRh(n.quote.description||"-"),e.R7$(5),e.JRh(e.i5U(20,7,n.quote.quoteDate,"dd/MM/yyyy")),e.R7$(6),e.Y8G("ngClass",e.sMw(10,sb0,!n.quoteService.isQuoteFinalized(n.quote),n.quoteService.isQuoteCancelled(n.quote),n.quoteService.isQuoteAccepted(n.quote))),e.R7$(),e.SpI(" ",n.getQuoteStatus()," "),e.R7$(4),e.Y8G("ngIf",null==n.quote.relatedParty?null:n.quote.relatedParty.length)("ngIfElse",c)}}function pb0(t,a){if(1&t&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2,"Attachments:"),e.k0s(),e.EFF(3),e.k0s()),2&t){const c=e.XpG().$implicit;e.R7$(3),e.SpI(" ",c.attachment.length||0," ")}}function hb0(t,a){if(1&t&&(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,pb0,4,1,"div",35),e.k0s()),2&t){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.state||"-"," "),e.R7$(),e.Y8G("ngIf",c.attachment&&c.attachment.length)}}function gb0(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,hb0,6,2,"div",29),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.quoteItem)}}function _b0(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1,"No items"),e.k0s())}function Lb0(t,a){if(1&t&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Quote Items"),e.k0s(),e.DNE(3,gb0,2,1,"div",28)(4,_b0,2,0,"ng-template",null,1,e.C5r),e.k0s()),2&t){const c=e.sdS(5),n=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==n.quote.quoteItem?null:n.quote.quoteItem.length)("ngIfElse",c)}}function Cb0(t,a){if(1&t&&(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&t){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.author," "),e.R7$(2),e.SpI(" ",c.text," ")}}function zb0(t,a){if(1&t&&(e.j41(0,"div"),e.DNE(1,Cb0,7,2,"div",29),e.k0s()),2&t){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.note)}}function Mb0(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1,"No notes"),e.k0s())}function xb0(t,a){if(1&t&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Notes"),e.k0s(),e.DNE(3,zb0,2,1,"div",28)(4,Mb0,2,0,"ng-template",null,2,e.C5r),e.k0s()),2&t){const c=e.sdS(5),n=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==n.quote.note?null:n.quote.note.length)("ngIfElse",c)}}function bb0(t,a){if(1&t&&(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,ab0,2,0,"button",10)(7,ob0,2,0,"button",11),e.k0s()(),e.DNE(8,ib0,2,0,"div",12)(9,rb0,2,1,"div",13)(10,mb0,33,14,"div",14)(11,Lb0,6,2,"div",15)(12,xb0,6,2,"div",15),e.k0s()()),2&t){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 yb0=(()=>{class t{constructor(c,n,l,r){this.route=c,this.router=n,this.quoteService=l,this.notificationService=r,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 n=decodeURIComponent(c);this.loadQuote(n)}}loadQuote(c){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(c).subscribe({next:n=>{this.quote=n,this.isLoading=!1},error:n=>{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(n){return new(n||t)(e.rXU(N2.nX),e.rXU(N2.Ix),e.rXU(s3.K),e.rXU(K4.J))}}static{this.\u0275cmp=e.VBU({type:t,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(n,l){1&n&&(e.DNE(0,bb0,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&n&&(e.Y8G("ngIf",l.quote),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("message",l.deleteConfirmMessage))},dependencies:[L.MD,L.YU,L.Sq,L.bT,L.vh,L6.w],encapsulation:2})}}return t})(),Fb0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t})}static{this.\u0275inj=e.G2t({imports:[L.MD,N2.iI.forChild(lb0),p3,yb0,ff1,O4.z,L6.w]})}}return t})();function vb0(t,a){return new zL0(t,a)}let kb0=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=e.$C({type:t,bootstrap:[Tl0]})}static{this.\u0275inj=e.G2t({providers:[dE1,{provide:e.hnV,useFactory:Z2,deps:[dE1,l8],multi:!0},{provide:g.a7,useClass:cf,multi:!0}],imports:[u.Bb,X2.dX,HL,vl0,X2.aY,p.YN,p.X1,I0,$3,O4.z,Fb0,l3.forRoot(),s1.h.forRoot({defaultLanguage:"en",loader:{provide:s1.Wr,useFactory:vb0,deps:[g.Qq,Hk]}}),CE,D8.forRoot({mode:U.AUTO_DEFERRED}),W0,IN1,rG,df1,mE1,I8,ge,KN1,vw1]})}}return t})();e.wjB(QN1,function(){return[NH,mE1,ds0,qr0,d_0,Bp0,ta0,Er0,Jg0,kp0,aE1,vm0,Wh0,LL0,oE1,Jl0,Ds0]},function(){return[s1.D9]}),e.wjB(aE1,function(){return[df1,Q0]},function(){return[s1.D9]}),e.wjB(oE1,function(){return[df1,Q0]},function(){return[s1.D9]}),u.sG().bootstrapModule(kb0).catch(t=>console.error(t))},4261:(k1,r1,v)=>{k1.exports={currencies:v(8184)}},1544:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<12?L?"vm":"VM":L?"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}})}(v(7586))},2155:function(k1,r1,v){!function(u){"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(V,c1,K,L1){var j=g(V),l1=e[A][g(V)];return 2===j&&(l1=l1[c1?0:1]),l1.replace(/%d/i,V)}},L=["\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"];u.defineLocale("ar-dz",{months:L,monthsShort:L,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,V,c1){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}})}(v(7586))},3583:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},1638:function(k1,r1,v){!function(u){"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(V){return 0===V?0:1===V?1:2===V?2:V%100>=3&&V%100<=10?3:V%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"]},L=function(V){return function(c1,K,L1,j){var l1=e(c1),m1=p[V][e(c1)];return 2===l1&&(m1=m1[K?0:1]),m1.replace(/%d/i,c1)}},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"];u.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(V){return"\u0645"===V},meridiem:function(V,c1,K){return V<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:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(V){return V.replace(/\u060c/g,",")},postformat:function(V){return V.replace(/\d/g,function(c1){return g[c1]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(v(7586))},7823:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},7712:function(k1,r1,v){!function(u){"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"};u.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(L){return"\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.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(L){return L.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(v(7586))},8261:function(k1,r1,v){!function(u){"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"};u.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(L){return"\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(v(7586))},6703:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3108:function(k1,r1,v){!function(u){"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(c1){return 0===c1?0:1===c1?1:2===c1?2:c1%100>=3&&c1%100<=10?3:c1%100>=11?4:5},L={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(c1){return function(K,L1,j,l1){var m1=p(K),f1=L[c1][p(K)];return 2===m1&&(f1=f1[L1?0:1]),f1.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"];u.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(c1){return"\u0645"===c1},meridiem:function(c1,K,L1){return c1<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(c1){return c1.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(K){return e[K]}).replace(/\u060c/g,",")},postformat:function(c1){return c1.replace(/\d/g,function(K){return g[K]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(v(7586))},6508:function(k1,r1,v){!function(u){"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"};u.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,L,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 L=p%10;return p+(g[L]||g[p%100-L]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(v(7586))},6766:function(k1,r1,v){!function(u){"use strict";function e(L,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":L+" "+function g(L,S){var A=L.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],+L)}u.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(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(L)},meridiem:function(L,S,A){return L<4?"\u043d\u043e\u0447\u044b":L<12?"\u0440\u0430\u043d\u0456\u0446\u044b":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(L,S){switch(S){case"M":case"d":case"DDD":case"w":case"W":return L%10!=2&&L%10!=3||L%100==12||L%100==13?L+"-\u044b":L+"-\u0456";case"D":return L+"-\u0433\u0430";default:return L}},week:{dow:1,doy:7}})}(v(7586))},8564:function(k1,r1,v){!function(u){"use strict";u.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,L=e%100;return 0===e?e+"-\u0435\u0432":0===L?e+"-\u0435\u043d":L>10&&L<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}})}(v(7586))},7462:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3438:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===S?L<4?L:L+12:"\u09ad\u09cb\u09b0"===S||"\u09b8\u0995\u09be\u09b2"===S?L:"\u09a6\u09c1\u09aa\u09c1\u09b0"===S?L>=3?L:L+12:"\u09ac\u09bf\u0995\u09be\u09b2"===S||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u09b0\u09be\u09a4":L<6?"\u09ad\u09cb\u09b0":L<12?"\u09b8\u0995\u09be\u09b2":L<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<18?"\u09ac\u09bf\u0995\u09be\u09b2":L<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(v(7586))},7107:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u09b0\u09be\u09a4"===S&&L>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===S&&L<5||"\u09ac\u09bf\u0995\u09be\u09b2"===S?L+12:L},meridiem:function(L,S,A){return L<4?"\u09b0\u09be\u09a4":L<10?"\u09b8\u0995\u09be\u09b2":L<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":L<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(v(7586))},9004:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===S&&L>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===S&&L<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===S?L+12:L},meridiem:function(L,S,A){return L<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":L<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":L<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":L<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(v(7586))},927:function(k1,r1,v){!function(u){"use strict";function g(f1,$1,g1){return f1+" "+function L(f1,$1){return 2===$1?function S(f1){var $1={m:"v",b:"v",d:"z"};return void 0===$1[f1.charAt(0)]?f1:$1[f1.charAt(0)]+f1.substring(1)}(f1):f1}({mm:"munutenn",MM:"miz",dd:"devezh"}[g1],f1)}function p(f1){return f1>9?p(f1%10):f1}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],V=/^(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,l1=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];u.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:l1,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:l1,monthsRegex:V,monthsShortRegex:V,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(f1){switch(p(f1)){case 1:case 3:case 4:case 5:case 9:return f1+" bloaz";default:return f1+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(f1){return f1+(1===f1?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(f1){return"g.m."===f1},meridiem:function(f1,$1,g1){return f1<12?"a.m.":"g.m."}})}(v(7586))},7768:function(k1,r1,v){!function(u){"use strict";function e(L,S,A){var V=L+" ";switch(A){case"ss":return V+(1===L?"sekunda":2===L||3===L||4===L?"sekunde":"sekundi");case"mm":return V+(1===L?"minuta":2===L||3===L||4===L?"minute":"minuta");case"h":return"jedan sat";case"hh":return V+(1===L?"sat":2===L||3===L||4===L?"sata":"sati");case"dd":return V+(1===L?"dan":"dana");case"MM":return V+(1===L?"mjesec":2===L||3===L||4===L?"mjeseca":"mjeseci");case"yy":return V+(1===L?"godina":2===L||3===L||4===L?"godine":"godina")}}u.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(L,S,A,V){if("m"===A)return S?"jedna minuta":V?"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}})}(v(7586))},6291:function(k1,r1,v){!function(u){"use strict";u.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 L=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(L="a"),e+L},week:{dow:1,doy:4}})}(v(7586))},5301:function(k1,r1,v){!function(u){"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],L=/^(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(c1){return c1>1&&c1<5&&1!=~~(c1/10)}function A(c1,K,L1,j){var l1=c1+" ";switch(L1){case"s":return K||j?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return K||j?l1+(S(c1)?"sekundy":"sekund"):l1+"sekundami";case"m":return K?"minuta":j?"minutu":"minutou";case"mm":return K||j?l1+(S(c1)?"minuty":"minut"):l1+"minutami";case"h":return K?"hodina":j?"hodinu":"hodinou";case"hh":return K||j?l1+(S(c1)?"hodiny":"hodin"):l1+"hodinami";case"d":return K||j?"den":"dnem";case"dd":return K||j?l1+(S(c1)?"dny":"dn\xed"):l1+"dny";case"M":return K||j?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return K||j?l1+(S(c1)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):l1+"m\u011bs\xedci";case"y":return K||j?"rok":"rokem";case"yy":return K||j?l1+(S(c1)?"roky":"let"):l1+"lety"}}u.defineLocale("cs",{months:g,monthsShort:e,monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},6666:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5163:function(k1,r1,v){!function(u){"use strict";u.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 L="";return e>20?L=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(L=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+L},week:{dow:1,doy:4}})}(v(7586))},7360:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3248:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][0]:V[S][1]}u.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}})}(v(7586))},3222:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][0]:V[S][1]}u.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}})}(v(7586))},5932:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][0]:V[S][1]}u.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}})}(v(7586))},6405:function(k1,r1,v){!function(u){"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"];u.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(L){return"\u0789\u078a"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(v(7586))},718:function(k1,r1,v){!function(u){"use strict";u.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,L){return p?"string"==typeof L&&/D/.test(L.substring(0,L.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,L,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,L){var S=this._calendarEl[p],A=L&&L.hours();return function g(p){return typeof Function<"u"&&p instanceof Function||"[object Function]"===Object.prototype.toString.call(p)}(S)&&(S=S.apply(L)),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}})}(v(7586))},6319:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},597:function(k1,r1,v){!function(u){"use strict";u.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")}})}(v(7586))},1800:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},807:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5960:function(k1,r1,v){!function(u){"use strict";u.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")}})}(v(7586))},4418:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},6865:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2647:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},1931:function(k1,r1,v){!function(u){"use strict";u.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,L){return e>11?L?"p.t.m.":"P.T.M.":L?"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}})}(v(7586))},1805:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},3445:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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"})}(v(7586))},1516:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},6679:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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"})}(v(7586))},8150:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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 L?V[S][2]?V[S][2]:V[S][1]:A?V[S][0]:V[S][1]}u.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}})}(v(7586))},757:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5742:function(k1,r1,v){!function(u){"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"};u.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(L){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(L)},meridiem:function(L,S,A){return L<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(L){return L.replace(/[\u06f0-\u06f9]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(v(7586))},3958:function(k1,r1,v){!function(u){"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,V,c1,K){var L1="";switch(c1){case"s":return K?"muutaman sekunnin":"muutama sekunti";case"ss":L1=K?"sekunnin":"sekuntia";break;case"m":return K?"minuutin":"minuutti";case"mm":L1=K?"minuutin":"minuuttia";break;case"h":return K?"tunnin":"tunti";case"hh":L1=K?"tunnin":"tuntia";break;case"d":return K?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":L1=K?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return K?"kuukauden":"kuukausi";case"MM":L1=K?"kuukauden":"kuukautta";break;case"y":return K?"vuoden":"vuosi";case"yy":L1=K?"vuoden":"vuotta"}return function L(A,V){return A<10?V?e[A]:g[A]:A}(A,K)+" "+L1}u.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}})}(v(7586))},6720:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},8352:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2096:function(k1,r1,v){!function(u){"use strict";u.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")}}})}(v(7586))},5759:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},4059:function(k1,r1,v){!function(u){"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,L=[/^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];u.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:L,longMonthsParse:L,shortMonthsParse:L,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,V){switch(V){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}})}(v(7586))},5958:function(k1,r1,v){!function(u){"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("_");u.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(L,S){return L?/-MMM-/.test(S)?e[L.month()]:g[L.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(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(v(7586))},4143:function(k1,r1,v){!function(u){"use strict";u.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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(v(7586))},7028:function(k1,r1,v){!function(u){"use strict";u.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(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(v(7586))},428:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},6861:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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?V[S][0]:V[S][1]}u.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,L){return"D"===L?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,L){return 12===p&&(p=0),"\u0930\u093e\u0924\u0940"===L?p<4?p:p+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===L?p:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===L?p>12?p:p+12:"\u0938\u093e\u0902\u091c\u0947"===L?p+12:void 0},meridiem:function(p,L,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"}})}(v(7586))},7718:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V={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?V[S][0]:V[S][1]}u.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,L){return"D"===L?p+"er":p},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(p,L){return 12===p&&(p=0),"rati"===L?p<4?p:p+12:"sokallim"===L?p:"donparam"===L?p>12?p:p+12:"sanje"===L?p+12:void 0},meridiem:function(p,L,S){return p<4?"rati":p<12?"sokallim":p<16?"donparam":p<20?"sanje":"rati"}})}(v(7586))},6827:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0ab0\u0abe\u0aa4"===S?L<4?L:L+12:"\u0ab8\u0ab5\u0abe\u0ab0"===S?L:"\u0aac\u0aaa\u0acb\u0ab0"===S?L>=10?L:L+12:"\u0ab8\u0abe\u0a82\u0a9c"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u0ab0\u0abe\u0aa4":L<10?"\u0ab8\u0ab5\u0abe\u0ab0":L<17?"\u0aac\u0aaa\u0acb\u0ab0":L<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(v(7586))},1936:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?L?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?L?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(v(7586))},1332:function(k1,r1,v){!function(u){"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];u.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(V){return e[V]})},postformat:function(A){return A.replace(/\d/g,function(V){return g[V]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(A,V){return 12===A&&(A=0),"\u0930\u093e\u0924"===V?A<4?A:A+12:"\u0938\u0941\u092c\u0939"===V?A:"\u0926\u094b\u092a\u0939\u0930"===V?A>=10?A:A+12:"\u0936\u093e\u092e"===V?A+12:void 0},meridiem:function(A,V,c1){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}})}(v(7586))},1957:function(k1,r1,v){!function(u){"use strict";function g(p,L,S){var A=p+" ";switch(S){case"ss":return A+(1===p?"sekunda":2===p||3===p||4===p?"sekunde":"sekundi");case"m":return L?"jedna minuta":"jedne minute";case"mm":return A+(1===p?"minuta":2===p||3===p||4===p?"minute":"minuta");case"h":return L?"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")}}u.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}})}(v(7586))},8928:function(k1,r1,v){!function(u){"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,V,c1){var K=S;switch(V){case"s":return c1||A?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return K+(c1||A)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(c1||A?" perc":" perce");case"mm":return K+(c1||A?" perc":" perce");case"h":return"egy"+(c1||A?" \xf3ra":" \xf3r\xe1ja");case"hh":return K+(c1||A?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(c1||A?" nap":" napja");case"dd":return K+(c1||A?" nap":" napja");case"M":return"egy"+(c1||A?" h\xf3nap":" h\xf3napja");case"MM":return K+(c1||A?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(c1||A?" \xe9v":" \xe9ve");case"yy":return K+(c1||A?" \xe9v":" \xe9ve")}return""}function p(S){return(S?"":"[m\xfalt] ")+"["+g[this.day()]+"] LT[-kor]"}u.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,V){return S<12?!0===V?"de":"DE":!0===V?"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}})}(v(7586))},6215:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},586:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},211:function(k1,r1,v){!function(u){"use strict";function g(L){return L%100==11||L%10!=1}function e(L,S,A,V){var c1=L+" ";switch(A){case"s":return S||V?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return g(L)?c1+(S||V?"sek\xfandur":"sek\xfandum"):c1+"sek\xfanda";case"m":return S?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return g(L)?c1+(S||V?"m\xedn\xfatur":"m\xedn\xfatum"):S?c1+"m\xedn\xfata":c1+"m\xedn\xfatu";case"hh":return g(L)?c1+(S||V?"klukkustundir":"klukkustundum"):c1+"klukkustund";case"d":return S?"dagur":V?"dag":"degi";case"dd":return g(L)?S?c1+"dagar":c1+(V?"daga":"d\xf6gum"):S?c1+"dagur":c1+(V?"dag":"degi");case"M":return S?"m\xe1nu\xf0ur":V?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return g(L)?S?c1+"m\xe1nu\xf0ir":c1+(V?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):S?c1+"m\xe1nu\xf0ur":c1+(V?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return S||V?"\xe1r":"\xe1ri";case"yy":return g(L)?c1+(S||V?"\xe1r":"\xe1rum"):c1+(S||V?"\xe1r":"\xe1ri")}}u.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}})}(v(7586))},2340:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},170:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},9770:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},3875:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},9499:function(k1,r1,v){!function(u){"use strict";u.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,L,S){return"\u10d8"===S?L+"\u10e8\u10d8":L+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}})}(v(7586))},3573:function(k1,r1,v){!function(u){"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"};u.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}})}(v(7586))},8807:function(k1,r1,v){!function(u){"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"};u.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(L){return"\u179b\u17d2\u1784\u17b6\u1785"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(S){return e[S]})},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(v(7586))},5082:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===S?L<4?L:L+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===S?L:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===S?L>=10?L:L+12:"\u0cb8\u0c82\u0c9c\u0cc6"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":L<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":L<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":L<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(L){return L+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(v(7586))},137:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(v(7586))},3744:function(k1,r1,v){!function(u){"use strict";function g(L,S,A,V){var c1={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[L+" san\xeeye",L+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[L+" deq\xeeqe",L+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[L+" saet",L+" saetan"],d:["rojek","rojek\xea"],dd:[L+" roj",L+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[L+" hefte",L+" hefteyan"],M:["mehek","mehek\xea"],MM:[L+" meh",L+" mehan"],y:["salek","salek\xea"],yy:[L+" sal",L+" salan"]};return S?c1[A][0]:c1[A][1]}u.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(L,S,A){return L<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(L,S){var A=S.toLowerCase();return A.includes("w")||A.includes("m")?L+".":L+function e(L){var S=(L=""+L).substring(L.length-1),A=L.length>1?L.substring(L.length-2):"";return 12==A||13==A||"2"!=S&&"3"!=S&&"50"!=A&&"70"!=S&&"80"!=S?"\xea":"y\xea"}(L)},week:{dow:1,doy:4}})}(v(7586))},111:function(k1,r1,v){!function(u){"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"];u.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,V){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}})}(v(7586))},9187:function(k1,r1,v){!function(u){"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"};u.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}})}(v(7586))},5969:function(k1,r1,v){!function(u){"use strict";function g(A,V,c1,K){var L1={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 V?L1[c1][0]:L1[c1][1]}function L(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 V=A%10;return L(0===V?A/10:V)}if(A<1e4){for(;A>=10;)A/=10;return L(A)}return L(A/=1e3)}u.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 L(A.substr(0,A.indexOf(" ")))?"a "+A:"an "+A},past:function p(A){return L(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}})}(v(7586))},3526:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},411:function(k1,r1,v){!function(u){"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(c1,K,L1,j){return K?S(L1)[0]:j?S(L1)[1]:S(L1)[2]}function L(c1){return c1%10==0||c1>10&&c1<20}function S(c1){return g[c1].split("_")}function A(c1,K,L1,j){var l1=c1+" ";return 1===c1?l1+p(0,K,L1[0],j):K?l1+(L(c1)?S(L1)[1]:S(L1)[0]):j?l1+S(L1)[1]:l1+(L(c1)?S(L1)[1]:S(L1)[2])}u.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(c1,K,L1,j){return K?"kelios sekund\u0117s":j?"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(c1){return c1+"-oji"},week:{dow:1,doy:4}})}(v(7586))},2621:function(k1,r1,v){!function(u){"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(V,c1,K){return K?c1%10==1&&c1%100!=11?V[2]:V[3]:c1%10==1&&c1%100!=11?V[0]:V[1]}function p(V,c1,K){return V+" "+e(g[K],V,c1)}function L(V,c1,K){return e(g[K],V,c1)}u.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(V,c1){return c1?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:p,m:L,mm:p,h:L,hh:p,d:L,dd:p,M:L,MM:p,y:L,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(v(7586))},5869:function(k1,r1,v){!function(u){"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,L){return 1===p?L[0]:p>=2&&p<=4?L[1]:L[2]},translate:function(p,L,S){var A=g.words[S];return 1===S.length?L?A[0]:A[1]:p+" "+g.correctGrammaticalCase(p,A)}};u.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}})}(v(7586))},5881:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2391:function(k1,r1,v){!function(u){"use strict";u.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,L=e%100;return 0===e?e+"-\u0435\u0432":0===L?e+"-\u0435\u043d":L>10&&L<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}})}(v(7586))},1126:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},4892:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){switch(S){case"s":return L?"\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+(L?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return p+(L?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return p+(L?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return p+(L?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return p+(L?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return p+(L?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return p}}u.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,L,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,L){switch(L){case"d":case"D":case"DDD":return p+" \u04e9\u0434\u04e9\u0440";default:return p}}})}(v(7586))},9080:function(k1,r1,v){!function(u){"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,V,c1){var K="";if(A)switch(V){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(V){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)}u.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,V){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}})}(v(7586))},5950:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},399:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},9902:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2985:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(S){return e[S]})},postformat:function(L){return L.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(v(7586))},7859:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3642:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0930\u093e\u0924\u093f"===S?L<4?L:L+12:"\u092c\u093f\u0939\u093e\u0928"===S?L:"\u0926\u093f\u0909\u0901\u0938\u094b"===S?L>=10?L:L+12:"\u0938\u093e\u0901\u091d"===S?L+12:void 0},meridiem:function(L,S,A){return L<3?"\u0930\u093e\u0924\u093f":L<12?"\u092c\u093f\u0939\u093e\u0928":L<16?"\u0926\u093f\u0909\u0901\u0938\u094b":L<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}})}(v(7586))},9875:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},5441:function(k1,r1,v){!function(u){"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],L=/^(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;u.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,V){return A?/-MMM-/.test(V)?e[A.month()]:g[A.month()]:g},monthsRegex:L,monthsShortRegex:L,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}})}(v(7586))},1311:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2567:function(k1,r1,v){!function(u){"use strict";u.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 L=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(L="a"),e+L},week:{dow:1,doy:4}})}(v(7586))},6962:function(k1,r1,v){!function(u){"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"};u.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(L){return L.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S){return 12===L&&(L=0),"\u0a30\u0a3e\u0a24"===S?L<4?L:L+12:"\u0a38\u0a35\u0a47\u0a30"===S?L:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===S?L>=10?L:L+12:"\u0a38\u0a3c\u0a3e\u0a2e"===S?L+12:void 0},meridiem:function(L,S,A){return L<4?"\u0a30\u0a3e\u0a24":L<10?"\u0a38\u0a35\u0a47\u0a30":L<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":L<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(v(7586))},1063:function(k1,r1,v){!function(u){"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 L(V){return V%10<5&&V%10>1&&~~(V/10)%10!=1}function S(V,c1,K){var L1=V+" ";switch(K){case"ss":return L1+(L(V)?"sekundy":"sekund");case"m":return c1?"minuta":"minut\u0119";case"mm":return L1+(L(V)?"minuty":"minut");case"h":return c1?"godzina":"godzin\u0119";case"hh":return L1+(L(V)?"godziny":"godzin");case"ww":return L1+(L(V)?"tygodnie":"tygodni");case"MM":return L1+(L(V)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return L1+(L(V)?"lata":"lat")}}u.defineLocale("pl",{months:function(V,c1){return V?/D MMMM/.test(c1)?e[V.month()]:g[V.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}})}(v(7586))},7476:function(k1,r1,v){!function(u){"use strict";u.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"})}(v(7586))},8719:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},1004:function(k1,r1,v){!function(u){"use strict";function g(p,L,S){var V=" ";return(p%100>=20||p>=100&&p%100==0)&&(V=" de "),p+V+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[S]}u.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}})}(v(7586))},1326:function(k1,r1,v){!function(u){"use strict";function e(S,A,V){return"m"===V?A?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":S+" "+function g(S,A){var V=S.split("_");return A%10==1&&A%100!=11?V[0]:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?V[1]:V[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"}[V],+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];u.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,V){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}})}(v(7586))},2608:function(k1,r1,v){!function(u){"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"];u.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(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(v(7586))},3911:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},5147:function(k1,r1,v){!function(u){"use strict";u.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,L){return e>11?L?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":L?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(v(7586))},3741:function(k1,r1,v){!function(u){"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 L(A,V,c1,K){var L1=A+" ";switch(c1){case"s":return V||K?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return V||K?L1+(p(A)?"sekundy":"sek\xfand"):L1+"sekundami";case"m":return V?"min\xfata":K?"min\xfatu":"min\xfatou";case"mm":return V||K?L1+(p(A)?"min\xfaty":"min\xfat"):L1+"min\xfatami";case"h":return V?"hodina":K?"hodinu":"hodinou";case"hh":return V||K?L1+(p(A)?"hodiny":"hod\xedn"):L1+"hodinami";case"d":return V||K?"de\u0148":"d\u0148om";case"dd":return V||K?L1+(p(A)?"dni":"dn\xed"):L1+"d\u0148ami";case"M":return V||K?"mesiac":"mesiacom";case"MM":return V||K?L1+(p(A)?"mesiace":"mesiacov"):L1+"mesiacmi";case"y":return V||K?"rok":"rokom";case"yy":return V||K?L1+(p(A)?"roky":"rokov"):L1+"rokmi"}}u.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:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(v(7586))},3e3:function(k1,r1,v){!function(u){"use strict";function g(p,L,S,A){var V=p+" ";switch(S){case"s":return L||A?"nekaj sekund":"nekaj sekundami";case"ss":return V+(1===p?L?"sekundo":"sekundi":2===p?L||A?"sekundi":"sekundah":p<5?L||A?"sekunde":"sekundah":"sekund");case"m":return L?"ena minuta":"eno minuto";case"mm":return V+(1===p?L?"minuta":"minuto":2===p?L||A?"minuti":"minutama":p<5?L||A?"minute":"minutami":L||A?"minut":"minutami");case"h":return L?"ena ura":"eno uro";case"hh":return V+(1===p?L?"ura":"uro":2===p?L||A?"uri":"urama":p<5?L||A?"ure":"urami":L||A?"ur":"urami");case"d":return L||A?"en dan":"enim dnem";case"dd":return V+(1===p?L||A?"dan":"dnem":2===p?L||A?"dni":"dnevoma":L||A?"dni":"dnevi");case"M":return L||A?"en mesec":"enim mesecem";case"MM":return V+(1===p?L||A?"mesec":"mesecem":2===p?L||A?"meseca":"mesecema":p<5?L||A?"mesece":"meseci":L||A?"mesecev":"meseci");case"y":return L||A?"eno leto":"enim letom";case"yy":return V+(1===p?L||A?"leto":"letom":2===p?L||A?"leti":"letoma":p<5?L||A?"leta":"leti":L||A?"let":"leti")}}u.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}})}(v(7586))},451:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},905:function(k1,r1,v){!function(u){"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,L){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?L[0]:L[1]:L[2]},translate:function(p,L,S,A){var c1,V=g.words[S];return 1===S.length?"y"===S&&L?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":A||L?V[0]:V[1]:(c1=g.correctGrammaticalCase(p,V),"yy"===S&&L&&"\u0433\u043e\u0434\u0438\u043d\u0443"===c1?p+" \u0433\u043e\u0434\u0438\u043d\u0430":p+" "+c1)}};u.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}})}(v(7586))},5046:function(k1,r1,v){!function(u){"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,L){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?L[0]:L[1]:L[2]},translate:function(p,L,S,A){var c1,V=g.words[S];return 1===S.length?"y"===S&&L?"jedna godina":A||L?V[0]:V[1]:(c1=g.correctGrammaticalCase(p,V),"yy"===S&&L&&"godinu"===c1?p+" godina":p+" "+c1)}};u.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}})}(v(7586))},5765:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},9290:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3449:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2688:function(k1,r1,v){!function(u){"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"};u.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(L){return L+"\u0bb5\u0ba4\u0bc1"},preparse:function(L){return L.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(S){return e[S]})},postformat:function(L){return L.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(L,S,A){return L<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":L<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":L<10?" \u0b95\u0bbe\u0bb2\u0bc8":L<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":L<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":L<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(L,S){return 12===L&&(L=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===S?L<2?L:L+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===S||"\u0b95\u0bbe\u0bb2\u0bc8"===S||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===S&&L>=10?L:L+12},week:{dow:0,doy:6}})}(v(7586))},2060:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},3290:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},8294:function(k1,r1,v){!function(u){"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"};u.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,L){return 12===p&&(p=0),"\u0448\u0430\u0431"===L?p<4?p:p+12:"\u0441\u0443\u0431\u04b3"===L?p:"\u0440\u04ef\u0437"===L?p>=11?p:p+12:"\u0431\u0435\u0433\u043e\u04b3"===L?p+12:void 0},meridiem:function(p,L,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}})}(v(7586))},1231:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},3746:function(k1,r1,v){!function(u){"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"};u.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,L){switch(L){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}})}(v(7586))},9040:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},7187:function(k1,r1,v){!function(u){"use strict";var g="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function L(V,c1,K,L1){var j=function S(V){var c1=Math.floor(V%1e3/100),K=Math.floor(V%100/10),L1=V%10,j="";return c1>0&&(j+=g[c1]+"vatlh"),K>0&&(j+=(""!==j?" ":"")+g[K]+"maH"),L1>0&&(j+=(""!==j?" ":"")+g[L1]),""===j?"pagh":j}(V);switch(K){case"ss":return j+" lup";case"mm":return j+" tup";case"hh":return j+" rep";case"dd":return j+" jaj";case"MM":return j+" jar";case"yy":return j+" DIS"}}u.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(V){var c1=V;return-1!==V.indexOf("jaj")?c1.slice(0,-3)+"leS":-1!==V.indexOf("jar")?c1.slice(0,-3)+"waQ":-1!==V.indexOf("DIS")?c1.slice(0,-3)+"nem":c1+" pIq"},past:function p(V){var c1=V;return-1!==V.indexOf("jaj")?c1.slice(0,-3)+"Hu\u2019":-1!==V.indexOf("jar")?c1.slice(0,-3)+"wen":-1!==V.indexOf("DIS")?c1.slice(0,-3)+"ben":c1+" ret"},s:"puS lup",ss:L,m:"wa\u2019 tup",mm:L,h:"wa\u2019 rep",hh:L,d:"wa\u2019 jaj",dd:L,M:"wa\u2019 jar",MM:L,y:"wa\u2019 DIS",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(v(7586))},153:function(k1,r1,v){!function(u){"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"};u.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,L,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,L){switch(L){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}})}(v(7586))},8521:function(k1,r1,v){!function(u){"use strict";function e(p,L,S,A){var V={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||L?V[S][0]:V[S][1]}u.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,L,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}})}(v(7586))},2234:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},8010:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},3349:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},8479:function(k1,r1,v){!function(u){"use strict";function e(A,V,c1){return"m"===c1?V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===c1?V?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":A+" "+function g(A,V){var c1=A.split("_");return V%10==1&&V%100!=11?c1[0]:V%10>=2&&V%10<=4&&(V%100<10||V%100>=20)?c1[1]:c1[2]}({ss:V?"\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:V?"\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:V?"\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"}[c1],+A)}function L(A){return function(){return A+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}u.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,V){var c1={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?c1.nominative.slice(1,7).concat(c1.nominative.slice(0,1)):A?c1[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(V)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(V)?"genitive":"nominative"][A.day()]:c1.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:L("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:L("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:L("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:L("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return L("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return L("[\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,V,c1){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,V){switch(V){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}})}(v(7586))},3024:function(k1,r1,v){!function(u){"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"];u.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(L){return"\u0634\u0627\u0645"===L},meridiem:function(L,S,A){return L<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(L){return L.replace(/\u060c/g,",")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(v(7586))},2376:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},9800:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},9366:function(k1,r1,v){!function(u){"use strict";u.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,L){return e<12?L?"sa":"SA":L?"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}})}(v(7586))},9702:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},2655:function(k1,r1,v){!function(u){"use strict";u.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}})}(v(7586))},575:function(k1,r1,v){!function(u){"use strict";u.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,L){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}})}(v(7586))},8351:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},9245:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},8887:function(k1,r1,v){!function(u){"use strict";u.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,L){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"}})}(v(7586))},7586:function(k1,r1,v){(k1=v.nmd(k1)).exports=function(){"use strict";var u,$1;function g(){return u.apply(null,arguments)}function p(_){return _ instanceof Array||"[object Array]"===Object.prototype.toString.call(_)}function L(_){return null!=_&&"[object Object]"===Object.prototype.toString.call(_)}function S(_,y){return Object.prototype.hasOwnProperty.call(_,y)}function A(_){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(_).length;var y;for(y in _)if(S(_,y))return!1;return!0}function V(_){return void 0===_}function c1(_){return"number"==typeof _||"[object Number]"===Object.prototype.toString.call(_)}function K(_){return _ instanceof Date||"[object Date]"===Object.prototype.toString.call(_)}function L1(_,y){var O,R=[],n1=_.length;for(O=0;O>>0;for(O=0;O0)for(R=0;R=0?R?"+":"":"-")+Math.pow(10,Math.max(0,y-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,h2=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D1={},j1={};function A1(_,y,R,O){var n1=O;"string"==typeof O&&(n1=function(){return this[O]()}),_&&(j1[_]=n1),y&&(j1[y[0]]=function(){return y1(n1.apply(this,arguments),y[1],y[2])}),R&&(j1[R]=function(){return this.localeData().ordinal(n1.apply(this,arguments),_)})}function F1(_){return _.match(/\[[\s\S]/)?_.replace(/^\[|\]$/g,""):_.replace(/\\/g,"")}function Z(_,y){return _.isValid()?(y=X1(y,_.localeData()),D1[y]=D1[y]||function Z1(_){var R,O,y=_.match(e2);for(R=0,O=y.length;R=0&&h2.test(_);)_=_.replace(h2,O),h2.lastIndex=0,R-=1;return _}var l4={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 C4(_){return"string"==typeof _?l4[_]||l4[_.toLowerCase()]:void 0}function P3(_){var R,O,y={};for(O in _)S(_,O)&&(R=C4(O))&&(y[R]=_[O]);return y}var W4={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,G4=/\d/,e0=/\d\d/,r0=/\d{3}/,a3=/\d{4}/,$4=/[+-]?\d{6}/,L0=/\d\d?/,U0=/\d\d\d\d?/,d4=/\d\d\d\d\d\d?/,y3=/\d{1,3}/,c0=/\d{1,4}/,o3=/[+-]?\d{1,6}/,u0=/\d+/,x0=/[+-]?\d+/,L3=/Z|[+-]\d\d:?\d\d/gi,I0=/Z|[+-]\d\d(?::?\d\d)?/gi,g3=/[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,i3=/^[1-9]\d?/,X2=/^([1-9]\d|\d)/;function z1(_,y,R){s1[_]=_2(y)?y:function(O,n1){return O&&R?R:y}}function u1(_,y){return S(s1,_)?s1[_](y._strict,y._locale):new RegExp(function E1(_){return K1(_.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(y,R,O,n1,R1){return R||O||n1||R1}))}(_))}function K1(_){return _.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function M2(_){return _<0?Math.ceil(_)||0:Math.floor(_)}function x2(_){var y=+_,R=0;return 0!==y&&isFinite(y)&&(R=M2(y)),R}s1={};var P0={};function d0(_,y){var R,n1,O=y;for("string"==typeof _&&(_=[_]),c1(y)&&(O=function(R1,t2){t2[y]=x2(R1)}),n1=_.length,R=0;R68?1900:2e3)};var a1,b0=O4("FullYear",!0);function O4(_,y){return function(R){return null!=R?(F3(this,_,R),g.updateOffset(this,y),this):b1(this,_)}}function b1(_,y){if(!_.isValid())return NaN;var R=_._d,O=_._isUTC;switch(y){case"Milliseconds":return O?R.getUTCMilliseconds():R.getMilliseconds();case"Seconds":return O?R.getUTCSeconds():R.getSeconds();case"Minutes":return O?R.getUTCMinutes():R.getMinutes();case"Hours":return O?R.getUTCHours():R.getHours();case"Date":return O?R.getUTCDate():R.getDate();case"Day":return O?R.getUTCDay():R.getDay();case"Month":return O?R.getUTCMonth():R.getMonth();case"FullYear":return O?R.getUTCFullYear():R.getFullYear();default:return NaN}}function F3(_,y,R){var O,n1,R1,t2,W2;if(_.isValid()&&!isNaN(R)){switch(O=_._d,n1=_._isUTC,y){case"Milliseconds":return void(n1?O.setUTCMilliseconds(R):O.setMilliseconds(R));case"Seconds":return void(n1?O.setUTCSeconds(R):O.setSeconds(R));case"Minutes":return void(n1?O.setUTCMinutes(R):O.setMinutes(R));case"Hours":return void(n1?O.setUTCHours(R):O.setHours(R));case"Date":return void(n1?O.setUTCDate(R):O.setDate(R));case"FullYear":break;default:return}R1=R,t2=_.month(),W2=29!==(W2=_.date())||1!==t2||z4(R1)?W2:28,n1?O.setUTCFullYear(R1,t2,W2):O.setFullYear(R1,t2,W2)}}function x1(_,y){if(isNaN(_)||isNaN(y))return NaN;var R=function T6(_,y){return(_%y+y)%y}(y,12);return _+=(y-R)/12,1===R?z4(_)?29:28:31-R%7%2}a1=Array.prototype.indexOf?Array.prototype.indexOf:function(_){var y;for(y=0;y=0?(W2=new Date(_+400,y,R,O,n1,R1,t2),isFinite(W2.getFullYear())&&W2.setFullYear(_)):W2=new Date(_,y,R,O,n1,R1,t2),W2}function B4(_){var y,R;return _<100&&_>=0?((R=Array.prototype.slice.call(arguments))[0]=_+400,y=new Date(Date.UTC.apply(null,R)),isFinite(y.getUTCFullYear())&&y.setUTCFullYear(_)):y=new Date(Date.UTC.apply(null,arguments)),y}function f4(_,y,R){var O=7+y-R;return-(7+B4(_,0,O).getUTCDay()-y)%7+O-1}function t4(_,y,R,O,n1){var O0,i4,W2=1+7*(y-1)+(7+R-O)%7+f4(_,O,n1);return W2<=0?i4=j4(O0=_-1)+W2:W2>j4(_)?(O0=_+1,i4=W2-j4(_)):(O0=_,i4=W2),{year:O0,dayOfYear:i4}}function E4(_,y,R){var R1,t2,O=f4(_.year(),y,R),n1=Math.floor((_.dayOfYear()-O-1)/7)+1;return n1<1?R1=n1+V4(t2=_.year()-1,y,R):n1>V4(_.year(),y,R)?(R1=n1-V4(_.year(),y,R),t2=_.year()+1):(t2=_.year(),R1=n1),{week:R1,year:t2}}function V4(_,y,R){var O=f4(_,y,R),n1=f4(_+1,y,R);return(j4(_)-O+n1)/7}A1("w",["ww",2],"wo","week"),A1("W",["WW",2],"Wo","isoWeek"),z1("w",L0,i3),z1("ww",L0,e0),z1("W",L0,i3),z1("WW",L0,e0),s4(["w","ww","W","WW"],function(_,y,R,O){y[O.substr(0,1)]=x2(_)});function y0(_,y){return _.slice(y,7).concat(_.slice(0,y))}A1("d",0,"do","day"),A1("dd",0,0,function(_){return this.localeData().weekdaysMin(this,_)}),A1("ddd",0,0,function(_){return this.localeData().weekdaysShort(this,_)}),A1("dddd",0,0,function(_){return this.localeData().weekdays(this,_)}),A1("e",0,0,"weekday"),A1("E",0,0,"isoWeekday"),z1("d",L0),z1("e",L0),z1("E",L0),z1("dd",function(_,y){return y.weekdaysMinRegex(_)}),z1("ddd",function(_,y){return y.weekdaysShortRegex(_)}),z1("dddd",function(_,y){return y.weekdaysRegex(_)}),s4(["dd","ddd","dddd"],function(_,y,R,O){var n1=R._locale.weekdaysParse(_,O,R._strict);null!=n1?y.d=n1:f1(R).invalidWeekday=_}),s4(["d","e","E"],function(_,y,R,O){y[O]=x2(_)});var O3="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),J2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),g2="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),J4=g3,t3=g3,A6=g3;function l6(_,y,R){var O,n1,R1,t2=_.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],O=0;O<7;++O)R1=l1([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 R?"dddd"===y?-1!==(n1=a1.call(this._weekdaysParse,t2))?n1:null:"ddd"===y?-1!==(n1=a1.call(this._shortWeekdaysParse,t2))?n1:null:-1!==(n1=a1.call(this._minWeekdaysParse,t2))?n1:null:"dddd"===y?-1!==(n1=a1.call(this._weekdaysParse,t2))||-1!==(n1=a1.call(this._shortWeekdaysParse,t2))||-1!==(n1=a1.call(this._minWeekdaysParse,t2))?n1:null:"ddd"===y?-1!==(n1=a1.call(this._shortWeekdaysParse,t2))||-1!==(n1=a1.call(this._weekdaysParse,t2))||-1!==(n1=a1.call(this._minWeekdaysParse,t2))?n1:null:-1!==(n1=a1.call(this._minWeekdaysParse,t2))||-1!==(n1=a1.call(this._weekdaysParse,t2))||-1!==(n1=a1.call(this._shortWeekdaysParse,t2))?n1:null}function w4(){function _(Q1,B0){return B0.length-Q1.length}var R1,t2,W2,O0,i4,y=[],R=[],O=[],n1=[];for(R1=0;R1<7;R1++)t2=l1([2e3,1]).day(R1),W2=K1(this.weekdaysMin(t2,"")),O0=K1(this.weekdaysShort(t2,"")),i4=K1(this.weekdays(t2,"")),y.push(W2),R.push(O0),O.push(i4),n1.push(W2),n1.push(O0),n1.push(i4);y.sort(_),R.sort(_),O.sort(_),n1.sort(_),this._weekdaysRegex=new RegExp("^("+n1.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+y.join("|")+")","i")}function U3(){return this.hours()%12||12}function z3(_,y){A1(_,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),y)})}function E3(_,y){return y._meridiemParse}A1("H",["HH",2],0,"hour"),A1("h",["hh",2],0,U3),A1("k",["kk",2],0,function f0(){return this.hours()||24}),A1("hmm",0,0,function(){return""+U3.apply(this)+y1(this.minutes(),2)}),A1("hmmss",0,0,function(){return""+U3.apply(this)+y1(this.minutes(),2)+y1(this.seconds(),2)}),A1("Hmm",0,0,function(){return""+this.hours()+y1(this.minutes(),2)}),A1("Hmmss",0,0,function(){return""+this.hours()+y1(this.minutes(),2)+y1(this.seconds(),2)}),z3("a",!0),z3("A",!1),z1("a",E3),z1("A",E3),z1("H",L0,X2),z1("h",L0,i3),z1("k",L0,i3),z1("HH",L0,e0),z1("hh",L0,e0),z1("kk",L0,e0),z1("hmm",U0),z1("hmmss",d4),z1("Hmm",U0),z1("Hmmss",d4),d0(["H","HH"],C0),d0(["k","kk"],function(_,y,R){var O=x2(_);y[C0]=24===O?0:O}),d0(["a","A"],function(_,y,R){R._isPm=R._locale.isPM(_),R._meridiem=_}),d0(["h","hh"],function(_,y,R){y[C0]=x2(_),f1(R).bigHour=!0}),d0("hmm",function(_,y,R){var O=_.length-2;y[C0]=x2(_.substr(0,O)),y[A2]=x2(_.substr(O)),f1(R).bigHour=!0}),d0("hmmss",function(_,y,R){var O=_.length-4,n1=_.length-2;y[C0]=x2(_.substr(0,O)),y[A2]=x2(_.substr(O,2)),y[I4]=x2(_.substr(n1)),f1(R).bigHour=!0}),d0("Hmm",function(_,y,R){var O=_.length-2;y[C0]=x2(_.substr(0,O)),y[A2]=x2(_.substr(O))}),d0("Hmmss",function(_,y,R){var O=_.length-4,n1=_.length-2;y[C0]=x2(_.substr(0,O)),y[A2]=x2(_.substr(O,2)),y[I4]=x2(_.substr(n1))});var I6=O4("Hours",!0);var H3,U4={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:v1,monthsShort:W1,week:{dow:0,doy:6},weekdays:O3,weekdaysMin:g2,weekdaysShort:J2,meridiemParse:/[ap]\.?m?\.?/i},q0={},g6={};function Le(_,y){var R,O=Math.min(_.length,y.length);for(R=0;R0;){if(n1=Y4(R1.slice(0,R).join("-")))return n1;if(O&&O.length>=R&&Le(R1,O)>=R-1)break;R--}y++}return H3}(_)}function P6(_){var y,R=_._a;return R&&-2===f1(_).overflow&&(y=R[y4]<0||R[y4]>11?y4:R[D2]<1||R[D2]>x1(R[p4],R[y4])?D2:R[C0]<0||R[C0]>24||24===R[C0]&&(0!==R[A2]||0!==R[I4]||0!==R[a4])?C0:R[A2]<0||R[A2]>59?A2:R[I4]<0||R[I4]>59?I4:R[a4]<0||R[a4]>999?a4:-1,f1(_)._overflowDayOfYear&&(yD2)&&(y=D2),f1(_)._overflowWeeks&&-1===y&&(y=x6),f1(_)._overflowWeekday&&-1===y&&(y=n6),f1(_).overflow=y),_}var _8=/^\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)?)?$/,l3=/^\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)?)?$/,b6=/Z|[+-]\d\d(?::?\d\d)?/,Q4=[["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]],d3=[["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/]],e8=/^\/?Date\((-?\d+)/i,P4=/^(?:(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}))$/,J0={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function f3(_){var y,R,R1,t2,W2,O0,O=_._i,n1=_8.exec(O)||l3.exec(O),i4=Q4.length,Q1=d3.length;if(n1){for(f1(_).iso=!0,y=0,R=i4;y7)&&(O0=!0)):(R1=_._locale._week.dow,t2=_._locale._week.doy,i4=E4(n4(),R1,t2),R=r6(y.gg,_._a[p4],i4.year),O=r6(y.w,i4.week),null!=y.d?((n1=y.d)<0||n1>6)&&(O0=!0):null!=y.e?(n1=y.e+R1,(y.e<0||y.e>6)&&(O0=!0)):n1=R1),O<1||O>V4(R,R1,t2)?f1(_)._overflowWeeks=!0:null!=O0?f1(_)._overflowWeekday=!0:(W2=t4(R,O,n1,R1,t2),_._a[p4]=W2.year,_._dayOfYear=W2.dayOfYear)}(_),null!=_._dayOfYear&&(t2=r6(_._a[p4],n1[p4]),(_._dayOfYear>j4(t2)||0===_._dayOfYear)&&(f1(_)._overflowDayOfYear=!0),R=B4(t2,0,_._dayOfYear),_._a[y4]=R.getUTCMonth(),_._a[D2]=R.getUTCDate()),y=0;y<3&&null==_._a[y];++y)_._a[y]=O[y]=n1[y];for(;y<7;y++)_._a[y]=O[y]=null==_._a[y]?2===y?1:0:_._a[y];24===_._a[C0]&&0===_._a[A2]&&0===_._a[I4]&&0===_._a[a4]&&(_._nextDay=!0,_._a[C0]=0),_._d=(_._useUTC?B4:F4).apply(null,O),R1=_._useUTC?_._d.getUTCDay():_._d.getDay(),null!=_._tzm&&_._d.setUTCMinutes(_._d.getUTCMinutes()-_._tzm),_._nextDay&&(_._a[C0]=24),_._w&&typeof _._w.d<"u"&&_._w.d!==R1&&(f1(_).weekdayMismatch=!0)}}function e1(_){if(_._f!==g.ISO_8601)if(_._f!==g.RFC_2822){_._a=[],f1(_).empty=!0;var R,O,n1,R1,t2,i4,Q1,y=""+_._i,W2=y.length,O0=0;for(Q1=(n1=X1(_._f,_._locale).match(e2)||[]).length,R=0;R0&&f1(_).unusedInput.push(t2),y=y.slice(y.indexOf(O)+O.length),O0+=O.length),j1[R1]?(O?f1(_).empty=!1:f1(_).unusedTokens.push(R1),S3(R1,O,_)):_._strict&&!O&&f1(_).unusedTokens.push(R1);f1(_).charsLeftOver=W2-O0,y.length>0&&f1(_).unusedInput.push(y),_._a[C0]<=12&&!0===f1(_).bigHour&&_._a[C0]>0&&(f1(_).bigHour=void 0),f1(_).parsedDateParts=_._a.slice(0),f1(_).meridiem=_._meridiem,_._a[C0]=function w1(_,y,R){var O;return null==R?y:null!=_.meridiemHour?_.meridiemHour(y,R):(null!=_.isPM&&((O=_.isPM(R))&&y<12&&(y+=12),!O&&12===y&&(y=0)),y)}(_._locale,_._a[C0],_._meridiem),null!==(i4=f1(_).era)&&(_._a[p4]=_._locale.erasConvertYear(i4,_._a[p4])),G(_),P6(_)}else q4(_);else f3(_)}function q3(_){var y=_._i,R=_._f;return _._locale=_._locale||T0(_._l),null===y||void 0===R&&""===y?H1({nullInput:!0}):("string"==typeof y&&(_._i=y=_._locale.preparse(y)),P1(y)?new c2(P6(y)):(K(y)?_._d=y:p(R)?function I2(_){var y,R,O,n1,R1,t2,W2=!1,O0=_._f.length;if(0===O0)return f1(_).invalidFormat=!0,void(_._d=new Date(NaN));for(n1=0;n1this?this:_:H1()});function u4(_,y){var R,O;if(1===y.length&&p(y[0])&&(y=y[0]),!y.length)return n4();for(R=y[0],O=1;O=0?new Date(_+400,y,R)-t1:new Date(_,y,R).valueOf()}function M1(_,y,R){return _<100&&_>=0?Date.UTC(_+400,y,R)-t1:Date.UTC(_,y,R)}function S0(_,y){return y.erasAbbrRegex(_)}function ke(){var n1,R1,t2,W2,O0,_=[],y=[],R=[],O=[],i4=this.eras();for(n1=0,R1=i4.length;n1(R1=V4(_,O,n1))&&(y=R1),V2.call(this,_,y,R,O,n1))}function V2(_,y,R,O,n1){var R1=t4(_,y,R,O,n1),t2=B4(R1.year,0,R1.dayOfYear);return this.year(t2.getUTCFullYear()),this.month(t2.getUTCMonth()),this.date(t2.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"),z1("N",S0),z1("NN",S0),z1("NNN",S0),z1("NNNN",function S5(_,y){return y.erasNameRegex(_)}),z1("NNNNN",function ne(_,y){return y.erasNarrowRegex(_)}),d0(["N","NN","NNN","NNNN","NNNNN"],function(_,y,R,O){var n1=R._locale.erasParse(_,O,R._strict);n1?f1(R).era=n1:f1(R).invalidEra=_}),z1("y",u0),z1("yy",u0),z1("yyy",u0),z1("yyyy",u0),z1("yo",function a8(_,y){return y._eraYearOrdinalRegex||u0}),d0(["y","yy","yyy","yyyy"],p4),d0(["yo"],function(_,y,R,O){var n1;R._locale._eraYearOrdinalRegex&&(n1=_.match(R._locale._eraYearOrdinalRegex)),y[p4]=R._locale.eraYearOrdinalParse?R._locale.eraYearOrdinalParse(_,n1):parseInt(_,10)}),A1(0,["gg",2],0,function(){return this.weekYear()%100}),A1(0,["GG",2],0,function(){return this.isoWeekYear()%100}),x8("gggg","weekYear"),x8("ggggg","weekYear"),x8("GGGG","isoWeekYear"),x8("GGGGG","isoWeekYear"),z1("G",x0),z1("g",x0),z1("GG",L0,e0),z1("gg",L0,e0),z1("GGGG",c0,a3),z1("gggg",c0,a3),z1("GGGGG",o3,$4),z1("ggggg",o3,$4),s4(["gggg","ggggg","GGGG","GGGGG"],function(_,y,R,O){y[O.substr(0,2)]=x2(_)}),s4(["gg","GG"],function(_,y,R,O){y[O]=g.parseTwoDigitYear(_)}),A1("Q",0,"Qo","quarter"),z1("Q",G4),d0("Q",function(_,y){y[y4]=3*(x2(_)-1)}),A1("D",["DD",2],"Do","date"),z1("D",L0,i3),z1("DD",L0,e0),z1("Do",function(_,y){return _?y._dayOfMonthOrdinalParse||y._ordinalParse:y._dayOfMonthOrdinalParseLenient}),d0(["D","DD"],D2),d0("Do",function(_,y){y[D2]=x2(_.match(L0)[0])});var N5=O4("Date",!0);A1("DDD",["DDDD",3],"DDDo","dayOfYear"),z1("DDD",y3),z1("DDDD",r0),d0(["DDD","DDDD"],function(_,y,R){R._dayOfYear=x2(_)}),A1("m",["mm",2],0,"minute"),z1("m",L0,X2),z1("mm",L0,e0),d0(["m","mm"],A2);var E5=O4("Minutes",!1);A1("s",["ss",2],0,"second"),z1("s",L0,X2),z1("ss",L0,e0),d0(["s","ss"],I4);var P8,T5,D5=O4("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()}),z1("S",y3,G4),z1("SS",y3,e0),z1("SSS",y3,r0),P8="SSSS";P8.length<=9;P8+="S")z1(P8,u0);function j2(_,y){y[a4]=x2(1e3*("0."+_))}for(P8="S";P8.length<=9;P8+="S")d0(P8,j2);T5=O4("Milliseconds",!1),A1("z",0,0,"zoneAbbr"),A1("zz",0,0,"zoneName");var b2=c2.prototype;function N(_){return _}b2.add=K8,b2.calendar=function ce(_,y){1===arguments.length&&(arguments[0]?ye(arguments[0])?(_=arguments[0],y=void 0):function B6(_){var n1,y=L(_)&&!A(_),R=!1,O=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n1=0;n1R.valueOf():R.valueOf()9999?Z(R,y?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_2(Date.prototype.toISOString)?y?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Z(R,"Z")):Z(R,y?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},b2.inspect=function q(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var R,O,_="moment",y="";return this.isLocal()||(_=0===this.utcOffset()?"moment.utc":"moment.parseZone",y="Z"),R="["+_+'("]',O=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(R+O+"-MM-DD[T]HH:mm:ss.SSS"+y+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(b2[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),b2.toJSON=function v4(){return this.isValid()?this.toISOString():null},b2.toString=function U6(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},b2.unix=function T2(){return Math.floor(this.valueOf()/1e3)},b2.valueOf=function k2(){return this._d.valueOf()-6e4*(this._offset||0)},b2.creationData=function C2(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},b2.eraName=function L6(){var _,y,R,O=this.localeData().eras();for(_=0,y=O.length;_this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},b2.isLocal=function F6(){return!!this.isValid()&&!this._isUTC},b2.isUtcOffset=function Z8(){return!!this.isValid()&&this._isUTC},b2.isUtc=E8,b2.isUTC=E8,b2.zoneAbbr=function S9(){return this._isUTC?"UTC":""},b2.zoneName=function xs(){return this._isUTC?"Coordinated Universal Time":""},b2.dates=r2("dates accessor is deprecated. Use date instead.",N5),b2.months=r2("months accessor is deprecated. Use month instead",Z0),b2.years=r2("years accessor is deprecated. Use year instead",b0),b2.zone=r2("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function J8(_,y){return null!=_?("string"!=typeof _&&(_=-_),this.utcOffset(_,y),this):-this.utcOffset()}),b2.isDSTShifted=r2("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function be(){if(!V(this._isDSTShifted))return this._isDSTShifted;var y,_={};return s2(_,this),(_=q3(_))._a?(y=_._isUTC?l1(_._a):n4(_._a),this._isDSTShifted=this.isValid()&&function n8(_,y,R){var t2,O=Math.min(_.length,y.length),n1=Math.abs(_.length-y.length),R1=0;for(t2=0;t20):this._isDSTShifted=!1,this._isDSTShifted});var b=F0.prototype;function E(_,y,R,O){var n1=T0(),R1=l1().set(O,y);return n1[R](R1,_)}function B(_,y,R){if(c1(_)&&(y=_,_=void 0),_=_||"",null!=y)return E(_,y,R,"month");var O,n1=[];for(O=0;O<12;O++)n1[O]=E(_,O,R,"month");return n1}function Q(_,y,R,O){"boolean"==typeof _?(c1(y)&&(R=y,y=void 0),y=y||""):(R=y=_,_=!1,c1(y)&&(R=y,y=void 0),y=y||"");var t2,n1=T0(),R1=_?n1._week.dow:0,W2=[];if(null!=R)return E(y,(R+R1)%7,O,"day");for(t2=0;t2<7;t2++)W2[t2]=E(y,(t2+R1)%7,O,"day");return W2}b.calendar=function A0(_,y,R){var O=this._calendar[_]||this._calendar.sameElse;return _2(O)?O.call(y,R):O},b.longDateFormat=function q2(_){var y=this._longDateFormat[_],R=this._longDateFormat[_.toUpperCase()];return y||!R?y:(this._longDateFormat[_]=R.match(e2).map(function(O){return"MMMM"===O||"MM"===O||"DD"===O||"dddd"===O?O.slice(1):O}).join(""),this._longDateFormat[_])},b.invalidDate=function B2(){return this._invalidDate},b.ordinal=function _0(_){return this._ordinal.replace("%d",_)},b.preparse=N,b.postformat=N,b.relativeTime=function L4(_,y,R,O){var n1=this._relativeTime[R];return _2(n1)?n1(_,y,R,O):n1.replace(/%d/i,_)},b.pastFuture=function m2(_,y){var R=this._relativeTime[_>0?"future":"past"];return _2(R)?R(y):R.replace(/%s/i,y)},b.set=function Q2(_){var y,R;for(R in _)S(_,R)&&(_2(y=_[R])?this[R]=y:this["_"+R]=y);this._config=_,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},b.eras=function K4(_,y){var R,O,n1,R1=this._eras||T0("en")._eras;for(R=0,O=R1.length;R=0)return R1[O]},b.erasConvertYear=function n0(_,y){var R=_.since<=_.until?1:-1;return void 0===y?g(_.since).year():g(_.since).year()+(y-_.offset)*R},b.erasAbbrRegex=function h1(_){return S(this,"_erasAbbrRegex")||ke.call(this),_?this._erasAbbrRegex:this._erasRegex},b.erasNameRegex=function p0(_){return S(this,"_erasNameRegex")||ke.call(this),_?this._erasNameRegex:this._erasRegex},b.erasNarrowRegex=function te(_){return S(this,"_erasNarrowRegex")||ke.call(this),_?this._erasNarrowRegex:this._erasRegex},b.months=function z0(_,y){return _?p(this._months)?this._months[_.month()]:this._months[(this._months.isFormat||Y1).test(y)?"format":"standalone"][_.month()]:p(this._months)?this._months:this._months.standalone},b.monthsShort=function Y2(_,y){return _?p(this._monthsShort)?this._monthsShort[_.month()]:this._monthsShort[Y1.test(y)?"format":"standalone"][_.month()]:p(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},b.monthsParse=function t0(_,y,R){var O,n1,R1;if(this._monthsParseExact)return w0.call(this,_,y,R);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),O=0;O<12;O++){if(n1=l1([2e3,O]),R&&!this._longMonthsParse[O]&&(this._longMonthsParse[O]=new RegExp("^"+this.months(n1,"").replace(".","")+"$","i"),this._shortMonthsParse[O]=new RegExp("^"+this.monthsShort(n1,"").replace(".","")+"$","i")),!R&&!this._monthsParse[O]&&(R1="^"+this.months(n1,"")+"|^"+this.monthsShort(n1,""),this._monthsParse[O]=new RegExp(R1.replace(".",""),"i")),R&&"MMMM"===y&&this._longMonthsParse[O].test(_))return O;if(R&&"MMM"===y&&this._shortMonthsParse[O].test(_))return O;if(!R&&this._monthsParse[O].test(_))return O}},b.monthsRegex=function H0(_){return this._monthsParseExact?(S(this,"_monthsRegex")||D0.call(this),_?this._monthsStrictRegex:this._monthsRegex):(S(this,"_monthsRegex")||(this._monthsRegex=f2),this._monthsStrictRegex&&_?this._monthsStrictRegex:this._monthsRegex)},b.monthsShortRegex=function c4(_){return this._monthsParseExact?(S(this,"_monthsRegex")||D0.call(this),_?this._monthsShortStrictRegex:this._monthsShortRegex):(S(this,"_monthsShortRegex")||(this._monthsShortRegex=o2),this._monthsShortStrictRegex&&_?this._monthsShortStrictRegex:this._monthsShortRegex)},b.week=function l0(_){return E4(_,this._week.dow,this._week.doy).week},b.firstDayOfYear=function c3(){return this._week.doy},b.firstDayOfWeek=function h8(){return this._week.dow},b.weekdays=function D4(_,y){var R=p(this._weekdays)?this._weekdays:this._weekdays[_&&!0!==_&&this._weekdays.isFormat.test(y)?"format":"standalone"];return!0===_?y0(R,this._week.dow):_?R[_.day()]:R},b.weekdaysMin=function r3(_){return!0===_?y0(this._weekdaysMin,this._week.dow):_?this._weekdaysMin[_.day()]:this._weekdaysMin},b.weekdaysShort=function h4(_){return!0===_?y0(this._weekdaysShort,this._week.dow):_?this._weekdaysShort[_.day()]:this._weekdaysShort},b.weekdaysParse=function $0(_,y,R){var O,n1,R1;if(this._weekdaysParseExact)return l6.call(this,_,y,R);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),O=0;O<7;O++){if(n1=l1([2e3,1]).day(O),R&&!this._fullWeekdaysParse[O]&&(this._fullWeekdaysParse[O]=new RegExp("^"+this.weekdays(n1,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[O]=new RegExp("^"+this.weekdaysShort(n1,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[O]=new RegExp("^"+this.weekdaysMin(n1,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[O]||(R1="^"+this.weekdays(n1,"")+"|^"+this.weekdaysShort(n1,"")+"|^"+this.weekdaysMin(n1,""),this._weekdaysParse[O]=new RegExp(R1.replace(".",""),"i")),R&&"dddd"===y&&this._fullWeekdaysParse[O].test(_))return O;if(R&&"ddd"===y&&this._shortWeekdaysParse[O].test(_))return O;if(R&&"dd"===y&&this._minWeekdaysParse[O].test(_))return O;if(!R&&this._weekdaysParse[O].test(_))return O}},b.weekdaysRegex=function Q6(_){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||w4.call(this),_?this._weekdaysStrictRegex:this._weekdaysRegex):(S(this,"_weekdaysRegex")||(this._weekdaysRegex=J4),this._weekdaysStrictRegex&&_?this._weekdaysStrictRegex:this._weekdaysRegex)},b.weekdaysShortRegex=function V3(_){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||w4.call(this),_?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(S(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=t3),this._weekdaysShortStrictRegex&&_?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},b.weekdaysMinRegex=function Z6(_){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||w4.call(this),_?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(S(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=A6),this._weekdaysMinStrictRegex&&_?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},b.isPM=function s6(_){return"p"===(_+"").toLowerCase().charAt(0)},b.meridiem=function a6(_,y,R){return _>11?R?"pm":"PM":R?"am":"AM"},v3("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(_){var y=_%10;return _+(1===x2(_%100/10)?"th":1===y?"st":2===y?"nd":3===y?"rd":"th")}}),g.lang=r2("moment.lang is deprecated. Use moment.locale instead.",v3),g.langData=r2("moment.langData is deprecated. Use moment.localeData instead.",T0);var N0=Math.abs;function we(_,y,R,O){var n1=d6(y,R);return _._milliseconds+=O*n1._milliseconds,_._days+=O*n1._days,_._months+=O*n1._months,_._bubble()}function Ne(_){return _<0?Math.floor(_):Math.ceil(_)}function E9(_){return 4800*_/146097}function fc(_){return 146097*_/4800}function le(_){return function(){return this.as(_)}}var uc=le("ms"),bs=le("s"),H6=le("m"),mc=le("h"),D7=le("d"),D9=le("w"),T7=le("M"),nf=le("Q"),N4=le("y"),pc=uc;function Ee(_){return function(){return this.isValid()?this._data[_]:NaN}}var R5=Ee("milliseconds"),l5=Ee("seconds"),w6=Ee("minutes"),T9=Ee("hours"),R7=Ee("days"),ys=Ee("months"),o8=Ee("years");var O8=Math.round,se={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function A7(_,y,R,O,n1){return n1.relativeTime(y||1,!!R,_,O)}var ae=Math.abs;function g0(_){return(_>0)-(_<0)||+_}function B8(){if(!this.isValid())return this.localeData().invalidDate();var O,n1,R1,t2,O0,i4,Q1,B0,_=ae(this._milliseconds)/1e3,y=ae(this._days),R=ae(this._months),W2=this.asSeconds();return W2?(O=M2(_/60),n1=M2(O/60),_%=60,O%=60,R1=M2(R/12),R%=12,t2=_?_.toFixed(3).replace(/\.?0+$/,""):"",O0=W2<0?"-":"",i4=g0(this._months)!==g0(W2)?"-":"",Q1=g0(this._days)!==g0(W2)?"-":"",B0=g0(this._milliseconds)!==g0(W2)?"-":"",O0+"P"+(R1?i4+R1+"Y":"")+(R?i4+R+"M":"")+(y?Q1+y+"D":"")+(n1||O||_?"T":"")+(n1?B0+n1+"H":"")+(O?B0+O+"M":"")+(_?B0+t2+"S":"")):"P0D"}var g4=N8.prototype;return g4.isValid=function xe(){return this._isValid},g4.abs=function h3(){var _=this._data;return this._milliseconds=N0(this._milliseconds),this._days=N0(this._days),this._months=N0(this._months),_.milliseconds=N0(_.milliseconds),_.seconds=N0(_.seconds),_.minutes=N0(_.minutes),_.hours=N0(_.hours),_.months=N0(_.months),_.years=N0(_.years),this},g4.add=function Se(_,y){return we(this,_,y,1)},g4.subtract=function $8(_,y){return we(this,_,y,-1)},g4.as=function E7(_){if(!this.isValid())return NaN;var y,R,O=this._milliseconds;if("month"===(_=C4(_))||"quarter"===_||"year"===_)switch(y=this._days+O/864e5,R=this._months+E9(y),_){case"month":return R;case"quarter":return R/3;case"year":return R/12}else switch(y=this._days+Math.round(fc(this._months)),_){case"week":return y/7+O/6048e5;case"day":return y+O/864e5;case"hour":return 24*y+O/36e5;case"minute":return 1440*y+O/6e4;case"second":return 86400*y+O/1e3;case"millisecond":return Math.floor(864e5*y)+O;default:throw new Error("Unknown unit "+_)}},g4.asMilliseconds=uc,g4.asSeconds=bs,g4.asMinutes=H6,g4.asHours=mc,g4.asDays=D7,g4.asWeeks=D9,g4.asMonths=T7,g4.asQuarters=nf,g4.asYears=N4,g4.valueOf=pc,g4._bubble=function j8(){var n1,R1,t2,W2,O0,_=this._milliseconds,y=this._days,R=this._months,O=this._data;return _>=0&&y>=0&&R>=0||_<=0&&y<=0&&R<=0||(_+=864e5*Ne(fc(R)+y),y=0,R=0),O.milliseconds=_%1e3,n1=M2(_/1e3),O.seconds=n1%60,R1=M2(n1/60),O.minutes=R1%60,t2=M2(R1/60),O.hours=t2%24,y+=M2(t2/24),R+=O0=M2(E9(y)),y-=Ne(fc(O0)),W2=M2(R/12),R%=12,O.days=y,O.months=R,O.years=W2,this},g4.clone=function n5(){return d6(this)},g4.get=function z6(_){return _=C4(_),this.isValid()?this[_+"s"]():NaN},g4.milliseconds=R5,g4.seconds=l5,g4.minutes=w6,g4.hours=T9,g4.days=R7,g4.weeks=function R9(){return M2(this.days()/7)},g4.months=ys,g4.years=o8,g4.humanize=function I7(_,y){if(!this.isValid())return this.localeData().invalidDate();var n1,R1,R=!1,O=se;return"object"==typeof _&&(y=_,_=!1),"boolean"==typeof _&&(R=_),"object"==typeof y&&(O=Object.assign({},se,y),null!=y.s&&null==y.ss&&(O.ss=y.s-1)),R1=function hc(_,y,R,O){var n1=d6(_).abs(),R1=O8(n1.as("s")),t2=O8(n1.as("m")),W2=O8(n1.as("h")),O0=O8(n1.as("d")),i4=O8(n1.as("M")),Q1=O8(n1.as("w")),B0=O8(n1.as("y")),oe=R1<=R.ss&&["s",R1]||R10,oe[4]=O,A7.apply(null,oe)}(this,!R,O,n1=this.localeData()),R&&(R1=n1.pastFuture(+this,R1)),n1.postformat(R1)},g4.toISOString=B8,g4.toString=B8,g4.toJSON=B8,g4.locale=$2,g4.localeData=o4,g4.toIsoString=r2("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",B8),g4.lang=x4,A1("X",0,0,"unix"),A1("x",0,0,"valueOf"),z1("x",x0),z1("X",/[+-]?\d+(\.\d{1,3})?/),d0("X",function(_,y,R){R._d=new Date(1e3*parseFloat(_))}),d0("x",function(_,y,R){R._d=new Date(x2(_))}),g.version="2.30.1",function e(_){u=_}(n4),g.fn=b2,g.min=function Be(){return u4("isBefore",[].slice.call(arguments,0))},g.max=function Ve(){return u4("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=l1,g.unix=function N9(_){return n4(1e3*_)},g.months=function C1(_,y){return B(_,y,"months")},g.isDate=K,g.locale=v3,g.invalid=H1,g.duration=d6,g.isMoment=P1,g.weekdays=function V1(_,y,R){return Q(_,y,R,"weekdays")},g.parseZone=function x(){return n4.apply(null,arguments).parseZone()},g.localeData=T0,g.isDuration=j6,g.monthsShort=function G1(_,y){return B(_,y,"monthsShort")},g.weekdaysMin=function G0(_,y,R){return Q(_,y,R,"weekdaysMin")},g.defineLocale=K6,g.updateLocale=function k3(_,y){if(null!=y){var R,O,n1=U4;null!=q0[_]&&null!=q0[_].parentLocale?q0[_].set(_4(q0[_]._config,y)):(null!=(O=Y4(_))&&(n1=O._config),y=_4(n1,y),null==O&&(y.abbr=_),(R=new F0(y)).parentLocale=q0[_],q0[_]=R),v3(_)}else null!=q0[_]&&(null!=q0[_].parentLocale?(q0[_]=q0[_].parentLocale,_===v3()&&v3(_)):null!=q0[_]&&delete q0[_]);return q0[_]},g.locales=function g8(){return b4(q0)},g.weekdaysShort=function R2(_,y,R){return Q(_,y,R,"weekdaysShort")},g.normalizeUnits=C4,g.relativeTimeRounding=function A5(_){return void 0===_?O8:"function"==typeof _&&(O8=_,!0)},g.relativeTimeThreshold=function gc(_,y){return void 0!==se[_]&&(void 0===y?se[_]:(se[_]=y,"s"===_&&(se.ss=y-1),!0))},g.calendarFormat=function ee(_,y){var R=_.diff(y,"days",!0);return R<-6?"sameElse":R<-1?"lastWeek":R<0?"lastDay":R<1?"sameDay":R<2?"nextDay":R<7?"nextWeek":"sameElse"},g.prototype=b2,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:(k1,r1,v)=>{"use strict";v.d(r1,{t:()=>g});var u=v(1413);class g extends u.B{constructor(p){super(),this._value=p}get value(){return this.getValue()}_subscribe(p){const L=super._subscribe(p);return!L.closed&&p.next(this._value),L}getValue(){const{hasError:p,thrownError:L,_value:S}=this;if(p)throw L;return this._throwIfClosed(),S}next(p){super.next(this._value=p)}}},1985:(k1,r1,v)=>{"use strict";v.d(r1,{c:()=>V});var u=v(7707),g=v(8359),e=v(3494),p=v(1203),L=v(1026),S=v(8071),A=v(9786);let V=(()=>{class j{constructor(m1){m1&&(this._subscribe=m1)}lift(m1){const f1=new j;return f1.source=this,f1.operator=m1,f1}subscribe(m1,f1,$1){const g1=function L1(j){return j&&j instanceof u.vU||function K(j){return j&&(0,S.T)(j.next)&&(0,S.T)(j.error)&&(0,S.T)(j.complete)}(j)&&(0,g.Uv)(j)}(m1)?m1:new u.Ms(m1,f1,$1);return(0,A.Y)(()=>{const{operator:H1,source:d2}=this;g1.add(H1?H1.call(g1,d2):d2?this._subscribe(g1):this._trySubscribe(g1))}),g1}_trySubscribe(m1){try{return this._subscribe(m1)}catch(f1){m1.error(f1)}}forEach(m1,f1){return new(f1=c1(f1))(($1,g1)=>{const H1=new u.Ms({next:d2=>{try{m1(d2)}catch(K2){g1(K2),H1.unsubscribe()}},error:g1,complete:$1});this.subscribe(H1)})}_subscribe(m1){var f1;return null===(f1=this.source)||void 0===f1?void 0:f1.subscribe(m1)}[e.s](){return this}pipe(...m1){return(0,p.m)(m1)(this)}toPromise(m1){return new(m1=c1(m1))((f1,$1)=>{let g1;this.subscribe(H1=>g1=H1,H1=>$1(H1),()=>f1(g1))})}}return j.create=l1=>new j(l1),j})();function c1(j){var l1;return null!==(l1=j??L.$.Promise)&&void 0!==l1?l1:Promise}},1413:(k1,r1,v)=>{"use strict";v.d(r1,{B:()=>A});var u=v(1985),g=v(8359);const p=(0,v(1853).L)(c1=>function(){c1(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var L=v(7908),S=v(9786);let A=(()=>{class c1 extends u.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(L1){const j=new V(this,this);return j.operator=L1,j}_throwIfClosed(){if(this.closed)throw new p}next(L1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const j of this.currentObservers)j.next(L1)}})}error(L1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=L1;const{observers:j}=this;for(;j.length;)j.shift().error(L1)}})}complete(){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:L1}=this;for(;L1.length;)L1.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var L1;return(null===(L1=this.observers)||void 0===L1?void 0:L1.length)>0}_trySubscribe(L1){return this._throwIfClosed(),super._trySubscribe(L1)}_subscribe(L1){return this._throwIfClosed(),this._checkFinalizedStatuses(L1),this._innerSubscribe(L1)}_innerSubscribe(L1){const{hasError:j,isStopped:l1,observers:m1}=this;return j||l1?g.Kn:(this.currentObservers=null,m1.push(L1),new g.yU(()=>{this.currentObservers=null,(0,L.o)(m1,L1)}))}_checkFinalizedStatuses(L1){const{hasError:j,thrownError:l1,isStopped:m1}=this;j?L1.error(l1):m1&&L1.complete()}asObservable(){const L1=new u.c;return L1.source=this,L1}}return c1.create=(K,L1)=>new V(K,L1),c1})();class V extends A{constructor(K,L1){super(),this.destination=K,this.source=L1}next(K){var L1,j;null===(j=null===(L1=this.destination)||void 0===L1?void 0:L1.next)||void 0===j||j.call(L1,K)}error(K){var L1,j;null===(j=null===(L1=this.destination)||void 0===L1?void 0:L1.error)||void 0===j||j.call(L1,K)}complete(){var K,L1;null===(L1=null===(K=this.destination)||void 0===K?void 0:K.complete)||void 0===L1||L1.call(K)}_subscribe(K){var L1,j;return null!==(j=null===(L1=this.source)||void 0===L1?void 0:L1.subscribe(K))&&void 0!==j?j:g.Kn}}},7707:(k1,r1,v)=>{"use strict";v.d(r1,{Ms:()=>$1,vU:()=>j});var u=v(8071),g=v(8359),e=v(1026),p=v(5334),L=v(5343);const S=c1("C",void 0,void 0);function c1(s2,c2,P1){return{kind:s2,value:c2,error:P1}}var K=v(9270),L1=v(9786);class j extends g.yU{constructor(c2){super(),this.isStopped=!1,c2?(this.destination=c2,(0,g.Uv)(c2)&&c2.add(this)):this.destination=K2}static create(c2,P1,O2){return new $1(c2,P1,O2)}next(c2){this.isStopped?d2(function V(s2){return c1("N",s2,void 0)}(c2),this):this._next(c2)}error(c2){this.isStopped?d2(function A(s2){return c1("E",void 0,s2)}(c2),this):(this.isStopped=!0,this._error(c2))}complete(){this.isStopped?d2(S,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(c2){this.destination.next(c2)}_error(c2){try{this.destination.error(c2)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const l1=Function.prototype.bind;function m1(s2,c2){return l1.call(s2,c2)}class f1{constructor(c2){this.partialObserver=c2}next(c2){const{partialObserver:P1}=this;if(P1.next)try{P1.next(c2)}catch(O2){g1(O2)}}error(c2){const{partialObserver:P1}=this;if(P1.error)try{P1.error(c2)}catch(O2){g1(O2)}else g1(c2)}complete(){const{partialObserver:c2}=this;if(c2.complete)try{c2.complete()}catch(P1){g1(P1)}}}class $1 extends j{constructor(c2,P1,O2){let r2;if(super(),(0,u.T)(c2)||!c2)r2={next:c2??void 0,error:P1??void 0,complete:O2??void 0};else{let z2;this&&e.$.useDeprecatedNextContext?(z2=Object.create(c2),z2.unsubscribe=()=>this.unsubscribe(),r2={next:c2.next&&m1(c2.next,z2),error:c2.error&&m1(c2.error,z2),complete:c2.complete&&m1(c2.complete,z2)}):r2=c2}this.destination=new f1(r2)}}function g1(s2){e.$.useDeprecatedSynchronousErrorHandling?(0,L1.l)(s2):(0,p.m)(s2)}function d2(s2,c2){const{onStoppedNotification:P1}=e.$;P1&&K.f.setTimeout(()=>P1(s2,c2))}const K2={closed:!0,next:L.l,error:function H1(s2){throw s2},complete:L.l}},8359:(k1,r1,v)=>{"use strict";v.d(r1,{Kn:()=>S,yU:()=>L,Uv:()=>A});var u=v(8071);const e=(0,v(1853).L)(c1=>function(L1){c1(this),this.message=L1?`${L1.length} errors occurred during unsubscription:\n${L1.map((j,l1)=>`${l1+1}) ${j.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=L1});var p=v(7908);class L{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:L1}=this;if(L1)if(this._parentage=null,Array.isArray(L1))for(const m1 of L1)m1.remove(this);else L1.remove(this);const{initialTeardown:j}=this;if((0,u.T)(j))try{j()}catch(m1){K=m1 instanceof e?m1.errors:[m1]}const{_finalizers:l1}=this;if(l1){this._finalizers=null;for(const m1 of l1)try{V(m1)}catch(f1){K=K??[],f1 instanceof e?K=[...K,...f1.errors]:K.push(f1)}}if(K)throw new e(K)}}add(K){var L1;if(K&&K!==this)if(this.closed)V(K);else{if(K instanceof L){if(K.closed||K._hasParent(this))return;K._addParent(this)}(this._finalizers=null!==(L1=this._finalizers)&&void 0!==L1?L1:[]).push(K)}}_hasParent(K){const{_parentage:L1}=this;return L1===K||Array.isArray(L1)&&L1.includes(K)}_addParent(K){const{_parentage:L1}=this;this._parentage=Array.isArray(L1)?(L1.push(K),L1):L1?[L1,K]:K}_removeParent(K){const{_parentage:L1}=this;L1===K?this._parentage=null:Array.isArray(L1)&&(0,p.o)(L1,K)}remove(K){const{_finalizers:L1}=this;L1&&(0,p.o)(L1,K),K instanceof L&&K._removeParent(this)}}L.EMPTY=(()=>{const c1=new L;return c1.closed=!0,c1})();const S=L.EMPTY;function A(c1){return c1 instanceof L||c1&&"closed"in c1&&(0,u.T)(c1.remove)&&(0,u.T)(c1.add)&&(0,u.T)(c1.unsubscribe)}function V(c1){(0,u.T)(c1)?c1():c1.unsubscribe()}},1026:(k1,r1,v)=>{"use strict";v.d(r1,{$:()=>u});const u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3207:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>g});var u=v(9350);function g(e,p){const L="object"==typeof p;return new Promise((S,A)=>{let c1,V=!1;e.subscribe({next:K=>{c1=K,V=!0},error:A,complete:()=>{V?S(c1):L?S(p.defaultValue):A(new u.G)}})})}},4572:(k1,r1,v)=>{"use strict";v.d(r1,{z:()=>K});var u=v(1985),g=v(3073),e=v(6648),p=v(3669),L=v(6450),S=v(9326),A=v(8496),V=v(4360),c1=v(5225);function K(...l1){const m1=(0,S.lI)(l1),f1=(0,S.ms)(l1),{args:$1,keys:g1}=(0,g.D)(l1);if(0===$1.length)return(0,e.H)([],m1);const H1=new u.c(function L1(l1,m1,f1=p.D){return $1=>{j(m1,()=>{const{length:g1}=l1,H1=new Array(g1);let d2=g1,K2=g1;for(let s2=0;s2{const c2=(0,e.H)(l1[s2],m1);let P1=!1;c2.subscribe((0,V._)($1,O2=>{H1[s2]=O2,P1||(P1=!0,K2--),K2||$1.next(f1(H1.slice()))},()=>{--d2||$1.complete()}))},$1)},$1)}}($1,m1,g1?d2=>(0,A.e)(g1,d2):p.D));return f1?H1.pipe((0,L.I)(f1)):H1}function j(l1,m1,f1){l1?(0,c1.N)(f1,l1,m1):m1()}},8793:(k1,r1,v)=>{"use strict";v.d(r1,{x:()=>L});var u=v(6365),e=v(9326),p=v(6648);function L(...S){return function g(){return(0,u.U)(1)}()((0,p.H)(S,(0,e.lI)(S)))}},9030:(k1,r1,v)=>{"use strict";v.d(r1,{v:()=>e});var u=v(1985),g=v(8750);function e(p){return new u.c(L=>{(0,g.Tg)(p()).subscribe(L)})}},983:(k1,r1,v)=>{"use strict";v.d(r1,{w:()=>g});const g=new(v(1985).c)(L=>L.complete())},7468:(k1,r1,v)=>{"use strict";v.d(r1,{p:()=>V});var u=v(1985),g=v(3073),e=v(8750),p=v(9326),L=v(4360),S=v(6450),A=v(8496);function V(...c1){const K=(0,p.ms)(c1),{args:L1,keys:j}=(0,g.D)(c1),l1=new u.c(m1=>{const{length:f1}=L1;if(!f1)return void m1.complete();const $1=new Array(f1);let g1=f1,H1=f1;for(let d2=0;d2{K2||(K2=!0,H1--),$1[d2]=s2},()=>g1--,void 0,()=>{(!g1||!K2)&&(H1||m1.next(j?(0,A.e)(j,$1):$1),m1.complete())}))}});return K?l1.pipe((0,S.I)(K)):l1}},6648:(k1,r1,v)=>{"use strict";v.d(r1,{H:()=>O2});var u=v(8750),g=v(5225),e=v(9974),p=v(4360);function L(r2,z2=0){return(0,e.N)((v2,_2)=>{v2.subscribe((0,p._)(_2,Q2=>(0,g.N)(_2,r2,()=>_2.next(Q2),z2),()=>(0,g.N)(_2,r2,()=>_2.complete(),z2),Q2=>(0,g.N)(_2,r2,()=>_2.error(Q2),z2)))})}function S(r2,z2=0){return(0,e.N)((v2,_2)=>{_2.add(r2.schedule(()=>v2.subscribe(_2),z2))})}var c1=v(1985),L1=v(4761),j=v(8071);function m1(r2,z2){if(!r2)throw new Error("Iterable cannot be null");return new c1.c(v2=>{(0,g.N)(v2,z2,()=>{const _2=r2[Symbol.asyncIterator]();(0,g.N)(v2,z2,()=>{_2.next().then(Q2=>{Q2.done?v2.complete():v2.next(Q2.value)})},0,!0)})})}var f1=v(5055),$1=v(9858),g1=v(7441),H1=v(5397),d2=v(7953),K2=v(591),s2=v(5196);function O2(r2,z2){return z2?function P1(r2,z2){if(null!=r2){if((0,f1.l)(r2))return function A(r2,z2){return(0,u.Tg)(r2).pipe(S(z2),L(z2))}(r2,z2);if((0,g1.X)(r2))return function K(r2,z2){return new c1.c(v2=>{let _2=0;return z2.schedule(function(){_2===r2.length?v2.complete():(v2.next(r2[_2++]),v2.closed||this.schedule())})})}(r2,z2);if((0,$1.y)(r2))return function V(r2,z2){return(0,u.Tg)(r2).pipe(S(z2),L(z2))}(r2,z2);if((0,d2.T)(r2))return m1(r2,z2);if((0,H1.x)(r2))return function l1(r2,z2){return new c1.c(v2=>{let _2;return(0,g.N)(v2,z2,()=>{_2=r2[L1.l](),(0,g.N)(v2,z2,()=>{let Q2,_4;try{({value:Q2,done:_4}=_2.next())}catch(F0){return void v2.error(F0)}_4?v2.complete():v2.next(Q2)},0,!0)}),()=>(0,j.T)(_2?.return)&&_2.return()})}(r2,z2);if((0,s2.U)(r2))return function c2(r2,z2){return m1((0,s2.C)(r2),z2)}(r2,z2)}throw(0,K2.L)(r2)}(r2,z2):(0,u.Tg)(r2)}},8750:(k1,r1,v)=>{"use strict";v.d(r1,{Tg:()=>l1});var u=v(1635),g=v(7441),e=v(9858),p=v(1985),L=v(5055),S=v(7953),A=v(591),V=v(5397),c1=v(5196),K=v(8071),L1=v(5334),j=v(3494);function l1(s2){if(s2 instanceof p.c)return s2;if(null!=s2){if((0,L.l)(s2))return function m1(s2){return new p.c(c2=>{const P1=s2[j.s]();if((0,K.T)(P1.subscribe))return P1.subscribe(c2);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(s2);if((0,g.X)(s2))return function f1(s2){return new p.c(c2=>{for(let P1=0;P1{s2.then(P1=>{c2.closed||(c2.next(P1),c2.complete())},P1=>c2.error(P1)).then(null,L1.m)})}(s2);if((0,S.T)(s2))return H1(s2);if((0,V.x)(s2))return function g1(s2){return new p.c(c2=>{for(const P1 of s2)if(c2.next(P1),c2.closed)return;c2.complete()})}(s2);if((0,c1.U)(s2))return function d2(s2){return H1((0,c1.C)(s2))}(s2)}throw(0,A.L)(s2)}function H1(s2){return new p.c(c2=>{(function K2(s2,c2){var P1,O2,r2,z2;return(0,u.sH)(this,void 0,void 0,function*(){try{for(P1=(0,u.xN)(s2);!(O2=yield P1.next()).done;)if(c2.next(O2.value),c2.closed)return}catch(v2){r2={error:v2}}finally{try{O2&&!O2.done&&(z2=P1.return)&&(yield z2.call(P1))}finally{if(r2)throw r2.error}}c2.complete()})})(s2,c2).catch(P1=>c2.error(P1))})}},7673:(k1,r1,v)=>{"use strict";v.d(r1,{of:()=>e});var u=v(9326),g=v(6648);function e(...p){const L=(0,u.lI)(p);return(0,g.H)(p,L)}},4360:(k1,r1,v)=>{"use strict";v.d(r1,{_:()=>g});var u=v(7707);function g(p,L,S,A,V){return new e(p,L,S,A,V)}class e extends u.vU{constructor(L,S,A,V,c1,K){super(L),this.onFinalize=c1,this.shouldUnsubscribe=K,this._next=S?function(L1){try{S(L1)}catch(j){L.error(j)}}:super._next,this._error=V?function(L1){try{V(L1)}catch(j){L.error(j)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(L1){L.error(L1)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var L;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:S}=this;super.unsubscribe(),!S&&(null===(L=this.onFinalize)||void 0===L||L.call(this))}}}},9437:(k1,r1,v)=>{"use strict";v.d(r1,{W:()=>p});var u=v(8750),g=v(4360),e=v(9974);function p(L){return(0,e.N)((S,A)=>{let K,V=null,c1=!1;V=S.subscribe((0,g._)(A,void 0,void 0,L1=>{K=(0,u.Tg)(L(L1,p(L)(S))),V?(V.unsubscribe(),V=null,K.subscribe(A)):c1=!0})),c1&&(V.unsubscribe(),V=null,K.subscribe(A))})}},274:(k1,r1,v)=>{"use strict";v.d(r1,{H:()=>e});var u=v(1397),g=v(8071);function e(p,L){return(0,g.T)(L)?(0,u.Z)(p,L,1):(0,u.Z)(p,1)}},9901:(k1,r1,v)=>{"use strict";v.d(r1,{U:()=>e});var u=v(9974),g=v(4360);function e(p){return(0,u.N)((L,S)=>{let A=!1;L.subscribe((0,g._)(S,V=>{A=!0,S.next(V)},()=>{A||S.next(p),S.complete()}))})}},5964:(k1,r1,v)=>{"use strict";v.d(r1,{p:()=>e});var u=v(9974),g=v(4360);function e(p,L){return(0,u.N)((S,A)=>{let V=0;S.subscribe((0,g._)(A,c1=>p.call(L,c1,V++)&&A.next(c1)))})}},980:(k1,r1,v)=>{"use strict";v.d(r1,{j:()=>g});var u=v(9974);function g(e){return(0,u.N)((p,L)=>{try{p.subscribe(L)}finally{L.add(e)}})}},1594:(k1,r1,v)=>{"use strict";v.d(r1,{$:()=>A});var u=v(9350),g=v(5964),e=v(6697),p=v(9901),L=v(3774),S=v(3669);function A(V,c1){const K=arguments.length>=2;return L1=>L1.pipe(V?(0,g.p)((j,l1)=>V(j,l1,L1)):S.D,(0,e.s)(1),K?(0,p.U)(c1):(0,L.v)(()=>new u.G))}},6354:(k1,r1,v)=>{"use strict";v.d(r1,{T:()=>e});var u=v(9974),g=v(4360);function e(p,L){return(0,u.N)((S,A)=>{let V=0;S.subscribe((0,g._)(A,c1=>{A.next(p.call(L,c1,V++))}))})}},3703:(k1,r1,v)=>{"use strict";v.d(r1,{u:()=>g});var u=v(6354);function g(e){return(0,u.T)(()=>e)}},6365:(k1,r1,v)=>{"use strict";v.d(r1,{U:()=>e});var u=v(1397),g=v(3669);function e(p=1/0){return(0,u.Z)(g.D,p)}},1397:(k1,r1,v)=>{"use strict";v.d(r1,{Z:()=>V});var u=v(6354),g=v(8750),e=v(9974),p=v(5225),L=v(4360),A=v(8071);function V(c1,K,L1=1/0){return(0,A.T)(K)?V((j,l1)=>(0,u.T)((m1,f1)=>K(j,m1,l1,f1))((0,g.Tg)(c1(j,l1))),L1):("number"==typeof K&&(L1=K),(0,e.N)((j,l1)=>function S(c1,K,L1,j,l1,m1,f1,$1){const g1=[];let H1=0,d2=0,K2=!1;const s2=()=>{K2&&!g1.length&&!H1&&K.complete()},c2=O2=>H1{m1&&K.next(O2),H1++;let r2=!1;(0,g.Tg)(L1(O2,d2++)).subscribe((0,L._)(K,z2=>{l1?.(z2),m1?c2(z2):K.next(z2)},()=>{r2=!0},void 0,()=>{if(r2)try{for(H1--;g1.length&&H1P1(z2)):P1(z2)}s2()}catch(z2){K.error(z2)}}))};return c1.subscribe((0,L._)(K,c2,()=>{K2=!0,s2()})),()=>{$1?.()}}(j,l1,c1,L1)))}},253:(k1,r1,v)=>{"use strict";v.d(r1,{t:()=>c1});var u=v(1413),g=v(6129);class e extends u.B{constructor(L1=1/0,j=1/0,l1=g.U){super(),this._bufferSize=L1,this._windowTime=j,this._timestampProvider=l1,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=j===1/0,this._bufferSize=Math.max(1,L1),this._windowTime=Math.max(1,j)}next(L1){const{isStopped:j,_buffer:l1,_infiniteTimeWindow:m1,_timestampProvider:f1,_windowTime:$1}=this;j||(l1.push(L1),!m1&&l1.push(f1.now()+$1)),this._trimBuffer(),super.next(L1)}_subscribe(L1){this._throwIfClosed(),this._trimBuffer();const j=this._innerSubscribe(L1),{_infiniteTimeWindow:l1,_buffer:m1}=this,f1=m1.slice();for(let $1=0;$1{l1.unsubscribe(),K()}});return(0,p.Tg)(L1(...j)).subscribe(l1)}function c1(K,L1,j){let l1,m1=!1;return K&&"object"==typeof K?({bufferSize:l1=1/0,windowTime:L1=1/0,refCount:m1=!1,scheduler:j}=K):l1=K??1/0,function A(K={}){const{connector:L1=(()=>new u.B),resetOnError:j=!0,resetOnComplete:l1=!0,resetOnRefCountZero:m1=!0}=K;return f1=>{let $1,g1,H1,d2=0,K2=!1,s2=!1;const c2=()=>{g1?.unsubscribe(),g1=void 0},P1=()=>{c2(),$1=H1=void 0,K2=s2=!1},O2=()=>{const r2=$1;P1(),r2?.unsubscribe()};return(0,S.N)((r2,z2)=>{d2++,!s2&&!K2&&c2();const v2=H1=H1??L1();z2.add(()=>{d2--,0===d2&&!s2&&!K2&&(g1=V(O2,m1))}),v2.subscribe(z2),!$1&&d2>0&&($1=new L.Ms({next:_2=>v2.next(_2),error:_2=>{s2=!0,c2(),g1=V(P1,j,_2),v2.error(_2)},complete:()=>{K2=!0,c2(),g1=V(P1,l1),v2.complete()}}),(0,p.Tg)(r2).subscribe($1))})(f1)}}({connector:()=>new e(l1,L1,j),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:m1})}},9172:(k1,r1,v)=>{"use strict";v.d(r1,{Z:()=>p});var u=v(8793),g=v(9326),e=v(9974);function p(...L){const S=(0,g.lI)(L);return(0,e.N)((A,V)=>{(S?(0,u.x)(L,A,S):(0,u.x)(L,A)).subscribe(V)})}},5558:(k1,r1,v)=>{"use strict";v.d(r1,{n:()=>p});var u=v(8750),g=v(9974),e=v(4360);function p(L,S){return(0,g.N)((A,V)=>{let c1=null,K=0,L1=!1;const j=()=>L1&&!c1&&V.complete();A.subscribe((0,e._)(V,l1=>{c1?.unsubscribe();let m1=0;const f1=K++;(0,u.Tg)(L(l1,f1)).subscribe(c1=(0,e._)(V,$1=>V.next(S?S(l1,$1,f1,m1++):$1),()=>{c1=null,j()}))},()=>{L1=!0,j()}))})}},6697:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>p});var u=v(983),g=v(9974),e=v(4360);function p(L){return L<=0?()=>u.w:(0,g.N)((S,A)=>{let V=0;S.subscribe((0,e._)(A,c1=>{++V<=L&&(A.next(c1),L<=V&&A.complete())}))})}},6977:(k1,r1,v)=>{"use strict";v.d(r1,{Q:()=>L});var u=v(9974),g=v(4360),e=v(8750),p=v(5343);function L(S){return(0,u.N)((A,V)=>{(0,e.Tg)(S).subscribe((0,g._)(V,()=>V.complete(),p.l)),!V.closed&&A.subscribe(V)})}},8141:(k1,r1,v)=>{"use strict";v.d(r1,{M:()=>L});var u=v(8071),g=v(9974),e=v(4360),p=v(3669);function L(S,A,V){const c1=(0,u.T)(S)||A||V?{next:S,error:A,complete:V}:S;return c1?(0,g.N)((K,L1)=>{var j;null===(j=c1.subscribe)||void 0===j||j.call(c1);let l1=!0;K.subscribe((0,e._)(L1,m1=>{var f1;null===(f1=c1.next)||void 0===f1||f1.call(c1,m1),L1.next(m1)},()=>{var m1;l1=!1,null===(m1=c1.complete)||void 0===m1||m1.call(c1),L1.complete()},m1=>{var f1;l1=!1,null===(f1=c1.error)||void 0===f1||f1.call(c1,m1),L1.error(m1)},()=>{var m1,f1;l1&&(null===(m1=c1.unsubscribe)||void 0===m1||m1.call(c1)),null===(f1=c1.finalize)||void 0===f1||f1.call(c1)}))}):p.D}},3774:(k1,r1,v)=>{"use strict";v.d(r1,{v:()=>p});var u=v(9350),g=v(9974),e=v(4360);function p(S=L){return(0,g.N)((A,V)=>{let c1=!1;A.subscribe((0,e._)(V,K=>{c1=!0,V.next(K)},()=>c1?V.complete():V.error(S())))})}function L(){return new u.G}},6129:(k1,r1,v)=>{"use strict";v.d(r1,{U:()=>u});const u={now:()=>(u.delegate||Date).now(),delegate:void 0}},9270:(k1,r1,v)=>{"use strict";v.d(r1,{f:()=>u});const u={setTimeout(g,e,...p){const{delegate:L}=u;return L?.setTimeout?L.setTimeout(g,e,...p):setTimeout(g,e,...p)},clearTimeout(g){const{delegate:e}=u;return(e?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761:(k1,r1,v)=>{"use strict";v.d(r1,{l:()=>g});const g=function u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>u});const u="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(k1,r1,v)=>{"use strict";v.d(r1,{G:()=>g});const g=(0,v(1853).L)(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(k1,r1,v)=>{"use strict";v.d(r1,{R0:()=>S,lI:()=>L,ms:()=>p});var u=v(8071),g=v(9470);function e(A){return A[A.length-1]}function p(A){return(0,u.T)(e(A))?A.pop():void 0}function L(A){return(0,g.m)(e(A))?A.pop():void 0}function S(A,V){return"number"==typeof e(A)?A.pop():V}},3073:(k1,r1,v)=>{"use strict";v.d(r1,{D:()=>L});const{isArray:u}=Array,{getPrototypeOf:g,prototype:e,keys:p}=Object;function L(A){if(1===A.length){const V=A[0];if(u(V))return{args:V,keys:null};if(function S(A){return A&&"object"==typeof A&&g(A)===e}(V)){const c1=p(V);return{args:c1.map(K=>V[K]),keys:c1}}}return{args:A,keys:null}}},7908:(k1,r1,v)=>{"use strict";function u(g,e){if(g){const p=g.indexOf(e);0<=p&&g.splice(p,1)}}v.d(r1,{o:()=>u})},1853:(k1,r1,v)=>{"use strict";function u(g){const p=g(L=>{Error.call(L),L.stack=(new Error).stack});return p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p}v.d(r1,{L:()=>u})},8496:(k1,r1,v)=>{"use strict";function u(g,e){return g.reduce((p,L,S)=>(p[L]=e[S],p),{})}v.d(r1,{e:()=>u})},9786:(k1,r1,v)=>{"use strict";v.d(r1,{Y:()=>e,l:()=>p});var u=v(1026);let g=null;function e(L){if(u.$.useDeprecatedSynchronousErrorHandling){const S=!g;if(S&&(g={errorThrown:!1,error:null}),L(),S){const{errorThrown:A,error:V}=g;if(g=null,A)throw V}}else L()}function p(L){u.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=L)}},5225:(k1,r1,v)=>{"use strict";function u(g,e,p,L=0,S=!1){const A=e.schedule(function(){p(),S?g.add(this.schedule(null,L)):this.unsubscribe()},L);if(g.add(A),!S)return A}v.d(r1,{N:()=>u})},3669:(k1,r1,v)=>{"use strict";function u(g){return g}v.d(r1,{D:()=>u})},7441:(k1,r1,v)=>{"use strict";v.d(r1,{X:()=>u});const u=g=>g&&"number"==typeof g.length&&"function"!=typeof g},7953:(k1,r1,v)=>{"use strict";v.d(r1,{T:()=>g});var u=v(8071);function g(e){return Symbol.asyncIterator&&(0,u.T)(e?.[Symbol.asyncIterator])}},8071:(k1,r1,v)=>{"use strict";function u(g){return"function"==typeof g}v.d(r1,{T:()=>u})},5055:(k1,r1,v)=>{"use strict";v.d(r1,{l:()=>e});var u=v(3494),g=v(8071);function e(p){return(0,g.T)(p[u.s])}},5397:(k1,r1,v)=>{"use strict";v.d(r1,{x:()=>e});var u=v(4761),g=v(8071);function e(p){return(0,g.T)(p?.[u.l])}},4402:(k1,r1,v)=>{"use strict";v.d(r1,{A:()=>e});var u=v(1985),g=v(8071);function e(p){return!!p&&(p instanceof u.c||(0,g.T)(p.lift)&&(0,g.T)(p.subscribe))}},9858:(k1,r1,v)=>{"use strict";v.d(r1,{y:()=>g});var u=v(8071);function g(e){return(0,u.T)(e?.then)}},5196:(k1,r1,v)=>{"use strict";v.d(r1,{C:()=>e,U:()=>p});var u=v(1635),g=v(8071);function e(L){return(0,u.AQ)(this,arguments,function*(){const A=L.getReader();try{for(;;){const{value:V,done:c1}=yield(0,u.N3)(A.read());if(c1)return yield(0,u.N3)(void 0);yield yield(0,u.N3)(V)}}finally{A.releaseLock()}})}function p(L){return(0,g.T)(L?.getReader)}},9470:(k1,r1,v)=>{"use strict";v.d(r1,{m:()=>g});var u=v(8071);function g(e){return e&&(0,u.T)(e.schedule)}},9974:(k1,r1,v)=>{"use strict";v.d(r1,{N:()=>e,S:()=>g});var u=v(8071);function g(p){return(0,u.T)(p?.lift)}function e(p){return L=>{if(g(L))return L.lift(function(S){try{return p(S,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(k1,r1,v)=>{"use strict";v.d(r1,{I:()=>p});var u=v(6354);const{isArray:g}=Array;function p(L){return(0,u.T)(S=>function e(L,S){return g(S)?L(...S):L(S)}(L,S))}},5343:(k1,r1,v)=>{"use strict";function u(){}v.d(r1,{l:()=>u})},1203:(k1,r1,v)=>{"use strict";v.d(r1,{F:()=>g,m:()=>e});var u=v(3669);function g(...p){return e(p)}function e(p){return 0===p.length?u.D:1===p.length?p[0]:function(S){return p.reduce((A,V)=>V(A),S)}}},5334:(k1,r1,v)=>{"use strict";v.d(r1,{m:()=>e});var u=v(1026),g=v(9270);function e(p){g.f.setTimeout(()=>{const{onUnhandledError:L}=u.$;if(!L)throw p;L(p)})}},591:(k1,r1,v)=>{"use strict";function u(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.`)}v.d(r1,{L:()=>u})},5358:(k1,r1,v)=>{var u={"./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":3449,"./sw.js":3449,"./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 L=e(p);return v(L)}function e(p){if(!v.o(u,p)){var L=new Error("Cannot find module '"+p+"'");throw L.code="MODULE_NOT_FOUND",L}return u[p]}g.keys=function(){return Object.keys(u)},g.resolve=e,k1.exports=g,g.id=5358},177:(k1,r1,v)=>{"use strict";v.d(r1,{AJ:()=>h6,B3:()=>l0,Jj:()=>y0,MD:()=>s6,N0:()=>K6,QT:()=>e,Sm:()=>$1,Sq:()=>Y2,T3:()=>P2,UE:()=>q0,VF:()=>L,Vy:()=>g6,Xr:()=>_3,YU:()=>Y1,ZD:()=>p,_b:()=>x1,aZ:()=>H1,bT:()=>m0,fw:()=>g1,hb:()=>m1,hj:()=>c1,kB:()=>f1,kF:()=>F0,qQ:()=>A,vh:()=>h4});var u=v(4438);let g=null;function e(){return g}function p(w){g??=w}class L{}const A=new u.nKC("");let V=(()=>{class w{historyGo(T){throw new Error("")}static{this.\u0275fac=function(H){return new(H||w)}}static{this.\u0275prov=u.jDH({token:w,factory:()=>(0,u.WQX)(K),providedIn:"platform"})}}return w})();const c1=new u.nKC("");let K=(()=>{class w extends V{constructor(){super(),this._doc=(0,u.WQX)(A),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return e().getBaseHref(this._doc)}onPopState(T){const H=e().getGlobalEventTarget(this._doc,"window");return H.addEventListener("popstate",T,!1),()=>H.removeEventListener("popstate",T)}onHashChange(T){const H=e().getGlobalEventTarget(this._doc,"window");return H.addEventListener("hashchange",T,!1),()=>H.removeEventListener("hashchange",T)}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(T){this._location.pathname=T}pushState(T,H,_1){this._history.pushState(T,H,_1)}replaceState(T,H,_1){this._history.replaceState(T,H,_1)}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}static{this.\u0275fac=function(H){return new(H||w)}}static{this.\u0275prov=u.jDH({token:w,factory:()=>new w,providedIn:"platform"})}}return w})();function L1(w,q){if(0==w.length)return q;if(0==q.length)return w;let T=0;return w.endsWith("/")&&T++,q.startsWith("/")&&T++,2==T?w+q.substring(1):1==T?w+q:w+"/"+q}function j(w){const q=w.match(/#|\?|$/),T=q&&q.index||w.length;return w.slice(0,T-("/"===w[T-1]?1:0))+w.slice(T)}function l1(w){return w&&"?"!==w[0]?"?"+w:w}let m1=(()=>{class w{historyGo(T){throw new Error("")}static{this.\u0275fac=function(H){return new(H||w)}}static{this.\u0275prov=u.jDH({token:w,factory:()=>(0,u.WQX)($1),providedIn:"root"})}}return w})();const f1=new u.nKC("");let $1=(()=>{class w extends m1{constructor(T,H){super(),this._platformLocation=T,this._removeListenerFns=[],this._baseHref=H??this._platformLocation.getBaseHrefFromDOM()??(0,u.WQX)(A).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return L1(this._baseHref,T)}path(T=!1){const H=this._platformLocation.pathname+l1(this._platformLocation.search),_1=this._platformLocation.hash;return _1&&T?`${H}${_1}`:H}pushState(T,H,_1,q1){const l2=this.prepareExternalUrl(_1+l1(q1));this._platformLocation.pushState(T,H,l2)}replaceState(T,H,_1,q1){const l2=this.prepareExternalUrl(_1+l1(q1));this._platformLocation.replaceState(T,H,l2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}static{this.\u0275fac=function(H){return new(H||w)(u.KVO(V),u.KVO(f1,8))}}static{this.\u0275prov=u.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})(),g1=(()=>{class w extends m1{constructor(T,H){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=H&&(this._baseHref=H)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){const H=this._platformLocation.hash??"#";return H.length>0?H.substring(1):H}prepareExternalUrl(T){const H=L1(this._baseHref,T);return H.length>0?"#"+H:H}pushState(T,H,_1,q1){let l2=this.prepareExternalUrl(_1+l1(q1));0==l2.length&&(l2=this._platformLocation.pathname),this._platformLocation.pushState(T,H,l2)}replaceState(T,H,_1,q1){let l2=this.prepareExternalUrl(_1+l1(q1));0==l2.length&&(l2=this._platformLocation.pathname),this._platformLocation.replaceState(T,H,l2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(T=0){this._platformLocation.historyGo?.(T)}static{this.\u0275fac=function(H){return new(H||w)(u.KVO(V),u.KVO(f1,8))}}static{this.\u0275prov=u.jDH({token:w,factory:w.\u0275fac})}}return w})(),H1=(()=>{class w{constructor(T){this._subject=new u.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=T;const H=this._locationStrategy.getBaseHref();this._basePath=function c2(w){if(new RegExp("^(https?:)?//").test(w)){const[,T]=w.split(/\/\/[^\/]+/);return T}return w}(j(s2(H))),this._locationStrategy.onPopState(_1=>{this._subject.emit({url:this.path(!0),pop:!0,state:_1.state,type:_1.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(T=!1){return this.normalize(this._locationStrategy.path(T))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(T,H=""){return this.path()==this.normalize(T+l1(H))}normalize(T){return w.stripTrailingSlash(function K2(w,q){if(!w||!q.startsWith(w))return q;const T=q.substring(w.length);return""===T||["/",";","?","#"].includes(T[0])?T:q}(this._basePath,s2(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._locationStrategy.prepareExternalUrl(T)}go(T,H="",_1=null){this._locationStrategy.pushState(_1,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+l1(H)),_1)}replaceState(T,H="",_1=null){this._locationStrategy.replaceState(_1,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+l1(H)),_1)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(T=0){this._locationStrategy.historyGo?.(T)}onUrlChange(T){return this._urlChangeListeners.push(T),this._urlChangeSubscription??=this.subscribe(H=>{this._notifyUrlChangeListeners(H.url,H.state)}),()=>{const H=this._urlChangeListeners.indexOf(T);this._urlChangeListeners.splice(H,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(T="",H){this._urlChangeListeners.forEach(_1=>_1(T,H))}subscribe(T,H,_1){return this._subject.subscribe({next:T,error:H,complete:_1})}static{this.normalizeQueryParams=l1}static{this.joinWithSlash=L1}static{this.stripTrailingSlash=j}static{this.\u0275fac=function(H){return new(H||w)(u.KVO(m1))}}static{this.\u0275prov=u.jDH({token:w,factory:()=>function d2(){return new H1((0,u.KVO)(m1))}(),providedIn:"root"})}}return w})();function s2(w){return w.replace(/\/index.html$/,"")}var z2=function(w){return w[w.Format=0]="Format",w[w.Standalone=1]="Standalone",w}(z2||{}),v2=function(w){return w[w.Narrow=0]="Narrow",w[w.Abbreviated=1]="Abbreviated",w[w.Wide=2]="Wide",w[w.Short=3]="Short",w}(v2||{}),_2=function(w){return w[w.Short=0]="Short",w[w.Medium=1]="Medium",w[w.Long=2]="Long",w[w.Full=3]="Full",w}(_2||{});const Q2={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 F0(w){return(0,u.H5H)(w)[u.KH2.LocaleId]}function D1(w,q){return Y0((0,u.H5H)(w)[u.KH2.DateFormat],q)}function j1(w,q){return Y0((0,u.H5H)(w)[u.KH2.TimeFormat],q)}function A1(w,q){return Y0((0,u.H5H)(w)[u.KH2.DateTimeFormat],q)}function F1(w,q){const T=(0,u.H5H)(w),H=T[u.KH2.NumberSymbols][q];if(typeof H>"u"){if(q===Q2.CurrencyDecimal)return T[u.KH2.NumberSymbols][Q2.Decimal];if(q===Q2.CurrencyGroup)return T[u.KH2.NumberSymbols][Q2.Group]}return H}function B2(w){if(!w[u.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${w[u.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Y0(w,q){for(let T=q;T>-1;T--)if(typeof w[T]<"u")return w[T];throw new Error("Locale data API: locale data undefined")}function L4(w){const[q,T]=w.split(":");return{hours:+q,minutes:+T}}const P3=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,W4={},J6=/((?:[^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 G4=function(w){return w[w.Short=0]="Short",w[w.ShortGMT=1]="ShortGMT",w[w.Long=2]="Long",w[w.Extended=3]="Extended",w}(G4||{}),e0=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}(e0||{}),r0=function(w){return w[w.DayPeriods=0]="DayPeriods",w[w.Days=1]="Days",w[w.Months=2]="Months",w[w.Eras=3]="Eras",w}(r0||{});function a3(w,q,T,H){let _1=function x2(w){if(d0(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[_1,q1=1,l2=1]=w.split("-").map($2=>+$2);return $4(_1,q1-1,l2)}const T=parseFloat(w);if(!isNaN(w-T))return new Date(T);let H;if(H=w.match(P3))return function P0(w){const q=new Date(0);let T=0,H=0;const _1=w[8]?q.setUTCFullYear:q.setFullYear,q1=w[8]?q.setUTCHours:q.setHours;w[9]&&(T=Number(w[9]+w[10]),H=Number(w[9]+w[11])),_1.call(q,Number(w[1]),Number(w[2])-1,Number(w[3]));const l2=Number(w[4]||0)-T,$2=Number(w[5]||0)-H,x4=Number(w[6]||0),o4=Math.floor(1e3*parseFloat("0."+(w[7]||0)));return q1.call(q,l2,$2,x4,o4),q}(H)}const q=new Date(w);if(!d0(q))throw new Error(`Unable to convert "${w}" into a date`);return q}(w);q=L0(T,q)||q;let $2,l2=[];for(;q;){if($2=J6.exec(q),!$2){l2.push(q);break}{l2=l2.concat($2.slice(1));const P=l2.pop();if(!P)break;q=P}}let x4=_1.getTimezoneOffset();H&&(x4=E1(H,x4),_1=function M2(w,q,T){const H=T?-1:1,_1=w.getTimezoneOffset();return function K1(w,q){return(w=new Date(w.getTime())).setMinutes(w.getMinutes()+q),w}(w,H*(E1(q,_1)-_1))}(_1,H,!0));let o4="";return l2.forEach(P=>{const X=function u1(w){if(z1[w])return z1[w];let q;switch(w){case"G":case"GG":case"GGG":q=u0(r0.Eras,v2.Abbreviated);break;case"GGGG":q=u0(r0.Eras,v2.Wide);break;case"GGGGG":q=u0(r0.Eras,v2.Narrow);break;case"y":q=c0(e0.FullYear,1,0,!1,!0);break;case"yy":q=c0(e0.FullYear,2,0,!0,!0);break;case"yyy":q=c0(e0.FullYear,3,0,!1,!0);break;case"yyyy":q=c0(e0.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=c0(e0.Month,1,1);break;case"MM":case"LL":q=c0(e0.Month,2,1);break;case"MMM":q=u0(r0.Months,v2.Abbreviated);break;case"MMMM":q=u0(r0.Months,v2.Wide);break;case"MMMMM":q=u0(r0.Months,v2.Narrow);break;case"LLL":q=u0(r0.Months,v2.Abbreviated,z2.Standalone);break;case"LLLL":q=u0(r0.Months,v2.Wide,z2.Standalone);break;case"LLLLL":q=u0(r0.Months,v2.Narrow,z2.Standalone);break;case"w":q=X2(1);break;case"ww":q=X2(2);break;case"W":q=X2(1,!0);break;case"d":q=c0(e0.Date,1);break;case"dd":q=c0(e0.Date,2);break;case"c":case"cc":q=c0(e0.Day,1);break;case"ccc":q=u0(r0.Days,v2.Abbreviated,z2.Standalone);break;case"cccc":q=u0(r0.Days,v2.Wide,z2.Standalone);break;case"ccccc":q=u0(r0.Days,v2.Narrow,z2.Standalone);break;case"cccccc":q=u0(r0.Days,v2.Short,z2.Standalone);break;case"E":case"EE":case"EEE":q=u0(r0.Days,v2.Abbreviated);break;case"EEEE":q=u0(r0.Days,v2.Wide);break;case"EEEEE":q=u0(r0.Days,v2.Narrow);break;case"EEEEEE":q=u0(r0.Days,v2.Short);break;case"a":case"aa":case"aaa":q=u0(r0.DayPeriods,v2.Abbreviated);break;case"aaaa":q=u0(r0.DayPeriods,v2.Wide);break;case"aaaaa":q=u0(r0.DayPeriods,v2.Narrow);break;case"b":case"bb":case"bbb":q=u0(r0.DayPeriods,v2.Abbreviated,z2.Standalone,!0);break;case"bbbb":q=u0(r0.DayPeriods,v2.Wide,z2.Standalone,!0);break;case"bbbbb":q=u0(r0.DayPeriods,v2.Narrow,z2.Standalone,!0);break;case"B":case"BB":case"BBB":q=u0(r0.DayPeriods,v2.Abbreviated,z2.Format,!0);break;case"BBBB":q=u0(r0.DayPeriods,v2.Wide,z2.Format,!0);break;case"BBBBB":q=u0(r0.DayPeriods,v2.Narrow,z2.Format,!0);break;case"h":q=c0(e0.Hours,1,-12);break;case"hh":q=c0(e0.Hours,2,-12);break;case"H":q=c0(e0.Hours,1);break;case"HH":q=c0(e0.Hours,2);break;case"m":q=c0(e0.Minutes,1);break;case"mm":q=c0(e0.Minutes,2);break;case"s":q=c0(e0.Seconds,1);break;case"ss":q=c0(e0.Seconds,2);break;case"S":q=c0(e0.FractionalSeconds,1);break;case"SS":q=c0(e0.FractionalSeconds,2);break;case"SSS":q=c0(e0.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=L3(G4.Short);break;case"ZZZZZ":q=L3(G4.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=L3(G4.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=L3(G4.Long);break;default:return null}return z1[w]=q,q}(P);o4+=X?X(_1,T,x4):"''"===P?"'":P.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o4}function $4(w,q,T){const H=new Date(0);return H.setFullYear(w,q,T),H.setHours(0,0,0),H}function L0(w,q){const T=F0(w);if(W4[T]??={},W4[T][q])return W4[T][q];let H="";switch(q){case"shortDate":H=D1(w,_2.Short);break;case"mediumDate":H=D1(w,_2.Medium);break;case"longDate":H=D1(w,_2.Long);break;case"fullDate":H=D1(w,_2.Full);break;case"shortTime":H=j1(w,_2.Short);break;case"mediumTime":H=j1(w,_2.Medium);break;case"longTime":H=j1(w,_2.Long);break;case"fullTime":H=j1(w,_2.Full);break;case"short":const _1=L0(w,"shortTime"),q1=L0(w,"shortDate");H=U0(A1(w,_2.Short),[_1,q1]);break;case"medium":const l2=L0(w,"mediumTime"),$2=L0(w,"mediumDate");H=U0(A1(w,_2.Medium),[l2,$2]);break;case"long":const x4=L0(w,"longTime"),o4=L0(w,"longDate");H=U0(A1(w,_2.Long),[x4,o4]);break;case"full":const P=L0(w,"fullTime"),X=L0(w,"fullDate");H=U0(A1(w,_2.Full),[P,X])}return H&&(W4[T][q]=H),H}function U0(w,q){return q&&(w=w.replace(/\{([^}]+)}/g,function(T,H){return null!=q&&H in q?q[H]:T})),w}function d4(w,q,T="-",H,_1){let q1="";(w<0||_1&&w<=0)&&(_1?w=1-w:(w=-w,q1=T));let l2=String(w);for(;l2.length0||$2>-T)&&($2+=T),w===e0.Hours)0===$2&&-12===T&&($2=12);else if(w===e0.FractionalSeconds)return function y3(w,q){return d4(w,3).substring(0,q)}($2,q);const x4=F1(l2,Q2.MinusSign);return d4($2,q,x4,H,_1)}}function u0(w,q,T=z2.Format,H=!1){return function(_1,q1){return function x0(w,q,T,H,_1,q1){switch(T){case r0.Months:return function A0(w,q,T){const H=(0,u.H5H)(w),q1=Y0([H[u.KH2.MonthsFormat],H[u.KH2.MonthsStandalone]],q);return Y0(q1,T)}(q,_1,H)[w.getMonth()];case r0.Days:return function L2(w,q,T){const H=(0,u.H5H)(w),q1=Y0([H[u.KH2.DaysFormat],H[u.KH2.DaysStandalone]],q);return Y0(q1,T)}(q,_1,H)[w.getDay()];case r0.DayPeriods:const l2=w.getHours(),$2=w.getMinutes();if(q1){const o4=function v0(w){const q=(0,u.H5H)(w);return B2(q),(q[u.KH2.ExtraData][2]||[]).map(H=>"string"==typeof H?L4(H):[L4(H[0]),L4(H[1])])}(q),P=function h0(w,q,T){const H=(0,u.H5H)(w);B2(H);const q1=Y0([H[u.KH2.ExtraData][0],H[u.KH2.ExtraData][1]],q)||[];return Y0(q1,T)||[]}(q,_1,H),X=o4.findIndex(W=>{if(Array.isArray(W)){const[t1,p1]=W,T1=l2>=t1.hours&&$2>=t1.minutes,M1=l20?Math.floor(_1/60):Math.ceil(_1/60);switch(w){case G4.Short:return(_1>=0?"+":"")+d4(l2,2,q1)+d4(Math.abs(_1%60),2,q1);case G4.ShortGMT:return"GMT"+(_1>=0?"+":"")+d4(l2,1,q1);case G4.Long:return"GMT"+(_1>=0?"+":"")+d4(l2,2,q1)+":"+d4(Math.abs(_1%60),2,q1);case G4.Extended:return 0===H?"Z":(_1>=0?"+":"")+d4(l2,2,q1)+":"+d4(Math.abs(_1%60),2,q1);default:throw new Error(`Unknown zone width "${w}"`)}}}const I0=0,k4=4;function i3(w){const q=w.getDay(),T=0===q?-3:k4-q;return $4(w.getFullYear(),w.getMonth(),w.getDate()+T)}function X2(w,q=!1){return function(T,H){let _1;if(q){const q1=new Date(T.getFullYear(),T.getMonth(),1).getDay()-1,l2=T.getDate();_1=1+Math.floor((l2+q1)/7)}else{const q1=i3(T),l2=function g3(w){const q=$4(w,I0,1).getDay();return $4(w,0,1+(q<=k4?k4:k4+7)-q)}(q1.getFullYear()),$2=q1.getTime()-l2.getTime();_1=1+Math.round($2/6048e5)}return d4(_1,w,F1(H,Q2.MinusSign))}}function s1(w,q=!1){return function(T,H){return d4(i3(T).getFullYear(),w,F1(H,Q2.MinusSign),q)}}const z1={};function E1(w,q){w=w.replace(/:/g,"");const T=Date.parse("Jan 01, 1970 00:00:00 "+w)/6e4;return isNaN(T)?q:T}function d0(w){return w instanceof Date&&!isNaN(w.valueOf())}function x1(w,q){q=encodeURIComponent(q);for(const T of w.split(";")){const H=T.indexOf("="),[_1,q1]=-1==H?[T,""]:[T.slice(0,H),T.slice(H+1)];if(_1.trim()===q)return decodeURIComponent(q1)}return null}const v1=/\s+/,W1=[];let Y1=(()=>{class w{constructor(T,H){this._ngEl=T,this._renderer=H,this.initialClasses=W1,this.stateMap=new Map}set klass(T){this.initialClasses=null!=T?T.trim().split(v1):W1}set ngClass(T){this.rawClass="string"==typeof T?T.trim().split(v1):T}ngDoCheck(){for(const H of this.initialClasses)this._updateState(H,!0);const T=this.rawClass;if(Array.isArray(T)||T instanceof Set)for(const H of T)this._updateState(H,!0);else if(null!=T)for(const H of Object.keys(T))this._updateState(H,!!T[H]);this._applyStateDiff()}_updateState(T,H){const _1=this.stateMap.get(T);void 0!==_1?(_1.enabled!==H&&(_1.changed=!0,_1.enabled=H),_1.touched=!0):this.stateMap.set(T,{enabled:H,changed:!0,touched:!0})}_applyStateDiff(){for(const T of this.stateMap){const H=T[0],_1=T[1];_1.changed?(this._toggleClass(H,_1.enabled),_1.changed=!1):_1.touched||(_1.enabled&&this._toggleClass(H,!1),this.stateMap.delete(H)),_1.touched=!1}}_toggleClass(T,H){(T=T.trim()).length>0&&T.split(v1).forEach(_1=>{H?this._renderer.addClass(this._ngEl.nativeElement,_1):this._renderer.removeClass(this._ngEl.nativeElement,_1)})}static{this.\u0275fac=function(H){return new(H||w)(u.rXU(u.aKT),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngClass",""]],inputs:{klass:[u.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return w})();class z0{constructor(q,T,H,_1){this.$implicit=q,this.ngForOf=T,this.index=H,this.count=_1}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 Y2=(()=>{class w{set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}constructor(T,H,_1){this._viewContainer=T,this._template=H,this._differs=_1,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const H=this._viewContainer;T.forEachOperation((_1,q1,l2)=>{if(null==_1.previousIndex)H.createEmbeddedView(this._template,new z0(_1.item,this._ngForOf,-1,-1),null===l2?void 0:l2);else if(null==l2)H.remove(null===q1?void 0:q1);else if(null!==q1){const $2=H.get(q1);H.move($2,l2),w0($2,_1)}});for(let _1=0,q1=H.length;_1{w0(H.get(_1.currentIndex),_1)})}static ngTemplateContextGuard(T,H){return!0}static{this.\u0275fac=function(H){return new(H||w)(u.rXU(u.c1b),u.rXU(u.C4Q),u.rXU(u._q3))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return w})();function w0(w,q){w.context.$implicit=q.item}let m0=(()=>{class w{constructor(T,H){this._viewContainer=T,this._context=new Z0,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=H}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){M4("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){M4("ngIfElse",T),this._elseTemplateRef=T,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(T,H){return!0}static{this.\u0275fac=function(H){return new(H||w)(u.rXU(u.c1b),u.rXU(u.C4Q))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return w})();class Z0{constructor(){this.$implicit=null,this.ngIf=null}}function M4(w,q){if(q&&!q.createEmbeddedView)throw new Error(`${w} must be a TemplateRef, but received '${(0,u.Tbb)(q)}'.`)}let l0=(()=>{class w{constructor(T,H,_1){this._ngEl=T,this._differs=H,this._renderer=_1,this._ngStyle=null,this._differ=null}set ngStyle(T){this._ngStyle=T,!this._differ&&T&&(this._differ=this._differs.find(T).create())}ngDoCheck(){if(this._differ){const T=this._differ.diff(this._ngStyle);T&&this._applyChanges(T)}}_setStyle(T,H){const[_1,q1]=T.split("."),l2=-1===_1.indexOf("-")?void 0:u.czy.DashCase;null!=H?this._renderer.setStyle(this._ngEl.nativeElement,_1,q1?`${H}${q1}`:H,l2):this._renderer.removeStyle(this._ngEl.nativeElement,_1,l2)}_applyChanges(T){T.forEachRemovedItem(H=>this._setStyle(H.key,null)),T.forEachAddedItem(H=>this._setStyle(H.key,H.currentValue)),T.forEachChangedItem(H=>this._setStyle(H.key,H.currentValue))}static{this.\u0275fac=function(H){return new(H||w)(u.rXU(u.aKT),u.rXU(u.MKu),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return w})(),P2=(()=>{class w{constructor(T){this._viewContainerRef=T,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(T){if(this._shouldRecreateView(T)){const H=this._viewContainerRef;if(this._viewRef&&H.remove(H.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const _1=this._createContextForwardProxy();this._viewRef=H.createEmbeddedView(this.ngTemplateOutlet,_1,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(T){return!!T.ngTemplateOutlet||!!T.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(T,H,_1)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,H,_1),get:(T,H,_1)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,H,_1)}})}static{this.\u0275fac=function(H){return new(H||w)(u.rXU(u.c1b))}}static{this.\u0275dir=u.FsC({type:w,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.OA$]})}}return w})();function c3(w,q){return new u.wOt(2100,!1)}class m6{createSubscription(q,T){return(0,u.O8t)(()=>q.subscribe({next:T,error:H=>{throw H}}))}dispose(q){(0,u.O8t)(()=>q.unsubscribe())}}class R6{createSubscription(q,T){return q.then(T,H=>{throw H})}dispose(q){}}const q8=new R6,p6=new m6;let y0=(()=>{class w{constructor(T){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=T}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(T){if(!this._obj){if(T)try{this.markForCheckOnValueUpdate=!1,this._subscribe(T)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,H=>this._updateLatestValue(T,H))}_selectStrategy(T){if((0,u.jNT)(T))return q8;if((0,u.zjR)(T))return p6;throw c3()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,H){T===this._obj&&(this._latestValue=H,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(H){return new(H||w)(u.rXU(u.gRc,16))}}static{this.\u0275pipe=u.EJ8({name:"async",type:w,pure:!1,standalone:!0})}}return w})();const A6=new u.nKC(""),D4=new u.nKC("");let h4=(()=>{class w{constructor(T,H,_1){this.locale=T,this.defaultTimezone=H,this.defaultOptions=_1}transform(T,H,_1,q1){if(null==T||""===T||T!=T)return null;try{return a3(T,H??this.defaultOptions?.dateFormat??"mediumDate",q1||this.locale,_1??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(l2){throw c3()}}static{this.\u0275fac=function(H){return new(H||w)(u.rXU(u.xe9,16),u.rXU(A6,24),u.rXU(D4,24))}}static{this.\u0275pipe=u.EJ8({name:"date",type:w,pure:!0,standalone:!0})}}return w})(),s6=(()=>{class w{static{this.\u0275fac=function(H){return new(H||w)}}static{this.\u0275mod=u.$C({type:w})}static{this.\u0275inj=u.G2t({})}}return w})();const h6="browser",I6="server";function q0(w){return w===h6}function g6(w){return w===I6}let _3=(()=>{class w{static{this.\u0275prov=(0,u.jDH)({token:w,providedIn:"root",factory:()=>q0((0,u.WQX)(u.Agw))?new n3((0,u.WQX)(A),window):new v3})}}return w})();class n3{constructor(q,T){this.document=q,this.window=T,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 T=function Y4(w,q){const T=w.getElementById(q)||w.getElementsByName(q)[0];if(T)return T;if("function"==typeof w.createTreeWalker&&w.body&&"function"==typeof w.body.attachShadow){const H=w.createTreeWalker(w.body,NodeFilter.SHOW_ELEMENT);let _1=H.currentNode;for(;_1;){const q1=_1.shadowRoot;if(q1){const l2=q1.getElementById(q)||q1.querySelector(`[name="${q}"]`);if(l2)return l2}_1=H.nextNode()}}return null}(this.document,q);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(q){this.window.history.scrollRestoration=q}scrollToElement(q){const T=q.getBoundingClientRect(),H=T.left+this.window.pageXOffset,_1=T.top+this.window.pageYOffset,q1=this.offset();this.window.scrollTo(H-q1[0],_1-q1[1])}}class v3{setOffset(q){}getScrollPosition(){return[0,0]}scrollToPosition(q){}scrollToAnchor(q){}setHistoryScrollRestoration(q){}}class K6{}},1626:(k1,r1,v)=>{"use strict";v.d(r1,{Lr:()=>m1,Nl:()=>c2,Qq:()=>D1,a7:()=>v0,q1:()=>y4}),v(467);var g=v(4438),e=v(7673),p=v(1985),L=v(6648),S=v(274),A=v(5964),V=v(6354),c1=v(980),K=v(5558),L1=v(177);class j{}class l1{}class m1{constructor(x1){this.normalizedNames=new Map,this.lazyUpdate=null,x1?"string"==typeof x1?this.lazyInit=()=>{this.headers=new Map,x1.split("\n").forEach(v1=>{const W1=v1.indexOf(":");if(W1>0){const Y1=v1.slice(0,W1),o2=Y1.toLowerCase(),f2=v1.slice(W1+1).trim();this.maybeSetNormalizedName(Y1,o2),this.headers.has(o2)?this.headers.get(o2).push(f2):this.headers.set(o2,[f2])}})}:typeof Headers<"u"&&x1 instanceof Headers?(this.headers=new Map,x1.forEach((v1,W1)=>{this.setHeaderEntries(W1,v1)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(x1).forEach(([v1,W1])=>{this.setHeaderEntries(v1,W1)})}:this.headers=new Map}has(x1){return this.init(),this.headers.has(x1.toLowerCase())}get(x1){this.init();const v1=this.headers.get(x1.toLowerCase());return v1&&v1.length>0?v1[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(x1){return this.init(),this.headers.get(x1.toLowerCase())||null}append(x1,v1){return this.clone({name:x1,value:v1,op:"a"})}set(x1,v1){return this.clone({name:x1,value:v1,op:"s"})}delete(x1,v1){return this.clone({name:x1,value:v1,op:"d"})}maybeSetNormalizedName(x1,v1){this.normalizedNames.has(v1)||this.normalizedNames.set(v1,x1)}init(){this.lazyInit&&(this.lazyInit instanceof m1?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(x1=>this.applyUpdate(x1)),this.lazyUpdate=null))}copyFrom(x1){x1.init(),Array.from(x1.headers.keys()).forEach(v1=>{this.headers.set(v1,x1.headers.get(v1)),this.normalizedNames.set(v1,x1.normalizedNames.get(v1))})}clone(x1){const v1=new m1;return v1.lazyInit=this.lazyInit&&this.lazyInit instanceof m1?this.lazyInit:this,v1.lazyUpdate=(this.lazyUpdate||[]).concat([x1]),v1}applyUpdate(x1){const v1=x1.name.toLowerCase();switch(x1.op){case"a":case"s":let W1=x1.value;if("string"==typeof W1&&(W1=[W1]),0===W1.length)return;this.maybeSetNormalizedName(x1.name,v1);const Y1=("a"===x1.op?this.headers.get(v1):void 0)||[];Y1.push(...W1),this.headers.set(v1,Y1);break;case"d":const o2=x1.value;if(o2){let f2=this.headers.get(v1);if(!f2)return;f2=f2.filter(z0=>-1===o2.indexOf(z0)),0===f2.length?(this.headers.delete(v1),this.normalizedNames.delete(v1)):this.headers.set(v1,f2)}else this.headers.delete(v1),this.normalizedNames.delete(v1)}}setHeaderEntries(x1,v1){const W1=(Array.isArray(v1)?v1:[v1]).map(o2=>o2.toString()),Y1=x1.toLowerCase();this.headers.set(Y1,W1),this.maybeSetNormalizedName(x1,Y1)}forEach(x1){this.init(),Array.from(this.normalizedNames.keys()).forEach(v1=>x1(this.normalizedNames.get(v1),this.headers.get(v1)))}}class $1{encodeKey(x1){return K2(x1)}encodeValue(x1){return K2(x1)}decodeKey(x1){return decodeURIComponent(x1)}decodeValue(x1){return decodeURIComponent(x1)}}const H1=/%(\d[a-f0-9])/gi,d2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function K2(a1){return encodeURIComponent(a1).replace(H1,(x1,v1)=>d2[v1]??x1)}function s2(a1){return`${a1}`}class c2{constructor(x1={}){if(this.updates=null,this.cloneFrom=null,this.encoder=x1.encoder||new $1,x1.fromString){if(x1.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function g1(a1,x1){const v1=new Map;return a1.length>0&&a1.replace(/^\?/,"").split("&").forEach(Y1=>{const o2=Y1.indexOf("="),[f2,z0]=-1==o2?[x1.decodeKey(Y1),""]:[x1.decodeKey(Y1.slice(0,o2)),x1.decodeValue(Y1.slice(o2+1))],Y2=v1.get(f2)||[];Y2.push(z0),v1.set(f2,Y2)}),v1}(x1.fromString,this.encoder)}else x1.fromObject?(this.map=new Map,Object.keys(x1.fromObject).forEach(v1=>{const W1=x1.fromObject[v1],Y1=Array.isArray(W1)?W1.map(s2):[s2(W1)];this.map.set(v1,Y1)})):this.map=null}has(x1){return this.init(),this.map.has(x1)}get(x1){this.init();const v1=this.map.get(x1);return v1?v1[0]:null}getAll(x1){return this.init(),this.map.get(x1)||null}keys(){return this.init(),Array.from(this.map.keys())}append(x1,v1){return this.clone({param:x1,value:v1,op:"a"})}appendAll(x1){const v1=[];return Object.keys(x1).forEach(W1=>{const Y1=x1[W1];Array.isArray(Y1)?Y1.forEach(o2=>{v1.push({param:W1,value:o2,op:"a"})}):v1.push({param:W1,value:Y1,op:"a"})}),this.clone(v1)}set(x1,v1){return this.clone({param:x1,value:v1,op:"s"})}delete(x1,v1){return this.clone({param:x1,value:v1,op:"d"})}toString(){return this.init(),this.keys().map(x1=>{const v1=this.encoder.encodeKey(x1);return this.map.get(x1).map(W1=>v1+"="+this.encoder.encodeValue(W1)).join("&")}).filter(x1=>""!==x1).join("&")}clone(x1){const v1=new c2({encoder:this.encoder});return v1.cloneFrom=this.cloneFrom||this,v1.updates=(this.updates||[]).concat(x1),v1}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(x1=>this.map.set(x1,this.cloneFrom.map.get(x1))),this.updates.forEach(x1=>{switch(x1.op){case"a":case"s":const v1=("a"===x1.op?this.map.get(x1.param):void 0)||[];v1.push(s2(x1.value)),this.map.set(x1.param,v1);break;case"d":if(void 0===x1.value){this.map.delete(x1.param);break}{let W1=this.map.get(x1.param)||[];const Y1=W1.indexOf(s2(x1.value));-1!==Y1&&W1.splice(Y1,1),W1.length>0?this.map.set(x1.param,W1):this.map.delete(x1.param)}}}),this.cloneFrom=this.updates=null)}}class O2{constructor(){this.map=new Map}set(x1,v1){return this.map.set(x1,v1),this}get(x1){return this.map.has(x1)||this.map.set(x1,x1.defaultValue()),this.map.get(x1)}delete(x1){return this.map.delete(x1),this}has(x1){return this.map.has(x1)}keys(){return this.map.keys()}}function z2(a1){return typeof ArrayBuffer<"u"&&a1 instanceof ArrayBuffer}function v2(a1){return typeof Blob<"u"&&a1 instanceof Blob}function _2(a1){return typeof FormData<"u"&&a1 instanceof FormData}class _4{constructor(x1,v1,W1,Y1){let o2;if(this.url=v1,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=x1.toUpperCase(),function r2(a1){switch(a1){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Y1?(this.body=void 0!==W1?W1:null,o2=Y1):o2=W1,o2&&(this.reportProgress=!!o2.reportProgress,this.withCredentials=!!o2.withCredentials,o2.responseType&&(this.responseType=o2.responseType),o2.headers&&(this.headers=o2.headers),o2.context&&(this.context=o2.context),o2.params&&(this.params=o2.params),this.transferCache=o2.transferCache),this.headers??=new m1,this.context??=new O2,this.params){const f2=this.params.toString();if(0===f2.length)this.urlWithParams=v1;else{const z0=v1.indexOf("?");this.urlWithParams=v1+(-1===z0?"?":z0Z0.set(M4,x1.setHeaders[M4]),w0)),x1.setParams&&(t0=Object.keys(x1.setParams).reduce((Z0,M4)=>Z0.set(M4,x1.setParams[M4]),t0)),new _4(v1,W1,f2,{params:t0,headers:w0,context:m0,reportProgress:Y2,responseType:Y1,withCredentials:z0,transferCache:o2})}}var F0=function(a1){return a1[a1.Sent=0]="Sent",a1[a1.UploadProgress=1]="UploadProgress",a1[a1.ResponseHeader=2]="ResponseHeader",a1[a1.DownloadProgress=3]="DownloadProgress",a1[a1.Response=4]="Response",a1[a1.User=5]="User",a1}(F0||{});class b4{constructor(x1,v1=e2.Ok,W1="OK"){this.headers=x1.headers||new m1,this.status=void 0!==x1.status?x1.status:v1,this.statusText=x1.statusText||W1,this.url=x1.url||null,this.ok=this.status>=200&&this.status<300}}class L2 extends b4{constructor(x1={}){super(x1),this.type=F0.ResponseHeader}clone(x1={}){return new L2({headers:x1.headers||this.headers,status:void 0!==x1.status?x1.status:this.status,statusText:x1.statusText||this.statusText,url:x1.url||this.url||void 0})}}class A0 extends b4{constructor(x1={}){super(x1),this.type=F0.Response,this.body=void 0!==x1.body?x1.body:null}clone(x1={}){return new A0({body:void 0!==x1.body?x1.body:this.body,headers:x1.headers||this.headers,status:void 0!==x1.status?x1.status:this.status,statusText:x1.statusText||this.statusText,url:x1.url||this.url||void 0})}}class y1 extends b4{constructor(x1){super(x1,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${x1.url||"(unknown url)"}`:`Http failure response for ${x1.url||"(unknown url)"}: ${x1.status} ${x1.statusText}`,this.error=x1.error||null}}var e2=function(a1){return a1[a1.Continue=100]="Continue",a1[a1.SwitchingProtocols=101]="SwitchingProtocols",a1[a1.Processing=102]="Processing",a1[a1.EarlyHints=103]="EarlyHints",a1[a1.Ok=200]="Ok",a1[a1.Created=201]="Created",a1[a1.Accepted=202]="Accepted",a1[a1.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",a1[a1.NoContent=204]="NoContent",a1[a1.ResetContent=205]="ResetContent",a1[a1.PartialContent=206]="PartialContent",a1[a1.MultiStatus=207]="MultiStatus",a1[a1.AlreadyReported=208]="AlreadyReported",a1[a1.ImUsed=226]="ImUsed",a1[a1.MultipleChoices=300]="MultipleChoices",a1[a1.MovedPermanently=301]="MovedPermanently",a1[a1.Found=302]="Found",a1[a1.SeeOther=303]="SeeOther",a1[a1.NotModified=304]="NotModified",a1[a1.UseProxy=305]="UseProxy",a1[a1.Unused=306]="Unused",a1[a1.TemporaryRedirect=307]="TemporaryRedirect",a1[a1.PermanentRedirect=308]="PermanentRedirect",a1[a1.BadRequest=400]="BadRequest",a1[a1.Unauthorized=401]="Unauthorized",a1[a1.PaymentRequired=402]="PaymentRequired",a1[a1.Forbidden=403]="Forbidden",a1[a1.NotFound=404]="NotFound",a1[a1.MethodNotAllowed=405]="MethodNotAllowed",a1[a1.NotAcceptable=406]="NotAcceptable",a1[a1.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",a1[a1.RequestTimeout=408]="RequestTimeout",a1[a1.Conflict=409]="Conflict",a1[a1.Gone=410]="Gone",a1[a1.LengthRequired=411]="LengthRequired",a1[a1.PreconditionFailed=412]="PreconditionFailed",a1[a1.PayloadTooLarge=413]="PayloadTooLarge",a1[a1.UriTooLong=414]="UriTooLong",a1[a1.UnsupportedMediaType=415]="UnsupportedMediaType",a1[a1.RangeNotSatisfiable=416]="RangeNotSatisfiable",a1[a1.ExpectationFailed=417]="ExpectationFailed",a1[a1.ImATeapot=418]="ImATeapot",a1[a1.MisdirectedRequest=421]="MisdirectedRequest",a1[a1.UnprocessableEntity=422]="UnprocessableEntity",a1[a1.Locked=423]="Locked",a1[a1.FailedDependency=424]="FailedDependency",a1[a1.TooEarly=425]="TooEarly",a1[a1.UpgradeRequired=426]="UpgradeRequired",a1[a1.PreconditionRequired=428]="PreconditionRequired",a1[a1.TooManyRequests=429]="TooManyRequests",a1[a1.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",a1[a1.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",a1[a1.InternalServerError=500]="InternalServerError",a1[a1.NotImplemented=501]="NotImplemented",a1[a1.BadGateway=502]="BadGateway",a1[a1.ServiceUnavailable=503]="ServiceUnavailable",a1[a1.GatewayTimeout=504]="GatewayTimeout",a1[a1.HttpVersionNotSupported=505]="HttpVersionNotSupported",a1[a1.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",a1[a1.InsufficientStorage=507]="InsufficientStorage",a1[a1.LoopDetected=508]="LoopDetected",a1[a1.NotExtended=510]="NotExtended",a1[a1.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",a1}(e2||{});function h2(a1,x1){return{body:x1,headers:a1.headers,context:a1.context,observe:a1.observe,params:a1.params,reportProgress:a1.reportProgress,responseType:a1.responseType,withCredentials:a1.withCredentials,transferCache:a1.transferCache}}let D1=(()=>{class a1{constructor(v1){this.handler=v1}request(v1,W1,Y1={}){let o2;if(v1 instanceof _4)o2=v1;else{let Y2,w0;Y2=Y1.headers instanceof m1?Y1.headers:new m1(Y1.headers),Y1.params&&(w0=Y1.params instanceof c2?Y1.params:new c2({fromObject:Y1.params})),o2=new _4(v1,W1,void 0!==Y1.body?Y1.body:null,{headers:Y2,context:Y1.context,params:w0,reportProgress:Y1.reportProgress,responseType:Y1.responseType||"json",withCredentials:Y1.withCredentials,transferCache:Y1.transferCache})}const f2=(0,e.of)(o2).pipe((0,S.H)(Y2=>this.handler.handle(Y2)));if(v1 instanceof _4||"events"===Y1.observe)return f2;const z0=f2.pipe((0,A.p)(Y2=>Y2 instanceof A0));switch(Y1.observe||"body"){case"body":switch(o2.responseType){case"arraybuffer":return z0.pipe((0,V.T)(Y2=>{if(null!==Y2.body&&!(Y2.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Y2.body}));case"blob":return z0.pipe((0,V.T)(Y2=>{if(null!==Y2.body&&!(Y2.body instanceof Blob))throw new Error("Response is not a Blob.");return Y2.body}));case"text":return z0.pipe((0,V.T)(Y2=>{if(null!==Y2.body&&"string"!=typeof Y2.body)throw new Error("Response is not a string.");return Y2.body}));default:return z0.pipe((0,V.T)(Y2=>Y2.body))}case"response":return z0;default:throw new Error(`Unreachable: unhandled observe type ${Y1.observe}}`)}}delete(v1,W1={}){return this.request("DELETE",v1,W1)}get(v1,W1={}){return this.request("GET",v1,W1)}head(v1,W1={}){return this.request("HEAD",v1,W1)}jsonp(v1,W1){return this.request("JSONP",v1,{params:(new c2).append(W1,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(v1,W1={}){return this.request("OPTIONS",v1,W1)}patch(v1,W1,Y1={}){return this.request("PATCH",v1,h2(Y1,W1))}post(v1,W1,Y1={}){return this.request("POST",v1,h2(Y1,W1))}put(v1,W1,Y1={}){return this.request("PUT",v1,h2(Y1,W1))}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(j))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();function q2(a1,x1){return x1(a1)}function o0(a1,x1){return(v1,W1)=>x1.intercept(v1,{handle:Y1=>a1(Y1,W1)})}const v0=new g.nKC(""),h0=new g.nKC(""),_0=new g.nKC(""),Y0=new g.nKC("");function L4(){let a1=null;return(x1,v1)=>{null===a1&&(a1=((0,g.WQX)(v0,{optional:!0})??[]).reduceRight(o0,q2));const W1=(0,g.WQX)(g.TgB),Y1=W1.add();return a1(x1,v1).pipe((0,c1.j)(()=>W1.remove(Y1)))}}let C4=(()=>{class a1 extends j{constructor(v1,W1){super(),this.backend=v1,this.injector=W1,this.chain=null,this.pendingTasks=(0,g.WQX)(g.TgB);const Y1=(0,g.WQX)(Y0,{optional:!0});this.backend=Y1??v1}handle(v1){if(null===this.chain){const Y1=Array.from(new Set([...this.injector.get(h0),...this.injector.get(_0,[])]));this.chain=Y1.reduceRight((o2,f2)=>function B2(a1,x1,v1){return(W1,Y1)=>(0,g.N4e)(v1,()=>x1(W1,o2=>a1(o2,Y1)))}(o2,f2,this.injector),q2)}const W1=this.pendingTasks.add();return this.chain(v1,Y1=>this.backend.handle(Y1)).pipe((0,c1.j)(()=>this.pendingTasks.remove(W1)))}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(l1),g.KVO(g.uvJ))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();const y3=/^\)\]\}',?\n/;let o3=(()=>{class a1{constructor(v1){this.xhrFactory=v1}handle(v1){if("JSONP"===v1.method)throw new g.wOt(-2800,!1);const W1=this.xhrFactory;return(W1.\u0275loadImpl?(0,L.H)(W1.\u0275loadImpl()):(0,e.of)(null)).pipe((0,K.n)(()=>new p.c(o2=>{const f2=W1.build();if(f2.open(v1.method,v1.urlWithParams),v1.withCredentials&&(f2.withCredentials=!0),v1.headers.forEach((H0,D0)=>f2.setRequestHeader(H0,D0.join(","))),v1.headers.has("Accept")||f2.setRequestHeader("Accept","application/json, text/plain, */*"),!v1.headers.has("Content-Type")){const H0=v1.detectContentTypeHeader();null!==H0&&f2.setRequestHeader("Content-Type",H0)}if(v1.responseType){const H0=v1.responseType.toLowerCase();f2.responseType="json"!==H0?H0:"text"}const z0=v1.serializeBody();let Y2=null;const w0=()=>{if(null!==Y2)return Y2;const H0=f2.statusText||"OK",D0=new m1(f2.getAllResponseHeaders()),F4=function c0(a1){return"responseURL"in a1&&a1.responseURL?a1.responseURL:/^X-Request-URL:/m.test(a1.getAllResponseHeaders())?a1.getResponseHeader("X-Request-URL"):null}(f2)||v1.url;return Y2=new L2({headers:D0,status:f2.status,statusText:H0,url:F4}),Y2},t0=()=>{let{headers:H0,status:D0,statusText:F4,url:B4}=w0(),f4=null;D0!==e2.NoContent&&(f4=typeof f2.response>"u"?f2.responseText:f2.response),0===D0&&(D0=f4?e2.Ok:0);let t4=D0>=200&&D0<300;if("json"===v1.responseType&&"string"==typeof f4){const E4=f4;f4=f4.replace(y3,"");try{f4=""!==f4?JSON.parse(f4):null}catch(V4){f4=E4,t4&&(t4=!1,f4={error:V4,text:f4})}}t4?(o2.next(new A0({body:f4,headers:H0,status:D0,statusText:F4,url:B4||void 0})),o2.complete()):o2.error(new y1({error:f4,headers:H0,status:D0,statusText:F4,url:B4||void 0}))},m0=H0=>{const{url:D0}=w0(),F4=new y1({error:H0,status:f2.status||0,statusText:f2.statusText||"Unknown Error",url:D0||void 0});o2.error(F4)};let Z0=!1;const M4=H0=>{Z0||(o2.next(w0()),Z0=!0);let D0={type:F0.DownloadProgress,loaded:H0.loaded};H0.lengthComputable&&(D0.total=H0.total),"text"===v1.responseType&&f2.responseText&&(D0.partialText=f2.responseText),o2.next(D0)},c4=H0=>{let D0={type:F0.UploadProgress,loaded:H0.loaded};H0.lengthComputable&&(D0.total=H0.total),o2.next(D0)};return f2.addEventListener("load",t0),f2.addEventListener("error",m0),f2.addEventListener("timeout",m0),f2.addEventListener("abort",m0),v1.reportProgress&&(f2.addEventListener("progress",M4),null!==z0&&f2.upload&&f2.upload.addEventListener("progress",c4)),f2.send(z0),o2.next({type:F0.Sent}),()=>{f2.removeEventListener("error",m0),f2.removeEventListener("abort",m0),f2.removeEventListener("load",t0),f2.removeEventListener("timeout",m0),v1.reportProgress&&(f2.removeEventListener("progress",M4),null!==z0&&f2.upload&&f2.upload.removeEventListener("progress",c4)),f2.readyState!==f2.DONE&&f2.abort()}})))}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(L1.N0))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();const u0=new g.nKC(""),L3=new g.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),k4=new g.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class g3{}let i3=(()=>{class a1{constructor(v1,W1,Y1){this.doc=v1,this.platform=W1,this.cookieName=Y1,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const v1=this.doc.cookie||"";return v1!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,L1._b)(v1,this.cookieName),this.lastCookieString=v1),this.lastToken}static{this.\u0275fac=function(W1){return new(W1||a1)(g.KVO(L1.qQ),g.KVO(g.Agw),g.KVO(L3))}}static{this.\u0275prov=g.jDH({token:a1,factory:a1.\u0275fac})}}return a1})();function X2(a1,x1){const v1=a1.url.toLowerCase();if(!(0,g.WQX)(u0)||"GET"===a1.method||"HEAD"===a1.method||v1.startsWith("http://")||v1.startsWith("https://"))return x1(a1);const W1=(0,g.WQX)(g3).getToken(),Y1=(0,g.WQX)(k4);return null!=W1&&!a1.headers.has(Y1)&&(a1=a1.clone({headers:a1.headers.set(Y1,W1)})),x1(a1)}var z1=function(a1){return a1[a1.Interceptors=0]="Interceptors",a1[a1.LegacyInterceptors=1]="LegacyInterceptors",a1[a1.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",a1[a1.NoXsrfProtection=3]="NoXsrfProtection",a1[a1.JsonpSupport=4]="JsonpSupport",a1[a1.RequestsMadeViaParent=5]="RequestsMadeViaParent",a1[a1.Fetch=6]="Fetch",a1}(z1||{});function u1(a1,x1){return{\u0275kind:a1,\u0275providers:x1}}function E1(...a1){const x1=[D1,o3,C4,{provide:j,useExisting:C4},{provide:l1,useExisting:o3},{provide:h0,useValue:X2,multi:!0},{provide:u0,useValue:!0},{provide:g3,useClass:i3}];for(const v1 of a1)x1.push(...v1.\u0275providers);return(0,g.EmA)(x1)}const M2=new g.nKC("");let y4=(()=>{class a1{static{this.\u0275fac=function(W1){return new(W1||a1)}}static{this.\u0275mod=g.$C({type:a1})}static{this.\u0275inj=g.G2t({providers:[E1(u1(z1.LegacyInterceptors,[{provide:M2,useFactory:L4},{provide:h0,useExisting:M2,multi:!0}]))]})}}return a1})()},4438:(k1,r1,v)=>{"use strict";v.d(r1,{iLQ:()=>rs,sZ2:()=>iu,hnV:()=>S_,Hbi:()=>Kb,o8S:()=>z5,BIS:()=>yC,gRc:()=>G_,Ql9:()=>jb,Ocv:()=>j_,abz:()=>P5,Z63:()=>f3,aKT:()=>Q7,uvJ:()=>W3,zcH:()=>U8,bkB:()=>Re,duS:()=>y6,$GK:()=>y0,nKC:()=>Y1,zZn:()=>i8,_q3:()=>kd,MKu:()=>Sd,xe9:()=>_9,Co$:()=>ti,Vns:()=>Je,SKi:()=>I3,Xx1:()=>q0,Agw:()=>ln,PLl:()=>ru,sFG:()=>qz,_9s:()=>Vm,czy:()=>Fn,WPN:()=>r5,kdw:()=>H3,C4Q:()=>yt,NYb:()=>Ab,giA:()=>w_,RxE:()=>sd,c1b:()=>cl,gXe:()=>i6,mal:()=>qm,L39:()=>qd,Ol2:()=>li,w6W:()=>SM,oH4:()=>V_,Rfq:()=>X2,WQX:()=>f0,hFB:()=>Hf,QuC:()=>Z4,EmA:()=>z8,fpN:()=>ps,HJs:()=>vy,N4e:()=>_6,O8t:()=>yy,H3F:()=>h_,H8p:()=>K8,KH2:()=>me,TgB:()=>h5,wOt:()=>m2,WHO:()=>k_,e01:()=>rd,lNU:()=>L4,h9k:()=>Du,$MX:()=>mn,ZF7:()=>Sc,Kcf:()=>bu,e5t:()=>yu,UyX:()=>PC,cWb:()=>IC,osQ:()=>$C,H5H:()=>Zi,Zy3:()=>l4,mq5:()=>u7,JZv:()=>c0,LfX:()=>F3,plB:()=>m5,jNT:()=>dd,zjR:()=>fd,TL$:()=>MC,Tbb:()=>I0,rcV:()=>Ae,Vt3:()=>al,Mj6:()=>q4,GFd:()=>Rp,OA$:()=>$8,Jv_:()=>Rr,aNF:()=>Ir,R7$:()=>im,BMQ:()=>jt,HbH:()=>Bi,ZvI:()=>Hi,AVh:()=>Oi,vxM:()=>qi,wni:()=>wg,VBU:()=>xe,FsC:()=>n8,jDH:()=>b0,G2t:()=>O4,$C:()=>j6,EJ8:()=>l8,rXU:()=>Rc,nrm:()=>El,eu8:()=>Rl,bVm:()=>Tl,qex:()=>Dl,k0s:()=>Ht,j41:()=>Nl,RV6:()=>$h,xGo:()=>Af,Mr5:()=>Al,KVO:()=>w4,kS0:()=>W9,QTQ:()=>rm,bIt:()=>gr,lsd:()=>Ng,joV:()=>ws,qSk:()=>ks,XpG:()=>Gl,nI1:()=>Ur,bMT:()=>ts,i5U:()=>t_,SdG:()=>xg,NAR:()=>Lr,Y8G:()=>$i,FS9:()=>Cr,Mz_:()=>p7,lJ4:()=>qg,eq3:()=>Xg,l_i:()=>jr,sMw:()=>Or,ziG:()=>Kl,mGM:()=>Sg,sdS:()=>Dg,Dyx:()=>Eh,Z7z:()=>Sl,fX1:()=>Wi,Vm6:()=>Xi,Njj:()=>lf,EBC:()=>Yu,tSv:()=>pt,eBV:()=>oe,npT:()=>Tu,f$h:()=>Ln,B4B:()=>Fa,n$t:()=>Iu,wjB:()=>Pr,Aen:()=>fe,muq:()=>br,xc7:()=>ji,DNE:()=>Qc,C5r:()=>ns,EFF:()=>Og,JRh:()=>vr,SpI:()=>c9,Lme:()=>kr,E5c:()=>t9,LHq:()=>wr,SjE:()=>n9,DH7:()=>Hg,mxI:()=>Ql,R50:()=>Nr,GBs:()=>ql}),v(467);let e=null,p=!1,L=1;const S=Symbol("SIGNAL");function A(s){const o=e;return e=s,o}const L1={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 j(s){if(p)throw new Error("");if(null===e)return;e.consumerOnSignalRead(s);const o=e.nextProducerIndex++;r2(e),o0}function r2(s){s.producerNode??=[],s.producerIndexOfThis??=[],s.producerLastReadVersion??=[]}function z2(s){s.liveConsumerNode??=[],s.liveConsumerIndexOfThis??=[]}let L2=function b4(){throw new Error};function A1(s,o){(function $1(){return!1!==e?.consumerAllowSignalWrites})()||function A0(){L2()}(),s.equal(s.value,o)||(s.value=o,function Z(s){s.version++,function l1(){L++}(),f1(s)}(s))}const Z1={...L1,equal:function g(s,o){return Object.is(s,o)},value:void 0};var B2=v(1413),v0=v(8359),h0=v(4412),_0=v(6354);const L4="https://g.co/ng/security#xss";class m2 extends Error{constructor(o,i){super(l4(o,i)),this.code=o}}function l4(s,o){return`NG0${Math.abs(s)}${o?": "+o:""}`}const C4=Symbol("InputSignalNode#UNSET"),P3={...Z1,transformFn:void 0,applyValueToInputSignal(s,o){A1(s,o)}};function G4(s,o){const i=Object.create(P3);function d(){if(j(i),i.value===C4)throw new m2(-950,!1);return i.value}return i.value=s,i.transformFn=o?.transform,d[S]=i,d}function e0(s){return{toString:s}.toString()}const a3="__parameters__";function d4(s,o,i){return e0(()=>{const d=function U0(s){return function(...i){if(s){const d=s(...i);for(const f in d)this[f]=d[f]}}}(o);function f(...h){if(this instanceof f)return d.apply(this,h),this;const C=new f(...h);return M.annotation=C,M;function M(k,$,Y){const o1=k.hasOwnProperty(a3)?k[a3]:Object.defineProperty(k,a3,{value:[]})[a3];for(;o1.length<=Y;)o1.push(null);return(o1[Y]=o1[Y]||[]).push(C),k}}return i&&(f.prototype=Object.create(i.prototype)),f.prototype.ngMetadataName=s,f.annotationCls=f,f})}const c0=globalThis;function x0(s){for(let o in s)if(s[o]===x0)return o;throw Error("Could not find renamed property on target object.")}function L3(s,o){for(const i in o)o.hasOwnProperty(i)&&!s.hasOwnProperty(i)&&(s[i]=o[i])}function I0(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(I0).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 i=o.indexOf("\n");return-1===i?o:o.substring(0,i)}function k4(s,o){return null==s||""===s?null===o?"":o:null==o||""===o?s:s+" "+o}const i3=x0({__forward_ref__:x0});function X2(s){return s.__forward_ref__=X2,s.toString=function(){return I0(this())},s}function s1(s){return z1(s)?s():s}function z1(s){return"function"==typeof s&&s.hasOwnProperty(i3)&&s.__forward_ref__===X2}function b0(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function O4(s){return{providers:s.providers||[],imports:s.imports||[]}}function b1(s){return j3(s,a1)||j3(s,v1)}function F3(s){return null!==b1(s)}function j3(s,o){return s.hasOwnProperty(o)?s[o]:null}function T6(s){return s&&(s.hasOwnProperty(x1)||s.hasOwnProperty(W1))?s[x1]:null}const a1=x0({\u0275prov:x0}),x1=x0({\u0275inj:x0}),v1=x0({ngInjectableDef:x0}),W1=x0({ngInjectorDef:x0});class Y1{constructor(o,i){this._desc=o,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=b0({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function H0(s){return s&&!!s.\u0275providers}const D0=x0({\u0275cmp:x0}),F4=x0({\u0275dir:x0}),B4=x0({\u0275pipe:x0}),f4=x0({\u0275mod:x0}),t4=x0({\u0275fac:x0}),E4=x0({__NG_ELEMENT_ID__:x0}),V4=x0({__NG_ENV_ID__:x0});function l0(s){return"string"==typeof s?s:null==s?"":String(s)}function p6(s,o){throw new m2(-201,!1)}var y0=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}(y0||{});let O3;function J2(){return O3}function g2(s){const o=O3;return O3=s,o}function J4(s,o,i){const d=b1(s);return d&&"root"==d.providedIn?void 0===d.value?d.value=d.factory():d.value:i&y0.Optional?null:void 0!==o?o:void p6()}const D4={},h4="__NG_DI_FLAG__",r3="ngTempTokenPath",$0=/\n/gm,B3="__source";let C3;function V3(s){const o=C3;return C3=s,o}function Z6(s,o=y0.Default){if(void 0===C3)throw new m2(-203,!1);return null===C3?J4(s,void 0,o):C3.get(s,o&y0.Optional?null:void 0,o)}function w4(s,o=y0.Default){return(J2()||Z6)(s1(s),o)}function f0(s,o=y0.Default){return w4(s,z3(o))}function z3(s){return typeof s>"u"||"number"==typeof s?s:(s.optional&&8)|(s.host&&1)|(s.self&&2)|(s.skipSelf&&4)}function E3(s){const o=[];for(let i=0;iArray.isArray(i)?Y4(i,o):o(i))}function v3(s,o,i){o>=s.length?s.push(i):s.splice(o,0,i)}function K6(s,o){return o>=s.length-1?s.pop():s.splice(o,1)[0]}function l3(s,o,i){let d=Q4(s,o);return d>=0?s[1|d]=i:(d=~d,function P6(s,o,i,d){let f=s.length;if(f==o)s.push(i,d);else if(1===f)s.push(d,s[0]),s[0]=i;else{for(f--,s.push(s[f-1],s[f]);f>o;)s[f]=s[f-2],f--;s[o]=i,s[o+1]=d}}(s,d,o,i)),d}function b6(s,o){const i=Q4(s,o);if(i>=0)return s[1|i]}function Q4(s,o){return function e8(s,o,i){let d=0,f=s.length>>i;for(;f!==d;){const h=d+(f-d>>1),C=s[h<o?f=h:d=h+1}return~(f<o){C=h-1;break}}}for(;h-1){let h;for(;++fh?"":f[Y+1].toLowerCase(),2&d&&$!==o1){if(X4(d))return!1;C=!0}}}}else{if(!C&&!X4(d)&&!X4(k))return!1;if(C&&X4(k))continue;C=!1,d=k|1&d}}return X4(d)||C}function X4(s){return!(1&s)}function c8(s,o,i,d){if(null===o)return-1;let f=0;if(d||!i){let h=!1;for(;f-1)for(i++;i0?'="'+M+'"':"")+"]"}else 8&d?f+="."+C:4&d&&(f+=" "+C);else""!==f&&!X4(C)&&(o+=Ve(h,f),f=""),d=C,h=h||!X4(d);i++}return""!==f&&(o+=Ve(h,f)),o}function xe(s){return e0(()=>{const o=J8(s),i={...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||i6.Emulated,styles:s.styles||J0,_:null,schemas:s.schemas||null,tView:null,id:""};Q8(i);const d=s.dependencies;return i.directiveDefs=O6(d,!1),i.pipeDefs=O6(d,!0),i.id=function e5(s){let o=0;const i=[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 i)o=Math.imul(31,o)+f.charCodeAt(0)|0;return o+=2147483648,"c"+o}(i),i})}function W8(s){return j0(s)||S4(s)}function N8(s){return null!==s}function j6(s){return e0(()=>({type:s.type,bootstrap:s.bootstrap||J0,declarations:s.declarations||J0,imports:s.imports||J0,exports:s.exports||J0,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function t8(s,o){if(null==s)return P4;const i={};for(const d in s)if(s.hasOwnProperty(d)){const f=s[d];let h,C,M=q4.None;Array.isArray(f)?(M=f[0],h=f[1],C=f[2]??h):(h=f,C=f),o?(i[h]=M!==q4.None?[d,M]:d,o[h]=C):i[h]=d}return i}function n8(s){return e0(()=>{const o=J8(s);return Q8(o),o})}function l8(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[D0]||null}function S4(s){return s[F4]||null}function T4(s){return s[B4]||null}function Z4(s){const o=j0(s)||S4(s)||T4(s);return null!==o&&o.standalone}function u3(s,o){const i=s[f4]||null;if(!i&&!0===o)throw new Error(`Type ${I0(s)} does not have '\u0275mod' property.`);return i}function J8(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||P4,exportAs:s.exportAs||null,standalone:!0===s.standalone,signals:!0===s.signals,selectors:s.selectors||J0,viewQuery:s.viewQuery||null,features:s.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:t8(s.inputs,o),outputs:t8(s.outputs),debugInfo:null}}function Q8(s){s.features?.forEach(o=>o(s))}function O6(s,o){if(!s)return null;const i=o?T4:W8;return()=>("function"==typeof s?s():s).map(d=>i(d)).filter(N8)}function z8(s){return{\u0275providers:s}}function be(...s){return{\u0275providers:F6(0,s),\u0275fromNgModule:!0}}function F6(s,...o){const i=[],d=new Set;let f;const h=C=>{i.push(C)};return Y4(o,C=>{const M=C;E8(M,h,[],d)&&(f||=[],f.push(M))}),void 0!==f&&Z8(f,h),i}function Z8(s,o){for(let i=0;i{o(h,d)})}}function E8(s,o,i,d){if(!(s=s1(s)))return!1;let f=null,h=T6(s);const C=!h&&j0(s);if(h||C){if(C&&!C.standalone)return!1;f=s}else{const k=s.ngModule;if(h=T6(k),!h)return!1;f=k}const M=d.has(f);if(C){if(M)return!1;if(d.add(f),C.dependencies){const k="function"==typeof C.dependencies?C.dependencies():C.dependencies;for(const $ of k)E8($,o,i,d)}}else{if(!h)return!1;{if(null!=h.imports&&!M){let $;d.add(f);try{Y4(h.imports,Y=>{E8(Y,o,i,d)&&($||=[],$.push(Y))})}finally{}void 0!==$&&Z8($,o)}if(!M){const $=D3(f)||(()=>new f);o({provide:f,useFactory:$,deps:J0},f),o({provide:G3,useValue:f,multi:!0},f),o({provide:f3,useValue:()=>w4(f),multi:!0},f)}const k=h.providers;if(null!=k&&!M){const $=s;D8(k,Y=>{o(Y,$)})}}}return f!==s&&void 0!==s.providers}function D8(s,o){for(let i of s)H0(i)&&(i=i.\u0275providers),Array.isArray(i)?D8(i,o):o(i)}const d6=x0({provide:String,useValue:x0});function v6(s){return null!==s&&"object"==typeof s&&d6 in s}function X3(s){return"function"==typeof s}const K8=new Y1(""),M8={},Ye={};let ye;function s8(){return void 0===ye&&(ye=new o6),ye}class W3{}class B6 extends W3{get destroyed(){return this._destroyed}constructor(o,i,d,f){super(),this.parent=i,this.source=d,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,A8(o,C=>this.processProvider(C)),this.records.set(y6,T3(void 0,this)),f.has("environment")&&this.records.set(W3,T3(void 0,this));const h=this.records.get(K8);null!=h&&"string"==typeof h.value&&this.scopes.add(h.value),this.injectorDefTypes=new Set(this.get(G3,J0,y0.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const o=A(null);try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of i)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 i=V3(this),d=g2(void 0);try{return o()}finally{V3(i),g2(d)}}get(o,i=D4,d=y0.Default){if(this.assertNotDestroyed(),o.hasOwnProperty(V4))return o[V4](this);d=z3(d);const h=V3(this),C=g2(void 0);try{if(!(d&y0.SkipSelf)){let k=this.records.get(o);if(void 0===k){const $=function c5(s){return"function"==typeof s||"object"==typeof s&&s instanceof Y1}(o)&&b1(o);k=$&&this.injectableDefInScope($)?T3(ee(o),M8):null,this.records.set(o,k)}if(null!=k)return this.hydrate(o,k)}return(d&y0.Self?s8():this.parent).get(o,i=d&y0.Optional&&i===D4?null:i)}catch(M){if("NullInjectorError"===M.name){if((M[r3]=M[r3]||[]).unshift(I0(o)),h)throw M;return function I6(s,o,i,d){const f=s[r3];throw o[B3]&&f.unshift(o[B3]),s.message=function a6(s,o,i,d=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.slice(2):s;let f=I0(o);if(Array.isArray(o))f=o.map(I0).join(" -> ");else if("object"==typeof o){let h=[];for(let C in o)if(o.hasOwnProperty(C)){let M=o[C];h.push(C+":"+("string"==typeof M?JSON.stringify(M):I0(M)))}f=`{${h.join(", ")}}`}return`${i}${d?"("+d+")":""}[${f}]: ${s.replace($0,"\n ")}`}("\n"+s.message,f,i,d),s.ngTokenPath=f,s[r3]=null,s}(M,o,"R3InjectorError",this.source)}throw M}finally{g2(C),V3(h)}}resolveInjectorInitializers(){const o=A(null),i=V3(this),d=g2(void 0);try{const h=this.get(f3,J0,y0.Self);for(const C of h)C()}finally{V3(i),g2(d),A(o)}}toString(){const o=[],i=this.records;for(const d of i.keys())o.push(I0(d));return`R3Injector[${o.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m2(205,!1)}processProvider(o){let i=X3(o=s1(o))?o:s1(o&&o.provide);const d=function Fe(s){return v6(s)?T3(void 0,s.useValue):T3(T8(s),M8)}(o);if(!X3(o)&&!0===o.multi){let f=this.records.get(i);f||(f=T3(void 0,M8,!0),f.factory=()=>E3(f.multi),this.records.set(i,f)),i=o,f.multi.push(o)}this.records.set(i,d)}hydrate(o,i){const d=A(null);try{return i.value===M8&&(i.value=Ye,i.value=i.factory()),"object"==typeof i.value&&i.value&&function R8(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{A(d)}}injectableDefInScope(o){if(!o.providedIn)return!1;const i=s1(o.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(o){const i=this._onDestroyHooks.indexOf(o);-1!==i&&this._onDestroyHooks.splice(i,1)}}function ee(s){const o=b1(s),i=null!==o?o.factory:D3(s);if(null!==i)return i;if(s instanceof Y1)throw new m2(204,!1);if(s instanceof Function)return function ce(s){if(s.length>0)throw new m2(204,!1);const i=function N3(s){return s&&(s[a1]||s[v1])||null}(s);return null!==i?()=>i.factory(s):()=>new s}(s);throw new m2(204,!1)}function T8(s,o,i){let d;if(X3(s)){const f=s1(s);return D3(f)||ee(f)}if(v6(s))d=()=>s1(s.useValue);else if(function N2(s){return!(!s||!s.useFactory)}(s))d=()=>s.useFactory(...E3(s.deps||[]));else if(function He(s){return!(!s||!s.useExisting)}(s))d=()=>w4(s1(s.useExisting));else{const f=s1(s&&(s.useClass||s.provide));if(!function V6(s){return!!s.deps}(s))return D3(f)||ee(f);d=()=>new f(...E3(s.deps))}return d}function T3(s,o,i=!1){return{factory:s,value:o,multi:i?[]:void 0}}function A8(s,o){for(const i of s)Array.isArray(i)?A8(i,o):i&&H0(i)?A8(i.\u0275providers,o):o(i)}function _6(s,o){s instanceof B6&&s.assertNotDestroyed();const d=V3(s),f=g2(void 0);try{return o()}finally{V3(d),g2(f)}}function k6(){return void 0!==J2()||null!=function Q6(){return C3}()}const T1=0,M1=1,U1=2,y2=3,k2=4,T2=5,M0=6,X0=7,W0=8,v4=9,Q0=10,Z2=11,s3=12,C2=13,K4=14,s0=15,n0=16,L6=17,C6=18,ve=19,w5=20,p0=21,h1=22,te=23,S0=25,S5=1,a8=7,x8=9,m3=10;var t5=function(s){return s[s.None=0]="None",s[s.HasTransplantedViews=2]="HasTransplantedViews",s}(t5||{});function R3(s){return Array.isArray(s)&&"object"==typeof s[S5]}function p3(s){return Array.isArray(s)&&!0===s[S5]}function E2(s){return!!(4&s.flags)}function I8(s){return s.componentOffset>-1}function H2(s){return!(1&~s.flags)}function V2(s){return!!s.template}function J3(s){return!!(512&s[U1])}class we{constructor(o,i,d){this.previousValue=o,this.currentValue=i,this.firstChange=d}isFirstChange(){return this.firstChange}}function Se(s,o,i,d){null!==o?o.applyValueToInputSignal(o,d):s[i]=d}function $8(){return Ne}function Ne(s){return s.type.prototype.ngOnChanges&&(s.setInput=E9),j8}function j8(){const s=E7(this),o=s?.current;if(o){const i=s.previous;if(i===P4)s.previous=o;else for(let d in o)i[d]=o[d];s.current=null,this.ngOnChanges(o)}}function E9(s,o,i,d,f){const h=this.declaredInputs[d],C=E7(s)||function le(s,o){return s[fc]=o}(s,{previous:P4,current:null}),M=C.current||(C.current={}),k=C.previous,$=k[h];M[h]=new we($&&$.currentValue,i,k===P4),Se(s,o,f,i)}$8.ngInherit=!0;const fc="__ngSimpleChanges__";function E7(s){return s[fc]||null}const H6=function(s,o,i){},mc="svg";let D9=!1;function N4(s){for(;Array.isArray(s);)s=s[T1];return s}function n5(s,o){return N4(o[s])}function z6(s,o){return N4(o[s.index])}function R5(s,o){return s.data[o]}function l5(s,o){return s[o]}function w6(s,o){const i=o[s];return R3(i)?i:i[T1]}function R7(s){return!(128&~s[U1])}function o8(s,o){return null==o?null:s[o]}function R9(s){s[L6]=0}function O8(s){1024&s[U1]||(s[U1]|=1024,R7(s)&&A5(s))}function A7(s){return!!(9216&s[U1]||s[te]?.dirty)}function hc(s){s[Q0].changeDetectionScheduler?.notify(1),A7(s)?A5(s):64&s[U1]&&(function T7(){return D9}()?(s[U1]|=1024,A5(s)):s[Q0].changeDetectionScheduler?.notify())}function A5(s){s[Q0].changeDetectionScheduler?.notify();let o=ae(s);for(;null!==o&&!(8192&o[U1])&&(o[U1]|=8192,R7(o));)o=ae(o)}function gc(s,o){if(!(256&~s[U1]))throw new m2(911,!1);null===s[p0]&&(s[p0]=[]),s[p0].push(o)}function ae(s){const o=s[y2];return p3(o)?o[y2]:o}const g0={lFrame:_f(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function O(){return g0.bindingsEnabled}function n1(){return null!==g0.skipHydrationRootTNode}function Q1(){return g0.lFrame.lView}function B0(){return g0.lFrame.tView}function oe(s){return g0.lFrame.contextLView=s,s[W0]}function lf(s){return g0.lFrame.contextLView=null,s}function R4(){let s=sf();for(;null!==s&&64===s.type;)s=s.parent;return s}function sf(){return g0.lFrame.currentTNode}function De(s,o){const i=g0.lFrame;i.currentTNode=s,i.isParent=o}function $7(){return g0.lFrame.isParent}function Fs(){g0.lFrame.isParent=!1}function S6(){const s=g0.lFrame;let o=s.bindingRootIndex;return-1===o&&(o=s.bindingRootIndex=s.tView.bindingStartIndex),o}function Te(){return g0.lFrame.bindingIndex}function V8(){return g0.lFrame.bindingIndex++}function qe(s){const o=g0.lFrame,i=o.bindingIndex;return o.bindingIndex=o.bindingIndex+s,i}function uf(s,o){const i=g0.lFrame;i.bindingIndex=i.bindingRootIndex=s,I9(o)}function I9(s){g0.lFrame.currentDirectiveIndex=s}function vs(){return g0.lFrame.currentQueryIndex}function P9(s){g0.lFrame.currentQueryIndex=s}function pf(s){const o=s[M1];return 2===o.type?o.declTNode:1===o.type?s[T2]:null}function hf(s,o,i){if(i&y0.SkipSelf){let f=o,h=s;for(;!(f=f.parent,null!==f||i&y0.Host||(f=pf(h),null===f||(h=h[K4],10&f.type))););if(null===f)return!1;o=f,s=h}const d=g0.lFrame=gf();return d.currentTNode=o,d.lView=s,!0}function $9(s){const o=gf(),i=s[M1];g0.lFrame=o,o.currentTNode=i.firstChild,o.lView=s,o.tView=i,o.contextLView=s,o.bindingIndex=i.bindingStartIndex,o.inI18n=!1}function gf(){const s=g0.lFrame,o=null===s?null:s.child;return null===o?_f(s):o}function _f(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 Lf(){const s=g0.lFrame;return g0.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const Cf=Lf;function j9(){const s=Lf();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 M6(){return g0.lFrame.selectedIndex}function s5(s){g0.lFrame.selectedIndex=s}function e3(){const s=g0.lFrame;return R5(s.tView,s.selectedIndex)}function ks(){g0.lFrame.currentNamespace=mc}function ws(){!function XL(){g0.lFrame.currentNamespace=null}()}let xf=!0;function _c(){return xf}function ie(s){xf=s}function O9(s,o){for(let i=o.directiveStart,d=o.directiveEnd;i=d)break}else o[k]<0&&(s[L6]+=65536),(M>14>16&&(3&s[U1])===o&&(s[U1]+=16384,bf(M,h)):bf(M,h)}const Lc=-1;class I5{constructor(o,i,d){this.factory=o,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=d}}function V9(s){return s!==Lc}function U7(s){return 32767&s}function H7(s,o){let i=function ZL(s){return s>>16}(s),d=o;for(;i>0;)d=d[K4],i--;return d}let U9=!0;function G7(s){const o=U9;return U9=s,o}const Ds=255,H9=5;let eC=0;const re={};function Y7(s,o){const i=Ts(s,o);if(-1!==i)return i;const d=o[M1];d.firstCreatePass&&(s.injectorIndex=o.length,G9(d.data,s),G9(o,null),G9(d.blueprint,null));const f=Y9(s,o),h=s.injectorIndex;if(V9(f)){const C=U7(f),M=H7(f,o),k=M[M1].data;for(let $=0;$<8;$++)o[h+$]=M[C+$]|k[C+$]}return o[h+8]=f,h}function G9(s,o){s.push(0,0,0,0,0,0,0,0,o)}function Ts(s,o){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===o[s.injectorIndex+8]?-1:s.injectorIndex}function Y9(s,o){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let i=0,d=null,f=o;for(;null!==f;){if(d=Is(f),null===d)return Lc;if(i++,f=f[K4],-1!==d.injectorIndex)return d.injectorIndex|i<<16}return Lc}function q7(s,o,i){!function cC(s,o,i){let d;"string"==typeof i?d=i.charCodeAt(0)||0:i.hasOwnProperty(E4)&&(d=i[E4]),null==d&&(d=i[E4]=eC++);const f=d&Ds;o.data[s+(f>>H9)]|=1<=0?o&Ds:Rf:o}(i);if("function"==typeof h){if(!hf(o,s,d))return d&y0.Host?Sf(f,0,d):q9(o,i,d,f);try{let C;if(C=h(d),null!=C||d&y0.Optional)return C;p6()}finally{Cf()}}else if("number"==typeof h){let C=null,M=Ts(s,o),k=Lc,$=d&y0.Host?o[s0][T2]:null;for((-1===M||d&y0.SkipSelf)&&(k=-1===M?Y9(s,o):o[M+8],k!==Lc&&X9(d,!1)?(C=o[M1],M=U7(k),o=H7(k,o)):M=-1);-1!==M;){const Y=o[M1];if(Tf(h,M,Y.data)){const o1=Ef(M,o,i,C,d,$);if(o1!==re)return o1}k=o[M+8],k!==Lc&&X9(d,o[M1].data[M+8]===$)&&Tf(h,M,o)?(C=Y,M=U7(k),o=H7(k,o)):M=-1}}return f}function Ef(s,o,i,d,f,h){const C=o[M1],M=C.data[s+8],Y=X7(M,C,i,null==d?I8(M)&&U9:d!=C&&!!(3&M.type),f&y0.Host&&h===M);return null!==Y?a5(o,C,Y,M):re}function X7(s,o,i,d,f){const h=s.providerIndexes,C=o.data,M=1048575&h,k=s.directiveStart,Y=h>>20,S1=f?M+Y:s.directiveEnd;for(let I1=d?M:M+Y;I1=k&&B1.type===i)return I1}if(f){const I1=C[k];if(I1&&V2(I1)&&I1.type===i)return k}return null}function a5(s,o,i,d){let f=s[i];const h=o.data;if(function yf(s){return s instanceof I5}(f)){const C=f;C.resolving&&function m6(s,o){throw o&&o.join(" > "),new m2(-200,s)}(function P2(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():l0(s)}(h[i]));const M=G7(C.canSeeViewProviders);C.resolving=!0;const $=C.injectImpl?g2(C.injectImpl):null;hf(s,d,y0.Default);try{f=s[i]=C.factory(void 0,h,s,d),o.firstCreatePass&&i>=d.directiveStart&&function WL(s,o,i){const{ngOnChanges:d,ngOnInit:f,ngDoCheck:h}=o.type.prototype;if(d){const C=Ne(o);(i.preOrderHooks??=[]).push(s,C),(i.preOrderCheckHooks??=[]).push(s,C)}f&&(i.preOrderHooks??=[]).push(0-s,f),h&&((i.preOrderHooks??=[]).push(s,h),(i.preOrderCheckHooks??=[]).push(s,h))}(i,h[i],o)}finally{null!==$&&g2($),G7(M),C.resolving=!1,Cf()}}return f}function Tf(s,o,i){return!!(i[o+(s>>H9)]&1<{const o=s.prototype.constructor,i=o[t4]||W7(o),d=Object.prototype;let f=Object.getPrototypeOf(s.prototype).constructor;for(;f&&f!==d;){const h=f[t4]||W7(f);if(h&&h!==i)return h;f=Object.getPrototypeOf(f)}return h=>new h})}function W7(s){return z1(s)?()=>{const o=W7(s1(s));return o&&o()}:D3(s)}function Is(s){const o=s[M1],i=o.type;return 2===i?o.declTNode:1===i?s[T2]:null}function W9(s){return function wf(s,o){if("class"===o)return s.classes;if("style"===o)return s.styles;const i=s.attrs;if(i){const d=i.length;let f=0;for(;f{class s{static{this.THROW_IF_NOT_FOUND=D4}static{this.NULL=new o6}static create(i,d){if(Array.isArray(i))return js({name:""},d,i,"");{const f=i.name??"";return js({name:f},i.parent,i.providers,f)}}static{this.\u0275prov=b0({token:s,providedIn:"any",factory:()=>w4(y6)})}static{this.__NG_ELEMENT_ID__=-1}}return s})();function Bs(s){return s.ngOriginalError}class U8{constructor(){this._console=console}handleError(o){const i=this._findOriginalError(o);this._console.error("ERROR",o),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(o){let i=o&&Bs(o);for(;i&&Bs(i);)i=Bs(i);return i||null}}const Of=new Y1("",{providedIn:"root",factory:()=>f0(U8).handleError.bind(void 0)});let P5=(()=>{class s{static{this.__NG_ELEMENT_ID__=Bf}static{this.__NG_ENV_ID__=i=>i}}return s})();class oC extends P5{constructor(o){super(),this._lView=o}onDestroy(o){return gc(this._lView,o),()=>function I7(s,o){if(null===s[p0])return;const i=s[p0].indexOf(o);-1!==i&&s[p0].splice(i,1)}(this._lView,o)}}function Bf(){return new oC(Q1())}function Uf(s,o){return G4(s,o)}const Hf=(Uf.required=function Us(s){return G4(C4,s)},Uf);function rC(){return o5(R4(),Q1())}function o5(s,o){return new Q7(z6(s,o))}let Q7=(()=>{class s{constructor(i){this.nativeElement=i}static{this.__NG_ELEMENT_ID__=rC}}return s})();function Gf(s){return s instanceof Q7?s.nativeElement:s}function Gs(s){return o=>{setTimeout(s,void 0,o)}}const Re=class Hs extends B2.B{constructor(o=!1){super(),this.destroyRef=void 0,this.__isAsync=o,k6()&&(this.destroyRef=f0(P5,{optional:!0})??void 0)}emit(o){const i=A(null);try{super.next(o)}finally{A(i)}}subscribe(o,i,d){let f=o,h=i||(()=>null),C=d;if(o&&"object"==typeof o){const k=o;f=k.next?.bind(k),h=k.error?.bind(k),C=k.complete?.bind(k)}this.__isAsync&&(h=Gs(h),f&&(f=Gs(f)),C&&(C=Gs(C)));const M=super.subscribe({next:f,error:h,complete:C});return o instanceof v0.yU&&o.add(M),M}};function Yf(){return this._results[Symbol.iterator]()}class Ys{get changes(){return this._changes??=new Re}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 i=Ys.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=Yf)}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,i){return this._results.reduce(o,i)}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,i){this.dirty=!1;const d=function n3(s){return s.flat(Number.POSITIVE_INFINITY)}(o);(this._changesDetected=!function _3(s,o,i){if(s.length!==o.length)return!1;for(let d=0;dxC}),xC="ng",ru=new Y1(""),ln=new Y1("",{providedIn:"platform",factory:()=>"unknown"}),yC=new Y1("",{providedIn:"root",factory:()=>de().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let da=()=>null;function rn(s,o,i=!1){return da(s,o,i)}const Lu=new Y1("",{providedIn:"root",factory:()=>!1});let ot,un;function wc(s){return function fn(){if(void 0===ot&&(ot=null,c0.trustedTypes))try{ot=c0.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return ot}()?.createHTML(s)||s}function _a(){if(void 0===un&&(un=null,c0.trustedTypes))try{un=c0.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return un}function La(s){return _a()?.createHTML(s)||s}function za(s){return _a()?.createScriptURL(s)||s}class i5{constructor(o){this.changingThisBreaksApplicationSecurity=o}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${L4})`}}class Mu extends i5{getTypeName(){return"HTML"}}class xu extends i5{getTypeName(){return"Style"}}class TC extends i5{getTypeName(){return"Script"}}class Ma extends i5{getTypeName(){return"URL"}}class RC extends i5{getTypeName(){return"ResourceURL"}}function Ae(s){return s instanceof i5?s.changingThisBreaksApplicationSecurity:s}function Sc(s,o){const i=function AC(s){return s instanceof i5&&s.getTypeName()||null}(s);if(null!=i&&i!==o){if("ResourceURL"===i&&"URL"===o)return!0;throw new Error(`Required a safe ${o}, got a ${i} (see ${L4})`)}return i===o}function bu(s){return new Mu(s)}function IC(s){return new xu(s)}function PC(s){return new TC(s)}function $C(s){return new Ma(s)}function yu(s){return new RC(s)}class jC{constructor(o){this.inertDocumentHelper=o}getInertBodyElement(o){o=""+o;try{const i=(new window.DOMParser).parseFromString(wc(o),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(o):(i.removeChild(i.firstChild),i)}catch{return null}}}class OC{constructor(o){this.defaultDoc=o,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(o){const i=this.inertDocument.createElement("template");return i.innerHTML=wc(o),i}}const VC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mn(s){return(s=String(s)).match(VC)?s:"unsafe:"+s}function b8(s){const o={};for(const i of s.split(","))o[i]=!0;return o}function rt(...s){const o={};for(const i of s)for(const d in i)i.hasOwnProperty(d)&&(o[d]=!0);return o}const Fu=b8("area,br,col,hr,img,wbr"),pn=b8("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vu=b8("rp,rt"),hn=rt(Fu,rt(pn,b8("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")),rt(vu,b8("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")),rt(vu,pn)),dt=b8("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ku=rt(dt,b8("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"),b8("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")),wu=b8("script,style,template");class GC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(o){let i=o.firstChild,d=!0,f=[];for(;i;)if(i.nodeType===Node.ELEMENT_NODE?d=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,d&&i.firstChild)f.push(i),i=qC(i);else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let h=xa(i);if(h){i=h;break}i=f.pop()}return this.buf.join("")}startElement(o){const i=Su(o).toLowerCase();if(!hn.hasOwnProperty(i))return this.sanitizedSomething=!0,!wu.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const d=o.attributes;for(let f=0;f"),!0}endElement(o){const i=Su(o).toLowerCase();hn.hasOwnProperty(i)&&!Fu.hasOwnProperty(i)&&(this.buf.push(""))}chars(o){this.buf.push(ba(o))}}function xa(s){const o=s.nextSibling;if(o&&s!==o.previousSibling)throw ft(o);return o}function qC(s){const o=s.firstChild;if(o&&function YC(s,o){return(s.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(s,o))throw ft(o);return o}function Su(s){const o=s.nodeName;return"string"==typeof o?o:"FORM"}function ft(s){return new Error(`Failed to sanitize html because the element is clobbered: ${s.outerHTML}`)}const Nu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eu=/([^\#-~ |!])/g;function ba(s){return s.replace(/&/g,"&").replace(Nu,function(o){return"&#"+(1024*(o.charCodeAt(0)-55296)+(o.charCodeAt(1)-56320)+65536)+";"}).replace(Eu,function(o){return"&#"+o.charCodeAt(0)+";"}).replace(//g,">")}let _n;function Du(s,o){let i=null;try{_n=_n||function it(s){const o=new OC(s);return function BC(){try{return!!(new window.DOMParser).parseFromString(wc(""),"text/html")}catch{return!1}}()?new jC(o):o}(s);let d=o?String(o):"";i=_n.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=i.innerHTML,i=_n.getInertBodyElement(d)}while(d!==h);return wc((new GC).sanitizeChildren(ya(i)||i))}finally{if(i){const d=ya(i)||i;for(;d.firstChild;)d.removeChild(d.firstChild)}}}function ya(s){return"content"in s&&function XC(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var r5=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}(r5||{});function Tu(s){const o=ut();return o?La(o.sanitize(r5.HTML,s)||""):Sc(s,"HTML")?La(Ae(s)):Du(de(),l0(s))}function Fa(s){const o=ut();return o?o.sanitize(r5.URL,s)||"":Sc(s,"URL")?Ae(s):mn(l0(s))}function Ln(s){const o=ut();if(o)return za(o.sanitize(r5.RESOURCE_URL,s)||"");if(Sc(s,"ResourceURL"))return za(Ae(s));throw new m2(904,!1)}function Iu(s,o,i){return function JC(s,o){return"src"===o&&("embed"===s||"frame"===s||"iframe"===s||"media"===s||"script"===s)||"href"===o&&("base"===s||"link"===s)?Ln:Fa}(o,i)(s)}function ut(){const s=Q1();return s&&s[Q0].sanitizer}const Pu=/^>|^->||--!>|)/g,$u="\u200b$1\u200b";function pt(s){return s.ownerDocument.defaultView}function Yu(s){return s.ownerDocument}function y8(s){return s instanceof Function?s():s}var Fn=function(s){return s[s.Important=1]="Important",s[s.DashCase=2]="DashCase",s}(Fn||{});let ht;function Ta(s,o){return ht(s,o)}function Ec(s,o,i,d,f){if(null!=d){let h,C=!1;p3(d)?h=d:R3(d)&&(C=!0,d=d[T1]);const M=N4(d);0===s&&null!==i?null==f?Zu(o,i,M):Xe(o,i,M,f||null,!0):1===s&&null!==i?Xe(o,i,M,f||null,!0):2===s?function O5(s,o,i){const d=Sn(s,o);d&&function Ba(s,o,i,d){s.removeChild(o,i,d)}(s,d,o,i)}(o,M,C):3===s&&o.destroyNode(M),null!=h&&function sm(s,o,i,d,f){const h=i[a8];h!==N4(i)&&Ec(o,s,d,h,f);for(let M=m3;Mo.replace(ka,$u))}(o))}function vn(s,o,i){return s.createElement(o,i)}function Ju(s,o){o[Q0].changeDetectionScheduler?.notify(1),Dn(s,o,o[Z2],2,null,null)}function Qu(s,o){const i=s[x8],d=i.indexOf(o);i.splice(d,1)}function Dc(s,o){if(s.length<=m3)return;const i=m3+o,d=s[i];if(d){const f=d[n0];null!==f&&f!==s&&Qu(f,d),o>0&&(s[i-1][k2]=d[k2]);const h=K6(s,m3+o);!function nz(s,o){Ju(s,o),o[T1]=null,o[T2]=null}(d[M1],d);const C=h[C6];null!==C&&C.detachView(h[M1]),d[y2]=null,d[k2]=null,d[U1]&=-129}return d}function kn(s,o){if(!(256&o[U1])){const i=o[Z2];i.destroyNode&&Dn(s,o,i,3,null,null),function lz(s){let o=s[s3];if(!o)return $a(s[M1],s);for(;o;){let i=null;if(R3(o))i=o[s3];else{const d=o[m3];d&&(i=d)}if(!i){for(;o&&!o[k2]&&o!==s;)R3(o)&&$a(o[M1],o),o=o[y2];null===o&&(o=s),R3(o)&&$a(o[M1],o),i=o&&o[k2]}o=i}}(o)}}function $a(s,o){if(256&o[U1])return;const i=A(null);try{o[U1]&=-129,o[U1]|=256,o[te]&&function s2(s){if(r2(s),O2(s))for(let o=0;o=0?d[C]():d[-C].unsubscribe(),h+=2}else i[h].call(d[i[h+1]]);null!==d&&(o[X0]=null);const f=o[p0];if(null!==f){o[p0]=null;for(let h=0;h-1){const{encapsulation:h}=s.data[d.directiveStart+f];if(h===i6.None||h===i6.Emulated)return null}return z6(d,i)}}(s,o.parent,i)}function Xe(s,o,i,d,f){s.insertBefore(o,i,d,f)}function Zu(s,o,i){s.appendChild(o,i)}function Ku(s,o,i,d,f){null!==d?Xe(s,o,i,d,f):Zu(s,o,i)}function Sn(s,o){return s.parentNode(o)}function em(s,o,i){return tm(s,o,i)}let d5,tm=function cm(s,o,i){return 40&s.type?z6(s,i):null};function Tc(s,o,i,d){const f=wn(s,d,o),h=o[Z2],M=em(d.parent||o[T2],d,o);if(null!=f)if(Array.isArray(i))for(let k=0;kS0&&Ya(s,o,S0,!1),H6(C?2:0,f),i(d,f)}finally{s5(h),H6(C?3:1,f)}}function _t(s,o,i){if(E2(o)){const d=A(null);try{const h=o.directiveEnd;for(let C=o.directiveStart;Cnull;function Lt(s,o,i,d,f){for(let h in o){if(!o.hasOwnProperty(h))continue;const C=o[h];if(void 0===C)continue;d??={};let M,k=q4.None;Array.isArray(C)?(M=C[0],k=C[1]):M=C;let $=h;if(null!==f){if(!f.hasOwnProperty(h))continue;$=f[h]}0===s?Za(d,i,$,M,k):Za(d,i,$,M)}return d}function Za(s,o,i,d,f){let h;s.hasOwnProperty(i)?(h=s[i]).push(o,d):h=s[i]=[o,d],void 0!==f&&h.push(f)}function r8(s,o,i,d,f,h,C,M){const k=z6(o,i);let Y,$=o.inputs;!M&&null!=$&&(Y=$[d])?(fo(s,i,Y,d,f),I8(o)&&function hm(s,o){const i=w6(o,s);16&i[U1]||(i[U1]|=64)}(i,o.index)):3&o.type&&(d=function Ka(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(d),f=null!=C?C(f,o.value||"",d):f,h.setProperty(k,d,f))}function eo(s,o,i,d){if(O()){const f=null===d?null:{"":-1},h=function zz(s,o){const i=s.directiveRegistry;let d=null,f=null;if(i)for(let h=0;h0;){const i=s[--o];if("number"==typeof i&&i<0)return i}return 0})(C)!=M&&C.push(M),C.push(i,d,h)}}(s,o,d,B5(s,i,f.hostVars,K0),f)}function Ie(s,o,i,d,f,h){const C=z6(s,o);!function In(s,o,i,d,f,h,C){if(null==h)s.removeAttribute(o,f,i);else{const M=null==C?l0(h):C(h,d||"",f);s.setAttribute(o,f,M,i)}}(o[Z2],C,h,s.value,i,d,f)}function ao(s,o,i,d,f,h){const C=h[o];if(null!==C)for(let M=0;M0&&(i[f-1][k2]=o),d{A5(s.lView)},consumerOnSignalRead(){this.lView[te]=this}},Fm=100;function Mt(s,o=!0,i=0){const d=s[Q0],f=d.rendererFactory;f.begin?.();try{!function go(s,o){_o(s,o);let i=0;for(;A7(s);){if(i===Fm)throw new m2(103,!1);i++,_o(s,1)}}(s,i)}catch(C){throw o&&jn(s,C),C}finally{f.end?.(),d.inlineEffectRunner?.flush()}}function vm(s,o,i,d){const f=o[U1];if(!(256&~f))return;o[Q0].inlineEffectRunner?.flush(),$9(o);let C=null,M=null;(function kz(s){return 2!==s.type})(s)&&(M=function Mm(s){return s[te]??function xm(s){const o=ho.pop()??Object.create(ym);return o.lView=s,o}(s)}(o),C=function H1(s){return s&&(s.nextProducerIndex=0),A(s)}(M));try{R9(o),function df(s){return g0.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==i&&dm(s,o,i,2,d);const k=!(3&~f);if(k){const o1=s.preOrderCheckHooks;null!==o1&&B7(o,o1,null)}else{const o1=s.preOrderHooks;null!==o1&&V7(o,o1,0,null),Ss(o,0)}if(function km(s){for(let o=Zs(s);null!==o;o=nu(o)){if(!(o[U1]&t5.HasTransplantedViews))continue;const i=o[x8];for(let d=0;ds.nextProducerIndex;)s.producerNode.pop(),s.producerLastReadVersion.pop(),s.producerIndexOfThis.pop()}}(M,C),function bm(s){s.lView[te]!==s&&(s.lView=null,ho.push(s))}(M)),j9()}}function Pc(s,o){for(let i=Zs(s);null!==i;i=nu(i))for(let d=m3;d-1&&(Dc(o,d),K6(i,d))}this._attachedToViewContainer=!1}kn(this._lView[M1],this._lView)}onDestroy(o){gc(this._lView,o)}markForCheck(){xt(this._cdRefInjectingView||this._lView)}detach(){this._lView[U1]&=-129}reattach(){hc(this._lView),this._lView[U1]|=128}detectChanges(){this._lView[U1]|=1024,Mt(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m2(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Ju(this._lView[M1],this._lView)}attachToAppRef(o){if(this._attachedToViewContainer)throw new m2(902,!1);this._appRef=o,hc(this._lView)}}let yt=(()=>{class s{static{this.__NG_ELEMENT_ID__=Nz}}return s})();const Sm=yt,Sz=class extends Sm{constructor(o,i,d){super(),this._declarationLView=o,this._declarationTContainer=i,this.elementRef=d}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(o,i){return this.createEmbeddedViewImpl(o,i)}createEmbeddedViewImpl(o,i,d){const f=Ct(this._declarationLView,this._declarationTContainer,o,{embeddedViewInjector:i,dehydratedView:d});return new bt(f)}};function Nz(){return Ft(R4(),Q1())}function Ft(s,o){return 4&s.type?new Sz(o,s,o5(s,o)):null}let yo=()=>null;function jc(s,o){return yo(s,o)}class Fo{}class Gz{}class vo{}class Xn{resolveComponentFactory(o){throw function Bm(s){const o=Error(`No component factory found for ${I0(s)}.`);return o.ngComponent=s,o}(o)}}let Oc=(()=>{class s{static{this.NULL=new Xn}}return s})();class Vm{}let qz=(()=>{class s{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Um(){const s=Q1(),i=w6(R4().index,s);return(R3(i)?i:s)[Z2]}()}}return s})(),Xz=(()=>{class s{static{this.\u0275prov=b0({token:s,providedIn:"root",factory:()=>null})}}return s})();const ko={},wo=new Set;function H8(s){wo.has(s)||(wo.add(s),performance?.mark?.("mark_feature_usage",{detail:{feature:s}}))}function Hm(...s){}class I3{constructor({enableLongStackTrace:o=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:d=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Re(!1),this.onMicrotaskEmpty=new Re(!1),this.onStable=new Re(!1),this.onError=new Re(!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&&i,f.shouldCoalesceRunChangeDetection=d,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function Jz(){const s="function"==typeof c0.requestAnimationFrame;let o=c0[s?"requestAnimationFrame":"setTimeout"],i=c0[s?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&o&&i){const d=o[Zone.__symbol__("OriginalDelegate")];d&&(o=d);const f=i[Zone.__symbol__("OriginalDelegate")];f&&(i=f)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function Eo(s){const o=()=>{!function Qz(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(c0,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Wn(s),s.isCheckStableRunning=!0,No(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Wn(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,d,f,h,C,M)=>{if(function Zz(s){return!(!Array.isArray(s)||1!==s.length)&&!0===s[0].data?.__ignore_ng_zone__}(M))return i.invokeTask(f,h,C,M);try{return Gm(s),i.invokeTask(f,h,C,M)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===h.type||s.shouldCoalesceRunChangeDetection)&&o(),Do(s)}},onInvoke:(i,d,f,h,C,M,k)=>{try{return Gm(s),i.invoke(f,h,C,M,k)}finally{s.shouldCoalesceRunChangeDetection&&o(),Do(s)}},onHasTask:(i,d,f,h)=>{i.hasTask(f,h),d===f&&("microTask"==h.change?(s._hasPendingMicrotasks=h.microTask,Wn(s),No(s)):"macroTask"==h.change&&(s.hasPendingMacrotasks=h.macroTask))},onHandleError:(i,d,f,h)=>(i.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(!I3.isInAngularZone())throw new m2(909,!1)}static assertNotInAngularZone(){if(I3.isInAngularZone())throw new m2(909,!1)}run(o,i,d){return this._inner.run(o,i,d)}runTask(o,i,d,f){const h=this._inner,C=h.scheduleEventTask("NgZoneEvent: "+f,o,So,Hm,Hm);try{return h.runTask(C,i,d)}finally{h.cancelTask(C)}}runGuarded(o,i,d){return this._inner.runGuarded(o,i,d)}runOutsideAngular(o){return this._outer.run(o)}}const So={};function No(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 Wn(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Gm(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Do(s){s._nesting--,No(s)}class Jn{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Re,this.onMicrotaskEmpty=new Re,this.onStable=new Re,this.onError=new Re}run(o,i,d){return o.apply(i,d)}runGuarded(o,i,d){return o.apply(i,d)}runOutsideAngular(o){return o()}runTask(o,i,d,f){return o.apply(i,d)}}var We=function(s){return s[s.EarlyRead=0]="EarlyRead",s[s.Write=1]="Write",s[s.MixedReadWrite=2]="MixedReadWrite",s[s.Read=3]="Read",s}(We||{});const To={destroy(){}};function qm(s,o){!o&&function U6(s){if(!k6())throw new m2(-203,!1)}();const i=o?.injector??f0(i8);if(!function F8(s){return"browser"===(s??f0(i8)).get(ln)}(i))return To;H8("NgAfterNextRender");const d=i.get(Bc),f=d.handler??=new Xm,h=o?.phase??We.MixedReadWrite,C=()=>{f.unregister(k),M()},M=i.get(P5).onDestroy(C),k=_6(i,()=>new Qn(h,()=>{C(),s()}));return f.register(k),{destroy:C}}class Qn{constructor(o,i){this.phase=o,this.callbackFn=i,this.zone=f0(I3),this.errorHandler=f0(U8,{optional:!0}),f0(Fo,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(o){this.errorHandler?.handleError(o)}}}class Xm{constructor(){this.executingCallbacks=!1,this.buckets={[We.EarlyRead]:new Set,[We.Write]:new Set,[We.MixedReadWrite]:new Set,[We.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 i of o)i.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 Bc=(()=>{class s{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const d of i)d()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=b0({token:s,providedIn:"root",factory:()=>new s})}}return s})();function m5(s){return!!u3(s)}function Et(s,o,i){let d=i?s.styles:null,f=i?s.classes:null,h=0;if(null!==o)for(let C=0;C0&&om(s,i,h.join(" "))}}(I1,K3,n2,d),void 0!==i&&function nM(s,o,i){const d=s.projection=[];for(let f=0;f{class s{static{this.__NG_ELEMENT_ID__=sM}}return s})();function sM(){return Hc(R4(),Q1())}const aM=cl,np=class extends aM{constructor(o,i,d){super(),this._lContainer=o,this._hostTNode=i,this._hostLView=d}get element(){return o5(this._hostTNode,this._hostLView)}get injector(){return new A3(this._hostTNode,this._hostLView)}get parentInjector(){const o=Y9(this._hostTNode,this._hostLView);if(V9(o)){const i=H7(o,this._hostLView),d=U7(o);return new A3(i[M1].data[d+8],i)}return new A3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(o){const i=Po(this._lContainer);return null!==i&&i[o]||null}get length(){return this._lContainer.length-m3}createEmbeddedView(o,i,d){let f,h;"number"==typeof d?f=d:null!=d&&(f=d.index,h=d.injector);const C=jc(this._lContainer,o.ssrId),M=o.createEmbeddedViewImpl(i||{},h,C);return this.insertImpl(M,f,u5(this._hostTNode,C)),M}createComponent(o,i,d,f,h){const C=o&&!function l2(s){return"function"==typeof s}(o);let M;if(C)M=i;else{const B1=i||{};M=B1.index,d=B1.injector,f=B1.projectableNodes,h=B1.environmentInjector||B1.ngModuleRef}const k=C?o:new G5(j0(o)),$=d||this.parentInjector;if(!h&&null==k.ngModule){const n2=(C?$:this.parentInjector).get(W3,null);n2&&(h=n2)}const Y=j0(k.componentType??{}),o1=jc(this._lContainer,Y?.id??null),I1=k.create($,f,o1?.firstChild??null,h);return this.insertImpl(I1.hostView,M,u5(this._hostTNode,o1)),I1}insert(o,i){return this.insertImpl(o,i,!0)}insertImpl(o,i,d){const f=o._lView;if(function ys(s){return p3(s[y2])}(f)){const M=this.indexOf(o);if(-1!==M)this.detach(M);else{const k=f[y2],$=new np(k,k[T2],k[y2]);$.detach($.indexOf(o))}}const h=this._adjustIndex(i),C=this._lContainer;return V5(C,f,h,d),o.attachToViewContainerRef(),v3($o(C),h,o),o}move(o,i){return this.insert(o,i)}indexOf(o){const i=Po(this._lContainer);return null!==i?i.indexOf(o):-1}remove(o){const i=this._adjustIndex(o,-1),d=Dc(this._lContainer,i);d&&(K6($o(this._lContainer),i),kn(d[M1],d))}detach(o){const i=this._adjustIndex(o,-1),d=Dc(this._lContainer,i);return d&&null!=K6($o(this._lContainer),i)?new bt(d):null}_adjustIndex(o,i=0){return o??this.length+i}};function Po(s){return s[8]}function $o(s){return s[8]||(s[8]=[])}function Hc(s,o){let i;const d=o[s.index];return p3(d)?i=d:(i=Lm(d,o,null,s),o[s.index]=i,Pn(o,i)),tl(i,o,s,d),new np(i,s,o)}let tl=function sp(s,o,i,d){if(s[a8])return;let f;f=8&i.type?N4(d):function oM(s,o){const i=s[Z2],d=i.createComment(""),f=z6(o,s);return Xe(i,Sn(i,f),d,function Va(s,o){return s.nextSibling(o)}(i,f),!1),d}(o,i),s[a8]=f},Gc=()=>!1;class jo{constructor(o){this.queryList=o,this.matches=null}clone(){return new jo(this.queryList)}setDirty(){this.queryList.setDirty()}}class Oo{constructor(o=[]){this.queries=o}createEmbeddedView(o){const i=o.queries;if(null!==i){const d=null!==o.contentQueries?o.contentQueries[0]:i.length,f=[];for(let h=0;ho.trim())}(o):o}}class Dt{constructor(o=[]){this.queries=o}elementStart(o,i){for(let d=0;d0)d.push(C[M/2]);else{const $=h[M+1],Y=o[-k];for(let o1=m3;o1=0;d--){const f=s[d];f.hostVars=o+=f.hostVars,f.hostAttrs=D(f.hostAttrs,i=D(i,f.hostAttrs))}}(d)}function kp(s,o){for(const i in o.inputs){if(!o.inputs.hasOwnProperty(i)||s.inputs.hasOwnProperty(i))continue;const d=o.inputs[i];if(void 0!==d&&(s.inputs[i]=d,s.declaredInputs[i]=o.declaredInputs[i],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 ol(s){return s===P4?{}:s===J0?[]:s}function Sp(s,o){const i=s.viewQuery;s.viewQuery=i?(d,f)=>{o(d,f),i(d,f)}:o}function yM(s,o){const i=s.contentQueries;s.contentQueries=i?(d,f,h)=>{o(d,f,h),i(d,f,h)}:o}function FM(s,o){const i=s.hostBindings;s.hostBindings=i?(d,f)=>{o(d,f),i(d,f)}:o}function Rp(s){const o=s.inputConfig,i={};for(const d in o)if(o.hasOwnProperty(d)){const f=o[d];Array.isArray(f)&&f[3]&&(i[d]=f[3])}s.inputTransforms=i}class Je{}class ti{}function SM(s,o){return new il(s,o??null,[])}class il extends Je{constructor(o,i,d){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Kn(this);const f=u3(o);this._bootstrapComponents=y8(f.bootstrap),this._r3Injector=jf(o,i,[{provide:Je,useValue:this},{provide:Oc,useValue:this.componentFactoryResolver},...d],I0(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(i=>i()),this.destroyCbs=null}onDestroy(o){this.destroyCbs.push(o)}}class ni extends ti{constructor(o){super(),this.moduleType=o}create(o){return new il(this.moduleType,o,[])}}class Xc extends Je{constructor(o){super(),this.componentFactoryResolver=new Kn(this),this.instance=null;const i=new B6([...o.providers,{provide:Je,useValue:this},{provide:Oc,useValue:this.componentFactoryResolver}],o.parent||s8(),o.debugName,new Set(["environment"]));this.injector=i,o.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(o){this.injector.onDestroy(o)}}function li(s,o,i=null){return new Xc({providers:s,parent:o,debugName:i,runEnvironmentInitializers:!0}).injector}let h5=(()=>{class s{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new h0.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),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=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function dl(s){return!!fl(s)&&(Array.isArray(s)||!(s instanceof Map)&&Symbol.iterator in s)}function fl(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function $e(s,o,i){return s[o]=i}function w3(s,o,i){return!Object.is(s[o],i)&&(s[o]=i,!0)}function Y5(s,o,i,d){const f=w3(s,o,i);return w3(s,o+1,d)||f}function Jc(s,o,i,d,f){const h=Y5(s,o,i,d);return w3(s,o+2,f)||h}function G8(s,o,i,d,f,h){const C=Y5(s,o,i,d);return Y5(s,o+2,f,h)||C}function Qc(s,o,i,d,f,h,C,M){const k=Q1(),$=B0(),Y=s+S0,o1=$.firstCreatePass?function ul(s,o,i,d,f,h,C,M,k){const $=o.consts,Y=f5(o,s,4,C||null,o8($,M));eo(o,i,Y,o8($,k)),O9(o,Y);const o1=Y.tView=Ja(2,Y,d,f,h,o.directiveRegistry,o.pipeRegistry,null,o.schemas,$,null);return null!==o.queries&&(o.queries.template(o,Y),o1.queries=o.queries.embeddedTView(Y)),Y}(Y,$,k,o,i,d,f,h,C):$.data[Y];De(o1,!1);const S1=$p($,k,o1,s);_c()&&Tc($,k,S1,o1),N6(S1,k);const I1=Lm(S1,k,S1,o1);return k[Y]=I1,Pn(k,I1),function lp(s,o,i){return Gc(s,o,i)}(I1,o1,k),H2(o1)&&Xa($,k,o1),null!=C&&Wa(k,o1,M),Qc}let $p=function ml(s,o,i,d){return ie(!0),o[Z2].createComment("")};function jt(s,o,i,d){const f=Q1();return w3(f,V8(),o)&&(B0(),Ie(e3(),f,s,o,i,d)),jt}function g5(s,o,i,d){return w3(s,V8(),i)?o+l0(i)+d:K0}function Fl(s,o){return s<<17|o<<2}function je(s){return s>>17&32767}function Di(s){return 2|s}function _5(s){return(131068&s)>>2}function Ti(s,o){return-131069&s|o<<2}function vl(s){return 1|s}function rh(s,o,i,d){const f=s[i+1],h=null===o;let C=d?je(f):_5(f),M=!1;for(;0!==C&&(!1===M||h);){const $=s[C+1];KM(s[C],o)&&(M=!0,s[C+1]=d?vl($):Di($)),C=d?je($):_5($)}M&&(s[i+1]=d?Di(f):vl(f))}function KM(s,o){return null===s||null==o||(Array.isArray(s)?s[1]:s)===o||!(!Array.isArray(s)||"string"!=typeof o)&&Q4(s,o)>=0}const Q3={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dh(s){return s.substring(Q3.key,Q3.keyEnd)}function Bt(s){return s.substring(Q3.value,Q3.valueEnd)}function Ri(s,o){const i=Q3.textEnd;return i===o?-1:(o=Q3.keyEnd=function tx(s,o,i){for(;o32;)o++;return o}(s,Q3.key=o,i),r7(s,o,i))}function Ai(s,o){const i=Q3.textEnd;let d=Q3.key=r7(s,o,i);return i===d?-1:(d=Q3.keyEnd=function Ii(s,o,i){let d;for(;o=65&&(-33&d)<=90||d>=48&&d<=57);)o++;return o}(s,d,i),d=uh(s,d,i),d=Q3.value=r7(s,d,i),d=Q3.valueEnd=function mh(s,o,i){let d=-1,f=-1,h=-1,C=o,M=C;for(;C32&&(M=C),h=f,f=d,d=-33&k}return M}(s,d,i),uh(s,d,i))}function fh(s){Q3.key=0,Q3.keyEnd=0,Q3.value=0,Q3.valueEnd=0,Q3.textEnd=s.length}function r7(s,o,i){for(;o=0;i=Ai(o,i))Ut(s,dh(o),Bt(o))}function Bi(s){Y8(ax,ue,s,!0)}function ue(s,o){for(let i=function ex(s){return fh(s),Ri(s,r7(s,0,Q3.textEnd))}(o);i>=0;i=Ri(o,i))l3(s,dh(o),!0)}function Y6(s,o,i,d){const f=Q1(),h=B0(),C=qe(2);h.firstUpdatePass&&hh(h,s,C,d),o!==K0&&w3(f,C,o)&&Ui(h,h.data[M6()],f,f[Z2],s,f[C+1]=function zh(s,o){return null==s||""===s||("string"==typeof o?s+=o:"object"==typeof s&&(s=I0(Ae(s)))),s}(o,i),d,C)}function Y8(s,o,i,d){const f=B0(),h=qe(2);f.firstUpdatePass&&hh(f,null,h,d);const C=Q1();if(i!==K0&&w3(C,h,i)){const M=f.data[M6()];if(Mh(M,d)&&!ph(f,h)){let k=d?M.classesWithoutHost:M.stylesWithoutHost;null!==k&&(i=k4(k,i||"")),Vt(f,M,C,i,d)}else!function ox(s,o,i,d,f,h,C,M){f===K0&&(f=J0);let k=0,$=0,Y=0=s.expandoStartIndex}function hh(s,o,i,d){const f=s.data;if(null===f[i+1]){const h=f[M6()],C=ph(s,i);Mh(h,d)&&null===o&&!C&&(o=!1),o=function gh(s,o,i,d){const f=function j7(s){const o=g0.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)&&(i=L5(i=Vi(null,s,o,i,d),o.attrs,d),h=null);else{const C=o.directiveStylingLast;if(-1===C||s[C]!==f)if(i=Vi(f,s,o,i,d),null===h){let k=function lx(s,o,i){const d=i?o.classBindings:o.styleBindings;if(0!==_5(d))return s[je(d)]}(s,o,d);void 0!==k&&Array.isArray(k)&&(k=Vi(null,s,o,k[1],d),k=L5(k,o.attrs,d),function _h(s,o,i,d){s[je(i?o.classBindings:o.styleBindings)]=d}(s,o,d,k))}else h=function Lh(s,o,i){let d;const f=o.directiveEnd;for(let h=1+o.directiveStylingLast;h0)&&($=!0)):Y=i,f)if(0!==k){const S1=je(s[M+1]);s[d+1]=Fl(S1,M),0!==S1&&(s[S1+1]=Ti(s[S1+1],d)),s[M+1]=function JM(s,o){return 131071&s|o<<17}(s[M+1],d)}else s[d+1]=Fl(M,0),0!==M&&(s[M+1]=Ti(s[M+1],d)),M=d;else s[d+1]=Fl(k,0),0===M?M=d:s[k+1]=Ti(s[k+1],d),k=d;$&&(s[d+1]=Di(s[d+1])),rh(s,Y,d,!0),rh(s,Y,d,!1),function ZM(s,o,i,d,f){const h=f?s.residualClasses:s.residualStyles;null!=h&&"string"==typeof o&&Q4(h,o)>=0&&(i[d+1]=vl(i[d+1]))}(o,Y,s,d,h),C=Fl(M,k),h?o.classBindings=C:o.styleBindings=C}(f,h,o,i,C,d)}}function Vi(s,o,i,d,f){let h=null;const C=i.directiveEnd;let M=i.directiveStylingLast;for(-1===M?M=i.directiveStart:M++;M0;){const k=s[f],$=Array.isArray(k),Y=$?k[1]:k,o1=null===Y;let S1=i[f+1];S1===K0&&(S1=o1?J0:void 0);let I1=o1?b6(S1,d):Y===d?S1:void 0;if($&&!ec(I1)&&(I1=b6(k,d)),ec(I1)&&(M=I1,C))return M;const B1=s[f+1];f=C?je(B1):_5(B1)}if(null!==o){let k=h?o.residualClasses:o.residualStyles;null!=k&&(M=b6(k,d))}return M}function ec(s){return void 0!==s}function Mh(s,o){return!!(s.flags&(o?8:16))}function Hi(s,o,i){Y8(l3,ue,g5(Q1(),s,o,i),!0)}class kl{destroy(o){}updateValue(o,i){}swap(o,i){const d=Math.min(o,i),f=Math.max(o,i),h=this.detach(f);if(f-d>1){const C=this.detach(d);this.attach(d,h),this.attach(f,C)}else this.attach(d,h)}move(o,i){this.attach(i,this.detach(o))}}function Yi(s,o,i,d,f){return s===i&&Object.is(o,d)?1:Object.is(f(s,o),f(i,d))?-1:0}function wl(s,o,i,d){return!(void 0===o||!o.has(d)||(s.attach(i,o.get(d)),o.delete(d),0))}function wh(s,o,i,d,f){if(wl(s,o,d,i(d,f)))s.updateValue(d,f);else{const h=s.create(d,f);s.attach(d,h)}}function Sh(s,o,i,d){const f=new Set;for(let h=o;h<=i;h++)f.add(d(h,s.at(h)));return f}class Nh{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 i=this.kvMap.get(o);return void 0!==this._vMap&&this._vMap.has(i)?(this.kvMap.set(o,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(o),!0}get(o){return this.kvMap.get(o)}set(o,i){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,i)}else this.kvMap.set(o,i)}forEach(o){for(let[i,d]of this.kvMap)if(o(d,i),void 0!==this._vMap){const f=this._vMap;for(;f.has(d);)d=f.get(d),o(d,i)}}}function qi(s,o,i){H8("NgControlFlow");const d=Q1(),f=V8(),h=d7(d,S0+s);if(w3(d,f,o)){const M=A(null);try{if(mo(h,0),-1!==o){const k=Ji(d[M1],S0+o),$=jc(h,k.tView.ssrId);V5(h,Ct(d,k,i,{dehydratedView:$}),0,u5(k,$))}}finally{A(M)}}else{const M=zm(h,0);void 0!==M&&(M[W0]=i)}}class fx{constructor(o,i,d){this.lContainer=o,this.$implicit=i,this.$index=d}get $count(){return this.lContainer.length-m3}}function Xi(s){return s}function Wi(s,o){return o}class ux{constructor(o,i,d){this.hasEmptyBlock=o,this.trackByFn=i,this.liveCollection=d}}function Sl(s,o,i,d,f,h,C,M,k,$,Y,o1,S1){H8("NgControlFlow");const I1=void 0!==k,B1=Q1(),n2=M?C.bind(B1[s0][W0]):C,p2=new ux(I1,n2);B1[S0+s]=p2,Qc(s+1,o,i,d,f,h),I1&&Qc(s+2,k,$,Y,o1,S1)}class mx extends kl{constructor(o,i,d){super(),this.lContainer=o,this.hostLView=i,this.templateTNode=d,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-m3}at(o){return this.getLView(o)[W0].$implicit}attach(o,i){const d=i[M0];this.needsIndexUpdate||=o!==this.length,V5(this.lContainer,i,o,u5(this.templateTNode,d))}detach(o){return this.needsIndexUpdate||=o!==this.length-1,function px(s,o){return Dc(s,o)}(this.lContainer,o)}create(o,i){const d=jc(this.lContainer,this.templateTNode.tView.ssrId);return Ct(this.hostLView,this.templateTNode,new fx(this.lContainer,i,o),{dehydratedView:d})}destroy(o){kn(o[M1],o)}updateValue(o,i){this.getLView(o)[W0].$implicit=i}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let o=0;o{s.destroy(M)})}(C,s,h.trackByFn),C.updateIndexes(),h.hasEmptyBlock){const M=V8(),k=0===C.length;if(w3(d,M,k)){const $=i+2,Y=d7(d,$);if(k){const o1=Ji(f,$),S1=jc(Y,o1.tView.ssrId);V5(Y,Ct(d,o1,void 0,{dehydratedView:S1}),0,u5(o1,S1))}else mo(Y,0)}}}finally{A(o)}}function d7(s,o){return s[o]}function Ji(s,o){return R5(s,o)}function Nl(s,o,i,d){const f=Q1(),h=B0(),C=S0+s,M=f[Z2],k=h.firstCreatePass?function hx(s,o,i,d,f,h){const C=o.consts,k=f5(o,s,2,d,o8(C,f));return eo(o,i,k,o8(C,h)),null!==k.attrs&&Et(k,k.attrs,!1),null!==k.mergedAttrs&&Et(k,k.mergedAttrs,!0),null!==o.queries&&o.queries.elementStart(o,k),k}(C,h,f,o,i,d):h.data[C],$=Th(h,f,k,M,o,s);f[C]=$;const Y=H2(k);return De(k,!0),Ga(M,$,k),!function It(s){return!(32&~s.flags)}(k)&&_c()&&Tc(h,f,$,k),0===function _(){return g0.lFrame.elementDepthCount}()&&N6($,f),function y(){g0.lFrame.elementDepthCount++}(),Y&&(Xa(h,f,k),_t(h,k,f)),null!==d&&Wa(f,k),Nl}function Ht(){let s=R4();$7()?Fs():(s=s.parent,De(s,!1));const o=s;(function R1(s){return g0.skipHydrationRootTNode===s})(o)&&function i4(){g0.skipHydrationRootTNode=null}(),function R(){g0.lFrame.elementDepthCount--}();const i=B0();return i.firstCreatePass&&(O9(i,s),E2(s)&&i.queries.elementEnd(s)),null!=o.classesWithoutHost&&function vf(s){return!!(8&s.flags)}(o)&&Vt(i,o,Q1(),o.classesWithoutHost,!0),null!=o.stylesWithoutHost&&function JL(s){return!!(16&s.flags)}(o)&&Vt(i,o,Q1(),o.stylesWithoutHost,!1),Ht}function El(s,o,i,d){return Nl(s,o,i,d),Ht(),El}let Th=(s,o,i,d,f,h)=>(ie(!0),vn(d,f,function O7(){return g0.lFrame.currentNamespace}()));function Dl(s,o,i){const d=Q1(),f=B0(),h=s+S0,C=f.firstCreatePass?function Ah(s,o,i,d,f){const h=o.consts,C=o8(h,d),M=f5(o,s,8,"ng-container",C);return null!==C&&Et(M,C,!0),eo(o,i,M,o8(h,f)),null!==o.queries&&o.queries.elementStart(o,M),M}(h,f,d,o,i):f.data[h];De(C,!0);const M=Ih(f,d,C,s);return d[h]=M,_c()&&Tc(f,d,M,C),N6(M,d),H2(C)&&(Xa(f,d,C),_t(f,C,d)),null!=i&&Wa(d,C),Dl}function Tl(){let s=R4();const o=B0();return $7()?Fs():(s=s.parent,De(s,!1)),o.firstCreatePass&&(O9(o,s),E2(s)&&o.queries.elementEnd(s)),Tl}function Rl(s,o,i){return Dl(s,o,i),Tl(),Rl}let Ih=(s,o,i,d)=>(ie(!0),Pa(o[Z2],""));function $h(){return Q1()}function Al(s,o,i){const d=Q1();return w3(d,V8(),o)&&r8(B0(),e3(),d,s,o,d[Z2],i,!0),Al}const cc=void 0;var Oh=["en",[["a","p"],["AM","PM"],cc],[["AM","PM"],cc,cc],[["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"]],cc,[["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"]],cc,[["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}",cc,"{1} 'at' {0}",cc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Qi(s){const i=Math.floor(Math.abs(s)),d=s.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===d?1:5}];let f7={};function Zi(s){const o=function Vh(s){return s.toLowerCase().replace(/_/g,"-")}(s);let i=Bh(o);if(i)return i;const d=o.split("-")[0];if(i=Bh(d),i)return i;if("en"===d)return Oh;throw new m2(701,!1)}function u7(s){return Zi(s)[me.PluralCase]}function Bh(s){return s in f7||(f7[s]=c0.ng&&c0.ng.common&&c0.ng.common.locales&&c0.ng.common.locales[s]),f7[s]}var me=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}(me||{});const m7="en-US";let Ki=m7;function gr(s,o,i,d){const f=Q1(),h=B0(),C=R4();return Qt(h,f,f[Z2],C,s,o,d),gr}function Qt(s,o,i,d,f,h,C){const M=H2(d),$=s.firstCreatePass&&Cm(s),Y=o[W0],o1=ro(o);let S1=!0;if(3&d.type||C){const n2=z6(d,o),p2=C?C(n2):n2,w2=o1.length,a2=C?m4=>C(N4(m4[d.index])):d.index;let E0=null;if(!C&&M&&(E0=function Hl(s,o,i,d){const f=s.cleanup;if(null!=f)for(let h=0;hk?M[k]:null}"string"==typeof C&&(h+=2)}return null}(s,o,f,d.index)),null!==E0)(E0.__ngLastListenerFn__||E0).__ngNextListenerFn__=h,E0.__ngLastListenerFn__=h,S1=!1;else{h=_r(d,o,Y,h,!1);const m4=i.listen(p2,f,h);o1.push(h,m4),$&&$.push(f,a2,w2,w2+1)}}else h=_r(d,o,Y,h,!1);const I1=d.outputs;let B1;if(S1&&null!==I1&&(B1=I1[f])){const n2=B1.length;if(n2)for(let p2=0;p2-1?w6(s.index,o):o);let k=Mg(o,i,d,C),$=h.__ngNextListenerFn__;for(;$;)k=Mg(o,i,$,C)&&k,$=$.__ngNextListenerFn__;return f&&!1===k&&C.preventDefault(),k}}function Gl(s=1){return function zf(s){return(g0.lFrame.contextLView=function se(s,o){for(;s>0;)o=o[K4],s--;return o}(s,g0.lFrame.contextLView))[W0]}(s)}function Yx(s,o){let i=null;const d=function Ce(s){const o=s.attrs;if(null!=o){const i=o.indexOf(5);if(!(1&i))return o[i+1]}return null}(s);for(let f=0;f(ie(!0),function Aa(s,o){return s.createText(o)}(o[Z2],d));function vr(s){return c9("",s,""),vr}function c9(s,o,i){const d=Q1(),f=g5(d,s,o,i);return f!==K0&&Pe(d,M6(),f),c9}function kr(s,o,i,d,f){const h=Q1(),C=function l7(s,o,i,d,f,h){const M=Y5(s,Te(),i,f);return qe(2),M?o+l0(i)+d+l0(f)+h:K0}(h,s,o,i,d,f);return C!==K0&&Pe(h,M6(),C),kr}function t9(s,o,i,d,f,h,C){const M=Q1(),k=function s7(s,o,i,d,f,h,C,M){const $=Jc(s,Te(),i,f,C);return qe(3),$?o+l0(i)+d+l0(f)+h+l0(C)+M:K0}(M,s,o,i,d,f,h,C);return k!==K0&&Pe(M,M6(),k),t9}function wr(s,o,i,d,f,h,C,M,k){const $=Q1(),Y=function Z5(s,o,i,d,f,h,C,M,k,$){const o1=G8(s,Te(),i,f,C,k);return qe(4),o1?o+l0(i)+d+l0(f)+h+l0(C)+M+l0(k)+$:K0}($,s,o,i,d,f,h,C,M,k);return Y!==K0&&Pe($,M6(),Y),wr}function n9(s,o,i,d,f,h,C,M,k,$,Y){const o1=Q1(),S1=function a7(s,o,i,d,f,h,C,M,k,$,Y,o1){const S1=Te();let I1=G8(s,S1,i,f,C,k);return I1=w3(s,S1+4,Y)||I1,qe(5),I1?o+l0(i)+d+l0(f)+h+l0(C)+M+l0(k)+$+l0(Y)+o1:K0}(o1,s,o,i,d,f,h,C,M,k,$,Y);return S1!==K0&&Pe(o1,M6(),S1),n9}function Nr(s,o,i){hp(o)&&(o=o());const d=Q1();return w3(d,V8(),o)&&r8(B0(),e3(),d,s,o,d[Z2],i,!1),Nr}function Hg(s,o){const i=hp(s);return i&&s.set(o),i}function Ql(s,o){const i=Q1(),d=B0(),f=R4();return Qt(d,i,i[Z2],f,s,o),Ql}function Zl(s,o,i,d,f){if(s=s1(s),Array.isArray(s))for(let h=0;h>20;if(X3(s)||!s.multi){const I1=new I5($,f,Rc),B1=Dr(k,o,f?Y:Y+S1,o1);-1===B1?(q7(Y7(M,C),h,k),Er(h,s,o.length),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),i.push(I1),C.push(I1)):(i[B1]=I1,C[B1]=I1)}else{const I1=Dr(k,o,Y+S1,o1),B1=Dr(k,o,Y,Y+S1),p2=B1>=0&&i[B1];if(f&&!p2||!f&&!(I1>=0&&i[I1])){q7(Y7(M,C),h,k);const w2=function Tr(s,o,i,d,f){const h=new I5(s,i,Rc);return h.multi=[],h.index=o,h.componentProviders=0,Gg(h,f,d&&!i),h}(f?eb:Yg,i.length,f,d,$);!f&&p2&&(i[B1].providerFactory=w2),Er(h,s,o.length,0),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),i.push(w2),C.push(w2)}else Er(h,s,I1>-1?I1:B1,Gg(i[f?B1:I1],$,!f&&d));!f&&d&&p2&&i[B1].componentProviders++}}}function Er(s,o,i,d){const f=X3(o),h=function Ge(s){return!!s.useClass}(o);if(f||h){const k=(h?s1(o.useClass):o).prototype.ngOnDestroy;if(k){const $=s.destroyHooks||(s.destroyHooks=[]);if(!f&&o.multi){const Y=$.indexOf(i);-1===Y?$.push(i,[d,k]):$[Y+1].push(d,k)}else $.push(i,k)}}}function Gg(s,o,i){return i&&s.componentProviders++,s.multi.push(o)-1}function Dr(s,o,i,d){for(let f=i;f{i.providersResolver=(d,f)=>function Kx(s,o,i){const d=B0();if(d.firstCreatePass){const f=V2(s);Zl(i,d.data,d.blueprint,f,!0),Zl(o,d.data,d.blueprint,f,!1)}}(d,f?f(s):s,o)}}let Ar=(()=>{class s{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const d=F6(0,i.type),f=d.length>0?li([d],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,f)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=b0({token:s,providedIn:"environment",factory:()=>new s(w4(W3))})}}return s})();function Ir(s){H8("NgStandalone"),s.getStandaloneInjector=o=>o.get(Ar).getOrCreateStandaloneInjector(s)}function Pr(s,o,i){const d=s.\u0275cmp;d.directiveDefs=O6(o,!1),d.pipeDefs=O6(i,!0)}function qg(s,o,i){const d=S6()+s,f=Q1();return f[d]===K0?$e(f,d,i?o.call(i):o()):function Wc(s,o){return s[o]}(f,d)}function Xg(s,o,i,d){return Vr(Q1(),S6(),s,o,i,d)}function jr(s,o,i,d,f){return es(Q1(),S6(),s,o,i,d,f)}function Or(s,o,i,d,f,h){return function Kg(s,o,i,d,f,h,C,M){const k=o+i;return Jc(s,k,f,h,C)?$e(s,k+3,M?d.call(M,f,h,C):d(f,h,C)):a9(s,k+3)}(Q1(),S6(),s,o,i,d,f,h)}function Kl(s,o,i,d,f,h,C){return function e_(s,o,i,d,f,h,C,M,k){const $=o+i;return G8(s,$,f,h,C,M)?$e(s,$+4,k?d.call(k,f,h,C,M):d(f,h,C,M)):a9(s,$+4)}(Q1(),S6(),s,o,i,d,f,h,C)}function a9(s,o){const i=s[o];return i===K0?void 0:i}function Vr(s,o,i,d,f,h){const C=o+i;return w3(s,C,f)?$e(s,C+1,h?d.call(h,f):d(f)):a9(s,C+1)}function es(s,o,i,d,f,h,C){const M=o+i;return Y5(s,M,f,h)?$e(s,M+2,C?d.call(C,f,h):d(f,h)):a9(s,M+2)}function Ur(s,o){const i=B0();let d;const f=s+S0;i.firstCreatePass?(d=function c_(s,o){if(o)for(let i=o.length-1;i>=0;i--){const d=o[i];if(s===d.name)return d}}(o,i.pipeRegistry),i.data[f]=d,d.onDestroy&&(i.destroyHooks??=[]).push(f,d.onDestroy)):d=i.data[f];const h=d.factory||(d.factory=D3(d.type)),M=g2(Rc);try{const k=G7(!1),$=h();return G7(k),function Eg(s,o,i,d){i>=s.data.length&&(s.data[i]=null,s.blueprint[i]=null),o[i]=d}(i,Q1(),f,$),$}finally{g2(M)}}function ts(s,o,i){const d=s+S0,f=Q1(),h=l5(f,d);return o9(f,d)?Vr(f,S6(),o,h.transform,i,h):h.transform(i)}function t_(s,o,i,d){const f=s+S0,h=Q1(),C=l5(h,f);return o9(h,f)?es(h,S6(),o,C.transform,i,d,C):C.transform(i,d)}function o9(s,o){return s[M1].data[o].pure}function ns(s,o){return Ft(s,o)}class sd{constructor(o){this.full=o;const i=o.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}}let h_=(()=>{class s{log(i){console.log(i)}warn(i){console.warn(i)}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const k_=new Y1(""),rd=new Y1("");let is,Ab=(()=>{class s{constructor(i,d,f){this._ngZone=i,this.registry=d,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,is||(function Ib(s){is=s}(f),f.addToWindow(d)),this._watchAngularEvents(),i.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:()=>{I3.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 i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(d=>!d.updateCb||!d.updateCb(i)||(clearTimeout(d.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,d,f){let h=-1;d&&d>0&&(h=setTimeout(()=>{this._callbacks=this._callbacks.filter(C=>C.timeoutId!==h),i()},d)),this._callbacks.push({doneCb:i,timeoutId:h,updateCb:f})}whenStable(i,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(i,d,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,d,f){return[]}static{this.\u0275fac=function(d){return new(d||s)(w4(I3),w4(w_),w4(rd))}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac})}}return s})(),w_=(()=>{class s{constructor(){this._applications=new Map}registerApplication(i,d){this._applications.set(i,d)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,d=!0){return is?.findTestabilityInTree(this,i,d)??null}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();function dd(s){return!!s&&"function"==typeof s.then}function fd(s){return!!s&&"function"==typeof s.subscribe}const S_=new Y1("");let ud=(()=>{class s{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,d)=>{this.resolve=i,this.reject=d}),this.appInits=f0(S_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const f of this.appInits){const h=f();if(dd(h))i.push(h);else if(fd(h)){const C=new Promise((M,k)=>{h.subscribe({complete:M,error:k})});i.push(C)}}const d=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{d()}).catch(f=>{this.reject(f)}),0===i.length&&d(),this.initialized=!0}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const rs=new Y1("");function D_(s,o){return Array.isArray(o)?o.reduce(D_,s):{...s,...o}}let z5=(()=>{class s{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=f0(Of),this.afterRenderEffectManager=f0(Bc),this.externalTestViews=new Set,this.beforeRender=new B2.B,this.afterTick=new B2.B,this.componentTypes=[],this.components=[],this.isStable=f0(h5).hasPendingTasks.pipe((0,_0.T)(i=>!i)),this._injector=f0(W3)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,d){const f=i instanceof vo;if(!this._injector.get(ud).done)throw!f&&Z4(i),new m2(405,!1);let C;C=f?i:this._injector.get(Oc).resolveComponentFactory(i),this.componentTypes.push(C.componentType);const M=function E_(s){return s.isBoundToModule}(C)?void 0:this._injector.get(Je),$=C.create(i8.NULL,[],d||C.selector,M),Y=$.location.nativeElement,o1=$.injector.get(k_,null);return o1?.registerApplication(Y),$.onDestroy(()=>{this.detachView($.hostView),m9(this.components,$),o1?.unregisterApplication(Y)}),this._loadComponent($),$}tick(){this._tick(!0)}_tick(i){if(this._runningTick)throw new m2(101,!1);const d=A(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(i)}catch(f){this.internalErrorHandler(f)}finally{this.afterTick.next(),this._runningTick=!1,A(d)}}detectChangesInAttachedViews(i){let d=0;const f=this.afterRenderEffectManager;for(;;){if(d===Fm)throw new m2(103,!1);if(i){const h=0===d;this.beforeRender.next(h);for(let{_lView:C,notifyErrorHandler:M}of this._views)T_(C,h,M)}if(d++,f.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>h9(h))&&(f.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>h9(h))))break}}attachView(i){const d=i;this._views.push(d),d.attachToAppRef(this)}detachView(i){const d=i;m9(this._views,d),d.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const d=this._injector.get(rs,[]);[...this._bootstrapListeners,...d].forEach(f=>f(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>m9(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new m2(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function m9(s,o){const i=s.indexOf(o);i>-1&&s.splice(i,1)}function T_(s,o,i){!o&&!h9(s)||function $b(s,o,i){let d;i?(d=0,s[U1]|=1024):d=64&s[U1]?0:1,Mt(s,o,d)}(s,i,o)}function h9(s){return A7(s)}class R_{constructor(o,i){this.ngModuleFactory=o,this.componentFactories=i}}let jb=(()=>{class s{compileModuleSync(i){return new ni(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const d=this.compileModuleSync(i),h=y8(u3(i).declarations).reduce((C,M)=>{const k=j0(M);return k&&C.push(new G5(k)),C},[]);return new R_(d,h)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),Ob=(()=>{class s{constructor(){this.zone=f0(I3),this.applicationRef=f0(z5)}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=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function Vb(){const s=f0(I3),o=f0(U8);return i=>s.runOutsideAngular(()=>o.handleError(i))}let $_=(()=>{class s{constructor(){this.subscription=new v0.yU,this.initialized=!1,this.zone=f0(I3),this.pendingTasks=f0(h5)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{I3.assertNotInAngularZone(),queueMicrotask(()=>{null!==i&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{I3.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const _9=new Y1("",{providedIn:"root",factory:()=>f0(_9,y0.Optional|y0.SkipSelf)||function Ub(){return typeof $localize<"u"&&$localize.locale||m7}()}),j_=new Y1("",{providedIn:"root",factory:()=>"USD"}),pd=new Y1("");let hd=(()=>{class s{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,d){const f=function Kz(s="zone.js",o){return"noop"===s?new Jn:"zone.js"===s?new I3(o):s}(d?.ngZone,function g9(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:s?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:s?.runCoalescing??!1}}({eventCoalescing:d?.ngZoneEventCoalescing,runCoalescing:d?.ngZoneRunCoalescing}));return f.run(()=>{const h=function NM(s,o,i){return new il(s,o,i)}(i.moduleType,this.injector,function fs(s){return[{provide:I3,useFactory:s},{provide:f3,multi:!0,useFactory:()=>{const o=f0(Ob,{optional:!0});return()=>o.initialize()}},{provide:f3,multi:!0,useFactory:()=>{const o=f0($_);return()=>{o.initialize()}}},{provide:Of,useFactory:Vb}]}(()=>f)),C=h.injector.get(U8,null);return f.runOutsideAngular(()=>{const M=f.onError.subscribe({next:k=>{C.handleError(k)}});h.onDestroy(()=>{m9(this._modules,h),M.unsubscribe()})}),function ds(s,o,i){try{const d=i();return dd(d)?d.catch(f=>{throw o.runOutsideAngular(()=>s.handleError(f)),f}):d}catch(d){throw o.runOutsideAngular(()=>s.handleError(d)),d}}(C,f,()=>{const M=h.injector.get(ud);return M.runInitializers(),M.donePromise.then(()=>(function Hh(s){"string"==typeof s&&(Ki=s.toLowerCase().replace(/_/g,"-"))}(h.injector.get(_9,m7)||m7),this._moduleDoBootstrap(h),h))})})}bootstrapModule(i,d=[]){const f=D_({},d);return function I_(s,o,i){const d=new ni(i);return Promise.resolve(d)}(0,0,i).then(h=>this.bootstrapModuleFactory(h,f))}_moduleDoBootstrap(i){const d=i.injector.get(z5);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(f=>d.bootstrap(f));else{if(!i.instance.ngDoBootstrap)throw new m2(-403,!1);i.instance.ngDoBootstrap(d)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}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 i=this._injector.get(pd,null);i&&(i.forEach(d=>d()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(d){return new(d||s)(w4(i8))}}static{this.\u0275prov=b0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),M5=null;const gd=new Y1("");function V_(s,o,i=[]){const d=`Platform: ${o}`,f=new Y1(d);return(h=[])=>{let C=Ld();if(!C||C.injector.get(gd,!1)){const M=[...i,...h,{provide:f,useValue:!0}];s?s(M):function B_(s){if(M5&&!M5.get(gd,!1))throw new m2(400,!1);(function N_(){!function y1(s){L2=s}(()=>{throw new m2(600,!1)})})(),M5=s;const o=s.get(hd);(function us(s){s.get(ru,null)?.forEach(i=>i())})(s)}(function _d(s=[],o){return i8.create({name:o,providers:[{provide:K8,useValue:"platform"},{provide:pd,useValue:new Set([()=>M5=null])},...s]})}(M,d))}return function U_(s){const o=Ld();if(!o)throw new m2(401,!1);return o}()}}function Ld(){return M5?.get(hd)??null}let G_=(()=>{class s{static{this.__NG_ELEMENT_ID__=zd}}return s})();function zd(s){return function qb(s,o,i){if(I8(s)&&!i){const d=w6(s.index,o);return new bt(d,d)}return 47&s.type?new bt(o[s0],o):null}(R4(),Q1(),!(16&~s))}class J_{constructor(){}supports(o){return dl(o)}create(o){return new Z_(o)}}const Q_=(s,o)=>o;class Z_{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 i;for(i=this._itHead;null!==i;i=i._next)o(i)}forEachOperation(o){let i=this._itHead,d=this._removalsHead,f=0,h=null;for(;i||d;){const C=!d||i&&i.currentIndex{C=this._trackByFn(f,M),null!==i&&Object.is(i.trackById,C)?(d&&(i=this._verifyReinsertion(i,M,C,f)),Object.is(i.item,M)||this._addIdentityChange(i,M)):(i=this._mismatch(i,M,C,f),d=!0),i=i._next,f++}),this.length=f;return this._truncate(i),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,i,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,i)||this._addIdentityChange(o,i),this._reinsertAfter(o,h,f)):null!==(o=null===this._linkedRecords?null:this._linkedRecords.get(d,f))?(Object.is(o.item,i)||this._addIdentityChange(o,i),this._moveAfter(o,h,f)):o=this._addAfter(new K_(i,d),h,f),o}_verifyReinsertion(o,i,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 i=o._next;this._addToRemovals(this._unlink(o)),o=i}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,i,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,i,d),this._addToMoves(o,d),o}_moveAfter(o,i,d){return this._unlink(o),this._insertAfter(o,i,d),this._addToMoves(o,d),o}_addAfter(o,i,d){return this._insertAfter(o,i,d),this._additionsTail=null===this._additionsTail?this._additionsHead=o:this._additionsTail._nextAdded=o,o}_insertAfter(o,i,d){const f=null===i?this._itHead:i._next;return o._next=f,o._prev=i,null===f?this._itTail=o:f._prev=o,null===i?this._itHead=o:i._next=o,null===this._linkedRecords&&(this._linkedRecords=new cL),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 i=o._prev,d=o._next;return null===i?this._itHead=d:i._next=d,null===d?this._itTail=i:d._prev=i,o}_addToMoves(o,i){return o.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=o:this._movesTail._nextMoved=o),o}_addToRemovals(o){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cL),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,i){return o.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=o:this._identityChangesTail._nextIdentityChange=o,o}}class K_{constructor(o,i){this.item=o,this.trackById=i,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 eL{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,i){let d;for(d=this._head;null!==d;d=d._nextDup)if((null===i||i<=d.currentIndex)&&Object.is(d.trackById,o))return d;return null}remove(o){const i=o._prevDup,d=o._nextDup;return null===i?this._head=d:i._nextDup=d,null===d?this._tail=i:d._prevDup=i,null===this._head}}class cL{constructor(){this.map=new Map}put(o){const i=o.trackById;let d=this.map.get(i);d||(d=new eL,this.map.set(i,d)),d.add(o)}get(o,i){const f=this.map.get(o);return f?f.get(o,i):null}remove(o){const i=o.trackById;return this.map.get(i).remove(o)&&this.map.delete(i),o}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function tL(s,o,i){const d=s.previousIndex;if(null===d)return d;let f=0;return i&&d{if(i&&i.key===f)this._maybeAddToChanges(i,d),this._appendAfter=i,i=i._next;else{const h=this._getOrCreateRecordForKey(f,d);i=this._insertBeforeOrAppend(i,h)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let d=i;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,i){if(o){const d=o._prev;return i._next=o,i._prev=d,o._prev=i,d&&(d._next=i),o===this._mapHead&&(this._mapHead=i),this._appendAfter=o,o}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(o,i){if(this._records.has(o)){const f=this._records.get(o);this._maybeAddToChanges(f,i);const h=f._prev,C=f._next;return h&&(h._next=C),C&&(C._prev=h),f._next=null,f._prev=null,f}const d=new Qb(o);return this._records.set(o,d),d.currentValue=i,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,i){Object.is(i,o.currentValue)||(o.previousValue=o.currentValue,o.currentValue=i,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,i){o instanceof Map?o.forEach(i):Object.keys(o).forEach(d=>i(o[d],d))}}class Qb{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 vd(){return new kd([new J_])}let kd=(()=>{class s{static{this.\u0275prov=b0({token:s,providedIn:"root",factory:vd})}constructor(i){this.factories=i}static create(i,d){if(null!=d){const f=d.factories.slice();i=i.concat(f)}return new s(i)}static extend(i){return{provide:s,useFactory:d=>s.create(i,d||vd()),deps:[[s,new H3,new q0]]}}find(i){const d=this.factories.find(f=>f.supports(i));if(null!=d)return d;throw new m2(901,!1)}}return s})();function wd(){return new Sd([new Fd])}let Sd=(()=>{class s{static{this.\u0275prov=b0({token:s,providedIn:"root",factory:wd})}constructor(i){this.factories=i}static create(i,d){if(d){const f=d.factories.slice();i=i.concat(f)}return new s(i)}static extend(i){return{provide:s,useFactory:d=>s.create(i,d||wd()),deps:[[s,new H3,new q0]]}}find(i){const d=this.factories.find(f=>f.supports(i));if(d)return d;throw new m2(901,!1)}}return s})();const ps=V_(null,"core",[]);let Kb=(()=>{class s{constructor(i){}static{this.\u0275fac=function(d){return new(d||s)(w4(z5))}}static{this.\u0275mod=j6({type:s})}static{this.\u0275inj=O4({})}}return s})();function qd(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}function yy(s){const o=A(null);try{return s()}finally{A(o)}}function vy(s){const o=j0(s);if(!o)return null;const i=new G5(o);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return o.standalone},get isSignal(){return o.signals}}}},9417:(k1,r1,v)=>{"use strict";v.d(r1,{$R:()=>r3,BC:()=>L4,Fm:()=>y0,JD:()=>C3,MJ:()=>Z0,MR:()=>J2,Q0:()=>m6,R_:()=>b6,VZ:()=>D3,X1:()=>r6,YN:()=>Y3,YS:()=>Y4,Yp:()=>J0,Zm:()=>K,cV:()=>w0,cb:()=>m2,gE:()=>M2,j4:()=>D4,k0:()=>K2,kq:()=>V,l_:()=>t3,me:()=>m1,ok:()=>o6,qT:()=>h8,v8:()=>$0,vS:()=>P2,wz:()=>w4,xH:()=>U3,y7:()=>I6});var u=v(4438),g=v(177),e=v(6648),p=v(7468),L=v(6354);let S=(()=>{class U{constructor(D,e1){this._renderer=D,this._elementRef=e1,this.onChange=w1=>{},this.onTouched=()=>{}}setProperty(D,e1){this._renderer.setProperty(this._elementRef.nativeElement,D,e1)}registerOnTouched(D){this.onTouched=D}registerOnChange(D){this.onChange=D}setDisabledState(D){this.setProperty("disabled",D)}static{this.\u0275fac=function(e1){return new(e1||U)(u.rXU(u.sFG),u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:U})}}return U})(),A=(()=>{class U extends S{static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,features:[u.Vt3]})}}return U})();const V=new u.nKC(""),c1={provide:V,useExisting:(0,u.Rfq)(()=>K),multi:!0};let K=(()=>{class U extends A{writeValue(D){this.setProperty("checked",D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(k0){return w1.onChange(k0.target.checked)})("blur",function(){return w1.onTouched()})},features:[u.Jv_([c1]),u.Vt3]})}}return U})();const L1={provide:V,useExisting:(0,u.Rfq)(()=>m1),multi:!0},l1=new u.nKC("");let m1=(()=>{class U extends S{constructor(D,e1,w1){super(D,e1),this._compositionMode=w1,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function j(){const U=(0,g.QT)()?(0,g.QT)().getUserAgent():"";return/android (\d+)/.test(U.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(e1){return new(e1||U)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(l1,8))}}static{this.\u0275dir=u.FsC({type:U,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(e1,w1){1&e1&&u.bIt("input",function(k0){return w1._handleInput(k0.target.value)})("blur",function(){return w1.onTouched()})("compositionstart",function(){return w1._compositionStart()})("compositionend",function(k0){return w1._compositionEnd(k0.target.value)})},features:[u.Jv_([L1]),u.Vt3]})}}return U})();function f1(U){return null==U||("string"==typeof U||Array.isArray(U))&&0===U.length}function $1(U){return null!=U&&"number"==typeof U.length}const g1=new u.nKC(""),H1=new u.nKC(""),d2=/^(?=.{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 K2{static min(G){return s2(G)}static max(G){return function c2(U){return G=>{if(f1(G.value)||f1(U))return null;const D=parseFloat(G.value);return!isNaN(D)&&D>U?{max:{max:U,actual:G.value}}:null}}(G)}static required(G){return P1(G)}static requiredTrue(G){return function O2(U){return!0===U.value?null:{required:!0}}(G)}static email(G){return function r2(U){return f1(U.value)||d2.test(U.value)?null:{email:!0}}(G)}static minLength(G){return function z2(U){return G=>f1(G.value)||!$1(G.value)?null:G.value.length$1(G.value)&&G.value.length>U?{maxlength:{requiredLength:U,actualLength:G.value.length}}:null}(G)}static pattern(G){return _2(G)}static nullValidator(G){return null}static compose(G){return e2(G)}static composeAsync(G){return D1(G)}}function s2(U){return G=>{if(f1(G.value)||f1(U))return null;const D=parseFloat(G.value);return!isNaN(D)&&D{if(f1(e1.value))return null;const w1=e1.value;return G.test(w1)?null:{pattern:{requiredPattern:D,actualValue:w1}}}}function Q2(U){return null}function _4(U){return null!=U}function F0(U){return(0,u.jNT)(U)?(0,e.H)(U):U}function b4(U){let G={};return U.forEach(D=>{G=null!=D?{...G,...D}:G}),0===Object.keys(G).length?null:G}function L2(U,G){return G.map(D=>D(U))}function y1(U){return U.map(G=>function A0(U){return!U.validate}(G)?G:D=>G.validate(D))}function e2(U){if(!U)return null;const G=U.filter(_4);return 0==G.length?null:function(D){return b4(L2(D,G))}}function h2(U){return null!=U?e2(y1(U)):null}function D1(U){if(!U)return null;const G=U.filter(_4);return 0==G.length?null:function(D){const e1=L2(D,G).map(F0);return(0,p.p)(e1).pipe((0,L.T)(b4))}}function j1(U){return null!=U?D1(y1(U)):null}function A1(U,G){return null===U?[G]:Array.isArray(U)?[...U,G]:[U,G]}function F1(U){return U._rawValidators}function Z1(U){return U._rawAsyncValidators}function Z(U){return U?Array.isArray(U)?U:[U]:[]}function X1(U,G){return Array.isArray(U)?U.includes(G):U===G}function O1(U,G){const D=Z(G);return Z(U).forEach(w1=>{X1(D,w1)||D.push(w1)}),D}function q2(U,G){return Z(G).filter(D=>!X1(U,D))}class o0{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=h2(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 B2 extends o0{get formDirective(){return null}get path(){return null}}class v0 extends o0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class h0{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 L4=(()=>{class U extends h0{constructor(D){super(D)}static{this.\u0275fac=function(e1){return new(e1||U)(u.rXU(v0,2))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e1,w1){2&e1&&u.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:[u.Vt3]})}}return U})(),m2=(()=>{class U extends h0{constructor(D){super(D)}static{this.\u0275fac=function(e1){return new(e1||U)(u.rXU(B2,10))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e1,w1){2&e1&&u.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:[u.Vt3]})}}return U})();const x0="VALID",L3="INVALID",I0="PENDING",k4="DISABLED";function g3(U){return(z1(U)?U.validators:U)||null}function X2(U,G){return(z1(G)?G.asyncValidators:U)||null}function z1(U){return null!=U&&!Array.isArray(U)&&"object"==typeof U}function u1(U,G,D){const e1=U.controls;if(!(G?Object.keys(e1):e1).length)throw new u.wOt(1e3,"");if(!e1[D])throw new u.wOt(1001,"")}function E1(U,G,D){U._forEachChild((e1,w1)=>{if(void 0===D[w1])throw new u.wOt(1002,"")})}class K1{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===x0}get invalid(){return this.status===L3}get pending(){return this.status==I0}get disabled(){return this.status===k4}get enabled(){return this.status!==k4}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(O1(G,this._rawValidators))}addAsyncValidators(G){this.setAsyncValidators(O1(G,this._rawAsyncValidators))}removeValidators(G){this.setValidators(q2(G,this._rawValidators))}removeAsyncValidators(G){this.setAsyncValidators(q2(G,this._rawAsyncValidators))}hasValidator(G){return X1(this._rawValidators,G)}hasAsyncValidator(G){return X1(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=I0,!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=k4,this.errors=null,this._forEachChild(e1=>{e1.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(e1=>e1(!0))}enable(G={}){const D=this._parentMarkedDirty(G.onlySelf);this.status=x0,this._forEachChild(e1=>{e1.enable({...G,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent}),this._updateAncestors({...G,skipPristineCheck:D}),this._onDisabledChange.forEach(e1=>e1(!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===x0||this.status===I0)&&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()?k4:x0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(G){if(this.asyncValidator){this.status=I0,this._hasOwnPendingAsyncValidator=!0;const D=F0(this.asyncValidator(this));this._asyncValidationSubscription=D.subscribe(e1=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e1,{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((e1,w1)=>e1&&e1._find(w1),this)}getError(G,D){const e1=D?this.get(D):this;return e1&&e1.errors?e1.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 u.bkB,this.statusChanges=new u.bkB}_calculateStatus(){return this._allControlsDisabled()?k4:this.errors?L3:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(I0)?I0:this._anyControlsHaveStatus(L3)?L3:x0}_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){z1(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 i3(U){return Array.isArray(U)?h2(U):U||null}(this._rawValidators)}_assignAsyncValidators(G){this._rawAsyncValidators=Array.isArray(G)?G.slice():G,this._composedAsyncValidatorFn=function s1(U){return Array.isArray(U)?j1(U):U||null}(this._rawAsyncValidators)}}class M2 extends K1{constructor(G,D,e1){super(g3(D),X2(e1,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,e1={}){this.registerControl(G,D),this.updateValueAndValidity({emitEvent:e1.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,e1={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],D&&this.registerControl(G,D),this.updateValueAndValidity({emitEvent:e1.emitEvent}),this._onCollectionChange()}contains(G){return this.controls.hasOwnProperty(G)&&this.controls[G].enabled}setValue(G,D={}){E1(this,0,G),Object.keys(G).forEach(e1=>{u1(this,!0,e1),this.controls[e1].setValue(G[e1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(Object.keys(G).forEach(e1=>{const w1=this.controls[e1];w1&&w1.patchValue(G[e1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G={},D={}){this._forEachChild((e1,w1)=>{e1.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,e1)=>(G[e1]=D.getRawValue(),G))}_syncPendingControls(){let G=this._reduceChildren(!1,(D,e1)=>!!e1._syncPendingControls()||D);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){Object.keys(this.controls).forEach(D=>{const e1=this.controls[D];e1&&G(e1,D)})}_setUpControls(){this._forEachChild(G=>{G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(G){for(const[D,e1]of Object.entries(this.controls))if(this.contains(D)&&G(e1))return!0;return!1}_reduceValue(){return this._reduceChildren({},(D,e1,w1)=>((e1.enabled||this.disabled)&&(D[w1]=e1.value),D))}_reduceChildren(G,D){let e1=G;return this._forEachChild((w1,I2)=>{e1=D(e1,w1,I2)}),e1}_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 s4 extends M2{}const z4=new u.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>p4}),p4="always";function y4(U,G){return[...G.path,U]}function D2(U,G,D=p4){a4(U,G),G.valueAccessor.writeValue(U.value),(U.disabled||"always"===D)&&G.valueAccessor.setDisabledState?.(U.disabled),function n6(U,G){G.valueAccessor.registerOnChange(D=>{U._pendingValue=D,U._pendingChange=!0,U._pendingDirty=!0,"change"===U.updateOn&&b0(U,G)})}(U,G),function $3(U,G){const D=(e1,w1)=>{G.valueAccessor.writeValue(e1),w1&&G.viewToModelUpdate(e1)};U.registerOnChange(D),G._registerOnDestroy(()=>{U._unregisterOnChange(D)})}(U,G),function j4(U,G){G.valueAccessor.registerOnTouched(()=>{U._pendingTouched=!0,"blur"===U.updateOn&&U._pendingChange&&b0(U,G),"submit"!==U.updateOn&&U.markAsTouched()})}(U,G),function I4(U,G){if(G.valueAccessor.setDisabledState){const D=e1=>{G.valueAccessor.setDisabledState(e1)};U.registerOnDisabledChange(D),G._registerOnDestroy(()=>{U._unregisterOnDisabledChange(D)})}}(U,G)}function C0(U,G,D=!0){const e1=()=>{};G.valueAccessor&&(G.valueAccessor.registerOnChange(e1),G.valueAccessor.registerOnTouched(e1)),x6(U,G),U&&(G._invokeOnDestroyCallbacks(),U._registerOnCollectionChange(()=>{}))}function A2(U,G){U.forEach(D=>{D.registerOnValidatorChange&&D.registerOnValidatorChange(G)})}function a4(U,G){const D=F1(U);null!==G.validator?U.setValidators(A1(D,G.validator)):"function"==typeof D&&U.setValidators([D]);const e1=Z1(U);null!==G.asyncValidator?U.setAsyncValidators(A1(e1,G.asyncValidator)):"function"==typeof e1&&U.setAsyncValidators([e1]);const w1=()=>U.updateValueAndValidity();A2(G._rawValidators,w1),A2(G._rawAsyncValidators,w1)}function x6(U,G){let D=!1;if(null!==U){if(null!==G.validator){const w1=F1(U);if(Array.isArray(w1)&&w1.length>0){const I2=w1.filter(k0=>k0!==G.validator);I2.length!==w1.length&&(D=!0,U.setValidators(I2))}}if(null!==G.asyncValidator){const w1=Z1(U);if(Array.isArray(w1)&&w1.length>0){const I2=w1.filter(k0=>k0!==G.asyncValidator);I2.length!==w1.length&&(D=!0,U.setAsyncValidators(I2))}}}const e1=()=>{};return A2(G._rawValidators,e1),A2(G._rawAsyncValidators,e1),D}function b0(U,G){U._pendingDirty&&U.markAsDirty(),U.setValue(U._pendingValue,{emitModelToViewChange:!1}),G.viewToModelUpdate(U._pendingValue),U._pendingChange=!1}function O4(U,G){a4(U,G)}function x1(U,G){if(!U.hasOwnProperty("model"))return!1;const D=U.model;return!!D.isFirstChange()||!Object.is(G,D.currentValue)}function W1(U,G){U._syncPendingControls(),G.forEach(D=>{const e1=D.control;"submit"===e1.updateOn&&e1._pendingChange&&(D.viewToModelUpdate(e1._pendingValue),e1._pendingChange=!1)})}function Y1(U,G){if(!G)return null;let D,e1,w1;return Array.isArray(G),G.forEach(I2=>{I2.constructor===m1?D=I2:function v1(U){return Object.getPrototypeOf(U.constructor)===A}(I2)?e1=I2:w1=I2}),w1||e1||D||null}const z0={provide:B2,useExisting:(0,u.Rfq)(()=>w0)},Y2=Promise.resolve();let w0=(()=>{class U extends B2{constructor(D,e1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._directives=new Set,this.ngSubmit=new u.bkB,this.form=new M2({},h2(D),j1(e1))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(D){Y2.then(()=>{const e1=this._findContainer(D.path);D.control=e1.registerControl(D.name,D.control),D2(D.control,D,this.callSetDisabledState),D.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(D)})}getControl(D){return this.form.get(D.path)}removeControl(D){Y2.then(()=>{const e1=this._findContainer(D.path);e1&&e1.removeControl(D.name),this._directives.delete(D)})}addFormGroup(D){Y2.then(()=>{const e1=this._findContainer(D.path),w1=new M2({});O4(w1,D),e1.registerControl(D.name,w1),w1.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(D){Y2.then(()=>{const e1=this._findContainer(D.path);e1&&e1.removeControl(D.name)})}getFormGroup(D){return this.form.get(D.path)}updateModel(D,e1){Y2.then(()=>{this.form.get(D.path).setValue(e1)})}setValue(D){this.control.setValue(D)}onSubmit(D){return this.submitted=!0,W1(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(e1){return new(e1||U)(u.rXU(g1,10),u.rXU(H1,10),u.rXU(z4,8))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("submit",function(k0){return w1.onSubmit(k0)})("reset",function(){return w1.onReset()})},inputs:{options:[u.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([z0]),u.Vt3]})}}return U})();function t0(U,G){const D=U.indexOf(G);D>-1&&U.splice(D,1)}function m0(U){return"object"==typeof U&&null!==U&&2===Object.keys(U).length&&"value"in U&&"disabled"in U}const Z0=class extends K1{constructor(G=null,D,e1){super(g3(D),X2(e1,D)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(G),this._setUpdateStrategy(D),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),z1(D)&&(D.nonNullable||D.initialValueIsDefault)&&(this.defaultValue=m0(G)?G.value:G)}setValue(G,D={}){this.value=this._pendingValue=G,this._onChange.length&&!1!==D.emitModelToViewChange&&this._onChange.forEach(e1=>e1(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){t0(this._onChange,G)}registerOnDisabledChange(G){this._onDisabledChange.push(G)}_unregisterOnDisabledChange(G){t0(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){m0(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 H0=(()=>{class U extends B2{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return y4(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=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,features:[u.Vt3]})}}return U})();const V4={provide:v0,useExisting:(0,u.Rfq)(()=>P2)},l0=Promise.resolve();let P2=(()=>{class U extends v0{constructor(D,e1,w1,I2,k0,M3){super(),this._changeDetectorRef=k0,this.callSetDisabledState=M3,this.control=new Z0,this._registered=!1,this.name="",this.update=new u.bkB,this._parent=D,this._setValidators(e1),this._setAsyncValidators(w1),this.valueAccessor=Y1(0,I2)}ngOnChanges(D){if(this._checkForErrors(),!this._registered||"name"in D){if(this._registered&&(this._checkName(),this.formDirective)){const e1=D.name.previousValue;this.formDirective.removeControl({name:e1,path:this._getPath(e1)})}this._setUpControl()}"isDisabled"in D&&this._updateDisabled(D),x1(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(){D2(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){l0.then(()=>{this.control.setValue(D,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(D){const e1=D.isDisabled.currentValue,w1=0!==e1&&(0,u.L39)(e1);l0.then(()=>{w1&&!this.control.disabled?this.control.disable():!w1&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(D){return this._parent?y4(D,this._parent):[D]}static{this.\u0275fac=function(e1){return new(e1||U)(u.rXU(B2,9),u.rXU(g1,10),u.rXU(H1,10),u.rXU(V,10),u.rXU(u.gRc,8),u.rXU(z4,8))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[u.Mj6.None,"disabled","isDisabled"],model:[u.Mj6.None,"ngModel","model"],options:[u.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u.Jv_([V4]),u.Vt3,u.OA$]})}}return U})(),h8=(()=>{class U{static{this.\u0275fac=function(e1){return new(e1||U)}}static{this.\u0275dir=u.FsC({type:U,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return U})();const c3={provide:V,useExisting:(0,u.Rfq)(()=>m6),multi:!0};let m6=(()=>{class U extends A{writeValue(D){this.setProperty("value",D??"")}registerOnChange(D){this.onChange=e1=>{D(""==e1?null:parseFloat(e1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("input",function(k0){return w1.onChange(k0.target.value)})("blur",function(){return w1.onTouched()})},features:[u.Jv_([c3]),u.Vt3]})}}return U})();const R6={provide:V,useExisting:(0,u.Rfq)(()=>y0),multi:!0};let p6=(()=>{class U{constructor(){this._accessors=[]}add(D,e1){this._accessors.push([D,e1])}remove(D){for(let e1=this._accessors.length-1;e1>=0;--e1)if(this._accessors[e1][1]===D)return void this._accessors.splice(e1,1)}select(D){this._accessors.forEach(e1=>{this._isSameGroup(e1,D)&&e1[1]!==D&&e1[1].fireUncheck(D.value)})}_isSameGroup(D,e1){return!!D[0].control&&D[0]._parent===e1._control._parent&&D[1].name===e1.name}static{this.\u0275fac=function(e1){return new(e1||U)}}static{this.\u0275prov=u.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})(),y0=(()=>{class U extends A{constructor(D,e1,w1,I2){super(D,e1),this._registry=w1,this._injector=I2,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,u.WQX)(z4,{optional:!0})??p4}ngOnInit(){this._control=this._injector.get(v0),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(e1){return new(e1||U)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(p6),u.rXU(u.zZn))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(){return w1.onChange()})("blur",function(){return w1.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[u.Jv_([R6]),u.Vt3]})}}return U})();const O3={provide:V,useExisting:(0,u.Rfq)(()=>J2),multi:!0};let J2=(()=>{class U extends A{writeValue(D){this.setProperty("value",parseFloat(D))}registerOnChange(D){this.onChange=e1=>{D(""==e1?null:parseFloat(e1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(k0){return w1.onChange(k0.target.value)})("input",function(k0){return w1.onChange(k0.target.value)})("blur",function(){return w1.onTouched()})},features:[u.Jv_([O3]),u.Vt3]})}}return U})();const g2=new u.nKC(""),J4={provide:v0,useExisting:(0,u.Rfq)(()=>t3)};let t3=(()=>{class U extends v0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,e1,w1,I2,k0){super(),this._ngModelWarningConfig=I2,this.callSetDisabledState=k0,this.update=new u.bkB,this._ngModelWarningSent=!1,this._setValidators(D),this._setAsyncValidators(e1),this.valueAccessor=Y1(0,w1)}ngOnChanges(D){if(this._isControlChanged(D)){const e1=D.form.previousValue;e1&&C0(e1,this,!1),D2(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}x1(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(e1){return new(e1||U)(u.rXU(g1,10),u.rXU(H1,10),u.rXU(V,10),u.rXU(g2,8),u.rXU(z4,8))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","formControl",""]],inputs:{form:[u.Mj6.None,"formControl","form"],isDisabled:[u.Mj6.None,"disabled","isDisabled"],model:[u.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u.Jv_([J4]),u.Vt3,u.OA$]})}}return U})();const A6={provide:B2,useExisting:(0,u.Rfq)(()=>D4)};let D4=(()=>{class U extends B2{constructor(D,e1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.bkB,this._setValidators(D),this._setAsyncValidators(e1)}ngOnChanges(D){this._checkFormPresent(),D.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(x6(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 e1=this.form.get(D.path);return D2(e1,D,this.callSetDisabledState),e1.updateValueAndValidity({emitEvent:!1}),this.directives.push(D),e1}getControl(D){return this.form.get(D.path)}removeControl(D){C0(D.control||null,D,!1),function o2(U,G){const D=U.indexOf(G);D>-1&&U.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,e1){this.form.get(D.path).setValue(e1)}onSubmit(D){return this.submitted=!0,W1(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 e1=D.control,w1=this.form.get(D.path);e1!==w1&&(C0(e1||null,D),(U=>U instanceof Z0)(w1)&&(D2(w1,D,this.callSetDisabledState),D.control=w1))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(D){const e1=this.form.get(D.path);O4(e1,D),e1.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(D){if(this.form){const e1=this.form.get(D.path);e1&&function b1(U,G){return x6(U,G)}(e1,D)&&e1.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){a4(this.form,this),this._oldForm&&x6(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(e1){return new(e1||U)(u.rXU(g1,10),u.rXU(H1,10),u.rXU(z4,8))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","formGroup",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("submit",function(k0){return w1.onSubmit(k0)})("reset",function(){return w1.onReset()})},inputs:{form:[u.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([A6]),u.Vt3,u.OA$]})}}return U})();const h4={provide:B2,useExisting:(0,u.Rfq)(()=>r3)};let r3=(()=>{class U extends H0{constructor(D,e1,w1){super(),this.name=null,this._parent=D,this._setValidators(e1),this._setAsyncValidators(w1)}_checkParentType(){X8(this._parent)}static{this.\u0275fac=function(e1){return new(e1||U)(u.rXU(B2,13),u.rXU(g1,10),u.rXU(H1,10))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","formGroupName",""]],inputs:{name:[u.Mj6.None,"formGroupName","name"]},features:[u.Jv_([h4]),u.Vt3]})}}return U})();const l6={provide:B2,useExisting:(0,u.Rfq)(()=>$0)};let $0=(()=>{class U extends B2{constructor(D,e1,w1){super(),this.name=null,this._parent=D,this._setValidators(e1),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 y4(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){X8(this._parent)}static{this.\u0275fac=function(e1){return new(e1||U)(u.rXU(B2,13),u.rXU(g1,10),u.rXU(H1,10))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","formArrayName",""]],inputs:{name:[u.Mj6.None,"formArrayName","name"]},features:[u.Jv_([l6]),u.Vt3]})}}return U})();function X8(U){return!(U instanceof r3||U instanceof D4||U instanceof $0)}const B3={provide:v0,useExisting:(0,u.Rfq)(()=>C3)};let C3=(()=>{class U extends v0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,e1,w1,I2,k0){super(),this._ngModelWarningConfig=k0,this._added=!1,this.name=null,this.update=new u.bkB,this._ngModelWarningSent=!1,this._parent=D,this._setValidators(e1),this._setAsyncValidators(w1),this.valueAccessor=Y1(0,I2)}ngOnChanges(D){this._added||this._setUpControl(),x1(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 y4(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(e1){return new(e1||U)(u.rXU(B2,13),u.rXU(g1,10),u.rXU(H1,10),u.rXU(V,10),u.rXU(g2,8))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["","formControlName",""]],inputs:{name:[u.Mj6.None,"formControlName","name"],isDisabled:[u.Mj6.None,"disabled","isDisabled"],model:[u.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[u.Jv_([B3]),u.Vt3,u.OA$]})}}return U})();const Q6={provide:V,useExisting:(0,u.Rfq)(()=>w4),multi:!0};function V3(U,G){return null==U?`${G}`:(G&&"object"==typeof G&&(G="Object"),`${U}: ${G}`.slice(0,50))}let w4=(()=>{class U 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=e1=>{this.value=this._getOptionValue(e1),D(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(D){for(const e1 of this._optionMap.keys())if(this._compareWith(this._optionMap.get(e1),D))return e1;return null}_getOptionValue(D){const e1=function Z6(U){return U.split(":")[0]}(D);return this._optionMap.has(e1)?this._optionMap.get(e1):D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(k0){return w1.onChange(k0.target.value)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[u.Jv_([Q6]),u.Vt3]})}}return U})(),U3=(()=>{class U{constructor(D,e1,w1){this._element=D,this._renderer=e1,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(e1){return new(e1||U)(u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(w4,9))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return U})();const f0={provide:V,useExisting:(0,u.Rfq)(()=>h6),multi:!0};function z3(U,G){return null==U?`${G}`:("string"==typeof G&&(G=`'${G}'`),G&&"object"==typeof G&&(G="Object"),`${U}: ${G}`.slice(0,50))}let h6=(()=>{class U 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 e1;if(this.value=D,Array.isArray(D)){const w1=D.map(I2=>this._getOptionId(I2));e1=(I2,k0)=>{I2._setSelected(w1.indexOf(k0.toString())>-1)}}else e1=(w1,I2)=>{w1._setSelected(!1)};this._optionMap.forEach(e1)}registerOnChange(D){this.onChange=e1=>{const w1=[],I2=e1.selectedOptions;if(void 0!==I2){const k0=I2;for(let M3=0;M3{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e1,w1){1&e1&&u.bIt("change",function(k0){return w1.onChange(k0.target)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[u.Jv_([f0]),u.Vt3]})}}return U})(),I6=(()=>{class U{constructor(D,e1,w1){this._element=D,this._renderer=e1,this._select=w1,this._select&&(this.id=this._select._registerOption(this))}set ngValue(D){null!=this._select&&(this._value=D,this._setElementValue(z3(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._select?(this._value=D,this._setElementValue(z3(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(e1){return new(e1||U)(u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(h6,9))}}static{this.\u0275dir=u.FsC({type:U,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return U})();let q0=(()=>{class U{constructor(){this._validator=Q2}ngOnChanges(D){if(this.inputName in D){const e1=this.normalizeInput(D[this.inputName].currentValue);this._enabled=this.enabled(e1),this._validator=this._enabled?this.createValidator(e1):Q2,this._onChange&&this._onChange()}}validate(D){return this._validator(D)}registerOnValidatorChange(D){this._onChange=D}enabled(D){return null!=D}static{this.\u0275fac=function(e1){return new(e1||U)}}static{this.\u0275dir=u.FsC({type:U,features:[u.OA$]})}}return U})();const Le={provide:g1,useExisting:(0,u.Rfq)(()=>D3),multi:!0};let D3=(()=>{class U extends q0{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=D=>function U4(U){return"number"==typeof U?U:parseFloat(U)}(D),this.createValidator=D=>s2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e1,w1){2&e1&&u.BMQ("min",w1._enabled?w1.min:null)},inputs:{min:"min"},features:[u.Jv_([Le]),u.Vt3]})}}return U})();const _3={provide:g1,useExisting:(0,u.Rfq)(()=>Y4),multi:!0};let Y4=(()=>{class U extends q0{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.L39,this.createValidator=D=>P1}enabled(D){return D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e1,w1){2&e1&&u.BMQ("required",w1._enabled?"":null)},inputs:{required:"required"},features:[u.Jv_([_3]),u.Vt3]})}}return U})();const l3={provide:g1,useExisting:(0,u.Rfq)(()=>b6),multi:!0};let b6=(()=>{class U extends q0{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=D=>D,this.createValidator=D=>_2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=u.xGo(U)))(w1||U)}})()}static{this.\u0275dir=u.FsC({type:U,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e1,w1){2&e1&&u.BMQ("pattern",w1._enabled?w1.pattern:null)},inputs:{pattern:"pattern"},features:[u.Jv_([l3]),u.Vt3]})}}return U})(),P4=(()=>{class U{static{this.\u0275fac=function(e1){return new(e1||U)}}static{this.\u0275mod=u.$C({type:U})}static{this.\u0275inj=u.G2t({})}}return U})();class J0 extends K1{constructor(G,D,e1){super(g3(D),X2(e1,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,e1={}){this.controls.splice(G,0,D),this._registerControl(D),this.updateValueAndValidity({emitEvent:e1.emitEvent})}removeAt(G,D={}){let e1=this._adjustIndex(G);e1<0&&(e1=0),this.controls[e1]&&this.controls[e1]._registerOnCollectionChange(()=>{}),this.controls.splice(e1,1),this.updateValueAndValidity({emitEvent:D.emitEvent})}setControl(G,D,e1={}){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:e1.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(G,D={}){E1(this,0,G),G.forEach((e1,w1)=>{u1(this,!1,w1),this.at(w1).setValue(e1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(G.forEach((e1,w1)=>{this.at(w1)&&this.at(w1).patchValue(e1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G=[],D={}){this._forEachChild((e1,w1)=>{e1.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,e1)=>!!e1._syncPendingControls()||D,!1);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){this.controls.forEach((D,e1)=>{G(D,e1)})}_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 G3(U){return!!U&&(void 0!==U.asyncValidators||void 0!==U.validators||void 0!==U.updateOn)}let o6=(()=>{class U{constructor(){this.useNonNullable=!1}get nonNullable(){const D=new U;return D.useNonNullable=!0,D}group(D,e1=null){const w1=this._reduceControls(D);let I2={};return G3(e1)?I2=e1:null!==e1&&(I2.validators=e1.validator,I2.asyncValidators=e1.asyncValidator),new M2(w1,I2)}record(D,e1=null){const w1=this._reduceControls(D);return new s4(w1,e1)}control(D,e1,w1){let I2={};return this.useNonNullable?(G3(e1)?I2=e1:(I2.validators=e1,I2.asyncValidators=w1),new Z0(D,{...I2,nonNullable:!0})):new Z0(D,e1,w1)}array(D,e1,w1){const I2=D.map(k0=>this._createControl(k0));return new J0(I2,e1,w1)}_reduceControls(D){const e1={};return Object.keys(D).forEach(w1=>{e1[w1]=this._createControl(D[w1])}),e1}_createControl(D){return D instanceof Z0||D instanceof K1?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(e1){return new(e1||U)}}static{this.\u0275prov=u.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})(),Y3=(()=>{class U{static withConfig(D){return{ngModule:U,providers:[{provide:z4,useValue:D.callSetDisabledState??p4}]}}static{this.\u0275fac=function(e1){return new(e1||U)}}static{this.\u0275mod=u.$C({type:U})}static{this.\u0275inj=u.G2t({imports:[P4]})}}return U})(),r6=(()=>{class U{static withConfig(D){return{ngModule:U,providers:[{provide:g2,useValue:D.warnOnNgModelWithFormControl??"always"},{provide:z4,useValue:D.callSetDisabledState??p4}]}}static{this.\u0275fac=function(e1){return new(e1||U)}}static{this.\u0275mod=u.$C({type:U})}static{this.\u0275inj=u.G2t({imports:[P4]})}}return U})()},345:(k1,r1,v)=>{"use strict";v.d(r1,{Bb:()=>h0,W8:()=>_0,hE:()=>L4,sG:()=>q2,up:()=>y3});var u=v(4438),g=v(177);class e extends g.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class p extends e{static makeCurrent(){(0,g.ZD)(new p)}onAndCancel(z1,u1,E1){return z1.addEventListener(u1,E1),()=>{z1.removeEventListener(u1,E1)}}dispatchEvent(z1,u1){z1.dispatchEvent(u1)}remove(z1){z1.parentNode&&z1.parentNode.removeChild(z1)}createElement(z1,u1){return(u1=u1||this.getDefaultDocument()).createElement(z1)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(z1){return z1.nodeType===Node.ELEMENT_NODE}isShadowRoot(z1){return z1 instanceof DocumentFragment}getGlobalEventTarget(z1,u1){return"window"===u1?window:"document"===u1?z1:"body"===u1?z1.body:null}getBaseHref(z1){const u1=function S(){return L=L||document.querySelector("base"),L?L.getAttribute("href"):null}();return null==u1?null:function A(s1){return new URL(s1,document.baseURI).pathname}(u1)}resetBaseElement(){L=null}getUserAgent(){return window.navigator.userAgent}getCookie(z1){return(0,g._b)(document.cookie,z1)}}let L=null,c1=(()=>{class s1{build(){return new XMLHttpRequest}static{this.\u0275fac=function(E1){return new(E1||s1)}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const K=new u.nKC("");let L1=(()=>{class s1{constructor(u1,E1){this._zone=E1,this._eventNameToPlugin=new Map,u1.forEach(K1=>{K1.manager=this}),this._plugins=u1.slice().reverse()}addEventListener(u1,E1,K1){return this._findPluginFor(E1).addEventListener(u1,E1,K1)}getZone(){return this._zone}_findPluginFor(u1){let E1=this._eventNameToPlugin.get(u1);if(E1)return E1;if(E1=this._plugins.find(M2=>M2.supports(u1)),!E1)throw new u.wOt(5101,!1);return this._eventNameToPlugin.set(u1,E1),E1}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(K),u.KVO(u.SKi))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class j{constructor(z1){this._doc=z1}}const l1="ng-app-id";let m1=(()=>{class s1{constructor(u1,E1,K1,M2={}){this.doc=u1,this.appId=E1,this.nonce=K1,this.platformId=M2,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,g.Vy)(M2),this.resetHostNodes()}addStyles(u1){for(const E1 of u1)1===this.changeUsageCount(E1,1)&&this.onStyleAdded(E1)}removeStyles(u1){for(const E1 of u1)this.changeUsageCount(E1,-1)<=0&&this.onStyleRemoved(E1)}ngOnDestroy(){const u1=this.styleNodesInDOM;u1&&(u1.forEach(E1=>E1.remove()),u1.clear());for(const E1 of this.getAllStyles())this.onStyleRemoved(E1);this.resetHostNodes()}addHost(u1){this.hostNodes.add(u1);for(const E1 of this.getAllStyles())this.addStyleToHost(u1,E1)}removeHost(u1){this.hostNodes.delete(u1)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(u1){for(const E1 of this.hostNodes)this.addStyleToHost(E1,u1)}onStyleRemoved(u1){const E1=this.styleRef;E1.get(u1)?.elements?.forEach(K1=>K1.remove()),E1.delete(u1)}collectServerRenderedStyles(){const u1=this.doc.head?.querySelectorAll(`style[${l1}="${this.appId}"]`);if(u1?.length){const E1=new Map;return u1.forEach(K1=>{null!=K1.textContent&&E1.set(K1.textContent,K1)}),E1}return null}changeUsageCount(u1,E1){const K1=this.styleRef;if(K1.has(u1)){const M2=K1.get(u1);return M2.usage+=E1,M2.usage}return K1.set(u1,{usage:E1,elements:[]}),E1}getStyleElement(u1,E1){const K1=this.styleNodesInDOM,M2=K1?.get(E1);if(M2?.parentNode===u1)return K1.delete(E1),M2.removeAttribute(l1),M2;{const x2=this.doc.createElement("style");return this.nonce&&x2.setAttribute("nonce",this.nonce),x2.textContent=E1,this.platformIsServer&&x2.setAttribute(l1,this.appId),u1.appendChild(x2),x2}}addStyleToHost(u1,E1){const K1=this.getStyleElement(u1,E1),M2=this.styleRef,x2=M2.get(E1)?.elements;x2?x2.push(K1):M2.set(E1,{elements:[K1],usage:1})}resetHostNodes(){const u1=this.hostNodes;u1.clear(),u1.add(this.doc.head)}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ),u.KVO(u.sZ2),u.KVO(u.BIS,8),u.KVO(u.Agw))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const f1={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/"},$1=/%COMP%/g,s2=new u.nKC("",{providedIn:"root",factory:()=>!0});function O2(s1,z1){return z1.map(u1=>u1.replace($1,s1))}let r2=(()=>{class s1{constructor(u1,E1,K1,M2,x2,P0,d0,s4=null){this.eventManager=u1,this.sharedStylesHost=E1,this.appId=K1,this.removeStylesOnCompDestroy=M2,this.doc=x2,this.platformId=P0,this.ngZone=d0,this.nonce=s4,this.rendererByCompId=new Map,this.platformIsServer=(0,g.Vy)(P0),this.defaultRenderer=new z2(u1,x2,d0,this.platformIsServer)}createRenderer(u1,E1){if(!u1||!E1)return this.defaultRenderer;this.platformIsServer&&E1.encapsulation===u.gXe.ShadowDom&&(E1={...E1,encapsulation:u.gXe.Emulated});const K1=this.getOrCreateRenderer(u1,E1);return K1 instanceof b4?K1.applyToHost(u1):K1 instanceof F0&&K1.applyStyles(),K1}getOrCreateRenderer(u1,E1){const K1=this.rendererByCompId;let M2=K1.get(E1.id);if(!M2){const x2=this.doc,P0=this.ngZone,d0=this.eventManager,s4=this.sharedStylesHost,S3=this.removeStylesOnCompDestroy,z4=this.platformIsServer;switch(E1.encapsulation){case u.gXe.Emulated:M2=new b4(d0,s4,E1,this.appId,S3,x2,P0,z4);break;case u.gXe.ShadowDom:return new _4(d0,s4,u1,E1,x2,P0,this.nonce,z4);default:M2=new F0(d0,s4,E1,S3,x2,P0,z4)}K1.set(E1.id,M2)}return M2}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(L1),u.KVO(m1),u.KVO(u.sZ2),u.KVO(s2),u.KVO(g.qQ),u.KVO(u.Agw),u.KVO(u.SKi),u.KVO(u.BIS))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class z2{constructor(z1,u1,E1,K1){this.eventManager=z1,this.doc=u1,this.ngZone=E1,this.platformIsServer=K1,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(z1,u1){return u1?this.doc.createElementNS(f1[u1]||u1,z1):this.doc.createElement(z1)}createComment(z1){return this.doc.createComment(z1)}createText(z1){return this.doc.createTextNode(z1)}appendChild(z1,u1){(Q2(z1)?z1.content:z1).appendChild(u1)}insertBefore(z1,u1,E1){z1&&(Q2(z1)?z1.content:z1).insertBefore(u1,E1)}removeChild(z1,u1){z1&&z1.removeChild(u1)}selectRootElement(z1,u1){let E1="string"==typeof z1?this.doc.querySelector(z1):z1;if(!E1)throw new u.wOt(-5104,!1);return u1||(E1.textContent=""),E1}parentNode(z1){return z1.parentNode}nextSibling(z1){return z1.nextSibling}setAttribute(z1,u1,E1,K1){if(K1){u1=K1+":"+u1;const M2=f1[K1];M2?z1.setAttributeNS(M2,u1,E1):z1.setAttribute(u1,E1)}else z1.setAttribute(u1,E1)}removeAttribute(z1,u1,E1){if(E1){const K1=f1[E1];K1?z1.removeAttributeNS(K1,u1):z1.removeAttribute(`${E1}:${u1}`)}else z1.removeAttribute(u1)}addClass(z1,u1){z1.classList.add(u1)}removeClass(z1,u1){z1.classList.remove(u1)}setStyle(z1,u1,E1,K1){K1&(u.czy.DashCase|u.czy.Important)?z1.style.setProperty(u1,E1,K1&u.czy.Important?"important":""):z1.style[u1]=E1}removeStyle(z1,u1,E1){E1&u.czy.DashCase?z1.style.removeProperty(u1):z1.style[u1]=""}setProperty(z1,u1,E1){null!=z1&&(z1[u1]=E1)}setValue(z1,u1){z1.nodeValue=u1}listen(z1,u1,E1){if("string"==typeof z1&&!(z1=(0,g.QT)().getGlobalEventTarget(this.doc,z1)))throw new Error(`Unsupported event target ${z1} for event ${u1}`);return this.eventManager.addEventListener(z1,u1,this.decoratePreventDefault(E1))}decoratePreventDefault(z1){return u1=>{if("__ngUnwrap__"===u1)return z1;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>z1(u1)):z1(u1))&&u1.preventDefault()}}}function Q2(s1){return"TEMPLATE"===s1.tagName&&void 0!==s1.content}class _4 extends z2{constructor(z1,u1,E1,K1,M2,x2,P0,d0){super(z1,M2,x2,d0),this.sharedStylesHost=u1,this.hostEl=E1,this.shadowRoot=E1.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s4=O2(K1.id,K1.styles);for(const S3 of s4){const z4=document.createElement("style");P0&&z4.setAttribute("nonce",P0),z4.textContent=S3,this.shadowRoot.appendChild(z4)}}nodeOrShadowRoot(z1){return z1===this.hostEl?this.shadowRoot:z1}appendChild(z1,u1){return super.appendChild(this.nodeOrShadowRoot(z1),u1)}insertBefore(z1,u1,E1){return super.insertBefore(this.nodeOrShadowRoot(z1),u1,E1)}removeChild(z1,u1){return super.removeChild(this.nodeOrShadowRoot(z1),u1)}parentNode(z1){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(z1)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends z2{constructor(z1,u1,E1,K1,M2,x2,P0,d0){super(z1,M2,x2,P0),this.sharedStylesHost=u1,this.removeStylesOnCompDestroy=K1,this.styles=d0?O2(d0,E1.styles):E1.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class b4 extends F0{constructor(z1,u1,E1,K1,M2,x2,P0,d0){const s4=K1+"-"+E1.id;super(z1,u1,E1,M2,x2,P0,d0,s4),this.contentAttr=function c2(s1){return"_ngcontent-%COMP%".replace($1,s1)}(s4),this.hostAttr=function P1(s1){return"_nghost-%COMP%".replace($1,s1)}(s4)}applyToHost(z1){this.applyStyles(),this.setAttribute(z1,this.hostAttr,"")}createElement(z1,u1){const E1=super.createElement(z1,u1);return super.setAttribute(E1,this.contentAttr,""),E1}}let L2=(()=>{class s1 extends j{constructor(u1){super(u1)}supports(u1){return!0}addEventListener(u1,E1,K1){return u1.addEventListener(E1,K1,!1),()=>this.removeEventListener(u1,E1,K1)}removeEventListener(u1,E1,K1){return u1.removeEventListener(E1,K1)}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const A0=["alt","control","meta","shift"],y1={"\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 h2=(()=>{class s1 extends j{constructor(u1){super(u1)}supports(u1){return null!=s1.parseEventName(u1)}addEventListener(u1,E1,K1){const M2=s1.parseEventName(E1),x2=s1.eventCallback(M2.fullKey,K1,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.QT)().onAndCancel(u1,M2.domEventName,x2))}static parseEventName(u1){const E1=u1.toLowerCase().split("."),K1=E1.shift();if(0===E1.length||"keydown"!==K1&&"keyup"!==K1)return null;const M2=s1._normalizeKey(E1.pop());let x2="",P0=E1.indexOf("code");if(P0>-1&&(E1.splice(P0,1),x2="code."),A0.forEach(s4=>{const S3=E1.indexOf(s4);S3>-1&&(E1.splice(S3,1),x2+=s4+".")}),x2+=M2,0!=E1.length||0===M2.length)return null;const d0={};return d0.domEventName=K1,d0.fullKey=x2,d0}static matchEventFullKeyCode(u1,E1){let K1=y1[u1.key]||u1.key,M2="";return E1.indexOf("code.")>-1&&(K1=u1.code,M2="code."),!(null==K1||!K1)&&(K1=K1.toLowerCase()," "===K1?K1="space":"."===K1&&(K1="dot"),A0.forEach(x2=>{x2!==K1&&(0,e2[x2])(u1)&&(M2+=x2+".")}),M2+=K1,M2===E1)}static eventCallback(u1,E1,K1){return M2=>{s1.matchEventFullKeyCode(M2,u1)&&K1.runGuarded(()=>E1(M2))}}static _normalizeKey(u1){return"esc"===u1?"escape":u1}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const q2=(0,u.oH4)(u.fpN,"browser",[{provide:u.Agw,useValue:g.AJ},{provide:u.PLl,useValue:function Z1(){p.makeCurrent()},multi:!0},{provide:g.qQ,useFactory:function X1(){return(0,u.TL$)(document),document},deps:[]}]),o0=new u.nKC(""),B2=[{provide:u.e01,useClass:class V{addToWindow(z1){u.JZv.getAngularTestability=(E1,K1=!0)=>{const M2=z1.findTestabilityInTree(E1,K1);if(null==M2)throw new u.wOt(5103,!1);return M2},u.JZv.getAllAngularTestabilities=()=>z1.getAllTestabilities(),u.JZv.getAllAngularRootElements=()=>z1.getAllRootElements(),u.JZv.frameworkStabilizers||(u.JZv.frameworkStabilizers=[]),u.JZv.frameworkStabilizers.push(E1=>{const K1=u.JZv.getAllAngularTestabilities();let M2=K1.length;const x2=function(){M2--,0==M2&&E1()};K1.forEach(P0=>{P0.whenStable(x2)})})}findTestabilityInTree(z1,u1,E1){return null==u1?null:z1.getTestability(u1)??(E1?(0,g.QT)().isShadowRoot(u1)?this.findTestabilityInTree(z1,u1.host,!0):this.findTestabilityInTree(z1,u1.parentElement,!0):null)}},deps:[]},{provide:u.WHO,useClass:u.NYb,deps:[u.SKi,u.giA,u.e01]},{provide:u.NYb,useClass:u.NYb,deps:[u.SKi,u.giA,u.e01]}],v0=[{provide:u.H8p,useValue:"root"},{provide:u.zcH,useFactory:function Z(){return new u.zcH},deps:[]},{provide:K,useClass:L2,multi:!0,deps:[g.qQ,u.SKi,u.Agw]},{provide:K,useClass:h2,multi:!0,deps:[g.qQ]},r2,m1,L1,{provide:u._9s,useExisting:r2},{provide:g.N0,useClass:c1,deps:[]},[]];let h0=(()=>{class s1{constructor(u1){}static withServerTransition(u1){return{ngModule:s1,providers:[{provide:u.sZ2,useValue:u1.appId}]}}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(o0,12))}}static{this.\u0275mod=u.$C({type:s1})}static{this.\u0275inj=u.G2t({providers:[...v0,...B2],imports:[g.MD,u.Hbi]})}}return s1})(),_0=(()=>{class s1{constructor(u1){this._doc=u1,this._dom=(0,g.QT)()}addTag(u1,E1=!1){return u1?this._getOrCreateElement(u1,E1):null}addTags(u1,E1=!1){return u1?u1.reduce((K1,M2)=>(M2&&K1.push(this._getOrCreateElement(M2,E1)),K1),[]):[]}getTag(u1){return u1&&this._doc.querySelector(`meta[${u1}]`)||null}getTags(u1){if(!u1)return[];const E1=this._doc.querySelectorAll(`meta[${u1}]`);return E1?[].slice.call(E1):[]}updateTag(u1,E1){if(!u1)return null;E1=E1||this._parseSelector(u1);const K1=this.getTag(E1);return K1?this._setMetaElementAttributes(u1,K1):this._getOrCreateElement(u1,!0)}removeTag(u1){this.removeTagElement(this.getTag(u1))}removeTagElement(u1){u1&&this._dom.remove(u1)}_getOrCreateElement(u1,E1=!1){if(!E1){const x2=this._parseSelector(u1),P0=this.getTags(x2).filter(d0=>this._containsAttributes(u1,d0))[0];if(void 0!==P0)return P0}const K1=this._dom.createElement("meta");return this._setMetaElementAttributes(u1,K1),this._doc.getElementsByTagName("head")[0].appendChild(K1),K1}_setMetaElementAttributes(u1,E1){return Object.keys(u1).forEach(K1=>E1.setAttribute(this._getMetaKeyMap(K1),u1[K1])),E1}_parseSelector(u1){const E1=u1.name?"name":"property";return`${E1}="${u1[E1]}"`}_containsAttributes(u1,E1){return Object.keys(u1).every(K1=>E1.getAttribute(this._getMetaKeyMap(K1))===u1[K1])}_getMetaKeyMap(u1){return Y0[u1]||u1}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})();const Y0={httpEquiv:"http-equiv"};let L4=(()=>{class s1{constructor(u1){this._doc=u1}getTitle(){return this._doc.title}setTitle(u1){this._doc.title=u1||""}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})(),y3=(()=>{class s1{static{this.\u0275fac=function(E1){return new(E1||s1)}}static{this.\u0275prov=u.jDH({token:s1,factory:function(E1){let K1=null;return K1=E1?new(E1||s1):u.KVO(c0),K1},providedIn:"root"})}}return s1})(),c0=(()=>{class s1 extends y3{constructor(u1){super(),this._doc=u1}sanitize(u1,E1){if(null==E1)return null;switch(u1){case u.WPN.NONE:return E1;case u.WPN.HTML:return(0,u.ZF7)(E1,"HTML")?(0,u.rcV)(E1):(0,u.h9k)(this._doc,String(E1)).toString();case u.WPN.STYLE:return(0,u.ZF7)(E1,"Style")?(0,u.rcV)(E1):E1;case u.WPN.SCRIPT:if((0,u.ZF7)(E1,"Script"))return(0,u.rcV)(E1);throw new u.wOt(5200,!1);case u.WPN.URL:return(0,u.ZF7)(E1,"URL")?(0,u.rcV)(E1):(0,u.$MX)(String(E1));case u.WPN.RESOURCE_URL:if((0,u.ZF7)(E1,"ResourceURL"))return(0,u.rcV)(E1);throw new u.wOt(5201,!1);default:throw new u.wOt(5202,!1)}}bypassSecurityTrustHtml(u1){return(0,u.Kcf)(u1)}bypassSecurityTrustStyle(u1){return(0,u.cWb)(u1)}bypassSecurityTrustScript(u1){return(0,u.UyX)(u1)}bypassSecurityTrustUrl(u1){return(0,u.osQ)(u1)}bypassSecurityTrustResourceUrl(u1){return(0,u.e5t)(u1)}static{this.\u0275fac=function(E1){return new(E1||s1)(u.KVO(g.qQ))}}static{this.\u0275prov=u.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})()},1600:(k1,r1,v)=>{"use strict";v.d(r1,{nX:()=>B3,wF:()=>M4,Z:()=>Z0,Ix:()=>M1,Wk:()=>k2,iI:()=>H2,n3:()=>E3});var u=v(467),g=v(4438),e=v(4402),p=v(6648),L=v(7673),S=v(4412),A=v(4572),V=v(9350),c1=v(8793),K=v(9030),L1=v(1203),j=v(1985),l1=v(8071);function m1(x,N){const b=(0,l1.T)(x)?x:()=>x,E=B=>B.error(b());return new j.c(N?B=>N.schedule(E,0,B):E)}var f1=v(983),$1=v(8359),g1=v(9974),H1=v(4360);function d2(){return(0,g1.N)((x,N)=>{let b=null;x._refCount++;const E=(0,H1._)(N,void 0,void 0,void 0,()=>{if(!x||x._refCount<=0||0<--x._refCount)return void(b=null);const B=x._connection,Q=b;b=null,B&&(!Q||B===Q)&&B.unsubscribe(),N.unsubscribe()});x.subscribe(E),E.closed||(b=x.connect())})}class K2 extends j.c{constructor(N,b){super(),this.source=N,this.subjectFactory=b,this._subject=null,this._refCount=0,this._connection=null,(0,g1.S)(N)&&(this.lift=N.lift)}_subscribe(N){return this.getSubject().subscribe(N)}getSubject(){const N=this._subject;return(!N||N.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:N}=this;this._subject=this._connection=null,N?.unsubscribe()}connect(){let N=this._connection;if(!N){N=this._connection=new $1.yU;const b=this.getSubject();N.add(this.source.subscribe((0,H1._)(b,void 0,()=>{this._teardown(),b.complete()},E=>{this._teardown(),b.error(E)},()=>this._teardown()))),N.closed&&(this._connection=null,N=$1.yU.EMPTY)}return N}refCount(){return d2()(this)}}var s2=v(1413),c2=v(177),P1=v(6354),O2=v(5558),r2=v(6697),z2=v(9172),v2=v(5964),_2=v(1397),Q2=v(1594),_4=v(274),F0=v(8141),b4=v(9437);var y1=v(9901);function e2(x){return x<=0?()=>f1.w:(0,g1.N)((N,b)=>{let E=[];N.subscribe((0,H1._)(b,B=>{E.push(B),x{for(const B of E)b.next(B);b.complete()},void 0,()=>{E=null}))})}var h2=v(3774),D1=v(3669),A1=v(3703),F1=v(980),Z1=v(6977),Z=v(6365),X1=v(345);const O1="primary",q2=Symbol("RouteTitle");class o0{constructor(N){this.params=N||{}}has(N){return Object.prototype.hasOwnProperty.call(this.params,N)}get(N){if(this.has(N)){const b=this.params[N];return Array.isArray(b)?b[0]:b}return null}getAll(N){if(this.has(N)){const b=this.params[N];return Array.isArray(b)?b:[b]}return[]}get keys(){return Object.keys(this.params)}}function B2(x){return new o0(x)}function v0(x,N,b){const E=b.path.split("/");if(E.length>x.length||"full"===b.pathMatch&&(N.hasChildren()||E.lengthE[Q]===B)}return x===N}function m2(x){return x.length>0?x[x.length-1]:null}function l4(x){return(0,e.A)(x)?x:(0,g.jNT)(x)?(0,p.H)(Promise.resolve(x)):(0,L.of)(x)}const C4={exact:function G4(x,N,b){if(!c0(x.segments,N.segments)||!$4(x.segments,N.segments,b)||x.numberOfChildren!==N.numberOfChildren)return!1;for(const E in N.children)if(!x.children[E]||!G4(x.children[E],N.children[E],b))return!1;return!0},subset:r0},P3={exact:function J6(x,N){return _0(x,N)},subset:function e0(x,N){return Object.keys(N).length<=Object.keys(x).length&&Object.keys(N).every(b=>L4(x[b],N[b]))},ignored:()=>!0};function W4(x,N,b){return C4[b.paths](x.root,N.root,b.matrixParams)&&P3[b.queryParams](x.queryParams,N.queryParams)&&!("exact"===b.fragment&&x.fragment!==N.fragment)}function r0(x,N,b){return a3(x,N,N.segments,b)}function a3(x,N,b,E){if(x.segments.length>b.length){const B=x.segments.slice(0,b.length);return!(!c0(B,b)||N.hasChildren()||!$4(B,b,E))}if(x.segments.length===b.length){if(!c0(x.segments,b)||!$4(x.segments,b,E))return!1;for(const B in N.children)if(!x.children[B]||!r0(x.children[B],N.children[B],E))return!1;return!0}{const B=b.slice(0,x.segments.length),Q=b.slice(x.segments.length);return!!(c0(x.segments,B)&&$4(x.segments,B,E)&&x.children[O1])&&a3(x.children[O1],N,Q,E)}}function $4(x,N,b){return N.every((E,B)=>P3[b](x[B].parameters,E.parameters))}class L0{constructor(N=new U0([],{}),b={},E=null){this.root=N,this.queryParams=b,this.fragment=E}get queryParamMap(){return this._queryParamMap??=B2(this.queryParams),this._queryParamMap}toString(){return L3.serialize(this)}}class U0{constructor(N,b){this.segments=N,this.children=b,this.parent=null,Object.values(b).forEach(E=>E.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return I0(this)}}class d4{constructor(N,b){this.path=N,this.parameters=b}get parameterMap(){return this._parameterMap??=B2(this.parameters),this._parameterMap}toString(){return E1(this)}}function c0(x,N){return x.length===N.length&&x.every((b,E)=>b.path===N[E].path)}let u0=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>new x0,providedIn:"root"})}}return x})();class x0{parse(N){const b=new D2(N);return new L0(b.parseRootSegment(),b.parseQueryParams(),b.parseFragment())}serialize(N){const b=`/${k4(N.root,!0)}`,E=function M2(x){const N=Object.entries(x).map(([b,E])=>Array.isArray(E)?E.map(B=>`${i3(b)}=${i3(B)}`).join("&"):`${i3(b)}=${i3(E)}`).filter(b=>b);return N.length?`?${N.join("&")}`:""}(N.queryParams);return`${b}${E}${"string"==typeof N.fragment?`#${function X2(x){return encodeURI(x)}(N.fragment)}`:""}`}}const L3=new x0;function I0(x){return x.segments.map(N=>E1(N)).join("/")}function k4(x,N){if(!x.hasChildren())return I0(x);if(N){const b=x.children[O1]?k4(x.children[O1],!1):"",E=[];return Object.entries(x.children).forEach(([B,Q])=>{B!==O1&&E.push(`${B}:${k4(Q,!1)}`)}),E.length>0?`${b}(${E.join("//")})`:b}{const b=function o3(x,N){let b=[];return Object.entries(x.children).forEach(([E,B])=>{E===O1&&(b=b.concat(N(B,E)))}),Object.entries(x.children).forEach(([E,B])=>{E!==O1&&(b=b.concat(N(B,E)))}),b}(x,(E,B)=>B===O1?[k4(x.children[O1],!1)]:[`${B}:${k4(E,!1)}`]);return 1===Object.keys(x.children).length&&null!=x.children[O1]?`${I0(x)}/${b[0]}`:`${I0(x)}/(${b.join("//")})`}}function g3(x){return encodeURIComponent(x).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function i3(x){return g3(x).replace(/%3B/gi,";")}function s1(x){return g3(x).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function z1(x){return decodeURIComponent(x)}function u1(x){return z1(x.replace(/\+/g,"%20"))}function E1(x){return`${s1(x.path)}${function K1(x){return Object.entries(x).map(([N,b])=>`;${s1(N)}=${s1(b)}`).join("")}(x.parameters)}`}const x2=/^[^\/()?;#]+/;function P0(x){const N=x.match(x2);return N?N[0]:""}const d0=/^[^\/()?;=#]+/,S3=/^[^=?&#]+/,p4=/^[^&#]+/;class D2{constructor(N){this.url=N,this.remaining=N}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new U0([],{}):new U0([],this.parseChildren())}parseQueryParams(){const N={};if(this.consumeOptional("?"))do{this.parseQueryParam(N)}while(this.consumeOptional("&"));return N}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const N=[];for(this.peekStartsWith("(")||N.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),N.push(this.parseSegment());let b={};this.peekStartsWith("/(")&&(this.capture("/"),b=this.parseParens(!0));let E={};return this.peekStartsWith("(")&&(E=this.parseParens(!1)),(N.length>0||Object.keys(b).length>0)&&(E[O1]=new U0(N,b)),E}parseSegment(){const N=P0(this.remaining);if(""===N&&this.peekStartsWith(";"))throw new g.wOt(4009,!1);return this.capture(N),new d4(z1(N),this.parseMatrixParams())}parseMatrixParams(){const N={};for(;this.consumeOptional(";");)this.parseParam(N);return N}parseParam(N){const b=function s4(x){const N=x.match(d0);return N?N[0]:""}(this.remaining);if(!b)return;this.capture(b);let E="";if(this.consumeOptional("=")){const B=P0(this.remaining);B&&(E=B,this.capture(E))}N[z1(b)]=z1(E)}parseQueryParam(N){const b=function z4(x){const N=x.match(S3);return N?N[0]:""}(this.remaining);if(!b)return;this.capture(b);let E="";if(this.consumeOptional("=")){const C1=function y4(x){const N=x.match(p4);return N?N[0]:""}(this.remaining);C1&&(E=C1,this.capture(E))}const B=u1(b),Q=u1(E);if(N.hasOwnProperty(B)){let C1=N[B];Array.isArray(C1)||(C1=[C1],N[B]=C1),C1.push(Q)}else N[B]=Q}parseParens(N){const b={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const E=P0(this.remaining),B=this.remaining[E.length];if("/"!==B&&")"!==B&&";"!==B)throw new g.wOt(4010,!1);let Q;E.indexOf(":")>-1?(Q=E.slice(0,E.indexOf(":")),this.capture(Q),this.capture(":")):N&&(Q=O1);const C1=this.parseChildren();b[Q]=1===Object.keys(C1).length?C1[O1]:new U0([],C1),this.consumeOptional("//")}return b}peekStartsWith(N){return this.remaining.startsWith(N)}consumeOptional(N){return!!this.peekStartsWith(N)&&(this.remaining=this.remaining.substring(N.length),!0)}capture(N){if(!this.consumeOptional(N))throw new g.wOt(4011,!1)}}function C0(x){return x.segments.length>0?new U0([],{[O1]:x}):x}function A2(x){const N={};for(const[E,B]of Object.entries(x.children)){const Q=A2(B);if(E===O1&&0===Q.segments.length&&Q.hasChildren())for(const[C1,G1]of Object.entries(Q.children))N[C1]=G1;else(Q.segments.length>0||Q.hasChildren())&&(N[E]=Q)}return function I4(x){if(1===x.numberOfChildren&&x.children[O1]){const N=x.children[O1];return new U0(x.segments.concat(N.segments),N.children)}return x}(new U0(x.segments,N))}function a4(x){return x instanceof L0}function n6(x){let N;const B=C0(function b(Q){const C1={};for(const V1 of Q.children){const R2=b(V1);C1[V1.outlet]=R2}const G1=new U0(Q.url,C1);return Q===x&&(N=G1),G1}(x.root));return N??B}function j4(x,N,b,E){let B=x;for(;B.parent;)B=B.parent;if(0===N.length)return O4(B,B,B,b,E);const Q=function j3(x){if("string"==typeof x[0]&&1===x.length&&"/"===x[0])return new F3(!0,0,x);let N=0,b=!1;const E=x.reduce((B,Q,C1)=>{if("object"==typeof Q&&null!=Q){if(Q.outlets){const G1={};return Object.entries(Q.outlets).forEach(([V1,R2])=>{G1[V1]="string"==typeof R2?R2.split("/"):R2}),[...B,{outlets:G1}]}if(Q.segmentPath)return[...B,Q.segmentPath]}return"string"!=typeof Q?[...B,Q]:0===C1?(Q.split("/").forEach((G1,V1)=>{0==V1&&"."===G1||(0==V1&&""===G1?b=!0:".."===G1?N++:""!=G1&&B.push(G1))}),B):[...B,Q]},[]);return new F3(b,N,E)}(N);if(Q.toRoot())return O4(B,B,new U0([],{}),b,E);const C1=function T6(x,N,b){if(x.isAbsolute)return new N3(N,!0,0);if(!b)return new N3(N,!1,NaN);if(null===b.parent)return new N3(b,!0,0);const E=b0(x.commands[0])?0:1;return function a1(x,N,b){let E=x,B=N,Q=b;for(;Q>B;){if(Q-=B,E=E.parent,!E)throw new g.wOt(4005,!1);B=E.segments.length}return new N3(E,!1,B-Q)}(b,b.segments.length-1+E,x.numberOfDoubleDots)}(Q,B,x),G1=C1.processChildren?W1(C1.segmentGroup,C1.index,Q.commands):v1(C1.segmentGroup,C1.index,Q.commands);return O4(B,C1.segmentGroup,G1,b,E)}function b0(x){return"object"==typeof x&&null!=x&&!x.outlets&&!x.segmentPath}function $3(x){return"object"==typeof x&&null!=x&&x.outlets}function O4(x,N,b,E,B){let C1,Q={};E&&Object.entries(E).forEach(([V1,R2])=>{Q[V1]=Array.isArray(R2)?R2.map(G0=>`${G0}`):`${R2}`}),C1=x===N?b:b1(x,N,b);const G1=C0(A2(C1));return new L0(G1,Q,B)}function b1(x,N,b){const E={};return Object.entries(x.children).forEach(([B,Q])=>{E[B]=Q===N?b:b1(Q,N,b)}),new U0(x.segments,E)}class F3{constructor(N,b,E){if(this.isAbsolute=N,this.numberOfDoubleDots=b,this.commands=E,N&&E.length>0&&b0(E[0]))throw new g.wOt(4003,!1);const B=E.find($3);if(B&&B!==m2(E))throw new g.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class N3{constructor(N,b,E){this.segmentGroup=N,this.processChildren=b,this.index=E}}function v1(x,N,b){if(x??=new U0([],{}),0===x.segments.length&&x.hasChildren())return W1(x,N,b);const E=function Y1(x,N,b){let E=0,B=N;const Q={match:!1,pathIndex:0,commandIndex:0};for(;B=b.length)return Q;const C1=x.segments[B],G1=b[E];if($3(G1))break;const V1=`${G1}`,R2=E0&&void 0===V1)break;if(V1&&R2&&"object"==typeof R2&&void 0===R2.outlets){if(!Y2(V1,R2,C1))return Q;E+=2}else{if(!Y2(V1,{},C1))return Q;E++}B++}return{match:!0,pathIndex:B,commandIndex:E}}(x,N,b),B=b.slice(E.commandIndex);if(E.match&&E.pathIndexQ!==O1)&&x.children[O1]&&1===x.numberOfChildren&&0===x.children[O1].segments.length){const Q=W1(x.children[O1],N,b);return new U0(x.segments,Q.children)}return Object.entries(E).forEach(([Q,C1])=>{"string"==typeof C1&&(C1=[C1]),null!==C1&&(B[Q]=v1(x.children[Q],N,C1))}),Object.entries(x.children).forEach(([Q,C1])=>{void 0===E[Q]&&(B[Q]=C1)}),new U0(x.segments,B)}}function o2(x,N,b){const E=x.segments.slice(0,N);let B=0;for(;B{"string"==typeof E&&(E=[E]),null!==E&&(N[b]=o2(new U0([],{}),0,E))}),N}function z0(x){const N={};return Object.entries(x).forEach(([b,E])=>N[b]=`${E}`),N}function Y2(x,N,b){return x==b.path&&_0(N,b.parameters)}const w0="imperative";var t0=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}(t0||{});class m0{constructor(N,b){this.id=N,this.url=b}}class Z0 extends m0{constructor(N,b,E="imperative",B=null){super(N,b),this.type=t0.NavigationStart,this.navigationTrigger=E,this.restoredState=B}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class M4 extends m0{constructor(N,b,E){super(N,b),this.urlAfterRedirects=E,this.type=t0.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var c4=function(x){return x[x.Redirect=0]="Redirect",x[x.SupersededByNewNavigation=1]="SupersededByNewNavigation",x[x.NoDataFromResolver=2]="NoDataFromResolver",x[x.GuardRejected=3]="GuardRejected",x}(c4||{}),H0=function(x){return x[x.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",x[x.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",x}(H0||{});class D0 extends m0{constructor(N,b,E,B){super(N,b),this.reason=E,this.code=B,this.type=t0.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class F4 extends m0{constructor(N,b,E,B){super(N,b),this.reason=E,this.code=B,this.type=t0.NavigationSkipped}}class B4 extends m0{constructor(N,b,E,B){super(N,b),this.error=E,this.target=B,this.type=t0.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class f4 extends m0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=t0.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class t4 extends m0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=t0.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class E4 extends m0{constructor(N,b,E,B,Q){super(N,b),this.urlAfterRedirects=E,this.state=B,this.shouldActivate=Q,this.type=t0.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class V4 extends m0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=t0.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class l0 extends m0{constructor(N,b,E,B){super(N,b),this.urlAfterRedirects=E,this.state=B,this.type=t0.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class P2{constructor(N){this.route=N,this.type=t0.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class h8{constructor(N){this.route=N,this.type=t0.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class c3{constructor(N){this.snapshot=N,this.type=t0.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class m6{constructor(N){this.snapshot=N,this.type=t0.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class R6{constructor(N){this.snapshot=N,this.type=t0.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class q8{constructor(N){this.snapshot=N,this.type=t0.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class p6{constructor(N,b,E){this.routerEvent=N,this.position=b,this.anchor=E,this.type=t0.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class y0{}class O3{constructor(N){this.url=N}}class g2{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new J4,this.attachRef=null}}let J4=(()=>{class x{constructor(){this.contexts=new Map}onChildOutletCreated(b,E){const B=this.getOrCreateContext(b);B.outlet=E,this.contexts.set(b,B)}onChildOutletDestroyed(b){const E=this.getContext(b);E&&(E.outlet=null,E.attachRef=null)}onOutletDeactivated(){const b=this.contexts;return this.contexts=new Map,b}onOutletReAttached(b){this.contexts=b}getOrCreateContext(b){let E=this.getContext(b);return E||(E=new g2,this.contexts.set(b,E)),E}getContext(b){return this.contexts.get(b)||null}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();class t3{constructor(N){this._root=N}get root(){return this._root.value}parent(N){const b=this.pathFromRoot(N);return b.length>1?b[b.length-2]:null}children(N){const b=A6(N,this._root);return b?b.children.map(E=>E.value):[]}firstChild(N){const b=A6(N,this._root);return b&&b.children.length>0?b.children[0].value:null}siblings(N){const b=D4(N,this._root);return b.length<2?[]:b[b.length-2].children.map(B=>B.value).filter(B=>B!==N)}pathFromRoot(N){return D4(N,this._root).map(b=>b.value)}}function A6(x,N){if(x===N.value)return N;for(const b of N.children){const E=A6(x,b);if(E)return E}return null}function D4(x,N){if(x===N.value)return[N];for(const b of N.children){const E=D4(x,b);if(E.length)return E.unshift(N),E}return[]}class h4{constructor(N,b){this.value=N,this.children=b}toString(){return`TreeNode(${this.value})`}}function r3(x){const N={};return x&&x.children.forEach(b=>N[b.value.outlet]=b),N}class l6 extends t3{constructor(N,b){super(N),this.snapshot=b,Z6(this,N)}toString(){return this.snapshot.toString()}}function $0(x){const N=function X8(x){const Q=new Q6([],{},{},"",{},O1,x,null,{});return new V3("",new h4(Q,[]))}(x),b=new S.t([new d4("",{})]),E=new S.t({}),B=new S.t({}),Q=new S.t({}),C1=new S.t(""),G1=new B3(b,E,Q,C1,B,O1,x,N.root);return G1.snapshot=N.root,new l6(new h4(G1,[]),N)}class B3{constructor(N,b,E,B,Q,C1,G1,V1){this.urlSubject=N,this.paramsSubject=b,this.queryParamsSubject=E,this.fragmentSubject=B,this.dataSubject=Q,this.outlet=C1,this.component=G1,this._futureSnapshot=V1,this.title=this.dataSubject?.pipe((0,P1.T)(R2=>R2[q2]))??(0,L.of)(void 0),this.url=N,this.params=b,this.queryParams=E,this.fragment=B,this.data=Q}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,P1.T)(N=>B2(N))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,P1.T)(N=>B2(N))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function C3(x,N,b="emptyOnly"){let E;const{routeConfig:B}=x;return E=null===N||"always"!==b&&""!==B?.path&&(N.component||N.routeConfig?.loadComponent)?{params:{...x.params},data:{...x.data},resolve:{...x.data,...x._resolvedData??{}}}:{params:{...N.params,...x.params},data:{...N.data,...x.data},resolve:{...x.data,...N.data,...B?.data,...x._resolvedData}},B&&z3(B)&&(E.resolve[q2]=B.title),E}class Q6{get title(){return this.data?.[q2]}constructor(N,b,E,B,Q,C1,G1,V1,R2){this.url=N,this.params=b,this.queryParams=E,this.fragment=B,this.data=Q,this.outlet=C1,this.component=G1,this.routeConfig=V1,this._resolve=R2}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??=B2(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=B2(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(E=>E.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class V3 extends t3{constructor(N,b){super(b),this.url=N,Z6(this,b)}toString(){return w4(this._root)}}function Z6(x,N){N.value._routerState=x,N.children.forEach(b=>Z6(x,b))}function w4(x){const N=x.children.length>0?` { ${x.children.map(w4).join(", ")} } `:"";return`${x.value}${N}`}function U3(x){if(x.snapshot){const N=x.snapshot,b=x._futureSnapshot;x.snapshot=b,_0(N.queryParams,b.queryParams)||x.queryParamsSubject.next(b.queryParams),N.fragment!==b.fragment&&x.fragmentSubject.next(b.fragment),_0(N.params,b.params)||x.paramsSubject.next(b.params),function h0(x,N){if(x.length!==N.length)return!1;for(let b=0;b_0(b.parameters,N[E].parameters))}(x.url,N.url);return b&&!(!x.parent!=!N.parent)&&(!x.parent||f0(x.parent,N.parent))}function z3(x){return"string"==typeof x.title||null===x.title}let E3=(()=>{class x{constructor(){this.activated=null,this._activatedRoute=null,this.name=O1,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)(J4),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)(h6,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(b){if(b.name){const{firstChange:E,previousValue:B}=b.name;if(E)return;this.isTrackedInParentContexts(B)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(B)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(b){return this.parentContexts.getContext(b)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const b=this.parentContexts.getContext(this.name);b?.route&&(b.attachRef?this.attach(b.attachRef,b.route):this.activateWith(b.route,b.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 b=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(b.instance),b}attach(b,E){this.activated=b,this._activatedRoute=E,this.location.insert(b.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(b.instance)}deactivate(){if(this.activated){const b=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(b)}}activateWith(b,E){if(this.isActivated)throw new g.wOt(4013,!1);this._activatedRoute=b;const B=this.location,C1=b.snapshot.component,G1=this.parentContexts.getOrCreateContext(this.name).children,V1=new s6(b,G1,B.injector);this.activated=B.createComponent(C1,{index:B.length,injector:V1,environmentInjector:E??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(E){return new(E||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 s6{__ngOutletInjector(N){return new s6(this.route,this.childContexts,N)}constructor(N,b,E){this.route=N,this.childContexts=b,this.parent=E}get(N,b){return N===B3?this.route:N===J4?this.childContexts:this.parent.get(N,b)}}const h6=new g.nKC("");let I6=(()=>{class x{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(b){this.unsubscribeFromRouteData(b),this.subscribeToRouteData(b)}unsubscribeFromRouteData(b){this.outletDataSubscriptions.get(b)?.unsubscribe(),this.outletDataSubscriptions.delete(b)}subscribeToRouteData(b){const{activatedRoute:E}=b,B=(0,A.z)([E.queryParams,E.params,E.data]).pipe((0,O2.n)(([Q,C1,G1],V1)=>(G1={...Q,...C1,...G1},0===V1?(0,L.of)(G1):Promise.resolve(G1)))).subscribe(Q=>{if(!b.isActivated||!b.activatedComponentRef||b.activatedRoute!==E||null===E.component)return void this.unsubscribeFromRouteData(b);const C1=(0,g.HJs)(E.component);if(C1)for(const{templateName:G1}of C1.inputs)b.activatedComponentRef.setInput(G1,Q[G1]);else this.unsubscribeFromRouteData(b)});this.outletDataSubscriptions.set(b,B)}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function U4(x,N,b){if(b&&x.shouldReuseRoute(N.value,b.value.snapshot)){const E=b.value;E._futureSnapshot=N.value;const B=function q0(x,N,b){return N.children.map(E=>{for(const B of b.children)if(x.shouldReuseRoute(E.value,B.value.snapshot))return U4(x,E,B);return U4(x,E)})}(x,N,b);return new h4(E,B)}{if(x.shouldAttach(N.value)){const Q=x.retrieve(N.value);if(null!==Q){const C1=Q.route;return C1.value._futureSnapshot=N.value,C1.children=N.children.map(G1=>U4(x,G1)),C1}}const E=function g6(x){return new B3(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)}(N.value),B=N.children.map(Q=>U4(x,Q));return new h4(E,B)}}const H3="ngNavigationCancelingError";function Le(x,N){const{redirectTo:b,navigationBehaviorOptions:E}=a4(N)?{redirectTo:N,navigationBehaviorOptions:void 0}:N,B=D3(!1,c4.Redirect);return B.url=b,B.navigationBehaviorOptions=E,B}function D3(x,N){const b=new Error(`NavigationCancelingError: ${x||""}`);return b[H3]=!0,b.cancellationCode=N,b}function n3(x){return!!x&&x[H3]}let Y4=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275cmp=g.VBU({type:x,selectors:[["ng-component"]],standalone:!0,features:[g.aNF],decls:1,vars:0,template:function(E,B){1&E&&g.nrm(0,"router-outlet")},dependencies:[E3],encapsulation:2})}}return x})();function Q4(x){const N=x.children&&x.children.map(Q4),b=N?{...x,children:N}:{...x};return!b.component&&!b.loadComponent&&(N||b.loadChildren)&&b.outlet&&b.outlet!==O1&&(b.component=Y4),b}function d3(x){return x.outlet||O1}function P4(x){if(!x)return null;if(x.routeConfig?._injector)return x.routeConfig._injector;for(let N=x.parent;N;N=N.parent){const b=N.routeConfig;if(b?._loadedInjector)return b._loadedInjector;if(b?._injector)return b._injector}return null}class y6{constructor(N,b,E,B,Q){this.routeReuseStrategy=N,this.futureState=b,this.currState=E,this.forwardEvent=B,this.inputBindingEnabled=Q}activate(N){const b=this.futureState._root,E=this.currState?this.currState._root:null;this.deactivateChildRoutes(b,E,N),U3(this.futureState.root),this.activateChildRoutes(b,E,N)}deactivateChildRoutes(N,b,E){const B=r3(b);N.children.forEach(Q=>{const C1=Q.value.outlet;this.deactivateRoutes(Q,B[C1],E),delete B[C1]}),Object.values(B).forEach(Q=>{this.deactivateRouteAndItsChildren(Q,E)})}deactivateRoutes(N,b,E){const B=N.value,Q=b?b.value:null;if(B===Q)if(B.component){const C1=E.getContext(B.outlet);C1&&this.deactivateChildRoutes(N,b,C1.children)}else this.deactivateChildRoutes(N,b,E);else Q&&this.deactivateRouteAndItsChildren(b,E)}deactivateRouteAndItsChildren(N,b){N.value.component&&this.routeReuseStrategy.shouldDetach(N.value.snapshot)?this.detachAndStoreRouteSubtree(N,b):this.deactivateRouteAndOutlet(N,b)}detachAndStoreRouteSubtree(N,b){const E=b.getContext(N.value.outlet),B=E&&N.value.component?E.children:b,Q=r3(N);for(const C1 of Object.values(Q))this.deactivateRouteAndItsChildren(C1,B);if(E&&E.outlet){const C1=E.outlet.detach(),G1=E.children.onOutletDeactivated();this.routeReuseStrategy.store(N.value.snapshot,{componentRef:C1,route:N,contexts:G1})}}deactivateRouteAndOutlet(N,b){const E=b.getContext(N.value.outlet),B=E&&N.value.component?E.children:b,Q=r3(N);for(const C1 of Object.values(Q))this.deactivateRouteAndItsChildren(C1,B);E&&(E.outlet&&(E.outlet.deactivate(),E.children.onOutletDeactivated()),E.attachRef=null,E.route=null)}activateChildRoutes(N,b,E){const B=r3(b);N.children.forEach(Q=>{this.activateRoutes(Q,B[Q.value.outlet],E),this.forwardEvent(new q8(Q.value.snapshot))}),N.children.length&&this.forwardEvent(new m6(N.value.snapshot))}activateRoutes(N,b,E){const B=N.value,Q=b?b.value:null;if(U3(B),B===Q)if(B.component){const C1=E.getOrCreateContext(B.outlet);this.activateChildRoutes(N,b,C1.children)}else this.activateChildRoutes(N,b,E);else if(B.component){const C1=E.getOrCreateContext(B.outlet);if(this.routeReuseStrategy.shouldAttach(B.snapshot)){const G1=this.routeReuseStrategy.retrieve(B.snapshot);this.routeReuseStrategy.store(B.snapshot,null),C1.children.onOutletReAttached(G1.contexts),C1.attachRef=G1.componentRef,C1.route=G1.route.value,C1.outlet&&C1.outlet.attach(G1.componentRef,G1.route.value),U3(G1.route.value),this.activateChildRoutes(N,null,C1.children)}else{const G1=P4(B.snapshot);C1.attachRef=null,C1.route=B,C1.injector=G1,C1.outlet&&C1.outlet.activateWith(B,C1.injector),this.activateChildRoutes(N,null,C1.children)}}else this.activateChildRoutes(N,null,E)}}class G3{constructor(N){this.path=N,this.route=this.path[this.path.length-1]}}class o6{constructor(N,b){this.component=N,this.route=b}}function $6(x,N,b){const E=x._root;return Y3(E,N?N._root:null,b,[E.value])}function q4(x,N){const b=Symbol(),E=N.get(x,b);return E===b?"function"!=typeof x||(0,g.LfX)(x)?N.get(x):x:E}function Y3(x,N,b,E,B={canDeactivateChecks:[],canActivateChecks:[]}){const Q=r3(N);return x.children.forEach(C1=>{(function r6(x,N,b,E,B={canDeactivateChecks:[],canActivateChecks:[]}){const Q=x.value,C1=N?N.value:null,G1=b?b.getContext(x.value.outlet):null;if(C1&&Q.routeConfig===C1.routeConfig){const V1=function U(x,N,b){if("function"==typeof b)return b(x,N);switch(b){case"pathParamsChange":return!c0(x.url,N.url);case"pathParamsOrQueryParamsChange":return!c0(x.url,N.url)||!_0(x.queryParams,N.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!f0(x,N)||!_0(x.queryParams,N.queryParams);default:return!f0(x,N)}}(C1,Q,Q.routeConfig.runGuardsAndResolvers);V1?B.canActivateChecks.push(new G3(E)):(Q.data=C1.data,Q._resolvedData=C1._resolvedData),Y3(x,N,Q.component?G1?G1.children:null:b,E,B),V1&&G1&&G1.outlet&&G1.outlet.isActivated&&B.canDeactivateChecks.push(new o6(G1.outlet.component,C1))}else C1&&G(N,G1,B),B.canActivateChecks.push(new G3(E)),Y3(x,null,Q.component?G1?G1.children:null:b,E,B)})(C1,Q[C1.value.outlet],b,E.concat([C1.value]),B),delete Q[C1.value.outlet]}),Object.entries(Q).forEach(([C1,G1])=>G(G1,b.getContext(C1),B)),B}function G(x,N,b){const E=r3(x),B=x.value;Object.entries(E).forEach(([Q,C1])=>{G(C1,B.component?N?N.children.getContext(Q):null:N,b)}),b.canDeactivateChecks.push(new o6(B.component&&N&&N.outlet&&N.outlet.isActivated?N.outlet.component:null,B))}function D(x){return"function"==typeof x}function X4(x){return x instanceof V.G||"EmptyError"===x?.name}const c8=Symbol("INITIAL_VALUE");function n4(){return(0,O2.n)(x=>(0,A.z)(x.map(N=>N.pipe((0,r2.s)(1),(0,z2.Z)(c8)))).pipe((0,P1.T)(N=>{for(const b of N)if(!0!==b){if(b===c8)return c8;if(!1===b||b instanceof L0)return b}return!0}),(0,v2.p)(N=>N!==c8),(0,r2.s)(1)))}function W8(x){return(0,L1.F)((0,F0.M)(N=>{if(a4(N))throw Le(0,N)}),(0,P1.T)(N=>!0===N))}class j6{constructor(N){this.segmentGroup=N||null}}class t8 extends Error{constructor(N){super(),this.urlTree=N}}function n8(x){return m1(new j6(x))}class T4{constructor(N,b){this.urlSerializer=N,this.urlTree=b}lineralizeSegments(N,b){let E=[],B=b.root;for(;;){if(E=E.concat(B.segments),0===B.numberOfChildren)return(0,L.of)(E);if(B.numberOfChildren>1||!B.children[O1])return m1(new g.wOt(4e3,!1));B=B.children[O1]}}applyRedirectCommands(N,b,E){const B=this.applyRedirectCreateUrlTree(b,this.urlSerializer.parse(b),N,E);if(b.startsWith("/"))throw new t8(B);return B}applyRedirectCreateUrlTree(N,b,E,B){const Q=this.createSegmentGroup(N,b.root,E,B);return new L0(Q,this.createQueryParams(b.queryParams,this.urlTree.queryParams),b.fragment)}createQueryParams(N,b){const E={};return Object.entries(N).forEach(([B,Q])=>{if("string"==typeof Q&&Q.startsWith(":")){const G1=Q.substring(1);E[B]=b[G1]}else E[B]=Q}),E}createSegmentGroup(N,b,E,B){const Q=this.createSegments(N,b.segments,E,B);let C1={};return Object.entries(b.children).forEach(([G1,V1])=>{C1[G1]=this.createSegmentGroup(N,V1,E,B)}),new U0(Q,C1)}createSegments(N,b,E,B){return b.map(Q=>Q.path.startsWith(":")?this.findPosParam(N,Q,B):this.findOrReturn(Q,E))}findPosParam(N,b,E){const B=E[b.path.substring(1)];if(!B)throw new g.wOt(4001,!1);return B}findOrReturn(N,b){let E=0;for(const B of b){if(B.path===N.path)return b.splice(E),B;E++}return N}}const Z4={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function u3(x,N,b,E,B){const Q=J8(x,N,b);return Q.matched?(E=function v3(x,N){return x.providers&&!x._injector&&(x._injector=(0,g.Ol2)(x.providers,N,`Route: ${x.path}`)),x._injector??N}(N,E),function N8(x,N,b,E){const B=N.canMatch;if(!B||0===B.length)return(0,L.of)(!0);const Q=B.map(C1=>{const G1=q4(C1,x);return l4(function q3(x){return x&&D(x.canMatch)}(G1)?G1.canMatch(N,b):(0,g.N4e)(x,()=>G1(N,b)))});return(0,L.of)(Q).pipe(n4(),W8())}(E,N,b).pipe((0,P1.T)(C1=>!0===C1?Q:{...Z4}))):(0,L.of)(Q)}function J8(x,N,b){if("**"===N.path)return function Q8(x){return{matched:!0,parameters:x.length>0?m2(x).parameters:{},consumedSegments:x,remainingSegments:[],positionalParamSegments:{}}}(b);if(""===N.path)return"full"===N.pathMatch&&(x.hasChildren()||b.length>0)?{...Z4}:{matched:!0,consumedSegments:[],remainingSegments:b,parameters:{},positionalParamSegments:{}};const B=(N.matcher||v0)(b,x,N);if(!B)return{...Z4};const Q={};Object.entries(B.posParams??{}).forEach(([G1,V1])=>{Q[G1]=V1.path});const C1=B.consumed.length>0?{...Q,...B.consumed[B.consumed.length-1].parameters}:Q;return{matched:!0,consumedSegments:B.consumed,remainingSegments:b.slice(B.consumed.length),parameters:C1,positionalParamSegments:B.posParams??{}}}function O6(x,N,b,E){return b.length>0&&function z8(x,N,b){return b.some(E=>F6(x,N,E)&&d3(E)!==O1)}(x,b,E)?{segmentGroup:new U0(N,e5(E,new U0(b,x.children))),slicedSegments:[]}:0===b.length&&function be(x,N,b){return b.some(E=>F6(x,N,E))}(x,b,E)?{segmentGroup:new U0(x.segments,Ue(x,b,E,x.children)),slicedSegments:b}:{segmentGroup:new U0(x.segments,x.children),slicedSegments:b}}function Ue(x,N,b,E){const B={};for(const Q of b)if(F6(x,N,Q)&&!E[d3(Q)]){const C1=new U0([],{});B[d3(Q)]=C1}return{...E,...B}}function e5(x,N){const b={};b[O1]=N;for(const E of x)if(""===E.path&&d3(E)!==O1){const B=new U0([],{});b[d3(E)]=B}return b}function F6(x,N,b){return(!(x.hasChildren()||N.length>0)||"full"!==b.pathMatch)&&""===b.path}class k5{}class v6{constructor(N,b,E,B,Q,C1,G1){this.injector=N,this.configLoader=b,this.rootComponentType=E,this.config=B,this.urlTree=Q,this.paramsInheritanceStrategy=C1,this.urlSerializer=G1,this.applyRedirects=new T4(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(N){return new g.wOt(4002,`'${N.segmentGroup}'`)}recognize(){const N=O6(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(N).pipe((0,P1.T)(b=>{const E=new Q6([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},O1,this.rootComponentType,null,{}),B=new h4(E,b),Q=new V3("",B),C1=function x6(x,N,b=null,E=null){return j4(n6(x),N,b,E)}(E,[],this.urlTree.queryParams,this.urlTree.fragment);return C1.queryParams=this.urlTree.queryParams,Q.url=this.urlSerializer.serialize(C1),this.inheritParamsAndData(Q._root,null),{state:Q,tree:C1}}))}match(N){return this.processSegmentGroup(this.injector,this.config,N,O1).pipe((0,b4.W)(E=>{if(E instanceof t8)return this.urlTree=E.urlTree,this.match(E.urlTree.root);throw E instanceof j6?this.noMatchError(E):E}))}inheritParamsAndData(N,b){const E=N.value,B=C3(E,b,this.paramsInheritanceStrategy);E.params=Object.freeze(B.params),E.data=Object.freeze(B.data),N.children.forEach(Q=>this.inheritParamsAndData(Q,E))}processSegmentGroup(N,b,E,B){return 0===E.segments.length&&E.hasChildren()?this.processChildren(N,b,E):this.processSegment(N,b,E,E.segments,B,!0).pipe((0,P1.T)(Q=>Q instanceof h4?[Q]:[]))}processChildren(N,b,E){const B=[];for(const Q of Object.keys(E.children))"primary"===Q?B.unshift(Q):B.push(Q);return(0,p.H)(B).pipe((0,_4.H)(Q=>{const C1=E.children[Q],G1=function e8(x,N){const b=x.filter(E=>d3(E)===N);return b.push(...x.filter(E=>d3(E)!==N)),b}(b,Q);return this.processSegmentGroup(N,G1,C1,Q)}),function A0(x,N){return(0,g1.N)(function L2(x,N,b,E,B){return(Q,C1)=>{let G1=b,V1=N,R2=0;Q.subscribe((0,H1._)(C1,G0=>{const N0=R2++;V1=G1?x(V1,G0,N0):(G1=!0,G0),E&&C1.next(V1)},B&&(()=>{G1&&C1.next(V1),C1.complete()})))}}(x,N,arguments.length>=2,!0))}((Q,C1)=>(Q.push(...C1),Q)),(0,y1.U)(null),function j1(x,N){const b=arguments.length>=2;return E=>E.pipe(x?(0,v2.p)((B,Q)=>x(B,Q,E)):D1.D,e2(1),b?(0,y1.U)(N):(0,h2.v)(()=>new V.G))}(),(0,_2.Z)(Q=>{if(null===Q)return n8(E);const C1=X3(Q);return function He(x){x.sort((N,b)=>N.value.outlet===O1?-1:b.value.outlet===O1?1:N.value.outlet.localeCompare(b.value.outlet))}(C1),(0,L.of)(C1)}))}processSegment(N,b,E,B,Q,C1){return(0,p.H)(b).pipe((0,_4.H)(G1=>this.processSegmentAgainstRoute(G1._injector??N,b,G1,E,B,Q,C1).pipe((0,b4.W)(V1=>{if(V1 instanceof j6)return(0,L.of)(null);throw V1}))),(0,Q2.$)(G1=>!!G1),(0,b4.W)(G1=>{if(X4(G1))return function E8(x,N,b){return 0===N.length&&!x.children[b]}(E,B,Q)?(0,L.of)(new k5):n8(E);throw G1}))}processSegmentAgainstRoute(N,b,E,B,Q,C1,G1){return function Z8(x,N,b,E){return!!(d3(x)===E||E!==O1&&F6(N,b,x))&&J8(N,x,b).matched}(E,B,Q,C1)?void 0===E.redirectTo?this.matchSegmentAgainstRoute(N,B,E,Q,C1):this.allowRedirects&&G1?this.expandSegmentAgainstRouteUsingRedirect(N,B,b,E,Q,C1):n8(B):n8(B)}expandSegmentAgainstRouteUsingRedirect(N,b,E,B,Q,C1){const{matched:G1,consumedSegments:V1,positionalParamSegments:R2,remainingSegments:G0}=J8(b,B,Q);if(!G1)return n8(b);B.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const N0=this.applyRedirects.applyRedirectCommands(V1,B.redirectTo,R2);return this.applyRedirects.lineralizeSegments(B,N0).pipe((0,_2.Z)(h3=>this.processSegment(N,E,b,h3.concat(G0),C1,!1)))}matchSegmentAgainstRoute(N,b,E,B,Q){const C1=u3(b,E,B,N);return"**"===E.path&&(b.children={}),C1.pipe((0,O2.n)(G1=>G1.matched?this.getChildConfig(N=E._injector??N,E,B).pipe((0,O2.n)(({routes:V1})=>{const R2=E._loadedInjector??N,{consumedSegments:G0,remainingSegments:N0,parameters:h3}=G1,we=new Q6(G0,h3,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function K8(x){return x.data||{}}(E),d3(E),E.component??E._loadedComponent??null,E,function M8(x){return x.resolve||{}}(E)),{segmentGroup:Se,slicedSegments:$8}=O6(b,G0,N0,V1);if(0===$8.length&&Se.hasChildren())return this.processChildren(R2,V1,Se).pipe((0,P1.T)(j8=>null===j8?null:new h4(we,j8)));if(0===V1.length&&0===$8.length)return(0,L.of)(new h4(we,[]));const Ne=d3(E)===Q;return this.processSegment(R2,V1,Se,$8,Ne?O1:Q,!0).pipe((0,P1.T)(j8=>new h4(we,j8 instanceof h4?[j8]:[])))})):n8(b)))}getChildConfig(N,b,E){return b.children?(0,L.of)({routes:b.children,injector:N}):b.loadChildren?void 0!==b._loadedRoutes?(0,L.of)({routes:b._loadedRoutes,injector:b._loadedInjector}):function xe(x,N,b,E){const B=N.canLoad;if(void 0===B||0===B.length)return(0,L.of)(!0);const Q=B.map(C1=>{const G1=q4(C1,x);return l4(function w1(x){return x&&D(x.canLoad)}(G1)?G1.canLoad(N,b):(0,g.N4e)(x,()=>G1(N,b)))});return(0,L.of)(Q).pipe(n4(),W8())}(N,b,E).pipe((0,_2.Z)(B=>B?this.configLoader.loadChildren(N,b).pipe((0,F0.M)(Q=>{b._loadedRoutes=Q.routes,b._loadedInjector=Q.injector})):function S4(x){return m1(D3(!1,c4.GuardRejected))}())):(0,L.of)({routes:[],injector:N})}}function N2(x){const N=x.value.routeConfig;return N&&""===N.path}function X3(x){const N=[],b=new Set;for(const E of x){if(!N2(E)){N.push(E);continue}const B=N.find(Q=>E.value.routeConfig===Q.value.routeConfig);void 0!==B?(B.children.push(...E.children),b.add(B)):N.push(E)}for(const E of b){const B=X3(E.children);N.push(new h4(E.value,B))}return N.filter(E=>!b.has(E))}function s8(x){const N=x.children.map(b=>s8(b)).flat();return[x,...N]}function ce(x){return(0,O2.n)(N=>{const b=x(N);return b?(0,p.H)(b).pipe((0,P1.T)(()=>N)):(0,L.of)(N)})}let Fe=(()=>{class x{buildTitle(b){let E,B=b.root;for(;void 0!==B;)E=this.getResolvedTitleForRoute(B)??E,B=B.children.find(Q=>Q.outlet===O1);return E}getResolvedTitleForRoute(b){return b.data[q2]}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(T8),providedIn:"root"})}}return x})(),T8=(()=>{class x extends Fe{constructor(b){super(),this.title=b}updateTitle(b){const E=this.buildTitle(b);void 0!==E&&this.title.setTitle(E)}static{this.\u0275fac=function(E){return new(E||x)(g.KVO(X1.hE))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const T3=new g.nKC("",{providedIn:"root",factory:()=>({})}),V6=new g.nKC("");let R8=(()=>{class x{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.WQX)(g.Ql9)}loadComponent(b){if(this.componentLoaders.get(b))return this.componentLoaders.get(b);if(b._loadedComponent)return(0,L.of)(b._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(b);const E=l4(b.loadComponent()).pipe((0,P1.T)(_6),(0,F0.M)(Q=>{this.onLoadEndListener&&this.onLoadEndListener(b),b._loadedComponent=Q}),(0,F1.j)(()=>{this.componentLoaders.delete(b)})),B=new K2(E,()=>new s2.B).pipe(d2());return this.componentLoaders.set(b,B),B}loadChildren(b,E){if(this.childrenLoaders.get(E))return this.childrenLoaders.get(E);if(E._loadedRoutes)return(0,L.of)({routes:E._loadedRoutes,injector:E._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(E);const Q=function c5(x,N,b,E){return l4(x.loadChildren()).pipe((0,P1.T)(_6),(0,_2.Z)(B=>B instanceof g.Co$||Array.isArray(B)?(0,L.of)(B):(0,p.H)(N.compileModuleAsync(B))),(0,P1.T)(B=>{E&&E(x);let Q,C1,G1=!1;return Array.isArray(B)?(C1=B,!0):(Q=B.create(b).injector,C1=Q.get(V6,[],{optional:!0,self:!0}).flat()),{routes:C1.map(Q4),injector:Q}}))}(E,this.compiler,b,this.onLoadEndListener).pipe((0,F1.j)(()=>{this.childrenLoaders.delete(E)})),C1=new K2(Q,()=>new s2.B).pipe(d2());return this.childrenLoaders.set(E,C1),C1}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function _6(x){return function A8(x){return x&&"object"==typeof x&&"default"in x}(x)?x.default:x}let k6=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(U6),providedIn:"root"})}}return x})(),U6=(()=>{class x{shouldProcessUrl(b){return!0}extract(b){return b}merge(b,E){return b}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const w=new g.nKC(""),q=new g.nKC("");function T(x,N,b){const E=x.get(q),B=x.get(c2.qQ);return x.get(g.SKi).runOutsideAngular(()=>{if(!B.startViewTransition||E.skipNextTransition)return E.skipNextTransition=!1,new Promise(R2=>setTimeout(R2));let Q;const C1=new Promise(R2=>{Q=R2}),G1=B.startViewTransition(()=>(Q(),function H(x){return new Promise(N=>{(0,g.mal)(N,{injector:x})})}(x))),{onViewTransitionCreated:V1}=E;return V1&&(0,g.N4e)(x,()=>V1({transition:G1,from:N,to:b})),C1})}let _1=(()=>{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)(R8),this.environmentInjector=(0,g.WQX)(g.uvJ),this.urlSerializer=(0,g.WQX)(u0),this.rootContexts=(0,g.WQX)(J4),this.location=(0,g.WQX)(c2.aZ),this.inputBindingEnabled=null!==(0,g.WQX)(h6,{optional:!0}),this.titleStrategy=(0,g.WQX)(Fe),this.options=(0,g.WQX)(T3,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,g.WQX)(k6),this.createViewTransition=(0,g.WQX)(w,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=B=>this.events.next(new h8(B)),this.configLoader.onLoadStartListener=B=>this.events.next(new P2(B))}complete(){this.transitions?.complete()}handleNavigationRequest(b){const E=++this.navigationId;this.transitions?.next({...this.transitions.value,...b,id:E})}setupNavigations(b,E,B){return this.transitions=new S.t({id:0,currentUrlTree:E,currentRawUrl:E,extractedUrl:this.urlHandlingStrategy.extract(E),urlAfterRedirects:this.urlHandlingStrategy.extract(E),rawUrl:E,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:w0,restoredState:null,currentSnapshot:B.snapshot,targetSnapshot:null,currentRouterState:B,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,v2.p)(Q=>0!==Q.id),(0,P1.T)(Q=>({...Q,extractedUrl:this.urlHandlingStrategy.extract(Q.rawUrl)})),(0,O2.n)(Q=>{let C1=!1,G1=!1;return(0,L.of)(Q).pipe((0,O2.n)(V1=>{if(this.navigationId>Q.id)return this.cancelNavigationTransition(Q,"",c4.SupersededByNewNavigation),f1.w;this.currentTransition=Q,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 R2=!b.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!R2&&"reload"!==(V1.extras.onSameUrlNavigation??b.onSameUrlNavigation)){const N0="";return this.events.next(new F4(V1.id,this.urlSerializer.serialize(V1.rawUrl),N0,H0.IgnoredSameUrlNavigation)),V1.resolve(null),f1.w}if(this.urlHandlingStrategy.shouldProcessUrl(V1.rawUrl))return(0,L.of)(V1).pipe((0,O2.n)(N0=>{const h3=this.transitions?.getValue();return this.events.next(new Z0(N0.id,this.urlSerializer.serialize(N0.extractedUrl),N0.source,N0.restoredState)),h3!==this.transitions?.getValue()?f1.w:Promise.resolve(N0)}),function Ye(x,N,b,E,B,Q){return(0,_2.Z)(C1=>function D8(x,N,b,E,B,Q,C1="emptyOnly"){return new v6(x,N,b,E,B,C1,Q).recognize()}(x,N,b,E,C1.extractedUrl,B,Q).pipe((0,P1.T)(({state:G1,tree:V1})=>({...C1,targetSnapshot:G1,urlAfterRedirects:V1}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,b.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,F0.M)(N0=>{Q.targetSnapshot=N0.targetSnapshot,Q.urlAfterRedirects=N0.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:N0.urlAfterRedirects};const h3=new f4(N0.id,this.urlSerializer.serialize(N0.extractedUrl),this.urlSerializer.serialize(N0.urlAfterRedirects),N0.targetSnapshot);this.events.next(h3)}));if(R2&&this.urlHandlingStrategy.shouldProcessUrl(V1.currentRawUrl)){const{id:N0,extractedUrl:h3,source:we,restoredState:Se,extras:$8}=V1,Ne=new Z0(N0,this.urlSerializer.serialize(h3),we,Se);this.events.next(Ne);const j8=$0(this.rootComponentType).snapshot;return this.currentTransition=Q={...V1,targetSnapshot:j8,urlAfterRedirects:h3,extras:{...$8,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h3,(0,L.of)(Q)}{const N0="";return this.events.next(new F4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),N0,H0.IgnoredByUrlHandlingStrategy)),V1.resolve(null),f1.w}}),(0,F0.M)(V1=>{const R2=new t4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot);this.events.next(R2)}),(0,P1.T)(V1=>(this.currentTransition=Q={...V1,guards:$6(V1.targetSnapshot,V1.currentSnapshot,this.rootContexts)},Q)),function Ce(x,N){return(0,_2.Z)(b=>{const{targetSnapshot:E,currentSnapshot:B,guards:{canActivateChecks:Q,canDeactivateChecks:C1}}=b;return 0===C1.length&&0===Q.length?(0,L.of)({...b,guardsResult:!0}):function ze(x,N,b,E){return(0,p.H)(x).pipe((0,_2.Z)(B=>function C8(x,N,b,E,B){const Q=N&&N.routeConfig?N.routeConfig.canDeactivate:null;if(!Q||0===Q.length)return(0,L.of)(!0);const C1=Q.map(G1=>{const V1=P4(N)??B,R2=q4(G1,V1);return l4(function M3(x){return x&&D(x.canDeactivate)}(R2)?R2.canDeactivate(x,N,b,E):(0,g.N4e)(V1,()=>R2(x,N,b,E))).pipe((0,Q2.$)())});return(0,L.of)(C1).pipe(n4())}(B.component,B.route,b,N,E)),(0,Q2.$)(B=>!0!==B,!0))}(C1,E,B,x).pipe((0,_2.Z)(G1=>G1&&function e1(x){return"boolean"==typeof x}(G1)?function u4(x,N,b,E){return(0,p.H)(N).pipe((0,_4.H)(B=>(0,c1.x)(function Ve(x,N){return null!==x&&N&&N(new c3(x)),(0,L.of)(!0)}(B.route.parent,E),function Be(x,N){return null!==x&&N&&N(new R6(x)),(0,L.of)(!0)}(B.route,E),function L8(x,N,b){const E=N[N.length-1],Q=N.slice(0,N.length-1).reverse().map(C1=>function i6(x){const N=x.routeConfig?x.routeConfig.canActivateChild:null;return N&&0!==N.length?{node:x,guards:N}:null}(C1)).filter(C1=>null!==C1).map(C1=>(0,K.v)(()=>{const G1=C1.guards.map(V1=>{const R2=P4(C1.node)??b,G0=q4(V1,R2);return l4(function k0(x){return x&&D(x.canActivateChild)}(G0)?G0.canActivateChild(E,x):(0,g.N4e)(R2,()=>G0(E,x))).pipe((0,Q2.$)())});return(0,L.of)(G1).pipe(n4())}));return(0,L.of)(Q).pipe(n4())}(x,B.path,b),function Me(x,N,b){const E=N.routeConfig?N.routeConfig.canActivate:null;if(!E||0===E.length)return(0,L.of)(!0);const B=E.map(Q=>(0,K.v)(()=>{const C1=P4(N)??b,G1=q4(Q,C1);return l4(function I2(x){return x&&D(x.canActivate)}(G1)?G1.canActivate(N,x):(0,g.N4e)(C1,()=>G1(N,x))).pipe((0,Q2.$)())}));return(0,L.of)(B).pipe(n4())}(x,B.route,b))),(0,Q2.$)(B=>!0!==B,!0))}(E,Q,x,N):(0,L.of)(G1)),(0,P1.T)(G1=>({...b,guardsResult:G1})))})}(this.environmentInjector,V1=>this.events.next(V1)),(0,F0.M)(V1=>{if(Q.guardsResult=V1.guardsResult,a4(V1.guardsResult))throw Le(0,V1.guardsResult);const R2=new E4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot,!!V1.guardsResult);this.events.next(R2)}),(0,v2.p)(V1=>!!V1.guardsResult||(this.cancelNavigationTransition(V1,"",c4.GuardRejected),!1)),ce(V1=>{if(V1.guards.canActivateChecks.length)return(0,L.of)(V1).pipe((0,F0.M)(R2=>{const G0=new V4(R2.id,this.urlSerializer.serialize(R2.extractedUrl),this.urlSerializer.serialize(R2.urlAfterRedirects),R2.targetSnapshot);this.events.next(G0)}),(0,O2.n)(R2=>{let G0=!1;return(0,L.of)(R2).pipe(function ye(x,N){return(0,_2.Z)(b=>{const{targetSnapshot:E,guards:{canActivateChecks:B}}=b;if(!B.length)return(0,L.of)(b);const Q=new Set(B.map(V1=>V1.route)),C1=new Set;for(const V1 of Q)if(!C1.has(V1))for(const R2 of s8(V1))C1.add(R2);let G1=0;return(0,p.H)(C1).pipe((0,_4.H)(V1=>Q.has(V1)?function W3(x,N,b,E){const B=x.routeConfig,Q=x._resolve;return void 0!==B?.title&&!z3(B)&&(Q[q2]=B.title),function B6(x,N,b,E){const B=Y0(x);if(0===B.length)return(0,L.of)({});const Q={};return(0,p.H)(B).pipe((0,_2.Z)(C1=>function ee(x,N,b,E){const B=P4(N)??E,Q=q4(x,B);return l4(Q.resolve?Q.resolve(N,b):(0,g.N4e)(B,()=>Q(N,b)))}(x[C1],N,b,E).pipe((0,Q2.$)(),(0,F0.M)(G1=>{Q[C1]=G1}))),e2(1),(0,A1.u)(Q),(0,b4.W)(C1=>X4(C1)?f1.w:m1(C1)))}(Q,x,N,E).pipe((0,P1.T)(C1=>(x._resolvedData=C1,x.data=C3(x,x.parent,b).resolve,null)))}(V1,E,x,N):(V1.data=C3(V1,V1.parent,x).resolve,(0,L.of)(void 0))),(0,F0.M)(()=>G1++),e2(1),(0,_2.Z)(V1=>G1===C1.size?(0,L.of)(b):f1.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,F0.M)({next:()=>G0=!0,complete:()=>{G0||this.cancelNavigationTransition(R2,"",c4.NoDataFromResolver)}}))}),(0,F0.M)(R2=>{const G0=new l0(R2.id,this.urlSerializer.serialize(R2.extractedUrl),this.urlSerializer.serialize(R2.urlAfterRedirects),R2.targetSnapshot);this.events.next(G0)}))}),ce(V1=>{const R2=G0=>{const N0=[];G0.routeConfig?.loadComponent&&!G0.routeConfig._loadedComponent&&N0.push(this.configLoader.loadComponent(G0.routeConfig).pipe((0,F0.M)(h3=>{G0.component=h3}),(0,P1.T)(()=>{})));for(const h3 of G0.children)N0.push(...R2(h3));return N0};return(0,A.z)(R2(V1.targetSnapshot.root)).pipe((0,y1.U)(null),(0,r2.s)(1))}),ce(()=>this.afterPreactivation()),(0,O2.n)(()=>{const{currentSnapshot:V1,targetSnapshot:R2}=Q,G0=this.createViewTransition?.(this.environmentInjector,V1.root,R2.root);return G0?(0,p.H)(G0).pipe((0,P1.T)(()=>Q)):(0,L.of)(Q)}),(0,P1.T)(V1=>{const R2=function a6(x,N,b){const E=U4(x,N._root,b?b._root:void 0);return new l6(E,N)}(b.routeReuseStrategy,V1.targetSnapshot,V1.currentRouterState);return this.currentTransition=Q={...V1,targetRouterState:R2},this.currentNavigation.targetRouterState=R2,Q}),(0,F0.M)(()=>{this.events.next(new y0)}),((x,N,b,E)=>(0,P1.T)(B=>(new y6(N,B.targetRouterState,B.currentRouterState,b,E).activate(x),B)))(this.rootContexts,b.routeReuseStrategy,V1=>this.events.next(V1),this.inputBindingEnabled),(0,r2.s)(1),(0,F0.M)({next:V1=>{C1=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new M4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects))),this.titleStrategy?.updateTitle(V1.targetRouterState.snapshot),V1.resolve(!0)},complete:()=>{C1=!0}}),(0,Z1.Q)(this.transitionAbortSubject.pipe((0,F0.M)(V1=>{throw V1}))),(0,F1.j)(()=>{!C1&&!G1&&this.cancelNavigationTransition(Q,"",c4.SupersededByNewNavigation),this.currentTransition?.id===Q.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,b4.W)(V1=>{if(G1=!0,n3(V1))this.events.next(new D0(Q.id,this.urlSerializer.serialize(Q.extractedUrl),V1.message,V1.cancellationCode)),function _3(x){return n3(x)&&a4(x.url)}(V1)?this.events.next(new O3(V1.url)):Q.resolve(!1);else{this.events.next(new B4(Q.id,this.urlSerializer.serialize(Q.extractedUrl),V1,Q.targetSnapshot??void 0));try{Q.resolve(b.errorHandler(V1))}catch(R2){this.options.resolveNavigationPromiseOnError?Q.resolve(!1):Q.reject(R2)}}return f1.w}))}))}cancelNavigationTransition(b,E,B){const Q=new D0(b.id,this.urlSerializer.serialize(b.extractedUrl),E,B);this.events.next(Q),b.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(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function q1(x){return x!==w0}let l2=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(x4),providedIn:"root"})}}return x})();class $2{shouldDetach(N){return!1}store(N,b){}shouldAttach(N){return!1}retrieve(N){return null}shouldReuseRoute(N,b){return N.routeConfig===b.routeConfig}}let x4=(()=>{class x extends $2{static{this.\u0275fac=(()=>{let b;return function(B){return(b||(b=g.xGo(x)))(B||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),o4=(()=>{class x{static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(P),providedIn:"root"})}}return x})(),P=(()=>{class x extends o4{constructor(){super(...arguments),this.location=(0,g.WQX)(c2.aZ),this.urlSerializer=(0,g.WQX)(u0),this.options=(0,g.WQX)(T3,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,g.WQX)(k6),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new L0,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=$0(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(b){return this.location.subscribe(E=>{"popstate"===E.type&&b(E.url,E.state)})}handleRouterEvent(b,E){if(b instanceof Z0)this.stateMemento=this.createStateMemento();else if(b instanceof F4)this.rawUrlTree=E.initialUrl;else if(b instanceof f4){if("eager"===this.urlUpdateStrategy&&!E.extras.skipLocationChange){const B=this.urlHandlingStrategy.merge(E.finalUrl,E.initialUrl);this.setBrowserUrl(B,E)}}else b instanceof y0?(this.currentUrlTree=E.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(E.finalUrl,E.initialUrl),this.routerState=E.targetRouterState,"deferred"===this.urlUpdateStrategy&&(E.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,E))):b instanceof D0&&(b.code===c4.GuardRejected||b.code===c4.NoDataFromResolver)?this.restoreHistory(E):b instanceof B4?this.restoreHistory(E,!0):b instanceof M4&&(this.lastSuccessfulId=b.id,this.currentPageId=this.browserPageId)}setBrowserUrl(b,E){const B=this.urlSerializer.serialize(b);if(this.location.isCurrentPathEqualTo(B)||E.extras.replaceUrl){const C1={...E.extras.state,...this.generateNgRouterState(E.id,this.browserPageId)};this.location.replaceState(B,"",C1)}else{const Q={...E.extras.state,...this.generateNgRouterState(E.id,this.browserPageId+1)};this.location.go(B,"",Q)}}restoreHistory(b,E=!1){if("computed"===this.canceledNavigationResolution){const Q=this.currentPageId-this.browserPageId;0!==Q?this.location.historyGo(Q):this.currentUrlTree===b.finalUrl&&0===Q&&(this.resetState(b),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(E&&this.resetState(b),this.resetUrlToCurrentUrlTree())}resetState(b){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,b.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(b,E){return"computed"===this.canceledNavigationResolution?{navigationId:b,\u0275routerPageId:E}:{navigationId:b}}static{this.\u0275fac=(()=>{let b;return function(B){return(b||(b=g.xGo(x)))(B||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();var X=function(x){return x[x.COMPLETE=0]="COMPLETE",x[x.FAILED=1]="FAILED",x[x.REDIRECTING=2]="REDIRECTING",x}(X||{});function W(x,N){x.events.pipe((0,v2.p)(b=>b instanceof M4||b instanceof D0||b instanceof B4||b instanceof F4),(0,P1.T)(b=>b instanceof M4||b instanceof F4?X.COMPLETE:b instanceof D0&&(b.code===c4.Redirect||b.code===c4.SupersededByNewNavigation)?X.REDIRECTING:X.FAILED),(0,v2.p)(b=>b!==X.REDIRECTING),(0,r2.s)(1)).subscribe(()=>{N()})}function t1(x){throw x}const p1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},T1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let M1=(()=>{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)(o4),this.options=(0,g.WQX)(T3,{optional:!0})||{},this.pendingTasks=(0,g.WQX)(g.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,g.WQX)(_1),this.urlSerializer=(0,g.WQX)(u0),this.location=(0,g.WQX)(c2.aZ),this.urlHandlingStrategy=(0,g.WQX)(k6),this._events=new s2.B,this.errorHandler=this.options.errorHandler||t1,this.navigated=!1,this.routeReuseStrategy=(0,g.WQX)(l2),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,g.WQX)(V6,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,g.WQX)(h6,{optional:!0}),this.eventsSubscription=new $1.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:b=>{this.console.warn(b)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const b=this.navigationTransitions.events.subscribe(E=>{try{const B=this.navigationTransitions.currentTransition,Q=this.navigationTransitions.currentNavigation;if(null!==B&&null!==Q)if(this.stateManager.handleRouterEvent(E,Q),E instanceof D0&&E.code!==c4.Redirect&&E.code!==c4.SupersededByNewNavigation)this.navigated=!0;else if(E instanceof M4)this.navigated=!0;else if(E instanceof O3){const C1=this.urlHandlingStrategy.merge(E.url,B.currentRawUrl),G1={info:B.extras.info,skipLocationChange:B.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||q1(B.source)};this.scheduleNavigation(C1,w0,null,G1,{resolve:B.resolve,reject:B.reject,promise:B.promise})}(function y2(x){return!(x instanceof y0||x instanceof O3)})(E)&&this._events.next(E)}catch(B){this.navigationTransitions.transitionAbortSubject.next(B)}});this.eventsSubscription.add(b)}resetRootComponentType(b){this.routerState.root.component=b,this.navigationTransitions.rootComponentType=b}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),w0,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((b,E)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(b,"popstate",E)},0)})}navigateToSyncWithBrowser(b,E,B){const Q={replaceUrl:!0},C1=B?.navigationId?B:null;if(B){const V1={...B};delete V1.navigationId,delete V1.\u0275routerPageId,0!==Object.keys(V1).length&&(Q.state=V1)}const G1=this.parseUrl(b);this.scheduleNavigation(G1,E,C1,Q)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(b){this.config=b.map(Q4),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(b,E={}){const{relativeTo:B,queryParams:Q,fragment:C1,queryParamsHandling:G1,preserveFragment:V1}=E,R2=V1?this.currentUrlTree.fragment:C1;let N0,G0=null;switch(G1){case"merge":G0={...this.currentUrlTree.queryParams,...Q};break;case"preserve":G0=this.currentUrlTree.queryParams;break;default:G0=Q||null}null!==G0&&(G0=this.removeEmptyProps(G0));try{N0=n6(B?B.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof b[0]||!b[0].startsWith("/"))&&(b=[]),N0=this.currentUrlTree.root}return j4(N0,b,G0,R2??null)}navigateByUrl(b,E={skipLocationChange:!1}){const B=a4(b)?b:this.parseUrl(b),Q=this.urlHandlingStrategy.merge(B,this.rawUrlTree);return this.scheduleNavigation(Q,w0,null,E)}navigate(b,E={skipLocationChange:!1}){return function U1(x){for(let N=0;N(null!=Q&&(E[B]=Q),E),{})}scheduleNavigation(b,E,B,Q,C1){if(this.disposed)return Promise.resolve(!1);let G1,V1,R2;C1?(G1=C1.resolve,V1=C1.reject,R2=C1.promise):R2=new Promise((N0,h3)=>{G1=N0,V1=h3});const G0=this.pendingTasks.add();return W(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(G0))}),this.navigationTransitions.handleNavigationRequest({source:E,restoredState:B,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:b,extras:Q,resolve:G1,reject:V1,promise:R2,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),R2.catch(N0=>Promise.reject(N0))}static{this.\u0275fac=function(E){return new(E||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),k2=(()=>{class x{constructor(b,E,B,Q,C1,G1){this.router=b,this.route=E,this.tabIndexAttribute=B,this.renderer=Q,this.el=C1,this.locationStrategy=G1,this.href=null,this.commands=null,this.onChanges=new s2.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const V1=C1.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===V1||"area"===V1,this.isAnchorElement?this.subscription=b.events.subscribe(R2=>{R2 instanceof M4&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(b){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",b)}ngOnChanges(b){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(b){null!=b?(this.commands=Array.isArray(b)?b:[b],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(b,E,B,Q,C1){const G1=this.urlTree;return!!(null===G1||this.isAnchorElement&&(0!==b||E||B||Q||C1||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(G1,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const b=this.urlTree;this.href=null!==b&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(b)):null;const E=null===this.href?null:(0,g.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",E)}applyAttributeValue(b,E){const B=this.renderer,Q=this.el.nativeElement;null!==E?B.setAttribute(Q,b,E):B.removeAttribute(Q,b)}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(E){return new(E||x)(g.rXU(M1),g.rXU(B3),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(E,B){1&E&&g.bIt("click",function(C1){return B.onClick(C1.button,C1.ctrlKey,C1.shiftKey,C1.altKey,C1.metaKey)}),2&E&&g.BMQ("target",B.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 X0{}let Q0=(()=>{class x{constructor(b,E,B,Q,C1){this.router=b,this.injector=B,this.preloadingStrategy=Q,this.loader=C1}setUpPreloading(){this.subscription=this.router.events.pipe((0,v2.p)(b=>b instanceof M4),(0,_4.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(b,E){const B=[];for(const Q of E){Q.providers&&!Q._injector&&(Q._injector=(0,g.Ol2)(Q.providers,b,`Route: ${Q.path}`));const C1=Q._injector??b,G1=Q._loadedInjector??C1;(Q.loadChildren&&!Q._loadedRoutes&&void 0===Q.canLoad||Q.loadComponent&&!Q._loadedComponent)&&B.push(this.preloadConfig(C1,Q)),(Q.children||Q._loadedRoutes)&&B.push(this.processRoutes(G1,Q.children??Q._loadedRoutes))}return(0,p.H)(B).pipe((0,Z.U)())}preloadConfig(b,E){return this.preloadingStrategy.preload(E,()=>{let B;B=E.loadChildren&&void 0===E.canLoad?this.loader.loadChildren(b,E):(0,L.of)(null);const Q=B.pipe((0,_2.Z)(C1=>null===C1?(0,L.of)(void 0):(E._loadedRoutes=C1.routes,E._loadedInjector=C1.injector,this.processRoutes(C1.injector??b,C1.routes))));if(E.loadComponent&&!E._loadedComponent){const C1=this.loader.loadComponent(E);return(0,p.H)([Q,C1]).pipe((0,Z.U)())}return Q})}static{this.\u0275fac=function(E){return new(E||x)(g.KVO(M1),g.KVO(g.Ql9),g.KVO(g.uvJ),g.KVO(X0),g.KVO(R8))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const Z2=new g.nKC("");let s3=(()=>{class x{constructor(b,E,B,Q,C1={}){this.urlSerializer=b,this.transitions=E,this.viewportScroller=B,this.zone=Q,this.options=C1,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,g.WQX)(g.uvJ),C1.scrollPositionRestoration||="disabled",C1.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(b=>{b instanceof Z0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=b.navigationTrigger,this.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof M4?(this.lastId=b.id,this.scheduleScrollEvent(b,this.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof F4&&b.code===H0.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(b,this.urlSerializer.parse(b.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(b=>{b instanceof p6&&(b.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(b.position):b.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(b.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(b,E){var B=this;this.zone.runOutsideAngular((0,u.A)(function*(){yield new Promise(Q=>{setTimeout(()=>{Q()}),(0,g.mal)(()=>{Q()},{injector:B.environmentInjector})}),B.zone.run(()=>{B.transitions.events.next(new p6(b,"popstate"===B.lastSource?B.store[B.restoredId]:null,E))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(E){g.QTQ()}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function s0(x,N){return{\u0275kind:x,\u0275providers:N}}function w5(){const x=(0,g.WQX)(g.zZn);return N=>{const b=x.get(g.o8S);if(N!==b.components[0])return;const E=x.get(M1),B=x.get(p0);1===x.get(h1)&&E.initialNavigation(),x.get(ne,null,g.$GK.Optional)?.setUpPreloading(),x.get(Z2,null,g.$GK.Optional)?.init(),E.resetRootComponentType(b.componentTypes[0]),B.closed||(B.next(),B.complete(),B.unsubscribe())}}const p0=new g.nKC("",{factory:()=>new s2.B}),h1=new g.nKC("",{providedIn:"root",factory:()=>1}),ne=new g.nKC("");function a8(x){return s0(0,[{provide:ne,useExisting:Q0},{provide:X0,useExisting:x}])}function R3(x){return s0(9,[{provide:w,useValue:T},{provide:q,useValue:{skipNextTransition:!!x?.skipInitialTransition,...x}}])}const E2=new g.nKC("ROUTER_FORROOT_GUARD"),I8=[c2.aZ,{provide:u0,useClass:x0},M1,J4,{provide:B3,useFactory:function K4(x){return x.routerState.root},deps:[M1]},R8,[]];let H2=(()=>{class x{constructor(b){}static forRoot(b,E){return{ngModule:x,providers:[I8,[],{provide:V6,multi:!0,useValue:b},{provide:E2,useFactory:N7,deps:[[M1,new g.Xx1,new g.kdw]]},{provide:T3,useValue:E||{}},E?.useHash?{provide:c2.hb,useClass:c2.fw}:{provide:c2.hb,useClass:c2.Sm},{provide:Z2,useFactory:()=>{const x=(0,g.WQX)(c2.Xr),N=(0,g.WQX)(g.SKi),b=(0,g.WQX)(T3),E=(0,g.WQX)(_1),B=(0,g.WQX)(u0);return b.scrollOffset&&x.setOffset(b.scrollOffset),new s3(B,E,x,N,b)}},E?.preloadingStrategy?a8(E.preloadingStrategy).\u0275providers:[],E?.initialNavigation?E5(E):[],E?.bindToComponentInputs?s0(8,[I6,{provide:h6,useExisting:I6}]).\u0275providers:[],E?.enableViewTransitions?R3().\u0275providers:[],[{provide:D5,useFactory:w5},{provide:g.iLQ,multi:!0,useExisting:D5}]]}}static forChild(b){return{ngModule:x,providers:[{provide:V6,multi:!0,useValue:b}]}}static{this.\u0275fac=function(E){return new(E||x)(g.KVO(E2,8))}}static{this.\u0275mod=g.$C({type:x})}static{this.\u0275inj=g.G2t({})}}return x})();function N7(x){return"guarded"}function E5(x){return["disabled"===x.initialNavigation?s0(3,[{provide:g.hnV,multi:!0,useFactory:()=>{const N=(0,g.WQX)(M1);return()=>{N.setUpLocationChangeListener()}}},{provide:h1,useValue:2}]).\u0275providers:[],"enabledBlocking"===x.initialNavigation?s0(2,[{provide:h1,useValue:0},{provide:g.hnV,multi:!0,deps:[g.zZn],useFactory:N=>{const b=N.get(c2.hj,Promise.resolve());return()=>b.then(()=>new Promise(E=>{const B=N.get(M1),Q=N.get(p0);W(B,()=>{E(!0)}),N.get(_1).afterPreactivation=()=>(E(!0),Q.closed?(0,L.of)(void 0):Q),B.initialNavigation()}))}}]).\u0275providers:[]]}const D5=new g.nKC("")},60:(k1,r1,v)=>{"use strict";v.d(r1,{aY:()=>H,d0:()=>l2,VA:()=>$2,dX:()=>o4});var u=v(4438);function g(P,X,W){return(X=function V(P){var X=function A(P,X){if("object"!=typeof P||!P)return P;var W=P[Symbol.toPrimitive];if(void 0!==W){var t1=W.call(P,X||"default");if("object"!=typeof t1)return t1;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:W,enumerable:!0,configurable:!0,writable:!0}):P[X]=W,P}function p(P,X){var W=Object.keys(P);if(Object.getOwnPropertySymbols){var t1=Object.getOwnPropertySymbols(P);X&&(t1=t1.filter(function(p1){return Object.getOwnPropertyDescriptor(P,p1).enumerable})),W.push.apply(W,t1)}return W}function L(P){for(var X=1;X{};let L1={},j={},l1=null,m1={mark:K,measure:K};try{typeof window<"u"&&(L1=window),typeof document<"u"&&(j=document),typeof MutationObserver<"u"&&(l1=MutationObserver),typeof performance<"u"&&(m1=performance)}catch{}const{userAgent:f1=""}=L1.navigator||{},$1=L1,g1=j,H1=l1,d2=m1,s2=!!g1.documentElement&&!!g1.head&&"function"==typeof g1.addEventListener&&"function"==typeof g1.createElement,c2=~f1.indexOf("MSIE")||~f1.indexOf("Trident/");var r2={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"}},v2=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],_2="classic",Q2="duotone",b4=[_2,Q2,"sharp","sharp-duotone"],y1=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}]]),h2=["fak","fa-kit","fakd","fa-kit-duotone"],F1=["fak","fakd"],X1={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},q2=["fak","fa-kit","fakd","fa-kit-duotone"],h0={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],l4=m2.concat([11,12,13,14,15,16,17,18,19,20]),C4=[...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",X1.GROUP,X1.SWAP_OPACITY,X1.PRIMARY,X1.SECONDARY].concat(m2.map(P=>"".concat(P,"x"))).concat(l4.map(P=>"w-".concat(P)));const W4="___FONT_AWESOME___",J6=16,G4="fa",e0="svg-inline--fa",r0="data-fa-i2svg",a3="data-fa-pseudo-element",$4="data-fa-pseudo-element-pending",L0="data-prefix",U0="data-icon",d4="fontawesome-i2svg",y3="async",c0=["HTML","HEAD","STYLE","SCRIPT"],o3=(()=>{try{return!0}catch{return!1}})();function u0(P){return new Proxy(P,{get:(X,W)=>W in X?X[W]:X[_2]})}const x0=L({},r2);x0[_2]=L(L(L(L({},{"fa-duotone":"duotone"}),r2[_2]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const L3=u0(x0),I0=L({},{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"}});I0[_2]=L(L(L(L({},{duotone:"fad"}),I0[_2]),{kit:"fak"}),{"kit-duotone":"fakd"});const k4=u0(I0),g3=L({},h0);g3[_2]=L(L({},g3[_2]),{fak:"fa-kit"});const i3=u0(g3),X2=L({},{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"}});X2[_2]=L(L({},X2[_2]),{"fa-kit":"fak"}),u0(X2);const z1=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,u1="fa-layers-text",E1=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,x2=(u0(L({},{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"]),P0={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},d0=["kit",...C4],s4=$1.FontAwesomeConfig||{};g1&&"function"==typeof g1.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[W,t1]=X;const p1=function z4(P){return""===P||"false"!==P&&("true"===P||P)}(function S3(P){var X=g1.querySelector("script["+P+"]");if(X)return X.getAttribute(P)}(W));null!=p1&&(s4[t1]=p1)});const p4={styleDefault:"solid",familyDefault:_2,cssPrefix:G4,replacementClass:e0,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};s4.familyPrefix&&(s4.cssPrefix=s4.familyPrefix);const y4=L(L({},p4),s4);y4.autoReplaceSvg||(y4.observeMutations=!1);const D2={};Object.keys(p4).forEach(P=>{Object.defineProperty(D2,P,{enumerable:!0,set:function(X){y4[P]=X,C0.forEach(W=>W(D2))},get:function(){return y4[P]}})}),Object.defineProperty(D2,"familyPrefix",{enumerable:!0,set:function(P){y4.cssPrefix=P,C0.forEach(X=>X(D2))},get:function(){return y4.cssPrefix}}),$1.FontAwesomeConfig=D2;const C0=[],I4=J6,a4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},n6="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function j4(){let P=12,X="";for(;P-- >0;)X+=n6[62*Math.random()|0];return X}function b0(P){const X=[];for(let W=(P||[]).length>>>0;W--;)X[W]=P[W];return X}function $3(P){return P.classList?b0(P.classList):(P.getAttribute("class")||"").split(" ").filter(X=>X)}function O4(P){return"".concat(P).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function F3(P){return Object.keys(P||{}).reduce((X,W)=>X+"".concat(W,": ").concat(P[W].trim(),";"),"")}function j3(P){return P.size!==a4.size||P.x!==a4.x||P.y!==a4.y||P.rotate!==a4.rotate||P.flipX||P.flipY}var a1=':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 x1(){const P=G4,X=e0,W=D2.cssPrefix,t1=D2.replacementClass;let p1=a1;if(W!==P||t1!==X){const T1=new RegExp("\\.".concat(P,"\\-"),"g"),M1=new RegExp("\\--".concat(P,"\\-"),"g"),U1=new RegExp("\\.".concat(X),"g");p1=p1.replace(T1,".".concat(W,"-")).replace(M1,"--".concat(W,"-")).replace(U1,".".concat(t1))}return p1}let v1=!1;function W1(){D2.autoAddCss&&!v1&&(function x6(P){if(!P||!s2)return;const X=g1.createElement("style");X.setAttribute("type","text/css"),X.innerHTML=P;const W=g1.head.childNodes;let t1=null;for(let p1=W.length-1;p1>-1;p1--){const T1=W[p1],M1=(T1.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(M1)>-1&&(t1=T1)}g1.head.insertBefore(X,t1)}(x1()),v1=!0)}var Y1={mixout:()=>({dom:{css:x1,insertCss:W1}}),hooks:()=>({beforeDOMElementCreation(){W1()},beforeI2svg(){W1()}})};const o2=$1||{};o2[W4]||(o2[W4]={}),o2[W4].styles||(o2[W4].styles={}),o2[W4].hooks||(o2[W4].hooks={}),o2[W4].shims||(o2[W4].shims=[]);var f2=o2[W4];const z0=[],Y2=function(){g1.removeEventListener("DOMContentLoaded",Y2),w0=1,z0.map(P=>P())};let w0=!1;function m0(P){const{tag:X,attributes:W={},children:t1=[]}=P;return"string"==typeof P?O4(P):"<".concat(X," ").concat(function b1(P){return Object.keys(P||{}).reduce((X,W)=>X+"".concat(W,'="').concat(O4(P[W]),'" '),"").trim()}(W),">").concat(t1.map(m0).join(""),"")}function Z0(P,X,W){if(P&&P[X]&&P[X][W])return{prefix:X,iconName:W,icon:P[X][W]}}s2&&(w0=(g1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g1.readyState),w0||g1.addEventListener("DOMContentLoaded",Y2));var c4=function(X,W,t1,p1){var y2,k2,T2,T1=Object.keys(X),M1=T1.length,U1=void 0!==p1?function(X,W){return function(t1,p1,T1,M1){return X.call(W,t1,p1,T1,M1)}}(W,p1):W;for(void 0===t1?(y2=1,T2=X[T1[0]]):(y2=0,T2=t1);y2=55296&&p1<=56319&&W{const t1=P[W];return t1.icon?X[t1.iconName]=t1.icon:X[W]=t1,X},{})}function f4(P,X){let W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:t1=!1}=W,p1=B4(X);"function"!=typeof f2.hooks.addPack||t1?f2.styles[P]=L(L({},f2.styles[P]||{}),p1):f2.hooks.addPack(P,B4(X)),"fas"===P&&f4("fa",X)}const{styles:E4,shims:V4}=f2,l0=Object.keys(i3),P2=l0.reduce((P,X)=>(P[X]=Object.keys(i3[X]),P),{});let h8=null,c3={},m6={},R6={},q8={},p6={};const J2=()=>{const P=t1=>c4(E4,(p1,T1,M1)=>(p1[M1]=c4(T1,t1,{}),p1),{});c3=P((t1,p1,T1)=>(p1[3]&&(t1[p1[3]]=T1),p1[2]&&p1[2].filter(U1=>"number"==typeof U1).forEach(U1=>{t1[U1.toString(16)]=T1}),t1)),m6=P((t1,p1,T1)=>(t1[T1]=T1,p1[2]&&p1[2].filter(U1=>"string"==typeof U1).forEach(U1=>{t1[U1]=T1}),t1)),p6=P((t1,p1,T1)=>{const M1=p1[2];return t1[T1]=T1,M1.forEach(U1=>{t1[U1]=T1}),t1});const X="far"in E4||D2.autoFetchSvg,W=c4(V4,(t1,p1)=>{const T1=p1[0];let M1=p1[1];const U1=p1[2];return"far"===M1&&!X&&(M1="fas"),"string"==typeof T1&&(t1.names[T1]={prefix:M1,iconName:U1}),"number"==typeof T1&&(t1.unicodes[T1.toString(16)]={prefix:M1,iconName:U1}),t1},{names:{},unicodes:{}});R6=W.names,q8=W.unicodes,h8=$0(D2.styleDefault,{family:D2.familyDefault})};function g2(P,X){return(c3[P]||{})[X]}function t3(P,X){return(p6[P]||{})[X]}function A6(P){return R6[P]||{prefix:null,iconName:null}}function h4(){return h8}(function A2(P){C0.push(P)})(P=>{h8=$0(P.styleDefault,{family:D2.familyDefault})}),J2();const r3=()=>({prefix:null,iconName:null,rest:[]});function $0(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:W=_2}=X;return W!==Q2||P?k4[W][P]||k4[W][L3[W][P]]||(P in f2.styles?P:null)||null:"fad"}function B3(P){return P.sort().filter((X,W,t1)=>t1.indexOf(X)===W)}function C3(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:W=!1}=X;let t1=null;const p1=Y0.concat(q2),T1=B3(P.filter(M0=>p1.includes(M0))),M1=B3(P.filter(M0=>!Y0.includes(M0))),U1=T1.filter(M0=>(t1=M0,!v2.includes(M0))),[y2=null]=U1,k2=function l6(P){let X=_2;const W=l0.reduce((t1,p1)=>(t1[p1]="".concat(D2.cssPrefix,"-").concat(p1),t1),{});return b4.forEach(t1=>{(P.includes(W[t1])||P.some(p1=>P2[t1].includes(p1)))&&(X=t1)}),X}(T1),T2=L(L({},function X8(P){let X=[],W=null;return P.forEach(t1=>{const p1=function O3(P,X){const W=X.split("-"),t1=W[0],p1=W.slice(1).join("-");return t1!==P||""===p1||function y0(P){return~d0.indexOf(P)}(p1)?null:p1}(D2.cssPrefix,t1);p1?W=p1:t1&&X.push(t1)}),{iconName:W,rest:X}}(M1)),{},{prefix:$0(y2,{family:k2})});return L(L(L({},T2),function w4(P){const{values:X,family:W,canonical:t1,givenPrefix:p1="",styles:T1={},config:M1={}}=P,U1=W===Q2,y2=X.includes("fa-duotone")||X.includes("fad");if(!U1&&(y2||"duotone"===M1.familyDefault||("fad"===t1.prefix||"fa-duotone"===t1.prefix))&&(t1.prefix="fad"),(X.includes("fa-brands")||X.includes("fab"))&&(t1.prefix="fab"),!t1.prefix&&V3.includes(W)&&(Object.keys(T1).find(X0=>Z6.includes(X0))||M1.autoFetchSvg)){const X0=y1.get(W).defaultShortPrefixId;t1.prefix=X0,t1.iconName=t3(t1.prefix,t1.iconName)||t1.iconName}return("fa"===t1.prefix||"fa"===p1)&&(t1.prefix=h4()||"fas"),t1}({values:P,family:k2,styles:E4,config:D2,canonical:T2,givenPrefix:t1})),function Q6(P,X,W){let{prefix:t1,iconName:p1}=W;if(P||!t1||!p1)return{prefix:t1,iconName:p1};const T1="fa"===X?A6(p1):{},M1=t3(t1,p1);return p1=T1.iconName||M1||p1,t1=T1.prefix||t1,"far"===t1&&!E4.far&&E4.fas&&!D2.autoFetchSvg&&(t1="fas"),{prefix:t1,iconName:p1}}(W,t1,T2))}const V3=b4.filter(P=>P!==_2||P!==Q2),Z6=Object.keys(h0).filter(P=>P!==_2).map(P=>Object.keys(h0[P])).flat();let f0=[],z3={};const E3={},s6=Object.keys(E3);function I6(P,X){for(var W=arguments.length,t1=new Array(W>2?W-2:0),p1=2;p1{X=M1.apply(null,[X,...t1])}),X}function a6(P){for(var X=arguments.length,W=new Array(X>1?X-1:0),t1=1;t1{T1.apply(null,W)})}function U4(){const P=arguments[0],X=Array.prototype.slice.call(arguments,1);return E3[P]?E3[P].apply(null,X):void 0}function q0(P){"fa"===P.prefix&&(P.prefix="fas");let{iconName:X}=P;const W=P.prefix||h4();if(X)return X=t3(W,X)||X,Z0(g6.definitions,W,X)||Z0(f2.styles,W,X)}const g6=new class U3{constructor(){this.definitions={}}add(){for(var X=arguments.length,W=new Array(X),t1=0;t1{this.definitions[T1]=L(L({},this.definitions[T1]||{}),p1[T1]),f4(T1,p1[T1]);const M1=i3[_2][T1];M1&&f4(M1,p1[T1]),J2()})}reset(){this.definitions={}}_pullDefinitions(X,W){const t1=W.prefix&&W.iconName&&W.icon?{0:W}:W;return Object.keys(t1).map(p1=>{const{prefix:T1,iconName:M1,icon:U1}=t1[p1],y2=U1[2];X[T1]||(X[T1]={}),y2.length>0&&y2.forEach(k2=>{"string"==typeof k2&&(X[T1][k2]=U1)}),X[T1][M1]=U1}),X}},_3={noAuto:()=>{D2.autoReplaceSvg=!1,D2.observeMutations=!1,a6("noAuto")},config:D2,dom:{i2svg:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s2?(a6("beforeI2svg",P),U4("pseudoElements2svg",P),U4("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===D2.autoReplaceSvg&&(D2.autoReplaceSvg=!0),D2.observeMutations=!0,function t0(P){s2&&(w0?setTimeout(P,0):z0.push(P))}(()=>{n3({autoReplaceSvgRoot:X}),a6("watch",P)})}},parse:{icon:P=>{if(null===P)return null;if("object"==typeof P&&P.prefix&&P.iconName)return{prefix:P.prefix,iconName:t3(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],W=$0(P[0]);return{prefix:W,iconName:t3(W,X)||X}}if("string"==typeof P&&(P.indexOf("".concat(D2.cssPrefix,"-"))>-1||P.match(z1))){const X=C3(P.split(" "),{skipLookups:!0});return{prefix:X.prefix||h4(),iconName:t3(X.prefix,X.iconName)||X.iconName}}if("string"==typeof P){const X=h4();return{prefix:X,iconName:t3(X,P)||P}}}},library:g6,findIconDefinition:q0,toHtml:m0},n3=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X=g1}=P;(Object.keys(f2.styles).length>0||D2.autoFetchSvg)&&s2&&D2.autoReplaceSvg&&_3.dom.i2svg({node:X})};function Y4(P,X){return Object.defineProperty(P,"abstract",{get:X}),Object.defineProperty(P,"html",{get:function(){return P.abstract.map(W=>m0(W))}}),Object.defineProperty(P,"node",{get:function(){if(!s2)return;const W=g1.createElement("div");return W.innerHTML=P.html,W.children}}),P}function k3(P){const{icons:{main:X,mask:W},prefix:t1,iconName:p1,transform:T1,symbol:M1,title:U1,maskId:y2,titleId:k2,extra:T2,watchable:M0=!1}=P,{width:X0,height:W0}=W.found?W:X,v4=F1.includes(t1),Q0=[D2.replacementClass,p1?"".concat(D2.cssPrefix,"-").concat(p1):""].filter(n0=>-1===T2.classes.indexOf(n0)).filter(n0=>""!==n0||!!n0).concat(T2.classes).join(" ");let Z2={children:[],attributes:L(L({},T2.attributes),{},{"data-prefix":t1,"data-icon":p1,class:Q0,role:T2.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(X0," ").concat(W0)})};const s3=v4&&!~T2.classes.indexOf("fa-fw")?{width:"".concat(X0/W0*16*.0625,"em")}:{};M0&&(Z2.attributes[r0]=""),U1&&(Z2.children.push({tag:"title",attributes:{id:Z2.attributes["aria-labelledby"]||"title-".concat(k2||j4())},children:[U1]}),delete Z2.attributes.title);const C2=L(L({},Z2),{},{prefix:t1,iconName:p1,main:X,mask:W,maskId:y2,transform:T1,symbol:M1,styles:L(L({},s3),T2.styles)}),{children:K4,attributes:s0}=W.found&&X.found?U4("generateAbstractMask",C2)||{children:[],attributes:{}}:U4("generateAbstractIcon",C2)||{children:[],attributes:{}};return C2.children=K4,C2.attributes=s0,M1?function K6(P){let{prefix:X,iconName:W,children:t1,attributes:p1,symbol:T1}=P;const M1=!0===T1?"".concat(X,"-").concat(D2.cssPrefix,"-").concat(W):T1;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:L(L({},p1),{},{id:M1}),children:t1}]}]}(C2):function v3(P){let{children:X,main:W,mask:t1,attributes:p1,styles:T1,transform:M1}=P;if(j3(M1)&&W.found&&!t1.found){const{width:U1,height:y2}=W,k2={x:U1/y2/2,y:.5};p1.style=F3(L(L({},T1),{},{"transform-origin":"".concat(k2.x+M1.x/16,"em ").concat(k2.y+M1.y/16,"em")}))}return[{tag:"svg",attributes:p1,children:X}]}(C2)}function T0(P){const{content:X,width:W,height:t1,transform:p1,title:T1,extra:M1,watchable:U1=!1}=P,y2=L(L(L({},M1.attributes),T1?{title:T1}:{}),{},{class:M1.classes.join(" ")});U1&&(y2[r0]="");const k2=L({},M1.styles);j3(p1)&&(k2.transform=function T6(P){let{transform:X,width:W=J6,height:t1=J6,startCentered:p1=!1}=P,T1="";return T1+=p1&&c2?"translate(".concat(X.x/I4-W/2,"em, ").concat(X.y/I4-t1/2,"em) "):p1?"translate(calc(-50% + ".concat(X.x/I4,"em), calc(-50% + ").concat(X.y/I4,"em)) "):"translate(".concat(X.x/I4,"em, ").concat(X.y/I4,"em) "),T1+="scale(".concat(X.size/I4*(X.flipX?-1:1),", ").concat(X.size/I4*(X.flipY?-1:1),") "),T1+="rotate(".concat(X.rotate,"deg) "),T1}({transform:p1,startCentered:!0,width:W,height:t1}),k2["-webkit-transform"]=k2.transform);const T2=F3(k2);T2.length>0&&(y2.style=T2);const M0=[];return M0.push({tag:"span",attributes:y2,children:[X]}),T1&&M0.push({tag:"span",attributes:{class:"sr-only"},children:[T1]}),M0}const{styles:P6}=f2;function _8(P){const X=P[0],W=P[1],[t1]=P.slice(4);let p1=null;return p1=Array.isArray(t1)?{tag:"g",attributes:{class:"".concat(D2.cssPrefix,"-").concat(P0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(D2.cssPrefix,"-").concat(P0.SECONDARY),fill:"currentColor",d:t1[0]}},{tag:"path",attributes:{class:"".concat(D2.cssPrefix,"-").concat(P0.PRIMARY),fill:"currentColor",d:t1[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:t1}},{found:!0,width:X,height:W,icon:p1}}const l3={found:!1,width:512,height:512};function Q4(P,X){let W=X;return"fa"===X&&null!==D2.styleDefault&&(X=h4()),new Promise((t1,p1)=>{if("fa"===W){const T1=A6(P)||{};P=T1.iconName||P,X=T1.prefix||X}if(P&&X&&P6[X]&&P6[X][P])return t1(_8(P6[X][P]));(function b6(P,X){!o3&&!D2.showMissingIcons&&P&&console.error('Icon with name "'.concat(P,'" and prefix "').concat(X,'" is missing.'))})(P,X),t1(L(L({},l3),{},{icon:D2.showMissingIcons&&P&&U4("missingIconAbstract")||{}}))})}const d3=()=>{},e8=D2.measurePerformance&&d2&&d2.mark&&d2.measure?d2:{mark:d3,measure:d3},P4='FA "6.7.2"',f3=P=>{e8.mark("".concat(P4," ").concat(P," ends")),e8.measure("".concat(P4," ").concat(P),"".concat(P4," ").concat(P," begins"),"".concat(P4," ").concat(P," ends"))};var y6={begin:P=>(e8.mark("".concat(P4," ").concat(P," begins")),()=>f3(P)),end:f3};const G3=()=>{};function o6(P){return"string"==typeof(P.getAttribute?P.getAttribute(r0):null)}function Y3(P){return g1.createElementNS("http://www.w3.org/2000/svg",P)}function r6(P){return g1.createElement(P)}function U(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:W=("svg"===P.tag?Y3:r6)}=X;if("string"==typeof P)return g1.createTextNode(P);const t1=W(P.tag);return Object.keys(P.attributes||[]).forEach(function(T1){t1.setAttribute(T1,P.attributes[T1])}),(P.children||[]).forEach(function(T1){t1.appendChild(U(T1,{ceFn:W}))}),t1}const D={replace:function(P){const X=P[0];if(X.parentNode)if(P[1].forEach(W=>{X.parentNode.insertBefore(U(W),X)}),null===X.getAttribute(r0)&&D2.keepOriginalSource){let W=g1.createComment(function G(P){let X=" ".concat(P.outerHTML," ");return X="".concat(X,"Font Awesome fontawesome.com "),X}(X));X.parentNode.replaceChild(W,X)}else X.remove()},nest:function(P){const X=P[0],W=P[1];if(~$3(X).indexOf(D2.replacementClass))return D.replace(P);const t1=new RegExp("".concat(D2.cssPrefix,"-.*"));if(delete W[0].attributes.id,W[0].attributes.class){const T1=W[0].attributes.class.split(" ").reduce((M1,U1)=>(U1===D2.replacementClass||U1.match(t1)?M1.toSvg.push(U1):M1.toNode.push(U1),M1),{toNode:[],toSvg:[]});W[0].attributes.class=T1.toSvg.join(" "),0===T1.toNode.length?X.removeAttribute("class"):X.setAttribute("class",T1.toNode.join(" "))}const p1=W.map(T1=>m0(T1)).join("\n");X.setAttribute(r0,""),X.innerHTML=p1}};function e1(P){P()}function w1(P,X){const W="function"==typeof X?X:G3;if(0===P.length)W();else{let t1=e1;D2.mutateApproach===y3&&(t1=$1.requestAnimationFrame||e1),t1(()=>{const p1=function q4(){return!0===D2.autoReplaceSvg?D.replace:D[D2.autoReplaceSvg]||D.replace}(),T1=y6.begin("mutate");P.map(p1),T1(),W()})}}let I2=!1;function k0(){I2=!0}function M3(){I2=!1}let q3=null;function X4(P){if(!H1||!D2.observeMutations)return;const{treeCallback:X=G3,nodeCallback:W=G3,pseudoElementsCallback:t1=G3,observeMutationsRoot:p1=g1}=P;q3=new H1(T1=>{if(I2)return;const M1=h4();b0(T1).forEach(U1=>{if("childList"===U1.type&&U1.addedNodes.length>0&&!o6(U1.addedNodes[0])&&(D2.searchPseudoElements&&t1(U1.target),X(U1.target)),"attributes"===U1.type&&U1.target.parentNode&&D2.searchPseudoElements&&t1(U1.target.parentNode),"attributes"===U1.type&&o6(U1.target)&&~x2.indexOf(U1.attributeName))if("class"===U1.attributeName&&function $6(P){const X=P.getAttribute?P.getAttribute(L0):null,W=P.getAttribute?P.getAttribute(U0):null;return X&&W}(U1.target)){const{prefix:y2,iconName:k2}=C3($3(U1.target));U1.target.setAttribute(L0,y2||M1),k2&&U1.target.setAttribute(U0,k2)}else(function i6(P){return P&&P.classList&&P.classList.contains&&P.classList.contains(D2.replacementClass)})(U1.target)&&W(U1.target)})}),s2&&q3.observe(p1,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Be(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:W,prefix:t1,rest:p1}=function Ce(P){const X=P.getAttribute("data-prefix"),W=P.getAttribute("data-icon"),t1=void 0!==P.innerText?P.innerText.trim():"";let p1=C3($3(P));return p1.prefix||(p1.prefix=h4()),X&&W&&(p1.prefix=X,p1.iconName=W),p1.iconName&&p1.prefix||(p1.prefix&&t1.length>0&&(p1.iconName=function J4(P,X){return(m6[P]||{})[X]}(p1.prefix,P.innerText)||g2(p1.prefix,D0(P.innerText))),!p1.iconName&&D2.autoFetchSvg&&P.firstChild&&P.firstChild.nodeType===Node.TEXT_NODE&&(p1.iconName=P.firstChild.data)),p1}(P),T1=function ze(P){const X=b0(P.attributes).reduce((p1,T1)=>("class"!==p1.name&&"style"!==p1.name&&(p1[T1.name]=T1.value),p1),{}),W=P.getAttribute("title"),t1=P.getAttribute("data-fa-title-id");return D2.autoA11y&&(W?X["aria-labelledby"]="".concat(D2.replacementClass,"-title-").concat(t1||j4()):(X["aria-hidden"]="true",X.focusable="false")),X}(P),M1=I6("parseNodeAttributes",{},P);let U1=X.styleParser?function n4(P){const X=P.getAttribute("style");let W=[];return X&&(W=X.split(";").reduce((t1,p1)=>{const T1=p1.split(":"),M1=T1[0],U1=T1.slice(1);return M1&&U1.length>0&&(t1[M1]=U1.join(":").trim()),t1},{})),W}(P):[];return L({iconName:W,title:P.getAttribute("title"),titleId:P.getAttribute("data-fa-title-id"),prefix:t1,transform:a4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:p1,styles:U1,attributes:T1}},M1)}const{styles:Ve}=f2;function Me(P){const X="nest"===D2.autoReplaceSvg?Be(P,{styleParser:!1}):Be(P);return~X.extra.classes.indexOf(u1)?U4("generateLayersText",P,X):U4("generateSvgReplacementMutation",P,X)}function C8(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!s2)return Promise.resolve();const W=g1.documentElement.classList,t1=T2=>W.add("".concat(d4,"-").concat(T2)),p1=T2=>W.remove("".concat(d4,"-").concat(T2)),T1=D2.autoFetchSvg?function L8(){return[...h2,...Y0]}():v2.concat(Object.keys(Ve));T1.includes("fa")||T1.push("fa");const M1=[".".concat(u1,":not([").concat(r0,"])")].concat(T1.map(T2=>".".concat(T2,":not([").concat(r0,"])"))).join(", ");if(0===M1.length)return Promise.resolve();let U1=[];try{U1=b0(P.querySelectorAll(M1))}catch{}if(!(U1.length>0))return Promise.resolve();t1("pending"),p1("complete");const y2=y6.begin("onTree"),k2=U1.reduce((T2,M0)=>{try{const X0=Me(M0);X0&&T2.push(X0)}catch(X0){o3||"MissingIcon"===X0.name&&console.error(X0)}return T2},[]);return new Promise((T2,M0)=>{Promise.all(k2).then(X0=>{w1(X0,()=>{t1("active"),t1("complete"),p1("pending"),"function"==typeof X&&X(),y2(),T2()})}).catch(X0=>{y2(),M0(X0)})})}function xe(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Me(P).then(W=>{W&&w1([W],X)})}const N8=function(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:W=a4,symbol:t1=!1,mask:p1=null,maskId:T1=null,title:M1=null,titleId:U1=null,classes:y2=[],attributes:k2={},styles:T2={}}=X;if(!P)return;const{prefix:M0,iconName:X0,icon:W0}=P;return Y4(L({type:"icon"},P),()=>(a6("beforeDOMElementCreation",{iconDefinition:P,params:X}),D2.autoA11y&&(M1?k2["aria-labelledby"]="".concat(D2.replacementClass,"-title-").concat(U1||j4()):(k2["aria-hidden"]="true",k2.focusable="false")),k3({icons:{main:_8(W0),mask:p1?_8(p1.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M0,iconName:X0,transform:L(L({},a4),W),symbol:t1,title:M1,maskId:T1,titleId:U1,extra:{attributes:k2,styles:T2,classes:y2}})))};var j6={mixout(){return{icon:(P=N8,function(X){let W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t1=(X||{}).icon?X:q0(X||{});let{mask:p1}=W;return p1&&(p1=(p1||{}).icon?p1:q0(p1||{})),P(t1,L(L({},W),{},{mask:p1}))})};var P},hooks:()=>({mutationObserverCallbacks:P=>(P.treeCallback=C8,P.nodeCallback=xe,P)}),provides(P){P.i2svg=function(X){const{node:W=g1,callback:t1=(()=>{})}=X;return C8(W,t1)},P.generateSvgReplacementMutation=function(X,W){const{iconName:t1,title:p1,titleId:T1,prefix:M1,transform:U1,symbol:y2,mask:k2,maskId:T2,extra:M0}=W;return new Promise((X0,W0)=>{Promise.all([Q4(t1,M1),k2.iconName?Q4(k2.iconName,k2.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(v4=>{let[Q0,Z2]=v4;X0([X,k3({icons:{main:Q0,mask:Z2},prefix:M1,iconName:t1,transform:U1,symbol:y2,maskId:T2,title:p1,titleId:T1,extra:M0,watchable:!0})])}).catch(W0)})},P.generateAbstractIcon=function(X){let{children:W,attributes:t1,main:p1,transform:T1,styles:M1}=X;const U1=F3(M1);let y2;return U1.length>0&&(t1.style=U1),j3(T1)&&(y2=U4("generateAbstractTransformGrouping",{main:p1,transform:T1,containerWidth:p1.width,iconWidth:p1.width})),W.push(y2||p1.icon),{children:W,attributes:t1}}}},t8={mixout:()=>({layer(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:W=[]}=X;return Y4({type:"layer"},()=>{a6("beforeDOMElementCreation",{assembler:P,params:X});let t1=[];return P(p1=>{Array.isArray(p1)?p1.map(T1=>{t1=t1.concat(T1.abstract)}):t1=t1.concat(p1.abstract)}),[{tag:"span",attributes:{class:["".concat(D2.cssPrefix,"-layers"),...W].join(" ")},children:t1}]})}})},n8={mixout:()=>({counter(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:W=null,classes:t1=[],attributes:p1={},styles:T1={}}=X;return Y4({type:"counter",content:P},()=>(a6("beforeDOMElementCreation",{content:P,params:X}),function g8(P){const{content:X,title:W,extra:t1}=P,p1=L(L(L({},t1.attributes),W?{title:W}:{}),{},{class:t1.classes.join(" ")}),T1=F3(t1.styles);T1.length>0&&(p1.style=T1);const M1=[];return M1.push({tag:"span",attributes:p1,children:[X]}),W&&M1.push({tag:"span",attributes:{class:"sr-only"},children:[W]}),M1}({content:P.toString(),title:W,extra:{attributes:p1,styles:T1,classes:["".concat(D2.cssPrefix,"-layers-counter"),...t1]}})))}})},l8={mixout:()=>({text(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:W=a4,title:t1=null,classes:p1=[],attributes:T1={},styles:M1={}}=X;return Y4({type:"text",content:P},()=>(a6("beforeDOMElementCreation",{content:P,params:X}),T0({content:P,transform:L(L({},a4),W),title:t1,extra:{attributes:T1,styles:M1,classes:["".concat(D2.cssPrefix,"-layers-text"),...p1]}})))}}),provides(P){P.generateLayersText=function(X,W){const{title:t1,transform:p1,extra:T1}=W;let M1=null,U1=null;if(c2){const y2=parseInt(getComputedStyle(X).fontSize,10),k2=X.getBoundingClientRect();M1=k2.width/y2,U1=k2.height/y2}return D2.autoA11y&&!t1&&(T1.attributes["aria-hidden"]="true"),Promise.resolve([X,T0({content:X.innerHTML,width:M1,height:U1,transform:p1,title:t1,extra:T1,watchable:!0})])}}};const j0=new RegExp('"',"ug"),S4=[1105920,1112319],T4=L(L(L(L({},{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"}}),Z4=Object.keys(T4).reduce((P,X)=>(P[X.toLowerCase()]=T4[X],P),{}),u3=Object.keys(Z4).reduce((P,X)=>{const W=Z4[X];return P[X]=W[900]||[...Object.entries(W)][0][1],P},{});function O6(P,X){const W="".concat($4).concat(X.replace(":","-"));return new Promise((t1,p1)=>{if(null!==P.getAttribute(W))return t1();const M1=b0(P.children).filter(X0=>X0.getAttribute(a3)===X)[0],U1=$1.getComputedStyle(P,X),y2=U1.getPropertyValue("font-family"),k2=y2.match(E1),T2=U1.getPropertyValue("font-weight"),M0=U1.getPropertyValue("content");if(M1&&!k2)return P.removeChild(M1),t1();if(k2&&"none"!==M0&&""!==M0){const X0=U1.getPropertyValue("content");let W0=function Q8(P,X){const W=P.replace(/^['"]|['"]$/g,"").toLowerCase(),t1=parseInt(X),p1=isNaN(t1)?"normal":t1;return(Z4[W]||{})[p1]||u3[W]}(y2,T2);const{value:v4,isSecondary:Q0}=function J8(P){const X=P.replace(j0,""),W=function F4(P,X){const W=P.length;let p1,t1=P.charCodeAt(X);return t1>=55296&&t1<=56319&&W>X+1&&(p1=P.charCodeAt(X+1),p1>=56320&&p1<=57343)?1024*(t1-55296)+p1-56320+65536:t1}(X,0),t1=W>=S4[0]&&W<=S4[1],p1=2===X.length&&X[0]===X[1];return{value:D0(p1?X[0]:X),isSecondary:t1||p1}}(X0),Z2=k2[0].startsWith("FontAwesome");let s3=g2(W0,v4),C2=s3;if(Z2){const K4=function D4(P){const X=q8[P],W=g2("fas",P);return X||(W?{prefix:"fas",iconName:W}:null)||{prefix:null,iconName:null}}(v4);K4.iconName&&K4.prefix&&(s3=K4.iconName,W0=K4.prefix)}if(!s3||Q0||M1&&M1.getAttribute(L0)===W0&&M1.getAttribute(U0)===C2)t1();else{P.setAttribute(W,C2),M1&&P.removeChild(M1);const K4=function u4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:a4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:s0}=K4;s0.attributes[a3]=X,Q4(s3,W0).then(n0=>{const L6=k3(L(L({},K4),{},{icons:{main:n0,mask:r3()},prefix:W0,iconName:C2,extra:s0,watchable:!0})),C6=g1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===X?P.insertBefore(C6,P.firstChild):P.appendChild(C6),C6.outerHTML=L6.map(ve=>m0(ve)).join("\n"),P.removeAttribute(W),t1()}).catch(p1)}}else t1()})}function Ue(P){return Promise.all([O6(P,"::before"),O6(P,"::after")])}function e5(P){return!(P.parentNode===document.head||~c0.indexOf(P.tagName.toUpperCase())||P.getAttribute(a3)||P.parentNode&&"svg"===P.parentNode.tagName)}function z8(P){if(s2)return new Promise((X,W)=>{const t1=b0(P.querySelectorAll("*")).filter(e5).map(Ue),p1=y6.begin("searchPseudoElements");k0(),Promise.all(t1).then(()=>{p1(),M3(),X()}).catch(()=>{p1(),M3(),W()})})}let F6=!1;const E8=P=>P.toLowerCase().split(" ").reduce((W,t1)=>{const p1=t1.toLowerCase().split("-"),T1=p1[0];let M1=p1.slice(1).join("-");if(T1&&"h"===M1)return W.flipX=!0,W;if(T1&&"v"===M1)return W.flipY=!0,W;if(M1=parseFloat(M1),isNaN(M1))return W;switch(T1){case"grow":W.size=W.size+M1;break;case"shrink":W.size=W.size-M1;break;case"left":W.x=W.x-M1;break;case"right":W.x=W.x+M1;break;case"up":W.y=W.y-M1;break;case"down":W.y=W.y+M1;break;case"rotate":W.rotate=W.rotate+M1}return W},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),D8={x:0,y:0,width:"100%",height:"100%"};function d6(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 h6(P,X){let{mixoutsTo:W}=X;f0=P,z3={},Object.keys(E3).forEach(t1=>{-1===s6.indexOf(t1)&&delete E3[t1]}),f0.forEach(t1=>{const p1=t1.mixout?t1.mixout():{};if(Object.keys(p1).forEach(T1=>{"function"==typeof p1[T1]&&(W[T1]=p1[T1]),"object"==typeof p1[T1]&&Object.keys(p1[T1]).forEach(M1=>{W[T1]||(W[T1]={}),W[T1][M1]=p1[T1][M1]})}),t1.hooks){const T1=t1.hooks();Object.keys(T1).forEach(M1=>{z3[M1]||(z3[M1]=[]),z3[M1].push(T1[M1])})}t1.provides&&t1.provides(E3)})}([Y1,j6,t8,n8,l8,{hooks:()=>({mutationObserverCallbacks:P=>(P.pseudoElementsCallback=z8,P)}),provides(P){P.pseudoElements2svg=function(X){const{node:W=g1}=X;D2.searchPseudoElements&&z8(W)}}},{mixout:()=>({dom:{unwatch(){k0(),F6=!0}}}),hooks:()=>({bootstrap(){X4(I6("mutationObserverCallbacks",{}))},noAuto(){!function c8(){q3&&q3.disconnect()}()},watch(P){const{observeMutationsRoot:X}=P;F6?M3():X4(I6("mutationObserverCallbacks",{observeMutationsRoot:X}))}})},{mixout:()=>({parse:{transform:P=>E8(P)}}),hooks:()=>({parseNodeAttributes(P,X){const W=X.getAttribute("data-fa-transform");return W&&(P.transform=E8(W)),P}}),provides(P){P.generateAbstractTransformGrouping=function(X){let{main:W,transform:t1,containerWidth:p1,iconWidth:T1}=X;const M1={transform:"translate(".concat(p1/2," 256)")},U1="translate(".concat(32*t1.x,", ").concat(32*t1.y,") "),y2="scale(".concat(t1.size/16*(t1.flipX?-1:1),", ").concat(t1.size/16*(t1.flipY?-1:1),") "),k2="rotate(".concat(t1.rotate," 0 0)"),X0={outer:M1,inner:{transform:"".concat(U1," ").concat(y2," ").concat(k2)},path:{transform:"translate(".concat(T1/2*-1," -256)")}};return{tag:"g",attributes:L({},X0.outer),children:[{tag:"g",attributes:L({},X0.inner),children:[{tag:W.icon.tag,children:W.icon.children,attributes:L(L({},W.icon.attributes),X0.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(P,X){const W=X.getAttribute("data-fa-mask"),t1=W?C3(W.split(" ").map(p1=>p1.trim())):r3();return t1.prefix||(t1.prefix=h4()),P.mask=t1,P.maskId=X.getAttribute("data-fa-mask-id"),P}}),provides(P){P.generateAbstractMask=function(X){let{children:W,attributes:t1,main:p1,mask:T1,maskId:M1,transform:U1}=X;const{width:y2,icon:k2}=p1,{width:T2,icon:M0}=T1,X0=function N3(P){let{transform:X,containerWidth:W,iconWidth:t1}=P;const p1={transform:"translate(".concat(W/2," 256)")},T1="translate(".concat(32*X.x,", ").concat(32*X.y,") "),M1="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:p1,inner:{transform:"".concat(T1," ").concat(M1," ").concat(U1)},path:{transform:"translate(".concat(t1/2*-1," -256)")}}}({transform:U1,containerWidth:T2,iconWidth:y2}),W0={tag:"rect",attributes:L(L({},D8),{},{fill:"white"})},v4=k2.children?{children:k2.children.map(d6)}:{},Q0={tag:"g",attributes:L({},X0.inner),children:[d6(L({tag:k2.tag,attributes:L(L({},k2.attributes),X0.path)},v4))]},Z2={tag:"g",attributes:L({},X0.outer),children:[Q0]},s3="mask-".concat(M1||j4()),C2="clip-".concat(M1||j4()),K4={tag:"mask",attributes:L(L({},D8),{},{id:s3,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[W0,Z2]},s0={tag:"defs",children:[{tag:"clipPath",attributes:{id:C2},children:v6(M0)},K4]};return W.push(s0,{tag:"rect",attributes:L({fill:"currentColor","clip-path":"url(#".concat(C2,")"),mask:"url(#".concat(s3,")")},D8)}),{children:W,attributes:t1}}}},{provides(P){let X=!1;$1.matchMedia&&(X=$1.matchMedia("(prefers-reduced-motion: reduce)").matches),P.missingIconAbstract=function(){const W=[],t1={fill:"currentColor"},p1={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};W.push({tag:"path",attributes:L(L({},t1),{},{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 T1=L(L({},p1),{},{attributeName:"opacity"}),M1={tag:"circle",attributes:L(L({},t1),{},{cx:"256",cy:"364",r:"28"}),children:[]};return X||M1.children.push({tag:"animate",attributes:L(L({},p1),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:L(L({},T1),{},{values:"1;0;1;1;0;1;"})}),W.push(M1),W.push({tag:"path",attributes:L(L({},t1),{},{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:L(L({},T1),{},{values:"1;0;0;0;0;1;"})}]}),X||W.push({tag:"path",attributes:L(L({},t1),{},{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:L(L({},T1),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:W}}}},{hooks:()=>({parseNodeAttributes(P,X){const W=X.getAttribute("data-fa-symbol");return P.symbol=null!==W&&(""===W||W),P}})}],{mixoutsTo:_3});const s8=_3.parse,ee=_3.icon,T8=_3.counter;var T3=v(345);const V6=["*"],A8=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(W=>X[W]?W:null).filter(W=>W)};let U6=(()=>{class P{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}static{this.\u0275fac=function(t1){return new(t1||P)}}static{this.\u0275prov=u.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),w=(()=>{class P{constructor(){this.definitions={}}addIcons(...W){for(const t1 of W){t1.prefix in this.definitions||(this.definitions[t1.prefix]={}),this.definitions[t1.prefix][t1.iconName]=t1;for(const p1 of t1.icon[2])"string"==typeof p1&&(this.definitions[t1.prefix][p1]=t1)}}addIconPacks(...W){for(const t1 of W){const p1=Object.keys(t1).map(T1=>t1[T1]);this.addIcons(...p1)}}getIconDefinition(W,t1){return W in this.definitions&&t1 in this.definitions[W]?this.definitions[W][t1]:null}static{this.\u0275fac=function(t1){return new(t1||P)}}static{this.\u0275prov=u.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),q=(()=>{class P{constructor(){this.stackItemSize="1x"}ngOnChanges(W){if("size"in W)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(t1){return new(t1||P)}}static{this.\u0275dir=u.FsC({type:P,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},standalone:!0,features:[u.OA$]})}}return P})(),T=(()=>{class P{constructor(W,t1){this.renderer=W,this.elementRef=t1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(W){"size"in W&&(null!=W.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${W.size.currentValue}`),null!=W.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${W.size.previousValue}`))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(u.sFG),u.rXU(u.aKT))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-stack"]],inputs:{size:"size"},standalone:!0,features:[u.OA$,u.aNF],ngContentSelectors:V6,decls:1,vars:0,template:function(t1,p1){1&t1&&(u.NAR(),u.SdG(0))},encapsulation:2})}}return P})(),H=(()=>{class P{set spin(W){this.animation=W?"spin":void 0}set pulse(W){this.animation=W?"spin-pulse":void 0}constructor(W,t1,p1,T1,M1){this.sanitizer=W,this.config=t1,this.iconLibrary=p1,this.stackItem=T1,this.classes=[],null!=M1&&null==T1&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(W){if(null!=this.icon||null!=this.config.fallbackIcon){if(W){const p1=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=p1){const T1=this.buildParams();this.renderIcon(p1,T1)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(W){const t1=((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]})(W,this.config.defaultPrefix);return"icon"in t1?t1:this.iconLibrary.getIconDefinition(t1.prefix,t1.iconName)??((P=>{throw new Error(`Could not find icon with iconName=${P.iconName} and prefix=${P.prefix} in the icon library.`)})(t1),null)}buildParams(){const W={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},t1="string"==typeof this.transform?s8.transform(this.transform):this.transform;return{title:this.title,transform:t1,classes:[...A8(W),...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(W,t1){const p1=ee(W,t1);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(p1.html.join("\n"))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(T3.up),u.rXU(U6),u.rXU(w),u.rXU(q,8),u.rXU(T,8))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t1,p1){2&t1&&(u.Mr5("innerHTML",p1.renderedIconHTML,u.npT),u.BMQ("title",p1.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:[u.OA$,u.aNF],decls:0,vars:0,template:function(t1,p1){},encapsulation:2})}}return P})(),l2=(()=>{class P{constructor(W,t1,p1){this.renderer=W,this.elementRef=t1,this.config=p1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-layers"),this.fixedWidth="boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth}ngOnChanges(W){"size"in W&&(null!=W.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${W.size.currentValue}`),null!=W.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${W.size.previousValue}`))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(U6))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-layers"]],hostVars:2,hostBindings:function(t1,p1){2&t1&&u.AVh("fa-fw",p1.fixedWidth)},inputs:{size:"size",fixedWidth:"fixedWidth"},standalone:!0,features:[u.OA$,u.aNF],ngContentSelectors:V6,decls:1,vars:0,template:function(t1,p1){1&t1&&(u.NAR(),u.SdG(0))},encapsulation:2})}}return P})(),$2=(()=>{class P{constructor(W,t1){this.parent=W,this.sanitizer=t1,this.classes=[],((P,X,W)=>{if(!this.parent)throw new Error(`${this.constructor.name} should be used as child of FaLayersComponent only.`)})()}ngOnChanges(W){if(W){const t1=this.buildParams();this.updateContent(t1)}}buildParams(){const W=[];return null!=this.classes&&W.push(...this.classes),null!=this.position&&W.push(`fa-layers-${this.position}`),{title:this.title,classes:W,styles:this.styles}}updateContent(W){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(T8(this.content||"",W).html.join(""))}static{this.\u0275fac=function(t1){return new(t1||P)(u.rXU(l2,8),u.rXU(T3.up))}}static{this.\u0275cmp=u.VBU({type:P,selectors:[["fa-layers-counter"]],hostAttrs:[1,"ng-fa-layers-counter"],hostVars:1,hostBindings:function(t1,p1){2&t1&&u.Mr5("innerHTML",p1.renderedHTML,u.npT)},inputs:{content:"content",title:"title",styles:"styles",classes:"classes",position:"position"},standalone:!0,features:[u.OA$,u.aNF],decls:0,vars:0,template:function(t1,p1){},encapsulation:2})}}return P})(),o4=(()=>{class P{static{this.\u0275fac=function(t1){return new(t1||P)}}static{this.\u0275mod=u.$C({type:P})}static{this.\u0275inj=u.G2t({})}}return P})()},5383:(k1,r1,v)=>{"use strict";v.d(r1,{IPD:()=>Zc,JX9:()=>We,URI:()=>I_,YSf:()=>LL,Z8x:()=>sn,b6I:()=>Ka,f2_:()=>uo,fLc:()=>F8,iRu:()=>b7,qIE:()=>yn,sOt:()=>ts});const sn={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"]},F8={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"]},yn={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"]},Ka={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"]},uo={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"]},We={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"]},Zc={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"]},ts={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"]},I_={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"]},b7={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:(k1,r1,v)=>{"use strict";v.d(r1,{$O8:()=>sN,$UM:()=>gN,APe:()=>$w,BH7:()=>zS,Bwz:()=>Rm,Dwc:()=>gk,EEq:()=>lg,EZy:()=>gS,FJA:()=>AI,Jt$:()=>J$,KMJ:()=>Dk,LBj:()=>hV,LP:()=>dk,MT7:()=>et,OM7:()=>ac,PKn:()=>$L,QLR:()=>Nk,QRE:()=>jl,Qux:()=>Q_,R1H:()=>Ra,RSf:()=>D2,SZt:()=>$8,Wcv:()=>oE,WfV:()=>du,Wzs:()=>aO,X46:()=>go,XYS:()=>qS,XkK:()=>fO,Z8x:()=>Gt,Zsp:()=>XE,_2z:()=>MR,_Xl:()=>rL,a5l:()=>G1,bLf:()=>Y0,cKG:()=>$S,cbP:()=>$I,e4L:()=>Rz,fLc:()=>u9,hSh:()=>GD,hem:()=>TV,hzq:()=>a2,iRu:()=>WN,jBL:()=>ne,k1j:()=>tS,l8N:()=>$7,p7g:()=>Na,pS3:()=>SD,q9c:()=>jB,s6x:()=>Ds,tNR:()=>OS,tP3:()=>Gd,w2A:()=>dn,yYc:()=>Tj});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"]},D2={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"]},ne={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"]},G1={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"]},$8={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"]},$7={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"]},Ds={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"]},et={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"]},du={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"]},dn={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"]},Na={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"]},Ra={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"]},go={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"]},Rz={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"]},Rm={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"]},Gt={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"]},jl={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"]},lg={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"]},u9={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"]},ac={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"]},rL={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"]},Gd={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"]},a2={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"]},XE={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"]},$w={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"]},SD={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"]},GD={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"]},tS={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"]},MR={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"]},gS={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"]},dk={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"]},zS={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"]},AI={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"]},$I={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"]},$S={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"]},OS={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"]},qS={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"]},gk={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"]},sN={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"]},gN={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"]},J$={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"]},Nk={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"]},Tj={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"]},Dk={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"]},aO={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"]},fO={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"]},jB={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"]},WN={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"]},hV={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"]},TV={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"]},oE={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"]},$L={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:(k1,r1,v)=>{"use strict";v.d(r1,{D9:()=>F0,Wr:()=>j,c$:()=>Q2,h:()=>b4});var u=v(4438),g=v(7673),e=v(4402),p=v(7468),L=v(8793),S=v(9030),A=v(6697),V=v(253),c1=v(6354),K=v(274),L1=v(5558);class j{}let l1=(()=>{class L2 extends j{getTranslation(y1){return(0,g.of)({})}static \u0275fac=(()=>{let y1;return function(h2){return(y1||(y1=u.xGo(L2)))(h2||L2)}})();static \u0275prov=u.jDH({token:L2,factory:L2.\u0275fac})}return L2})();class m1{}let f1=(()=>{class L2{handle(y1){return y1.key}static \u0275fac=function(e2){return new(e2||L2)};static \u0275prov=u.jDH({token:L2,factory:L2.\u0275fac})}return L2})();function $1(L2,A0){if(L2===A0)return!0;if(null===L2||null===A0)return!1;if(L2!=L2&&A0!=A0)return!0;let h2,D1,j1,y1=typeof L2;if(y1==typeof A0&&"object"==y1){if(!Array.isArray(L2)){if(Array.isArray(A0))return!1;for(D1 in j1=Object.create(null),L2){if(!$1(L2[D1],A0[D1]))return!1;j1[D1]=!0}for(D1 in A0)if(!(D1 in j1)&&typeof A0[D1]<"u")return!1;return!0}if(!Array.isArray(A0))return!1;if((h2=L2.length)==A0.length){for(D1=0;D1{H1(A0[e2])?e2 in L2?y1[e2]=d2(L2[e2],A0[e2]):Object.assign(y1,{[e2]:A0[e2]}):Object.assign(y1,{[e2]:A0[e2]})}),y1}class K2{}let s2=(()=>{class L2 extends K2{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(y1,e2){let h2;return h2="string"==typeof y1?this.interpolateString(y1,e2):"function"==typeof y1?this.interpolateFunction(y1,e2):y1,h2}getValue(y1,e2){let h2="string"==typeof e2?e2.split("."):[e2];e2="";do{e2+=h2.shift(),!g1(y1)||!g1(y1[e2])||"object"!=typeof y1[e2]&&h2.length?h2.length?e2+=".":y1=void 0:(y1=y1[e2],e2="")}while(h2.length);return y1}interpolateFunction(y1,e2){return y1(e2)}interpolateString(y1,e2){return e2?y1.replace(this.templateMatcher,(h2,D1)=>{let j1=this.getValue(e2,D1);return g1(j1)?j1:h2}):y1}static \u0275fac=(()=>{let y1;return function(h2){return(y1||(y1=u.xGo(L2)))(h2||L2)}})();static \u0275prov=u.jDH({token:L2,factory:L2.\u0275fac})}return L2})();class c2{}let P1=(()=>{class L2 extends c2{compile(y1,e2){return y1}compileTranslations(y1,e2){return y1}static \u0275fac=(()=>{let y1;return function(h2){return(y1||(y1=u.xGo(L2)))(h2||L2)}})();static \u0275prov=u.jDH({token:L2,factory:L2.\u0275fac})}return L2})();class O2{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new u.bkB;onLangChange=new u.bkB;onDefaultLangChange=new u.bkB}const r2=new u.nKC("USE_STORE"),z2=new u.nKC("USE_DEFAULT_LANG"),v2=new u.nKC("DEFAULT_LANGUAGE"),_2=new u.nKC("USE_EXTEND");let Q2=(()=>{class L2{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new u.bkB;_onLangChange=new u.bkB;_onDefaultLangChange=new u.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(y1){this.isolate?this._defaultLang=y1:this.store.defaultLang=y1}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(y1){this.isolate?this._currentLang=y1:this.store.currentLang=y1}get langs(){return this.isolate?this._langs:this.store.langs}set langs(y1){this.isolate?this._langs=y1:this.store.langs=y1}get translations(){return this.isolate?this._translations:this.store.translations}set translations(y1){this.isolate?this._translations=y1:this.store.translations=y1}constructor(y1,e2,h2,D1,j1,A1=!0,F1=!1,Z1=!1,Z){this.store=y1,this.currentLoader=e2,this.compiler=h2,this.parser=D1,this.missingTranslationHandler=j1,this.useDefaultLang=A1,this.isolate=F1,this.extend=Z1,Z&&this.setDefaultLang(Z)}setDefaultLang(y1){if(y1===this.defaultLang)return;let e2=this.retrieveTranslations(y1);typeof e2<"u"?(null==this.defaultLang&&(this.defaultLang=y1),e2.pipe((0,A.s)(1)).subscribe(h2=>{this.changeDefaultLang(y1)})):this.changeDefaultLang(y1)}getDefaultLang(){return this.defaultLang}use(y1){if(y1===this.currentLang)return(0,g.of)(this.translations[y1]);let e2=this.retrieveTranslations(y1);return typeof e2<"u"?(this.currentLang||(this.currentLang=y1),e2.pipe((0,A.s)(1)).subscribe(h2=>{this.changeLang(y1)}),e2):(this.changeLang(y1),(0,g.of)(this.translations[y1]))}retrieveTranslations(y1){let e2;return(typeof this.translations[y1]>"u"||this.extend)&&(this._translationRequests[y1]=this._translationRequests[y1]||this.getTranslation(y1),e2=this._translationRequests[y1]),e2}getTranslation(y1){this.pending=!0;const e2=this.currentLoader.getTranslation(y1).pipe((0,V.t)(1),(0,A.s)(1));return this.loadingTranslations=e2.pipe((0,c1.T)(h2=>this.compiler.compileTranslations(h2,y1)),(0,V.t)(1),(0,A.s)(1)),this.loadingTranslations.subscribe({next:h2=>{this.translations[y1]=this.extend&&this.translations[y1]?{...h2,...this.translations[y1]}:h2,this.updateLangs(),this.pending=!1},error:h2=>{this.pending=!1}}),e2}setTranslation(y1,e2,h2=!1){e2=this.compiler.compileTranslations(e2,y1),this.translations[y1]=(h2||this.extend)&&this.translations[y1]?d2(this.translations[y1],e2):e2,this.updateLangs(),this.onTranslationChange.emit({lang:y1,translations:this.translations[y1]})}getLangs(){return this.langs}addLangs(y1){y1.forEach(e2=>{-1===this.langs.indexOf(e2)&&this.langs.push(e2)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(y1,e2,h2){let D1;if(e2 instanceof Array){let j1={},A1=!1;for(let F1 of e2)j1[F1]=this.getParsedResult(y1,F1,h2),(0,e.A)(j1[F1])&&(A1=!0);if(A1){const F1=e2.map(Z1=>(0,e.A)(j1[Z1])?j1[Z1]:(0,g.of)(j1[Z1]));return(0,p.p)(F1).pipe((0,c1.T)(Z1=>{let Z={};return Z1.forEach((X1,O1)=>{Z[e2[O1]]=X1}),Z}))}return j1}if(y1&&(D1=this.parser.interpolate(this.parser.getValue(y1,e2),h2)),typeof D1>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(D1=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e2),h2)),typeof D1>"u"){let j1={key:e2,translateService:this};typeof h2<"u"&&(j1.interpolateParams=h2),D1=this.missingTranslationHandler.handle(j1)}return typeof D1<"u"?D1:e2}get(y1,e2){if(!g1(y1)||!y1.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,K.H)(h2=>(h2=this.getParsedResult(h2,y1,e2),(0,e.A)(h2)?h2:(0,g.of)(h2))));{let h2=this.getParsedResult(this.translations[this.currentLang],y1,e2);return(0,e.A)(h2)?h2:(0,g.of)(h2)}}getStreamOnTranslationChange(y1,e2){if(!g1(y1)||!y1.length)throw new Error('Parameter "key" required');return(0,L.x)((0,S.v)(()=>this.get(y1,e2)),this.onTranslationChange.pipe((0,L1.n)(h2=>{const D1=this.getParsedResult(h2.translations,y1,e2);return"function"==typeof D1.subscribe?D1:(0,g.of)(D1)})))}stream(y1,e2){if(!g1(y1)||!y1.length)throw new Error('Parameter "key" required');return(0,L.x)((0,S.v)(()=>this.get(y1,e2)),this.onLangChange.pipe((0,L1.n)(h2=>{const D1=this.getParsedResult(h2.translations,y1,e2);return(0,e.A)(D1)?D1:(0,g.of)(D1)})))}instant(y1,e2){if(!g1(y1)||!y1.length)throw new Error('Parameter "key" required');let h2=this.getParsedResult(this.translations[this.currentLang],y1,e2);if((0,e.A)(h2)){if(y1 instanceof Array){let D1={};return y1.forEach((j1,A1)=>{D1[y1[A1]]=y1[A1]}),D1}return y1}return h2}set(y1,e2,h2=this.currentLang){this.translations[h2][y1]=this.compiler.compile(e2,h2),this.updateLangs(),this.onTranslationChange.emit({lang:h2,translations:this.translations[h2]})}changeLang(y1){this.currentLang=y1,this.onLangChange.emit({lang:y1,translations:this.translations[y1]}),null==this.defaultLang&&this.changeDefaultLang(y1)}changeDefaultLang(y1){this.defaultLang=y1,this.onDefaultLangChange.emit({lang:y1,translations:this.translations[y1]})}reloadLang(y1){return this.resetLang(y1),this.getTranslation(y1)}resetLang(y1){this._translationRequests[y1]=void 0,this.translations[y1]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let y1=window.navigator.languages?window.navigator.languages[0]:null;return y1=y1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof y1>"u"?void 0:(-1!==y1.indexOf("-")&&(y1=y1.split("-")[0]),-1!==y1.indexOf("_")&&(y1=y1.split("_")[0]),y1)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let y1=window.navigator.languages?window.navigator.languages[0]:null;return y1=y1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,y1}static \u0275fac=function(e2){return new(e2||L2)(u.KVO(O2),u.KVO(j),u.KVO(c2),u.KVO(K2),u.KVO(m1),u.KVO(z2),u.KVO(r2),u.KVO(_2),u.KVO(v2))};static \u0275prov=u.jDH({token:L2,factory:L2.\u0275fac})}return L2})(),F0=(()=>{class L2{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(y1,e2){this.translate=y1,this._ref=e2}updateValue(y1,e2,h2){let D1=j1=>{this.value=void 0!==j1?j1:y1,this.lastKey=y1,this._ref.markForCheck()};if(h2){let j1=this.translate.getParsedResult(h2,y1,e2);(0,e.A)(j1.subscribe)?j1.subscribe(D1):D1(j1)}this.translate.get(y1,e2).subscribe(D1)}transform(y1,...e2){if(!y1||!y1.length)return y1;if($1(y1,this.lastKey)&&$1(e2,this.lastParams))return this.value;let h2;if(g1(e2[0])&&e2.length)if("string"==typeof e2[0]&&e2[0].length){let D1=e2[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{h2=JSON.parse(D1)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e2[0]}`)}}else"object"==typeof e2[0]&&!Array.isArray(e2[0])&&(h2=e2[0]);return this.lastKey=y1,this.lastParams=e2,this.updateValue(y1,h2),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(D1=>{this.lastKey&&D1.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(y1,h2,D1.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(D1=>{this.lastKey&&(this.lastKey=null,this.updateValue(y1,h2,D1.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(y1,h2))})),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||L2)(u.rXU(Q2,16),u.rXU(u.gRc,16))};static \u0275pipe=u.EJ8({name:"translate",type:L2,pure:!1});static \u0275prov=u.jDH({token:L2,factory:L2.\u0275fac})}return L2})(),b4=(()=>{class L2{static forRoot(y1={}){return{ngModule:L2,providers:[y1.loader||{provide:j,useClass:l1},y1.compiler||{provide:c2,useClass:P1},y1.parser||{provide:K2,useClass:s2},y1.missingTranslationHandler||{provide:m1,useClass:f1},O2,{provide:r2,useValue:y1.isolate},{provide:z2,useValue:y1.useDefaultLang},{provide:_2,useValue:y1.extend},{provide:v2,useValue:y1.defaultLanguage},Q2]}}static forChild(y1={}){return{ngModule:L2,providers:[y1.loader||{provide:j,useClass:l1},y1.compiler||{provide:c2,useClass:P1},y1.parser||{provide:K2,useClass:s2},y1.missingTranslationHandler||{provide:m1,useClass:f1},{provide:r2,useValue:y1.isolate},{provide:z2,useValue:y1.useDefaultLang},{provide:_2,useValue:y1.extend},{provide:v2,useValue:y1.defaultLanguage},Q2]}}static \u0275fac=function(e2){return new(e2||L2)};static \u0275mod=u.$C({type:L2});static \u0275inj=u.G2t({})}return L2})()},8866:(k1,r1,v)=>{"use strict";v.d(r1,{s:()=>p});class u extends Error{}function p(L,S){if("string"!=typeof L)throw new u("Invalid token specified: must be a string");S||(S={});const A=!0===S.header?0:1,V=L.split(".")[A];if("string"!=typeof V)throw new u(`Invalid token specified: missing part #${A+1}`);let c1;try{c1=function e(L){let S=L.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(L){return decodeURIComponent(atob(L).replace(/(.)/g,(S,A)=>{let V=A.charCodeAt(0).toString(16).toUpperCase();return V.length<2&&(V="0"+V),"%"+V}))}(S)}catch{return atob(S)}}(V)}catch(K){throw new u(`Invalid token specified: invalid base64 for part #${A+1} (${K.message})`)}try{return JSON.parse(c1)}catch(K){throw new u(`Invalid token specified: invalid json for part #${A+1} (${K.message})`)}}u.prototype.name="InvalidTokenError"},467:(k1,r1,v)=>{"use strict";function u(e,p,L,S,A,V,c1){try{var K=e[V](c1),L1=K.value}catch(j){return void L(j)}K.done?p(L1):Promise.resolve(L1).then(S,A)}function g(e){return function(){var p=this,L=arguments;return new Promise(function(S,A){var V=e.apply(p,L);function c1(L1){u(V,S,A,c1,K,"next",L1)}function K(L1){u(V,S,A,c1,K,"throw",L1)}c1(void 0)})}}v.d(r1,{A:()=>g})},1635:(k1,r1,v)=>{"use strict";function j(D1,j1,A1,F1){return new(A1||(A1=Promise))(function(Z,X1){function O1(B2){try{o0(F1.next(B2))}catch(v0){X1(v0)}}function q2(B2){try{o0(F1.throw(B2))}catch(v0){X1(v0)}}function o0(B2){B2.done?Z(B2.value):function Z1(Z){return Z instanceof A1?Z:new A1(function(X1){X1(Z)})}(B2.value).then(O1,q2)}o0((F1=F1.apply(D1,j1||[])).next())})}function s2(D1){return this instanceof s2?(this.v=D1,this):new s2(D1)}function c2(D1,j1,A1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z1,F1=A1.apply(D1,j1||[]),Z=[];return Z1=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),O1("next"),O1("throw"),O1("return",function X1(_0){return function(Y0){return Promise.resolve(Y0).then(_0,v0)}}),Z1[Symbol.asyncIterator]=function(){return this},Z1;function O1(_0,Y0){F1[_0]&&(Z1[_0]=function(L4){return new Promise(function(m2,l4){Z.push([_0,L4,m2,l4])>1||q2(_0,L4)})},Y0&&(Z1[_0]=Y0(Z1[_0])))}function q2(_0,Y0){try{!function o0(_0){_0.value instanceof s2?Promise.resolve(_0.value.v).then(B2,v0):h0(Z[0][2],_0)}(F1[_0](Y0))}catch(L4){h0(Z[0][3],L4)}}function B2(_0){q2("next",_0)}function v0(_0){q2("throw",_0)}function h0(_0,Y0){_0(Y0),Z.shift(),Z.length&&q2(Z[0][0],Z[0][1])}}function O2(D1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A1,j1=D1[Symbol.asyncIterator];return j1?j1.call(D1):(D1=function $1(D1){var j1="function"==typeof Symbol&&Symbol.iterator,A1=j1&&D1[j1],F1=0;if(A1)return A1.call(D1);if(D1&&"number"==typeof D1.length)return{next:function(){return D1&&F1>=D1.length&&(D1=void 0),{value:D1&&D1[F1++],done:!D1}}};throw new TypeError(j1?"Object is not iterable.":"Symbol.iterator is not defined.")}(D1),A1={},F1("next"),F1("throw"),F1("return"),A1[Symbol.asyncIterator]=function(){return this},A1);function F1(Z){A1[Z]=D1[Z]&&function(X1){return new Promise(function(O1,q2){!function Z1(Z,X1,O1,q2){Promise.resolve(q2).then(function(o0){Z({value:o0,done:O1})},X1)}(O1,q2,(X1=D1[Z](X1)).done,X1.value)})}}}v.d(r1,{AQ:()=>c2,N3:()=>s2,sH:()=>j,xN:()=>O2}),"function"==typeof SuppressedError&&SuppressedError},8184:k1=>{"use strict";k1.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"}]')}},k1=>{k1(k1.s=4622)}]); \ No newline at end of file diff --git a/portal/bae-frontend/runtime.4554ea03d51b6077.js b/portal/bae-frontend/runtime.7274ce30a843c8dd.js similarity index 95% rename from portal/bae-frontend/runtime.4554ea03d51b6077.js rename to portal/bae-frontend/runtime.7274ce30a843c8dd.js index f329f74c..493ac415 100644 --- a/portal/bae-frontend/runtime.4554ea03d51b6077.js +++ b/portal/bae-frontend/runtime.7274ce30a843c8dd.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.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=(o,t,i,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,i,f]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>(76===e?"common":e)+"."+{76:"d1e100ea66dd55be",342:"39e5f5eb31b3abad",365:"89ea9470c9c2384e",826:"61f9f02069b6611d"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="bae-frontend:";r.l=(t,i,f,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==f)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(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:o=>o},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,f)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)f.push(n[2]);else if(121!=i){var a=new Promise((l,s)=>n=e[i]=[l,s]);f.push(n[2]=a);var c=r.p+r.u(i),d=new Error;r.l(c,l=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){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,n[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,f)=>{var d,u,[n,a,c]=f,l=0;if(n.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(f);l{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.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=(o,t,i,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,i,f]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>(76===e?"common":e)+"."+{76:"3870fd15b728f51e",342:"69a6e507070d1813",365:"37b75c6b9d41858c",826:"4c957d8027ea0960"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="bae-frontend:";r.l=(t,i,f,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==f)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(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:o=>o},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,f)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)f.push(n[2]);else if(121!=i){var a=new Promise((l,s)=>n=e[i]=[l,s]);f.push(n[2]=a);var c=r.p+r.u(i),d=new Error;r.l(c,l=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){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,n[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,f)=>{var d,u,[n,a,c]=f,l=0;if(n.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(f);l.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}html{font-family:Blinker,system-ui,sans-serif}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-bottom-6{bottom:-1.5rem}.-right-3{right:-.75rem}.-top-20{top:-5rem}.-top-3{top:-.75rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-9{bottom:2.25rem}.bottom-\[-60px\]{bottom:-60px}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.end-0{inset-inline-end:0px}.end-2\.5{inset-inline-end:.625rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-5{left:1.25rem}.left-\[-140px\]{left:-140px}.left-\[-213px\]{left:-213px}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-\[-187px\]{right:-187px}.right-\[-18px\]{right:-18px}.right-\[-80px\]{right:-80px}.right-\[280px\]{right:280px}.start-0{inset-inline-start:0px}.start-1\/2{inset-inline-start:50%}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-20{top:5rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.top-\[-100px\]{top:-100px}.top-\[-40px\]{top:-40px}.top-\[-80px\]{top:-80px}.top-\[-95px\]{top:-95px}.top-\[100vh\]{top:100vh}.top-\[118px\]{top:118px}.top-\[12px\]{top:12px}.top-\[171px\]{top:171px}.top-\[35px\]{top:35px}.top-\[72px\]{top:72px}.top-\[75px\]{top:75px}.top-\[88px\]{top:88px}.top-\[calc\(100\%\+14px\)\]{top:calc(100% + 14px)}.top-full{top:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[200\]{z-index:200}.z-\[2\]{z-index:2}.z-\[3\]{z-index:3}.z-\[4\]{z-index:4}.z-\[51\]{z-index:51}.z-\[52\]{z-index:52}.z-\[53\]{z-index:53}.z-\[5\]{z-index:5}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[80\]{z-index:80}.z-\[999\]{z-index:999}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-span-4{grid-column:span 4 / span 4}.float-left{float:left}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-8{margin:2rem}.m-auto{margin:auto}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mb-px{margin-bottom:-1px}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.-mt-4{margin-top:-1rem}.-mt-\[88px\]{margin-top:-88px}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.me-2{margin-inline-end:.5rem}.me-2\.5{margin-inline-end:.625rem}.me-3{margin-inline-end:.75rem}.me-4{margin-inline-end:1rem}.me-5{margin-inline-end:1.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-8{margin-left:2rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-7{margin-right:1.75rem}.mr-8{margin-right:2rem}.ms-0{margin-inline-start:0px}.ms-1{margin-inline-start:.25rem}.ms-2{margin-inline-start:.5rem}.ms-2\.5{margin-inline-start:.625rem}.ms-3{margin-inline-start:.75rem}.ms-auto{margin-inline-start:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-\[108px\]{margin-top:108px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.line-clamp-5{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.line-clamp-6{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6}.line-clamp-\[4\]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.line-clamp-\[8\]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1\/4{height:25%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-2\/4{height:50%}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-52{height:13rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[1\.9rem\]{height:1.9rem}.h-\[100px\]{height:100px}.h-\[12px\]{height:12px}.h-\[18px\]{height:18px}.h-\[200px\]{height:200px}.h-\[220px\]{height:220px}.h-\[22px\]{height:22px}.h-\[25px\]{height:25px}.h-\[280px\]{height:280px}.h-\[2px\]{height:2px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[350px\]{height:350px}.h-\[360px\]{height:360px}.h-\[440px\]{height:440px}.h-\[44px\]{height:44px}.h-\[500px\]{height:500px}.h-\[50px\]{height:50px}.h-\[51\.7px\]{height:51.7px}.h-\[520px\]{height:520px}.h-\[553px\]{height:553px}.h-\[60px\]{height:60px}.h-\[635px\]{height:635px}.h-\[72px\]{height:72px}.h-\[88px\]{height:88px}.h-\[calc\(100\%\)\]{height:100%}.h-\[calc\(100\%-1rem\)\]{height:calc(100% - 1rem)}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-48{max-height:12rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.max-h-96{max-height:24rem}.max-h-\[1\.2rem\]{max-height:1.2rem}.max-h-\[300px\]{max-height:300px}.max-h-\[30vh\]{max-height:30vh}.max-h-\[350px\]{max-height:350px}.max-h-\[360px\]{max-height:360px}.max-h-\[46px\]{max-height:46px}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[calc\(100vh-10rem\)\]{max-height:calc(100vh - 10rem)}.max-h-\[calc\(100vh-160px\)\]{max-height:calc(100vh - 160px)}.max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-16{min-height:4rem}.min-h-\[100svh\]{min-height:100svh}.min-h-\[118px\]{min-height:118px}.min-h-\[156px\]{min-height:156px}.min-h-\[200px\]{min-height:200px}.min-h-\[221px\]{min-height:221px}.min-h-\[280px\]{min-height:280px}.min-h-\[300px\]{min-height:300px}.min-h-\[320px\]{min-height:320px}.min-h-\[32px\]{min-height:32px}.min-h-\[38px\]{min-height:38px}.min-h-\[45px\]{min-height:45px}.min-h-\[58px\]{min-height:58px}.min-h-\[76px\]{min-height:76px}.min-h-\[887px\]{min-height:887px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-2\/4{width:50%}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-4{width:1rem}.w-4\/5{width:80%}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\/12{width:41.666667%}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[100px\]{width:100px}.w-\[12px\]{width:12px}.w-\[18px\]{width:18px}.w-\[220px\]{width:220px}.w-\[240px\]{width:240px}.w-\[260px\]{width:260px}.w-\[280px\]{width:280px}.w-\[30px\]{width:30px}.w-\[320px\]{width:320px}.w-\[440px\]{width:440px}.w-\[44px\]{width:44px}.w-\[520px\]{width:520px}.w-\[553px\]{width:553px}.w-\[60px\]{width:60px}.w-\[635px\]{width:635px}.w-\[72px\]{width:72px}.w-\[calc\(100\%-16px\)\]{width:calc(100% - 16px)}.w-\[calc\(16\.6667\%_-_15px\)\]{width:calc(16.6667% - 15px)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-24{min-width:6rem}.min-w-4{min-width:1rem}.min-w-6{min-width:1.5rem}.min-w-\[22px\]{min-width:22px}.min-w-\[240px\]{min-width:240px}.min-w-\[262px\]{min-width:262px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[100px\]{max-width:100px}.max-w-\[1120px\]{max-width:1120px}.max-w-\[1180px\]{max-width:1180px}.max-w-\[1240px\]{max-width:1240px}.max-w-\[1280px\]{max-width:1280px}.max-w-\[12rem\]{max-width:12rem}.max-w-\[1440px\]{max-width:1440px}.max-w-\[214px\]{max-width:214px}.max-w-\[240px\]{max-width:240px}.max-w-\[420px\]{max-width:420px}.max-w-\[421px\]{max-width:421px}.max-w-\[453px\]{max-width:453px}.max-w-\[460px\]{max-width:460px}.max-w-\[520px\]{max-width:520px}.max-w-\[548px\]{max-width:548px}.max-w-\[572px\]{max-width:572px}.max-w-\[729px\]{max-width:729px}.max-w-\[738px\]{max-width:738px}.max-w-\[80px\]{max-width:80px}.max-w-\[860px\]{max-width:860px}.max-w-\[8rem\]{max-width:8rem}.max-w-\[929px\]{max-width:929px}.max-w-\[930px\]{max-width:930px}.max-w-\[980px\]{max-width:980px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.grid-flow-row{grid-auto-flow:row}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.auto-rows-max{grid-auto-rows:max-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-16{grid-template-columns:repeat(16,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-80\/20{grid-template-columns:80% 20%}.grid-rows-20\/80{grid-template-rows:20% 80%}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-14{gap:3.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-x-\[70px\]{column-gap:70px}.gap-y-1{row-gap:.25rem}.gap-y-12{row-gap:3rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-\[10px\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(10px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(10px * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity, 1))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[14px\]{border-radius:14px}.rounded-\[16px\]{border-radius:16px}.rounded-\[18px\]{border-radius:18px}.rounded-\[50px\]{border-radius:50px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-e-lg{border-start-end-radius:.5rem;border-end-end-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-s-lg{border-start-start-radius:.5rem;border-end-start-radius:.5rem}.rounded-s-md{border-start-start-radius:.375rem;border-end-start-radius:.375rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\[0\.666667px\]{border-width:.666667px}.border-\[3px\]{border-width:3px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-e-0{border-inline-end-width:0px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-s-2{border-inline-start-width:2px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#1f4fbf\]{--tw-border-opacity: 1;border-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.border-\[\#234481\]{--tw-border-opacity: 1;border-color:rgb(35 68 129 / var(--tw-border-opacity, 1))}.border-\[\#2D58A7\]{--tw-border-opacity: 1;border-color:rgb(45 88 167 / var(--tw-border-opacity, 1))}.border-\[\#A8DDC8\]{--tw-border-opacity: 1;border-color:rgb(168 221 200 / var(--tw-border-opacity, 1))}.border-\[\#B6CAEC\]{--tw-border-opacity: 1;border-color:rgb(182 202 236 / var(--tw-border-opacity, 1))}.border-\[\#CBD3DF\]{--tw-border-opacity: 1;border-color:rgb(203 211 223 / var(--tw-border-opacity, 1))}.border-\[\#CBEADB\]{--tw-border-opacity: 1;border-color:rgb(203 234 219 / var(--tw-border-opacity, 1))}.border-\[\#DDE6F6\]{--tw-border-opacity: 1;border-color:rgb(221 230 246 / var(--tw-border-opacity, 1))}.border-\[\#E6ECF6\]{--tw-border-opacity: 1;border-color:rgb(230 236 246 / var(--tw-border-opacity, 1))}.border-\[\#EBECEE\]{--tw-border-opacity: 1;border-color:rgb(235 236 238 / var(--tw-border-opacity, 1))}.border-\[\#F2D28A\]{--tw-border-opacity: 1;border-color:rgb(242 210 138 / var(--tw-border-opacity, 1))}.border-\[\#F4C7C7\]{--tw-border-opacity: 1;border-color:rgb(244 199 199 / var(--tw-border-opacity, 1))}.border-\[rgba\(0\,173\,211\,0\.25\)\]{border-color:#00add340}.border-amber-950{--tw-border-opacity: 1;border-color:rgb(69 26 3 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity, 1))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(132 225 188 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(205 219 254 / var(--tw-border-opacity, 1))}.border-primary-100{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.border-primary-100\/10{border-color:rgb(var(--theme-primary-100) / .1)}.border-primary-50{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(220 215 254 / var(--tw-border-opacity, 1))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(202 191 253 / var(--tw-border-opacity, 1))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity, 1))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(251 213 213 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(248 180 180 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity, 1))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity, 1))}.border-secondary-100{--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-100) / var(--tw-border-opacity, 1))}.border-secondary-200{--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-200) / var(--tw-border-opacity, 1))}.border-secondary-50{--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-50) / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-white\/15{border-color:#ffffff26}.border-white\/25{border-color:#ffffff40}.border-white\/90{border-color:#ffffffe6}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(252 233 106 / var(--tw-border-opacity, 1))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity, 1))}.border-b-\[\#EBECEE\]{--tw-border-opacity: 1;border-bottom-color:rgb(235 236 238 / var(--tw-border-opacity, 1))}.border-l-\[\#1f4fbf\]{--tw-border-opacity: 1;border-left-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.border-l-\[\#F2C94C\]{--tw-border-opacity: 1;border-left-color:rgb(242 201 76 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-s-gray-50{--tw-border-opacity: 1;border-inline-start-color:rgb(249 250 251 / var(--tw-border-opacity, 1))}.\!bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))!important}.bg-\[\#006B4A\]{--tw-bg-opacity: 1;background-color:rgb(0 107 74 / var(--tw-bg-opacity, 1))}.bg-\[\#00ADD3\]{--tw-bg-opacity: 1;background-color:rgb(0 173 211 / var(--tw-bg-opacity, 1))}.bg-\[\#0A1930\]{--tw-bg-opacity: 1;background-color:rgb(10 25 48 / var(--tw-bg-opacity, 1))}.bg-\[\#0b1220\]\/45{background-color:#0b122073}.bg-\[\#1A3360\]{--tw-bg-opacity: 1;background-color:rgb(26 51 96 / var(--tw-bg-opacity, 1))}.bg-\[\#1f4fbf\]{--tw-bg-opacity: 1;background-color:rgb(31 79 191 / var(--tw-bg-opacity, 1))}.bg-\[\#234481\]{--tw-bg-opacity: 1;background-color:rgb(35 68 129 / var(--tw-bg-opacity, 1))}.bg-\[\#234481\]\/30{background-color:#2344814d}.bg-\[\#2B5BB8\]{--tw-bg-opacity: 1;background-color:rgb(43 91 184 / var(--tw-bg-opacity, 1))}.bg-\[\#2D58A7\]{--tw-bg-opacity: 1;background-color:rgb(45 88 167 / var(--tw-bg-opacity, 1))}.bg-\[\#B6CAEC\]{--tw-bg-opacity: 1;background-color:rgb(182 202 236 / var(--tw-bg-opacity, 1))}.bg-\[\#D1F7FF\]{--tw-bg-opacity: 1;background-color:rgb(209 247 255 / var(--tw-bg-opacity, 1))}.bg-\[\#DCE5F3\]{--tw-bg-opacity: 1;background-color:rgb(220 229 243 / var(--tw-bg-opacity, 1))}.bg-\[\#DDE6F6\]{--tw-bg-opacity: 1;background-color:rgb(221 230 246 / var(--tw-bg-opacity, 1))}.bg-\[\#EAF8F1\]{--tw-bg-opacity: 1;background-color:rgb(234 248 241 / var(--tw-bg-opacity, 1))}.bg-\[\#EBF0F7\]{--tw-bg-opacity: 1;background-color:rgb(235 240 247 / var(--tw-bg-opacity, 1))}.bg-\[\#F0FBF6\]{--tw-bg-opacity: 1;background-color:rgb(240 251 246 / var(--tw-bg-opacity, 1))}.bg-\[\#F1F5FB\]{--tw-bg-opacity: 1;background-color:rgb(241 245 251 / var(--tw-bg-opacity, 1))}.bg-\[\#F2F4F8\]{--tw-bg-opacity: 1;background-color:rgb(242 244 248 / var(--tw-bg-opacity, 1))}.bg-\[\#F7F9FD\]{--tw-bg-opacity: 1;background-color:rgb(247 249 253 / var(--tw-bg-opacity, 1))}.bg-\[\#F7F9FD\]\/95{background-color:#f7f9fdf2}.bg-\[\#F8FAFD\]{--tw-bg-opacity: 1;background-color:rgb(248 250 253 / var(--tw-bg-opacity, 1))}.bg-\[\#FFF1F1\]{--tw-bg-opacity: 1;background-color:rgb(255 241 241 / var(--tw-bg-opacity, 1))}.bg-\[\#FFF8E6\]{--tw-bg-opacity: 1;background-color:rgb(255 248 230 / var(--tw-bg-opacity, 1))}.bg-\[\#d2e0f0\]{--tw-bg-opacity: 1;background-color:rgb(210 224 240 / var(--tw-bg-opacity, 1))}.bg-\[\#eef2fb\]{--tw-bg-opacity: 1;background-color:rgb(238 242 251 / var(--tw-bg-opacity, 1))}.bg-\[\#f5f7fb\]{--tw-bg-opacity: 1;background-color:rgb(245 247 251 / var(--tw-bg-opacity, 1))}.bg-\[rgba\(0\,173\,211\,0\.15\)\]{background-color:#00add326}.bg-\[var\(--secondary-dark-blue\)\]{background-color:var(--secondary-dark-blue)}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/10{background-color:#0000001a}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity, 1))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity, 1))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.bg-blue-900\/20{background-color:#23387633}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-gray-900\/50{background-color:#11182780}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity, 1))}.bg-green-300{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(243 250 247 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity, 1))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity, 1))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity, 1))}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(252 217 189 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(255 90 31 / var(--tw-bg-opacity, 1))}.bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.bg-primary-100\/5{background-color:rgb(var(--theme-primary-100) / .05)}.bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.bg-primary-50\/50{background-color:rgb(var(--theme-primary-50) / .5)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity, 1))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity, 1))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity, 1))}.bg-secondary-100{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.bg-secondary-300{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-300) / var(--tw-bg-opacity, 1))}.bg-secondary-50{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-50) / var(--tw-bg-opacity, 1))}.bg-secondary-50\/90{background-color:rgb(var(--theme-secondary-50) / .9)}.bg-secondary-50\/95{background-color:rgb(var(--theme-secondary-50) / .95)}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-slate-900\/10{background-color:#0f172a1a}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(237 250 250 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/15{background-color:#ffffff26}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity, 1))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(253 253 234 / var(--tw-bg-opacity, 1))}.bg-opacity-100{--tw-bg-opacity: 1}.bg-opacity-25{--tw-bg-opacity: .25}.bg-opacity-30{--tw-bg-opacity: .3}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.bg-\[linear-gradient\(175\.9deg\,\#14274A_3\.34\%\,\#0B1528_97\.37\%\)\]{background-image:linear-gradient(175.9deg,#14274a 3.34%,#0b1528 97.37%)}.bg-\[linear-gradient\(180deg\,\#0C182D_0\%\,\#1A3360_100\%\)\]{background-image:linear-gradient(180deg,#0c182d,#1a3360)}.bg-\[linear-gradient\(180deg\,\#0E1E3C_0\%\,\#14274A_50\%\,\#0E1E3C_100\%\)\]{background-image:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.bg-\[linear-gradient\(180deg\,\#14274A_0\%\,\#0B1528_100\%\)\]{background-image:linear-gradient(180deg,#14274a,#0b1528)}.bg-\[linear-gradient\(180deg\,\#EBF0F7_0\%\,\#FFFFFF_100\%\)\]{background-image:linear-gradient(180deg,#ebf0f7,#fff)}.bg-\[linear-gradient\(90deg\,rgba\(0\,0\,0\,0\)_0\%\,\#00ADD3_50\%\,rgba\(0\,0\,0\,0\)_100\%\)\]{background-image:linear-gradient(90deg,#0000,#00add3,#0000)}.bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#2B5BB8\]{--tw-gradient-from: #2B5BB8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(43 91 184 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-50{--tw-gradient-from: #F6F5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(246 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-indigo-50{--tw-gradient-to: #F0F5FF var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.bg-cover{background-size:cover}.bg-center{background-position:center}.bg-right{background-position:right}.bg-right-bottom{background-position:right bottom}.bg-no-repeat{background-repeat:no-repeat}.fill-blue-600{fill:#1c64f2}.fill-secondary-400{fill:rgb(var(--theme-secondary-400) / 1)}.fill-white{fill:#fff}.stroke-white{stroke:#fff}.stroke-2{stroke-width:2}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[10px\]{padding-left:10px;padding-right:10px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[22px\]{padding-top:22px;padding-bottom:22px}.py-\[44px\]{padding-top:44px;padding-bottom:44px}.py-\[54px\]{padding-top:54px;padding-bottom:54px}.py-\[64px\]{padding-top:64px;padding-bottom:64px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-32{padding-bottom:8rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-\[56px\]{padding-bottom:56px}.pb-\[80px\]{padding-bottom:80px}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-28{padding-right:7rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.ps-10{padding-inline-start:2.5rem}.ps-3{padding-inline-start:.75rem}.ps-5{padding-inline-start:1.25rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.pt-\[140px\]{padding-top:140px}.pt-\[64px\]{padding-top:64px}.pt-\[72px\]{padding-top:72px}.pt-\[75px\]{padding-top:75px}.pt-\[80px\]{padding-top:80px}.pt-\[88px\]{padding-top:88px}.pt-\[96px\]{padding-top:96px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-\[Blinker\]{font-family:Blinker}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[19px\]{font-size:19px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[32px\]{font-size:32px}.text-\[34px\]{font-size:34px}.text-\[38px\]{font-size:38px}.text-\[40px\]{font-size:40px}.text-\[42px\]{font-size:42px}.text-\[48px\]{font-size:48px}.text-\[clamp\(0\.95rem\,0\.82rem\+0\.35vw\,1\.125rem\)\]{font-size:clamp(.95rem,.82rem + .35vw,1.125rem)}.text-\[clamp\(1rem\,0\.92rem\+0\.35vw\,1\.25rem\)\]{font-size:clamp(1rem,.92rem + .35vw,1.25rem)}.text-\[clamp\(2\.75rem\,2\.1rem\+2\.1vw\,3\.75rem\)\]{font-size:clamp(2.75rem,2.1rem + 2.1vw,3.75rem)}.text-\[clamp\(26px\,3\.2vw\,44px\)\]{font-size:clamp(26px,3.2vw,44px)}.text-\[clamp\(2rem\,1\.2rem\+2\.6vw\,3\.5rem\)\]{font-size:clamp(2rem,1.2rem + 2.6vw,3.5rem)}.text-\[clamp\(34px\,4\.2vw\,56px\)\]{font-size:clamp(34px,4.2vw,56px)}.text-\[clamp\(34px\,4\.4vw\,54px\)\]{font-size:clamp(34px,4.4vw,54px)}.text-\[clamp\(34px\,4\.4vw\,56px\)\]{font-size:clamp(34px,4.4vw,56px)}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-8{line-height:2rem}.leading-9{line-height:2.25rem}.leading-\[0\.95\]{line-height:.95}.leading-\[1\.05\]{line-height:1.05}.leading-\[1\.08\]{line-height:1.08}.leading-\[1\.12\]{line-height:1.12}.leading-\[1\.15\]{line-height:1.15}.leading-\[1\.1\]{line-height:1.1}.leading-\[1\.25\]{line-height:1.25}.leading-\[1\.2\]{line-height:1.2}.leading-\[1\.35\]{line-height:1.35}.leading-\[1\.45\]{line-height:1.45}.leading-\[1\.58\]{line-height:1.58}.leading-\[1\.5\]{line-height:1.5}.leading-\[1\.6\]{line-height:1.6}.leading-\[1\.7\]{line-height:1.7}.leading-\[22px\]{line-height:22px}.leading-\[28px\]{line-height:28px}.leading-\[29px\]{line-height:29px}.leading-\[30px\]{line-height:30px}.leading-\[32px\]{line-height:32px}.leading-\[40px\]{line-height:40px}.leading-\[58px\]{line-height:58px}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-\[-0\.02em\]{letter-spacing:-.02em}.tracking-\[-0\.03em\]{letter-spacing:-.03em}.tracking-\[0\.02em\]{letter-spacing:.02em}.tracking-\[0\.04em\]{letter-spacing:.04em}.tracking-\[0\.08em\]{letter-spacing:.08em}.tracking-\[0\.2px\]{letter-spacing:.2px}.tracking-\[0\.5px\]{letter-spacing:.5px}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-\[\#006B4A\]{--tw-text-opacity: 1;color:rgb(0 107 74 / var(--tw-text-opacity, 1))}.text-\[\#00ADD3\]{--tw-text-opacity: 1;color:rgb(0 173 211 / var(--tw-text-opacity, 1))}.text-\[\#00B5E2\]{--tw-text-opacity: 1;color:rgb(0 181 226 / var(--tw-text-opacity, 1))}.text-\[\#0B1528\]{--tw-text-opacity: 1;color:rgb(11 21 40 / var(--tw-text-opacity, 1))}.text-\[\#0b1220\]{--tw-text-opacity: 1;color:rgb(11 18 32 / var(--tw-text-opacity, 1))}.text-\[\#0f172a\]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-\[\#111827\]{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-\[\#14274A\]{--tw-text-opacity: 1;color:rgb(20 39 74 / var(--tw-text-opacity, 1))}.text-\[\#18A8D8\]{--tw-text-opacity: 1;color:rgb(24 168 216 / var(--tw-text-opacity, 1))}.text-\[\#1f4fbf\]{--tw-text-opacity: 1;color:rgb(31 79 191 / var(--tw-text-opacity, 1))}.text-\[\#269c43\]{--tw-text-opacity: 1;color:rgb(38 156 67 / var(--tw-text-opacity, 1))}.text-\[\#2B5BB8\]{--tw-text-opacity: 1;color:rgb(43 91 184 / var(--tw-text-opacity, 1))}.text-\[\#2D58A7\]{--tw-text-opacity: 1;color:rgb(45 88 167 / var(--tw-text-opacity, 1))}.text-\[\#324153\]{--tw-text-opacity: 1;color:rgb(50 65 83 / var(--tw-text-opacity, 1))}.text-\[\#3D71CC\]{--tw-text-opacity: 1;color:rgb(61 113 204 / var(--tw-text-opacity, 1))}.text-\[\#4C5A6B\]{--tw-text-opacity: 1;color:rgb(76 90 107 / var(--tw-text-opacity, 1))}.text-\[\#526179\]{--tw-text-opacity: 1;color:rgb(82 97 121 / var(--tw-text-opacity, 1))}.text-\[\#5A7AAA\]{--tw-text-opacity: 1;color:rgb(90 122 170 / var(--tw-text-opacity, 1))}.text-\[\#6B7890\]{--tw-text-opacity: 1;color:rgb(107 120 144 / var(--tw-text-opacity, 1))}.text-\[\#7A4D00\]{--tw-text-opacity: 1;color:rgb(122 77 0 / var(--tw-text-opacity, 1))}.text-\[\#9AA6B8\]{--tw-text-opacity: 1;color:rgb(154 166 184 / var(--tw-text-opacity, 1))}.text-\[\#B42318\]{--tw-text-opacity: 1;color:rgb(180 35 24 / var(--tw-text-opacity, 1))}.text-\[\#CBD3DF\]{--tw-text-opacity: 1;color:rgb(203 211 223 / var(--tw-text-opacity, 1))}.text-\[\#b40404\]{--tw-text-opacity: 1;color:rgb(180 4 4 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity, 1))}.text-green-950{--tw-text-opacity: 1;color:rgb(5 46 22 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity, 1))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(180 52 3 / var(--tw-text-opacity, 1))}.text-primary-100{--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.text-primary-50{--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity, 1))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity, 1))}.text-red-950{--tw-text-opacity: 1;color:rgb(69 10 10 / var(--tw-text-opacity, 1))}.text-secondary-100{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-100) / var(--tw-text-opacity, 1))}.text-secondary-200{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-200) / var(--tw-text-opacity, 1))}.text-secondary-50{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-50) / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/55{color:#ffffff8c}.text-white\/65{color:#ffffffa6}.text-white\/80{color:#fffc}.text-white\/90{color:#ffffffe6}.text-white\/95{color:#fffffff2}.text-yellow-300{--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.decoration-primary-100{text-decoration-color:rgb(var(--theme-primary-100) / 1)}.decoration-8{text-decoration-thickness:8px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.bg-blend-multiply{background-blend-mode:multiply}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_18px_rgba\(43\,91\,184\,0\.25\)\]{--tw-shadow: 0 10px 18px rgba(43,91,184,.25);--tw-shadow-colored: 0 10px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_30px_rgba\(0\,0\,0\,0\.18\)\]{--tw-shadow: 0 10px 30px rgba(0,0,0,.18);--tw-shadow-colored: 0 10px 30px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_12px_32px_rgba\(11\,18\,32\,0\.16\)\]{--tw-shadow: 0 12px 32px rgba(11,18,32,.16);--tw-shadow-colored: 0 12px 32px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_18px_28px_rgba\(0\,0\,0\,0\.35\)\]{--tw-shadow: 0 18px 28px rgba(0,0,0,.35);--tw-shadow-colored: 0 18px 28px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_20px_50px_rgba\(11\,18\,32\,0\.24\)\]{--tw-shadow: 0 20px 50px rgba(11,18,32,.24);--tw-shadow-colored: 0 20px 50px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_22px_60px_rgba\(11\,18\,32\,0\.08\)\]{--tw-shadow: 0 22px 60px rgba(11,18,32,.08);--tw-shadow-colored: 0 22px 60px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_10px_rgba\(0\,0\,0\,0\.3\)\]{--tw-shadow: 0 2px 10px rgba(0,0,0,.3);--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_30px_80px_rgba\(7\,18\,38\,0\.35\)\]{--tw-shadow: 0 30px 80px rgba(7,18,38,.35);--tw-shadow-colored: 0 30px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_4px_12px_rgba\(0\,0\,0\,0\.15\)\]{--tw-shadow: 0 4px 12px rgba(0,0,0,.15);--tw-shadow-colored: 0 4px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-teal-500{outline-color:#0694a2}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-\[6px\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(6px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1))}.ring-white\/10{--tw-ring-color: rgb(255 255 255 / .1)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[100px\]{--tw-blur: blur(100px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[120px\]{--tw-blur: blur(120px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[1px\]{--tw-blur: blur(1px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-0{--tw-brightness: brightness(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-width{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-200{transition-delay:.2s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-3000{transition-duration:3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[grid-template-columns\:repeat\(auto-fit\,minmax\(250px\,max-content\)\)\]{grid-template-columns:repeat(auto-fit,minmax(250px,max-content))}.blinker{font-family:Blinker,system-ui,sans-serif}:root{--blockquote-border-color: #ccc;--blockquote-bg-color: #dde6f6;--blockquote-text-color: black}@media (prefers-color-scheme: dark){:root{--blockquote-border-color: #171717;--blockquote-bg-color: #0c1c38;--blockquote-text-color: #eee}}ngx-file-drop .ngx-file-drop__drop-zone{border-color:rgb(var(--theme-primary-100))!important}markdown{font-family:Blinker,system-ui,sans-serif;line-height:1.6;font-style:var(--blockquote-text-color)}markdown h1{font-size:2em;margin-bottom:.5em}markdown h2{font-size:1.5em;margin-bottom:.5em}markdown h3{font-size:1.17em;margin-bottom:.5em}markdown h4{font-size:1em;margin-bottom:.5em}markdown h5{font-size:.83em;margin-bottom:.5em}markdown h6{font-size:.67em;margin-bottom:.5em}.price-plan markdown h1{font-size:1.2em;font-weight:700;margin-bottom:.5em}.price-plan markdown h2{font-size:1em;font-weight:700;margin-bottom:.5em}.price-plan markdown h3{font-size:.83em;font-weight:700;margin-bottom:.5em}.price-plan markdown h4{font-size:.67em;margin-bottom:.5em}.price-plan markdown h5{font-size:.5em;margin-bottom:.5em}.price-plan markdown h6{font-size:.5em;margin-bottom:.5em}markdown p{margin-bottom:1em}markdown p:last-child{margin-bottom:0}markdown ul,markdown ol{margin-bottom:1em}markdown ul ul,markdown ul ol,markdown ol ul,markdown ol ol{margin-top:.5em;margin-left:1.5em}markdown ul li,markdown ol li{margin-bottom:.5em;margin-left:1.5em}markdown ul li{list-style-type:disc}markdown ol li{list-style-type:decimal}markdown blockquote{margin-left:0;padding-left:1em;border-left:2px solid var(--blockquote-border-color)}markdown code{font-family:monospace;background-color:#2d58a7;padding:.2em .4em;border-radius:3px}markdown pre{font-family:monospace;background-color:#2d58a7;padding:.5em;border-radius:3px;overflow:auto}markdown table{border-collapse:collapse;width:100%}markdown table th,markdown table td{border:1px solid var(--blockquote-border-color);padding:8px}markdown table th{background-color:#2d58a7}markdown body.dark table th{background-color:#2d58a7}markdown img{max-width:100%;height:auto}markdown a{color:#007bff;text-decoration:none}markdown a:hover{text-decoration:underline}:root{fa-layers{fa-layers-counter{font-size:2em;position:absolute;top:-.1em;right:-.1em}}}:root{--autofill-bg-light: #f0f0f0;--autofill-text-light: #000000}[data-theme=dark]{--autofill-bg-dark: #182740;--autofill-text-dark: #ffffff}input:-webkit-autofill{background-color:var(--autofill-bg-light)!important;color:var(--autofill-text-light)!important;-webkit-transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s}[data-theme=dark] input:-webkit-autofill{background-color:var(--autofill-bg-dark)!important;color:var(--autofill-text-dark)!important}input:-webkit-autofill:first-line{color:inherit}textarea:-webkit-autofill{background-color:var(--autofill-bg-light)!important;color:var(--autofill-text-light)!important;-webkit-transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s}[data-theme=dark] textarea:-webkit-autofill{background-color:var(--autofill-bg-dark)!important;color:var(--autofill-text-dark)!important}textarea:-webkit-autofill:first-line{color:inherit}.file\:mr-4::file-selector-button{margin-right:1rem}.file\:h-12::file-selector-button{height:3rem}.file\:cursor-pointer::file-selector-button{cursor:pointer}.file\:rounded-lg::file-selector-button{border-radius:.5rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-\[\#EBF0F7\]::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(235 240 247 / var(--tw-bg-opacity, 1))}.file\:bg-primary-100::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.file\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-\[\#1f4fbf\]::file-selector-button{--tw-text-opacity: 1;color:rgb(31 79 191 / var(--tw-text-opacity, 1))}.file\:text-white::file-selector-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder\:text-\[\#9AA6B8\]::placeholder{--tw-text-opacity: 1;color:rgb(154 166 184 / var(--tw-text-opacity, 1))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:start-\[1px\]:after{content:var(--tw-content);inset-inline-start:1px}.after\:start-\[2px\]:after{content:var(--tw-content);inset-inline-start:2px}.after\:top-0\.5:after{content:var(--tw-content);top:.125rem}.after\:top-\[1px\]:after{content:var(--tw-content);top:1px}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:mx-2:after{content:var(--tw-content);margin-left:.5rem;margin-right:.5rem}.after\:inline-block:after{content:var(--tw-content);display:inline-block}.after\:h-1:after{content:var(--tw-content);height:.25rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-4:after{content:var(--tw-content);border-width:4px}.after\:border-b:after{content:var(--tw-content);border-bottom-width:1px}.after\:border-gray-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.after\:border-gray-400:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.after\:border-gray-700:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.after\:border-primary-100:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.last\:border-b-0:last-child{border-bottom-width:0px}.checked\:scale-110:checked{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.checked\:border-blue-600:checked{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity, 1))}.checked\:bg-blue-600:checked{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.checked\:bg-primary-100:checked{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.checked\:ring-2:checked{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[\#1f4fbf\]:hover{--tw-border-opacity: 1;border-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:border-primary-50:hover{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.hover\:border-white\/40:hover{border-color:#fff6}.hover\:bg-\[\#00523A\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 82 58 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#00533A\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 83 58 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#183f99\]:hover{--tw-bg-opacity: 1;background-color:rgb(24 63 153 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#18B5D9\]:hover{--tw-bg-opacity: 1;background-color:rgb(24 181 217 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#5B6F8E\]:hover{--tw-bg-opacity: 1;background-color:rgb(91 111 142 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#DDE6F6\]:hover{--tw-bg-opacity: 1;background-color:rgb(221 230 246 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#EBF0F7\]:hover{--tw-bg-opacity: 1;background-color:rgb(235 240 247 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#F2F4F8\]:hover{--tw-bg-opacity: 1;background-color:rgb(242 244 248 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#F7F9FD\]:hover{--tw-bg-opacity: 1;background-color:rgb(247 249 253 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#FFF1F1\]:hover{--tw-bg-opacity: 1;background-color:rgb(255 241 241 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#d2e0f0\]:hover{--tw-bg-opacity: 1;background-color:rgb(210 224 240 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity, 1))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity, 1))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity, 1))}.hover\:bg-green-900:hover{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 255 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(81 69 205 / var(--tw-bg-opacity, 1))}.hover\:bg-orange-600:hover{--tw-bg-opacity: 1;background-color:rgb(208 56 1 / var(--tw-bg-opacity, 1))}.hover\:bg-primary-100:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.hover\:bg-primary-50:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity, 1))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity, 1))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-red-900:hover{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity, 1))}.hover\:bg-secondary-100:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.hover\:bg-secondary-50:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-50) / var(--tw-bg-opacity, 1))}.hover\:bg-sky-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity, 1))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/5:hover{background-color:#ffffff0d}.hover\:text-\[\#00533A\]:hover{--tw-text-opacity: 1;color:rgb(0 83 58 / var(--tw-text-opacity, 1))}.hover\:text-\[\#0b1220\]:hover{--tw-text-opacity: 1;color:rgb(11 18 32 / var(--tw-text-opacity, 1))}.hover\:text-\[\#183f99\]:hover{--tw-text-opacity: 1;color:rgb(24 63 153 / var(--tw-text-opacity, 1))}.hover\:text-\[\#1f4fbf\]:hover{--tw-text-opacity: 1;color:rgb(31 79 191 / var(--tw-text-opacity, 1))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity, 1))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.hover\:text-blue-900:hover{--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity, 1))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-indigo-800:hover{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity, 1))}.hover\:text-primary-100:hover{--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.hover\:text-primary-50:hover{--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity, 1))}.hover\:text-red-900:hover{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity, 1))}.hover\:text-secondary-400:hover{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-400) / var(--tw-text-opacity, 1))}.hover\:text-secondary-50:hover{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-50) / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:file\:bg-primary-50::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.focus\:z-10:focus{z-index:10}.focus\:border-\[\#1f4fbf\]:focus{--tw-border-opacity: 1;border-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(104 117 245 / var(--tw-border-opacity, 1))}.focus\:border-primary-50:focus{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.focus\:border-purple-500:focus{--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity, 1))}.focus\:shadow:focus{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline-0:focus{outline-width:0px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#A8DDC8\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 221 200 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#B6CAEC\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(182 202 236 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#B8E6D1\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(184 230 209 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#F4C7C7\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(244 199 199 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(243 244 246 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity, 1))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(104 117 245 / var(--tw-ring-opacity, 1))}.focus\:ring-primary-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-100) / var(--tw-ring-opacity, 1))}.focus\:ring-primary-50:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-50) / var(--tw-ring-opacity, 1))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity, 1))}.focus\:ring-purple-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(144 97 249 / var(--tw-ring-opacity, 1))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity, 1))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity, 1))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:bg-white\/10:active{background-color:#ffffff1a}.active\:brightness-95:active{--tw-brightness: brightness(.95);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-\[\#F7F9FD\]:disabled{--tw-bg-opacity: 1;background-color:rgb(247 249 253 / var(--tw-bg-opacity, 1))}.disabled\:text-\[\#9AA6B8\]:disabled{--tw-text-opacity: 1;color:rgb(154 166 184 / var(--tw-text-opacity, 1))}.disabled\:text-gray-300:disabled{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:checked~.peer-checked\:border{border-width:1px}.peer:checked~.peer-checked\:border-primary-100{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.peer:checked~.peer-checked\:border-primary-50{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.peer:checked~.peer-checked\:bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.peer:checked~.peer-checked\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.peer:checked~.peer-checked\:after\:translate-x-full:after{content:var(--tw-content);--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:after\:border-white:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.peer:focus~.peer-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.peer:focus~.peer-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.peer:focus~.peer-focus\:ring-blue-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity, 1))}.peer:focus~.peer-focus\:ring-primary-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-100) / var(--tw-ring-opacity, 1))}.dark\:divide-secondary-200:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(var(--theme-secondary-200) / var(--tw-divide-opacity, 1))}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.dark\:border-blue-500\/40:is(.dark *){border-color:#3f83f866}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity, 1))}.dark\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 66 159 / var(--tw-border-opacity, 1))}.dark\:border-gray-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.dark\:border-green-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity, 1))}.dark\:border-primary-100:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.dark\:border-primary-50:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.dark\:border-purple-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity, 1))}.dark\:border-purple-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity, 1))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(119 29 29 / var(--tw-border-opacity, 1))}.dark\:border-secondary-100:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-100) / var(--tw-border-opacity, 1))}.dark\:border-secondary-200:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-200) / var(--tw-border-opacity, 1))}.dark\:border-secondary-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-300) / var(--tw-border-opacity, 1))}.dark\:border-secondary-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-400) / var(--tw-border-opacity, 1))}.dark\:border-secondary-50:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-50) / var(--tw-border-opacity, 1))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\:border-s-gray-700:is(.dark *){--tw-border-opacity: 1;border-inline-start-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:\!bg-gray-700:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))!important}.dark\:bg-amber-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-900\/30:is(.dark *){background-color:#2338764d}.dark\:bg-blue-900\/60:is(.dark *){background-color:#23387699}.dark\:bg-gray-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/80:is(.dark *){background-color:#111827cc}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity, 1))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity, 1))}.dark\:bg-green-900\/40:is(.dark *){background-color:#01473766}.dark\:bg-indigo-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(54 47 120 / var(--tw-bg-opacity, 1))}.dark\:bg-primary-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.dark\:bg-primary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity, 1))}.dark\:bg-purple-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity, 1))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity, 1))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-100\/90:is(.dark *){background-color:rgb(var(--theme-secondary-100) / .9)}.dark\:bg-secondary-100\/95:is(.dark *){background-color:rgb(var(--theme-secondary-100) / .95)}.dark\:bg-secondary-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-200) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-300) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-50) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-500) / var(--tw-bg-opacity, 1))}.dark\:bg-tertiary-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-tertiary-100) / var(--tw-bg-opacity, 1))}.dark\:bg-tertiary-100\/95:is(.dark *){background-color:rgb(var(--theme-tertiary-100) / .95)}.dark\:bg-tertiary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-tertiary-50) / var(--tw-bg-opacity, 1))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}.dark\:bg-opacity-60:is(.dark *){--tw-bg-opacity: .6}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-purple-900\/20:is(.dark *){--tw-gradient-from: rgb(74 29 150 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(74 29 150 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-indigo-900\/20:is(.dark *){--tw-gradient-to: rgb(54 47 120 / .2) var(--tw-gradient-to-position)}.dark\:text-amber-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.dark\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity, 1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity, 1))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity, 1))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-green-300:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity, 1))}.dark\:text-indigo-300:is(.dark *){--tw-text-opacity: 1;color:rgb(180 198 252 / var(--tw-text-opacity, 1))}.dark\:text-primary-100:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.dark\:text-primary-50:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.dark\:text-purple-200:is(.dark *){--tw-text-opacity: 1;color:rgb(220 215 254 / var(--tw-text-opacity, 1))}.dark\:text-purple-300:is(.dark *){--tw-text-opacity: 1;color:rgb(202 191 253 / var(--tw-text-opacity, 1))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity, 1))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity, 1))}.dark\:text-secondary-100:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-100) / var(--tw-text-opacity, 1))}.dark\:text-secondary-50:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-50) / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity, 1))}.dark\:decoration-primary-100:is(.dark *){text-decoration-color:rgb(var(--theme-primary-100) / 1)}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:after\:border-gray-400:is(.dark *):after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.dark\:after\:border-gray-500:is(.dark *):after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.dark\:checked\:bg-primary-100:checked:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-blue-900\/20:hover:is(.dark *){background-color:#23387633}.dark\:hover\:bg-gray-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-primary-50:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-purple-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-100:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-200:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-200) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-300) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-400) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-tertiary-100:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-tertiary-100) / var(--tw-bg-opacity, 1))}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity, 1))}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.dark\:hover\:text-primary-100:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.dark\:hover\:text-primary-50:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.dark\:hover\:text-secondary-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-400) / var(--tw-text-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.dark\:focus\:border-primary-100:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.dark\:focus\:border-purple-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity, 1))}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-blue-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(35 56 118 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-primary-100:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-100) / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-primary-50:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-50) / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity, 1))}.group:hover .dark\:group-hover\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.peer:checked~.dark\:peer-checked\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.peer:checked~.dark\:peer-checked\:bg-primary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.peer:checked~.dark\:peer-checked\:text-secondary-100:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-100) / var(--tw-text-opacity, 1))}.peer:focus~.dark\:peer-focus\:ring-blue-800:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.sm\:bottom-\[-80px\]{bottom:-80px}.sm\:left-\[-180px\]{left:-180px}.sm\:right-10{right:2.5rem}.sm\:right-\[-100px\]{right:-100px}.sm\:top-\[-60px\]{top:-60px}.sm\:m-8{margin:2rem}.sm\:ms-auto{margin-inline-start:auto}.sm\:mt-10{margin-top:2.5rem}.sm\:mt-12{margin-top:3rem}.sm\:mt-16{margin-top:4rem}.sm\:mt-40{margin-top:10rem}.sm\:mt-8{margin-top:2rem}.sm\:mt-9{margin-top:2.25rem}.sm\:block{display:block}.sm\:h-\[300px\]{height:300px}.sm\:h-\[380px\]{height:380px}.sm\:min-h-\[300px\]{min-height:300px}.sm\:min-h-\[45px\]{min-height:45px}.sm\:w-1\/2{width:50%}.sm\:w-\[270px\]{width:270px}.sm\:w-\[300px\]{width:300px}.sm\:w-\[380px\]{width:380px}.sm\:w-auto{width:auto}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-5{gap:1.25rem}.sm\:gap-6{gap:1.5rem}.sm\:gap-8{gap:2rem}.sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-5{padding:1.25rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-16{padding-left:4rem;padding-right:4rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-12{padding-top:3rem;padding-bottom:3rem}.sm\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.sm\:py-20{padding-top:5rem;padding-bottom:5rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:py-\[56px\]{padding-top:56px;padding-bottom:56px}.sm\:py-\[68px\]{padding-top:68px;padding-bottom:68px}.sm\:py-\[80px\]{padding-top:80px;padding-bottom:80px}.sm\:pb-24{padding-bottom:6rem}.sm\:pb-4{padding-bottom:1rem}.sm\:pe-4{padding-inline-end:1rem}.sm\:pt-12{padding-top:3rem}.sm\:pt-20{padding-top:5rem}.sm\:pt-4{padding-top:1rem}.sm\:pt-8{padding-top:2rem}.sm\:pt-\[170px\]{padding-top:170px}.sm\:pt-\[80px\]{padding-top:80px}.sm\:text-center{text-align:center}.sm\:text-\[15px\]{font-size:15px}.sm\:text-\[18px\]{font-size:18px}.sm\:text-\[19px\]{font-size:19px}.sm\:text-\[20px\]{font-size:20px}.sm\:text-\[22px\]{font-size:22px}.sm\:text-\[24px\]{font-size:24px}.sm\:text-\[36px\]{font-size:36px}.sm\:text-\[38px\]{font-size:38px}.sm\:text-\[40px\]{font-size:40px}.sm\:text-\[42px\]{font-size:42px}.sm\:text-\[46px\]{font-size:46px}.sm\:text-\[52px\]{font-size:52px}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-\[30px\]{line-height:30px}.sm\:leading-\[32px\]{line-height:32px}.sm\:leading-\[48px\]{line-height:48px}.sm\:tracking-\[0\.4px\]{letter-spacing:.4px}}@media (min-width: 768px){.md\:inset-0{inset:0}.md\:bottom-\[55px\]{bottom:55px}.md\:col-span-5{grid-column:span 5 / span 5}.md\:col-span-7{grid-column:span 7 / span 7}.md\:mb-0{margin-bottom:0}.md\:mb-8{margin-bottom:2rem}.md\:mr-0{margin-right:0}.md\:mr-2{margin-right:.5rem}.md\:mr-4{margin-right:1rem}.md\:mr-6{margin-right:1.5rem}.md\:ms-2{margin-inline-start:.5rem}.md\:mt-0{margin-top:0}.md\:mt-10{margin-top:2.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-10{height:2.5rem}.md\:h-44{height:11rem}.md\:h-8{height:2rem}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/5{width:20%}.md\:w-10{width:2.5rem}.md\:w-2\/3{width:66.666667%}.md\:w-2\/4{width:50%}.md\:w-3\/4{width:75%}.md\:w-4\/5{width:80%}.md\:w-5\/6{width:83.333333%}.md\:w-72{width:18rem}.md\:w-8{width:2rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:min-w-72{min-width:18rem}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-20\/80{grid-template-columns:20% 80%}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-40\/60{grid-template-columns:40% 60%}.md\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-start{align-items:flex-start}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:justify-items-start{justify-items:start}.md\:gap-10{gap:2.5rem}.md\:gap-12{gap:3rem}.md\:gap-6{gap:1.5rem}.md\:gap-x-12{column-gap:3rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:p-12{padding:3rem}.md\:p-5{padding:1.25rem}.md\:p-8{padding:2rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:py-0{padding-top:0;padding-bottom:0}.md\:py-12{padding-top:3rem;padding-bottom:3rem}.md\:py-16{padding-top:4rem;padding-bottom:4rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:pb-4{padding-bottom:1rem}.md\:pb-8{padding-bottom:2rem}.md\:pl-5{padding-left:1.25rem}.md\:pl-8{padding-left:2rem}.md\:pt-4{padding-top:1rem}.md\:text-start{text-align:start}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-\[26px\]{font-size:26px}.md\:text-\[38px\]{font-size:38px}.md\:text-\[44px\]{font-size:44px}.md\:text-\[56px\]{font-size:56px}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:font-medium{font-weight:500}.md\:after\:mx-6:after{content:var(--tw-content);margin-left:1.5rem;margin-right:1.5rem}}@media (min-width: 1024px){.lg\:bottom-auto{bottom:auto}.lg\:left-\[-252px\]{left:-252px}.lg\:left-\[1187px\]{left:1187px}.lg\:top-\[-73px\]{top:-73px}.lg\:top-\[268px\]{top:268px}.lg\:col-span-1{grid-column:span 1 / span 1}.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:m-2{margin:.5rem}.lg\:mb-0{margin-bottom:0}.lg\:mb-8{margin-bottom:2rem}.lg\:mt-0{margin-top:0}.lg\:mt-12{margin-top:3rem}.lg\:mt-32{margin-top:8rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:table-cell{display:table-cell}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-\[320px\]{height:320px}.lg\:h-\[440px\]{height:440px}.lg\:h-\[561px\]{height:561px}.lg\:h-\[calc\(100\%\)\]{height:100%}.lg\:h-fit{height:-moz-fit-content;height:fit-content}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-3\/4{width:75%}.lg\:w-\[200px\]{width:200px}.lg\:w-\[212px\]{width:212px}.lg\:w-\[260px\]{width:260px}.lg\:w-\[357\.33px\]{width:357.33px}.lg\:w-\[407px\]{width:407px}.lg\:w-\[421px\]{width:421px}.lg\:w-\[440px\]{width:440px}.lg\:w-\[544px\]{width:544px}.lg\:w-\[561px\]{width:561px}.lg\:max-w-\[544px\]{max-width:544px}.lg\:auto-cols-auto{grid-auto-columns:auto}.lg\:grid-flow-col{grid-auto-flow:column}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-20\/80{grid-template-columns:20% 80%}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-60\/40{grid-template-columns:60% 40%}.lg\:grid-cols-80\/20{grid-template-columns:80% 20%}.lg\:flex-row{flex-direction:row}.lg\:flex-col{flex-direction:column}.lg\:items-start{align-items:flex-start}.lg\:items-center{align-items:center}.lg\:items-stretch{align-items:stretch}.lg\:justify-between{justify-content:space-between}.lg\:gap-10{gap:2.5rem}.lg\:gap-14{gap:3.5rem}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-8{gap:2rem}.lg\:gap-\[56px\]{gap:56px}.lg\:gap-\[93px\]{gap:93px}.lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:p-10{padding:2.5rem}.lg\:p-12{padding:3rem}.lg\:p-2\.5{padding:.625rem}.lg\:p-5{padding:1.25rem}.lg\:p-\[24px_32px\]{padding:24px 32px}.lg\:px-10{padding-left:2.5rem;padding-right:2.5rem}.lg\:px-12{padding-left:3rem;padding-right:3rem}.lg\:px-14{padding-left:3.5rem;padding-right:3.5rem}.lg\:px-16{padding-left:4rem;padding-right:4rem}.lg\:px-20{padding-left:5rem;padding-right:5rem}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:px-\[160px\]{padding-left:160px;padding-right:160px}.lg\:px-\[80px\]{padding-left:80px;padding-right:80px}.lg\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\:py-\[100px\]{padding-top:100px;padding-bottom:100px}.lg\:py-\[64px\]{padding-top:64px;padding-bottom:64px}.lg\:py-\[80px\]{padding-top:80px;padding-bottom:80px}.lg\:pb-16{padding-bottom:4rem}.lg\:pb-5{padding-bottom:1.25rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pb-\[80px\]{padding-bottom:80px}.lg\:pb-\[90px\]{padding-bottom:90px}.lg\:pl-16{padding-left:4rem}.lg\:pr-16{padding-right:4rem}.lg\:pt-0{padding-top:0}.lg\:pt-12{padding-top:3rem}.lg\:pt-16{padding-top:4rem}.lg\:pt-8{padding-top:2rem}.lg\:pt-\[100px\]{padding-top:100px}.lg\:pt-\[160px\]{padding-top:160px}.lg\:pt-\[190px\]{padding-top:190px}.lg\:pt-\[80px\]{padding-top:80px}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-\[16px\]{font-size:16px}.lg\:text-\[20px\]{font-size:20px}.lg\:text-\[24px\]{font-size:24px}.lg\:text-\[28px\]{font-size:28px}.lg\:text-\[32px\]{font-size:32px}.lg\:text-\[40px\]{font-size:40px}.lg\:text-\[42px\]{font-size:42px}.lg\:text-\[44px\]{font-size:44px}.lg\:text-\[48px\]{font-size:48px}.lg\:text-\[60px\]{font-size:60px}.lg\:text-\[70px\]{font-size:70px}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}.lg\:leading-\[29px\]{line-height:29px}.lg\:leading-\[32px\]{line-height:32px}.lg\:leading-\[48px\]{line-height:48px}.lg\:leading-\[53px\]{line-height:53px}.lg\:leading-\[58px\]{line-height:58px}.lg\:leading-\[84px\]{line-height:84px}.lg\:tracking-\[1px\]{letter-spacing:1px}}@media (min-width: 1280px){.xl\:flex{display:flex}.xl\:h-\[384px\]{height:384px}.xl\:w-2\/3{width:66.666667%}.xl\:grid-cols-20\/80{grid-template-columns:20% 80%}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-\[minmax\(0\,1\.35fr\)_minmax\(0\,1fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr)}.xl\:gap-6{gap:1.5rem}.xl\:px-16{padding-left:4rem;padding-right:4rem}.xl\:px-20{padding-left:5rem;padding-right:5rem}.xl\:px-48{padding-left:12rem;padding-right:12rem}.xl\:px-\[160px\]{padding-left:160px;padding-right:160px}.xl\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.xl\:pb-\[100px\]{padding-bottom:100px}.xl\:pt-\[100px\]{padding-top:100px}.xl\:pt-\[200px\]{padding-top:200px}.xl\:pt-\[204px\]{padding-top:204px}.xl\:text-\[32px\]{font-size:32px}.xl\:text-\[48px\]{font-size:48px}.xl\:text-\[64px\]{font-size:64px}.xl\:leading-\[32px\]{line-height:32px}.xl\:leading-\[48px\]{line-height:48px}.xl\:leading-\[58px\]{line-height:58px}.xl\:leading-\[77px\]{line-height:77px}.xl\:tracking-\[1px\]{letter-spacing:1px}.xl\:after\:mx-10:after{content:var(--tw-content);margin-left:2.5rem;margin-right:2.5rem}}@media (min-width: 1536px){.\32xl\:px-20{padding-left:5rem;padding-right:5rem}}.ltr\:mr-0\.5:where([dir=ltr],[dir=ltr] *){margin-right:.125rem}.rtl\:ml-0\.5:where([dir=rtl],[dir=rtl] *){margin-left:.125rem}.rtl\:rotate-180:where([dir=rtl],[dir=rtl] *){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.rtl\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}.peer:checked~.rtl\:peer-checked\:after\:-translate-x-full:where([dir=rtl],[dir=rtl] *):after{content:var(--tw-content);--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:rtl\:divide-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 1}} diff --git a/portal/bae-frontend/styles.b116eed9bae0800e.css b/portal/bae-frontend/styles.b116eed9bae0800e.css deleted file mode 100644 index bf609448..00000000 --- a/portal/bae-frontend/styles.b116eed9bae0800e.css +++ /dev/null @@ -1 +0,0 @@ -.emoji-mart,.emoji-mart *{box-sizing:border-box;line-height:1.15}.emoji-mart{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;font-size:16px;display:inline-block;color:#222427;border:1px solid #d9d9d9;border-radius:5px;background:#fff}.emoji-mart .emoji-mart-emoji{padding:6px}.emoji-mart-bar{border:0 solid #d9d9d9}.emoji-mart-bar:first-child{border-bottom-width:1px;border-top-left-radius:5px;border-top-right-radius:5px}.emoji-mart-bar:last-child{border-top-width:1px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.emoji-mart-anchors{display:flex;flex-direction:row;justify-content:space-between;padding:0 6px;line-height:0}.emoji-mart-anchor{position:relative;display:block;flex:1 1 auto;color:#858585;text-align:center;padding:12px 4px;overflow:hidden;transition:color .1s ease-out;margin:0;box-shadow:none;background:none;border:none}.emoji-mart-anchor:focus{outline:0}.emoji-mart-anchor:hover,.emoji-mart-anchor:focus,.emoji-mart-anchor-selected{color:#464646}.emoji-mart-anchor-selected .emoji-mart-anchor-bar{bottom:0}.emoji-mart-anchor-bar{position:absolute;bottom:-3px;left:0;width:100%;height:3px;background-color:#464646}.emoji-mart-anchors i{display:inline-block;width:100%;max-width:22px}.emoji-mart-anchors svg,.emoji-mart-anchors img{fill:currentColor;height:18px}.emoji-mart-scroll{overflow-y:scroll;height:270px;padding:0 6px 6px;will-change:transform}.emoji-mart-search{margin-top:6px;padding:0 6px;position:relative}.emoji-mart-search input{font-size:16px;display:block;width:100%;padding:5px 25px 6px 10px;border-radius:5px;border:1px solid #d9d9d9;outline:0}.emoji-mart-search input,.emoji-mart-search input::-webkit-search-decoration,.emoji-mart-search input::-webkit-search-cancel-button,.emoji-mart-search input::-webkit-search-results-button,.emoji-mart-search input::-webkit-search-results-decoration{-webkit-appearance:none}.emoji-mart-search-icon{position:absolute;top:3px;right:11px;z-index:2;padding:2px 5px 1px;border:none;background:none}.emoji-mart-category .emoji-mart-emoji span{z-index:1;position:relative;text-align:center;cursor:default}.emoji-mart-category .emoji-mart-emoji:hover:before{z-index:0;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f4f4f4;border-radius:100%}.emoji-mart-category-label{z-index:2;position:relative;position:sticky;top:0}.emoji-mart-category-label span{display:block;width:100%;font-weight:500;padding:5px 6px;background-color:#fff;background-color:#fffffff2}.emoji-mart-category-list{margin:0;padding:0}.emoji-mart-category-list li{list-style:none;margin:0;padding:0;display:inline-block}.emoji-mart-emoji{position:relative;display:inline-block;font-size:0;margin:0;padding:0;border:none;background:none;box-shadow:none}.emoji-mart-emoji-native{font-family:"Segoe UI Emoji",Segoe UI Symbol,Segoe UI,"Apple Color Emoji",Twemoji Mozilla,"Noto Color Emoji","Android Emoji"}.emoji-mart-no-results{font-size:14px;text-align:center;padding-top:70px;color:#858585}.emoji-mart-no-results .emoji-mart-category-label{display:none}.emoji-mart-no-results .emoji-mart-no-results-label{margin-top:.2em}.emoji-mart-no-results .emoji-mart-emoji:hover:before{content:none}.emoji-mart-preview{position:relative;height:70px}.emoji-mart-preview-emoji,.emoji-mart-preview-data,.emoji-mart-preview-skins{position:absolute;top:50%;transform:translateY(-50%)}.emoji-mart-preview-emoji{left:12px}.emoji-mart-preview-data{left:68px;right:12px;word-break:break-all}.emoji-mart-preview-skins{right:30px;text-align:right}.emoji-mart-preview-skins.custom{right:10px;text-align:right}.emoji-mart-preview-name{font-size:14px}.emoji-mart-preview-shortname{font-size:12px;color:#888}.emoji-mart-preview-shortname+.emoji-mart-preview-shortname,.emoji-mart-preview-shortname+.emoji-mart-preview-emoticon,.emoji-mart-preview-emoticon+.emoji-mart-preview-emoticon{margin-left:.5em}.emoji-mart-preview-emoticon{font-size:11px;color:#bbb}.emoji-mart-title span{display:inline-block;vertical-align:middle}.emoji-mart-title .emoji-mart-emoji{padding:0}.emoji-mart-title-label{color:#999a9c;font-size:26px;font-weight:300}.emoji-mart-skin-swatches{font-size:0;padding:2px 0;border:1px solid #d9d9d9;border-radius:12px;background-color:#fff}.emoji-mart-skin-swatches.custom{font-size:0;border:none;background-color:#fff}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch{width:16px;padding:0 2px}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch.selected:after{opacity:.75}.emoji-mart-skin-swatch{display:inline-block;width:0;vertical-align:middle;transition-property:width,padding;transition-duration:.125s;transition-timing-function:ease-out}.emoji-mart-skin-swatch:nth-child(1){transition-delay:0s}.emoji-mart-skin-swatch:nth-child(2){transition-delay:.03s}.emoji-mart-skin-swatch:nth-child(3){transition-delay:.06s}.emoji-mart-skin-swatch:nth-child(4){transition-delay:.09s}.emoji-mart-skin-swatch:nth-child(5){transition-delay:.12s}.emoji-mart-skin-swatch:nth-child(6){transition-delay:.15s}.emoji-mart-skin-swatch.selected{position:relative;width:16px;padding:0 2px}.emoji-mart-skin-swatch.selected:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;margin:-2px 0 0 -2px;background-color:#fff;border-radius:100%;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.emoji-mart-skin-swatch.custom{display:inline-block;width:0;height:38px;overflow:hidden;vertical-align:middle;transition-property:width,height;transition-duration:.125s;transition-timing-function:ease-out;cursor:default}.emoji-mart-skin-swatch.custom.selected{position:relative;width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatch.custom.selected:after{content:"";width:0;height:0}.emoji-mart-skin-swatches.custom .emoji-mart-skin-swatch.custom:hover{background-color:#f4f4f4;border-radius:10%}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom{width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom.selected:after{opacity:.75}.emoji-mart-skin-text.opened{display:inline-block;vertical-align:middle;text-align:left;color:#888;font-size:11px;padding:5px 2px;width:95px;height:40px;border-radius:10%;background-color:#fff}.emoji-mart-skin{display:inline-block;width:100%;padding-top:100%;max-width:12px;border-radius:100%}.emoji-mart-skin-tone-1{background-color:#ffc93a}.emoji-mart-skin-tone-2{background-color:#fadcbc}.emoji-mart-skin-tone-3{background-color:#e0bb95}.emoji-mart-skin-tone-4{background-color:#bf8f68}.emoji-mart-skin-tone-5{background-color:#9b643d}.emoji-mart-skin-tone-6{background-color:#594539}.emoji-mart-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.emoji-mart-dark{color:#fff;border-color:#555453;background-color:#222}.emoji-mart-dark .emoji-mart-bar{border-color:#555453}.emoji-mart-dark .emoji-mart-search input{color:#fff;border-color:#555453;background-color:#2f2f2f}.emoji-mart-dark .emoji-mart-search-icon svg{fill:#fff}.emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:#444}.emoji-mart-dark .emoji-mart-category-label span{background-color:#222;color:#fff}.emoji-mart-dark .emoji-mart-skin-swatches{border-color:#555453;background-color:#222}.emoji-mart-dark .emoji-mart-anchor:hover,.emoji-mart-dark .emoji-mart-anchor:focus,.emoji-mart-dark .emoji-mart-anchor-selected{color:#bfbfbf}body.theme-dome{--theme-primary-50: 0 173 211;--theme-primary-100: 45 88 167;--theme-secondary-50: 221 230 246;--theme-secondary-100: 20 39 74;--theme-secondary-200: 12 28 56;--theme-secondary-300: 24 39 64;--theme-secondary-400: 29 65 132;--theme-secondary-500: 19 27 37;--theme-tertiary-50: 17 24 39;--theme-tertiary-100: 20 39 74;--theme-header-v2-top-bg: #070f24;--theme-header-v2-glass-bg: rgba(7, 18, 40, .55);--theme-header-v2-outline-border: #2D58A7;--theme-header-v2-outline-hover-bg: rgba(47, 111, 214, .9);--theme-header-v2-outline-hover-text: #ffffff;--theme-header-v2-solid-bg: #2D58A7;--theme-header-v2-solid-hover-bg: rgba(47, 111, 214, .9)}body.theme-bae{--theme-primary-50: 0 196 140;--theme-primary-100: 0 114 77;--theme-secondary-50: 215 240 229;--theme-secondary-100: 20 92 65;--theme-secondary-200: 15 63 46;--theme-secondary-300: 28 77 59;--theme-secondary-400: 1 82 56;--theme-secondary-500: 27 45 39;--theme-tertiary-50: 31 39 37;--theme-tertiary-100: 27 45 39;--theme-header-v2-top-bg: #0f3f2e;--theme-header-v2-glass-bg: rgba(15, 63, 46, .55);--theme-header-v2-outline-border: #00724d;--theme-header-v2-outline-hover-bg: rgba(0, 196, 140, .9);--theme-header-v2-outline-hover-text: #ffffff;--theme-header-v2-solid-bg: #00724d;--theme-header-v2-solid-hover-bg: rgba(0, 196, 140, .9)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1f2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4b5563}.dark input[type=file]::file-selector-button:hover{background:#6b7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9ca3af}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6b7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1c64f2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9ca3af}.dark input[type=range]:disabled::-moz-range-thumb{background:#6b7280}input[type=range]::-moz-range-progress{background:#3f83f8}input[type=range]::-ms-fill-lower{background:#3f83f8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:#fff;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1c64f2;border-color:#1c64f2}html{font-family:Blinker,system-ui,sans-serif}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-bottom-10{bottom:-2.5rem}.-bottom-6{bottom:-1.5rem}.-right-3{right:-.75rem}.-top-20{top:-5rem}.-top-3{top:-.75rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-9{bottom:2.25rem}.bottom-\[-60px\]{bottom:-60px}.bottom-\[60px\]{bottom:60px}.bottom-full{bottom:100%}.end-0{inset-inline-end:0px}.end-2\.5{inset-inline-end:.625rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-5{left:1.25rem}.left-\[-140px\]{left:-140px}.left-\[-213px\]{left:-213px}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-\[-187px\]{right:-187px}.right-\[-18px\]{right:-18px}.right-\[-80px\]{right:-80px}.right-\[280px\]{right:280px}.start-0{inset-inline-start:0px}.start-1\/2{inset-inline-start:50%}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-20{top:5rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.top-\[-100px\]{top:-100px}.top-\[-40px\]{top:-40px}.top-\[-80px\]{top:-80px}.top-\[-95px\]{top:-95px}.top-\[100vh\]{top:100vh}.top-\[118px\]{top:118px}.top-\[12px\]{top:12px}.top-\[171px\]{top:171px}.top-\[35px\]{top:35px}.top-\[72px\]{top:72px}.top-\[75px\]{top:75px}.top-\[88px\]{top:88px}.top-\[calc\(100\%\+14px\)\]{top:calc(100% + 14px)}.top-full{top:100%}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[200\]{z-index:200}.z-\[2\]{z-index:2}.z-\[3\]{z-index:3}.z-\[4\]{z-index:4}.z-\[51\]{z-index:51}.z-\[52\]{z-index:52}.z-\[53\]{z-index:53}.z-\[5\]{z-index:5}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[80\]{z-index:80}.z-\[999\]{z-index:999}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-3{grid-column:span 3 / span 3}.col-span-4{grid-column:span 4 / span 4}.float-left{float:left}.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}.m-8{margin:2rem}.m-auto{margin:auto}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mb-px{margin-bottom:-1px}.-ml-1{margin-left:-.25rem}.-mr-1{margin-right:-.25rem}.-mt-4{margin-top:-1rem}.-mt-\[88px\]{margin-top:-88px}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.me-2{margin-inline-end:.5rem}.me-2\.5{margin-inline-end:.625rem}.me-3{margin-inline-end:.75rem}.me-4{margin-inline-end:1rem}.me-5{margin-inline-end:1.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-8{margin-left:2rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-7{margin-right:1.75rem}.mr-8{margin-right:2rem}.ms-0{margin-inline-start:0px}.ms-1{margin-inline-start:.25rem}.ms-2{margin-inline-start:.5rem}.ms-2\.5{margin-inline-start:.625rem}.ms-3{margin-inline-start:.75rem}.ms-auto{margin-inline-start:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.line-clamp-5{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.line-clamp-6{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6}.line-clamp-\[4\]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.line-clamp-\[8\]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1\/4{height:25%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-2\/4{height:50%}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\/6{height:83.333333%}.h-52{height:13rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[1\.9rem\]{height:1.9rem}.h-\[100px\]{height:100px}.h-\[12px\]{height:12px}.h-\[18px\]{height:18px}.h-\[200px\]{height:200px}.h-\[220px\]{height:220px}.h-\[22px\]{height:22px}.h-\[25px\]{height:25px}.h-\[280px\]{height:280px}.h-\[2px\]{height:2px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[350px\]{height:350px}.h-\[360px\]{height:360px}.h-\[42px\]{height:42px}.h-\[440px\]{height:440px}.h-\[44px\]{height:44px}.h-\[500px\]{height:500px}.h-\[50px\]{height:50px}.h-\[51\.7px\]{height:51.7px}.h-\[520px\]{height:520px}.h-\[553px\]{height:553px}.h-\[60px\]{height:60px}.h-\[635px\]{height:635px}.h-\[72px\]{height:72px}.h-\[840px\]{height:840px}.h-\[88px\]{height:88px}.h-\[calc\(100\%\)\]{height:100%}.h-\[calc\(100\%-1rem\)\]{height:calc(100% - 1rem)}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-48{max-height:12rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.max-h-96{max-height:24rem}.max-h-\[1\.2rem\]{max-height:1.2rem}.max-h-\[300px\]{max-height:300px}.max-h-\[30vh\]{max-height:30vh}.max-h-\[350px\]{max-height:350px}.max-h-\[360px\]{max-height:360px}.max-h-\[46px\]{max-height:46px}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[calc\(100vh-10rem\)\]{max-height:calc(100vh - 10rem)}.max-h-\[calc\(100vh-160px\)\]{max-height:calc(100vh - 160px)}.max-h-\[calc\(100vh-3rem\)\]{max-height:calc(100vh - 3rem)}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-16{min-height:4rem}.min-h-\[100svh\]{min-height:100svh}.min-h-\[118px\]{min-height:118px}.min-h-\[156px\]{min-height:156px}.min-h-\[200px\]{min-height:200px}.min-h-\[221px\]{min-height:221px}.min-h-\[280px\]{min-height:280px}.min-h-\[300px\]{min-height:300px}.min-h-\[320px\]{min-height:320px}.min-h-\[32px\]{min-height:32px}.min-h-\[38px\]{min-height:38px}.min-h-\[45px\]{min-height:45px}.min-h-\[58px\]{min-height:58px}.min-h-\[76px\]{min-height:76px}.min-h-\[887px\]{min-height:887px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-2\/4{width:50%}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-4{width:1rem}.w-4\/5{width:80%}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\/12{width:41.666667%}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\[100px\]{width:100px}.w-\[12px\]{width:12px}.w-\[18px\]{width:18px}.w-\[220px\]{width:220px}.w-\[240px\]{width:240px}.w-\[260px\]{width:260px}.w-\[280px\]{width:280px}.w-\[30px\]{width:30px}.w-\[320px\]{width:320px}.w-\[440px\]{width:440px}.w-\[44px\]{width:44px}.w-\[520px\]{width:520px}.w-\[553px\]{width:553px}.w-\[60px\]{width:60px}.w-\[635px\]{width:635px}.w-\[72px\]{width:72px}.w-\[calc\(100\%-16px\)\]{width:calc(100% - 16px)}.w-\[calc\(16\.6667\%_-_15px\)\]{width:calc(16.6667% - 15px)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-24{min-width:6rem}.min-w-4{min-width:1rem}.min-w-6{min-width:1.5rem}.min-w-\[22px\]{min-width:22px}.min-w-\[240px\]{min-width:240px}.min-w-\[262px\]{min-width:262px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-\[100px\]{max-width:100px}.max-w-\[1120px\]{max-width:1120px}.max-w-\[1180px\]{max-width:1180px}.max-w-\[1240px\]{max-width:1240px}.max-w-\[1280px\]{max-width:1280px}.max-w-\[12rem\]{max-width:12rem}.max-w-\[1440px\]{max-width:1440px}.max-w-\[214px\]{max-width:214px}.max-w-\[240px\]{max-width:240px}.max-w-\[420px\]{max-width:420px}.max-w-\[421px\]{max-width:421px}.max-w-\[453px\]{max-width:453px}.max-w-\[460px\]{max-width:460px}.max-w-\[520px\]{max-width:520px}.max-w-\[548px\]{max-width:548px}.max-w-\[572px\]{max-width:572px}.max-w-\[729px\]{max-width:729px}.max-w-\[738px\]{max-width:738px}.max-w-\[80px\]{max-width:80px}.max-w-\[860px\]{max-width:860px}.max-w-\[8rem\]{max-width:8rem}.max-w-\[929px\]{max-width:929px}.max-w-\[930px\]{max-width:930px}.max-w-\[980px\]{max-width:980px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-0{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.appearance-none{appearance:none}.grid-flow-row{grid-auto-flow:row}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.auto-rows-max{grid-auto-rows:max-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-16{grid-template-columns:repeat(16,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-80\/20{grid-template-columns:80% 20%}.grid-cols-\[44px_1fr\]{grid-template-columns:44px 1fr}.grid-cols-\[54px_1fr\]{grid-template-columns:54px 1fr}.grid-rows-20\/80{grid-template-rows:20% 80%}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.place-items-center{place-items:center}.content-center{align-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-14{gap:3.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-8{column-gap:2rem}.gap-x-\[70px\]{column-gap:70px}.gap-y-1{row-gap:.25rem}.gap-y-12{row-gap:3rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-7>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.75rem * var(--tw-space-y-reverse))}.space-y-\[10px\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(10px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(10px * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity, 1))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.self-center{align-self:center}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[14px\]{border-radius:14px}.rounded-\[16px\]{border-radius:16px}.rounded-\[18px\]{border-radius:18px}.rounded-\[50px\]{border-radius:50px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-e-lg{border-start-end-radius:.5rem;border-end-end-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-s-lg{border-start-start-radius:.5rem;border-end-start-radius:.5rem}.rounded-s-md{border-start-start-radius:.375rem;border-end-start-radius:.375rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\[0\.666667px\]{border-width:.666667px}.border-\[3px\]{border-width:3px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-e-0{border-inline-end-width:0px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-s-2{border-inline-start-width:2px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#1f4fbf\]{--tw-border-opacity: 1;border-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.border-\[\#234481\]{--tw-border-opacity: 1;border-color:rgb(35 68 129 / var(--tw-border-opacity, 1))}.border-\[\#2D58A7\]{--tw-border-opacity: 1;border-color:rgb(45 88 167 / var(--tw-border-opacity, 1))}.border-\[\#A8DDC8\]{--tw-border-opacity: 1;border-color:rgb(168 221 200 / var(--tw-border-opacity, 1))}.border-\[\#B6CAEC\]{--tw-border-opacity: 1;border-color:rgb(182 202 236 / var(--tw-border-opacity, 1))}.border-\[\#CBD3DF\]{--tw-border-opacity: 1;border-color:rgb(203 211 223 / var(--tw-border-opacity, 1))}.border-\[\#CBEADB\]{--tw-border-opacity: 1;border-color:rgb(203 234 219 / var(--tw-border-opacity, 1))}.border-\[\#DDE6F6\]{--tw-border-opacity: 1;border-color:rgb(221 230 246 / var(--tw-border-opacity, 1))}.border-\[\#E6ECF6\]{--tw-border-opacity: 1;border-color:rgb(230 236 246 / var(--tw-border-opacity, 1))}.border-\[\#EBECEE\]{--tw-border-opacity: 1;border-color:rgb(235 236 238 / var(--tw-border-opacity, 1))}.border-\[\#F2D28A\]{--tw-border-opacity: 1;border-color:rgb(242 210 138 / var(--tw-border-opacity, 1))}.border-\[\#F4C7C7\]{--tw-border-opacity: 1;border-color:rgb(244 199 199 / var(--tw-border-opacity, 1))}.border-\[rgba\(0\,173\,211\,0\.25\)\]{border-color:#00add340}.border-amber-950{--tw-border-opacity: 1;border-color:rgb(69 26 3 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(195 221 253 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(164 202 254 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity, 1))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(132 225 188 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(205 219 254 / var(--tw-border-opacity, 1))}.border-primary-100{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.border-primary-100\/10{border-color:rgb(var(--theme-primary-100) / .1)}.border-primary-50{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(220 215 254 / var(--tw-border-opacity, 1))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(202 191 253 / var(--tw-border-opacity, 1))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity, 1))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(251 213 213 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(248 180 180 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity, 1))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity, 1))}.border-secondary-100{--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-100) / var(--tw-border-opacity, 1))}.border-secondary-200{--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-200) / var(--tw-border-opacity, 1))}.border-secondary-50{--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-50) / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-white\/15{border-color:#ffffff26}.border-white\/25{border-color:#ffffff40}.border-white\/90{border-color:#ffffffe6}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(252 233 106 / var(--tw-border-opacity, 1))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity, 1))}.border-b-\[\#EBECEE\]{--tw-border-opacity: 1;border-bottom-color:rgb(235 236 238 / var(--tw-border-opacity, 1))}.border-l-\[\#1f4fbf\]{--tw-border-opacity: 1;border-left-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.border-l-\[\#F2C94C\]{--tw-border-opacity: 1;border-left-color:rgb(242 201 76 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-s-gray-50{--tw-border-opacity: 1;border-inline-start-color:rgb(249 250 251 / var(--tw-border-opacity, 1))}.\!bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))!important}.bg-\[\#006B4A\]{--tw-bg-opacity: 1;background-color:rgb(0 107 74 / var(--tw-bg-opacity, 1))}.bg-\[\#00ADD3\]{--tw-bg-opacity: 1;background-color:rgb(0 173 211 / var(--tw-bg-opacity, 1))}.bg-\[\#0A1930\]{--tw-bg-opacity: 1;background-color:rgb(10 25 48 / var(--tw-bg-opacity, 1))}.bg-\[\#0b1220\]\/45{background-color:#0b122073}.bg-\[\#1A3360\]{--tw-bg-opacity: 1;background-color:rgb(26 51 96 / var(--tw-bg-opacity, 1))}.bg-\[\#1f4fbf\]{--tw-bg-opacity: 1;background-color:rgb(31 79 191 / var(--tw-bg-opacity, 1))}.bg-\[\#234481\]{--tw-bg-opacity: 1;background-color:rgb(35 68 129 / var(--tw-bg-opacity, 1))}.bg-\[\#234481\]\/30{background-color:#2344814d}.bg-\[\#2B5BB8\]{--tw-bg-opacity: 1;background-color:rgb(43 91 184 / var(--tw-bg-opacity, 1))}.bg-\[\#2D58A7\]{--tw-bg-opacity: 1;background-color:rgb(45 88 167 / var(--tw-bg-opacity, 1))}.bg-\[\#2b5bb8\]{--tw-bg-opacity: 1;background-color:rgb(43 91 184 / var(--tw-bg-opacity, 1))}.bg-\[\#B6CAEC\]{--tw-bg-opacity: 1;background-color:rgb(182 202 236 / var(--tw-bg-opacity, 1))}.bg-\[\#D1F7FF\]{--tw-bg-opacity: 1;background-color:rgb(209 247 255 / var(--tw-bg-opacity, 1))}.bg-\[\#DCE5F3\]{--tw-bg-opacity: 1;background-color:rgb(220 229 243 / var(--tw-bg-opacity, 1))}.bg-\[\#DDE6F6\]{--tw-bg-opacity: 1;background-color:rgb(221 230 246 / var(--tw-bg-opacity, 1))}.bg-\[\#EAF8F1\]{--tw-bg-opacity: 1;background-color:rgb(234 248 241 / var(--tw-bg-opacity, 1))}.bg-\[\#EBF0F7\]{--tw-bg-opacity: 1;background-color:rgb(235 240 247 / var(--tw-bg-opacity, 1))}.bg-\[\#F0FBF6\]{--tw-bg-opacity: 1;background-color:rgb(240 251 246 / var(--tw-bg-opacity, 1))}.bg-\[\#F1F5FB\]{--tw-bg-opacity: 1;background-color:rgb(241 245 251 / var(--tw-bg-opacity, 1))}.bg-\[\#F2F4F8\]{--tw-bg-opacity: 1;background-color:rgb(242 244 248 / var(--tw-bg-opacity, 1))}.bg-\[\#F7F9FD\]{--tw-bg-opacity: 1;background-color:rgb(247 249 253 / var(--tw-bg-opacity, 1))}.bg-\[\#F7F9FD\]\/95{background-color:#f7f9fdf2}.bg-\[\#F8FAFD\]{--tw-bg-opacity: 1;background-color:rgb(248 250 253 / var(--tw-bg-opacity, 1))}.bg-\[\#FFF1F1\]{--tw-bg-opacity: 1;background-color:rgb(255 241 241 / var(--tw-bg-opacity, 1))}.bg-\[\#FFF8E6\]{--tw-bg-opacity: 1;background-color:rgb(255 248 230 / var(--tw-bg-opacity, 1))}.bg-\[\#d2e0f0\]{--tw-bg-opacity: 1;background-color:rgb(210 224 240 / var(--tw-bg-opacity, 1))}.bg-\[\#eef2fb\]{--tw-bg-opacity: 1;background-color:rgb(238 242 251 / var(--tw-bg-opacity, 1))}.bg-\[\#f5f7fb\]{--tw-bg-opacity: 1;background-color:rgb(245 247 251 / var(--tw-bg-opacity, 1))}.bg-\[rgba\(0\,173\,211\,0\.15\)\]{background-color:#00add326}.bg-\[var\(--secondary-dark-blue\)\]{background-color:var(--secondary-dark-blue)}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/10{background-color:#0000001a}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity, 1))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity, 1))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.bg-blue-900\/20{background-color:#23387633}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-gray-900\/50{background-color:#11182780}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity, 1))}.bg-green-300{--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(243 250 247 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity, 1))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity, 1))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity, 1))}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(252 217 189 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(255 90 31 / var(--tw-bg-opacity, 1))}.bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.bg-primary-100\/5{background-color:rgb(var(--theme-primary-100) / .05)}.bg-primary-50{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.bg-primary-50\/50{background-color:rgb(var(--theme-primary-50) / .5)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity, 1))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(253 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity, 1))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity, 1))}.bg-secondary-100{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.bg-secondary-300{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-300) / var(--tw-bg-opacity, 1))}.bg-secondary-50{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-50) / var(--tw-bg-opacity, 1))}.bg-secondary-50\/90{background-color:rgb(var(--theme-secondary-50) / .9)}.bg-secondary-50\/95{background-color:rgb(var(--theme-secondary-50) / .95)}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-slate-900\/10{background-color:#0f172a1a}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(237 250 250 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/15{background-color:#ffffff26}.bg-white\/50{background-color:#ffffff80}.bg-white\/95{background-color:#fffffff2}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity, 1))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(253 253 234 / var(--tw-bg-opacity, 1))}.bg-opacity-100{--tw-bg-opacity: 1}.bg-opacity-25{--tw-bg-opacity: .25}.bg-opacity-30{--tw-bg-opacity: .3}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.bg-\[linear-gradient\(175\.9deg\,\#14274A_3\.34\%\,\#0B1528_97\.37\%\)\]{background-image:linear-gradient(175.9deg,#14274a 3.34%,#0b1528 97.37%)}.bg-\[linear-gradient\(180deg\,\#0C182D_0\%\,\#1A3360_100\%\)\]{background-image:linear-gradient(180deg,#0c182d,#1a3360)}.bg-\[linear-gradient\(180deg\,\#0E1E3C_0\%\,\#14274A_50\%\,\#0E1E3C_100\%\)\]{background-image:linear-gradient(180deg,#0e1e3c,#14274a,#0e1e3c)}.bg-\[linear-gradient\(180deg\,\#14274A_0\%\,\#0B1528_100\%\)\]{background-image:linear-gradient(180deg,#14274a,#0b1528)}.bg-\[linear-gradient\(180deg\,\#EBF0F7_0\%\,\#FFFFFF_100\%\)\]{background-image:linear-gradient(180deg,#ebf0f7,#fff)}.bg-\[linear-gradient\(90deg\,rgba\(0\,0\,0\,0\)_0\%\,\#00ADD3_50\%\,rgba\(0\,0\,0\,0\)_100\%\)\]{background-image:linear-gradient(90deg,#0000,#00add3,#0000)}.bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#2B5BB8\]{--tw-gradient-from: #2B5BB8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(43 91 184 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-50{--tw-gradient-from: #F6F5FF var(--tw-gradient-from-position);--tw-gradient-to: rgb(246 245 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-indigo-50{--tw-gradient-to: #F0F5FF var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.box-decoration-clone{-webkit-box-decoration-break:clone;box-decoration-break:clone}.bg-cover{background-size:cover}.bg-center{background-position:center}.bg-right{background-position:right}.bg-right-bottom{background-position:right bottom}.bg-no-repeat{background-repeat:no-repeat}.fill-blue-600{fill:#1c64f2}.fill-secondary-400{fill:rgb(var(--theme-secondary-400) / 1)}.fill-white{fill:#fff}.stroke-white{stroke:#fff}.stroke-2{stroke-width:2}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-7{padding:1.75rem}.p-8{padding:2rem}.px-0{padding-left:0;padding-right:0}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[10px\]{padding-left:10px;padding-right:10px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[22px\]{padding-top:22px;padding-bottom:22px}.py-\[44px\]{padding-top:44px;padding-bottom:44px}.py-\[54px\]{padding-top:54px;padding-bottom:54px}.py-\[64px\]{padding-top:64px;padding-bottom:64px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-3{padding-bottom:.75rem}.pb-32{padding-bottom:8rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-\[56px\]{padding-bottom:56px}.pb-\[80px\]{padding-bottom:80px}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-28{padding-right:7rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.ps-10{padding-inline-start:2.5rem}.ps-3{padding-inline-start:.75rem}.ps-5{padding-inline-start:1.25rem}.pt-0{padding-top:0}.pt-12{padding-top:3rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.pt-\[140px\]{padding-top:140px}.pt-\[144px\]{padding-top:144px}.pt-\[2px\]{padding-top:2px}.pt-\[72px\]{padding-top:72px}.pt-\[75px\]{padding-top:75px}.pt-\[80px\]{padding-top:80px}.pt-\[88px\]{padding-top:88px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.font-\[Blinker\]{font-family:Blinker}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[19px\]{font-size:19px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[32px\]{font-size:32px}.text-\[34px\]{font-size:34px}.text-\[38px\]{font-size:38px}.text-\[40px\]{font-size:40px}.text-\[42px\]{font-size:42px}.text-\[48px\]{font-size:48px}.text-\[98px\]{font-size:98px}.text-\[clamp\(0\.95rem\,0\.82rem\+0\.35vw\,1\.125rem\)\]{font-size:clamp(.95rem,.82rem + .35vw,1.125rem)}.text-\[clamp\(1rem\,0\.92rem\+0\.35vw\,1\.25rem\)\]{font-size:clamp(1rem,.92rem + .35vw,1.25rem)}.text-\[clamp\(2\.75rem\,2\.1rem\+2\.1vw\,3\.75rem\)\]{font-size:clamp(2.75rem,2.1rem + 2.1vw,3.75rem)}.text-\[clamp\(22px\,2\.1vw\,30px\)\]{font-size:clamp(22px,2.1vw,30px)}.text-\[clamp\(24px\,2\.2vw\,30px\)\]{font-size:clamp(24px,2.2vw,30px)}.text-\[clamp\(26px\,3\.2vw\,44px\)\]{font-size:clamp(26px,3.2vw,44px)}.text-\[clamp\(28px\,3\.2vw\,42px\)\]{font-size:clamp(28px,3.2vw,42px)}.text-\[clamp\(28px\,3vw\,38px\)\]{font-size:clamp(28px,3vw,38px)}.text-\[clamp\(2rem\,1\.2rem\+2\.6vw\,3\.5rem\)\]{font-size:clamp(2rem,1.2rem + 2.6vw,3.5rem)}.text-\[clamp\(34px\,4\.2vw\,56px\)\]{font-size:clamp(34px,4.2vw,56px)}.text-\[clamp\(34px\,4\.4vw\,54px\)\]{font-size:clamp(34px,4.4vw,54px)}.text-\[clamp\(34px\,4\.4vw\,56px\)\]{font-size:clamp(34px,4.4vw,56px)}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-8{line-height:2rem}.leading-9{line-height:2.25rem}.leading-\[0\.95\]{line-height:.95}.leading-\[1\.05\]{line-height:1.05}.leading-\[1\.08\]{line-height:1.08}.leading-\[1\.12\]{line-height:1.12}.leading-\[1\.15\]{line-height:1.15}.leading-\[1\.1\]{line-height:1.1}.leading-\[1\.25\]{line-height:1.25}.leading-\[1\.2\]{line-height:1.2}.leading-\[1\.35\]{line-height:1.35}.leading-\[1\.45\]{line-height:1.45}.leading-\[1\.58\]{line-height:1.58}.leading-\[1\.5\]{line-height:1.5}.leading-\[1\.65\]{line-height:1.65}.leading-\[1\.6\]{line-height:1.6}.leading-\[1\.7\]{line-height:1.7}.leading-\[22px\]{line-height:22px}.leading-\[28px\]{line-height:28px}.leading-\[29px\]{line-height:29px}.leading-\[30px\]{line-height:30px}.leading-\[32px\]{line-height:32px}.leading-\[40px\]{line-height:40px}.leading-\[58px\]{line-height:58px}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-\[-0\.02em\]{letter-spacing:-.02em}.tracking-\[-0\.03em\]{letter-spacing:-.03em}.tracking-\[0\.02em\]{letter-spacing:.02em}.tracking-\[0\.04em\]{letter-spacing:.04em}.tracking-\[0\.08em\]{letter-spacing:.08em}.tracking-\[0\.2px\]{letter-spacing:.2px}.tracking-\[0\.5px\]{letter-spacing:.5px}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-\[\#006B4A\]{--tw-text-opacity: 1;color:rgb(0 107 74 / var(--tw-text-opacity, 1))}.text-\[\#00ADD3\]{--tw-text-opacity: 1;color:rgb(0 173 211 / var(--tw-text-opacity, 1))}.text-\[\#00B5E2\]{--tw-text-opacity: 1;color:rgb(0 181 226 / var(--tw-text-opacity, 1))}.text-\[\#0B1528\]{--tw-text-opacity: 1;color:rgb(11 21 40 / var(--tw-text-opacity, 1))}.text-\[\#0b1220\]{--tw-text-opacity: 1;color:rgb(11 18 32 / var(--tw-text-opacity, 1))}.text-\[\#0f172a\]{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-\[\#111827\]{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-\[\#14274A\]{--tw-text-opacity: 1;color:rgb(20 39 74 / var(--tw-text-opacity, 1))}.text-\[\#18A8D8\]{--tw-text-opacity: 1;color:rgb(24 168 216 / var(--tw-text-opacity, 1))}.text-\[\#19c6de\]{--tw-text-opacity: 1;color:rgb(25 198 222 / var(--tw-text-opacity, 1))}.text-\[\#1f4fbf\]{--tw-text-opacity: 1;color:rgb(31 79 191 / var(--tw-text-opacity, 1))}.text-\[\#269c43\]{--tw-text-opacity: 1;color:rgb(38 156 67 / var(--tw-text-opacity, 1))}.text-\[\#2B5BB8\]{--tw-text-opacity: 1;color:rgb(43 91 184 / var(--tw-text-opacity, 1))}.text-\[\#2D58A7\]{--tw-text-opacity: 1;color:rgb(45 88 167 / var(--tw-text-opacity, 1))}.text-\[\#324153\]{--tw-text-opacity: 1;color:rgb(50 65 83 / var(--tw-text-opacity, 1))}.text-\[\#3D71CC\]{--tw-text-opacity: 1;color:rgb(61 113 204 / var(--tw-text-opacity, 1))}.text-\[\#4C5A6B\]{--tw-text-opacity: 1;color:rgb(76 90 107 / var(--tw-text-opacity, 1))}.text-\[\#526179\]{--tw-text-opacity: 1;color:rgb(82 97 121 / var(--tw-text-opacity, 1))}.text-\[\#5A7AAA\]{--tw-text-opacity: 1;color:rgb(90 122 170 / var(--tw-text-opacity, 1))}.text-\[\#6B7890\]{--tw-text-opacity: 1;color:rgb(107 120 144 / var(--tw-text-opacity, 1))}.text-\[\#7A4D00\]{--tw-text-opacity: 1;color:rgb(122 77 0 / var(--tw-text-opacity, 1))}.text-\[\#9AA6B8\]{--tw-text-opacity: 1;color:rgb(154 166 184 / var(--tw-text-opacity, 1))}.text-\[\#B42318\]{--tw-text-opacity: 1;color:rgb(180 35 24 / var(--tw-text-opacity, 1))}.text-\[\#CBD3DF\]{--tw-text-opacity: 1;color:rgb(203 211 223 / var(--tw-text-opacity, 1))}.text-\[\#b40404\]{--tw-text-opacity: 1;color:rgb(180 4 4 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity, 1))}.text-green-950{--tw-text-opacity: 1;color:rgb(5 46 22 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(88 80 236 / var(--tw-text-opacity, 1))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(180 52 3 / var(--tw-text-opacity, 1))}.text-primary-100{--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.text-primary-50{--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity, 1))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity, 1))}.text-red-950{--tw-text-opacity: 1;color:rgb(69 10 10 / var(--tw-text-opacity, 1))}.text-secondary-100{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-100) / var(--tw-text-opacity, 1))}.text-secondary-200{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-200) / var(--tw-text-opacity, 1))}.text-secondary-50{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-50) / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/55{color:#ffffff8c}.text-white\/65{color:#ffffffa6}.text-white\/80{color:#fffc}.text-white\/90{color:#ffffffe6}.text-white\/95{color:#fffffff2}.text-yellow-300{--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.decoration-primary-100{text-decoration-color:rgb(var(--theme-primary-100) / 1)}.decoration-8{text-decoration-thickness:8px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.bg-blend-multiply{background-blend-mode:multiply}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_18px_rgba\(31\,79\,191\,0\.25\)\]{--tw-shadow: 0 10px 18px rgba(31,79,191,.25);--tw-shadow-colored: 0 10px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_18px_rgba\(43\,91\,184\,0\.25\)\]{--tw-shadow: 0 10px 18px rgba(43,91,184,.25);--tw-shadow-colored: 0 10px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_30px_rgba\(0\,0\,0\,0\.18\)\]{--tw-shadow: 0 10px 30px rgba(0,0,0,.18);--tw-shadow-colored: 0 10px 30px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_12px_32px_rgba\(11\,18\,32\,0\.16\)\]{--tw-shadow: 0 12px 32px rgba(11,18,32,.16);--tw-shadow-colored: 0 12px 32px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_12px_34px_rgba\(13\,33\,74\,0\.12\)\]{--tw-shadow: 0 12px 34px rgba(13,33,74,.12);--tw-shadow-colored: 0 12px 34px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_18px_28px_rgba\(0\,0\,0\,0\.35\)\]{--tw-shadow: 0 18px 28px rgba(0,0,0,.35);--tw-shadow-colored: 0 18px 28px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_20px_50px_rgba\(11\,18\,32\,0\.24\)\]{--tw-shadow: 0 20px 50px rgba(11,18,32,.24);--tw-shadow-colored: 0 20px 50px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_22px_60px_rgba\(11\,18\,32\,0\.08\)\]{--tw-shadow: 0 22px 60px rgba(11,18,32,.08);--tw-shadow-colored: 0 22px 60px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_10px_rgba\(0\,0\,0\,0\.3\)\]{--tw-shadow: 0 2px 10px rgba(0,0,0,.3);--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_30px_80px_rgba\(7\,18\,38\,0\.35\)\]{--tw-shadow: 0 30px 80px rgba(7,18,38,.35);--tw-shadow-colored: 0 30px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_4px_12px_rgba\(0\,0\,0\,0\.15\)\]{--tw-shadow: 0 4px 12px rgba(0,0,0,.15);--tw-shadow-colored: 0 4px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-teal-500{outline-color:#0694a2}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-\[6px\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(6px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black\/5{--tw-ring-color: rgb(0 0 0 / .05)}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1))}.ring-white\/10{--tw-ring-color: rgb(255 255 255 / .1)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[100px\]{--tw-blur: blur(100px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[120px\]{--tw-blur: blur(120px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-\[1px\]{--tw-blur: blur(1px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-0{--tw-brightness: brightness(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-width{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-200{transition-delay:.2s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-3000{transition-duration:3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[grid-template-columns\:repeat\(auto-fit\,minmax\(250px\,max-content\)\)\]{grid-template-columns:repeat(auto-fit,minmax(250px,max-content))}.blinker{font-family:Blinker,system-ui,sans-serif}:root{--blockquote-border-color: #ccc;--blockquote-bg-color: #dde6f6;--blockquote-text-color: black}@media (prefers-color-scheme: dark){:root{--blockquote-border-color: #171717;--blockquote-bg-color: #0c1c38;--blockquote-text-color: #eee}}ngx-file-drop .ngx-file-drop__drop-zone{border-color:rgb(var(--theme-primary-100))!important}markdown{font-family:Blinker,system-ui,sans-serif;line-height:1.6;font-style:var(--blockquote-text-color)}markdown h1{font-size:2em;margin-bottom:.5em}markdown h2{font-size:1.5em;margin-bottom:.5em}markdown h3{font-size:1.17em;margin-bottom:.5em}markdown h4{font-size:1em;margin-bottom:.5em}markdown h5{font-size:.83em;margin-bottom:.5em}markdown h6{font-size:.67em;margin-bottom:.5em}.price-plan markdown h1{font-size:1.2em;font-weight:700;margin-bottom:.5em}.price-plan markdown h2{font-size:1em;font-weight:700;margin-bottom:.5em}.price-plan markdown h3{font-size:.83em;font-weight:700;margin-bottom:.5em}.price-plan markdown h4{font-size:.67em;margin-bottom:.5em}.price-plan markdown h5{font-size:.5em;margin-bottom:.5em}.price-plan markdown h6{font-size:.5em;margin-bottom:.5em}markdown p{margin-bottom:1em}markdown p:last-child{margin-bottom:0}markdown ul,markdown ol{margin-bottom:1em}markdown ul ul,markdown ul ol,markdown ol ul,markdown ol ol{margin-top:.5em;margin-left:1.5em}markdown ul li,markdown ol li{margin-bottom:.5em;margin-left:1.5em}markdown ul li{list-style-type:disc}markdown ol li{list-style-type:decimal}markdown blockquote{margin-left:0;padding-left:1em;border-left:2px solid var(--blockquote-border-color)}markdown code{font-family:monospace;background-color:#2d58a7;padding:.2em .4em;border-radius:3px}markdown pre{font-family:monospace;background-color:#2d58a7;padding:.5em;border-radius:3px;overflow:auto}markdown table{border-collapse:collapse;width:100%}markdown table th,markdown table td{border:1px solid var(--blockquote-border-color);padding:8px}markdown table th{background-color:#2d58a7}markdown body.dark table th{background-color:#2d58a7}markdown img{max-width:100%;height:auto}markdown a{color:#007bff;text-decoration:none}markdown a:hover{text-decoration:underline}:root{fa-layers{fa-layers-counter{font-size:2em;position:absolute;top:-.1em;right:-.1em}}}:root{--autofill-bg-light: #f0f0f0;--autofill-text-light: #000000}[data-theme=dark]{--autofill-bg-dark: #182740;--autofill-text-dark: #ffffff}input:-webkit-autofill{background-color:var(--autofill-bg-light)!important;color:var(--autofill-text-light)!important;-webkit-transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s}[data-theme=dark] input:-webkit-autofill{background-color:var(--autofill-bg-dark)!important;color:var(--autofill-text-dark)!important}input:-webkit-autofill:first-line{color:inherit}textarea:-webkit-autofill{background-color:var(--autofill-bg-light)!important;color:var(--autofill-text-light)!important;-webkit-transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s,color 5000s ease-in-out 0s}[data-theme=dark] textarea:-webkit-autofill{background-color:var(--autofill-bg-dark)!important;color:var(--autofill-text-dark)!important}textarea:-webkit-autofill:first-line{color:inherit}.file\:mr-4::file-selector-button{margin-right:1rem}.file\:h-12::file-selector-button{height:3rem}.file\:cursor-pointer::file-selector-button{cursor:pointer}.file\:rounded-lg::file-selector-button{border-radius:.5rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-\[\#EBF0F7\]::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(235 240 247 / var(--tw-bg-opacity, 1))}.file\:bg-primary-100::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.file\:px-4::file-selector-button{padding-left:1rem;padding-right:1rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-\[\#1f4fbf\]::file-selector-button{--tw-text-opacity: 1;color:rgb(31 79 191 / var(--tw-text-opacity, 1))}.file\:text-white::file-selector-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder\:text-\[\#9AA6B8\]::placeholder{--tw-text-opacity: 1;color:rgb(154 166 184 / var(--tw-text-opacity, 1))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:start-\[1px\]:after{content:var(--tw-content);inset-inline-start:1px}.after\:start-\[2px\]:after{content:var(--tw-content);inset-inline-start:2px}.after\:top-0\.5:after{content:var(--tw-content);top:.125rem}.after\:top-\[1px\]:after{content:var(--tw-content);top:1px}.after\:top-\[2px\]:after{content:var(--tw-content);top:2px}.after\:mx-2:after{content:var(--tw-content);margin-left:.5rem;margin-right:.5rem}.after\:inline-block:after{content:var(--tw-content);display:inline-block}.after\:h-1:after{content:var(--tw-content);height:.25rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:h-5:after{content:var(--tw-content);height:1.25rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:w-5:after{content:var(--tw-content);width:1.25rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:border:after{content:var(--tw-content);border-width:1px}.after\:border-4:after{content:var(--tw-content);border-width:4px}.after\:border-b:after{content:var(--tw-content);border-bottom-width:1px}.after\:border-gray-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.after\:border-gray-400:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.after\:border-gray-700:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.after\:border-primary-100:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.last\:border-b-0:last-child{border-bottom-width:0px}.checked\:scale-110:checked{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.checked\:border-blue-600:checked{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity, 1))}.checked\:bg-blue-600:checked{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.checked\:bg-primary-100:checked{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.checked\:ring-2:checked{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[\#1f4fbf\]:hover{--tw-border-opacity: 1;border-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:border-primary-50:hover{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.hover\:border-white\/40:hover{border-color:#fff6}.hover\:bg-\[\#00523A\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 82 58 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#00533A\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 83 58 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#183f99\]:hover{--tw-bg-opacity: 1;background-color:rgb(24 63 153 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#18B5D9\]:hover{--tw-bg-opacity: 1;background-color:rgb(24 181 217 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#5B6F8E\]:hover{--tw-bg-opacity: 1;background-color:rgb(91 111 142 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#DDE6F6\]:hover{--tw-bg-opacity: 1;background-color:rgb(221 230 246 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#EBF0F7\]:hover{--tw-bg-opacity: 1;background-color:rgb(235 240 247 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#F2F4F8\]:hover{--tw-bg-opacity: 1;background-color:rgb(242 244 248 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#F7F9FD\]:hover{--tw-bg-opacity: 1;background-color:rgb(247 249 253 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#FFF1F1\]:hover{--tw-bg-opacity: 1;background-color:rgb(255 241 241 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#d2e0f0\]:hover{--tw-bg-opacity: 1;background-color:rgb(210 224 240 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity, 1))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity, 1))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity, 1))}.hover\:bg-green-900:hover{--tw-bg-opacity: 1;background-color:rgb(1 71 55 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 255 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(81 69 205 / var(--tw-bg-opacity, 1))}.hover\:bg-orange-600:hover{--tw-bg-opacity: 1;background-color:rgb(208 56 1 / var(--tw-bg-opacity, 1))}.hover\:bg-primary-100:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.hover\:bg-primary-50:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity, 1))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity, 1))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-red-900:hover{--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity, 1))}.hover\:bg-secondary-100:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.hover\:bg-secondary-50:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-50) / var(--tw-bg-opacity, 1))}.hover\:bg-sky-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity, 1))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/5:hover{background-color:#ffffff0d}.hover\:text-\[\#00533A\]:hover{--tw-text-opacity: 1;color:rgb(0 83 58 / var(--tw-text-opacity, 1))}.hover\:text-\[\#0b1220\]:hover{--tw-text-opacity: 1;color:rgb(11 18 32 / var(--tw-text-opacity, 1))}.hover\:text-\[\#183f99\]:hover{--tw-text-opacity: 1;color:rgb(24 63 153 / var(--tw-text-opacity, 1))}.hover\:text-\[\#1f4fbf\]:hover{--tw-text-opacity: 1;color:rgb(31 79 191 / var(--tw-text-opacity, 1))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity, 1))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.hover\:text-blue-900:hover{--tw-text-opacity: 1;color:rgb(35 56 118 / var(--tw-text-opacity, 1))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-indigo-800:hover{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity, 1))}.hover\:text-primary-100:hover{--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.hover\:text-primary-50:hover{--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity, 1))}.hover\:text-red-900:hover{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity, 1))}.hover\:text-secondary-400:hover{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-400) / var(--tw-text-opacity, 1))}.hover\:text-secondary-50:hover{--tw-text-opacity: 1;color:rgb(var(--theme-secondary-50) / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:file\:bg-primary-50::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.focus\:z-10:focus{z-index:10}.focus\:border-\[\#1f4fbf\]:focus{--tw-border-opacity: 1;border-color:rgb(31 79 191 / var(--tw-border-opacity, 1))}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(104 117 245 / var(--tw-border-opacity, 1))}.focus\:border-primary-50:focus{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.focus\:border-purple-500:focus{--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity, 1))}.focus\:shadow:focus{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline-0:focus{outline-width:0px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#A8DDC8\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 221 200 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#B6CAEC\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(182 202 236 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#B8E6D1\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(184 230 209 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#F4C7C7\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(244 199 199 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(243 244 246 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity, 1))}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 159 110 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(104 117 245 / var(--tw-ring-opacity, 1))}.focus\:ring-primary-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-100) / var(--tw-ring-opacity, 1))}.focus\:ring-primary-50:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-50) / var(--tw-ring-opacity, 1))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity, 1))}.focus\:ring-purple-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(144 97 249 / var(--tw-ring-opacity, 1))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity, 1))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity, 1))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(240 82 82 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.active\:bg-white\/10:active{background-color:#ffffff1a}.active\:brightness-95:active{--tw-brightness: brightness(.95);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-\[\#F7F9FD\]:disabled{--tw-bg-opacity: 1;background-color:rgb(247 249 253 / var(--tw-bg-opacity, 1))}.disabled\:text-\[\#9AA6B8\]:disabled{--tw-text-opacity: 1;color:rgb(154 166 184 / var(--tw-text-opacity, 1))}.disabled\:text-gray-300:disabled{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:opacity-100{opacity:1}.peer:checked~.peer-checked\:border{border-width:1px}.peer:checked~.peer-checked\:border-primary-100{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.peer:checked~.peer-checked\:border-primary-50{--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.peer:checked~.peer-checked\:bg-primary-100{--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.peer:checked~.peer-checked\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.peer:checked~.peer-checked\:after\:translate-x-full:after{content:var(--tw-content);--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:after\:border-white:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.peer:focus~.peer-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.peer:focus~.peer-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.peer:focus~.peer-focus\:ring-blue-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity, 1))}.peer:focus~.peer-focus\:ring-primary-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-100) / var(--tw-ring-opacity, 1))}.dark\:divide-secondary-200:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(var(--theme-secondary-200) / var(--tw-divide-opacity, 1))}.dark\:border-blue-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.dark\:border-blue-500\/40:is(.dark *){border-color:#3f83f866}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity, 1))}.dark\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 66 159 / var(--tw-border-opacity, 1))}.dark\:border-gray-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.dark\:border-green-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity, 1))}.dark\:border-primary-100:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.dark\:border-primary-50:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-50) / var(--tw-border-opacity, 1))}.dark\:border-purple-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity, 1))}.dark\:border-purple-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity, 1))}.dark\:border-red-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(119 29 29 / var(--tw-border-opacity, 1))}.dark\:border-secondary-100:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-100) / var(--tw-border-opacity, 1))}.dark\:border-secondary-200:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-200) / var(--tw-border-opacity, 1))}.dark\:border-secondary-300:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-300) / var(--tw-border-opacity, 1))}.dark\:border-secondary-400:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-400) / var(--tw-border-opacity, 1))}.dark\:border-secondary-50:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-secondary-50) / var(--tw-border-opacity, 1))}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\:border-s-gray-700:is(.dark *){--tw-border-opacity: 1;border-inline-start-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:\!bg-gray-700:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))!important}.dark\:bg-amber-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity, 1))}.dark\:bg-blue-900\/30:is(.dark *){background-color:#2338764d}.dark\:bg-blue-900\/60:is(.dark *){background-color:#23387699}.dark\:bg-gray-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-400:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/80:is(.dark *){background-color:#111827cc}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity, 1))}.dark\:bg-green-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity, 1))}.dark\:bg-green-900\/40:is(.dark *){background-color:#01473766}.dark\:bg-indigo-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(54 47 120 / var(--tw-bg-opacity, 1))}.dark\:bg-primary-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.dark\:bg-primary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.dark\:bg-purple-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity, 1))}.dark\:bg-purple-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity, 1))}.dark\:bg-red-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity, 1))}.dark\:bg-red-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-100\/90:is(.dark *){background-color:rgb(var(--theme-secondary-100) / .9)}.dark\:bg-secondary-100\/95:is(.dark *){background-color:rgb(var(--theme-secondary-100) / .95)}.dark\:bg-secondary-200:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-200) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-300:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-300) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-50) / var(--tw-bg-opacity, 1))}.dark\:bg-secondary-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-500) / var(--tw-bg-opacity, 1))}.dark\:bg-tertiary-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-tertiary-100) / var(--tw-bg-opacity, 1))}.dark\:bg-tertiary-100\/95:is(.dark *){background-color:rgb(var(--theme-tertiary-100) / .95)}.dark\:bg-tertiary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-tertiary-50) / var(--tw-bg-opacity, 1))}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}.dark\:bg-opacity-60:is(.dark *){--tw-bg-opacity: .6}.dark\:bg-opacity-80:is(.dark *){--tw-bg-opacity: .8}.dark\:from-purple-900\/20:is(.dark *){--tw-gradient-from: rgb(74 29 150 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(74 29 150 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-indigo-900\/20:is(.dark *){--tw-gradient-to: rgb(54 47 120 / .2) var(--tw-gradient-to-position)}.dark\:text-amber-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.dark\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.dark\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity, 1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity, 1))}.dark\:text-blue-500:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity, 1))}.dark\:text-blue-800:is(.dark *){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.dark\:text-gray-100:is(.dark *){--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-green-300:is(.dark *){--tw-text-opacity: 1;color:rgb(132 225 188 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(49 196 141 / var(--tw-text-opacity, 1))}.dark\:text-indigo-300:is(.dark *){--tw-text-opacity: 1;color:rgb(180 198 252 / var(--tw-text-opacity, 1))}.dark\:text-primary-100:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.dark\:text-primary-50:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.dark\:text-purple-200:is(.dark *){--tw-text-opacity: 1;color:rgb(220 215 254 / var(--tw-text-opacity, 1))}.dark\:text-purple-300:is(.dark *){--tw-text-opacity: 1;color:rgb(202 191 253 / var(--tw-text-opacity, 1))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(249 128 128 / var(--tw-text-opacity, 1))}.dark\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity, 1))}.dark\:text-secondary-100:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-100) / var(--tw-text-opacity, 1))}.dark\:text-secondary-50:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-50) / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:text-yellow-300:is(.dark *){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity, 1))}.dark\:decoration-primary-100:is(.dark *){text-decoration-color:rgb(var(--theme-primary-100) / 1)}.dark\:placeholder-gray-400:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.dark\:ring-offset-gray-700:is(.dark *){--tw-ring-offset-color: #374151}.dark\:ring-offset-gray-800:is(.dark *){--tw-ring-offset-color: #1F2937}.dark\:after\:border-gray-400:is(.dark *):after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.dark\:after\:border-gray-500:is(.dark *):after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.dark\:checked\:bg-primary-100:checked:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-100) / var(--tw-bg-opacity, 1))}.dark\:hover\:border-gray-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-blue-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-blue-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-blue-900\/20:hover:is(.dark *){background-color:#23387633}.dark\:hover\:bg-gray-500:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-green-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-primary-50:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-purple-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-red-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-100:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-100) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-200:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-200) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-300:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-300) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-secondary-400:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-secondary-400) / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-tertiary-100:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-tertiary-100) / var(--tw-bg-opacity, 1))}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity, 1))}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.dark\:hover\:text-primary-100:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-100) / var(--tw-text-opacity, 1))}.dark\:hover\:text-primary-50:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-primary-50) / var(--tw-text-opacity, 1))}.dark\:hover\:text-secondary-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-400) / var(--tw-text-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:focus\:border-blue-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity, 1))}.dark\:focus\:border-primary-100:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(var(--theme-primary-100) / var(--tw-border-opacity, 1))}.dark\:focus\:border-purple-500:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity, 1))}.dark\:focus\:text-white:focus:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:focus\:ring-blue-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-blue-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(28 100 242 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-blue-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-blue-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(35 56 118 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-500:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-700:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-gray-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-green-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-primary-100:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-100) / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-primary-50:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--theme-primary-50) / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-purple-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-red-800:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity, 1))}.dark\:focus\:ring-red-900:focus:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity, 1))}.group:hover .dark\:group-hover\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.peer:checked~.dark\:peer-checked\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity, 1))}.peer:checked~.dark\:peer-checked\:bg-primary-50:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(var(--theme-primary-50) / var(--tw-bg-opacity, 1))}.peer:checked~.dark\:peer-checked\:text-secondary-100:is(.dark *){--tw-text-opacity: 1;color:rgb(var(--theme-secondary-100) / var(--tw-text-opacity, 1))}.peer:focus~.dark\:peer-focus\:ring-blue-800:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.sm\:bottom-\[-80px\]{bottom:-80px}.sm\:left-\[-180px\]{left:-180px}.sm\:right-10{right:2.5rem}.sm\:right-\[-100px\]{right:-100px}.sm\:top-\[-60px\]{top:-60px}.sm\:m-8{margin:2rem}.sm\:ms-auto{margin-inline-start:auto}.sm\:mt-10{margin-top:2.5rem}.sm\:mt-12{margin-top:3rem}.sm\:mt-16{margin-top:4rem}.sm\:mt-7{margin-top:1.75rem}.sm\:mt-8{margin-top:2rem}.sm\:mt-9{margin-top:2.25rem}.sm\:block{display:block}.sm\:h-\[300px\]{height:300px}.sm\:h-\[380px\]{height:380px}.sm\:min-h-\[220px\]{min-height:220px}.sm\:min-h-\[300px\]{min-height:300px}.sm\:min-h-\[45px\]{min-height:45px}.sm\:w-1\/2{width:50%}.sm\:w-\[270px\]{width:270px}.sm\:w-\[300px\]{width:300px}.sm\:w-\[380px\]{width:380px}.sm\:w-auto{width:auto}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[52px_1fr\]{grid-template-columns:52px 1fr}.sm\:grid-cols-\[64px_1fr\]{grid-template-columns:64px 1fr}.sm\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:gap-5{gap:1.25rem}.sm\:gap-6{gap:1.5rem}.sm\:gap-8{gap:2rem}.sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.sm\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-5{padding:1.25rem}.sm\:p-8{padding:2rem}.sm\:p-9{padding:2.25rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-16{padding-left:4rem;padding-right:4rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-12{padding-top:3rem;padding-bottom:3rem}.sm\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.sm\:py-20{padding-top:5rem;padding-bottom:5rem}.sm\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.sm\:py-\[56px\]{padding-top:56px;padding-bottom:56px}.sm\:py-\[68px\]{padding-top:68px;padding-bottom:68px}.sm\:py-\[80px\]{padding-top:80px;padding-bottom:80px}.sm\:pb-24{padding-bottom:6rem}.sm\:pb-4{padding-bottom:1rem}.sm\:pe-4{padding-inline-end:1rem}.sm\:pt-12{padding-top:3rem}.sm\:pt-4{padding-top:1rem}.sm\:pt-8{padding-top:2rem}.sm\:pt-\[170px\]{padding-top:170px}.sm\:text-center{text-align:center}.sm\:text-\[112px\]{font-size:112px}.sm\:text-\[15px\]{font-size:15px}.sm\:text-\[17px\]{font-size:17px}.sm\:text-\[18px\]{font-size:18px}.sm\:text-\[19px\]{font-size:19px}.sm\:text-\[20px\]{font-size:20px}.sm\:text-\[22px\]{font-size:22px}.sm\:text-\[24px\]{font-size:24px}.sm\:text-\[36px\]{font-size:36px}.sm\:text-\[38px\]{font-size:38px}.sm\:text-\[40px\]{font-size:40px}.sm\:text-\[42px\]{font-size:42px}.sm\:text-\[46px\]{font-size:46px}.sm\:text-\[52px\]{font-size:52px}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-\[30px\]{line-height:30px}.sm\:leading-\[32px\]{line-height:32px}.sm\:leading-\[48px\]{line-height:48px}.sm\:tracking-\[0\.4px\]{letter-spacing:.4px}}@media (min-width: 768px){.md\:inset-0{inset:0}.md\:bottom-\[55px\]{bottom:55px}.md\:col-span-5{grid-column:span 5 / span 5}.md\:col-span-7{grid-column:span 7 / span 7}.md\:mb-0{margin-bottom:0}.md\:mb-8{margin-bottom:2rem}.md\:mr-0{margin-right:0}.md\:mr-2{margin-right:.5rem}.md\:mr-4{margin-right:1rem}.md\:mr-6{margin-right:1.5rem}.md\:ms-2{margin-inline-start:.5rem}.md\:mt-0{margin-top:0}.md\:mt-10{margin-top:2.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-10{height:2.5rem}.md\:h-44{height:11rem}.md\:h-8{height:2rem}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/5{width:20%}.md\:w-10{width:2.5rem}.md\:w-2\/3{width:66.666667%}.md\:w-2\/4{width:50%}.md\:w-3\/4{width:75%}.md\:w-4\/5{width:80%}.md\:w-5\/6{width:83.333333%}.md\:w-72{width:18rem}.md\:w-8{width:2rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:min-w-72{min-width:18rem}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-20\/80{grid-template-columns:20% 80%}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-40\/60{grid-template-columns:40% 60%}.md\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-start{align-items:flex-start}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:justify-items-start{justify-items:start}.md\:gap-10{gap:2.5rem}.md\:gap-12{gap:3rem}.md\:gap-6{gap:1.5rem}.md\:gap-x-12{column-gap:3rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.md\:p-12{padding:3rem}.md\:p-5{padding:1.25rem}.md\:p-8{padding:2rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:py-0{padding-top:0;padding-bottom:0}.md\:py-12{padding-top:3rem;padding-bottom:3rem}.md\:py-16{padding-top:4rem;padding-bottom:4rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:pb-4{padding-bottom:1rem}.md\:pb-8{padding-bottom:2rem}.md\:pl-5{padding-left:1.25rem}.md\:pl-8{padding-left:2rem}.md\:pt-4{padding-top:1rem}.md\:text-start{text-align:start}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-\[26px\]{font-size:26px}.md\:text-\[38px\]{font-size:38px}.md\:text-\[44px\]{font-size:44px}.md\:text-\[56px\]{font-size:56px}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:font-medium{font-weight:500}.md\:after\:mx-6:after{content:var(--tw-content);margin-left:1.5rem;margin-right:1.5rem}}@media (min-width: 1024px){.lg\:bottom-auto{bottom:auto}.lg\:left-\[-252px\]{left:-252px}.lg\:left-\[1187px\]{left:1187px}.lg\:top-\[-73px\]{top:-73px}.lg\:top-\[268px\]{top:268px}.lg\:col-span-1{grid-column:span 1 / span 1}.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:m-2{margin:.5rem}.lg\:mb-0{margin-bottom:0}.lg\:mb-8{margin-bottom:2rem}.lg\:mt-0{margin-top:0}.lg\:mt-12{margin-top:3rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:table-cell{display:table-cell}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-\[320px\]{height:320px}.lg\:h-\[440px\]{height:440px}.lg\:h-\[561px\]{height:561px}.lg\:h-\[calc\(100\%\)\]{height:100%}.lg\:h-fit{height:-moz-fit-content;height:fit-content}.lg\:min-h-\[384px\]{min-height:384px}.lg\:min-h-\[464px\]{min-height:464px}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-3\/4{width:75%}.lg\:w-\[200px\]{width:200px}.lg\:w-\[212px\]{width:212px}.lg\:w-\[260px\]{width:260px}.lg\:w-\[357\.33px\]{width:357.33px}.lg\:w-\[407px\]{width:407px}.lg\:w-\[421px\]{width:421px}.lg\:w-\[440px\]{width:440px}.lg\:w-\[544px\]{width:544px}.lg\:w-\[561px\]{width:561px}.lg\:max-w-\[544px\]{max-width:544px}.lg\:auto-cols-auto{grid-auto-columns:auto}.lg\:grid-flow-col{grid-auto-flow:column}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-20\/80{grid-template-columns:20% 80%}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-60\/40{grid-template-columns:60% 40%}.lg\:grid-cols-80\/20{grid-template-columns:80% 20%}.lg\:flex-row{flex-direction:row}.lg\:flex-col{flex-direction:column}.lg\:items-start{align-items:flex-start}.lg\:items-center{align-items:center}.lg\:items-stretch{align-items:stretch}.lg\:justify-between{justify-content:space-between}.lg\:gap-10{gap:2.5rem}.lg\:gap-14{gap:3.5rem}.lg\:gap-4{gap:1rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-8{gap:2rem}.lg\:gap-\[56px\]{gap:56px}.lg\:gap-\[93px\]{gap:93px}.lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:p-10{padding:2.5rem}.lg\:p-12{padding:3rem}.lg\:p-2\.5{padding:.625rem}.lg\:p-5{padding:1.25rem}.lg\:p-\[24px_32px\]{padding:24px 32px}.lg\:px-10{padding-left:2.5rem;padding-right:2.5rem}.lg\:px-12{padding-left:3rem;padding-right:3rem}.lg\:px-14{padding-left:3.5rem;padding-right:3.5rem}.lg\:px-16{padding-left:4rem;padding-right:4rem}.lg\:px-20{padding-left:5rem;padding-right:5rem}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:px-\[160px\]{padding-left:160px;padding-right:160px}.lg\:px-\[80px\]{padding-left:80px;padding-right:80px}.lg\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.lg\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\:py-\[100px\]{padding-top:100px;padding-bottom:100px}.lg\:py-\[64px\]{padding-top:64px;padding-bottom:64px}.lg\:py-\[80px\]{padding-top:80px;padding-bottom:80px}.lg\:pb-16{padding-bottom:4rem}.lg\:pb-5{padding-bottom:1.25rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pb-\[80px\]{padding-bottom:80px}.lg\:pb-\[90px\]{padding-bottom:90px}.lg\:pl-16{padding-left:4rem}.lg\:pr-16{padding-right:4rem}.lg\:pt-0{padding-top:0}.lg\:pt-12{padding-top:3rem}.lg\:pt-16{padding-top:4rem}.lg\:pt-8{padding-top:2rem}.lg\:pt-\[160px\]{padding-top:160px}.lg\:pt-\[190px\]{padding-top:190px}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\:text-5xl{font-size:3rem;line-height:1}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-\[16px\]{font-size:16px}.lg\:text-\[20px\]{font-size:20px}.lg\:text-\[24px\]{font-size:24px}.lg\:text-\[28px\]{font-size:28px}.lg\:text-\[32px\]{font-size:32px}.lg\:text-\[40px\]{font-size:40px}.lg\:text-\[42px\]{font-size:42px}.lg\:text-\[44px\]{font-size:44px}.lg\:text-\[48px\]{font-size:48px}.lg\:text-\[60px\]{font-size:60px}.lg\:text-\[70px\]{font-size:70px}.lg\:text-xl{font-size:1.25rem;line-height:1.75rem}.lg\:leading-\[29px\]{line-height:29px}.lg\:leading-\[32px\]{line-height:32px}.lg\:leading-\[48px\]{line-height:48px}.lg\:leading-\[53px\]{line-height:53px}.lg\:leading-\[58px\]{line-height:58px}.lg\:leading-\[84px\]{line-height:84px}.lg\:tracking-\[1px\]{letter-spacing:1px}}@media (min-width: 1280px){.xl\:flex{display:flex}.xl\:h-\[384px\]{height:384px}.xl\:w-2\/3{width:66.666667%}.xl\:grid-cols-20\/80{grid-template-columns:20% 80%}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-\[minmax\(0\,1\.35fr\)_minmax\(0\,1fr\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr)}.xl\:gap-6{gap:1.5rem}.xl\:px-16{padding-left:4rem;padding-right:4rem}.xl\:px-20{padding-left:5rem;padding-right:5rem}.xl\:px-48{padding-left:12rem;padding-right:12rem}.xl\:px-\[160px\]{padding-left:160px;padding-right:160px}.xl\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.xl\:py-\[100px\]{padding-top:100px;padding-bottom:100px}.xl\:pb-\[100px\]{padding-bottom:100px}.xl\:pt-\[200px\]{padding-top:200px}.xl\:pt-\[204px\]{padding-top:204px}.xl\:text-\[32px\]{font-size:32px}.xl\:text-\[48px\]{font-size:48px}.xl\:text-\[64px\]{font-size:64px}.xl\:leading-\[32px\]{line-height:32px}.xl\:leading-\[48px\]{line-height:48px}.xl\:leading-\[58px\]{line-height:58px}.xl\:leading-\[77px\]{line-height:77px}.xl\:tracking-\[1px\]{letter-spacing:1px}.xl\:after\:mx-10:after{content:var(--tw-content);margin-left:2.5rem;margin-right:2.5rem}}@media (min-width: 1536px){.\32xl\:px-20{padding-left:5rem;padding-right:5rem}}.ltr\:mr-0\.5:where([dir=ltr],[dir=ltr] *){margin-right:.125rem}.rtl\:ml-0\.5:where([dir=rtl],[dir=rtl] *){margin-left:.125rem}.rtl\:rotate-180:where([dir=rtl],[dir=rtl] *){--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rtl\:space-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.rtl\:text-right:where([dir=rtl],[dir=rtl] *){text-align:right}.peer:checked~.rtl\:peer-checked\:after\:-translate-x-full:where([dir=rtl],[dir=rtl] *):after{content:var(--tw-content);--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:rtl\:divide-x-reverse:where([dir=rtl],[dir=rtl] *)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 1}}