1(self.webpackChunkaccount=self.webpackChunkaccount||[]).push([[697],{7697(A,u,a){"use strict";a.d(u,{OrderDetailsComponent:()=>rn});var o=a(6563),s=a(9748),r=a(5974),d=a(6264),c=a(7553),l=a(7323),g=a(53),h=a(1615),m=a(5296),b=a(4150),$=a(475),f=a(4467),t=a(6124);const v={"1_2":64,"1_3":128,20:192,8:256,"1_4":320,9:384,0:448,3:512,26:512,18:576,2:640,"1_1":704,"1_8":768,30:832,24:896,14:960,16:1024,17:1088,"1_0":1152,10:1216,21:1280,22:1664,1:1600,34:576,35:1408,36:1344,37:1536,39:1472,40:1344,41:1408,43:1728,48:1792};let j=(()=>{class n{constructor(){this.size=64,this.path=(0,f.hH)("payment/payment_icon_grid_2025_11_26.webp")}ngOnInit(){this.logoStyle={transform:`translateY(${this.getPosition()})`}}getPosition(){return this.size/64*-v[this.payMethodId]+"px"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cw-payment-logo"]],inputs:{payMethodId:"payMethodId",isError:"isError",size:"size"},decls:2,vars:8,consts:[[1,"payment-logo"],["alt","",3,"src","ngStyle"]],template:function(i,_){1&i&&(t.j41(0,"div",0),t.nrm(1,"img",1),t.k0s()),2&i&&(t.xc7("width",_.size+"px")("height",_.size+"px"),t.R7$(),t.AVh("error",_.isError),t.Y8G("src",_.path,t.B4B)("ngStyle",_.logoStyle))},dependencies:[s.B3],styles:[".payment-logo[_ngcontent-%COMP%]{width:64px;height:64px;overflow:hidden}.error[_ngcontent-%COMP%]{opacity:.5}"]})}}return n})();var D=a(701),I=a(4574),k=a(5152),y=a(6647),T=a(271),N=a(8208);const G="original_order_id",M="original_order_position_id";var w=a(1311),O=a(7826);let E=(()=>{class n{constructor(){this.projectsAndPrintsRepository=(0,o.WQX)(N.pp),this.sessionCartService=(0,o.WQX)(O.A)}addReOrder(e,i){const _=this.sessionCartService.loadDefaultCartSession(),R=_.shoppingCart.map(B=>B.id);return this.projectsAndPrintsRepository.getMultipleProjectShoppingCarts(R).pipe((0,T.T)(B=>B.find(z=>{if(z&&z.projectConfiguration.properties){const tt=z.projectConfiguration.properties.find(lt=>lt.name===G),Q=z.projectConfiguration.properties.find(lt=>lt.name===M);if(tt&&tt.value===i.originalOrderId&&Q&&Q.value===i.originalPositionId)return!0}return!1})||null),(0,y.n)(B=>B?(B.projectConfiguration.quantity++,this.projectsAndPrintsRepository.saveProjectShoppingCart(B.projectConfiguration.projectId,B).pipe((0,T.T)(()=>null))):this.createAndSaveReOrderProject(_,(0,w.A)(),i,e)))}createAndSaveReOrderProject(e,i,_,R){e.shoppingCart.push({type:b.TY.PROJECT,id:i,validUntil:Date.now()+k.no}),this.sessionCartService.persistCartSession(e);const B=this.createProjectFromReOrderInfo(_,R,i);return this.projectsAndPrintsRepository.saveProjectShoppingCart(i,B).pipe((0,T.T)(()=>null))}createProjectFromReOrderInfo(e,i,_){const R=[{name:G,value:e.originalOrderId},{name:M,value:e.originalPositionId}];return e.hashCode&&e.accessCode&&R.push({name:"hash_code",value:e.hashCode},{name:"access_code",value:e.accessCode}),e.noReorder&&R.push({name:"reorder.disabled",value:"1"}),{projectConfiguration:{projectId:_,quantity:1,shippingId:0,articleIds:[i],productId:null,properties:R,shoppingCartThumbnailURLTemplate:e.thumbnailUrl,texts:{title:e.projectTitle||null,descriptions:[]},addons:e.addons.map(B=>({isDesignAddon:!1,articleIds:[B.articleId],quantity:B.quantity,removable:!1,title:null}))},printAreas:[]}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=o.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var F=a(7983);function J(n,p){1&n&&t.nrm(0,"cw-global-loading")}function Y(n,p){if(1&n&&(t.j41(0,"p",1),t.EFF(1),t.nI1(2,"quote"),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(t.bMT(2,1,e.projectTitle))}}function st(n,p){if(1&n&&(t.j41(0,"em"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.quantity)}}function et(n,p){if(1&n&&(t.j41(0,"tr")(1,"th"),t.nVh(2,st,2,1,"em"),t.EFF(3),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.k0s()()),2&n){const e=p.$implicit;t.R7$(2),t.vxM(1!==e.quantity?2:-1),t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.JRh(t.bMT(6,3,e.price))}}function at(n,p){if(1&n&&(t.j41(0,"tr",3)(1,"th"),t.EFF(2),t.nI1(3,"t"),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"order.position.item.price")),t.R7$(3),t.JRh(t.bMT(6,4,e.priceWithAddons))}}function W(n,p){1&n&&(t.j41(0,"th"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"order.position.item.quantity.corrected")))}function H(n,p){1&n&&(t.j41(0,"th"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"order.position.item.quantity")))}function nt(n,p){if(1&n&&(t.j41(0,"div",6)(1,"p",8),t.EFF(2),t.nI1(3,"t"),t.k0s(),t.nrm(4,"cw-address-summary",9),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(2),t.JRh(t.bMT(3,2,"directShippingAddress.address.title")),t.R7$(2),t.Y8G("address",e.directShippingAddress)}}function K(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-button",12),t.nI1(1,"t"),t.nI1(2,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(2).$implicit,R=t.XpG(2);return o.Njj(R.reOrderPosition(_))}),t.k0s()}if(2&n){const e=t.XpG(2).$implicit,i=t.XpG(2);t.Y8G("dataItName","re-order-button")("text",t.bMT(1,5,"order.details.re.order.button"))("buttonType","primary"),t.BMQ("aria-description",e.title)("data-mod-log",i.createReOrderTrackingAttribute(t.bMT(2,7,"order.details.re.order.button")))}}function ct(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-button",13),t.nI1(1,"t"),t.nI1(2,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(2).$implicit,R=t.XpG(2);return o.Njj(R.download(_,"media"))}),t.k0s()}if(2&n){const e=t.XpG(2).$implicit,i=t.XpG(2);t.Y8G("dataItName","download-media-button")("text",t.bMT(1,6,"order.details.download.media.button"))("buttonType","primary")("disabled",i.downloadInProgress),t.BMQ("aria-description",e.title)("data-mod-log",i.createReOrderTrackingAttribute(t.bMT(2,8,"order.details.download.media.button")))}}function Z(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-button",13),t.nI1(1,"t"),t.nI1(2,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(2).$implicit,R=t.XpG(2);return o.Njj(R.download(_,"coupon"))}),t.k0s()}if(2&n){const e=t.XpG(2).$implicit,i=t.XpG(2);t.Y8G("dataItName","download-coupon-button")("text",t.bMT(1,6,"order.details.download.coupon.button"))("buttonType","primary")("disabled",i.downloadInProgress),t.BMQ("aria-description",e.title)("data-mod-log",i.createReOrderTrackingAttribute(t.bMT(2,8,"order.details.download.coupon.button")))}}function ot(n,p){if(1&n&&(t.j41(0,"div",7),t.nVh(1,K,3,9,"cw-button",10),t.nVh(2,ct,3,10,"cw-button",11),t.nVh(3,Z,3,10,"cw-button",11),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.vxM(e.reorderable?1:-1),t.R7$(),t.vxM(e.mediaAvailable?2:-1),t.R7$(),t.vxM(e.couponAvailable?3:-1)}}function L(n,p){if(1&n&&(t.j41(0,"article",0)(1,"h3"),t.EFF(2),t.k0s(),t.nVh(3,Y,3,3,"p",1),t.nrm(4,"br"),t.j41(5,"div",2)(6,"table")(7,"tbody")(8,"tr")(9,"th"),t.EFF(10),t.nI1(11,"t"),t.k0s(),t.j41(12,"td"),t.EFF(13),t.nI1(14,"cwcurrency"),t.k0s()(),t.Z7z(15,et,7,5,"tr",null,t.fX1),t.k0s(),t.j41(17,"tfoot"),t.nVh(18,at,7,6,"tr",3),t.j41(19,"tr",4),t.nVh(20,W,3,3,"th")(21,H,3,3,"th"),t.j41(22,"td")(23,"em"),t.EFF(24),t.k0s()()(),t.j41(25,"tr",5)(26,"th"),t.EFF(27),t.nI1(28,"t"),t.k0s(),t.j41(29,"td"),t.EFF(30),t.nI1(31,"cwcurrency"),t.k0s()()()(),t.nVh(32,nt,5,4,"div",6),t.nVh(33,ot,4,3,"div",7),t.k0s()()),2&n){const e=p.$implicit;t.R7$(2),t.SpI("",e.title," "),t.R7$(),t.vxM(e.projectTitle?3:-1),t.R7$(),t.BMQ("aria-hidden",!0),t.R7$(6),t.JRh(t.bMT(11,12,"order.position.item.base.price")),t.R7$(3),t.JRh(t.bMT(14,14,e.price)),t.R7$(2),t.Dyx(e.addons),t.R7$(3),t.vxM(1!==e.quantity&&e.addons.length>0?18:-1),t.R7$(2),t.vxM(e.corrected?20:21),t.R7$(4),t.JRh(e.quantity),t.R7$(3),t.JRh(t.bMT(28,16,"order.position.item.total.price")),t.R7$(3),t.JRh(t.bMT(31,18,e.totalPrice)),t.R7$(2),t.vxM(e.directShippingAddress?32:-1),t.R7$(),t.vxM(e.reorderable||e.mediaAvailable||e.couponAvailable?33:-1)}}function X(n,p){if(1&n&&t.Z7z(0,L,34,20,"article",0,t.fX1),2&n){const e=t.XpG();t.Dyx(e.order.positions)}}function U(n,p){if(1&n&&(t.j41(0,"th",18),t.EFF(1),t.nI1(2,"quote"),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(t.bMT(2,1,e.projectTitle))}}function q(n,p){if(1&n&&(t.j41(0,"table")(1,"tbody")(2,"tr")(3,"th",14),t.EFF(4),t.k0s(),t.j41(5,"td",15)(6,"em",16),t.EFF(7),t.k0s()(),t.j41(8,"td",17),t.EFF(9),t.nI1(10,"cwcurrency"),t.k0s()(),t.j41(11,"tr"),t.nVh(12,U,3,3,"th",18),t.k0s()()()),2&n){const e=p.$implicit;t.R7$(4),t.JRh(e.title),t.R7$(3),t.JRh(e.quantity),t.R7$(2),t.JRh(t.bMT(10,4,e.price)),t.R7$(3),t.vxM(e.projectTitle?12:-1)}}function gt(n,p){if(1&n&&(t.j41(0,"article",0),t.Z7z(1,q,13,6,"table",null,t.fX1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Dyx(e.order.positions)}}let pt=(()=>{class n{constructor(){this.reOrderService=(0,o.WQX)(E),this.redirectService=(0,o.WQX)(h.r),this.configService=(0,o.WQX)(D.H),this.trackingService=(0,o.WQX)(F.a),this.httpService=(0,o.WQX)(m.kl),this.route=(0,o.WQX)(r.nX)}download(e,i){this.downloadInProgress=!0,this.httpService.getBlob(m.s0.CAPI_SECURED,`/order-info/${i}/${this.masterOrder.internalOrderId}/${e.posId}`).subscribe({next:_=>{const R=_.body,B=_.headers.get("Content-Disposition"),z=this.getFilename(B)??"download."+("media"===i?"jpg":"pdf"),tt=URL.createObjectURL(R),Q=document.createElement("a");Q.href=tt,Q.download=z,Q.click(),this.downloadInProgress=!1,setTimeout(()=>{URL.revokeObjectURL(tt),Q.remove()},100)},error:()=>{this.downloadInProgress=!1}})}getFilename(e){if(!e)return null;const i=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;]+)/i);if(i?.[1])return decodeURIComponent(i[1].trim().replace(/^"(.*)"$/,"$1"));const _=e.match(/filename\s*=\s*"([^"]+)"|filename\s*=\s*([^;]+)/i);return _?(_[1]??_[2]).trim():null}reOrderPosition(e){const i={originalOrderId:this.masterOrder.internalOrderId,thumbnailUrl:"data:image/jpg;base64,"+e.thumbnail,addons:e.addons.filter(_=>!_.removable&&_.reorderable).map(_=>({quantity:_.quantity,articleId:_.articleId})),originalPositionId:e.posId.toString(),projectTitle:e.projectTitle};this.reOrderService.addReOrder(e.articleId,i).subscribe(()=>{this.redirectService.redirectTo(this.configService.getAppConfig().checkoutLinkNoReference)})}
1createReOrderTrackingAttribute(e){const i=this.route.snapshot.routeConfig?.path;return this.trackingService.createTrackingAttribute(e,this.configService.getAppConfig().checkoutLinkNoReference,i)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cw-order-position"]],inputs:{order:"order",masterOrder:"masterOrder"},decls:3,vars:2,consts:[[1,"order-position"],[1,"long-word"],[1,"table-and-re-order"],[1,"order-position-item-price"],[1,"order-position-quantity"],[1,"order-position-sum"],[1,"direct-shipping-address"],[1,"button-wrap"],[1,"bold"],[3,"address"],[3,"dataItName","text","buttonType"],[3,"dataItName","text","buttonType","disabled"],[3,"click","dataItName","text","buttonType"],[3,"click","dataItName","text","buttonType","disabled"],[1,"archived-table-header"],[1,"archived-quantity"],[1,"archived"],[1,"archived-sum"],[1,"archived-title"]],template:function(i,_){1&i&&(t.nVh(0,J,1,0,"cw-global-loading"),t.nVh(1,X,2,0)(2,gt,3,0,"article",0)),2&i&&(t.vxM(_.downloadInProgress?0:-1),t.R7$(),t.vxM(_.masterOrder.archived?2:1))},dependencies:[I.i,l.Qp,l.h6,g.i,g.cD,g.Ls],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] article[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem;background-color:#f7f4f2}[_nghost-%COMP%] article[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;-webkit-user-select:none;user-select:none;border-collapse:collapse}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6rem 0}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] em[_ngcontent-%COMP%], [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] em.archived[_ngcontent-%COMP%], [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] em.archived[_ngcontent-%COMP%]{margin:0 1rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after, [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after{content:"\\d7"}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.order-position-item-price[_ngcontent-%COMP%]{border-top:1px solid #4c4c4c}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.order-position-quantity[_ngcontent-%COMP%] th[_ngcontent-%COMP%], [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.order-position-quantity[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:1rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.order-position-sum[_ngcontent-%COMP%]{border-top:1px solid #4c4c4c}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;font-weight:400;padding-right:1.5rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .archived-table-header[_ngcontent-%COMP%]{width:75%}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .archived-quantity[_ngcontent-%COMP%]{width:10%}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .archived-sum[_ngcontent-%COMP%]{width:15%}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .archived-title[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:right;vertical-align:text-top;white-space:nowrap}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{background-color:#fff;padding:0 .6rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] .table-and-re-order[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] article[_ngcontent-%COMP%] .table-and-re-order[_ngcontent-%COMP%] .button-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:.5rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] .table-and-re-order[_ngcontent-%COMP%] .direct-shipping-address[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:#fff;border-radius:4px;padding:1rem 1.5rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] .table-and-re-order[_ngcontent-%COMP%] .direct-shipping-address[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-bottom:.5rem;font-size:16px}[_nghost-%COMP%] article[_ngcontent-%COMP%] .long-word[_ngcontent-%COMP%]{word-break:break-word}']})}}return n})();function ht(n,p){if(1&n&&(t.rj2(0,"tr")(1,"td"),t.EFF(2),t.nI1(3,"t"),t.eux(),t.rj2(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.eux()()),2&n){const e=t.XpG();t.R7$(2),t.Lme("",t.bMT(3,3,"total.sum.label.pay.method.fee")," ",e.masterOrder.payMethodName),t.R7$(3),t.JRh(t.bMT(6,5,e.masterOrder.payMethodFee))}}function mt(n,p){if(1&n&&(t.rj2(0,"tr")(1,"td"),t.EFF(2),t.nI1(3,"t"),t.eux(),t.rj2(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.eux()()),2&n){const e=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"total.sum.label.express.fee")),t.R7$(3),t.JRh(t.bMT(6,4,e.masterOrder.expressFee))}}function ft(n,p){if(1&n&&(t.rj2(0,"tr")(1,"td"),t.EFF(2),t.nI1(3,"t"),t.eux(),t.rj2(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.eux()()),2&n){const e=t.XpG();t.R7$(2),t.SpI("",t.bMT(3,2,"total.sum.label.shipment.method.fee")," "),t.R7$(3),t.JRh(t.bMT(6,4,e.masterOrder.shipmentMethodFee))}}function Ct(n,p){if(1&n&&(t.rj2(0,"tr")(1,"td"),t.EFF(2),t.nI1(3,"t"),t.eux(),t.rj2(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.eux()()),2&n){const e=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"total.sum.label.shipping.costs")),t.R7$(3),t.JRh(t.bMT(6,4,e.masterOrder.shippingCosts))}}function Mt(n,p){if(1&n&&(t.rj2(0,"tr")(1,"td"),t.EFF(2),t.nI1(3,"t"),t.eux(),t.rj2(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.eux()()),2&n){const e=p.$implicit;t.R7$(2),t.Lme("",t.bMT(3,3,"order.details.coupon")," ",e.couponCode),t.R7$(3),t.SpI("\u2013",t.bMT(6,5,e.couponSum))}}function Ot(n,p){if(1&n&&(t.rj2(0,"td"),t.EFF(1),t.nI1(2,"cwcurrency"),t.eux()),2&n){const e=t.XpG();t.R7$(),t.JRh(t.bMT(2,1,e.masterOrder.realBillSum))}}function bt(n,p){if(1&n&&(t.rj2(0,"td"),t.EFF(1),t.nI1(2,"cwcurrency"),t.eux()),2&n){const e=t.XpG();t.R7$(),t.JRh(t.bMT(2,1,e.masterOrder.billSum))}}let ut=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cw-total-sum"]],inputs:{masterOrder:"masterOrder"},decls:15,vars:8,template:function(i,_){1&i&&(t.rj2(0,"table"),t.nVh(1,ht,7,7,"tr"),t.nVh(2,mt,7,6,"tr"),t.nVh(3,ft,7,6,"tr"),t.nVh(4,Ct,7,6,"tr"),t.Z7z(5,Mt,7,7,"tr",null,t.fX1),t.rj2(7,"tfoot")(8,"tr")(9,"th"),t.EFF(10),t.nI1(11,"t"),t.Hgh(12,"br"),t.eux(),t.nVh(13,Ot,3,3,"td")(14,bt,3,3,"td"),t.eux()()()),2&i&&(t.R7$(),t.vxM(_.masterOrder.payMethodFee?1:-1),t.R7$(),t.vxM(_.masterOrder.expressFee?2:-1),t.R7$(),t.vxM(_.masterOrder.shipmentMethodFee?3:-1),t.R7$(),t.vxM(_.masterOrder.shippingCosts?4:-1),t.R7$(),t.Dyx(_.masterOrder.coupons),t.R7$(5),t.JRh(t.bMT(11,6,"total.sum.label.total")),t.R7$(3),t.vxM(_.masterOrder.realBillSum?13:14))},dependencies:[g.i,g.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{padding:0 1rem}[_nghost-%COMP%] table[_ngcontent-%COMP%]{width:100%;text-align:right}[_nghost-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{vertical-align:top}[_nghost-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-last-child(1){padding-right:1rem;width:20%;min-width:100px}[_nghost-%COMP%] table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400;font-size:small;color:#4c4c4c}[_nghost-%COMP%] table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-weight:700}"]})}}return n})();var V=a(5846);function Pt(n,p){1&n&&(t.nrm(0,"cw-hint",1),t.nI1(1,"t")),2&n&&t.Y8G("text",t.bMT(1,1,"order.positions.correction.lab"))}function Rt(n,p){1&n&&(t.nrm(0,"cw-hint",1),t.nI1(1,"t")),2&n&&t.Y8G("text",t.bMT(1,1,"order.positions.correction.ops"))}function wt(n,p){1&n&&(t.nrm(0,"cw-hint",1),t.nI1(1,"t")),2&n&&t.Y8G("text",t.bMT(1,1,"order.positions.correction.analog.merge"))}function Tt(n,p){1&n&&(t.nrm(0,"cw-hint",1),t.nI1(1,"t")),2&n&&t.Y8G("text",t.bMT(1,1,"order.positions.correction.other"))}function vt(n,p){if(1&n&&(t.j41(0,"div"),t.nrm(1,"cw-total-sum",3),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("masterOrder",e.masterOrder)}}let xt=(()=>{class n{hasLabOrderCorrections(){return this.subOrder.positions.some(e=>V.xf.LAB===e.corrected)}hasAnalogMergeOrderCorrections(){return this.subOrder.positions.some(e=>V.xf.AM_MERGE===e.corrected)}hasOPSOrderCorrections(){return this.subOrder.positions.some(e=>V.xf.OPS===e.corrected)}hasOtherOrderCorrections(){return this.subOrder.positions.some(e=>V.xf.SHIPPING===e.corrected)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cw-order-positions"]],inputs:{masterOrder:"masterOrder",subOrder:"subOrder"},decls:9,vars:10,consts:[[1,"bold"],[1,"correction-hint",3,"text"],[3,"order","masterOrder"],[3,"masterOrder"]],template:function(i,_){1&i&&(t.j41(0,"h2",0),t.EFF(1),t.nI1(2,"t"),t.k0s(),t.nVh(3,Pt,2,3,"cw-hint",1),t.nVh(4,Rt,2,3,"cw-hint",1),t.nVh(5,wt,2,3,"cw-hint",1),t.nVh(6,Tt,2,3,"cw-hint",1),t.nrm(7,"cw-order-position",2),t.nVh(8,vt,2,1,"div")),2&i&&(t.R7$(),t.JRh(t.bMT(2,8,"order.positions.header")),t.R7$(2),t.vxM(_.hasLabOrderCorrections()?3:-1),t.R7$(),t.vxM(_.hasOPSOrderCorrections()?4:-1),t.R7$(),t.vxM(_.hasAnalogMergeOrderCorrections()?5:-1),t.R7$(),t.vxM(_.hasOtherOrderCorrections()?6:-1),t.R7$(),t.Y8G("order",_.subOrder)("masterOrder",_.masterOrder),t.R7$(),t.vxM(1===_.masterOrder.subOrders.length?8:-1))},dependencies:[pt,ut,l.p5,g.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px}[_nghost-%COMP%] .correction-hint[_ngcontent-%COMP%]{padding-right:1rem}"]})}}return n})();var It=a(2333),it=a(9307),yt=a(9664),Ft=a(7580),kt=a(7511),Et=a(9546),rt=a(6995),dt=a(1402),St=a(1651);const $t=(n,p)=>p.position.posId;function At(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-modal",2),t.nI1(1,"t"),t.nI1(2,"t"),t.nI1(3,"t"),t.bIt("dialogClose",function(){o.eBV(e);const _=t.XpG();return o.Njj(_.closeModal())})("dialogConfirm",function(){o.eBV(e);const _=t.XpG();return o.Njj(_.submitRevocation())}),t.j41(4,"div"),t.nrm(5,"cw-markdown",3),t.k0s()()}2&n&&(t.Y8G("title",t.bMT(1,6,"revocation.title"))("cancelButtonText",t.bMT(2,8,"revocation.cancel"))("confirmButtonText",t.bMT(3,10,"revocation.confirm"))("withCancelButton",!0)("cancelButtonAsPrimary",!0),t.R7$(5),t.Y8G("translationKey","revocation.confirm.text.md"))}function jt(n,p){if(1&n&&(t.nrm(0,"cw-checkbox2",8),t.qAN()),2&n){const e=p.$implicit,i=p.$index,_=t.XpG(2);t.Y8G("formField",_.revocationForm[i].checked)("label",e.position.title),t.QXe()}}function Bt(n,p){if(1&n&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&n){const e=p.$implicit;t.R7$(),t.JRh(e.title)}}function Dt(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-modal",4),t.nI1(1,"t"),t.nI1(2,"t"),t.nI1(3,"t"),t.bIt("dialogClose",function(){o.eBV(e);const _=t.XpG();return o.Njj(_.closeModal())})("dialogConfirm",function(){o.eBV(e);const _=t.XpG();return o.Njj(_.openConfirmModal())}),t.j41(4,"div")(5,"p"),t.EFF(6),t.nI1(7,"t"),t.k0s(),t.j41(8,"table",5)(9,"tr")(10,"th"),t.EFF(11),t.nI1(12,"t"),t.k0s(),t.j41(13,"td"),t.EFF(14),t.k0s()(),t.j41(15,"tr")(16,"th"),t.EFF(17),t.nI1(18,"t"),t.k0s(),t.j41(19,"td"),t.EFF(20),t.k0s()(),t.j41(21,"tr")(22,"th"),t.EFF(23),t.nI1(24,"t"),t.k0s(),t.j41(25,"td"),t.EFF(26),t.k0s()()(),t.j41(27,"form",6)(28,"p"),t.EFF(29),t.nI1(30,"t"),t.k0s(),t.j41(31,"fieldset",7),t.Z7z(32,jt,1,2,"cw-checkbox2",8,$t),t.k0s()(),t.j41(34,"cw-hint")(35,"div")(36,"p"),t.EFF(37),t.nI1(38,"t"),t.k0s(),t.j41(39,"ul",9),t.Z7z(40,Bt,2,1,"li",null,t.fX1),t.k0s()()()()()}if(2&n){const e=t.XpG();t.Y8G("title",t.bMT(1,17,"revocation.title"))("cancelButtonText",t.bMT(2,19,"revocation.cancel"))("confirmButtonText",t.bMT(3,21,"revocation.confirm"))("confirmDisable",!e.isValidSelection())("withCancelButton",!0)("cancelButtonAsPrimary",!0),t.R7$(6),t.JRh(t.bMT(7,23,"revocation.text")),t.R7$(5),t.JRh(t.bMT(12,25,"revocation.details.name")),t.R7$(3),t.Lme("",e.getUser().firstName," ",e.getUser().lastName),t.R7$(3),t.JRh(t.bMT(18,27,"revocation.details.mail")),t.R7$(3),t.JRh(e.getUser().login),t.R7$(3),t.JRh(t.bMT(24,29,"revocation.details.orderid")),t.R7$(3),t.JRh(e.masterOrder().orderId),t.R7$(),t.Y8G("formRoot",e.revocationForm),t.R7$(2),t.JRh(t.bMT(30,31,"revocation.article.text")),t.R7$(3),t.Dyx(e.revocationFormModel()),t.R7$(5),t.JRh(t.bMT(38,33,"revocation.not.possible.hint")),t.R7$(3),t.Dyx(e.getNonRevocablePositions())}}let Nt=(()=>{class n{constructor(){this.masterOrder=Ft.hFB.required(),this.closeRevocationModal=new o.bkB,this.revocationFormModel=(0,o.vPA)([]),this.confirmModalOpen=(0,o.vPA)(!1),this.revocationSchema=(0,rt.wQ)(e=>{(0,dt.r9)(e.checked,({valueOf:i})=>i(e.disabled))}),this.revocationForm=(0,rt.Zd)(this.revocationFormModel,(0,rt.wQ)(e=>{(0,rt.Ao)(e,this.revocationSchema)})),this.isValidSelection=(0,kt.EW)(()=>this.revocationFormModel().some(e=>e.checked)),this.userSessionService=(0,o.WQX)(Et.hG),this.translationService=(0,o.WQX)(g.L0),this.calloutService=(0,o.WQX)(l._v),this.orderInfoService=(0,o.WQX)(c.K),(0,o.Q
1ZP)(()=>{const i=this.orderInfoService.getReturnablePositions(this.masterOrder()).map(_=>({checked:(0,V.Ui)(_.corrected),disabled:(0,V.Ui)(_.corrected),position:_}));this.revocationFormModel.set(i)})}closeModal(){this.closeRevocationModal.emit()}openConfirmModal(){this.confirmModalOpen.set(!0)}submitRevocation(){const i=this.revocationFormModel().filter(_=>_.checked&&!_.disabled).map(_=>({posId:_.position.posId,refPosId:"refPosId"in _.position?_.position.refPosId:null,quantity:_.position.quantity,articleId:_.position.articleId}));console.log("submit revocation",i),this.orderInfoService.revokeOrderPositions(this.masterOrder().internalOrderId,{positions:i}).subscribe({next:()=>{this.calloutService.displayCloseableMsg({text:"revocation.confirm.callout",type:"information-message"}),this.closeModal()},error:()=>{this.calloutService.displayCloseableMsg({text:"revocation.error.callout",type:"warning-message"}),this.closeModal()}})}getUser(){return this.userSessionService.getCurrentSessionInfo().user}getNonRevocablePositions(){return this.orderInfoService.getNonRevocablePositions(this.masterOrder())}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cw-revocation-selection"]],inputs:{masterOrder:[1,"masterOrder"]},outputs:{closeRevocationModal:"closeRevocationModal"},decls:2,vars:1,consts:[[1,"revocation-modal",3,"title","cancelButtonText","confirmButtonText","withCancelButton","cancelButtonAsPrimary"],[1,"revocation-modal",3,"title","cancelButtonText","confirmButtonText","confirmDisable","withCancelButton","cancelButtonAsPrimary"],[1,"revocation-modal",3,"dialogClose","dialogConfirm","title","cancelButtonText","confirmButtonText","withCancelButton","cancelButtonAsPrimary"],[3,"translationKey"],[1,"revocation-modal",3,"dialogClose","dialogConfirm","title","cancelButtonText","confirmButtonText","confirmDisable","withCancelButton","cancelButtonAsPrimary"],[1,"revocation-info"],[1,"revocation-form",3,"formRoot"],[1,"no-border"],[3,"formField","label"],[1,"no-list-styling"]],template:function(i,_){1&i&&t.nVh(0,At,6,12,"cw-modal",0)(1,Dt,42,35,"cw-modal",1),2&i&&t.vxM(_.confirmModalOpen()?0:1)},dependencies:[l.zf,l.p5,l.fd,dt.zB,dt.dn,St.N,g.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.revocation-info[_ngcontent-%COMP%]{text-align:left;margin:2rem 0}.revocation-info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-left:1rem}.revocation-form[_ngcontent-%COMP%]{margin:2rem 0}@media(max-width:511px){cw-hint[_ngcontent-%COMP%]{--cw-hint-padding: .25rem 0 .5rem}}cw-hint[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:.5rem 1rem}cw-hint[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:disc;display:list-item;font-size:.8rem}.revocation-modal[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%;max-width:768px;padding:0 2rem;color:var(--base-font-color, #4c4c4c)}@media(max-width:511px){.revocation-modal[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding:0 .5rem}}"]})}}return n})();const _t=(n,p)=>p.posId;function Gt(n,p){if(1&n&&(t.j41(0,"em"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(3).$implicit;t.R7$(),t.JRh(e.quantity)}}function Vt(n,p){if(1&n&&(t.j41(0,"tr")(1,"th"),t.nVh(2,Gt,2,1,"em"),t.EFF(3),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.k0s()()),2&n){const e=t.XpG(2).$implicit;t.R7$(2),t.vxM(1!==e.quantity?2:-1),t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.SpI("-",t.bMT(6,3,e.price))}}function Lt(n,p){if(1&n&&(t.j41(0,"em"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.quantity)}}function Xt(n,p){if(1&n&&(t.j41(0,"tr")(1,"th"),t.nVh(2,Lt,2,1,"em"),t.EFF(3),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.k0s()()),2&n){const e=p.$implicit;t.R7$(2),t.vxM(1!==e.quantity?2:-1),t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.SpI("-",t.bMT(6,3,e.price))}}function Jt(n,p){1&n&&(t.nrm(0,"cw-hint",5),t.nI1(1,"t")),2&n&&t.Y8G("text",t.bMT(1,1,"revocation.requested.hint"))}function Ut(n,p){if(1&n&&(t.j41(0,"div",1)(1,"div",2)(2,"h2"),t.EFF(3),t.nI1(4,"t"),t.k0s(),t.j41(5,"p",3),t.EFF(6),t.nI1(7,"t"),t.k0s()(),t.j41(8,"article",4)(9,"table")(10,"tbody"),t.nVh(11,Vt,7,5,"tr"),t.Z7z(12,Xt,7,5,"tr",null,_t),t.k0s()()()(),t.nVh(14,Jt,2,3,"cw-hint",5)),2&n){t.XpG();const e=t.r8f(0),i=t.r8f(1),_=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,4,"revocation.list.header")),t.R7$(3),t.JRh(t.bMT(7,6,"revocation.status.inprogress")),t.R7$(5),t.vxM(e?11:-1),t.R7$(),t.Dyx(i),t.R7$(2),t.vxM(_.showRequestedHint()?14:-1)}}function zt(n,p){if(1&n&&(t.j41(0,"em"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(3).$implicit;t.R7$(),t.JRh(e.quantity)}}function Yt(n,p){if(1&n&&(t.j41(0,"tr")(1,"th"),t.nVh(2,zt,2,1,"em"),t.EFF(3),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.k0s()()),2&n){const e=t.XpG(2).$implicit;t.R7$(2),t.vxM(1!==e.quantity?2:-1),t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.SpI("-",t.bMT(6,3,e.price))}}function Qt(n,p){if(1&n&&(t.j41(0,"em"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.quantity)}}function Ht(n,p){if(1&n&&(t.j41(0,"tr")(1,"th"),t.nVh(2,Qt,2,1,"em"),t.EFF(3),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"cwcurrency"),t.k0s()()),2&n){const e=p.$implicit;t.R7$(2),t.vxM(1!==e.quantity?2:-1),t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.SpI("-",t.bMT(6,3,e.price))}}function Wt(n,p){1&n&&(t.nrm(0,"cw-hint",5),t.nI1(1,"t")),2&n&&t.Y8G("text",t.bMT(1,1,"revocation.processed.hint"))}function Kt(n,p){if(1&n&&(t.j41(0,"div",1)(1,"div",2)(2,"h2"),t.EFF(3),t.nI1(4,"t"),t.k0s(),t.j41(5,"p",3),t.EFF(6),t.nI1(7,"t"),t.k0s()(),t.j41(8,"article")(9,"table")(10,"tbody"),t.nVh(11,Yt,7,5,"tr"),t.Z7z(12,Ht,7,5,"tr",null,_t),t.k0s()()()(),t.nVh(14,Wt,2,3,"cw-hint",5)),2&n){t.XpG();const e=t.r8f(3),i=t.r8f(4),_=t.XpG(2);t.R7$(3),t.JRh(t.bMT(4,4,"revocation.list.header")),t.R7$(3),t.JRh(t.bMT(7,6,"revocation.status.complete")),t.R7$(5),t.vxM(e?11:-1),t.R7$(),t.Dyx(i),t.R7$(2),t.vxM(_.showProcessedHint()?14:-1)}}function Zt(n,p){if(1&n&&(t.SS7(0)(1),t.nVh(2,Ut,15,8),t.SS7(3)(4),t.nVh(5,Kt,15,8)),2&n){const e=p.$implicit,i=t.XpG(2),_=t.bH3(i.isReturnRequested(e.corrected));t.R7$();const R=t.bH3(i.getReturnRequestedAddons(e));t.R7$(),t.vxM(_||R.length>0?2:-1),t.R7$();const B=t.bH3(i.isReturnProcessed(e.corrected));t.R7$();const z=t.bH3(i.getReturnProcessedAddons(e));t.R7$(),t.vxM(B||z.length>0?5:-1)}}function qt(n,p){if(1&n&&(t.j41(0,"cw-tile",0),t.Z7z(1,Zt,6,6,null,null,t.fX1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Dyx(e.subOrder.positions)}}let te=(()=>{class n{constructor(){this.translationService=(0,o.WQX)(g.L0),this.isReturnRequested=V.p2,this.isReturnProcessed=V.hq}hasReturnCorrectedArticles(){return this.subOrder.positions.some(e=>(0,V.Ui)(e.corrected)||e.addons.some(i=>(0,V.Ui)(i.corrected)))}getReturnRequestedAddons(e){return e.addons?e.addons.filter(i=>(0,V.p2)(i.corrected)):[]}getReturnProcessedAddons(e){return e.addons?e.addons.filter(i=>(0,V.hq)(i.corrected)):[]}showProcessedHint(){return this.translationService.isTranslationPresent("revocation.processed.hint")}showRequestedHint(){return this.translationService.isTranslationPresent("revocation.requested.hint")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cw-order-revocations"]],inputs:{masterOrder:"masterOrder",subOrder:"subOrder"},decls:1,vars:1,consts:[[1,"revocation-tile"],[1,"revocation-list"],[1,"revocation-header"],[1,"revocation-status"],[1,"order-position"],[3,"text"]],template:function(i,_){1&i&&t.nVh(0,qt,3,0,"cw-tile",0),2&i&&t.vxM(_.hasReturnCorrectedArticles()?0:-1)},dependencies:[l.p5,l.my,g.i,g.cD],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .revocation-tile[_ngcontent-%COMP%]{margin:.5rem}@media(max-width:511px){[_nghost-%COMP%] .revocation-tile[_ngcontent-%COMP%]{margin:.5rem 0}}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px}[_nghost-%COMP%] .revocation-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}[_nghost-%COMP%] .revocation-status[_ngcontent-%COMP%]{font-size:16px;padding:4px 8px;background:#d8ebf8;border-radius:20px;font-weight:600;text-align:center}[_nghost-%COMP%] .revocation-list[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid black;padding-top:2rem;margin-top:1rem}[_nghost-%COMP%] article[_ngcontent-%COMP%]{padding:1rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;-webkit-user-select:none;user-select:none;border-collapse:collapse}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:.6rem 0}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] em[_ngcontent-%COMP%], [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] em.archived[_ngcontent-%COMP%], [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] em.archived[_ngcontent-%COMP%]{margin:0 1rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after, [_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after{content:"\\d7"}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;font-weight:400;padding-right:1.5rem}[_nghost-%COMP%] article[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:right;vertical-align:text-top;white-space:nowrap}']})}}return n})();var ee=a(8764),ne=a(9452),oe=a(1318);const ie=["qrCanvas"];function re(n,p){1&n&&t.nrm(0,"cw-route-loading")}function se(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-revocation-selection",18),t.bIt("closeRevocationModal",function(){o.eBV(e);const _=t.XpG(2);return o.Njj(_.closeRevocationModal())}),t.k0s()}if(2&n){t.XpG(2);const e=t.r8f(1);t.Y8G("masterOrder",e)}}function ae(n,p){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n){t.XpG(2);const e=t.r8f(1);t.R7$(),t.JRh(t.bMT(2,1,"order.details.order.number")+" "+e.orderId)}}function ce(n,p){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n){t.XpG(2);const e=t.r8f(1);t.R7$(),t.JRh(t.bMT(2,1,"order.details.on.site.access.code")+" "+e.accessCode)}}function de(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-tile",20),t.nI1(1,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG().$implicit,R=t.XpG(2);return o.Njj(R.setOrderVisible(_.orderId))}),t.j41(2,"div",21)(3,"div")(4,"p",22),t.EFF(5),t.nI1(6,"t"),t.k0s(),t.j41(7,"p",23)(8,"span"),t.EFF(9),t.nI1(10,"t"),t.k0s(),t.EFF(11),t.k0s()(),t.j41(12,"div",24)(13,"div",25)(14,"p",26),t.EFF(15),t.nI1(16,"t"),t.k0s(),t.j41(17,"p",14),t.EFF(18),t.nI1(19,"cwcurrency"),t.k0s()(),t.nrm(20,"cw-button",27),t.k0s()()()}if(2&n){const e=t.XpG(),i=e.$implicit,_=e.$index,R=t.XpG(2),B=t.r8f(1);t.BMQ("data-mod-log",R.createTrackingAttributeWithGlobalName(t.brH(1,11,"order.details.sub.order",_+1,B.subOrders.length))),t.R7$(5),t.JRh(t.brH(6,15,"order.details.sub.order",_+1,B.subOrders.length)),t.R7$(4),t.SpI("",t.bMT(10,19,"orders.order.id")," "),t.R7$(2),t.SpI(" ",i.orderId),t.R7$(4),t.JRh(t.bMT(16,21,"order.details.sub.order.sum")),t.R7$(3),t.JRh(t.bMT(19,23,i.billSum)),t.R7$(2),t.Y8G("dataItName","extend-order-button")("iconSize",32)("accessibilityLabel",R.showOrder(i.orderId)?"order.details.sub.order.close":"order.details.sub.order.open")("icon",R.showOrder(i.orderId)?"icon-arrow-up":"icon-arrow-down")("isIcon",!0)}}function le(n,p){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"cwDate"),t.nI1(3,"cwDate"),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Lme("",t.bMT(2,2,null==e.shippingTimes?null:e.shippingTimes.min)," \u2013 ",t.bMT(3,4,null==e.shippingTimes?null:e.shippingTimes.max))}}function ue(n,p){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"cwDate"),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.JRh(t.bMT(2,1,null==e.shippingTimes?null:e.shippingTimes.max))}}function _e(n,p){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s(),t.nVh(3,le,4,6,"p"),t.nVh(4,ue,3,3,"p")),2&n){const e=t.XpG(3).$implicit;t.R7$(),t.JRh(t.bMT(2,3,"orders.delivery.times.title")),t.R7$(2),t.vxM(e.shippingTimes.min!==e.shippingTimes.max?3:-1),t.R7$(),t.vxM(e.shippingTimes.min===e.shippingTimes.max?4:-1)}}function ge(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-button",17),t.nI1(1,"t"),t.nI1(2,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(3).$implicit,R=t.XpG(2);return o.Njj(R.goToOrderTracking(_.orderId))}),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("dataItName","show-order-tracking-button")("text",t.bMT(1,3,"order.details.tracking.button")),t.BMQ("data-mod-log",e.createOrderTrackingTrackingAttribute(t.bMT(2,5,"order.details.tracking.button")))}}function pe(n,p){if(1&n&&(t.j41(0,"cw-tile",29)(1,"div",13)(2,"div")(3,"h2",14),t.EFF(4),t.nI1(5,"t"),t.k0s(),t.nVh(6,_e,5,5),t.j41(7,"div",32),t.nrm(8,"img",33),t.j41(9,"p",34),t.EFF(10),t.nI1(11,"t"),t.k0s()()(),t.j41(12,"div",15),t.nVh(13,ge,3,7,"cw-button",35),t.k0s()()()),2&n){const e=t.XpG(2).$implicit,i=t.XpG(2),_=t.r8f(1);t.R7$(4),t.JRh(t.bMT(5,5,"order.details.order.state")),t.R7$(2),t.vxM(i.showDeliveryTimes(_,e)?6:-1),t.R7$(2),t.Y8G("src",i.getOrderStateIconPath(e,_),t.B4B),t.R7$(2),t.JRh(e.currentStateText||t.bMT(11,7,"order.details.state."+e.status+"_"+_.shippingType)),t.R7$(3),t.vxM(_.archived?-1:13)}}function he(n,p){if(1&n){const e=t.RV6();t.j41(0,"img",37),t.bIt("load",function(){o.eBV(e);const _=t.XpG(6);return o.Njj(_.carrierLogoSuccess())}),t.k0s()}if(2&n){const e=t.XpG(4).$implicit,i=t.XpG(2);t.AVh("hide-carrier-logo",!i.showCarrierLogo),t.Y8G("src",i.getCarrierIconPath(null==e.trackingInfo?null:e.trackingInfo.carrierName),t.B4B)}}function me(n,p){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Lme("",t.bMT(2,2,"order.details.tracking.external.number")," ",e.trackingInfo.trackingNumber)}}function fe(n,p){if(1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.JRh(t.i5U(2,1,"order.details.tracking.external.carrier",e.trackingInfo.carrierName))}}function Ce(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-button",17),t.nI1(1,"t"),t.nI1(2,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(4).$implicit,R=t.XpG(2);return o.Njj(R.goToExternalTracking(_.trackingInfo.trackingLink))}),t.k0s()}if(2&n){const e=t.XpG(4).$implicit,i=t.XpG(2);t.Y8G("dataItName","show-sub-order-tracking-button")("text",t.bMT(1,3,"order.details.tracking.external.button")),t.BMQ("data-mod-log",i.createExternalTrackingTrackingAttributeWithLink(t.bMT(2,5,"order.details.tracking.external.button"),e.trackingInfo.trackingLink))}}function Me(n,p){if(1&n&&(t.j41(0,"div",13)(1,"div")(2,"h2",14),t.EFF(3),t.nI1(4,"t"),t.k0s(),t.nVh(5,he,1,3,"img",36),t.nVh(6,me,3,4,"p"),t.nVh(7,fe,3,4,"p"),t.k0s(),t.j41(8,"div",15),t.nVh(9,Ce,3,7,"cw-button",35),t.k0s()()),2&n){const e=t.XpG(3).$implicit;t.R7$(3),t.JRh(t.bMT(4,5,"order.details.tracking.external.title")),t.R7$(2),t.vxM(e.trackingInfo.carrierId?5:-1),t.R7$(),t.vxM(e.trackingInfo.trackingNumber?
16:-1),t.R7$(),t.vxM(e.trackingInfo.carrierName?7:-1),t.R7$(2),t.vxM(e.trackingInfo.trackingLink?9:-1)}}function Oe(n,p){1&n&&(t.j41(0,"h2",14),t.EFF(1),t.nI1(2,"t"),t.k0s(),t.j41(3,"p"),t.EFF(4),t.nI1(5,"t"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,2,"order.details.tracking")),t.R7$(3),t.JRh(t.bMT(5,4,"order.details.no.tracking")))}function be(n,p){if(1&n&&(t.j41(0,"cw-tile",29),t.nVh(1,Me,10,7,"div",13)(2,Oe,6,6),t.k0s()),2&n){const e=t.XpG(2).$implicit,i=t.XpG(2);t.R7$(),t.vxM(e.trackingInfo&&i.showTrackingInformation(e.trackingInfo)?1:2)}}function Pe(n,p){if(1&n&&t.eu8(0,11),2&n){t.XpG(3);const e=t.sdS(37);t.Y8G("ngTemplateOutlet",e)}}function Re(n,p){1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"order.details.on.site.picked.up.hint")))}function we(n,p){1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"order.details.on.site.picked.up.hint.archived")))}function Te(n,p){1&n&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"order.details.on.site.picked.up.hint.apex")))}function ve(n,p){if(1&n&&(t.nVh(0,we,3,3,"p"),t.nVh(1,Te,3,3,"p")),2&n){t.XpG(6);const e=t.r8f(1);t.vxM(e.archived?0:-1),t.R7$(),t.vxM(e.archived?-1:1)}}function xe(n,p){if(1&n&&(t.j41(0,"cw-tile",29)(1,"div",38)(2,"h2",14),t.EFF(3),t.nI1(4,"t"),t.k0s(),t.nVh(5,Re,3,3,"p"),t.nVh(6,ve,2,2),t.nrm(7,"img",39),t.nI1(8,"t"),t.k0s()()),2&n){t.XpG(5);const e=t.r8f(1);t.R7$(3),t.JRh(t.bMT(4,4,"order.details.on.site.picked.up.headline")),t.R7$(2),t.vxM(e.accessCode?5:-1),t.R7$(),t.vxM(e.accessCode?-1:6),t.R7$(),t.Y8G("src",t.bMT(8,6,"order.details.on.site.picked.up.image"),t.B4B)}}function Ie(n,p){if(1&n&&(t.j41(0,"cw-tile",40)(1,"div",41)(2,"div",42)(3,"div")(4,"p",14),t.EFF(5),t.nI1(6,"t"),t.k0s(),t.nrm(7,"canvas",43,4),t.k0s(),t.j41(9,"div")(10,"p",44),t.EFF(11),t.nI1(12,"t"),t.k0s(),t.j41(13,"p",45),t.EFF(14),t.k0s()()(),t.j41(15,"div")(16,"p",46),t.EFF(17),t.nI1(18,"cwDate"),t.nI1(19,"t"),t.k0s(),t.j41(20,"p",14),t.EFF(21),t.nI1(22,"t"),t.k0s(),t.j41(23,"p",47),t.EFF(24),t.nI1(25,"t"),t.k0s(),t.j41(26,"p",47),t.EFF(27),t.nI1(28,"t"),t.k0s()()()()),2&n){const e=t.XpG(7),i=t.r8f(1);t.R7$(5),t.JRh(t.bMT(6,9,"order.details.on.site.qr.code")),t.R7$(2),t.BMQ("data-it-name","qr-code"),t.R7$(4),t.JRh(t.bMT(12,11,"order.details.on.site.access.code")),t.R7$(2),t.BMQ("data-it-name","access-code"),t.R7$(),t.JRh(i.accessCode),t.R7$(3),t.SpI(" ",t.i5U(19,15,"order.details.on.site.code.valid",t.bMT(18,13,e.getCodeExpirationDate(i.orderDate)))," "),t.R7$(4),t.JRh(t.bMT(22,18,"order.details.on.site.print.header")),t.R7$(3),t.JRh(t.bMT(25,20,"order.details.on.site.mail.hint")),t.R7$(3),t.JRh(t.bMT(28,22,"order.details.on.site.print.hint"))}}function ye(n,p){if(1&n&&(t.j41(0,"cw-tile",29)(1,"div",38)(2,"h2",14),t.EFF(3),t.nI1(4,"t"),t.k0s(),t.j41(5,"p"),t.EFF(6),t.nI1(7,"cwDate"),t.nI1(8,"t"),t.k0s(),t.nrm(9,"img",48),t.nI1(10,"t"),t.j41(11,"p"),t.EFF(12),t.nI1(13,"t"),t.k0s()()()),2&n){const e=t.XpG(7),i=t.r8f(1);t.R7$(3),t.JRh(t.bMT(4,4,"order.details.on.site.invalid.headline")),t.R7$(3),t.JRh(t.i5U(8,8,"order.details.on.site.invalid",t.bMT(7,6,e.getCodeExpirationDate(i.orderDate)))),t.R7$(3),t.Y8G("src",t.bMT(10,11,"order.details.on.site.invalid.image"),t.B4B),t.R7$(3),t.JRh(t.bMT(13,13,"order.details.on.site.invalid.hint"))}}function Fe(n,p){if(1&n&&t.nVh(0,Ie,29,24,"cw-tile",40)(1,ye,14,15,"cw-tile",29),2&n){const e=t.XpG(6),i=t.r8f(1);t.vxM(e.isAccessCodeValid(i.orderDate)?0:1)}}function ke(n,p){1&n&&(t.j41(0,"cw-tile",40)(1,"h2",14),t.EFF(2),t.nI1(3,"t"),t.k0s(),t.j41(4,"p"),t.EFF(5),t.nI1(6,"t"),t.k0s()()),2&n&&(t.R7$(2),t.JRh(t.bMT(3,2,"order.details.on.site.apex.headline")),t.R7$(3),t.JRh(t.bMT(6,4,"order.details.on.site.apex.hint")))}function Ee(n,p){if(1&n&&t.nVh(0,Fe,2,1)(1,ke,7,6,"cw-tile",40),2&n){const e=t.XpG(5),i=t.r8f(1);t.vxM(e.showQrCode(i)?0:1)}}function Se(n,p){if(1&n&&t.nVh(0,xe,9,8,"cw-tile",29)(1,Ee,2,1),2&n){const e=t.XpG(2).$implicit,i=t.XpG(2);t.vxM(i.isCodeOrderPickedUp(e)?0:1)}}function $e(n,p){if(1&n&&t.eu8(0,11),2&n){t.XpG(3);const e=t.sdS(35);t.Y8G("ngTemplateOutlet",e)}}function Ae(n,p){if(1&n&&(t.j41(0,"div",28),t.nVh(1,pe,14,9,"cw-tile",29),t.nVh(2,be,3,1,"cw-tile",29),t.nVh(3,Pe,1,1,"ng-container",11),t.nVh(4,Se,2,1),t.nVh(5,$e,1,1,"ng-container",11),t.k0s(),t.j41(6,"cw-tile",10),t.nrm(7,"cw-order-positions",30),t.k0s(),t.nrm(8,"cw-order-revocations",31)),2&n){const e=t.XpG().$implicit,i=t.XpG(2),_=t.r8f(1);t.AVh("full-width-tile",_.subOrders.length>1&&0===_.shippingType),t.R7$(),t.vxM(i.showOrderStateTile(_)?1:-1),t.R7$(),t.vxM(i.showTrackingTile(_)?2:-1),t.R7$(),t.vxM(_.archived||_.creditNote?3:-1),t.R7$(),t.vxM(i.showOnSiteTile(_)?4:-1),t.R7$(),t.vxM(i.showLocationOrShippingAddressTileInAside(_)?-1:5),t.R7$(2),t.Y8G("masterOrder",_)("subOrder",e),t.R7$(),t.Y8G("masterOrder",_)("subOrder",e)}}function je(n,p){if(1&n&&(t.nVh(0,de,21,25,"cw-tile",19),t.nVh(1,Ae,9,11)),2&n){const e=p.$implicit,i=t.XpG(2),_=t.r8f(1);t.vxM(_.subOrders.length>1?0:-1),t.R7$(),t.vxM(i.showOrder(e.orderId)?1:-1)}}function Be(n,p){if(1&n&&(t.j41(0,"cw-tile",10),t.nrm(1,"div",49)(2,"cw-total-sum",5),t.k0s()),2&n){t.XpG(2);const e=t.r8f(1);t.R7$(2),t.Y8G("masterOrder",e)}}function De(n,p){if(1&n&&t.eu8(0,11),2&n){t.XpG();const e=t.sdS(37);t.Y8G("ngTemplateOutlet",e)}}function Ne(n,p){if(1&n&&(t.j41(0,"cw-tile",12),t.nrm(1,"cw-address-summary",50),t.k0s()),2&n){t.XpG(2);const e=t.r8f(1);t.R7$(),t.Y8G("type","billing")("address",e.billingAddress)}}function Ge(n,p){if(1&n&&t.nrm(0,"cw-address-summary",50),2&n){t.XpG(5);const e=t.r8f(1);t.Y8G("type","shipping")("address",e.shippingAddress||e.billingAddress)}}function Ve(n,p){if(1&n&&(t.j41(0,"div")(1,"h2",14),t.EFF(2),t.nI1(3,"t"),t.k0s(),t.nrm(4,"cw-address-summary-display",53),t.k0s()),2&n){const e=t.XpG(5),i=t.r8f(1);t.R7$(2),t.JRh(t.bMT(3,3,"address.type.shipping")),t.R7$(2),t.Y8G("address",e.getLocationAsAddressRecord(i.pickupPoint))("layout",e.getLocationLayout()
1)}}function Le(n,p){if(1&n&&(t.j41(0,"cw-tile",29)(1,"div",51),t.nVh(2,Ge,1,2,"cw-address-summary",50),t.nVh(3,Ve,5,5,"div"),t.nrm(4,"img",52),t.nI1(5,"t"),t.k0s()()),2&n){t.XpG(4);const e=t.r8f(1);t.R7$(2),t.vxM(e.pickupPoint?-1:2),t.R7$(),t.vxM(e.pickupPoint?3:-1),t.R7$(),t.Y8G("src",t.bMT(5,3,e.pickupPoint?"orders.location.image":"orders.address.image"),t.B4B)}}function Xe(n,p){if(1&n&&t.nrm(0,"cw-pos-address",54),2&n){const e=t.XpG(5),i=t.r8f(1);t.Y8G("showLocationName",e.showLocationName())("locationName",i.location.name)("locationLayout",e.getLocationLayout())("locationAsAddressRecord",e.getLocationAsAddressRecord(i.location))}}function Je(n,p){if(1&n&&(t.j41(0,"cw-tile",29)(1,"div",51)(2,"div")(3,"h2",14),t.EFF(4),t.nI1(5,"t"),t.k0s(),t.nVh(6,Xe,1,4,"cw-pos-address",54),t.k0s(),t.nrm(7,"img",52),t.nI1(8,"t"),t.k0s()()),2&n){t.XpG(4);const e=t.r8f(1);t.R7$(4),t.JRh(t.bMT(5,3,"order.details.location")),t.R7$(2),t.vxM(e.location?6:-1),t.R7$(),t.Y8G("src",t.bMT(8,5,"orders.location.image"),t.B4B)}}function Ue(n,p){if(1&n&&(t.nVh(0,Le,6,5,"cw-tile",29),t.nVh(1,Je,9,7,"cw-tile",29)),2&n){const e=t.XpG(3),i=t.r8f(1);t.vxM(e.showShippingAddress(i)?0:-1),t.R7$(),t.vxM(e.showShippingAddress(i)?-1:1)}}function ze(n,p){if(1&n&&t.nVh(0,Ue,2,2),2&n){const e=t.XpG(2),i=t.r8f(1);t.vxM(i.archived||i.creditNote||e.onlyDirectShippingPositions(i)?-1:0)}}function Ye(n,p){if(1&n&&t.eu8(0,11),2&n){t.XpG(2);const e=t.sdS(35);t.Y8G("ngTemplateOutlet",e)}}function Qe(n,p){if(1&n&&(t.j41(0,"p",57),t.EFF(1),t.nI1(2,"t"),t.k0s()),2&n){const e=t.XpG(4),i=t.r8f(1);t.R7$(),t.JRh(t.bMT(2,1,e.getInvoiceStatusText(i)))}}function He(n,p){if(1&n){const e=t.RV6();t.j41(0,"div",15)(1,"cw-button",17),t.nI1(2,"t"),t.nI1(3,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(4),R=t.r8f(1);return o.Njj(_.openBillInNewWindow(R.internalOrderId))}),t.k0s()()}if(2&n){const e=t.XpG(4);t.R7$(),t.Y8G("dataItName","download-bill-button")("text",t.bMT(2,3,"order.details.download.bill.btn")),t.BMQ("data-mod-log",e.createTrackingAttributeWithGlobalName(t.bMT(3,5,"order.details.download.bill.btn")))}}function We(n,p){if(1&n&&(t.j41(0,"cw-tile",56)(1,"div",13)(2,"div")(3,"h2",14),t.EFF(4),t.nI1(5,"t"),t.k0s(),t.nVh(6,Qe,3,3,"p",57),t.j41(7,"div",58),t.nrm(8,"cw-payment-logo",59),t.j41(9,"p"),t.EFF(10),t.k0s()()(),t.nVh(11,He,4,7,"div",15),t.k0s()()),2&n){const e=t.XpG(3),i=t.r8f(1);t.AVh("first-row-tile",!e.showLocationOrShippingAddressTileInAside(i)),t.Y8G("showError",e.orderInfoService.isInvoiceOrderOverdue(i)),t.R7$(4),t.JRh(t.bMT(5,8,"order.details.pay.method")),t.R7$(2),t.vxM(e.orderInfoService.showInvoiceStatus(i)?6:-1),t.R7$(2),t.Y8G("payMethodId",i.payMethodId),t.R7$(2),t.JRh(i.payMethodName),t.R7$(),t.vxM(i.billAvailable?11:-1)}}function Ke(n,p){if(1&n&&(t.nVh(0,Ye,1,1,"ng-container",11),t.nVh(1,We,12,10,"cw-tile",55)),2&n){const e=t.XpG(2),i=t.r8f(1);t.vxM(e.showLocationOrShippingAddressTileInAside(i)?0:-1),t.R7$(),t.vxM(e.hasPayMethod(i)?1:-1)}}function Ze(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-tile",12)(1,"div",13)(2,"div")(3,"h2",14),t.EFF(4),t.nI1(5,"t"),t.k0s(),t.j41(6,"p",61),t.EFF(7),t.nI1(8,"t"),t.k0s(),t.j41(9,"div",15)(10,"cw-button",17),t.nI1(11,"t"),t.nI1(12,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(3),R=t.r8f(1);return o.Njj(_.openShippingLabelInNewWindow(R.internalOrderId))}),t.k0s()()()()()}if(2&n){const e=t.XpG(3),i=t.r8f(1);t.AVh("first-row-tile",!e.showLocationOrShippingAddressTileInAside(i)),t.R7$(4),t.JRh(t.bMT(5,7,"order.details.shipping.label")),t.R7$(3),t.JRh(t.bMT(8,9,"order.details.shipping.label.hint")),t.R7$(3),t.Y8G("dataItName","open-shipping-label-button")("text",t.bMT(11,11,"order.details.download.shipping.label.btn")),t.BMQ("data-mod-log",e.createTrackingAttributeWithGlobalName(t.bMT(12,13,"order.details.download.shipping.label.btn")))}}function qe(n,p){if(1&n&&t.nVh(0,Ze,13,15,"cw-tile",60),2&n){t.XpG(2);const e=t.r8f(1);t.vxM(e.shippingLabelAvailable?0:-1)}}function tn(n,p){if(1&n){const e=t.RV6();t.j41(0,"cw-tile",12)(1,"div",13)(2,"div")(3,"h2",14),t.EFF(4),t.nI1(5,"t"),t.k0s(),t.j41(6,"p",61),t.EFF(7),t.nI1(8,"t"),t.k0s(),t.j41(9,"div",15)(10,"cw-button",17),t.nI1(11,"t"),t.nI1(12,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG(3);return o.Njj(_.openRevocationModal())}),t.k0s()()()()()}if(2&n){const e=t.XpG(3);t.R7$(4),t.JRh(t.bMT(5,5,"order.details.revocation.header")),t.R7$(3),t.JRh(t.bMT(8,7,"order.details.revocation.text")),t.R7$(3),t.Y8G("dataItName","order-revocation-button")("text",t.bMT(11,9,"order.details.revocation.btn")),t.BMQ("data-mod-log",e.createTrackingAttributeWithGlobalName(t.bMT(12,11,"order.details.revocation.btn")))}}function en(n,p){if(1&n&&t.nVh(0,tn,13,13,"cw-tile",12),2&n){const e=t.XpG(2),i=t.r8f(1);t.vxM(e.isRevocationAvailable(i)?0:-1)}}function nn(n,p){if(1&n){const e=t.RV6();t.nVh(0,se,1,1,"cw-revocation-selection",5),t.j41(1,"cw-account-page-template",6),t.qex(2,7),t.j41(3,"h1",8),t.EFF(4),t.nI1(5,"t"),t.nI1(6,"cwDate"),t.k0s(),t.nVh(7,ae,3,3,"p"),t.nVh(8,ce,3,3,"p"),t.bVm(),t.j41(9,"div",9)(10,"section"),t.Z7z(11,je,2,2,null,null,t.fX1),t.nVh(13,Be,3,1,"cw-tile",10),t.k0s(),t.j41(14,"aside"),t.eu8(15,11),t.nVh(16,De,1,1,"ng-container",11),t.eu8(1
17,11),t.nVh(18,Ne,2,2,"cw-tile",12),t.j41(19,"cw-tile",12)(20,"div",13)(21,"div")(22,"h2",14),t.EFF(23),t.nI1(24,"t"),t.k0s(),t.j41(25,"p"),t.EFF(26),t.nI1(27,"t"),t.k0s()(),t.j41(28,"div",15),t.nrm(29,"img",16),t.nI1(30,"t"),t.j41(31,"cw-button",17),t.nI1(32,"t"),t.nI1(33,"t"),t.bIt("click",function(){o.eBV(e);const _=t.XpG();return o.Njj(_.goToCustomerCare())}),t.k0s()()()()()()(),t.DNE(34,ze,1,1,"ng-template",null,0,t.C5r)(36,Ke,2,2,"ng-template",null,1,t.C5r)(38,qe,1,1,"ng-template",null,2,t.C5r)(40,en,1,1,"ng-template",null,3,t.C5r)}if(2&n){const e=t.sdS(39),i=t.sdS(41),_=t.XpG(),R=t.r8f(1);t.vxM(_.showRevocationModal?0:-1),t.R7$(),t.Y8G("page","order.details")("parent","orders"),t.R7$(3),t.JRh(t.bMT(5,19,"order.details.order.from.prefix")+" "+t.bMT(6,21,R.orderDate)),t.R7$(3),t.vxM(R.accessCode?-1:7),t.R7$(),t.vxM(R.accessCode?8:-1),t.R7$(3),t.Dyx(R.subOrders),t.R7$(2),t.vxM(R.subOrders.length>1?13:-1),t.R7$(2),t.Y8G("ngTemplateOutlet",e),t.R7$(),t.vxM(R.archived||R.creditNote?-1:16),t.R7$(),t.Y8G("ngTemplateOutlet",i),t.R7$(),t.vxM(R.archived?-1:18),t.R7$(),t.AVh("first-row-tile",R.archived),t.R7$(4),t.JRh(t.bMT(24,23,"order.details.customer.care.headline")),t.R7$(3),t.JRh(t.bMT(27,25,"order.details.customer.care.description")),t.R7$(3),t.Y8G("src",t.bMT(30,27,"personal.data.contact.image"),t.B4B),t.R7$(2),t.Y8G("dataItName","customer-care-button")("text",t.bMT(32,29,"order.details.customer.care.btn")),t.BMQ("data-mod-log",_.createCustomerCareTrackingAttribute(t.bMT(33,31,"order.details.customer.care.btn")))}}let rn=(()=>{class n extends It.Y{constructor(){super(...arguments),this.showOrderMap=new Map,this.showCarrierLogo=!1,this.loading=!0,this.showRevocationModal=!1,this.orderInfoService=(0,o.WQX)(c.K),this.redirectService=(0,o.WQX)(h.r),this.configService=(0,o.WQX)(D.H),this.httpService=(0,o.WQX)(m.kl),this.route=(0,o.WQX)(r.nX),this.trackingService=(0,o.WQX)(F.a),this.calloutService=(0,o.WQX)(l._v),this.router=(0,o.WQX)(r.Ix)}ngOnInit(){const e=this.route.snapshot.paramMap.get("id");if(!e)return void this.redirectService.localRedirectTo(it.aT);this.masterOrder$=this.orderInfoService.initOrderDetails$(e).pipe((0,ee.M)(_=>{this.loading=!1,_?(this.initShowOrderMap(_,e),this.initQrCode(_)):this.showFailureCalloutAndRedirect()}),(0,oe.W)(()=>(this.showFailureCalloutAndRedirect(),(0,ne.of)(null))));const i=this.route.snapshot.firstChild;i&&i.url.some(_=>it.zG===_.path)&&this.openRevocationModal()}showFailureCalloutAndRedirect(){this.calloutService.displayCloseableMsg({text:"order.details.not.found",type:"warning-message",log:!0}),this.redirectService.localRedirectTo(it.aT)}showLocationOrShippingAddressTileInAside(e){return e.subOrders.length>1||this.showTrackingTile(e)||e.shippingType===b.T2.ON_SITE&&(!e.accessCode||this.isAccessCodeValid(e.orderDate))&&(0,k.O9)(e.subOrders.find(i=>!this.isCodeOrderPickedUp(i)))}initQrCode(e){setTimeout(()=>{e&&e.accessCode&&this.isAccessCodeValid(e.orderDate)&&$.toCanvas(this.qrCanvas.nativeElement,e.accessCode,{width:200,margin:0})})}showOrder(e){return!!this.showOrderMap.get(e)}setOrderVisible(e){this.showOrderMap.set(e,1!=this.showOrderMap.get(e))}getOrderStateIconPath(e,i){return this.orderInfoService.getOrderStateIconPath(e,i)}getCarrierIconPath(e){return this.orderInfoService.getCarrierIconPath(e)}carrierLogoSuccess(){this.showCarrierLogo=!0}showTrackingTile(e){return e.shippingType===b.T2.MAIL&&!e.creditNote&&!e.archived}showTrackingInformation(e){return e&&!!(e.carrierName||e.carrierId||e.trackingLink||e.trackingNumber)}showOnSiteTile(e){return e.shippingType===b.T2.ON_SITE}showQrCode(e){return!!e.accessCode}showOrderStateTile(e){return e.shippingType!==b.T2.ON_SITE}showDeliveryTimes(e,i){if(!(i.shippingTimes&&i.shippingTimes.max&&i.shippingTimes.min))return!1;const R=i.trackingInfo&&i.trackingInfo.trackingLink,B=this.isDigitalProduct(i,e);return!(R&&e.shippingType===b.T2.MAIL||B)}isDigitalProduct(e,i){return e.shippingTimes.max&&this.orderInfoService.sameDay(i.orderDate,e.shippingTimes.max)}goToOrderTracking(e){const i=this.configService.getAppConfig().orderTrackingLinkNoReference;this.redirectService.redirectTo(i+"#/?orderId="+e)}goToExternalTracking(e){this.redirectService.redirectTo(e)}goToCustomerCare(){this.redirectService.redirectTo(this.configService.getAppConfig().customerCareLinkNoReference)}openBillInNewWindow(e){this.redirectService.redirectInNewWindow(this.httpService.concatUrls(m.s0.CAPI_SECURED,`/order-info/bill/${e}`))}openShippingLabelInNewWindow(e){this.redirectService.redirectInNewWindow(this.httpService.concatUrls(m.s0.CAPI_SECURED,`/order-info/shipping-label/${e}`))}openRevocationModal(){this.router.navigate([it.zG],{relativeTo:this.route}),this.showRevocationModal=!0}closeRevocationModal(){this.showRevocationModal=!1,this.router.navigate(["./"],{relativeTo:this.route})}showShippingAddress(e){return e.shippingType===b.T2.MAIL}onlyDirectShippingPositions(e){return e.subOrders.flatMap(i=>i.positions).every(i=>i.directShippingAddress)}getLocationAsAddressRecord(e){return(n=>{const p={};
1return Object.keys(n).forEach(e=>{p[e]=n[e]}),p})(e)}getLocationLayout(){return this.configService.getAppConfig().locationAddressLayout}isAccessCodeValid(e){const i=k.no*this.configService.getAppConfig().accessCodeValidDays;return new Date(e).getTime()+i>(new Date).getTime()}isCodeOrderPickedUp(e){return"SHIPPED"===e.status}hasPayMethod(e){return(0,k.O9)(e.payMethodId)}createOrderTrackingTrackingAttribute(e){return this.trackingService.createTrackingAttribute(e,this.configService.getAppConfig().orderTrackingLinkNoReference,this.getFragment())}createExternalTrackingTrackingAttributeWithLink(e,i){const _=new URL(i).hostname;return this.trackingService.createTrackingAttribute(e,_,this.getFragment())}createTrackingAttributeWithGlobalName(e){return this.trackingService.createTrackingAttributeWithGlobalName(e,this.getFragment())}createCustomerCareTrackingAttribute(e){return this.trackingService.createTrackingAttribute(e,this.configService.getAppConfig().customerCareLinkNoReference,this.getFragment())}getCodeExpirationDate(e){const i=new Date(e);return new Date(i.setDate(i.getDate()+this.configService.getAppConfig().accessCodeValidDays)).getTime()}getInvoiceStatusText(e){return e.balancedDate?"order.details.payment.paid":this.orderInfoService.isInvoiceDateOverdue(e)?"order.details.payment.overdue":"order.details.payment.unpaid"}isRevocationAvailable(e){if(!Number(this.configService.getAppConfig().revocationPeriodDays))return!1;const i=Number(this.configService.getAppConfig().revocationPeriodDays),_=new Date(e.orderDate);_.setDate(_.getDate()+i),_.setHours(23,59,59,999);const R=Date.now()>_.getTime(),B=this.orderInfoService.hasRevocableArticles(e);return!R&&B}getFragment(){return this.route.snapshot.routeConfig?.path}initShowOrderMap(e,i){e.subOrders.forEach(_=>{this.showOrderMap.set(_.orderId,_.internalOrderId===i)})}showLocationName(){return this.configService.getAppConfig().showLocationName}static{this.\u0275fac=(()=>{let e;return function(_){return(e||(e=t.xGo(n)))(_||n)}})()}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cw-order-details"]],viewQuery:function(i,_){if(1&i&&t.GBs(ie,5),2&i){let R;t.mGM(R=t.lsd())&&(_.qrCanvas=R.first)}},features:[t.Vt3],decls:4,vars:5,consts:[["locationOrShippingAddress",""],["paymentTile",""],["shippingLabelTile",""],["revocationTile",""],["qrCanvas",""],[3,"masterOrder"],[3,"page","parent"],["sub-page-header-content",""],[1,"bold","header-font-size"],[1,"order-detail-parent"],[1,"order-detail-tile","col-span-2"],[3,"ngTemplateOutlet"],[1,"order-detail-tile"],[1,"button-and-content"],[1,"bold"],[1,"tile-button"],["alt","",1,"customer-care-image",3,"src"],[3,"click","dataItName","text"],[3,"closeRevocationModal","masterOrder"],[1,"order-detail-tile","sub-order-tile","col-span-2"],[1,"order-detail-tile","sub-order-tile","col-span-2",3,"click"],[1,"sub-order-tile-wrap"],[1,"bold","sub-order-header"],[1,"sub-order-id"],[1,"sub-order-sum-arrow"],[1,"sub-order-sum-texts"],[1,"bold","sub-order-sum-text"],[1,"extend-arrow",3,"dataItName","iconSize","accessibilityLabel","icon","isIcon"],[1,"status-container","col-span-2"],[1,"order-detail-tile","first-row-tile"],[3,"masterOrder","subOrder"],[1,"col-span-2",3,"masterOrder","subOrder"],[1,"order-state"],["alt","",1,"order-state-icon",3,"src"],[1,"order-state-text"],[3,"dataItName","text"],["alt","",1,"order-state-icon",3,"hide-carrier-logo","src"],["alt","",1,"order-state-icon",3,"load","src"],[1,"code-expired-or-picked-up"],[1,"code-picked-up-image",3,"src"],[1,"order-detail-tile","first-row-tile","col-span-2"],[1,"code-and-hints"],[1,"codes","center-text"],[1,"canvas"],[1,"bold","padding-top"],[1,"code","bold"],[1,"code-valid"],[1,"do-not-print"],[1,"code-expired-image",3,"src"],[1,"horizontal-splitter"],[3,"type","address"],[1,"address-and-image"],["alt","",1,"location-image",3,"src"],[3,"address","layout"],[3,"showLocationName","locationName","locationLayout","locationAsAddressRecord"],[1,"order-detail-tile",3,"first-row-tile","showError"],[1,"order-detail-tile",3,"showError"],[1,"payment-invoice-status"],[1,"payment-logo-and-name"],[3,"payMethodId"],[1,"order-detail-tile",3,"first-row-tile"],[1,"shipping-label-hint"]],template:function(i,_){if(1&i&&(t.nVh(0,re,1,0,"cw-route-loading"),t.SS7(1),t.nI1(2,"async"),t.nVh(3,nn,42,33)),2&i){t.vxM(_.loading?0:-1),t.R7$();const R=t.bH3(t.bMT(2,2,_.masterOrder$));t.R7$(2),t.vxM(R?3:-1)}},dependencies:[s.MD,s.T3,d.iI,l.Qp,l.my,j,xt,ut,I.i,I.u2,l.Ns,yt.k,Nt,te,I.wO,s.Jj,g.i,g.pr,g.cD],styles:["[_ngcontent-%COMP%]:root{--heading-size-small: 1rem;--heading-size-medium: 1.125rem;--heading-size-large: 1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{--max-width-child: 1200px}[_nghost-%COMP%] .header-font-size[_ngcontent-%COMP%]{font-size:24px}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr}@media(max-width:768px){[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%]{grid-template-columns:1fr}}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .order-detail-tile[_ngcontent-%COMP%]{margin:.5rem}@media(max-width:511px){[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .order-detail-tile[_ngcontent-%COMP%]{margin:.5rem 0}}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .order-detail-tile[_ngcontent-%COMP%] .code-expired-or-picked-up[_ngcontent-%COMP%]{justify-content:space-between;display:flex;flex-direction:column}@media(min-width:769px){[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .first-row-tile[_ngcontent-%COMP%]{min-height:250px}}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .button-and-content[_ngcontent-%COMP%]{justify-content:space-between;display:flex;flex-direction:column;height:100%}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] section[_ngcontent-%COMP%], [_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] aside[_ngcontent-%COMP%]{align-self:start;display:grid}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .code-expired-image[_ngcontent-%COMP%]{align-self:center;max-height:150px}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .code-picked-up-image[_ngcontent-%COMP%]{align-self:center;max-height:150px}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .status-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}@media(max-width:768px){[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .status-container[_ngcontent-%COMP%]{grid-template-columns:1fr}}[_nghost-%COMP%] .order-detail-parent[_ngcontent-%COMP%] .status-container.full-width-tile[_ngcontent-%COMP%]{grid-template-columns:auto}.order-detail-parent[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}cw-tile.sub-order-tile[_ngcontent-%COMP%]{background:#e8e4e2;cursor:pointer}.horizontal-splitter[_ngcontent-%COMP%]{width:100%;border:#ededed 1px solid;margin-bottom:1rem}.order-state-icon[_ngcontent-%COMP%]{width:64px;
1height:64px}.hide-carrier-logo[_ngcontent-%COMP%]{display:none}.sub-order-tile-wrap[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-header[_ngcontent-%COMP%]{font-size:24px;font-weight:600;margin-bottom:.5rem}.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-id[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}@media(min-width:512px){.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-id[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline}}.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-id[_ngcontent-%COMP%]{font-size:1rem;color:#4c4c4c}.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-sum-arrow[_ngcontent-%COMP%]{display:flex}.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-sum-arrow[_ngcontent-%COMP%] .sub-order-sum-texts[_ngcontent-%COMP%]{display:flex;align-items:center}.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-sum-arrow[_ngcontent-%COMP%] .sub-order-sum-text[_ngcontent-%COMP%]{padding-right:1rem}@media(max-width:511px){.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-sum-arrow[_ngcontent-%COMP%] .sub-order-sum-text[_ngcontent-%COMP%]{display:none}}.sub-order-tile-wrap[_ngcontent-%COMP%] .sub-order-sum-arrow[_ngcontent-%COMP%] .extend-arrow[_ngcontent-%COMP%]{padding-left:.5rem}.order-state[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem}.order-state-text[_ngcontent-%COMP%]{padding:0 .5rem}.tile-button[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:center;padding-top:1rem}.tile-button[_ngcontent-%COMP%] .customer-care-image[_ngcontent-%COMP%]{padding:0 1rem 1rem;width:128px}.code-and-hints[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media(max-width:768px){.code-and-hints[_ngcontent-%COMP%]{flex-direction:column}}.code-and-hints[_ngcontent-%COMP%] .code-valid[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem;background-color:#f7f4f2!important}.code-and-hints[_ngcontent-%COMP%] .code-valid-hint[_ngcontent-%COMP%]{padding-bottom:1rem}.code-and-hints[_ngcontent-%COMP%] .codes[_ngcontent-%COMP%]{border:#246CCC solid 2px;width:200px;padding:1rem 2rem;border-radius:4px;margin-right:1.5rem;flex-direction:column;display:flex;align-items:center;height:fit-content}@media(max-width:768px){.code-and-hints[_ngcontent-%COMP%] .codes[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-around;align-items:unset;width:100%;height:unset;margin-bottom:1rem;padding:1rem}}@media print{.code-and-hints[_ngcontent-%COMP%] .codes[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-around}}.code-and-hints[_ngcontent-%COMP%] .codes[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{color:#246ccc}.code-and-hints[_ngcontent-%COMP%] .codes[_ngcontent-%COMP%] .canvas[_ngcontent-%COMP%]{height:100px!important;width:100px!important}.location-image[_ngcontent-%COMP%]{padding-top:1rem;max-width:250px;align-self:center}.address-and-image[_ngcontent-%COMP%]{justify-content:space-between;display:flex;flex-direction:column;height:100%}.address-and-image[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-break:anywhere}@media(min-width:512px)and (max-width:768px){.address-and-image[_ngcontent-%COMP%]{flex-direction:row}}.payment-invoice-status[_ngcontent-%COMP%]{padding-top:.5rem;padding-bottom:.75rem}.payment-logo-and-name[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem}.payment-logo-and-name[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-left:1rem}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2}.shipping-label-hint[_ngcontent-%COMP%]{padding-bottom:1rem}"]})}}return n})()},8340(A){"use strict";var u={single_source_shortest_paths:function(a,o,s){var r={},d={};d[o]=0;var l,g,h,m,b,f,c=u.PriorityQueue.make();for(c.push(o,0);!c.empty();)for(h in m=(l=c.pop()).cost,b=a[g=l.value]||{})b.hasOwnProperty(h)&&(f=m+b[h],(typeof d[h]>"u"||d[h]>f)&&(d[h]=f,c.push(h,f),r[h]=g));if(typeof s<"u"&&typeof d[s]>"u"){var j=["Could not find a path from ",o," to ",s,"."].join("");throw new Error(j)}return r},extract_shortest_path_from_predecessor_list:function(a,o){for(var s=[],r=o;r;)s.push(r),r=a[r];return s.reverse(),s},find_path:function(a,o,s){var r=u.single_source_shortest_paths(a,o,s);return u.extract_shortest_path_from_predecessor_list(r,s)},PriorityQueue:{make:function(a){var r,o=u.PriorityQueue,s={};for(r in a=a||{},o)o.hasOwnProperty(r)&&(s[r]=o[r]);return s.queue=[],s.sorter=a.sorter||o.default_sorter,s},default_sorter:function(a,o){return a.cost-o.cost},push:function(a,o){this.queue.push({value:a,cost:o}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};A.exports=u},475(A,u,a){const o=a(7057),s=a(6353),r=a(2719),d=a(8136);
1function c(l,g,h,m,b){const $=[].slice.call(arguments,1),f=$.length,t="function"==typeof $[f-1];if(!t&&!o())throw new Error("Callback required as last argument");if(!t){if(f<1)throw new Error("Too few arguments provided");return 1===f?(h=g,g=m=void 0):2===f&&!g.getContext&&(m=h,h=g,g=void 0),new Promise(function(v,j){try{const D=s.create(h,m);v(l(D,g,m))}catch(D){j(D)}})}if(f<2)throw new Error("Too few arguments provided");2===f?(b=h,h=g,g=m=void 0):3===f&&(g.getContext&&typeof b>"u"?(b=m,m=void 0):(b=m,m=h,h=g,g=void 0));try{const v=s.create(h,m);b(null,l(v,g,m))}catch(v){b(v)}}u.create=s.create,u.toCanvas=c.bind(null,r.render),u.toDataURL=c.bind(null,r.renderToDataURL),u.toString=c.bind(null,function(l,g,h){return d.render(l,h)})},7057(A){A.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},3881(A,u,a){const o=a(1794).getSymbolSize;u.getRowColCoords=function(r){if(1===r)return[];const d=Math.floor(r/7)+2,c=o(r),l=145===c?26:2*Math.ceil((c-13)/(2*d-2)),g=[c-7];for(let h=1;h<d-1;h++)g[h]=g[h-1]-l;return g.push(6),g.reverse()},u.getPositions=function(r){const d=[],c=u.getRowColCoords(r),l=c.length;for(let g=0;g<l;g++)for(let h=0;h<l;h++)0===g&&0===h||0===g&&h===l-1||g===l-1&&0===h||d.push([c[g],c[h]]);return d}},5997(A,u,a){const o=a(8124),s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(d){this.mode=o.ALPHANUMERIC,this.data=d}r.getBitsLength=function(c){return 11*Math.floor(c/2)+c%2*6},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(c){let l;for(l=0;l+2<=this.data.length;l+=2){let g=45*s.indexOf(this.data[l]);
1g+=s.indexOf(this.data[l+1]),c.put(g,11)}this.data.length%2&&c.put(s.indexOf(this.data[l]),6)},A.exports=r},8119(A){function u(){this.buffer=[],this.length=0}u.prototype={get:function(a){const o=Math.floor(a/8);return 1==(this.buffer[o]>>>7-a%8&1)},put:function(a,o){for(let s=0;s<o;s++)this.putBit(1==(a>>>o-s-1&1))},getLengthInBits:function(){return this.length},putBit:function(a){const o=Math.floor(this.length/8);this.buffer.length<=o&&this.buffer.push(0),a&&(this.buffer[o]|=128>>>this.length%8),this.length++}},A.exports=u},1536(A){function u(a){if(!a||a<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=a,this.data=new Uint8Array(a*a),this.reservedBit=new Uint8Array(a*a)}u.prototype.set=function(a,o,s,r){const d=a*this.size+o;this.data[d]=s,r&&(this.reservedBit[d]=!0)},u.prototype.get=function(a,o){return this.data[a*this.size+o]},u.prototype.xor=function(a,o,s){this.data[a*this.size+o]^=s},u.prototype.isReserved=function(a,o){return this.reservedBit[a*this.size+o]},A.exports=u},9370(A,u,a){const o=a(8124);function s(r){this.mode=o.BYTE,this.data="string"==typeof r?(new TextEncoder).encode(r):new Uint8Array(r)}s.getBitsLength=function(d){return 8*d},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(r){for(let d=0,c=this.data.length;d<c;d++)r.put(this.data[d],8)},A.exports=s},5970(A,u,a){const o=a(9293),s=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];u.getBlocksCount=function(c,l){switch(l){case o.L:return s[4*(c-1)+0];case o.M:return s[4*(c-1)+1];case o.Q:return s[4*(c-1)+2];case o.H:return s[4*(c-1)+3];default:return}},u.getTotalCodewordsCount=function(c,l){switch(l){case o.L:return r[4*(c-1)+0];case o.M:return r[4*(c-1)+1];case o.Q:return r[4*(c-1)+2];case o.H:return r[4*(c-1)+3];default:return}}},9293(A,u){u.L={bit:1},u.M={bit:0},u.Q={bit:3},u.H={bit:2},u.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},u.from=function(s,r){if(u.isValid(s))return s;try{return function a(o){if("string"!=typeof o)throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return u.L;case"m":case"medium":return u.M;case"q":case"quartile":return u.Q;case"h":case"high":return u.H;default:throw new Error("Unknown EC Level: "+o)}}(s)}catch{return r}}},6656(A,u,a){const o=a(1794).getSymbolSize;u.getPositions=function(d){const c=o(d);return[[0,0],[c-7,0],[0,c-7]]}},4649(A,u,a){const o=a(1794),d=o.getBCHDigit(1335);u.getEncodedBits=function(l,g){const h=l.bit<<3|g;let m=h<<10;for(;o.getBCHDigit(m)-d>=0;)m^=1335<<o.getBCHDigit(m)-d;return 21522^(h<<10|m)}},7143(A,u){const a=new Uint8Array(512),o=new Uint8Array(256);(function(){let r=1;for(let d=0;d<255;d++)a[d]=r,o[r]=d,r<<=1,256&r&&(r^=285);for(let d=255;d<512;d++)a[d]=a[d-255]})(),u.log=function(r){if(r<1)throw new Error("log("+r+")");return o[r]},u.exp=function(r){return a[r]},u.mul=function(r,d){return 0===r||0===d?0:a[o[r]+o[d]]}},6489(A,u,a){const o=a(8124),s=a(1794);function r(d){this.mode=o.KANJI,this.data=d}r.getBitsLength=function(c){return 13*c},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(d){let c;for(c=0;c<this.data.length;c++){let l=s.toSJIS(this.data[c]);if(l>=33088&&l<=40956)l-=33088;else{if(!(l>=57408&&l<=60351))throw new Error("Invalid SJIS character: "+this.data[c]+"\nMake sure your charset is UTF-8");l-=49472}l=192*(l>>>8&255)+(255&l),d.put(l,13)}},A.exports=r},7296(A,u){u.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function o(s,r,d){switch(s){case u.Patterns.PATTERN000:return(r+d)%2==0;case u.Patterns.PATTERN001:return r%2==0;case u.Patterns.PATTERN010:return d%3==0;case u.Patterns.PATTERN011:return(r+d)%3==0;case u.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(d/3))%2==0;case u.Patterns.PATTERN101:return r*d%2+r*d%3==0;case u.Patterns.PATTERN110:return(r*d%2+r*d%3)%2==0;case u.Patterns.PATTERN111:return(r*d%3+(r+d)%2)%2==0;default:throw new Error("bad maskPattern:"+s)}}u.isValid=function(r){return null!=r&&""!==r&&!isNaN(r)&&r>=0&&r<=7},u.from=function(r){return u.isValid(r)?parseInt(r,10):void 0},u.getPenaltyN1=function(r){const d=r.size;let c=0,l=0,g=0,h=null,m=null;for(let b=0;b<d;b++){l=g=0,h=m=null;for(let $=0;$<d;$++){let f=r.get(b,$);f===h?l++:(l>=5&&(c+=l-5+3),h=f,l=1),f=r.get($,b),f===m?g++:(g>=5&&(c+=g-5+3),m=f,g=1)}l>=5&&(c+=l-5+3),g>=5&&(c+=g-5+3)}return c},u.getPenaltyN2=function(r){const d=r.size;let c=0;for(let l=0;l<d-1;l++)for(let g=0;g<d-1;g++){const h=r.get(l,g)+r.get(l,g+1)+r.get(l+1,g)+r.get(l+1,g+1);(4===h||0===h)&&c++}return 3*c},u.getPenaltyN3=function(r){const d=r.size;let c=0,l=0,g=0;for(let h=0;h<d;h++){l=g=0;for(let m=0;m<d;m++)l=l<<1&2047|r.get(h,m),m>=10&&(1488===l||93===l)&&c++,g=g<<1&2047|r.get(m,h),m>
1=10&&(1488===g||93===g)&&c++}return 40*c},u.getPenaltyN4=function(r){let d=0;const c=r.data.length;for(let g=0;g<c;g++)d+=r.data[g];return 10*Math.abs(Math.ceil(100*d/c/5)-10)},u.applyMask=function(r,d){const c=d.size;for(let l=0;l<c;l++)for(let g=0;g<c;g++)d.isReserved(g,l)||d.xor(g,l,o(r,g,l))},u.getBestMask=function(r,d){const c=Object.keys(u.Patterns).length;let l=0,g=1/0;for(let h=0;h<c;h++){d(h),u.applyMask(h,r);const m=u.getPenaltyN1(r)+u.getPenaltyN2(r)+u.getPenaltyN3(r)+u.getPenaltyN4(r);u.applyMask(h,r),m<g&&(g=m,l=h)}return l}},8124(A,u,a){const o=a(4682),s=a(9600);u.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},u.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},u.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},u.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},u.MIXED={bit:-1},u.getCharCountIndicator=function(c,l){if(!c.ccBits)throw new Error("Invalid mode: "+c);if(!o.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?c.ccBits[0]:l<27?c.ccBits[1]:c.ccBits[2]},u.getBestModeForData=function(c){return s.testNumeric(c)?u.NUMERIC:s.testAlphanumeric(c)?u.ALPHANUMERIC:s.testKanji(c)?u.KANJI:u.BYTE},u.toString=function(c){if(c&&c.id)return c.id;throw new Error("Invalid mode")},u.isValid=function(c){return c&&c.bit&&c.ccBits},u.from=function(c,l){if(u.isValid(c))return c;try{return function r(d){if("string"!=typeof d)throw new Error("Param is not a string");switch(d.toLowerCase()){case"numeric":return u.NUMERIC;case"alphanumeric":return u.ALPHANUMERIC;case"kanji":return u.KANJI;case"byte":return u.BYTE;default:throw new Error("Unknown mode: "+d)}}(c)}catch{return l}}},4473(A,u,a){const o=a(8124);function s(r){this.mode=o.NUMERIC,this.data=r.toString()}s.getBitsLength=function(d){return 10*Math.floor(d/3)+(d%3?d%3*3+1:0)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(d){let c,l,g;for(c=0;c+3<=this.data.length;c+=3)l=this.data.substr(c,3),g=parseInt(l,10),d.put(g,10);const h=this.data.length-c;h>0&&(l=this.data.substr(c),g=parseInt(l,10),d.put(g,3*h+1))},A.exports=s},7173(A,u,a){const o=a(7143);u.mul=function(r,d){const c=new Uint8Array(r.length+d.length-1);for(let l=0;l<r.length;l++)for(let g=0;g<d.length;g++)c[l+g]^=o.mul(r[l],d[g]);return c},u.mod=function(r,d){let c=new Uint8Array(r);for(;c.length-d.length>=0;){const l=c[0];for(let h=0;h<d.length;h++)c[h]^=o.mul(d[h],l);let g=0;for(;g<c.length&&0===c[g];)g++;c=c.slice(g)}return c},u.generateECPolynomial=function(r){let d=new Uint8Array([1]);for(let c=0;c<r;c++)d=u.mul(d,new Uint8Array([1,o.exp(c)]));return d}},6353(A,u,a){const o=a(1794),s=a(9293),r=a(8119),d=a(1536),c=a(3881),l=a(6656),g=a(7296),h=a(5970),m=a(1e3),b=a(2775),$=a(4649),f=a(8124),t=a(8309);function k(M,x,P){const C=M.size,S=$.getEncodedBits(x,P);let w,O;for(w=0;w<15;w++)O=1==(S>>w&1),M.set(w<6?w:w<8?w+1:C-15+w,8,O,!0),M.set(8,w<8?C-w-1:w<9?15-w-1+1:15-w-1,O,!0);M.set(C-8,8,1,!0)}function G(M,x,P,C){let S;if(Array.isArray(M))S=t.fromArray(M);else{if("string"!=typeof M)throw new Error("Invalid data");{let J=x;if(!J){const Y=t.rawSplit(M);J=b.getBestVersionForData(Y,P)}S=t.fromString(M,J||40)}}const w=b.getBestVersionForData(S,P);if(!w)throw new Error("The amount of data is too big to be stored in a QR Code");if(x){if(x<w)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+w+".\n")}else x=w;const O=function T(M,x,P){const C=new r;P.forEach(function(F){C.put(F.mode.bit,4),C.put(F.getLength(),f.getCharCountIndicator(F.mode,M)),F.write(C)});const O=8*(o.getSymbolTotalCodewords(M)-h.getTotalCodewordsCount(M,x));for(C.getLengthInBits()+4<=O&&C.put(0,4);C.getLengthInBits()%8!=0;)C.putBit(0);const E=(O-C.getLengthInBits())/8;for(let F=0;F<E;F++)C.put(F%2?17:236,8);return function N(M,x,P){const C=o.getSymbolTotalCodewords(x),w=C-h.getTotalCodewordsCount(x,P),O=h.getBlocksCount(x,P),F=O-C%O,J=Math.floor(C/O),Y=Math.floor(w/O),st=Y+1,et=J-Y,at=new m(et);let W=0;const H=new Array(O),nt=new Array(O);let K=0;const ct=new Uint8Array(M.buffer);for(let U=0;U<O;U++){const q=U<F?Y:st;H[U]=ct.slice(W,W+q),nt[U]=at.encode(H[U]),W+=q,K=Math.max(K,q)}const Z=new Uint8Array(C);let L,X,ot=0;for(L=0;L<K;L++)for(X=0;X<O;X++)L<H[X].length&&(Z[ot++]=H[X][L]);for(L=0;L<et;L++)for(X=0;X<O;X++)Z[ot++]=nt[X][L];return Z}(C,M,x)}(x,P,S),E=o.getSymbolSize(x),F=new d(E);return function v(M,x){const P=M.size,C=l.getPositions(x);for(let S=0;S<C.length;S++){const w=C[S][0],O=C[S][1];for(let E=-1;E<=7;E++)if(!(w+E<=-1||P<=w+E))for(let F=-1;F<=7;F++)O+F<=-1||P<=O+F||M.set(w+E,O+F,E>=0&&E<=6&&(0===F||6===F)||F>=0&&F<=6&&(0===E||6===E)||E>=2&&E<=4&&F>=2&&F<=4,!0)}}(F,x),function j(M){const x=M.size;
1for(let P=8;P<x-8;P++){const C=P%2==0;M.set(P,6,C,!0),M.set(6,P,C,!0)}}(F),function D(M,x){const P=c.getPositions(x);for(let C=0;C<P.length;C++){const S=P[C][0],w=P[C][1];for(let O=-2;O<=2;O++)for(let E=-2;E<=2;E++)M.set(S+O,w+E,-2===O||2===O||-2===E||2===E||0===O&&0===E,!0)}}(F,x),k(F,P,0),x>=7&&function I(M,x){const P=M.size,C=b.getEncodedBits(x);let S,w,O;for(let E=0;E<18;E++)S=Math.floor(E/3),w=E%3+P-8-3,O=1==(C>>E&1),M.set(S,w,O,!0),M.set(w,S,O,!0)}(F,x),function y(M,x){const P=M.size;let C=-1,S=P-1,w=7,O=0;for(let E=P-1;E>0;E-=2)for(6===E&&E--;;){for(let F=0;F<2;F++)if(!M.isReserved(S,E-F)){let J=!1;O<x.length&&(J=1==(x[O]>>>w&1)),M.set(S,E-F,J),w--,-1===w&&(O++,w=7)}if(S+=C,S<0||P<=S){S-=C,C=-C;break}}}(F,O),isNaN(C)&&(C=g.getBestMask(F,k.bind(null,F,P))),g.applyMask(C,F),k(F,P,C),{modules:F,version:x,errorCorrectionLevel:P,maskPattern:C,segments:S}}u.create=function(x,P){if(typeof x>"u"||""===x)throw new Error("No input text");let S,w,C=s.M;return typeof P<"u"&&(C=s.from(P.errorCorrectionLevel,s.M),S=b.from(P.version),w=g.from(P.maskPattern),P.toSJISFunc&&o.setToSJISFunction(P.toSJISFunc)),G(x,S,C,w)}},1e3(A,u,a){const o=a(7173);function s(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(d){this.degree=d,this.genPoly=o.generateECPolynomial(this.degree)},s.prototype.encode=function(d){if(!this.genPoly)throw new Error("Encoder not initialized");const c=new Uint8Array(d.length+this.degree);c.set(d);const l=o.mod(c,this.genPoly),g=this.degree-l.length;if(g>0){const h=new Uint8Array(this.degree);return h.set(l,g),h}return l},A.exports=s},9600(A,u){const a="[0-9]+";let s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+")(?:.|[\r\n]))+";u.KANJI=new RegExp(s,"g"),u.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),u.BYTE=new RegExp(r,"g"),u.NUMERIC=new RegExp(a,"g"),u.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const d=new RegExp("^"+s+"$"),c=new RegExp("^"+a+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");u.testKanji=function(h){return d.test(h)},u.testNumeric=function(h){return c.test(h)},u.testAlphanumeric=function(h){return l.test(h)}},8309(A,u,a){const o=a(8124),s=a(4473),r=a(5997),d=a(9370),c=a(6489),l=a(9600),g=a(1794),h=a(8340);function m(I){return unescape(encodeURIComponent(I)).length}function b(I,k,y){const T=[];let N;for(;null!==(N=I.exec(y));)T.push({data:N[0],index:N.index,mode:k,length:N[0].length});return T}function $(I){const k=b(l.NUMERIC,o.NUMERIC,I),y=b(l.ALPHANUMERIC,o.ALPHANUMERIC,I);let T,N;return g.isKanjiModeEnabled()?(T=b(l.BYTE,o.BYTE,I),N=b(l.KANJI,o.KANJI,I)):(T=b(l.BYTE_KANJI,o.BYTE,I),N=[]),k.concat(y,T,N).sort(function(M,x){return M.index-x.index}).map(function(M){return{data:M.data,mode:M.mode,length:M.length}})}function f(I,k){switch(k){case o.NUMERIC:return s.getBitsLength(I);case o.ALPHANUMERIC:return r.getBitsLength(I);case o.KANJI:return c.getBitsLength(I);case o.BYTE:return d.getBitsLength(I)}}function D(I,k){let y;const T=o.getBestModeForData(I);if(y=o.from(k,T),y!==o.BYTE&&y.bit<T.bit)throw new Error('"'+I+'" cannot be encoded with mode '+o.toString(y)+".\n Suggested mode is: "+o.toString(T));switch(y===o.KANJI&&!g.isKanjiModeEnabled()&&(y=o.BYTE),y){case o.NUMERIC:return new s(I);case o.ALPHANUMERIC:return new r(I);case o.KANJI:return new c(I);case o.BYTE:return new d(I)}}u.fromArray=function(k){return k.reduce(function(y,T){return"string"==typeof T?y.push(D(T,null)):T.data&&y.push(D(T.data,T.mode)),y},[])},u.fromString=function(k,y){const N=function v(I){const k=[];for(let y=0;y<I.length;y++){const T=I[y];switch(T.mode){case o.NUMERIC:k.push([T,{data:T.data,mode:o.ALPHANUMERIC,length:T.length},{data:T.data,mode:o.BYTE,length:T.length}]);break;case o.ALPHANUMERIC:k.push([T,{data:T.data,mode:o.BYTE,length:T.length}]);break;case o.KANJI:k.push([T,{data:T.data,mode:o.BYTE,length:m(T.data)}]);break;case o.BYTE:k.push([{data:T.data,mode:o.BYTE,length:m(T.data)}])}}return k}($(k,g.isKanjiModeEnabled())),G=function j(I,k){const y={},T={start:{}};let N=["start"];for(let G=0;G<I.length;G++){const M=I[G],x=[];for(let P=0;P<M.length;P++){const C=M[P],S=""+G+P;x.push(S),y[S]={node:C,lastCount:0},T[S]={};for(let w=0;w<N.length;w++){const O=N[w];y[O]&&y[O].node.mode===C.mode?(T[O][S]=f(y[O].lastCount+C.length,C.mode)-f(y[O].lastCount,C.mode),y[O].lastCount+=C.length):(y[O]&&(y[O].lastCount=C.length),T[O][S]=f(C.length,C.mode)+4+o.getCharCountIndicator(C.mode,k))}}N=x}for(let G=0;G<N.length;G++)T[N[G]].end=0;return{map:T,table:y}}(N,y),M=h.find_path(G.map,"start","end"),x=[];for(let P=1;P<M.length-1;P++)x.push(G.table[M[P]].node);return u.fromArray(function t(I){return I.reduce(function(k,y){const T=k.length-1>=0?k[k.length-1]:null;return T&&T.mode===y.mode?(k[k.length-1].data+=y.data,k):(k.push(y),k)},[])}(x))},u.rawSplit=function(k){return u.fromArray($(k,g.isKanjiModeEnabled()))}},1794(A,u){let a;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];u.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return 4*r+17},u.getSymbolTotalCodewords=function(r){return o[r]},u.getBCHDigit=function(s){let r=0;for(;0!==s;)r++,s>>>=1;return r},u.setToSJISFunction=function(r){if("function"!=typeof r)throw new Error('"toSJISFunc" is not a valid function.');a=r}
1,u.isKanjiModeEnabled=function(){return typeof a<"u"},u.toSJIS=function(r){return a(r)}},4682(A,u){u.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}},2775(A,u,a){const o=a(1794),s=a(5970),r=a(9293),d=a(8124),c=a(4682),g=o.getBCHDigit(7973);function m(f,t){return d.getCharCountIndicator(f,t)+4}function b(f,t){let v=0;return f.forEach(function(j){const D=m(j.mode,t);v+=D+j.getBitsLength()}),v}u.from=function(t,v){return c.isValid(t)?parseInt(t,10):v},u.getCapacity=function(t,v,j){if(!c.isValid(t))throw new Error("Invalid QR Code version");typeof j>"u"&&(j=d.BYTE);const k=8*(o.getSymbolTotalCodewords(t)-s.getTotalCodewordsCount(t,v));if(j===d.MIXED)return k;const y=k-m(j,t);switch(j){case d.NUMERIC:return Math.floor(y/10*3);case d.ALPHANUMERIC:return Math.floor(y/11*2);case d.KANJI:return Math.floor(y/13);default:return Math.floor(y/8)}},u.getBestVersionForData=function(t,v){let j;const D=r.from(v,r.M);if(Array.isArray(t)){if(t.length>1)return function $(f,t){for(let v=1;v<=40;v++)if(b(f,v)<=u.getCapacity(v,t,d.MIXED))return v}(t,D);if(0===t.length)return 1;j=t[0]}else j=t;return function h(f,t,v){for(let j=1;j<=40;j++)if(t<=u.getCapacity(j,v,f))return j}(j.mode,j.getLength(),D)},u.getEncodedBits=function(t){if(!c.isValid(t)||t<7)throw new Error("Invalid QR Code version");let v=t<<12;for(;o.getBCHDigit(v)-g>=0;)v^=7973<<o.getBCHDigit(v)-g;return t<<12|v}},2719(A,u,a){const o=a(6138);u.render=function(c,l,g){let h=g,m=l;typeof h>"u"&&(!l||!l.getContext)&&(h=l,l=void 0),l||(m=function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),h=o.getOptions(h);const b=o.getImageWidth(c.modules.size,h),$=m.getContext("2d"),f=$.createImageData(b,b);return o.qrToImageData(f.data,c,h),function s(d,c,l){d.clearRect(0,0,c.width,c.height),c.style||(c.style={}),c.height=l,c.width=l,c.style.height=l+"px",c.style.width=l+"px"}($,m,b),$.putImageData(f,0,0),m},u.renderToDataURL=function(c,l,g){let h=g;return typeof h>"u"&&(!l||!l.getContext)&&(h=l,l=void 0),h||(h={}),u.render(c,l,h).toDataURL(h.type||"image/png",(h.rendererOpts||{}).quality)}},8136(A,u,a){const o=a(6138);function s(c,l){const g=c.a/255,h=l+'="'+c.hex+'"';return g<1?h+" "+l+'-opacity="'+g.toFixed(2).slice(1)+'"':h}function r(c,l,g){let h=c+l;return typeof g<"u"&&(h+=" "+g),h}u.render=function(l,g,h){const m=o.getOptions(g),b=l.modules.size,$=l.modules.data,f=b+2*m.margin,t=m.color.light.a?"<path "+s(m.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",v="<path "+s(m.color.dark,"stroke")+' d="'+function d(c,l,g){let h="",m=0,b=!1,$=0;for(let f=0;f<c.length;f++){const t=Math.floor(f%l),v=Math.floor(f/l);!t&&!b&&(b=!0),c[f]?($++,f>0&&t>0&&c[f-1]||(h+=b?r("M",t+g,.5+v+g):r("m",m,0),m=0,b=!1),t+1<l&&c[f+1]||(h+=r("h",$),$=0)):m++}return h}($,b,m.margin)+'"/>',I='<svg xmlns="http://www.w3.org/2000/svg" '+(m.width?'width="'+m.width+'" height="'+m.width+'" ':"")+'viewBox="0 0 '+f+" "+f+'" shape-rendering="crispEdges">'+t+v+"</svg>\n";return"function"==typeof h&&h(null,I),I}},6138(A,u){function a(o){if("number"==typeof o&&(o=o.toString()),"string"!=typeof o)throw new Error("Color should be defined as hex string");let s=o.slice().replace("#","").split("");if(s.length<3||5===s.length||s.length>8)throw new Error("Invalid hex color: "+o);(3===s.length||4===s.length)&&(s=Array.prototype.concat.apply([],s.map(function(d){return[d,d]}))),6===s.length&&s.push("F","F");const r=parseInt(s.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+s.slice(0,6).join("")}}u.getOptions=function(s){s||(s={}),s.color||(s.color={});const d=s.width&&s.width>=21?s.width:void 0;return{width:d,scale:d?4:s.scale||4,margin:typeof s.margin>"u"||null===s.margin||s.margin<0?4:s.margin,color:{dark:a(s.color.dark||"#000000ff"),light:a(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},u.getScale=function(s,r){return r.width&&r.width>=s+2*r.margin?r.width/(s+2*r.margin):r.scale},u.getImageWidth=function(s,r){const d=u.getScale(s,r);return Math.floor((s+2*r.margin)*d)},u.qrToImageData=function(s,r,d){const c=r.modules.size,l=r.modules.data,g=u.getScale(c,d),h=Math.floor((c+2*d.margin)*g),m=d.margin*g,b=[d.color.light,d.color.dark];for(let $=0;$<h;$++)for(let f=0;f<h;f++){let t=4*($*h+f),v=d.color.light;$>=m&&f>=m&&$<h-m&&f<h-m&&(v=b[l[Math.floor(($-m)/g)*c+Math.floor((f-m)/g)]?1:0]),s[t++]=v.r,s[t++]=v.g,s[t++]=v.b,s[t]=v.a}}}}]);
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.