1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8862],{2233(m,d,i){i.d(d,{S:()=>C});const C=(0,i(5083).F3)("Share",{web:()=>i.e(1227).then(i.bind(i,1227)).then(s=>new s.ShareWeb)})},3542(m,d,i){i.d(d,{OrganisationPageModule:()=>Q});var p=i(2200),C=i(9417),s=i(8688),_=i(467),M=i(2046),l=i(8251),O=i(470),P=i(5187),u=i(7671),x=i(377),v=i(6879),f=i(7292),n=i(3664),r=i(2615),b=i(1557),k=i(6845),y=i(7589),R=i(8196),T=i(5281),j=i(7349),L=i(257),$=i(6552),h=i(3955);function w(o,c){1&o&&n.nrm(0,"quitch-loader")}function G(o,c){if(1&o){const t=n.RV6();n.j41(0,"ion-content")(1,"empty-state",0),n.bIt("callToAction",function(){r.eBV(t);const a=n.XpG();return r.Njj(a.back())}),n.k0s()()}if(2&o){const t=n.XpG();n.R7$(),n.Y8G("status",t.status.classNotFound)}}function I(o,c){if(1&o){const t=n.RV6();n.j41(0,"ion-avatar",9)(1,"img",17),n.nI1(2,"translate"),n.nI1(3,"translate"),n.bIt("error",function(a){r.eBV(t);const g=n.XpG(2);return r.Njj(g.handleLogoError(a))}),n.k0s()()}if(2&o){const t=n.XpG(2);n.R7$(),n.Y8G("alt",n.mNQ(n.bMT(2,5,"GLOBAL.icon")))("title",n.mNQ(n.bMT(3,7,"GLOBAL.appName")))("src",t.getOrganisationLogo(t.organisation),n.B4B)}}function U(o,c){if(1&o&&(n.j41(0,"div",18)(1,"ion-label",19),n.EFF(2),n.k0s()()),2&o){const t=n.XpG(2);n.xc7("background-color",t.organisation.orgColor?t.organisation.orgColor:"#f2c14e"),n.R7$(2),n.JRh(t.getInitial(t.organisation.orgName))}}function X(o,c){if(1&o&&(n.j41(0,"ion-item",12),n.nrm(1,"read-more-text",20)(2,"read-more-text",21),n.k0s()),2&o){const t=n.XpG(2);n.R7$(),n.Y8G("textContent",t.organisation.description)("lineLimit",7)("backgroundColor","var(--ion-color-quitch-background)"),n.R7$(),n.Y8G("textContent",t.organisation.description)("lineLimit",3)("backgroundColor","var(--ion-color-quitch-background)")}}function S(o,c){if(1&o&&(n.j41(0,"ion-item",14)(1,"ion-label",22)(2,"a",23)(3,"span",24),n.nrm(4,"ion-icon",25),n.EFF(5),n.k0s()()()()),2&o){const t=n.XpG(2);n.R7$(2),n.Y8G("href",t.organisation.website,n.B4B),n.R7$(3),n.SpI(" ",t.organisation.website," ")}}function V(o,c){if(1&o){const t=n.RV6();n.j41(0,"marketplace-list-item",30),n.bIt("click",function(){const a=r.eBV(t).$implicit,g=n.XpG(3);return r.Njj(g.viewMarketplaceClass(a))}),n.k0s()}2&o&&n.Y8G("marketplaceClass",c.$implicit)}function B(o,c){if(1&o){const t=n.RV6();n.j41(0,"ion-col",29)(1,"marketplace-class-card",30),n.bIt("click",function(){const a=r.eBV(t).$implicit,g=n.XpG(3);return r.Njj(g.viewMarketplaceClass(a))}),n.k0s()()}if(2&o){const t=c.$implicit;n.R7$(),n.Y8G("marketplaceClass",t)}}function N(o,c){if(1&o&&(n.j41(0,"ion-item",15)(1,"ion-list",26),n.Z7z(2,V,1,1,"marketplace-list-item",27,n.BUC().identifyMarketplaceClass,!0),n.k0s(),n.j41(4,"ion-grid",28)(5,"ion-row"),n.Z7z(6,B,2,1,"ion-col",29,n.BUC().identifyMarketplaceClass,!0),n.k0s()()()),2&o){const t=n.XpG(2);n.R7$(2),n.Dyx(t.organisation.classes),n.R7$(4),n.Dyx(t.organisation.classes)}}function A(o,c){if(1&o&&(n.j41(0,"div",16),n.nrm(1,"empty-state",31),n.k0s()),2&o){const t=n.XpG(2);n.R7$(),n.Y8G("status",t.status.orgNoPublicClasses)}}function F(o,c){if(1&o){const t=n.RV6();n.j41(0,"ion-content")(1,"ion-header")(2,"div",1),n.nrm(3,"image-handler",2),n.j41(4,"ion-button",3),n.nI1(5,"translate"),n.bIt("click",function(){r.eBV(t);const a=n.XpG();return r.Njj(a.back())}),n.nrm(6,"ion-icon",4),n.k0s(),n.j41(7,"ion-button",5),n.nI1(8,"translate"),n.bIt("click",function(){r.eBV(t);const a=n.XpG();return r.Njj(a.openShare())}),n.j41(9,"span",6),n.EFF(10,"share"),n.k0s()()(),n.j41(11,"div",7)(12,"ion-item",8),n.nVh(13,I,4,9,"ion-avatar",9),n.nVh(14,U,3,3,"div",10),n.k0s()()(),n.j41(15,"ion-item-group",11)(16,"ion-item",12)(17,"ion-label"),n.nrm(18,"h1",13),n.k0s()(),n.nVh(19,X,3,6,"ion-item",12),n.nVh(20,S,6,2,"ion-item",14),n.nVh(21,N,8,0,"ion-item",15),n.k0s(),n.nVh(22,A,2,1,"div",16),n.k0s()}if(2&o){const t=n.XpG();n.R7$(3),n.Y8G("imageSrc",t.appConfig.getAssetUrl(t.organisation.orgBanner))("imgAriaDesc",t.organisation.orgName),n.R7$(),n.BMQ("aria-label",n.bMT(5,11,"navigation.backToMarketplace")),n.R7$(3),n.BMQ("aria-label",n.bMT(8,13,"navigation.share")),n.R7$(6),n.vxM(t.getOrganisationLogo(t.organisation)?13:-1),n.R7$(),n.vxM(null==t.getOrganisationLogo(t.organisation)?14:-1),n.R7$(4),n.Y8G("innerHTML",t.organisation.orgName,n.npT),n.R7$(),n.vxM(null!==t.organisation.description?19:-1),n.R7$(),n.vxM(t.organisation.website?20:-1),n.R7$(),n.vxM(t.organisation.classes.length>0?21:-1),n.R7$(),n.vxM(0===t.organisation.classes.length?22:-1)}}let D=(()=>{class o{constructor(t,e,a,g,W,Z,J,q){this.marketplaceService=t,this.route=e,this.soundService=a,this.telemetryService=g,this.navigation=W,this.appConfig=Z,this.shareService=J,this.translate=q,this.initialised=!1,this.organisation=null,this.status=new u.y}ngOnInit(){}
1ionViewDidEnter(){let t=this.route.snapshot.paramMap.get("orgId");this.marketplaceService.getMarketplace().then(e=>{this.marketplaceService.getOrganisationDetails(t).subscribe({next:a=>{this.organisation=a,this.initialised=!0},error:a=>{console.error(a),this.organisation=null,this.initialised=!0}})}).catch(e=>{console.error(e),this.organisation=null,this.initialised=!0})}back(){this.soundService.play(l.p.BACK_CLICK),this.navigation.navigatePop("/quitch/marketplace")}getOrganisationLogo(t){return t.orgLogo&&t.orgLogo.length?this.appConfig.getAssetUrl(t.orgLogo):null}getInitial(t){if(t&&t.length){const e=t.split(" ");return 2==e.length?e[0].charAt(0).toUpperCase()+e[1].charAt(0).toUpperCase():t.charAt(0).toUpperCase()}return null}handleLogoError(t){t.target.src=x.Z}viewMarketplaceClass(t){this.soundService.play(l.p.MAIN_CLICK),this.telemetryService.trackEvent("goToMarketplaceClassPage",{classId:t.classId,className:t.className,classLabel:t.classLabel,price:t.price,currency:this.marketplaceService.getCurrency(),entryPoint:"org-page"}),this.navigation.navigateTo(`/quitch/marketplace/class/${t.instanceId}`,{animated:!1})}openShare(){var t=this;return(0,_.A)(function*(){t.soundService.play(l.p.MAIN_CLICK),t.telemetryService.trackElementClick("button","marketplaceOrganisationPage-openShare",{}),yield t.shareService.shareUrl(t.translate.instance.instant("marketplace.sharePlural"),"","",t.organisation.id,"marketplace/share/organisation")})()}transformURL(t){try{const e=new URL(t),a=e.hostname.replace(/^www\./,"");let g=e.pathname;return g.endsWith("/")&&(g=g.slice(0,-1)),`${a}${g}`}catch{return console.error("MarketplaceClassPage transformURL(): Invalid URL"),null}}identifyMarketplaceClass(t,e){return e.instanceId}static{this.\u0275fac=function(e){return new(e||o)(n.rXU(M.b),n.rXU(b.nX),n.rXU(l.p),n.rXU(O.H),n.rXU(P.i),n.rXU(v.o),n.rXU(f.D),n.rXU(k.L))}}static{this.\u0275cmp=n.VBU({type:o,selectors:[["app-organisation"]],standalone:!1,decls:3,vars:3,consts:[[3,"callToAction","status"],[1,"top-image"],["background","#DDECF8","coverFit","true","aria-hidden","true","borderRadius","0",3,"imageSrc","imgAriaDesc"],["slot","end","fill","solid","size","small",1,"close-btn",3,"click"],["name","arrow-back"],["fill","clear","size","small",1,"share-btn",3,"click"],[1,"material-symbols"],[1,"organisation-details-holder"],["lines","none",1,"organisation-details"],["slot","start",1,"orgLogo"],[1,"org-initial-logo",3,"background-color"],[1,"ion-padding"],["lines","none"],[1,"organisation-name","headline-small",3,"innerHTML"],["lines","none",1,"marketplace-website"],["lines","none",1,"classes-item"],[1,"empty-state-container"],[3,"error","src","alt","title"],[1,"org-initial-logo"],[1,"initial"],[1,"mobile-read-more",3,"textContent","lineLimit","backgroundColor"],[1,"desktop-read-more",3,"textContent","lineLimit","backgroundColor"],[1,"link-label"],["target","_blank",3,"href"],[1,"link-btn","label-large"],["name","link"],[1,"ion-no-margin","ion-no-padding"],[3,"marketplaceClass"],[1,"three-column-grid"],["size","4"],[3,"click","marketplaceClass"],[3,"status"]],template:function(e,a){1&e&&(n.nVh(0,w,1,0,"quitch-loader"),n.nVh(1,G,2,1,"ion-content"),n.nVh(2,F,23,15,"ion-content")),2&e&&(n.vxM(a.initialised?-1:0),n.R7$(),n.vxM(a.initialised&&null===a.organisation?1:-1),n.R7$(),n.vxM(a.initialised&&null!==a.organisation?2:-1))},dependencies:[s.mC,s.Jm,s.hU,s.W9,s.lO,s.eU,s.iq,s.uz,s.jh,s.he,s.nf,s.ln,y.H,R.o,T.T,j.c,L.X,$.e,h.D9],styles:["[_nghost-%COMP%] read-more-text[_ngcontent-%COMP%]{max-width:784px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%]{height:148px;position:relative;overflow:hidden;padding-top:19px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] ion-button.close-btn[_ngcontent-%COMP%]{position:fixed;z-index:100}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] image-handler[_ngcontent-%COMP%]{height:var(--min-height, 100%);position:absolute;display:flex;width:100vw;left:0;top:0}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .organisation-detail
1s-holder[_ngcontent-%COMP%]{position:relative;height:0;overflow:visible}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .organisation-details-holder[_ngcontent-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%]{position:absolute;width:100vw;z-index:20;left:0;top:-74px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .organisation-details-holder[_ngcontent-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%] ion-avatar[_ngcontent-%COMP%]{width:88px;height:88px;margin-bottom:0;border:1px solid var(--ion-color-quitch-background-4)}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .organisation-details-holder[_ngcontent-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%] ion-avatar[slot=start][_ngcontent-%COMP%]{margin-inline-end:8px;margin-inline-start:16px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .organisation-details-holder[_ngcontent-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%] ion-avatar.orgLogo[_ngcontent-%COMP%]{background-color:var(--ion-color-quitch-white);border-radius:99px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .organisation-details-holder[_ngcontent-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%] div.org-initial-logo[_ngcontent-%COMP%]{display:flex;color:var(--ion-color-quitch-white);border:1px solid var(--ion-color-quitch-background-4);margin-right:8px;border-radius:99px;width:88px;height:88px;justify-content:center;flex-shrink:0;margin-inline-start:16px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .organisation-details-holder[_ngcontent-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%] div.org-initial-logo[_ngcontent-%COMP%] .initial[_ngcontent-%COMP%]{font-size:24px;align-self:center}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .share-btn[_ngcontent-%COMP%]{position:relative;background:var(--ion-color-quitch-background);cursor:pointer;border-radius:100%;float:right}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .share-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translateY(-50%) translate(-50%)}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item.classes-item[_ngcontent-%COMP%]{padding-top:16px}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-grid[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-grid[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:8px}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] ion-label[_ngcontent-%COMP%] h1.organisation-name[_ngcontent-%COMP%]{padding-top:12px;font-weight:500}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .link-btn[_ngcontent-%COMP%]{margin-top:12px;display:flex;padding:4px 12px 4px 8px;justify-content:center;width:-moz-fit-content;width:fit-content;align-items:center;gap:8px;border-radius:20px;background-color:var(--ion-color-quitch-background-4)}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] .link-btn[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{width:24px;height:24px;align-self:center}@media screen and (min-width:830px){[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] ion-button.close-btn[_ngcontent-%COMP%]{margin-left:calc(52vw - 415px)}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] ion-button.share-btn[_ngcontent-%COMP%]{margin-right:calc(52vw - 423px)}}@media screen and (min-width:600px){[_nghost-%COMP%] marketplace-list-item[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ion-item[_ngcontent-%COMP%]{padding-left:calc(52vw - 432px);padding-right:calc(52vw - 432px)}[_nghost-%COMP%] .mobile-read-more[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .desktop-read-more[_ngcontent-%COMP%]{display:block}}@media screen and (max-width:599px){[_nghost-%COMP%] .mobile-read-more[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .desktop-read-more[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] read-more-text[_ngcontent-%COMP%], [_nghost-%COMP%] .marketplace-website[_ngcontent-%COMP%]{padding-left:16px}[_nghost-%COMP%] marketplace-class-card[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ion-grid[_ngcontent-%COMP%] ion-row.container-row[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%]{padding-top:var(--ion-safe-area-top)}[_nghost-%COMP%] ion-item-group[_ngcontent-%COMP%]{padding:16px 0 0}[_nghost-%COMP%] ion-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] h1.organisation-name[_ng
1content-%COMP%]{padding-left:16px}[_nghost-%COMP%] ion-item.classes-item[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}[_nghost-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-item-group[_ngcontent-%COMP%]{padding:16px 0 0}[_nghost-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-content[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%] h1.organisation-name[_ngcontent-%COMP%]{padding-left:16px}[_nghost-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-item.classes-item[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}[_nghost-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-item.classes-item[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{width:100%}}@media screen and (min-width:600px){[_nghost-%COMP%] ion-item-group.ion-padding[_ngcontent-%COMP%]{padding-right:4px}[_nghost-%COMP%] marketplace-list-item[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ion-grid[_ngcontent-%COMP%]{padding:12px 0 16px 18px}[_nghost-%COMP%] ion-grid[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{padding:0 12px 12px 0}}@media screen and (min-width:1240px){[_nghost-%COMP%] ion-grid[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{padding:0 16px 18px 0}[_nghost-%COMP%] ion-item[_ngcontent-%COMP%]{padding-left:176px;padding-right:176px}[_nghost-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%]{padding-left:176px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] ion-button.close-btn[_ngcontent-%COMP%]{margin-left:191px}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] ion-button.share-btn[_ngcontent-%COMP%]{margin-right:201px}[_nghost-%COMP%] .classes-item[_ngcontent-%COMP%]{padding-left:176px;padding-right:192px}}@media screen and (min-width:1440px){[_nghost-%COMP%] ion-item[_ngcontent-%COMP%]{padding-left:calc(50vw - 545px);padding-right:calc(50vw - 545px)}[_nghost-%COMP%] ion-item.organisation-details[_ngcontent-%COMP%]{padding-left:calc(50vw - 544px)}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] ion-button.close-btn[_ngcontent-%COMP%]{margin-left:calc(50vw - 528px)}[_nghost-%COMP%] ion-header[_ngcontent-%COMP%] .top-image[_ngcontent-%COMP%] ion-button.share-btn[_ngcontent-%COMP%]{margin-right:calc(50vw - 518px)}[_nghost-%COMP%] .classes-item[_ngcontent-%COMP%]{padding-top:14px;padding-left:calc(50vw - 544px);padding-right:calc(50vw - 528px)}}"]})}}return o})();var Y=i(5553),E=i(3721),z=i(1683),K=i(8132);const H=[{path:"",component:D}];let Q=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=n.$C({type:o})}static{this.\u0275inj=r.G2t({imports:[p.MD,C.YN,s.bv,K.iI.forChild(H),h.h.forChild(),Y.h,E.h,z.Y]})}}return o})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.