1"use strict";(self.webpackChunktaiga=self.webpackChunktaiga||[]).push([[835],{2835(Dt,X,r){r.d(X,{WebshopModule:()=>Lt});var $=r(2200),O=r(8132),t=r(3664),C=r(2043),V=r(6354),c=r(2615),N=r(5850);let f=(()=>{class n{constructor(e){this.request=e}getWebshop(e){return this.request.get("v2/webshop",{contractId:e})}getWebshopById(e,i){return this.getWebshop(e).pipe((0,V.T)(o=>{const a={items:[JSON.parse(JSON.stringify(o.items.find(l=>l.id===i)))],count:1};if(a.items[0]?.spaces?.length>0&&a.items[0].pricing?.length>0)for(let l of a.items[0].spaces)if(!1===l.pricing?.hasPrice&&!l.pricing?.priceOneTime&&!l.pricing?.priceRecurring){l.pricing.priceOneTime=0,l.pricing.priceRecurring=0;for(let m of a.items[0].pricing)m.priceOneTime&&(l.pricing.priceOneTime+=m.priceOneTime),m.priceRecurring&&(l.pricing.priceRecurring+=m.priceRecurring)}return a}))}getWebshopItemAttachmentsItem(e){return this.request.get(`v2/webshop/attachments/${e}`,null,{responseType:"blob"})}putWebshopItem(e,i,o,a){return this.request.putOnce(`v2/webshop/${e}`,{nodeId:i,classIds:o,specification:a})}static{this.\u0275fac=function(i){return new(i||n)(c.KVO(N.B))}}static{this.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var h=r(8793),b=r(8018),P=r(3013),T=r(7201),R=r(980),w=r(983),y=r(1985),x=r(9213),k=r(8834),p=r(5596),S=r(1517),M=r(6112);function A(n,s){if(1&n&&t.nrm(0,"img",4),2&n){const e=t.XpG(2);t.Y8G("alt",e.webshopItem.attachments[0].displayName)("src",e.imgSrc,t.B4B)}}function U(n,s){1&n&&(t.j41(0,"div",5)(1,"mat-icon",14),t.nI1(2,"translate"),t.EFF(3,"hide_image"),t.k0s()()),2&n&&(t.R7$(),t.BMQ("aria-label",t.bMT(2,1,"NOIMAGE")))}function L(n,s){1&n&&(t.j41(0,"div",6),t.nrm(1,"taiga-spinner",15),t.k0s()),2&n&&(t.R7$(),t.Y8G("diameter",36))}function D(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-card",1),t.bIt("mouseenter",function(o){c.eBV(e);const a=t.XpG();return c.Njj(a.addClass(o))})("mouseleave",function(o){c.eBV(e);const a=t.XpG();return c.Njj(a.removeClass(o))}),t.j41(1,"mat-card-content")(2,"div",2)(3,"div",3),t.nVh(4,A,1,2,"
1img",4),t.nVh(5,U,4,3,"div",5),t.nVh(6,L,2,1,"div",6),t.k0s()(),t.j41(7,"div")(8,"div",7)(9,"div",8)(10,"div",9)(11,"div")(12,"h2",9),t.EFF(13),t.k0s()()()(),t.j41(14,"div",10),t.nrm(15,"taiga-markdown",11),t.k0s()()()(),t.j41(16,"mat-card-actions",12)(17,"button",13),t.bIt("click",function(){c.eBV(e);const o=t.XpG();return c.Njj(o.goToOrder(null==o.webshopItem?null:o.webshopItem.id))}),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()}if(2&n){const e=t.XpG();t.Y8G("id",t.mNQ(null==e.webshopItem?null:e.webshopItem.id)),t.R7$(),t.AVh("is-mobile",e.mediaQueryService.isMobile())("is-desktop",!e.mediaQueryService.isMobile()),t.R7$(),t.AVh("image-container-mobile",e.mediaQueryService.isMobile())("image-container",!e.mediaQueryService.isMobile()),t.R7$(2),t.vxM(e.imgSrc&&!e.loadingImg?4:-1),t.R7$(),t.vxM(e.imgSrc||e.loadingImg?-1:5),t.R7$(),t.vxM(e.loadingImg?6:-1),t.R7$(),t.AVh("info-container-mobile",e.mediaQueryService.isMobile())("info-container",!e.mediaQueryService.isMobile()),t.R7$(2),t.AVh("header-desktop",!e.mediaQueryService.isMobile()),t.R7$(4),t.JRh(null==e.webshopItem?null:e.webshopItem.displayName),t.R7$(2),t.Y8G("markdown",null==e.webshopItem?null:e.webshopItem.description),t.R7$(3),t.SpI(" ",t.bMT(19,22,"SELECT")," ")}}let Y=(()=>{class n{constructor(e,i,o){this.router=e,this.mediaQueryService=i,this.webshopService=o}ngOnInit(){if(this.webshopItem.attachments?.length>0){const e=this.webshopItem.attachments.find(i=>i.contentType.includes("image"));e&&(this.loadingImg=!0,this.getWebshopItemAttachmentsItem(e.id))}}goToOrder(e){this.router.navigateByUrl(`mypages/contract/${this.contractId}/webshop/${e}`)}addClass(e){e.currentTarget.classList.add("mat-elevation-z2")}removeClass(e){e.currentTarget.classList.remove("mat-elevation-z2")}getWebshopItemAttachmentsItem(e){this.webshopService.getWebshopItemAttachmentsItem(e).subscribe(i=>{this.blobToBase64(i).pipe((0,R.j)(()=>{this.loadingImg=!1})).subscribe(o=>{this.imgSrc=o})})}blobToBase64(e){if("function"!=typeof FileReader)return w.w;const i=new FileReader,o=new y.c(a=>{i.onloadend=()=>{a.next(i.result),a.complete()}});return i.readAsDataURL(e),o}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(h.Ix),t.rXU(C.M),t.rXU(f))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-webshop-list-item"]],inputs:{webshopItem:"webshopItem",contractId:"contractId"},standalone:!1,decls:1,vars:1,consts:[[3,"id"],[3,"mouseenter","mouseleave","id"],[2,"padding","10px"],[1,"image-content"],[1,"image",3,"alt","src"],[1,"no-image"],[1,"loading-image"],[1,"info-content"],[1,"header"],[1,""],[1,"text","truncate"],[3,"markdown"],["align","end"],["matButton","tonal","color","primary","data-mom-test","MyPages_Webshop_SelectItem",3,"click"],["color","primary"],[3,"diameter"]],template:function(i,o){1&i&&t.nVh(0,D,20,24,"mat-card",0),2&i&&t.vxM(o.webshopItem.id?0:-1)},dependencies:[x.An,k.$z,p.RN,p.YY,p.m2,S.t,M.N,b.D9],styles:["mat-card-content[_ngcontent-%COMP%]{display:flex}.is-mobile[_ngcontent-%COMP%]{flex-direction:column}.is-desktop[_ngcontent-%COMP%]{flex-direction:row}.image-container[_ngcontent-%COMP%]{width:37%}.info-container[_ngcontent-%COMP%]{width:63%}.image[_ngcontent-%COMP%]{width:100%;height:206px;object-fit:cover;display:flex;border-radius:2px}.object-card[_ngcontent-%COMP%]{cursor:pointer}.info-content[_ngcontent-%COMP%]{margin:5px 15px 10px}.mat-h2[_ngcontent-%COMP%]{margin-bottom:0;color:var(--palette-primary-500)}.text[_ngcontent-%COMP%]{margin-top:15px}.address[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap-reverse}.details[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;text-align:center;flex-wrap:wrap}.details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:1.125rem}.details[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical}.icon[_ngcontent-%COMP%]{display:flex;justify-content:center}.broken-image-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:120px;min-height:120px;font-size:6.25rem;border:solid;border-radius:50%;margin-bottom:8px}.divider[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:15px}.application-open-to-container[_ngcontent-%COMP%]{margin-bottom:5px}.pill-badge[_ngcontent-%COMP%]{font-weight:400;align-self:center;font-size:.75rem;margin-left:auto}.no-border-bottom-radius[_nghost-%COMP%] mat-card[_ngcontent-%COMP%], .no-border-bottom-radius [_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.no-border-top-radius[_nghost-%COMP%] mat-card[_ngcontent-%COMP%], .no-border-top-radius [_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.location[_ngcontent-%COMP%]{margin-bottom:16px}.no-image[_ngcontent-%COMP%], .loading-image[_ngcontent-%COMP%]{height:206px;display:flex;justify-content:center;align-items:center;background-color:rgb(var(--palette-background-background));border-radius:2px}.no-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2.5rem;width:40px;height:40px}mat-card[_ngcontent-%COMP%]{margin:10px 0}"]})}}return n})();
1function z(n,s){if(1&n&&t.nrm(0,"taiga-webshop-list-item",0),2&n){const e=s.$implicit,i=t.XpG();t.Y8G("webshopItem",e)("contractId",i.contractId)}}let Q=(()=>{class n{constructor(){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-webshop-list"]],inputs:{webshop:"webshop",contractId:"contractId"},standalone:!1,decls:2,vars:0,consts:[[3,"webshopItem","contractId"]],template:function(i,o){1&i&&t.Z7z(0,z,1,2,"taiga-webshop-list-item",0,t.fX1),2&i&&t.Dyx(null==o.webshop?null:o.webshop.items)},dependencies:[Y],styles:["mat-card-content[_ngcontent-%COMP%]{display:flex}.is-mobile[_ngcontent-%COMP%]{flex-direction:column}.is-desktop[_ngcontent-%COMP%]{flex-direction:row}.image-container[_ngcontent-%COMP%]{width:37%}.info-container[_ngcontent-%COMP%]{width:63%}.image[_ngcontent-%COMP%]{width:100%;height:206px;object-fit:cover;display:flex;border-radius:2px}.object-card[_ngcontent-%COMP%]{cursor:pointer}.info-content[_ngcontent-%COMP%]{margin:5px 15px 10px}.mat-h2[_ngcontent-%COMP%]{margin-bottom:0;color:var(--palette-primary-500)}.text[_ngcontent-%COMP%]{margin-top:15px}.address[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap-reverse}.details[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;text-align:center;flex-wrap:wrap}.details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:1.125rem}.details[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical}.icon[_ngcontent-%COMP%]{display:flex;justify-content:center}.broken-image-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:120px;min-height:120px;font-size:6.25rem;border:solid;border-radius:50%;margin-bottom:8px}.divider[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:15px}.application-open-to-container[_ngcontent-%COMP%]{margin-bottom:5px}.pill-badge[_ngcontent-%COMP%]{font-weight:400;align-self:center;font-size:.75rem;margin-left:auto}.no-border-bottom-radius[_nghost-%COMP%] mat-card[_ngcontent-%COMP%], .no-border-bottom-radius [_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.no-border-top-radius[_nghost-%COMP%] mat-card[_ngcontent-%COMP%], .no-border-top-radius [_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.location[_ngcontent-%COMP%]{margin-bottom:16px}.no-image[_ngcontent-%COMP%]{height:206px;display:flex;justify-content:center;align-items:center}.no-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2.5rem;width:40px;height:40px}mat-card[_ngcontent-%COMP%]{margin:10px 0}"]})}}return n})();function H(n,s){if(1&n&&t.nrm(0,"taiga-webshop-list",1),2&n){const e=t.XpG();t.Y8G("webshop",e.webshop)("contractId",e.contractId)}}let J=(()=>{class n{constructor(e,i,o,a,l){this.mediaQueryService=e,this.webshopService=i,this.route=o,this.router=a,this.translate=l,this.subTitle=this.translate.instant("WEBSHOPSELECTITEMHELP"),this.contractId=this.route.snapshot.params.id,this.webshopService.getWebshop(this.contractId).subscribe(m=>{m&&m.items?.length>0?this.webshop=m:this.subTitle=this.translate.instant("NOWEBSHOPITEMS")})}click(e){this.router.navigateByUrl(`mypages/contract/${e}/webshop`)}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(C.M),t.rXU(f),t.rXU(h.nX),t.rXU(h.Ix),t.rXU(b.c$))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-webshop"]],standalone:!1,decls:5,vars:9,consts:[[3,"text","subText"],[3,"webshop","contractId"]],template:function(i,o){1&i&&(t.j41(0,"div"),t.nrm(1,"taiga-medium-header",0),t.nI1(2,"translate"),t.nrm(3,"taiga-page-cards"),t.nVh(4,H,1,2,"taiga-webshop-list",1),t.k0s()),2&i&&(t.AVh("is-mobile",o.mediaQueryService.isMobile())("is-desktop",!o.mediaQueryService.isMobile()),t.R7$(),t.Y8G("text",t.bMT(2,7,"WEBSHOP"))("subText",o.subTitle),t.R7$(3),t.vxM(o.webshop?4:-1))},dependencies:[P.o,T.K,Q,b.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}"]})}}return n})();
1var E=r(7468),K=r(7705),W=r(56),Z=r(1580),q=r(100),u=r(9588),tt=r(7403),j=r(6471),F=r(9417),et=r(7655),nt=r(3881),B=r(9437),it=r(1997),ot=r(2765),at=r(1301);function st(n,s){if(1&n&&t.nrm(0,"img",6),2&n){const e=t.XpG(2);t.Y8G("alt",e.webshopItem.attachments[0].displayName)("src",e.imgSrc,t.B4B)}}function rt(n,s){1&n&&(t.j41(0,"div",7)(1,"mat-icon",24),t.nI1(2,"translate"),t.EFF(3,"hide_image"),t.k0s()()),2&n&&(t.R7$(),t.BMQ("aria-label",t.bMT(2,1,"NOIMAGE")))}function ct(n,s){1&n&&(t.j41(0,"div",8),t.nrm(1,"taiga-spinner",25),t.k0s()),2&n&&(t.R7$(),t.Y8G("diameter",36))}function lt(n,s){1&n&&t.EFF(0," , ")}function mt(n,s){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.nVh(2,lt,1,0),t.k0s()),2&n){const e=s.$implicit,i=s.$index,o=t.XpG(3);t.R7$(),t.SpI(" ",e.displayName," "),t.R7$(),t.vxM(o.spaces.length>1&&i!==o.spaces.length-1?2:-1)}}function pt(n,s){if(1&n&&(t.j41(0,"div",12)(1,"mat-label",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.Z7z(4,mt,3,2,"div",null,t.fX1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(2),t.SpI("",t.bMT(3,1,"ORDERFOR"),":"),t.R7$(2),t.Dyx(e.spaces)}}function dt(n,s){if(1&n&&(t.j41(0,"div",13)(1,"mat-label",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div"),t.EFF(5),t.k0s()()),2&n){const e=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"WEBSHOPFREETEXTFIELD")),t.R7$(3),t.JRh(e.freeText)}}function ht(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-card",2),t.bIt("mouseenter",function(o){c.eBV(e);const a=t.XpG();return c.Njj(a.addClass(o))})("mouseleave",function(o){c.eBV(e);const a=t.XpG();return c.Njj(a.removeClass(o))}),t.j41(1,"mat-card-content")(2,"div",3)(3,"div",4)(4,"div",5),t.nVh(5,st,1,2,"img",6),t.nVh(6,rt,4,3,"div",7),t.nVh(7,ct,2,1,"div",8),t.k0s()(),t.j41(8,"div")(9,"div",9)(10,"div",10)(11,"div",11)(12,"div")(13,"h2",11),t.EFF(14),t.k0s()()()(),t.nVh(15,pt,6,3,"div",12),t.nVh(16,dt,6,4,"div",13),t.j41(17,"div",14)(18,"div")(19,"mat-label",15),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"div",16),t.EFF(23),t.nI1(24,"translate"),t.k0s()(),t.j41(25,"div")(26,"mat-label",15),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"div",16),t.EFF(30),t.nI1(31,"translate"),t.k0s()(),t.j41(32,"div")(33,"mat-label",15),t.nrm(34,"taiga-markdown",17),t.nI1(35,"translate"),t.k0s(),t.j41(36,"div",18),t.EFF(37),t.nI1(38,"translate"),t.k0s()()()()()(),t.j41(39,"div",19),t.nrm(40,"mat-divider"),t.k0s(),t.j41(41,"div",20)(42,"div"),t.nrm(43,"taiga-markdown",17),t.nI1(44,"translate"),t.k0s(),t.j41(45,"mat-checkbox",21,0),t.nrm(47,"taiga-markdown",17),t.nI1(48,"translate"),t.k0s()()(),t.j41(49,"mat-card-actions",22)(50,"taiga-loading-button",23),t.nI1(51,"translate"),t.bIt("clicked",function(){c.eBV(e);const o=t.XpG();return c.Njj(o.putWebshopItem())}),t.k0s()()()}if(2&n){const e=t.sdS(46),i=t.XpG();t.Y8G("id",t.mNQ(null==i.webshopItem?null:i.webshopItem.id)),t.R7$(2),t.AVh("is-mobile",i.mediaQueryService.isMobile())("is-desktop",!i.mediaQueryService.isMobile()),t.R7$(),t.AVh("image-container-mobile",i.mediaQueryService.isMobile())("image-container",!i.mediaQueryService.isMobile()),t.R7$(2),t.vxM(i.imgSrc&&!i.loadingImg?5:-1),t.R7$(),t.vxM(i.imgSrc||i.loadingImg?-1:6),t.R7$(),t.vxM(i.loadingImg?7:-1),t.R7$(),t.AVh("info-container-mobile",i.mediaQueryService.isMobile())("info-container",!i.mediaQueryService.isMobile()),t.R7$(2),t.AVh("header-desktop",!i.mediaQueryService.isMobile()),t.R7$(4),t.JRh(null==i.webshopItem?null:i.webshopItem.displayName),t.R7$(),t.vxM((null==i.spaces?null:i.spaces.length)>0?15:-1),t.R7$(),t.vxM(i.freeText?16:-1),t.R7$(4),t.SpI("",t.bMT(21,37,"ONEOFFCOST"),":"),t.R7$(3),t.Lme("",i.priceOnetTime," ",t.bMT(24,39,"KR")),t.R7$(4),t.SpI("",t.bMT(28,41,"TOTALINCREASEDRENT"),":"),t.R7$(3),t.Lme("",i.priceRecurring," ",t.bMT(31,43,"SEKPERMONTH")),t.R7$(4),t.Y8G("markdown",t.VkB("",t.bMT(35,45,"PRELIMINARYTOTALRENT"),":")),t.R7$(3),t.Lme(" ",i.priceRecurring+i.contractPrice," ",t.bMT(38,47,"SEKPERMONTH")," "),t.R7$(6),t.Y8G("markdown",t.bMT(44,49,"WEBSHOPTERMS")),t.R7$(4),t.Y8G("markdown",t.bMT(48,51,"WEBSHOPACCEPTTERMS")),t.R7$(3),t.Y8G("disabled",!(null!=e&&e.checked)||i.disableButton)("spin",i.disableButton)("text",t.bMT(51,53,"CONFIRMORDER"))}}let gt=(()=>{class n{constructor(e,i,o){this.mediaQueryService=e,this.webshopService=i,this.router=o}ngOnInit(){if(this.webshopItem.attachments?.length>0){const e=this.webshopItem.attachments.find(i=>i.contentType.includes("image"));
1e&&(this.loadingImg=!0,this.getWebshopItemAttachmentsItem(e.id))}this.spaces=this.webshopItem.spaces?.filter(e=>e.selected)}addClass(e){e.currentTarget.classList.add("mat-elevation-z2")}removeClass(e){e.currentTarget.classList.remove("mat-elevation-z2")}getWebshopItemAttachmentsItem(e){this.webshopService.getWebshopItemAttachmentsItem(e).subscribe(i=>{this.blobToBase64(i).pipe((0,R.j)(()=>{this.loadingImg=!1})).subscribe(o=>{this.imgSrc=o})})}blobToBase64(e){if("function"!=typeof FileReader)return w.w;const i=new FileReader,o=new y.c(a=>{i.onloadend=()=>{a.next(i.result),a.complete()}});return i.readAsDataURL(e),o}putWebshopItem(){let e=[];if(this.spaces)for(let i of this.spaces)e.push(i.id);this.disableButton=!0,this.webshopService.putWebshopItem(this.webshopItem.id,this.contractsItem.primaryObject.id,e,this.freeText).pipe((0,B.W)(i=>{throw this.disableButton=!1,i})).subscribe(()=>{this.router.navigateByUrl(`mypages/contract/${this.contractId}/webshop/${this.webshopItem.id}/ordercomplete`)})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(C.M),t.rXU(f),t.rXU(h.Ix))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-webshop-checkout"]],inputs:{webshopItem:"webshopItem",contractId:"contractId",priceOnetTime:"priceOnetTime",priceRecurring:"priceRecurring",freeText:"freeText",contractPrice:"contractPrice",contractsItem:"contractsItem"},standalone:!1,decls:1,vars:1,consts:[["consentCheckboxChecked",""],[3,"id"],[3,"mouseenter","mouseleave","id"],[1,"flex"],[2,"padding","10px"],[1,"image-content"],[1,"image",3,"alt","src"],[1,"no-image"],[1,"loading-image"],[1,"info-content"],[1,"header"],[1,""],[1,"spaces"],[1,"free-text"],[1,"price-container"],[1,"mat-body-strong"],[1,"amount"],[3,"markdown"],[1,"amount",2,"margin-top","-12px"],[1,"divider"],[1,"consent"],["data-mom-test","MyPages_Webshop_Checkout_ConsentCheckbox",1,"consent-checkbox"],["align","end"],["color","primary","mat-raised-button","","matStepperNext","","data-mom-test","MyPages_Webshop_Checkout_ConfirmOrder",1,"step-button",3,"clicked","disabled","spin","text"],["color","primary"],[3,"diameter"]],template:function(i,o){1&i&&t.nVh(0,ht,52,55,"mat-card",1),2&i&&t.vxM(o.webshopItem.id?0:-1)},dependencies:[it.q,x.An,p.RN,p.YY,p.m2,u.nJ,ot.So,at.A,S.t,M.N,b.D9],styles:[".flex[_ngcontent-%COMP%]{display:flex}.is-mobile[_ngcontent-%COMP%]{flex-direction:column}.is-desktop[_ngcontent-%COMP%]{flex-direction:row}.image-container[_ngcontent-%COMP%]{width:37%}.info-container[_ngcontent-%COMP%]{width:63%}.image[_ngcontent-%COMP%]{width:100%;height:206px;object-fit:cover;display:flex;border-radius:2px}.object-card[_ngcontent-%COMP%]{cursor:pointer}.info-content[_ngcontent-%COMP%], .consent[_ngcontent-%COMP%]{margin:5px 15px 10px}.mat-h2[_ngcontent-%COMP%]{margin-bottom:0;color:var(--palette-primary-500)}.text[_ngcontent-%COMP%]{margin-top:15px}.address[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap-reverse}.details[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;text-align:center;flex-wrap:wrap}.details[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{font-size:1.125rem}.details[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical}.icon[_ngcontent-%COMP%]{display:flex;justify-content:center}.broken-image-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:120px;min-height:120px;font-size:6.25rem;border:solid;border-radius:50%;margin-bottom:8px}.divider[_ngcontent-%COMP%]{margin:15px}.application-open-to-container[_ngcontent-%COMP%]{margin-bottom:5px}.pill-badge[_ngcontent-%COMP%]{font-weight:400;align-self:center;font-size:.75rem;margin-left:auto}.no-border-bottom-radius[_nghost-%COMP%] mat-card[_ngcontent-%COMP%], .no-border-bottom-radius [_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}.no-border-top-radius[_nghost-%COMP%] mat-card[_ngcontent-%COMP%], .no-border-top-radius [_nghost-%COMP%] mat-card[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.location[_ngcontent-%COMP%]{margin-bottom:16px}.no-image[_ngcontent-%COMP%], .loading-image[_ngcontent-%COMP%]{height:206px;display:flex;justify-content:center;align-items:center;background-color:rgb(var(--palette-background-background));border-radius:2px}.no-image[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2.5rem;width:40px;height:40px}mat-card[_ngcontent-%COMP%]{margin:10px 0}.price-container[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}.price-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-bottom:16px}
1.amount[_ngcontent-%COMP%]{font-size:1rem}.spaces[_ngcontent-%COMP%], .free-text[_ngcontent-%COMP%]{margin-bottom:16px}.consent-checkbox[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px}"]})}}return n})();const bt=n=>({invalidChars:n});function ut(n,s){if(1&n&&t.nrm(0,"taiga-medium-header",2),2&n){const e=t.XpG(2);t.Y8G("text",null==e.webshop.items[0]?null:e.webshop.items[0].displayName)("subText",null==e.contractsItem||null==e.contractsItem.primaryObject?null:e.contractsItem.primaryObject.location.address.address)}}function _t(n,s){1&n&&(t.nrm(0,"taiga-medium-header",2),t.nI1(1,"translate"),t.nI1(2,"translate")),2&n&&t.Y8G("text",t.bMT(1,2,"WEBSHOPCHECKOUT"))("subText",t.bMT(2,4,"WEBSHOPCHECKOUTHELP"))}function Ct(n,s){if(1&n&&t.nrm(0,"taiga-image-carousel",7),2&n){const e=t.XpG(3);t.Y8G("images",e.images)}}function ft(n,s){1&n&&(t.j41(0,"div",8),t.nrm(1,"taiga-spinner",23),t.k0s()),2&n&&(t.R7$(),t.Y8G("diameter",36))}function xt(n,s){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.JRh(e.displayName)}}function Mt(n,s){1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"PDFDOCUMENT")))}function vt(n,s){if(1&n){const e=t.RV6();t.j41(0,"div",24)(1,"button",25),t.nI1(2,"translate"),t.bIt("click",function(){c.eBV(e);const o=t.XpG().$implicit,a=t.XpG(4);return c.Njj(a.downloadFile(o))}),t.j41(3,"mat-icon"),t.EFF(4,"picture_as_pdf"),t.k0s(),t.nVh(5,xt,2,1,"span"),t.nVh(6,Mt,3,3,"span"),t.k0s()()}if(2&n){const e=t.XpG().$implicit;
1t.R7$(),t.BMQ("aria-label",t.bMT(2,3,"PDFDOCUMENT")),t.R7$(4),t.vxM(e.displayName?5:-1),t.R7$(),t.vxM(e.displayName?-1:6)}}function It(n,s){1&n&&t.nVh(0,vt,7,5,"div",24),2&n&&t.vxM("application/pdf"===s.$implicit.contentType?0:-1)}function Ot(n,s){if(1&n&&(t.j41(0,"div",9),t.Z7z(1,It,1,1,null,null,t.fX1),t.k0s()),2&n){const e=t.XpG(3);t.R7$(),t.Dyx(e.files)}}function Pt(n,s){if(1&n&&(t.j41(0,"div",11)(1,"mat-label",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"taiga-markdown",10),t.k0s()),2&n){const e=t.XpG(3);t.R7$(2),t.JRh(t.bMT(3,2,"WEBSHOPORDERPROCESSDESCRIPTION")),t.R7$(2),t.Y8G("markdown",e.webshop.items[0].helptext)}}function Tt(n,s){if(1&n&&(t.j41(0,"div",12)(1,"a",26),t.EFF(2),t.nI1(3,"translate"),t.j41(4,"mat-icon"),t.EFF(5,"open_in_new"),t.k0s()()()),2&n){const e=t.XpG(3);t.R7$(),t.Y8G("href",e.externalUrl,t.B4B),t.R7$(),t.SpI(" ",t.bMT(3,2,"WEBSHOPMOREINFOLINK")," ")}}function Rt(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-chip-option",30),t.bIt("selectionChange",function(o){const a=c.eBV(e).$implicit;return t.XpG(4).calculateSpacesPrice(o),c.Njj(a.selected=o.selected)}),t.EFF(1),t.k0s()}if(2&n){const e=s.$implicit,i=t.XpG(4);t.Y8G("value",e)("selected",e.selected)("selectable",!e.selected||i.isEnoughSelected()),t.R7$(),t.SpI(" ",e.displayName," ")}}function wt(n,s){if(1&n&&(t.j41(0,"mat-hint",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(4);t.AVh("space-error",e.showSpaceError),t.R7$(),t.JRh(t.bMT(2,3,"ATLEASTONEISREQUIRED"))}}function yt(n,s){if(1&n&&(t.j41(0,"div",13)(1,"mat-label",15),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"mat-chip-listbox",27),t.nI1(5,"translate"),t.Z7z(6,Rt,2,4,"mat-chip-option",28,t.fX1),t.k0s(),t.DNE(8,wt,3,5,"mat-hint",29),t.k0s()),2&n){const e=t.XpG(3);t.R7$(2),t.SpI("",t.bMT(3,4,"ORDERFOR"),":"),t.R7$(2),t.Y8G("selectable",!0),t.BMQ("aria-label",t.bMT(5,6,"ORDERFOR")),t.R7$(2),t.Dyx(e.webshop.items[0].spaces),t.R7$(2),t.Y8G("ngIf",(null==e.webshop.items[0]||null==e.webshop.items[0].spaces?null:e.webshop.items[0].spaces.length)>1)}}
1function kt(n,s){if(1&n&&t.EFF(0),2&n){const e=t.XpG(3);t.SpI(" ",e.totalSpacesPriceOneTime," ")}}function St(n,s){if(1&n&&t.EFF(0),2&n){const e=t.XpG(3);t.SpI(" ",e.totalBasePriceOneTime," ")}}function Et(n,s){if(1&n&&t.EFF(0),2&n){const e=t.XpG(3);t.SpI(" ",e.totalSpacesPriceRecurring," ")}}function Ft(n,s){if(1&n&&t.EFF(0),2&n){const e=t.XpG(3);t.SpI(" ",e.totalBasePriceRecurring," ")}}function $t(n,s){if(1&n&&t.EFF(0),2&n){const e=t.XpG(3);t.SpI(" ",e.currentContractPrice+e.totalSpacesPriceRecurring," ")}}function Wt(n,s){if(1&n&&t.EFF(0),2&n){const e=t.XpG(3);t.SpI(" ",e.currentContractPrice+e.totalBasePriceRecurring," ")}}function jt(n,s){if(1&n){const e=t.RV6();t.j41(0,"mat-card",3)(1,"div",5)(2,"div",6),t.nVh(3,Ct,1,1,"taiga-image-carousel",7),t.nVh(4,ft,2,1,"div",8),t.k0s()(),t.j41(5,"mat-card-content"),t.nVh(6,Ot,3,0,"div",9),t.nrm(7,"taiga-markdown",10),t.nVh(8,Pt,5,4,"div",11),t.nVh(9,Tt,6,4,"div",12),t.nVh(10,yt,9,8,"div",13),t.j41(11,"div",14)(12,"div")(13,"mat-label",15),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"div",16),t.nVh(17,kt,1,1)(18,St,1,1),t.EFF(19),t.nI1(20,"translate"),t.k0s()(),t.j41(21,"div")(22,"mat-label",15),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"div",16),t.nVh(26,Et,1,1)(27,Ft,1,1),t.EFF(28),t.nI1(29,"translate"),t.k0s()(),t.j41(30,"div")(31,"mat-label",15),t.nrm(32,"taiga-markdown",10),t.nI1(33,"translate"),t.k0s(),t.j41(34,"div",17),t.nVh(35,$t,1,1)(36,Wt,1,1),t.EFF(37),t.nI1(38,"translate"),t.k0s()()(),t.j41(39,"div",18)(40,"mat-form-field",19)(41,"mat-label"),t.EFF(42),t.nI1(43,"translate"),t.k0s(),t.j41(44,"textarea",20,0),t.mxI("ngModelChange",function(o){c.eBV(e);const a=t.XpG(2);return t.DH7(a.freeText,o)||(a.freeText=o),c.Njj(o)}),t.k0s(),t.j41(46,"mat-error"),t.EFF(47),t.nI1(48,"translate"),t.k0s()()()(),t.j41(49,"mat-card-actions",21)(50,"button",22),t.bIt("click",function(){c.eBV(e);const o=t.XpG(2);return c.Njj(o.showCheckOut())}),t.EFF(51),t.nI1(52,"translate"),t.k0s()()()}if(2&n){const e=t.sdS(45),i=t.XpG(2);t.R7$(3),t.vxM(i.loadingImages?-1:3),t.R7$(),t.vxM(i.loadingImages?4:-1),t.R7$(2),t.vxM((null==i.files?null:i.files.length)>0?6:-1),t.R7$(),t.Y8G("markdown",i.webshop.items[0].description),t.R7$(),t.vxM(i.webshop.items[0].helptext?8:-1),t.R7$(),t.vxM(i.externalUrl?9:-1),t.R7$(),t.vxM((null==i.webshop.items[0]||null==i.webshop.items[0].spaces?null:i.webshop.items[0].spaces.length)>0?10:-1),t.R7$(4),t.SpI("",t.bMT(15,21,"ONEOFFCOST"),":"),t.R7$(3),t.vxM(i.useSpacesPrices?17:18),t.R7$(2),t.SpI(" ",t.bMT(20,23,"KR")," "),t.R7$(4),t.SpI("",t.bMT(24,25,"TOTALINCREASEDRENT"),":"),t.R7$(3),t.vxM(i.useSpacesPrices?26:27),t.R7$(2),t.SpI(" ",t.bMT(29,27,"SEKPERMONTH")," "),t.R7$(4),t.Y8G("markdown",t.VkB("",t.bMT(33,29,"PRELIMINARYTOTALRENT"),":")),t.R7$(3),t.vxM(i.useSpacesPrices?35:36),t.R7$(2),t.SpI(" ",t.bMT(38,31,"SEKPERMONTH")," "),t.R7$(5),t.JRh(t.bMT(43,33,"WEBSHOPFREETEXTFIELD")),t.R7$(2),t.R50("ngModel",i.freeText),t.R7$(3),t.JRh(t.i5U(48,35,"INVALIDCHARACTERS",t.eq3(40,bt,null==e.errors||null==e.errors.allowedCharacters?null:e.errors.allowedCharacters.invalidChars))),t.R7$(4),t.SpI(" ",t.bMT(52,38,"TOORDER")," ")}}function Bt(n,s){if(1&n&&t.nrm(0,"taiga-webshop-checkout",4),2&n){const e=t.XpG(2);t.Y8G("webshopItem",e.webshop.items[0])("contractId",e.contractId)("priceOnetTime",e.useSpacesPrices?e.totalSpacesPriceOneTime:e.totalBasePriceOneTime)("priceRecurring",e.useSpacesPrices?e.totalSpacesPriceRecurring:e.totalBasePriceRecurring)("freeText",e.freeText)("contractPrice",e.currentContractPrice)("contractsItem",e.contractsItem)}}function Gt(n,s){if(1&n&&(t.j41(0,"div"),t.nVh(1,ut,1,2,"taiga-medium-header",2),t.nVh(2,_t,3,6,"taiga-medium-header",2),t.nrm(3,"taiga-page-cards"),t.nVh(4,jt,53,42,"mat-card",3),t.nVh(5,Bt,1,7,"taiga-webshop-checkout",4),t.k0s()),2&n){const e=t.XpG();t.AVh("is-mobile",e.mediaQueryService.isMobile())("is-desktop",!e.mediaQueryService.isMobile()),t.R7$(),t.vxM(e.checkout?-1:1),t.R7$(),t.vxM(e.checkout?2:-1),t.R7$(2),t.vxM(!e.checkout&&e.webshop.items[0]?4:-1),t.R7$(),t.vxM(e.checkout&&e.webshop?5:-1)}}let G=(()=>{class n{constructor(e,i,o,a,l,m,_){this.mediaQueryService=e,this.webshopService=i,this.route=o,this.contractService=a,this.router=l,this.fileService=m,this.changeDetectorRef=_,this.images=[],this.totalBasePriceOneTime=0,this.totalBasePriceRecurring=0,this.totalSpacesPriceOneTime=0,this.totalSpacesPriceRecurring=0,this.files=[],this.loadingImages=!0,this.showSpaceError=!1,this.contractId=this.route.
1snapshot.params.id,this.webshopId=this.route.snapshot.params.webshopId,this.route.queryParams.subscribe(d=>{d.checkout&&!this.webshop?this.router.navigate([],{queryParams:{},replaceUrl:!0}):d.checkout||(this.checkout=!1)}),(0,E.p)([this.webshopService.getWebshopById(this.contractId,this.webshopId),this.contractService.getContract(this.contractId)]).subscribe(d=>{if(d[0]&&d[0].items?.length>0){if(this.webshop=d[0],this.externalUrl=!this.webshop.items[0]?.externalUrl||this.webshop.items[0]?.externalUrl?.includes("http")?this.webshop.items[0].externalUrl:`https://${this.webshop.items[0].externalUrl}`,this.createBase64Images(),this.files=this.webshop.items[0]?.attachments?.filter(g=>!g.contentType.includes("image")),this.webshop.items[0]?.spaces?.length>0){this.useSpacesPrices=!0;const g=1===this.webshop.items[0].spaces.length;this.webshop.items[0].spaces.forEach(I=>{I.selected=g,g&&I.pricing&&(this.totalSpacesPriceOneTime+=I.pricing.priceOneTime??0,this.totalSpacesPriceRecurring+=I.pricing.priceRecurring??0)})}else if(this.webshop.items[0].pricing?.length>0)for(let g of this.webshop.items[0].pricing)this.totalBasePriceOneTime+=g.priceOneTime??0,this.totalBasePriceRecurring+=g.priceRecurring??0;d[1]&&(this.currentContractPrice=+d[1].pricing.price?.toFixed(),this.contractsItem=d[1])}})}createBase64Images(){if(this.webshop.items[0]?.attachments){let e=[],i=[];for(const o of this.webshop.items[0].attachments)o.id&&o.contentType.includes("image")&&(e.push(this.webshopService.getWebshopItemAttachmentsItem(o.id)),i.push(o.displayName));e.length>0?(0,E.p)(e).pipe((0,R.j)(()=>{this.loadingImages=!1})).subscribe(o=>{let a=[];for(const l of o)a.push(this.blobToBase64(l));a.length>0&&(0,E.p)(a).subscribe(l=>{let m=[];for(let _=0;_<l.length;_++)m.push({src:l[_],alt:i[_]});this.images=m})}):this.loadingImages=!1}else this.loadingImages=!1}blobToBase64(e){if("function"!=typeof FileReader)return w.w;const i=new FileReader,o=new y.c(a=>{i.onloadend=()=>{a.next(i.result),a.complete()}});return i.readAsDataURL(e),o}calculateSpacesPrice(e){let i=e.source?.value;e.selected&&(this.showSpaceError=!1),i.pricing&&e.selected!==e.source.value.selected&&(e.selected?(this.totalSpacesPriceOneTime+=i.pricing.priceOneTime??0,this.totalSpacesPriceRecurring+=i.pricing.priceRecurring??0):(this.totalSpacesPriceOneTime-=i.pricing.priceOneTime??0,this.totalSpacesPriceRecurring-=i.pricing.priceRecurring??0)),this.changeDetectorRef.detectChanges()}showCheckOut(){const e=this.webshop?.items[0]?.spaces;e?.length>1&&!e.find(i=>i.selected)?this.showSpaceError=!0:(this.showSpaceError=!1,this.checkout=!0,this.router.navigateByUrl(`mypages/contract/${this.contractId}/webshop/${this.webshopId}?checkout=1`))}downloadFile(e){this.webshopService.getWebshopItemAttachmentsItem(e.id).subscribe(i=>{const a=e.contentType?.split("/").pop();this.fileService.saveBlobWithFilename(i,`${e.displayName??"Bilaga"}.${a}`)})}isEnoughSelected(){return this.webshop.items[0]?.spaces?.filter(e=>e.selected)?.length>1}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(C.M),t.rXU(f),t.rXU(h.nX),t.rXU(W.y),t.rXU(h.Ix),t.rXU(Z.E),t.rXU(K.gRc))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-webshop-item"]],standalone:!1,decls:1,vars:1,consts:[["freeTextModel","ngModel"],[3,"is-mobile","is-desktop"],[3,"text","subText"],[1,"webshop-card"],[3,"webshopItem","contractId","priceOnetTime","priceRecurring","freeText","contractPrice","contractsItem"],[1,"image-container"],[1,"swiper"],[3,"images"],[1,"spinner"],[1,"files-container"],[3,"markdown"],[1,"help-text-container"],[1,"link-container"],[1,"chip-list"],[1,"price-container"],[1,"mat-body-strong"],[1,"amount"],[1,"amount",2,"margin-top","-12px"],[1,"free-text-field"],["appearance","outline"],["cdkTextareaAutosize","","rows","4","matInput","","taigaAllowedCharacters","","data-mom-test","MyPages_Webshop_Checkout_Message",3,"ngModelChange","ngModel"],["align","end"],["matButton","filled","color","primary","data-mom-test","MyPages_Webshop_Checkout_SendOrder",1,"order-button",3,"click"],[3,"diameter"],[1,"download-file-button-container"],["mat-button","","color","primary",3,"click"],["target","_blank",1,"link",3,"href"],["multiple","",3,"selectable"],["data-mom-test","MyPages_Webshop_Checkout_Spaces",3,"value","selected","selectable"],["class","hint",3,"space-error",4,"ngIf"],["data-mom-test","MyPages_Webshop_Checkout_Spaces",3,"selectionChange","value","selected","selectable"],[1,"hint"]],template:function(i,o){1&i&&t.nVh(0,Gt,6,8,"div",1),2&i&&t.vxM(o.webshop?0:-1)},dependencies:[$.bT,x.An,k.$z,p.RN,p.YY,p.m2,q.fg,u.rl,u.nJ,u.MV,u.TL,tt.xb,j.uI,j.gq,F.me,F.BC,F.vS,P.o,et.H,S.t,M.N,T.K,nt.S,gt,b.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}mat-card[_ngcontent-%COMP%]{margin-top:16px}.example-header-image[_ngcontent-%COMP%]{background-image:url(https://material.angular.io/assets/img/examples/shiba1.jpg);background-size:cover}mat-card-content[_ngcontent-%COMP%]{padding:0 16px!important;margin-top:16px}.free-text-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix{padding-left:16px}.free-text-field[_ngcontent-%COMP%], .help-text-container[_ngcontent-%COMP%], .link-container[_ngcontent-%COMP%]{margin-top:16px}mat-chip-listbox[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px}
1.chip-list[_ngcontent-%COMP%]{margin-top:16px}mat-form-field[_ngcontent-%COMP%]{width:100%}.is-mobile[_ngcontent-%COMP%] .swiper[_ngcontent-%COMP%]{height:206px}.is-mobile[_ngcontent-%COMP%] .order-button[_ngcontent-%COMP%]{margin-top:8px}.is-desktop[_ngcontent-%COMP%] .swiper[_ngcontent-%COMP%]{height:613px}.link[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--palette-accent-500)}.link[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:8px}.price-container[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}.price-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-bottom:16px}.amount[_ngcontent-%COMP%]{font-size:1rem}.swiper[_ngcontent-%COMP%]{padding:16px}.files-container[_ngcontent-%COMP%]{margin-bottom:16px;margin-left:-9px}.spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%}.hint[_ngcontent-%COMP%]{font-size:.75rem}.space-error[_ngcontent-%COMP%]{color:var(--palette-warn-500);font-size:.75rem;margin-top:4px;font-weight:500}"]})}}return n})();var v=r(1336);function Xt(n,s){if(1&n&&(t.j41(0,"div"),t.nrm(1,"taiga-medium-header",1),t.nI1(2,"translate"),t.nrm(3,"taiga-page-cards"),t.j41(4,"mat-card")(5,"mat-card-content")(6,"div",2)(7,"mat-icon",3),t.EFF(8,"check_circle"),t.k0s()(),t.j41(9,"div")(10,"mat-label",4),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"div"),t.nrm(14,"taiga-markdown",5),t.nI1(15,"translate"),t.k0s()()(),t.j41(16,"mat-card-actions",6)(17,"button",7),t.EFF(18),t.nI1(19,"translate"),t.k0s()()()()),2&n){const e=t.XpG();t.AVh("is-mobile",e.mediaQueryService.isMobile())("is-desktop",!e.mediaQueryService.isMobile()),t.R7$(),t.Y8G("text",t.bMT(2,8,"ORDERCOMPLETE")),t.R7$(10),t.SpI("",t.bMT(12,10,"THISHAPPENNOW"),":"),t.R7$(3),t.Y8G("markdown",t.bMT(15,12,"WEBSHOPORDERCOMPLETEHELP")),t.R7$(4),t.SpI(" ",t.bMT(19,14,"TRACKORDER")," ")}}const Nt=[{path:"",component:J,canActivate:[v.q],title:"WEBSHOP"},{path:":webshopId",component:G,canActivate:[v.q],title:"WEBSHOP"},{path:":webshopId/checkout",component:G,canActivate:[v.q],title:"WEBSHOP"},{path:":webshopId/ordercomplete",component:(()=>{class n{constructor(e,i,o,a){this.mediaQueryService=e,this.contractService=i,this.route=o,this.router=a,this.contractService.getContract(this.route.snapshot.params.id).pipe((0,B.W)(m=>{throw this.router.navigateByUrl("/"),m})).subscribe(m=>{m?this.show=!0:this.router.navigateByUrl("/")})}static{this.\u0275fac=function(i){return new(i||n)(t.rXU(C.M),t.rXU(W.y),t.rXU(h.nX),t.rXU(h.Ix))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["taiga-webshop-order-complete"]],standalone:!1,decls:1,vars:1,consts:[[3,"is-mobile","is-desktop"],[3,"text"],[1,"icon-container"],["color","primary"],[1,"mat-body-strong"],[3,"markdown"],["align","end"],["mat-raised-button","","routerLink","/errands","color","primary","data-mom-test","MyPages_Webshop_FollowOrder"]],template:function(i,o){1&i&&t.nVh(0,Xt,20,16,"div",0),2&i&&t.vxM(o.show?0:-1)},dependencies:[O.Wk,x.An,k.$z,p.RN,p.YY,p.m2,u.nJ,P.o,M.N,T.K,b.D9],styles:[".is-desktop[_ngcontent-%COMP%], .is-mobile[_ngcontent-%COMP%]{padding:16px}.icon-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:200px}.icon-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:6.25rem;min-height:100px;min-width:100px}mat-card[_ngcontent-%COMP%]{margin-top:16px}"]})}}return n})(),canActivate:[v.q],title:"WEBSHOP"}];let At=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=c.G2t({imports:[O.iI.forChild(Nt),O.iI]})}}return n})();var Ut=r(9963);let Lt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=c.G2t({imports:[$.MD,At,Ut.G]})}}return n})()}}]);
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.