(self.webpackChunkbackoffice=self.webpackChunkbackoffice||[]).push([[8792],{49241:(fe,J,r)=>{"use strict";r.d(J,{c:()=>t});const t={API_EXPORT:"https://export-dot-shippeodatalake.appspot.com",API_TIMEZONE_URL:"//tz.shippeo.io",API_URL:"https://sf.core.prod.shippeo.com/api",API_V2_URL:"${API_V2_URL}",API_ZENDESK_URL:"//sf.core.prod.shippeo.com/client/sso/connect",APP_NAME:"backOffice",ATATUS_KEY:"3309707b5e8345f4bec6ff0d08aeda4a",AXEPTIO_CLIENT_ID:"62723ba1d222aaa6bd3c8174",ELASTIC_BACKBONE_URL:"https://backbone-gke-logs-europe-west1.kb.europe-west1.gcp.cloud.es.io:9243",ELASTIC_OCEAN_LOGS_VIEW_ID:"c0132160-9bf7-11ed-b42c-6bc31d88cd2d",ELASTIC_SF_URL:"https://prod-sf-europe-west1.kb.europe-west1.gcp.cloud.es.io:9243",FRONT_APP_URL:"https://web.shippeo.io",GOOGLE_ANALYTICS_CONTAINER_ID:"GTM-NZZC2F9",GOOGLE_MAP_KEY:"AIzaSyD0mjYrav7DioNOgxoCXuqXULTDVLPIBfw",JIMO_KEY:"23beadd5-5595-4eea-af44-822533b77350",LAUNCHDARKLY_API_URL:"https://launchdarkly.core.prod.shippeo.com",LAUNCHDARKLY_CLIENT:"634e6d3987e7fb10f19bfdcb",LOGO_LONG_FORMAT_URL:"https://static.shippeo.com/shippeo-assets/Logo-vector.svg",NOTIFICATION_API_URL:"https://notifications.core.prod.shippeo.com/api",OAUTH_CLIENT_ID:"4571962d-46de-4590-b196-2d46deb59066",OAUTH_ISSUER:"https://auth.shippeo.com/auth/main/oidc",PAGE_TITLE:"{title} - Shippeo Backoffice",PLATFORM:"prod",SALESFORCE_URL:"https://shippeo.lightning.force.com",STATIC_ASSETS_URL:"https://static.shippeo.com/",TABLEAU_URL:"https://tableau.shippeo.com",production:!0}},67607:(fe,J,r)=>{"use strict";var t=r(86388);(ne=r(87593),ne.keys().map(we=>{let ge="/";typeof window>"u"&&(ge=r(92130).sep);const ke=we.split(ge);return{name:ke[ke.length-1].replace(/(?:^[./]*\/|\.[^.]+$)/g,""),path:we,type:ke[ke.length-2]}})).sort((ne,we)=>ne.name>we.name?1:ne.name<we.name?-1:0);var ne,s=r(48891),i=r(53071),p=r(43126),f=r(51359),N=r(82503),A=r.n(N),I=r(74221),b=r(91167),l=r(36287),R=function(ne){return ne.InvalidFormat="INVALID_FORMAT",ne.MissingRequiredProperty="OBJECT_MISSING_REQUIRED_PROPERTY",ne}(R||{});class v{constructor(we){this.name=we.errorKey,this.value=we.errorValue}isEqual(we){return this.name===we}}const h=new class E extends l.OR${register(){this.add(new v({errorKey:R.InvalidFormat,errorValue:(0,b.x)("URL is not valid")})).add(new v({errorKey:R.MissingRequiredProperty,errorValue:(0,b.x)("This field is required")}))}},C=()=>h;var M=r(54460),F=r(10936),V=r(53220),j=r(93658),Y=r(18306);function a(ne,we){1&ne&&(s.j41(0,"span",6),s.EFF(1,"Optional"),s.k0s())}function P(ne,we){if(1&ne&&(s.j41(0,"span",8),s.nrm(1,"sh-svg-icon",9),s.j41(2,"span",10),s.EFF(3),s.k0s()()),2&ne){const ge=we.$implicit;s.R7$(),s.Y8G("isError",!0),s.R7$(2),s.SpI(" ",ge," ")}}function u(ne,we){if(1&ne&&(s.qex(0),s.DNE(1,P,4,2,"span",7),s.bVm()),2&ne){const ge=s.XpG();s.R7$(),s.Y8G("ngForOf",ge.errorMessages)}}let z=(()=>{class ne extends f.mW{constructor(){super()}ngOnInit(){this.addValidatorsInputField()}getInputType(){return this.isIntegerType()?"number":super.getInputType()}ngAfterViewInit(){super.ngAfterViewInit(),this.handleCustomErrorMessage()}ngOnDestroy(){this.errorSubscription&&!this.errorSubscription.closed&&this.errorSubscription.unsubscribe()}addValidatorsInputField(){this.isIntegerType()&&(this.control.addValidators([I.Ne.min(this.schema.minimum),I.Ne.max(this.schema.maximum)]),this.control.updateValueAndValidity())}handleCustomErrorMessage(){const ge=C();this.errorSubscription=this.formProperty.errorsChanges.subscribe(Ne=>{Ne&&(this.errorMessages=[ge.get(Ne[0].code).value])})}isIntegerType(){return"integer"===this.schema.type}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275cmp=s.VBU({type:ne,selectors:[["sh-input-widget"]],inputs:{control:"control",errorMessages:"errorMessages",formProperty:"formProperty",id:"id",name:"name",schema:"schema"},features:[s.Vt3],decls:7,vars:10,consts:[["data-qa","organization-name-field",1,"form-group"],[1,"d-flex","justify-content-between"],[1,"form-control-label"],["class","text-gray-500 f-sm fw-medium","translate","",4,"ngIf"],[3,"disabled","formControl","id","name","placeholder","type"],[4,"ngIf"],["translate","",1,"text-gray-500","f-sm","fw-medium"],["class","text-red-700 error-info",4,"ngFor","ngForOf"],[1,"text-red-700","error-info"],["color","danger","name","close-circle","size","sm",3,"isError"],["translate",""]],template:function(Ne,ke){1&Ne&&(s.j41(0,"div",0)(1,"div",1)(2,"label",2),s.EFF(3),s.k0s(),s.DNE(4,a,2,0,"span",3),s.k0s(),s.nrm(5,"shui-input",4),s.DNE(6,u,2,1,"ng-container",5),s.k0s()),2&Ne&&(s.R7$(2),s.BMQ("for",ke.id),s.R7$(),s.JRh(ke.schema.title),s.R7$(),s.Y8G("ngIf",!ke.schema.isRequired),s.R7$(),s.Y8G("disabled",ke.schema.readOnly)("formControl",ke.control)("id",ke.id)("name",ke.name)("placeholder",ke.schema.placeholder)("type",ke.getInputType()),s.R7$(),s.Y8G("ngIf",ke.control.touched))},dependencies:[M.Sq,M.bT,F.BC,V.Mm,F.l_,j.D,Y.Sj],encapsulation:2})}return ne})();function H(ne,we){if(1&ne&&(s.j41(0,"legend"),s.EFF(1),s.k0s()),2&ne){const ge=s.XpG().$implicit;s.R7$(),s.JRh(ge.title)}}function x(ne,we){if(1&ne&&(s.j41(0,"div"),s.EFF(1),s.k0s()),2&ne){const ge=s.XpG().$implicit;s.R7$(),s.JRh(ge.description)}}function Q(ne,we){if(1&ne&&(s.j41(0,"div",4),s.nrm(1,"sf-form-element",5),s.k0s()),2&ne){const ge=we.$implicit,Ne=s.XpG(2);s.R7$(),s.Y8G("formProperty",Ne.formProperty.getProperty(ge))}}function O(ne,we){if(1&ne&&(s.j41(0,"fieldset"),s.DNE(1,H,2,1,"legend",1)(2,x,2,1,"div",1),s.j41(3,"div",2),s.DNE(4,Q,2,1,"div",3),s.k0s()()),2&ne){const ge=we.$implicit;s.R7$(),s.Y8G("ngIf",ge.title),s.R7$(),s.Y8G("ngIf",ge.description),s.R7$(2),s.Y8G("ngForOf",ge.fields)}}let $=(()=>{class ne extends f.ug{constructor(){super()}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275cmp=s.VBU({type:ne,selectors:[["sh-input-widget"]],inputs:{control:"control",errorMessages:"errorMessages",formProperty:"formProperty",id:"id",name:"name",schema:"schema"},features:[s.Vt3],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"row"],["class","col-5",4,"ngFor","ngForOf"],[1,"col-5"],[3,"formProperty"]],template:function(Ne,ke){1&Ne&&s.DNE(0,O,5,3,"fieldset",0),2&Ne&&s.Y8G("ngForOf",ke.formProperty.schema.fieldsets)},dependencies:[M.Sq,M.bT,f.Ad],encapsulation:2})}return ne})();var X=r(55567);function Z(ne,we){if(1&ne&&(s.j41(0,"span",5),s.nrm(1,"sh-svg-icon",6),s.j41(2,"span",7),s.EFF(3),s.k0s()()),2&ne){const ge=we.$implicit;s.R7$(),s.Y8G("isError",!0),s.R7$(2),s.SpI(" ",ge," ")}}function He(ne,we){if(1&ne&&(s.qex(0),s.DNE(1,Z,4,2,"span",4),s.bVm()),2&ne){const ge=s.XpG();s.R7$(),s.Y8G("ngForOf",ge.errorMessages)}}let L=(()=>{class ne extends f.mW{constructor(){super()}ngAfterViewInit(){super.ngAfterViewInit(),this.formOptions=this.getFormOptions(),this.control.setValue(this.control.value||this.getFormOptions().find(ge=>ge.isDefault)?.value||""),this.handleCustomErrorMessage()}ngOnDestroy(){this.errorSubscription&&!this.errorSubscription.closed&&this.errorSubscription.unsubscribe()}getFormOptions(){return this.schema.oneOf?this.schema.oneOf.map(ge=>new l._BQ(ge.name,ge.enum[0],ge.isDefault)):this.schema.enum.map(ge=>new l._BQ(ge,ge))}handleCustomErrorMessage(){const ge=C();this.errorSubscription=this.formProperty.errorsChanges.subscribe(Ne=>{Ne&&(this.errorMessages=[ge.get(Ne[0].code).value])})}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275cmp=s.VBU({type:ne,selectors:[["sh-select-widget"]],inputs:{control:"control",errorMessages:"errorMessages",formProperty:"formProperty",id:"id",name:"name",schema:"schema"},features:[s.Vt3],decls:5,vars:11,consts:[[1,"form-group"],[1,"form-control-label"],["bindLabel","label","bindValue","value",3,"clearable","clearOnBackspace","disabled","formControl","id","items","placeholder","searchable"],[4,"ngIf"],["class","text-red-700 error-info",4,"ngFor","ngForOf"],[1,"text-red-700","error-info"],["color","danger","name","close-circle","size","sm",3,"isError"],["translate",""]],template:function(Ne,ke){1&Ne&&(s.j41(0,"div",0)(1,"label",1),s.EFF(2),s.k0s(),s.nrm(3,"ng-select",2),s.DNE(4,He,2,1,"ng-container",3),s.k0s()),2&Ne&&(s.R7$(),s.BMQ("for",ke.id),s.R7$(),s.JRh(ke.schema.title),s.R7$(),s.Y8G("clearable",!1)("clearOnBackspace",!1)("disabled",ke.schema.readOnly)("formControl",ke.control)("id",ke.id)("items",ke.formOptions)("placeholder",ke.schema.placeholder)("searchable",!1),s.R7$(),s.Y8G("ngIf",ke.control.touched))},dependencies:[M.Sq,M.bT,F.BC,V.Mm,X.vr,F.l_,j.D]})}return ne})();class Ce extends f.l{constructor(){super(),this.register("string",z),this.register("integer",z),this.register("password",z),this.register("select",L),this.register("object",$),A().registerFormat("http-url",we=>!I.Ne.httpUrl({value:we}))}}var ce=r(76803),me=r(70272),_e=r(44687);function Me(ne,we){1&ne&&(s.j41(0,"span",9),s.EFF(1,"Optional"),s.k0s())}function Ge(ne,we){1&ne&&s.nrm(0,"shui-svg-icon",10)}function Ue(ne,we){1&ne&&s.nrm(0,"shui-svg-icon",11)}function ze(ne,we){if(1&ne&&(s.j41(0,"label",12),s.EFF(1),s.k0s()),2&ne){const ge=s.XpG();s.R7$(),s.JRh(ge.errorMessage)}}let k=(()=>{class ne extends f.mW{get inputType(){return this.getInputType()}get integerMinValue(){return this.isIntegerType()?this.schema.minimum:void 0}get integerMaxValue(){return this.isIntegerType()?this.schema.minimum:void 0}constructor(){super()}getInputType(){return this.isIntegerType()?"number":super.getInputType()}ngAfterViewInit(){super.ngAfterViewInit(),this.handleCustomErrorMessage()}ngOnDestroy(){this.errorSubscription&&!this.errorSubscription.closed&&this.errorSubscription.unsubscribe()}handleCustomErrorMessage(){const ge=C();this.errorSubscription=this.formProperty.errorsChanges.subscribe(Ne=>{this.errorMessage=Ne?this.errorMessage=ge.get(Ne[0].code).value:void 0})}isIntegerType(){return"integer"===this.schema.type}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275cmp=s.VBU({type:ne,selectors:[["sh-new-input-widget"]],features:[s.Vt3],decls:10,vars:16,consts:[[1,"mb-4"],[1,"label-container","fw-medium"],[1,"text-gray-700"],["class","text-gray-500 f-sm","translate","",4,"ngIf"],[1,"position-relative"],[3,"formControl","id","name","placeholder","type"],["class","trailing-icon","color","green-500","name","check-circle","size","sm","type","solid",4,"ngIf"],["class","trailing-icon","color","red-500","name","exclamation-circle","size","sm","type","solid",4,"ngIf"],["class","helper",4,"ngIf"],["translate","",1,"text-gray-500","f-sm"],["color","green-500","name","check-circle","size","sm","type","solid",1,"trailing-icon"],["color","red-500","name","exclamation-circle","size","sm","type","solid",1,"trailing-icon"],[1,"helper"]],template:function(Ne,ke){1&Ne&&(s.j41(0,"div",0)(1,"span",1)(2,"label",2),s.EFF(3),s.k0s(),s.DNE(4,Me,2,0,"span",3),s.k0s(),s.j41(5,"div",4),s.nrm(6,"input",5),s.DNE(7,Ge,1,0,"shui-svg-icon",6)(8,Ue,1,0,"shui-svg-icon",7)(9,ze,2,1,"label",8),s.k0s()()),2&Ne&&(s.R7$(3),s.JRh(ke.schema.title),s.R7$(),s.Y8G("ngIf",!ke.schema.isRequired),s.R7$(2),s.AVh("success",ke.control.touched&&!ke.errorMessage)("error",ke.control.touched&&ke.errorMessage),s.Y8G("formControl",ke.control)("id",ke.id)("name",ke.name)("placeholder",ke.schema.placeholder?ke.schema.placeholder:"")("type",ke.inputType),s.BMQ("max",ke.integerMaxValue)("min",ke.integerMinValue),s.R7$(),s.Y8G("ngIf",ke.control.touched&&!ke.errorMessage),s.R7$(),s.Y8G("ngIf",ke.control.touched&&ke.errorMessage),s.R7$(),s.Y8G("ngIf",ke.control.touched&&ke.errorMessage))},dependencies:[M.bT,F.me,F.BC,V.Mm,F.l_,Y.DM],styles:[".label-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.label-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;margin-bottom:.25rem}shui-svg-icon[_ngcontent-%COMP%]{position:absolute;top:11px}shui-svg-icon.leading-icon[_ngcontent-%COMP%]{left:1rem}shui-svg-icon.trailing-icon[_ngcontent-%COMP%]{right:1rem}input[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;border:1px solid #d1d5db;border-radius:6px;padding:.5rem .75rem;width:100%}input[_ngcontent-%COMP%]:focus{outline-color:#1e59c7}input.error[_ngcontent-%COMP%]{outline:#fca5a5 auto 2px}input.success[_ngcontent-%COMP%]{outline:#6ee7b7 auto 2px}.helper[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;color:#6b7280;margin-top:.5rem}"]})}return ne})();function We(ne,we){if(1&ne&&(s.j41(0,"legend"),s.EFF(1),s.k0s()),2&ne){const ge=s.XpG().$implicit;s.R7$(),s.JRh(ge.title)}}function ve(ne,we){if(1&ne&&(s.j41(0,"div"),s.EFF(1),s.k0s()),2&ne){const ge=s.XpG().$implicit;s.R7$(),s.JRh(ge.description)}}function S(ne,we){if(1&ne&&(s.j41(0,"div",4),s.nrm(1,"sf-form-element",5),s.k0s()),2&ne){const ge=we.$implicit,Ne=s.XpG(2);s.R7$(),s.Y8G("formProperty",Ne.formProperty.getProperty(ge))}}function ue(ne,we){if(1&ne&&(s.j41(0,"fieldset"),s.DNE(1,We,2,1,"legend",1)(2,ve,2,1,"div",1),s.j41(3,"div",2),s.DNE(4,S,2,1,"div",3),s.k0s()()),2&ne){const ge=we.$implicit;s.R7$(),s.Y8G("ngIf",ge.title),s.R7$(),s.Y8G("ngIf",ge.description),s.R7$(2),s.Y8G("ngForOf",ge.fields)}}let d=(()=>{class ne extends f.ug{constructor(){super()}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275cmp=s.VBU({type:ne,selectors:[["sh-new-input-widget"]],inputs:{control:"control",errorMessages:"errorMessages",formProperty:"formProperty",id:"id",name:"name",schema:"schema"},features:[s.Vt3],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"row"],["class","col-6",4,"ngFor","ngForOf"],[1,"col-6"],[3,"formProperty"]],template:function(Ne,ke){1&Ne&&s.DNE(0,ue,5,3,"fieldset",0),2&Ne&&s.Y8G("ngForOf",ke.formProperty.schema.fieldsets)},dependencies:[M.Sq,M.bT,f.Ad],styles:[".row[_ngcontent-%COMP%]   .col-6[_ngcontent-%COMP%]:nth-child(odd):not(:only-of-type){padding-right:1.5rem}"]})}return ne})();var Re=r(91039);function he(ne,we){if(1&ne&&s.nrm(0,"shui-svg-icon",11),2&ne){const ge=s.XpG(2);s.Y8G("name","check")("type",ge.checkIconType)}}function oe(ne,we){if(1&ne){const ge=s.RV6();s.j41(0,"button",8),s.bIt("click",function(){const ke=s.eBV(ge).$implicit,Ut=s.XpG();return s.Njj(Ut.onValueChange(ke))}),s.j41(1,"span",9),s.EFF(2),s.k0s(),s.DNE(3,he,1,2,"shui-svg-icon",10),s.k0s()}if(2&ne){const ge=we.$implicit,Ne=s.XpG();s.AVh("selected",ge.value===Ne.control.value),s.R7$(2),s.JRh(ge.label),s.R7$(),s.Y8G("ngIf",ge.value===Ne.control.value)}}let qe=(()=>{class ne extends f.mW{constructor(){super(),this.checkIconType=Re.Oo.Solid}ngAfterViewInit(){super.ngAfterViewInit(),this.formOptions=this.getFormOptions(),this.control.setValue(this.control.value||this.getFormOptions().find(ge=>ge.isDefault)?.value||""),this.handleCustomErrorMessage()}ngOnDestroy(){this.errorSubscription&&!this.errorSubscription.closed&&this.errorSubscription.unsubscribe()}onValueChange(ge){this.control.setValue(ge.value)}getFormOptions(){return this.schema.oneOf?this.schema.oneOf.map(ge=>new l._BQ(ge.name,ge.enum[0],ge.isDefault)):this.schema.enum.map(ge=>new l._BQ(ge,ge))}handleCustomErrorMessage(){const ge=C();this.errorSubscription=this.formProperty.errorsChanges.subscribe(Ne=>{Ne&&(this.errorMessages=[ge.get(Ne[0].code).value])})}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275cmp=s.VBU({type:ne,selectors:[["sh-new-select-widget"]],inputs:{control:"control",errorMessages:"errorMessages",formProperty:"formProperty",id:"id",name:"name",schema:"schema"},features:[s.Vt3],decls:10,vars:8,consts:[["myDrop","ngbDropdown"],["ngbDropdown",""],[1,"f-sm","mb-1"],["id","dropdownManual","ngbDropdownAnchor","",1,"select-button",3,"focus"],[1,"double-chevron"],["color","gray-400",3,"name"],["ngbDropdownMenu","",1,"select-menu"],["class","d-flex justify-content-between","ngbDropdownItem","",3,"selected","click",4,"ngFor","ngForOf"],["ngbDropdownItem","",1,"d-flex","justify-content-between",3,"click"],[1,"m-0"],["color","shippeo-600",3,"name","type",4,"ngIf"],["color","shippeo-600",3,"name","type"]],template:function(Ne,ke){if(1&Ne){const Ut=s.RV6();s.j41(0,"div",1,0)(2,"h5",2),s.EFF(3),s.k0s(),s.j41(4,"button",3),s.bIt("focus",function(){s.eBV(Ut);const lt=s.sdS(1);return s.Njj(lt.open())}),s.EFF(5),s.j41(6,"div",4),s.nrm(7,"shui-svg-icon",5),s.k0s()(),s.j41(8,"div",6),s.DNE(9,oe,4,4,"button",7),s.k0s()()}2&Ne&&(s.R7$(3),s.JRh(ke.schema.title),s.R7$(),s.AVh("placeholder",!ke.control.value)("justify-content-end",!ke.control.value&&!ke.schema.placeholder),s.R7$(),s.SpI(" ",(null==ke.control?null:ke.control.value)||ke.schema.placeholder," "),s.R7$(2),s.Y8G("name","selector"),s.R7$(2),s.Y8G("ngForOf",ke.formOptions))},dependencies:[M.Sq,M.bT,ce.tg,ce.E5,ce.U0,ce._H,ce.Eu,Y.DM],styles:[".select-button[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;align-items:center;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 1px 2px #0000000d;box-sizing:border-box;display:flex;justify-content:space-between;min-width:320px;padding:.5rem .75rem;width:100%}.select-button[_ngcontent-%COMP%]:after{display:none}.dropdown-item[_ngcontent-%COMP%]{padding:.75rem 1.25rem .75rem .75rem}.placeholder[_ngcontent-%COMP%]{color:#6b7280}.select-menu[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem;min-width:320px}.select-menu[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.selected[_ngcontent-%COMP%]{font-weight:500}"]})}return ne})();class w extends f.l{constructor(){super(),this.register("string",k),this.register("integer",k),this.register("password",k),this.register("select",qe),this.register("object",d),A().registerFormat("http-url",we=>!I.Ne.httpUrl({value:we}))}}let re=(()=>{class ne{static forRoot(ge=!1){return{ngModule:ne,providers:[...f.Ux.forRoot().providers,ge?{provide:f.Y8,useClass:w}:{provide:f.Y8,useClass:Ce}]}}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275mod=s.$C({type:ne});static#i=this.\u0275inj=s.G2t({imports:[M.MD,F.YN,_e.LP,ce.zH,X.MQ,F.X1,f.Ux,Y.Ad,me.cq,Y.Sj]})}return ne})();var le=r(67233),Ae=r(49241),y=r(34133);let Le=(()=>{class ne{static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275cmp=s.VBU({type:ne,selectors:[["back-root"]],decls:1,vars:0,template:function(Ne,ke){1&Ne&&s.nrm(0,"router-outlet")},dependencies:[y.n3],encapsulation:2})}return ne})();var Ke=r(30696),ht=r(92997);let Qe=(()=>{class ne{constructor(ge){this.router=ge}canActivate(){const ge=this.router.getCurrentNavigation()?.extras;return!(!ge||!ge.state?.error)}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)(s.KVO(y.Ix))};static#t=this.\u0275prov=s.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})();var ye=r(63016),Ve=r(22867);let g=(()=>{class ne{constructor(ge,Ne){this.router=ge,this.userSessionService=Ne}canActivate(){return this.userSessionService.onLoaded().pipe((0,Ve.n)(({user:ge})=>this.validateBackofficeAccessOrThrow(ge)))}validateBackofficeAccessOrThrow(ge){if(!(ge.isAdmin()||ge.isSuperAdmin()||ge.isSuperAdminNotification())){const Ne={description:(0,b.x)("[[ Error access ]] You do not have the necessary rights to access this application"),displayLogoutButton:!0,logoutAfterMs:5e3};throw this.router.navigate(["error"],{state:{error:Ne}}),Error("Unauthorized")}return(0,ye.of)(!0)}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)(s.KVO(y.Ix),s.KVO(Ke.hG))};static#t=this.\u0275prov=s.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})();const K=[{canActivate:[p.q_,Ke.fL,g],loadChildren:()=>r.e(3257).then(r.bind(r,33257)).then(ne=>ne.PagesModule),path:""},{children:[{canActivate:[p.v6],loadChildren:()=>r.e(7487).then(r.bind(r,37487)).then(ne=>ne.LoginPageModule),path:"login"},{canActivate:[p.fz],component:ht.dr,data:{checkFeatureFlag:!1},path:"sso/:loginHint"},{path:"**",pathMatch:"full",redirectTo:"login"}],path:"auth",title:(0,b.x)("Sign in")},{canActivate:[Qe],loadChildren:()=>r.e(270).then(r.bind(r,270)).then(ne=>ne.ErrorModule),path:"error"}];let ae=(()=>{class ne{static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275mod=s.$C({type:ne});static#i=this.\u0275inj=s.G2t({providers:[p.fF,{provide:y.Oy,useClass:p.fF}],imports:[y.iI.forRoot(K,{anchorScrolling:"enabled",onSameUrlNavigation:"reload"}),y.iI]})}return ne})();var Be=r(75940),et=r(65985),ft=r(76240);const je=Ae.c.production?[]:[function Dt(ne){return(0,ft.w)({collapsed:!0})(ne)}],Ie={};let Tt=(()=>{class ne{static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275mod=s.$C({type:ne});static#i=this.\u0275inj=s.G2t({imports:[et.md.forRoot(Ie,{metaReducers:je,runtimeChecks:{strictActionImmutability:!1,strictStateImmutability:!1}}),Be.Vm.forRoot([])]})}return ne})();var It=r(65083);let Lt=(()=>{class ne{constructor(ge){if(ge)throw new Error("OrganizationEntitiesModule is already loaded. Import it in the AppModule only")}static forRoot(){return{ngModule:ne,providers:[It.M]}}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)(s.KVO(ne,12))};static#t=this.\u0275mod=s.$C({type:ne});static#i=this.\u0275inj=s.G2t({})}return ne})();var Fe=r(1091),pt=r(45275);r(10630),r(59703);let T=(()=>{class ne{constructor(ge){(0,pt.Jc)(ge,"CoreModule")}static#e=this.\u0275fac=function(Ne){return new(Ne||ne)(s.KVO(ne,12))};static#t=this.\u0275mod=s.$C({type:ne});static#i=this.\u0275inj=s.G2t({imports:[_e.LP.forRoot({jsonBaseUrl:Ae.c.STATIC_ASSETS_URL,supportedLanguages:[Fe.JA.Dutch,Fe.JA.English,Fe.JA.French,Fe.JA.German,Fe.JA.Italian,Fe.JA.Polish,Fe.JA.Portugues,Fe.JA.Romanian,Fe.JA.Spanish]}),p.Ui.forRoot(Ae.c),Lt.forRoot()]})}return ne})();r(70847);let Xe=(()=>{class ne{static#e=this.\u0275fac=function(Ne){return new(Ne||ne)};static#t=this.\u0275mod=s.$C({type:ne,bootstrap:[Le]});static#i=this.\u0275inj=s.G2t({providers:[p.v6,{provide:i.PD,useValue:localStorage}],imports:[ae,Tt,T,re.forRoot(),le.sT.forRoot([le.y9.setup(Ae.c.LAUNCHDARKLY_CLIENT),le.qy.setup(Ae.c.ATATUS_KEY),le.u5.setup(Ae.c.GOOGLE_ANALYTICS_CONTAINER_ID),le.M7.setup(Ae.c.JIMO_KEY),le.M.setup()])]})}return ne})();Ae.c.production&&(0,s.SmG)(),t.sG().bootstrapModule(Xe).catch(ne=>console.log(ne))},53503:(fe,J,r)=>{"use strict";r.d(J,{$y:()=>E,Ul:()=>h,Vj:()=>t,Gn:()=>o,Xy:()=>j,RJ:()=>H,Ve:()=>V,NB:()=>e,qY:()=>Q,f6:()=>Y,iz:()=>C,Bl:()=>a,ax:()=>M,td:()=>F,wL:()=>P,Kf:()=>Z,rO:()=>L,sT:()=>Ce,bg:()=>ce,PS:()=>me,Cl:()=>_e,CL:()=>Ge,tE:()=>Ue,QO:()=>k,Jk:()=>Dt,xS:()=>ue,ep:()=>u,Hg:()=>d,ey:()=>he,FL:()=>Qe,C8:()=>qe,Mo:()=>y,fd:()=>w,VU:()=>re,zJ:()=>Ae,Us:()=>Le,ch:()=>Ke,CU:()=>ze,lL:()=>We,Ml:()=>le,LV:()=>Re,JV:()=>oe,u5:()=>ft,IS:()=>ht,VX:()=>Tt,YW:()=>It,D1:()=>Lt});var t=function(B){return B.Today="today",B.Yesterday="yesterday",B.Tomorrow="tomorrow",B.CurrentWeek="currentWeek",B.CurrentMonth="currentMonth",B.PastWeek="pastWeek",B.PastMonth="pastMonth",B.Custom="custom",B}(t||{}),e=function(B){return B.Raw="raw",B.Timestamp="timestamp",B}(e||{}),o=function(B){return B.OnTime="onTime",B.Delay="delay",B.Late="late",B.Custom="custom",B}(o||{}),s=r(72402),i=r(25464),p=r(96906),f=r(83726),N=r(71532),A=r(35097),I=r(31873),b=r(50852),l=r(36287);const R=(0,s.k)((0,i.o)(Date.now()),1),v=(0,p.a)((0,i.o)(Date.now()),1),E={[t.Today]:{analytics:l.lB_.FilterDatePresetToday,dayEnd:0,dayStart:0,presetName:t.Today},[t.Yesterday]:{analytics:l.lB_.FilterDatePresetYesterday,dayEnd:-1,dayStart:-1,presetName:t.Yesterday},[t.Tomorrow]:{analytics:l.lB_.FilterDatePresetTomorrow,dayEnd:1,dayStart:1,presetName:t.Tomorrow},[t.PastWeek]:{analytics:l.lB_.FilterDatePresetPastWeek,dayEnd:(0,f.c)((0,N.g)(R),Date.now()),dayStart:(0,f.c)((0,A.b)(R),Date.now()),presetName:t.PastWeek},[t.CurrentWeek]:{analytics:l.lB_.FilterDatePresetCurrentWeek,dayEnd:(0,f.c)((0,N.g)(Date.now()),Date.now()),dayStart:(0,f.c)((0,A.b)(Date.now()),Date.now()),presetName:t.CurrentWeek},[t.PastMonth]:{analytics:l.lB_.FilterDatePresetPastMonth,dayEnd:(0,f.c)((0,I.p)(v),Date.now()),dayStart:(0,f.c)((0,b.w)(v),Date.now()),presetName:t.PastMonth},[t.CurrentMonth]:{analytics:l.lB_.FilterDatePresetCurrentMonth,dayEnd:(0,f.c)((0,I.p)(Date.now()),Date.now()),dayStart:(0,f.c)((0,b.w)(Date.now()),Date.now()),presetName:t.CurrentMonth}},h=[{max:0,min:0,presetName:o.OnTime},{max:3,min:1,presetName:o.Delay},{max:void 0,min:4,presetName:o.Late}];var C=function(B){return B.Anomalies="anomalies",B.CargoType="cargo",B.CargoDescription="cargo-description",B.Chartering="chartering",B.ConsignmentReference="consignment-reference",B.ContainerEtaDelay="container-eta-delay",B.ContainerEtdDelay="container-etd-delay",B.ContainerOcean="container-ocean",B.ContainerStatusUnchanged="container-status-unchanged",B.ContractNumber="contract-number",B.DeliveryDate="delivery-date",B.DeliverySite="delivery-site",B.Discussion="discussion",B.Document="document",B.Features="features",B.GoodsRealQuantities="goods-real-quantities",B.IsArchived="isArchived",B.LoadingDate="loading-date",B.LoadingSite="loading-site",B.OceanEta="ocean-eta",B.OceanEtd="ocean-etd",B.OceanStatus="ocean-status",B.OrderClient="order-client",B.ParcelStatus="parcel-status",B.Resource="resource",B.ResourceType="resource-type",B.RoadEta="road-eta",B.RoadStatus="road-status",B.Shipper="shipper",B.Tags="tags",B.TrackingDeliveryDate="tracking-delivery-date",B.TrackingDeliverySite="tracking-delivery-site",B.TrackingEta="tracking-eta",B.TrackingLoadingDate="tracking-loading-date",B.TrackingLoadingSite="tracking-loading-site",B.TransportMode="transport-mode",B.TransportType="transport-type",B}(C||{}),M=function(B){return B.Anomalies="anomalies",B.CargoDescription="cargo-description",B.Chartering="chartering",B.Client="client",B.ConsignmentReference="consignment-reference",B.ContractNumber="contract-number",B.DeliveryDate="delivery-date",B.DeliverySite="delivery-site",B.Discussion="discussion",B.Document="document",B.GoodsRealQuantitiesStatus="goods-real-quantities-status",B.Incidents="incidents",B.IsArchived="isArchived",B.LoadingDate="loading-date",B.LoadingSite="loading-site",B.Resource="resource",B.RoadEta="road-eta",B.RoadStatus="road-status",B.Shipper="shipper",B.Tags="tags",B.TransportMode="transport-mode",B.TransportType="transport-type",B}(M||{});const F={[C.RoadStatus]:l.lB_.FilterCategoryStatusExpand,[C.OceanStatus]:l.lB_.FilterCategoryStatusExpand};var V=function(B){return B.Classic="classic-mode",B.Checkbox="checkbox-mode",B}(V||{}),j=function(B){return B.Map="map",B.Orders="orders",B.Tours="tours",B}(j||{}),Y=function(B){return B.Carrier="order-carrier",B.Customer="order-customer",B.Dates="order-dates",B.Delay="order-delay",B.Features="order-features",B.Goods="order-goods",B.Other="order-other",B.Problems="order-problems",B.References="order-references",B.Resource="order-resource",B.Shipper="order-shipper",B.Sites="order-sites",B.Status="order-status",B.Tags="order-tags",B.TransportMode="order-transport-mode",B.TransportType="order-transport-type",B}(Y||{}),a=function(B){return B.Incidents="tour-incidents",B.Delay="tour-delay",B.TransportMode="tour-transport-mode",B.Tags="tour-tags",B.Status="tour-status",B.Problems="tour-problems",B.Sites="tour-sites",B.Dates="tour-dates",B.References="tour-references",B.Resource="tour-resource",B.Shipper="tour-shipper",B.Carrier="tour-carrier",B.Features="tour-features",B.Goods="tour-goods",B}(a||{});const P={[Y.Carrier]:l.lB_.FilterCategoryCarrierToggle,[Y.Customer]:l.lB_.FilterCategoryCustomerToggle,[Y.Dates]:l.lB_.FilterCategoryDatesToggle,[Y.Delay]:l.lB_.FilterCategoryDelayToggle,[Y.Features]:l.lB_.FilterCategoryFeaturesToggle,[Y.Goods]:l.lB_.FilterCategoryGoodsToggle,[Y.Problems]:l.lB_.FilterCategoryIncidentsToggle,[Y.References]:l.lB_.FilterCategoryReferencesToggle,[Y.Resource]:l.lB_.FilterCategoryResourceToggle,[Y.Shipper]:l.lB_.FilterCategoryShipperToggle,[Y.Sites]:l.lB_.FilterCategorySitesToggle,[Y.Status]:l.lB_.FilterCategoryStatusToggle,[Y.Tags]:l.lB_.FilterCategoryTagsToggle,[Y.TransportMode]:l.lB_.FilterCategoryTransportModeToggle,[Y.TransportType]:l.lB_.FilterCategoryTransportTypeToggle},u={[C.RoadEta]:Y.Delay,[C.TrackingEta]:Y.Delay,[C.ContainerOcean]:Y.Delay,[C.RoadStatus]:Y.Status,[C.ParcelStatus]:Y.Status,[C.OceanStatus]:Y.Status,[C.ContainerStatusUnchanged]:Y.Status,[C.LoadingDate]:Y.Dates,[C.TrackingLoadingDate]:Y.Dates,[C.DeliveryDate]:Y.Dates,[C.TrackingDeliveryDate]:Y.Dates,[C.LoadingSite]:Y.Sites,[C.TrackingLoadingSite]:Y.Sites,[C.DeliverySite]:Y.Sites,[C.TrackingDeliverySite]:Y.Sites,[C.Anomalies]:Y.Problems,[C.Chartering]:Y.Carrier,[C.Shipper]:Y.Shipper,[C.Resource]:Y.Resource,[C.Tags]:Y.Tags,[C.GoodsRealQuantities]:Y.Goods,[C.CargoDescription]:Y.Goods,[C.TransportMode]:Y.TransportMode,[C.ContractNumber]:Y.References,[C.TransportType]:Y.TransportType,[C.ConsignmentReference]:Y.References,[C.OrderClient]:Y.Customer,[C.Document]:Y.Features,[C.Discussion]:Y.Features,[C.IsArchived]:Y.Features,[C.Features]:Y.Features};var H=function(B){return B[B.Dates=0]="Dates",B[B.Static=1]="Static",B[B.Hierarchical=2]="Hierarchical",B[B.MinMax=3]="MinMax",B[B.Numeric=4]="Numeric",B[B.Refinement=5]="Refinement",B[B.Search=6]="Search",B[B.TimestampDistance=7]="TimestampDistance",B}(H||{}),x=function(B){return B.DeliveredEqualsTheoretical="deliveredEqualsTheoretical",B.DeliveredNotEqualsTheoretical="deliveredNotEqualsTheoretical",B.LoadedEqualsTheoretical="loadedEqualsTheoretical",B.LoadedNotEqualsTheoretical="loadedNotEqualsTheoretical",B.NotProvided="notProvided",B}(x||{});const Q={anomalies:"relevantNotifications.type",arrivalCountry:"arrival.country",arrivalDelay:"arrival.delay",arrivalName:"arrival.name",arrivalPostalCode:"arrival.postalCode",arrivalStreet:"arrival.street",arrivalTime:"arrival.localeDate",arrivalTown:"arrival.town",cargoDescription:"cargoDescription",cargoType:"tracking.cargoType",chartered:"charteredName",clientAgency:"client.agency",clientOrganization:"client.organization",consignmentReference:"consignmentReference",contractNumber:"contractNumber",currentStatusTimestamp:"currentStatusTimestamp",departureCountry:"departure.country",departureDelay:"departure.delay",departureName:"departure.name",departurePostalCode:"departure.postalCode",departureStreet:"departure.street",departureTime:"departure.localeDate",departureTown:"departure.town",discussionComment:"discussionComment",files:"documentCount",goodsRealQuantitiesStatus:"goodsRealQuantitiesStatus",isArchived:"isArchived",mean:"pair.mean.label",meanMode:"pair.mean.mode",nextStopPointDeclaredEtaStatus:"tracking.nextStopPointDeclaredEtaStatus",nextStopPointEtaState:"nextStopPointEtaState",noAnomalies:"hasRelevantNotifications",noChartered:"chartering.isActive",noMean:"pair.isPaired",oceanEta:"arrival.lastSignificativeEta",oceanEtd:"departure.lastSignificativeEta",owner:"ownerName",status:"currentStatus",tags:"tags.label",trackingArrivalCountry:"tracking.delivery.country",trackingArrivalDelay:"tracking.delivery.delay",trackingArrivalLocaleDate:"tracking.delivery.localeDate",trackingArrivalName:"tracking.delivery.name",trackingArrivalPostalCode:"tracking.delivery.postalCode",trackingArrivalStreet:"tracking.delivery.street",trackingArrivalTime:"tracking.delivery.plannedLocalDate",trackingArrivalTown:"tracking.delivery.town",trackingCurrentStatus:"tracking.currentStatus",trackingDepartureCountry:"tracking.loading.country",trackingDepartureDelay:"tracking.loading.delay",trackingDepartureLocaleDate:"tracking.loading.localeDate",trackingDepartureName:"tracking.loading.name",trackingDeparturePostalCode:"tracking.loading.postalCode",trackingDepartureStreet:"tracking.loading.street",trackingDepartureTime:"tracking.loading.plannedLocalDate",trackingDepartureTown:"tracking.loading.town",transportMode:"transportMode",transportType:"transportType"};var O=r(91167),$=r(88130),X=r(98323);const Z={config:{facetName:Q.anomalies,groupList:[{facetValues:[{label:(0,O.x)("No exceptions"),values:["false"]}]},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.DelayDrivingTowardSiteLoad).label,values:[l.km9.DelayDrivingTowardSiteLoad]},{label:(0,l.c9V)(l.km9.DelayDrivingTowardSiteUnload).label,values:[l.km9.DelayDrivingTowardSiteUnload]},{label:(0,l.c9V)(l.km9.CalculatedDelayDrivingTowardSiteLoad).label,values:[l.km9.CalculatedDelayDrivingTowardSiteLoad]},{label:(0,l.c9V)(l.km9.CalculatedDelayDrivingTowardSiteUnload).label,values:[l.km9.CalculatedDelayDrivingTowardSiteUnload]},{label:(0,l.c9V)(l.km9.NoPositionOnSiteLoad).label,values:[l.km9.NoPositionOnSiteLoad]},{label:(0,l.c9V)(l.km9.NoPositionOnSiteUnload).label,values:[l.km9.NoPositionOnSiteUnload]}],label:(0,O.x)("Delay")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.LoadingPostponed).label,values:[l.km9.LoadingPostponed]},{label:(0,l.c9V)(l.km9.UnloadingPostponed).label,values:[l.km9.UnloadingPostponed]}],label:(0,O.x)("Postponement")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.NoGpsDrivingToLoad).label,values:[l.km9.NoGpsDrivingToLoad]},{label:(0,l.c9V)(l.km9.NoGpsDrivingToUnload).label,values:[l.km9.NoGpsDrivingToUnload]}],label:(0,O.x)("Lost GPS")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.LoadingWaitingToBeConfirmed).label,values:[l.km9.LoadingWaitingToBeConfirmed]},{label:(0,l.c9V)(l.km9.UnloadingWaitingToBeConfirmed).label,values:[l.km9.UnloadingWaitingToBeConfirmed]}],label:(0,O.x)("Missed Milestones")}]},name:C.Anomalies,type:H.Hierarchical},He={config:{facetName:Q.isArchived,groupList:[{compact:!0,facetName:Q.discussionComment,facetValues:[{label:(0,O.x)("With opened discussion"),values:["true"]}]},{compact:!0,facetName:Q.isArchived,facetValues:[{label:(0,O.x)("Archived"),values:["true"]}]}],mode:V.Classic},name:C.IsArchived,type:H.Hierarchical},L={config:{facetList:[{name:Q.cargoDescription}]},name:C.CargoDescription,type:H.Refinement},Ce={config:{emptyFacet:{facetName:Q.noChartered,label:(0,O.x)("None"),value:"false"},facetList:[{name:Q.chartered}],hasExcludeMode:!0},name:C.Chartering,type:H.Refinement},ce={config:Q.consignmentReference,label:(0,O.x)("[[order filter consignment reference]]Consignment"),name:C.ConsignmentReference,type:H.Search},me={config:{facetName:Q.arrivalDelay,presetGroupList:{label:(0,O.x)("[[order list container filter]] Arrival"),presetValues:[{label:(0,O.x)("[[order list delay filter]] On time"),presetName:o.OnTime,values:{max:0,min:0}},{label:(0,O.x)("[[order list delay filter]] With a delay of less than 4 days"),presetName:o.Delay,values:{max:3,min:1}},{label:(0,O.x)("[[order list delay filter]] Late by more than 4 days"),presetName:o.Late,values:{min:4}}]}},name:C.ContainerEtaDelay,type:H.MinMax},_e={config:{facetName:Q.departureDelay,presetGroupList:{label:(0,O.x)("[[order list container filter]] Departure"),presetValues:[{label:(0,O.x)("[[order list delay filter]] On time"),presetName:o.OnTime,values:{max:0,min:0}},{label:(0,O.x)("[[order list delay filter]] With a delay of less than 4 days"),presetName:o.Delay,values:{max:3,min:1}},{label:(0,O.x)("[[order list delay filter]] Late by more than 4 days"),presetName:o.Late,values:{min:4}}]}},name:C.ContainerEtdDelay,type:H.MinMax},Me={config:Q.currentStatusTimestamp,label:(0,O.x)("[[OV order list filters]] Ocean status unchanged"),name:C.ContainerStatusUnchanged,type:H.TimestampDistance},Ge={config:{facetList:[{name:Q.contractNumber}]},label:(0,O.x)("Contract number"),name:C.ContractNumber,type:H.Refinement},Ue={config:Q.arrivalTime,name:C.DeliveryDate,type:H.Dates},ze={config:Q.trackingArrivalTime,name:C.TrackingDeliveryDate,type:H.Dates},k=({hideUnusedOrderFilter:B,languageCode:dt})=>{const ut=[{label:(0,O.x)("Name of the site"),name:Q.arrivalName},{label:(0,O.x)("Country"),name:Q.arrivalCountry,transformItems:ot=>ot.map(gt=>({...gt,label:(0,$.getNames)(dt)[gt.name]}))},{label:(0,O.x)("Postcode"),name:Q.arrivalPostalCode},{label:(0,O.x)("City"),name:Q.arrivalTown}];return{config:{facetList:B?ut:[...ut,{label:(0,O.x)("Street"),name:Q.arrivalStreet}],hasExcludeMode:!0},name:C.DeliverySite,type:H.Refinement}},We=({hideUnusedOrderFilter:B,languageCode:dt})=>{const ut=[{label:(0,O.x)("Name of the site"),name:Q.trackingArrivalName},{label:(0,O.x)("Country"),name:Q.trackingArrivalCountry,transformItems:ot=>ot.map(gt=>({...gt,label:(0,$.getNames)(dt)[gt.name]}))},{label:(0,O.x)("Postcode"),name:Q.trackingArrivalPostalCode},{label:(0,O.x)("City"),name:Q.trackingArrivalTown}];return{config:{facetList:B?ut:[...ut,{label:(0,O.x)("Street"),name:Q.trackingArrivalStreet}],hasExcludeMode:!0},name:C.TrackingDeliverySite,type:H.Refinement}},S=((0,O.x)("With message"),{config:{configList:[{label:(0,O.x)("Has documents"),operator:">",value:0},{label:(0,O.x)("No documents"),operator:"=",value:0}],facetName:Q.files},label:(0,O.x)("[[order list features filter]]Files"),name:C.Document,type:H.Numeric}),ue={config:{facetName:Q.goodsRealQuantitiesStatus,groupList:[{displaySelectAll:!0,facetValues:[{label:(0,O.x)("Conform"),values:[x.LoadedEqualsTheoretical]},{label:(0,O.x)("Non-compliant"),values:[x.LoadedNotEqualsTheoretical]},{label:(0,O.x)("Not provided"),values:[x.NotProvided]}],label:(0,O.x)("Loading")},{displaySelectAll:!0,facetValues:[{label:(0,O.x)("Conform"),values:[x.DeliveredEqualsTheoretical]},{label:(0,O.x)("Non-compliant"),values:[x.DeliveredNotEqualsTheoretical]},{label:(0,O.x)("Not provided"),values:[x.NotProvided]}],label:(0,O.x)("Delivery")}]},name:C.GoodsRealQuantities,type:H.Hierarchical},d={config:Q.departureTime,name:C.LoadingDate,type:H.Dates},Re={config:Q.trackingDepartureTime,name:C.TrackingLoadingDate,type:H.Dates},he=({hideUnusedOrderFilter:B,languageCode:dt})=>{const ut=[{label:(0,O.x)("Name of the site"),name:Q.departureName},{label:(0,O.x)("Country"),name:Q.departureCountry,transformItems:ot=>ot.map(gt=>({...gt,label:(0,$.getNames)(dt)[gt.name]}))},{label:(0,O.x)("Postcode"),name:Q.departurePostalCode},{label:(0,O.x)("City"),name:Q.departureTown}];return{config:{facetList:B?ut:[...ut,{label:(0,O.x)("Street"),name:Q.departureStreet}],hasExcludeMode:!0},name:C.LoadingSite,type:H.Refinement}},oe=({hideUnusedOrderFilter:B,languageCode:dt})=>{const ut=[{label:(0,O.x)("Name of the site"),name:Q.trackingDepartureName},{label:(0,O.x)("Country"),name:Q.trackingDepartureCountry,transformItems:ot=>ot.map(gt=>({...gt,label:(0,$.getNames)(dt)[gt.name]}))},{label:(0,O.x)("Postcode"),name:Q.trackingDeparturePostalCode},{label:(0,O.x)("City"),name:Q.trackingDepartureTown}];return{config:{facetList:B?ut:[...ut,{label:(0,O.x)("Street"),name:Q.trackingDepartureStreet}],hasExcludeMode:!0},name:C.TrackingLoadingSite,type:H.Refinement}},qe={config:{facetList:[{label:(0,O.x)("Organization"),name:Q.clientOrganization},{label:(0,O.x)("Agency"),name:Q.clientAgency}]},name:C.OrderClient,type:H.Refinement},w={config:{emptyFacet:{facetName:Q.noMean,label:(0,O.x)("None"),value:"false"},facetList:[{name:Q.mean}],hasExcludeMode:!0},name:C.Resource,type:H.Refinement},re={config:{facetName:Q.nextStopPointEtaState,groupList:[{displaySelectAll:!0,facetValues:[{label:(0,O.x)("Late"),values:["late"]},{label:(0,O.x)("On time / early"),values:["early"]},{label:(0,O.x)("Tolerable delay"),values:["toleratedDelay"]},{label:(0,O.x)("ETA not available"),values:["none"]}]}]},name:C.RoadEta,type:H.Hierarchical},le={config:{facetName:Q.nextStopPointDeclaredEtaStatus,groupList:[{displaySelectAll:!0,facetValues:[{label:(0,O.x)("Risky delay"),values:["riskyDelay"]},{label:(0,O.x)("On time / early"),values:["onTime"]},{label:(0,O.x)("Tolerable delay"),values:["toleratedDelay"]},{label:(0,O.x)("ETA not available"),values:["none"]}]}]},name:C.TrackingEta,type:H.Hierarchical},Ae={config:{facetName:Q.status,groupList:[{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.OrderPendingWaitingConfirmation,l.M1z.Road).label,values:[l.km9.OrderPendingWaitingConfirmation]},{label:(0,l.c9V)(l.km9.OrderToBeConfirmed,l.M1z.Road).label,values:[l.km9.OrderToBeConfirmed]},{label:(0,l.c9V)(l.km9.OrderConfirmed,l.M1z.Road).label,values:[l.km9.OrderConfirmed]}],label:(0,O.x)("Chartering")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.OrderWaitingToPair,l.M1z.Road).label,values:[l.km9.OrderWaitingToPair]},{label:(0,l.c9V)(l.km9.OrderIsPair,l.M1z.Road).label,values:[l.km9.OrderIsPair]},{label:(0,l.c9V)(l.km9.DriverConfirmed,l.M1z.Road).label,values:[l.km9.DriverConfirmed]}],label:(0,O.x)("Pairing")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.ConLoad,l.M1z.Road).label,values:[l.km9.ConLoad,l.km9.LoadingCompliant]},{label:(0,l.c9V)(l.km9.GoodsLoadedNotConform,l.M1z.Road).label,values:[l.km9.GoodsLoadedNotConform,l.km9.LoadingNonCompliant]},{label:(0,l.c9V)(l.km9.RefusedLoad,l.M1z.Road).label,values:[l.km9.RefusedLoad,l.km9.LoadingNonRealised]},{label:(0,l.c9V)(l.km9.LoadingRefusedByShipperVariousReason,l.M1z.Road).label,values:[l.km9.LoadingRefusedByShipperVariousReason,l.km9.LoadingRefused]}],label:(0,O.x)("[[order list road status filter]] Goods loading")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.ConUnload,l.M1z.Road).label,values:[l.km9.ConUnload,l.km9.DeliveryCompliant]},{label:(0,l.c9V)(l.km9.GoodsDeliveredNotConform,l.M1z.Road).label,values:[l.km9.GoodsDeliveredNotConform,l.km9.DeliveryNonCompliant]},{label:(0,l.c9V)(l.km9.RefusedUnload,l.M1z.Road).label,values:[l.km9.RefusedUnload,l.km9.DeliveryRefused]},{label:(0,l.c9V)(l.km9.DeliveryRefusedByShipperVariousReason,l.M1z.Road).label,values:[l.km9.DeliveryRefusedByShipperVariousReason,l.km9.DeliveryNonRealised]}],label:(0,O.x)("[[order list road status filter]] Goods delivery")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.DrivingToLoad,l.M1z.Road).label,values:[l.km9.DrivingToLoad]},{label:(0,l.c9V)(l.km9.ArrLoad,l.M1z.Road).label,values:[l.km9.ArrLoad]},{label:(0,l.c9V)(l.km9.LeftLoadingSite,l.M1z.Road).label,values:[l.km9.LeftLoadingSite]},{label:(0,l.c9V)(l.km9.ArrivedAtTerminal,l.M1z.Road).label,values:[l.km9.ArrivedAtTerminal]},{label:(0,l.c9V)(l.km9.LeftTerminal,l.M1z.Road).label,values:[l.km9.LeftTerminal]},{label:(0,l.c9V)(l.km9.DrivingToUnload,l.M1z.Road).label,values:[l.km9.DrivingToUnload]},{label:(0,l.c9V)(l.km9.ArrUnload,l.M1z.Road).label,values:[l.km9.ArrUnload]},{label:(0,l.c9V)(l.km9.DriverLeftUnload,l.M1z.Road).label,values:[l.km9.DriverLeftUnload]}],label:(0,O.x)("[[order list road status filter]] Current location"),split:!0},{displaySelectAll:!1,facetValues:[{label:(0,l.c9V)(l.km9.CancelOrder,l.M1z.Road).label,values:[l.km9.CancelOrder,l.km9.Canceled]},{label:(0,l.c9V)(l.km9.OrderUnfinished,l.M1z.Road).label,values:[l.km9.OrderUnfinished,l.km9.Abandoned]}],label:(0,O.x)("Order status")}],mode:V.Checkbox},name:C.RoadStatus,type:H.Hierarchical},y={config:{facetName:Q.trackingCurrentStatus,groupList:[{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.LoadingCompliant).label,values:[l.km9.LoadingCompliant]},{label:(0,l.c9V)(l.km9.LoadingNonCompliant).label,values:[l.km9.LoadingNonCompliant]},{label:(0,l.c9V)(l.km9.LoadingNonRealised).label,values:[l.km9.LoadingNonRealised]},{label:(0,l.c9V)(l.km9.LoadingRefused).label,values:[l.km9.LoadingRefused]}],label:(0,O.x)("[[order list parcel status filter]] Goods loading")},{displaySelectAll:!0,facetValues:[{label:(0,l.c9V)(l.km9.DeliveryCompliant).label,values:[l.km9.DeliveryCompliant]},{label:(0,l.c9V)(l.km9.DeliveryNonCompliant).label,values:[l.km9.DeliveryNonCompliant]},{label:(0,l.c9V)(l.km9.DeliveryRefused).label,values:[l.km9.DeliveryRefused]},{label:(0,l.c9V)(l.km9.DeliveryNonRealised).label,values:[l.km9.DeliveryNonRealised]}],label:(0,O.x)("[[order list parcel status filter]] Goods delivery")},{displaySelectAll:!1,facetValues:[{label:(0,l.c9V)(l.km9.completed).label,values:[l.km9.completed]},{label:(0,l.c9V)(l.km9.Created).label,values:[l.km9.Created]},{label:(0,l.c9V)(l.km9.Canceled).label,values:[l.km9.Canceled]},{label:(0,l.c9V)(l.km9.OrderUnfinished).label,values:[l.km9.OrderUnfinished,l.km9.Abandoned]}],label:(0,O.x)("Parcel status"),split:!0}],mode:V.Checkbox},name:C.ParcelStatus,type:H.Hierarchical},Le={config:{facetList:[{name:Q.owner}],hasExcludeMode:!0},name:C.Shipper,type:H.Refinement},Ke={config:{facetList:[{name:Q.tags}],hasExcludeMode:!0},name:C.Tags,type:H.Refinement},ht={config:{facetList:[{name:Q.transportType}]},name:C.TransportType,type:H.Refinement},Qe=({completedTracking:B,deliveredMilestone:dt,partialOTC:ut})=>[{config:{facetName:Q.status,groupList:[{displaySelectAll:!0,facetValues:[{label:(0,O.x)("[[order list ocean status filter]] Gate-Out Empty"),values:[X.K_.GateOutEmptyAtOceanCarrierOrigin]},{label:(0,O.x)("[[order list ocean status filter]] Gate-In Full"),values:[X.K_.GateInFullAtOceanCarrierOrigin]},{label:(0,O.x)("[[order list ocean status filter]] Arrive"),values:[X.K_.ArrivedAtOceanCarrierOrigin]},{label:(0,O.x)("[[order list ocean status filter]] Unload"),values:[X.K_.DischargedAtOceanCarrierOrigin]},{label:(0,O.x)("[[order list ocean status filter]] Load"),values:[X.K_.LoadedAtOceanCarrierOrigin]},{label:(0,O.x)("[[order list ocean status filter]] Gate-Out Full"),values:[X.K_.GateOutFullAtOceanCarrierOrigin]},{label:(0,O.x)("[[order list ocean status filter]] Depart"),values:[X.K_.DepartedFromOceanCarrierOrigin]}].filter(ot=>!!ot),label:(0,O.x)("[[order list ocean status filter]] Inland Origin")},{displaySelectAll:!0,facetValues:[{label:(0,O.x)("[[order list ocean status filter]] Gate-Out Empty"),values:[X.Fb.ContainerEmptyGateOutAtLoadingSite,X.K_.GateOutEmptyAtLoadingSite]},{label:(0,O.x)("[[order list ocean status filter]] Arrive"),values:[X.K_.ArrivedAtLoadingSite]},{label:(0,O.x)("[[order list ocean status filter]] Unload"),values:[X.K_.DischargedAtLoadingSite]},{label:(0,O.x)("[[order list ocean status filter]] Gate-Out Full"),values:[X.K_.GateOutFullAtLoadingSite]},{label:(0,O.x)("[[order list ocean status filter]] Gate-In Full"),values:[X.Fb.ContainerFullGateInAtLoadingSite,X.K_.GateInFullAtLoadingSite]},{label:(0,O.x)("[[order list ocean status filter]] Load"),values:[X.wi.ContainerLoaded,X.K_.LoadedAtLoadingSite]},{label:(0,O.x)("[[order list ocean status filter]] Depart"),values:[X.Fb.ContainerLeftLoadingSite,X.K_.DepartedFromLoadingSite]}].filter(ot=>!!ot),label:(0,O.x)("[[order list ocean status filter]] Port of Load")},{displaySelectAll:!0,facetValues:[{label:(0,O.x)("[[order list ocean status filter]] Arrive"),values:[X.Fb.OrderVesselArrivedAtTranshipment,X.K_.ArrivedAtTranshipmentSite]},{label:(0,O.x)("[[order list ocean status filter]] Unload"),values:[X.Fb.ContainerUnloadedTranshipment,X.K_.DischargedAtTranshipmentSite]},{label:(0,O.x)("[[order list ocean status filter]] Gate-Out Full"),values:[X.K_.GateOutFullAtTranshipmentSite]},{label:(0,O.x)("[[order list ocean status filter]] Gate-In Full"),values:[X.K_.GateInFullAtTranshipmentSite]},{label:(0,O.x)("[[order list ocean status filter]] Load"),values:[X.Fb.ContainerLoadedTranshipment,X.K_.LoadedAtTranshipmentSite]},{label:(0,O.x)("[[order list ocean status filter]] Depart"),values:[X.Fb.OrderVesselDepartedFromTranshipment,X.K_.DepartedFromTranshipmentSite]}].filter(ot=>!!ot),label:(0,O.x)("[[order list ocean status filter]] Transshipment")},{displaySelectAll:!0,facetValues:[{label:(0,O.x)("[[order list ocean status filter]] Arrive"),values:[X.Fb.ContainerOnDeliverySite,X.Fb.ContainerOnDischargeSite,X.K_.ArrivedAtDischargeSite,X.K_.ArrivedAtDeliverySite]},{label:(0,O.x)("[[order list ocean status filter]] Discharge"),values:[X.wi.ContainerUnloaded,X.K_.DischargedAtDischargeSite,X.K_.DischargedAtDeliverySite]},{label:(0,O.x)("[[order list ocean status filter]] Gate-Out Full"),values:[X.Fb.ContainerFullGateOutAtDeliverySite,X.Fb.ContainerFullGateOutAtDischargeSite,X.K_.GateOutFullAtDeliverySite,X.K_.GateOutFullAtDischargeSite]},{label:(0,O.x)("[[order list ocean status filter]] Gate-In Full"),values:[X.K_.GateInFullAtDischargeSite]},{label:(0,O.x)("[[order list ocean status filter]] Load"),values:[X.K_.LoadedAtDischargeSite]},{label:(0,O.x)("[[order list ocean status filter]] Depart"),values:[X.K_.DepartedFromDischargeSite]},dt?{label:(0,O.x)("[[order list ocean status filter]] Delivered"),values:[X.K_.DeliveredAtDischargeSite]}:void 0,{label:(0,O.x)("[[order list ocean status filter]] Gate-In Empty"),values:B?[X.K_.GateInEmptyAtDischargeSite]:[X.Fb.ContainerEmptyGateInAtDeliverySite,X.Fb.ContainerEmptyGateInAtDischargeSite,X.K_.GateInEmptyAtDeliverySite,X.K_.GateInEmptyAtDischargeSite,X.K_.Completed]}].filter(ot=>!!ot),label:(0,O.x)("[[order list ocean status filter]] Port of Discharge")},{displaySelectAll:!0,facetValues:[{label:(0,O.x)("[[order list ocean status filter]] Arrive"),values:[X.K_.ArrivedAtOceanCarrierDestination]},{label:(0,O.x)("[[order list ocean status filter]] Gate-In Full"),values:[X.K_.GateInFullAtOceanCarrierDestination]},{label:(0,O.x)("[[order list ocean status filter]] Unload"),values:[X.K_.DischargedAtOceanCarrierDestination]},{label:(0,O.x)("[[order list ocean status filter]] Load"),values:[X.K_.LoadedAtOceanCarrierDestination]},{label:(0,O.x)("[[order list ocean status filter]] Depart"),values:[X.K_.DepartedFromOceanCarrierDestination]},{label:(0,O.x)("[[order list ocean status filter]] Gate-Out Full"),values:[X.K_.GateOutFullAtOceanCarrierDestination]},dt?{label:(0,O.x)("[[order list ocean status filter]] Delivered"),values:[X.K_.DeliveredAtOceanCarrierDestination]}:void 0,{label:(0,O.x)("[[order list ocean status filter]] Gate-In Empty"),values:[X.K_.GateInEmptyAtOceanCarrierDestination]}].filter(ot=>!!ot),label:(0,O.x)("[[order list ocean status filter]] Inland Destination")},ut?{displaySelectAll:!0,facetValues:[{label:(0,O.x)("[[order list ocean status filter]] SCAC not provided"),values:[X.K_.NotTrackableScacNotProvided]},{label:(0,O.x)("[[OV order list ocean status filter]] Container reference not provided"),values:[X.K_.NotTrackableContainerNotProvided]},{label:(0,O.x)("[[OV order list ocean status filter]] Container and SCAC not provided"),values:[X.K_.NotTrackableScacAndContainerNotProvided]},{label:(0,O.x)("[[order list ocean status filter]] SCAC not supported"),values:[X.K_.NotTrackableScacNotSupported]},{label:(0,O.x)("[[order list ocean status filter]] Container not supported by the Carrier"),values:[X.K_.NotTrackableContainerNotSupportedByCarrier]},{label:(0,O.x)("[[order list ocean status filter]] Other"),values:[l.km9.OrderNotTrackable]}].filter(ot=>!!ot),label:(0,O.x)("[[OV order list ocean status filter]] Not trackable"),split:!0}:void 0,{displaySelectAll:!1,facetValues:[{label:(0,O.x)("[[order list ocean status filter]] Pending"),values:[X.K_.Created,l.km9.OrderCreated,X.K_.TrackingStarted,l.km9.OrderConfirmed,l.km9.OrderIsPair,l.km9.OrderPendingWaitingConfirmation]},{label:(0,O.x)("[[order list ocean status filter]] Canceled"),values:[l.km9.CancelOrder,X.K_.Cancelled]},{label:(0,O.x)("[[order list ocean status filter]] Stopped"),values:[l.km9.OrderUnfinished,X.K_.Abandoned]},ut?void 0:{label:(0,O.x)("[[OV order list ocean status filter]] Not trackable"),values:[X.K_.NotTrackableContainerNotProvided,X.K_.NotTrackableContainerNotSupportedByCarrier,X.K_.NotTrackableScacAndContainerNotProvided,X.K_.NotTrackableScacNotProvided,X.K_.NotTrackableScacNotSupported,l.km9.OrderNotTrackable]},B?{label:(0,O.x)("[[OV order list ocean status filter]] Completed"),strictChecked:!0,values:[X.K_.GateInEmptyAtDischargeSite,X.K_.GateInEmptyAtOceanCarrierDestination]}:void 0].filter(ot=>!!ot),label:ut?void 0:(0,O.x)("[[order list ocean status filter]] Tracking:"),split:!0}].filter(ot=>!!ot),mode:V.Checkbox},name:C.OceanStatus,type:H.Hierarchical},Me];var ye=function(B){return B[B.Road=0]="Road",B[B.Ocean=1]="Ocean",B[B.Parcel=2]="Parcel",B[B.Rail=3]="Rail",B[B.Air=4]="Air",B[B.IntermodalLegacy=5]="IntermodalLegacy",B}(ye||{});const Ve=({airRailMode:B})=>{const dt=[{id:ye.Road,label:(0,O.x)("Road"),values:[l.TT5.Road,l.TT5.Ftl,l.TT5.FtlLegacy,l.TT5.LtlLegacy,l.TT5.ParcelLegacy,l.TT5.Ltl]},{id:ye.Ocean,label:(0,O.x)("Ocean"),values:[l.TT5.Ocean,l.TT5.Maritime]},{id:ye.Parcel,label:(0,O.x)("Parcel"),values:[l.TT5.Parcel]},{id:ye.IntermodalLegacy,label:(0,O.x)("Intermodal"),values:[l.TT5.IntermodalLegacy]}];return B&&dt.push({id:ye.Rail,label:(0,O.x)("Rail"),values:[l.TT5.Rail]},{id:ye.Air,label:(0,O.x)("Air"),values:[l.TT5.Air]}),{config:{facetName:Q.transportMode,groupList:[{facetValues:dt,displaySelectAll:!0}]},name:C.TransportMode,type:H.Hierarchical}},g=Ve({airRailMode:!0}).config.groupList.flatMap(({facetValues:B})=>B),et=(g.find(({id:B})=>B===ye.Road),g.find(({id:B})=>B===ye.Ocean),g.find(({id:B})=>B===ye.Parcel),{config:{facetName:Q.cargoType,groupList:[{displaySelectAll:!1,facetValues:[{label:(0,O.x)("[[OV cargo type filter]] Container"),values:[X.ZV.Container]},{label:(0,O.x)("[[OV cargo type filter]] RoRo"),values:[X.ZV.RoRo]},{label:(0,O.x)("[[OV cargo type filter]] Breakbulk"),values:[X.ZV.BreakBulk]}]}]},name:C.CargoType,type:H.Hierarchical}),ft=B=>B.hasRoRoFeature?[Ve(B),et]:[Ve(B)],Dt=()=>[He,S],Tt={[C.Chartering]:l.lB_.FilterCategoryCarrierSeeMore,[C.Resource]:l.lB_.FilterCategoryResourceSeeMore,[C.LoadingSite]:l.lB_.FilterCategorySitesLoadingSeeMore,[C.DeliverySite]:l.lB_.FilterCategorySitesDeliverySeeMore,[C.Tags]:l.lB_.FilterCategoryTagsSeeMore,[C.Shipper]:l.lB_.FilterCategoryShipperSeeMore},It={[C.RoadEta]:l.lB_.FilterCategoryDelayRoadSelectAll,[C.ParcelStatus]:l.lB_.FilterCategoryStatusParcelSelectAll,[C.TransportMode]:l.lB_.FilterCategoryTransportModeSelectAll,[C.Anomalies]:l.lB_.FilterCategoryProblemsSelectAll,[C.GoodsRealQuantities]:l.lB_.FilterCategoryGoodsRealQuantitiesSelectAll},Lt={[C.RoadEta]:l.lB_.FilterCategoryDelayRoad,[C.RoadStatus]:l.lB_.FilterCategoryStatusRoad,[C.OceanStatus]:l.lB_.FilterCategoryStatusOcean,[C.ParcelStatus]:l.lB_.FilterCategoryStatusParcel,[C.LoadingDate]:l.lB_.FilterCategoryDatesLoading,[C.DeliveryDate]:l.lB_.FilterCategoryDatesDelivery,[C.TrackingLoadingDate]:l.lB_.FilterCategoryDatesTrackingLoading,[C.TrackingDeliveryDate]:l.lB_.FilterCategoryDatesTrackingDelivery,[C.LoadingSite]:l.lB_.FilterCategorySitesLoading,[C.DeliverySite]:l.lB_.FilterCategorySitesDelivery,[C.TrackingLoadingSite]:l.lB_.FilterCategorySiteTrackingLoading,[C.TrackingDeliverySite]:l.lB_.FilterCategorySiteTrackingDelivery,[C.GoodsRealQuantities]:l.lB_.FilterCategoryGoodsRealQuantities,[C.CargoDescription]:l.lB_.FilterCategoryGoodsDescription,[C.ContractNumber]:l.lB_.FilterCategoryReferencesContractNumber,[C.TransportType]:l.lB_.FilterCategoryReferencesTransportType,[C.ConsignmentReference]:l.lB_.FilterCategoryReferencesConsignmentReference,[C.OrderClient]:l.lB_.FilterCategoryReferencesCustomer,[C.Document]:l.lB_.FilterCategoryFeaturesFile,[C.Discussion]:l.lB_.FilterCategoryFeaturesDiscussions,[C.IsArchived]:l.lB_.FilterCategoryFeaturesArchive};r(33621);(0,O.x)("Late"),(0,O.x)("None"),(0,O.x)("Irrelevant"),(0,O.x)("On time"),(0,O.x)("Tolerable delay"),(0,O.x)("Completed"),(0,O.x)("In progress"),(0,O.x)("Not started"),(0,O.x)("Cancelled"),(0,O.x)("Skipped"),(0,O.x)("Not completed"),(0,O.x)("With road exceptions"),(0,O.x)("No exceptions"),(0,O.x)("Name of the site"),(0,O.x)("Country"),(0,O.x)("Postcode"),(0,O.x)("City"),(0,O.x)("Street"),(0,O.x)("Name of the site"),(0,O.x)("Country"),(0,O.x)("Postcode"),(0,O.x)("City"),(0,O.x)("Street"),(0,O.x)("None"),(0,O.x)("Contract number"),(0,O.x)("None"),(0,O.x)("Organization"),(0,O.x)("Agency"),(0,O.x)("Transport type"),(0,O.x)("Organization"),(0,O.x)("Agency"),(0,O.x)("Customer"),(0,O.x)("Archived"),(0,O.x)("Not archived");(0,O.x)("Late"),(0,O.x)("On time"),(0,O.x)("Tolerable delay"),(0,O.x)("ETA not available")},15651:(fe,J,r)=>{"use strict";r.d(J,{H:()=>e.H,c:()=>t});const t="scroll-container";var e=r(23172)},23172:(fe,J,r)=>{"use strict";r.d(J,{H:()=>l});var t=r(54460),e=r(48891),o=r(34133),s=r(85710),i=r(41483),p=r(44687),f=r(53220);const N=(R,v)=>v.id,A=R=>({"anchor-menu-offset":R}),I=()=>["./"];function b(R,v){if(1&R){const E=e.RV6();e.j41(0,"a",4),e.bIt("click",function(){const C=e.eBV(E).$implicit,M=e.XpG();return e.Njj(M.anchorClick.emit(C.id))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&R){const E=v.$implicit;e.Y8G("fragment",E.id)("routerLink",e.lJ4(5,I)),e.R7$(),e.SpI(" ",e.bMT(2,3,E.label)," ")}}let l=(()=>{class R{constructor(E){this.router=E,this.anchorClick=new e.bkB,this.subscriptions=new s.yU}ngOnChanges({anchorsList:E}){E.currentValue&&(this.anchorsListDisplayed=E.currentValue.filter(h=>!h.hidden))}ngOnDestroy(){this.subscriptions.unsubscribe()}ngOnInit(){this.routerListener()}routerListener(){const E=this.router.events.pipe((0,i.p)(h=>h instanceof o.OY)).subscribe(h=>{const C=document.getElementById(h.anchor);C&&setTimeout(()=>C.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}))});this.subscriptions.add(E)}static#e=this.\u0275fac=function(h){return new(h||R)(e.rXU(o.Ix))};static#t=this.\u0275cmp=e.VBU({type:R,selectors:[["sh-anchor-sidebar"]],inputs:{anchorsList:"anchorsList",withMenuOffset:"withMenuOffset"},outputs:{anchorClick:"anchorClick"},standalone:!0,features:[e.OA$,e.aNF],decls:5,vars:3,consts:[[1,"anchor-menu",3,"ngClass"],[1,"anchor-container"],[1,"link-container"],[3,"fragment","routerLink"],[3,"click","fragment","routerLink"]],template:function(h,C){1&h&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.Z7z(3,b,3,6,"a",3,N),e.k0s()()()),2&h&&(e.Y8G("ngClass",e.eq3(1,A,C.withMenuOffset)),e.R7$(3),e.Dyx(C.anchorsListDisplayed))},dependencies:[t.MD,t.YU,p.LP,f.D9,o.iI,o.Wk],styles:[".anchor-menu[_ngcontent-%COMP%]{display:none;align-items:flex-start;left:calc(800px + (100vw - 800px)/2);height:100vh;position:fixed;top:0}.anchor-menu.anchor-menu-offset[_ngcontent-%COMP%]{left:calc(960px + (100vw - 960px)/2)}@media (min-width: 1440px){.anchor-menu[_ngcontent-%COMP%]{display:flex;align-items:center}}.anchor-menu[_ngcontent-%COMP%]   .anchor-container[_ngcontent-%COMP%]{display:flex;margin-top:1.25rem}.anchor-menu[_ngcontent-%COMP%]   .anchor-container[_ngcontent-%COMP%]   .link-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:1rem}.anchor-menu[_ngcontent-%COMP%]   .anchor-container[_ngcontent-%COMP%]   .link-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#4b5563;margin-bottom:12px;width:168px}.anchor-menu[_ngcontent-%COMP%]   .anchor-container[_ngcontent-%COMP%]   .link-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:last-child{margin-bottom:0}.anchor-menu[_ngcontent-%COMP%]   .anchor-container[_ngcontent-%COMP%]   .link-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#3873e1;text-decoration:none}"],changeDetection:0})}return R})()},36441:(fe,J,r)=>{"use strict";r.d(J,{uR:()=>R});var t=r(27691),e=r(47947),o=r(82040),s=r(12596),i=r(687),p=r(2233),f=r(45275);const A=v=>{const h=v.split(".")[1].replace("-","+").replace("_","/");return JSON.parse(window.atob(h))};var I=r(48891),b=r(34133),l=r(53071);let R=(()=>{class v{constructor(h,C,M,F){this.apiService=h,this.environment=C,this.router=M,this.oauthService=F}static encodeCredentials({username:h,password:C}){return`Basic ${(v=>encodeURIComponent(window.btoa(v)).replace(/%([0-9A-F]{2})/g,(E,h)=>String.fromCharCode(parseInt(`0x${h}`,16))))(`${(0,f.Oo)(h)}:${C}`)}`}clearLocalStorage(){i.wZ.clear()}getCurrentUserId(){return this.getToken()&&!i.wZ.userId&&this.setTokenAndCurrentUserId(this.getToken()),i.wZ.userId}getToken(){return i.wZ.token||this.oauthService.getAccessToken()}isExpiredAccessToken(){const h=i.wZ.token?1e3*A(i.wZ.token).exp:this.oauthService.getAccessTokenExpiration();return Date.now()>h}isExpiredRefreshToken(){return Date.now()>this.oauthService.getIdTokenExpiration()}isAuthorized(){return!!this.getToken()}isConnectAs(){return!!i.dB.getCookie(i.d5.AUTH_TOKEN)}isSsoAuth(){return!!this.oauthService.getAccessToken()}login(h){const C=v.encodeCredentials(h);return this.apiService.post(s.M$.Tokens,{},{headers:(new t.Lr).set("Authorization",C)}).pipe((0,e.T)(({token:M})=>M),(0,o.M)(()=>i.dB.removeCookie(i.d5.AUTH_TOKEN)))}logout(h){if(this.oauthService.hasValidAccessToken()){if(!this.environment.isBackOffice()){const C=i.dB.getCookie(i.d5.SSO_LOGIN_HINT);this.oauthService.redirectUri=`${window.location.origin}${C?`/auth/sso/${C}?loginAuto=false`:"/"}`}this.oauthService.logOut(),this.clearLocalStorage()}else if(this.clearLocalStorage(),this.environment.isBackOffice()||this.environment.isPortal()||!this.environment.isProductionMode())this.router.navigate(["/auth/login"],{queryParams:h?{redirect:h}:{}});else{let C=i.dB.getCookie(i.d5.LOGOUT_URL);C||(C=this.environment.getDefaultLogoutUrl()),h&&(C=C.replace("/logout","/login"),C+=h?`?redirect=${encodeURIComponent(h)}`:""),(0,f.Uc)(C)}}setTokenAndCurrentUserId(h){i.wZ.token=h,i.wZ.userId=A(h).hashid}static#e=this.\u0275fac=function(C){return new(C||v)(I.KVO(s.Gf),I.KVO(p.O),I.KVO(b.Ix),I.KVO(l.TC))};static#t=this.\u0275prov=I.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},54205:(fe,J,r)=>{"use strict";r.d(J,{D:()=>R}),r(44687);var o=r(85710),s=r(30696),i=r(687),f=(r(36287),r(18306)),N=r(91039),A=r(48891),I=r(76803),b=r(53220);const l=v=>({name:v});let R=(()=>{class v{constructor(h,C){this.userService=h,this.activeModal=C,this.userFullName="",this.modalType=f.q3,this.buttonTheme=N.Ox,this.subscriptions=new o.yU}ngOnInit(){this.userFullName=this.user.getFullName()}ngOnDestroy(){this.subscriptions.unsubscribe()}connectAs(){const h=this.userService.getToken(this.user.id).subscribe(({token:C})=>{i.dB.setCookie({name:i.d5.AUTH_TOKEN,value:C}),this.activeModal.close(),window.open(`${this.destinationUrl}/auth/login/authorize?${new URLSearchParams({preserve:"true"})}`)});this.subscriptions.add(h)}static#e=this.\u0275fac=function(C){return new(C||v)(A.rXU(s.DL),A.rXU(I.Lw))};static#t=this.\u0275cmp=A.VBU({type:v,selectors:[["sh-connect-as-modal"]],inputs:{onClose:"onClose",user:"user",destinationUrl:"destinationUrl"},decls:14,vars:9,consts:[[3,"type"],["slot","complex",1,"w-100","text-center"],[1,"f-lg","mb-4"],["translate",""],[1,"d-flex","justify-content-center","align-items-center","w-100","mt-6"],[1,"w-100","me-3",3,"click","btnTheme"],["slot","label","translate",""],[1,"w-100",3,"click","btnTheme"]],template:function(C,M){1&C&&(A.j41(0,"shui-modal",0)(1,"div",1)(2,"h3",2),A.EFF(3),A.nI1(4,"translate"),A.k0s(),A.j41(5,"div",3),A.EFF(6," You will inherit all of their permissions and any action performed during this session will be registered as having been done by this user "),A.k0s(),A.j41(7,"div",4)(8,"shui-button",5),A.bIt("click",function(){return M.onClose()}),A.j41(9,"label",6),A.EFF(10,"Close"),A.k0s()(),A.j41(11,"shui-button",7),A.bIt("click",function(){return M.connectAs()}),A.j41(12,"label",6),A.EFF(13,"Confirm"),A.k0s()()()()()),2&C&&(A.Y8G("type",M.modalType.Complex),A.R7$(3),A.JRh(A.i5U(4,4,"Logging in as {name}",A.eq3(7,l,M.userFullName))),A.R7$(5),A.Y8G("btnTheme",M.buttonTheme.Secondary),A.R7$(3),A.Y8G("btnTheme",M.buttonTheme.Primary))},dependencies:[b.Mm,f.zf,f.Qp,b.D9],encapsulation:2,changeDetection:0})}return v})()},43126:(fe,J,r)=>{"use strict";r.d(J,{q_:()=>e.q_,r:()=>e.r,Ui:()=>t.U,v6:()=>e.v6,fF:()=>v,r5:()=>E.r,gH:()=>h.g,fz:()=>p.fz});var t=r(59703),e=r(63801),p=(r(651),r(65460),r(69942),r(10266)),f=r(73014),N=r(34133),A=r(27184),I=r(2233),b=r(44687),l=r(48891),R=r(86388);let v=(()=>{class C extends N.Oy{constructor(F,V,j){super(),this.env=F,this.injector=V,this.title=j}updateTitle(F,V=""){this.getTitle(F,V).then(j=>{j&&this.title.setTitle(j)})}getTitle(F,V=""){var j=this;return(0,f.A)(function*(){const Y=j.injector.get(b.W4),a=j.buildTitle(F),P=j.env.getProperty("PAGE_TITLE")||j.getDefaultTitleTemplate();if(!a)return;const u=yield(0,A._)(Y.get(a,{entity:V}));return P.replace("{title}",u)})()}getDefaultTitleTemplate(){let F="";return this.env.isDev()?F="DEV |":this.env.isQa()&&(F="QA |"),`${F} {title} - ${this.env.getProperty("APP_NAME")}`.trim()}static#e=this.\u0275fac=function(V){return new(V||C)(l.KVO(I.O),l.KVO(l.zZn),l.KVO(R.hE))};static#t=this.\u0275prov=l.jDH({token:C,factory:C.\u0275fac})}return C})();var E=r(98379),h=r(4788)},59703:(fe,J,r)=>{"use strict";r.d(J,{U:()=>H});var t=r(27691),e=r(48891),o=r(69397),s=r(53071),i=r(27917),p=r(41483),f=r(82040),N=r(53746),A=r(37171),I=r(10390),b=r(61916);class l{constructor(Q,O){this.jsonapi=Q,this.data=O}static extractAttributes(Q){const O=Q&&Q.attributes||Q||{};return Q&&(0,N.A)("id",Q)&&(O.id=Q.id),O}perform(){return Object.assign(l.extractAttributes(this.data),this.extractRelationships(this.data))}extractRelationships(Q){if(!Q||!Q.relationships)return;const O={};return Object.keys(Q.relationships).forEach($=>{const X=Q.relationships[$];if(null===X.data)return O[$]=null;if(X instanceof Array){const Z=X.map(He=>this.findIncluded(He.data));return Z&&(O[$]=Z),O}if(!(X.data instanceof Array)){const Z=this.findIncluded(X.data);if(Z)return O[$]=Z}}),O}findIncluded(Q){if(!this.jsonapi.included||!Q)return;const O=(0,A.A)(Q.id,"id"),$=(0,A.A)(Q.type,"type"),X=(0,I.A)((0,b.A)([O,$]),this.jsonapi.included);return X?Object.assign(l.extractAttributes(X),this.extractRelationships(X)):void 0}}let R=(()=>{class x{constructor(){this.collection=(O,$)=>$.map(X=>x.getJSONAPIDeserializer(O,X)),this.resource=O=>x.getJSONAPIDeserializer(O,O.data)}static getJSONAPIDeserializer(O,$){return new l(O,$).perform()}deserialize(O){if(O.data instanceof Array)return this.collection(O,O.data);const $=this.resource(O);return Object.keys($).length>0?$:O.data??O}static#e=this.\u0275fac=function($){return new($||x)};static#t=this.\u0275prov=e.jDH({token:x,factory:x.\u0275fac})}return x})(),v=(()=>{class x{constructor(O){this.jSONAPIDeserializer=O,this.JSON_API_CONTENT_TYPE="application/vnd.api+json"}intercept(O,$){return"HEAD"===O.method||"text"===O.responseType?$.handle(O):$.handle(O).pipe((0,p.p)(X=>X instanceof t.cS),(0,f.M)(X=>(X.headers.get("Content-Type")===this.JSON_API_CONTENT_TYPE&&X.body&&(X.body.data=this.jSONAPIDeserializer.deserialize(X.body)),X)))}static#e=this.\u0275fac=function($){return new($||x)(e.KVO(R))};static#t=this.\u0275prov=e.jDH({token:x,factory:x.\u0275fac})}return x})(),E=(()=>{class x{static#e=this.\u0275fac=function($){return new($||x)};static#t=this.\u0275mod=e.$C({type:x});static#i=this.\u0275inj=e.G2t({providers:[R,{multi:!0,provide:t.a7,useClass:v}]})}return x})();var h=r(59614),C=r(2233),M=r(26237),F=r(45275),V=r(63801),j=r(651),Y=r(37396);function a(x){return()=>x.runInitialLoginSequence()}var P=r(10056),u=r(98379);function z(x){return()=>new C.O(x)}let H=(()=>{class x{constructor(O){(0,F.Jc)(O,"CoreModule")}static forRoot(O){return{ngModule:x,providers:[{deps:[Y.T],multi:!0,provide:e.hnV,useFactory:a},{provide:s.xW,useValue:{...P.U,clientId:O.OAUTH_CLIENT_ID,issuer:O.OAUTH_ISSUER}},{provide:C.O,useFactory:z(O)}]}}static#e=this.\u0275fac=function($){return new($||x)(e.KVO(x,12))};static#t=this.\u0275mod=e.$C({type:x});static#i=this.\u0275inj=e.G2t({providers:[(0,t.$R)((0,t.YH)())],imports:[s.gn.forRoot(),V.r,o.wb,j.W,E,M.Q_,u.r,h.o6,i._B.forRoot({enableHtml:!0})]})}return x})()},94392:(fe,J,r)=>{"use strict";r.d(J,{q:()=>b});var t=r(82653),e=r(63016),o=r(1703),s=r(47947),i=r(36441),p=r(687),f=r(2233),N=r(67233),A=r(10266),I=r(48891);let b=(()=>{class l{constructor(v,E,h,C){this.authService=v,this.oAuthService=E,this.featureFlagService=h,this.environment=C}canActivate(v,E){const h=this.environment.isBackOffice()?N.TO.SsoLoginBO:N.TO.SsoLoginFO;return(0,t.p)([this.oAuthService.hasFailedAtInit?(0,e.of)(!1):this.featureFlagService.getFlagWithoutContextSnapshot(h),this.oAuthService.isAuthenticated$.pipe((0,o.$)())]).pipe((0,s.T)(([C,M])=>!(!M&&!this.authService.isAuthorized()&&(C?(p.dB.removeCookie(p.d5.SSO_LOGIN_HINT),this.oAuthService.login(E.url)):this.authService.logout(E.url),1))))}static#e=this.\u0275fac=function(E){return new(E||l)(I.KVO(i.uR),I.KVO(A.TC),I.KVO(N.y9),I.KVO(f.O))};static#t=this.\u0275prov=I.jDH({token:l,factory:l.\u0275fac})}return l})()},74357:(fe,J,r)=>{"use strict";r.d(J,{r:()=>h});var t=r(27691),e=r(94392),o=r(71217),s=r(17178),i=r(76564),p=r(22867),f=r(41483),N=r(1703),A=r(81459),I=r(36441),b=r(2233),l=r(48891),R=r(53071);let v=(()=>{class C{constructor(F,V,j){this.authService=F,this.oAuthService=V,this.environment=j,this.isRefreshingToken=!1,this.tokenSubject=new o.t(void 0)}intercept(F,V){const j=this.authService.getToken(),Y=this.environment.getProperty("OAUTH_ISSUER"),a=this.environment.getProperty("STATIC_ASSETS_URL"),P=[Y?new URL(Y).origin:"",a?new URL(a).origin:"","version.txt"];if(j&&!P.filter(u=>!!u).some(u=>F.url.includes(u))&&"JSONP"!==F.method){if(this.authService.isExpiredAccessToken())return Y&&this.oAuthService.getRefreshToken()&&!this.authService.isExpiredRefreshToken()?this.isRefreshingToken?this.tokenSubject.pipe((0,f.p)(u=>void 0!==u),(0,N.$)(),(0,p.n)(u=>V.handle(this.setBearer(F,u)))):(this.isRefreshingToken=!0,this.tokenSubject.next(void 0),this.oAuthService.refreshToken().then(u=>{this.tokenSubject.next(u.access_token),this.isRefreshingToken=!1}),this.tokenSubject.pipe((0,f.p)(u=>void 0!==u),(0,N.$)(),(0,A.H)(u=>V.handle(this.setBearer(F,u))),(0,s.W)(()=>(this.authService.logout(window.location.pathname+window.location.hash),i.w)))):void this.authService.logout(window.location.pathname+window.location.hash);F=this.setBearer(F,j)}return V.handle(F)}setBearer(F,V){return F.clone({headers:F.headers.set("Authorization",`Bearer ${V}`)})}static#e=this.\u0275fac=function(V){return new(V||C)(l.KVO(I.uR),l.KVO(R.TC),l.KVO(b.O))};static#t=this.\u0275prov=l.jDH({token:C,factory:C.\u0275fac})}return C})();var E=r(61599);let h=(()=>{class C{static#e=this.\u0275fac=function(V){return new(V||C)};static#t=this.\u0275mod=l.$C({type:C});static#i=this.\u0275inj=l.G2t({providers:[e.q,E.v,{multi:!0,provide:t.a7,useClass:v}]})}return C})()},67276:(fe,J,r)=>{"use strict";r.d(J,{m:()=>o});var t=r(36441),e=r(48891);let o=(()=>{class s{constructor(p){this.authService=p}onMouseEnter(){this.authService.logout("")}static#e=this.\u0275fac=function(f){return new(f||s)(e.rXU(t.uR))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","shLogout",""]],hostBindings:function(f,N){1&f&&e.bIt("click",function(){return N.onMouseEnter()})},standalone:!0})}return s})()},63801:(fe,J,r)=>{"use strict";r.d(J,{q_:()=>t.q,r:()=>e.r,v6:()=>s.v});var t=r(94392),e=r(74357),s=(r(67276),r(61599))},61599:(fe,J,r)=>{"use strict";r.d(J,{v:()=>l});var t=r(82653),e=r(63016),o=r(1703),s=r(47947),i=r(36441),p=r(687),f=r(2233),N=r(67233),A=r(10266),I=r(48891),b=r(34133);let l=(()=>{class R{constructor(E,h,C,M,F){this.authService=E,this.router=h,this.featureFlagService=C,this.oAuthService=M,this.environment=F}canActivate(){const E=this.environment.isBackOffice()?N.TO.SsoLoginBO:N.TO.SsoLoginFO;return(0,t.p)([this.oAuthService.hasFailedAtInit?(0,e.of)(!1):this.featureFlagService.getFlagWithoutContextSnapshot(E),this.oAuthService.isAuthenticated$.pipe((0,o.$)())]).pipe((0,s.T)(([h,C])=>C||this.authService.isAuthorized()&&!this.authService.isExpiredAccessToken()?this.router.parseUrl("/"):(h&&(p.dB.removeCookie(p.d5.SSO_LOGIN_HINT),this.oAuthService.login()),!h)))}static#e=this.\u0275fac=function(h){return new(h||R)(I.KVO(i.uR),I.KVO(b.Ix),I.KVO(N.y9),I.KVO(A.TC),I.KVO(f.O))};static#t=this.\u0275prov=I.jDH({token:R,factory:R.\u0275fac})}return R})()},69942:(fe,J,r)=>{"use strict";r.d(J,{W:()=>e});var t=r(27691);class e extends t.yz{constructor(s){super(s),this.method=s.method,this.urlRegex=s.urlRegex}}},651:(fe,J,r)=>{"use strict";r.d(J,{W:()=>a});var t=r(54460),e=r(27691),o=r(48891),s=r(28701),i=r(74357),p=r(65460),f=r(67233);let N=(()=>{class P{constructor(z,H){this.atatusService=z,this.errorsService=H,this.errorsSubscription=this.errorsService.errors().subscribe(x=>{this.atatusService.notify(x.stack,x.appName,x.userId)})}ngOnDestroy(){this.errorsSubscription.unsubscribe()}static#e=this.\u0275fac=function(H){return new(H||P)(o.KVO(f.qy),o.KVO(p.b))};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),A=(()=>{class P{constructor(z){this.injector=z,this.errorsService=this.injector.get(p.b),this.injector.get(N)}handleError(z){this.errorsService.emitError(z)}static#e=this.\u0275fac=function(H){return new(H||P)(o.KVO(o.zZn))};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac})}return P})();var I=r(48915),b=r(91167),l=r(12596),R=r(44687),v=r(69942);const E="([^/]+)",M=[new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("Incorrect organization for creating a notification."),urlRegex:new RegExp(`${l.M$.Notifications}$`)}),new v.W({method:"GET",status:l.kG.NotFound,statusText:(0,b.x)("Unable to obtain the available languages for a deleted notification."),urlRegex:new RegExp(`${l.M$.AvailableLanguages.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"DELETE",status:l.kG.NotFound,statusText:(0,b.x)("Impossible to remove this recipient because the notification or the recipient no longer exists."),urlRegex:new RegExp(`${l.M$.DeleteNotificationEmailSubscription.replace(":prefix",l.M$.Notifications).replace(":notificationId",E).replace(":recipientId",E)}$`)}),new v.W({method:"DELETE",status:l.kG.NotFound,statusText:(0,b.x)("Impossible to remove this recipient because the notification or the recipient no longer exists."),urlRegex:new RegExp(`${l.M$.DeleteNotificationSmsSubscription.replace(":prefix",l.M$.Notifications).replace(":notificationId",E).replace(":recipientId",E)}$`)}),new v.W({method:"DELETE",status:l.kG.NotFound,statusText:(0,b.x)("Impossible to remove this condition because the notification no longer exists."),urlRegex:new RegExp(`${l.M$.Conditions.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to create the conditions for this notification."),urlRegex:new RegExp(`${l.M$.Conditions.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"DELETE",status:l.kG.NotFound,statusText:(0,b.x)("Unable to delete a notification that no longer exists."),urlRegex:new RegExp(`${l.M$.NotificationById.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to duplicate the notification."),urlRegex:new RegExp(`${l.M$.NotificationById.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"PUT",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to update the notification."),urlRegex:new RegExp(`${l.M$.NotificationById.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"PUT",status:l.kG.NotFound,statusText:(0,b.x)("Unable to update a deleted notification."),urlRegex:new RegExp(`${l.M$.NotificationById.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to create the email template"),urlRegex:new RegExp(`${l.M$.EmailTemplates.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to create the sms template"),urlRegex:new RegExp(`${l.M$.SmsTemplates.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.NotFound,statusText:(0,b.x)("Impossible to add a sms template because the notification no longer exists."),urlRegex:new RegExp(`${l.M$.SmsTemplates.replace(":prefix",l.M$.Notifications).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to create the notification."),urlRegex:new RegExp(`${l.M$.NotificationTemplates}$`)}),new v.W({method:"DELETE",status:l.kG.NotFound,statusText:(0,b.x)("Impossible to remove this condition because the notification no longer exists."),urlRegex:new RegExp(`${l.M$.Conditions.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to create the conditions for this notification."),urlRegex:new RegExp(`${l.M$.Conditions.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to create the email template."),urlRegex:new RegExp(`${l.M$.EmailTemplates.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E)}$`)}),new v.W({method:"DELETE",status:l.kG.NotFound,statusText:(0,b.x)("Impossible to remove this email template because it no longer exists."),urlRegex:new RegExp(`${l.M$.EmailTemplateById.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E).replace(":templateId",E)}$`)}),new v.W({method:"PUT",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to update the trigger event."),urlRegex:new RegExp(`${l.M$.EmailTemplateById.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E).replace(":templateId",E)}$`)}),new v.W({method:"GET",status:l.kG.NotFound,statusText:(0,b.x)("Notification not found."),urlRegex:new RegExp(`${l.M$.AvailableLanguages.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E)}$`)}),new v.W({method:"PUT",status:l.kG.NotFound,statusText:(0,b.x)("The notification to be updated no longer exists."),urlRegex:new RegExp(`${l.M$.AvailableLanguages.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E)}$`)}),new v.W({method:"PUT",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to update the notification."),urlRegex:new RegExp(`${l.M$.AvailableLanguages.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E)}$`)}),new v.W({method:"POST",status:l.kG.BadRequest,statusText:(0,b.x)("One or more parameters are missing to create the sms template."),urlRegex:new RegExp(`${l.M$.SmsTemplates.replace(":prefix",l.M$.NotificationTemplates).replace(":notificationId",E)}$`)})];var F=r(18306);let V=(()=>{class P{constructor(z,H,x){this.toastService=z,this.ngZone=H,this.injector=x,this.excludedHttpResponses=[new v.W({status:l.kG.Disconnected}),new v.W({status:l.kG.Unauthorized}),new v.W({method:"POST",status:l.kG.NotFound,url:l.M$.Tokens}),new v.W({method:"HEAD",status:l.kG.NotFound}),new v.W({method:"GET",status:l.kG.Forbidden,url:l.hk.Eta}),new v.W({method:"GET",status:l.kG.NotFound}),new v.W({method:"GET",status:l.kG.UnknownStatus,url:l.A8.Orders}),new v.W({method:"POST",status:l.kG.BadRequest,url:l.M$.CheckCredentials}),new v.W({method:"POST",status:l.kG.UnknownStatus,url:l.M$.CheckCredentials}),new v.W({method:"POST",status:l.kG.BadRequest,url:l.Oh.SelectConnection}),new v.W({status:l.kG.Conflict,url:l.M$.Users}),new v.W({status:l.kG.BadRequest,url:l.M$.Users}),new v.W({status:l.kG.BadRequest,url:l.M$.Means}),new v.W({method:"DELETE",status:l.kG.BadRequest,urlRegex:new RegExp(l.M$.UserProfiles)}),new v.W({method:"POST",status:l.kG.NotFound,url:l.M$.ReplayEventEvents})]}excludeIgnored(z,H){const x=this.getCustomError(z,H);if(x)this.showAlert((0,b.x)("Error"),x.statusText);else{if(this.isExcluded(z,H))return(0,I.$)(new v.W(z));this.showAlert()}return(0,I.$)(z)}isExcluded(z,H){return H&&this.excludedHttpResponses.some(x=>!((x.status||x.status===l.kG.Disconnected)&&x.status!==z.status||x.url&&!z.url.includes(x.url)||x.urlRegex&&!x.urlRegex.test(z.url)||x.method&&x.method!==H))}showAlert(z,H){this.ngZone.run(()=>{const x=this.injector.get(R.W4);this.toastService.error(x.instant(z||(0,b.x)("Shippeo encountered a problem")),x.instant(H||(0,b.x)("Your last operation failed to execute properly. Please try again and contact the support team if the problem persists.")))})}getCustomError(z,H){return M.find(x=>x.urlRegex.test(z.url)&&H===x.method&&z.status===x.status)}static#e=this.\u0275fac=function(H){return new(H||P)(o.KVO(F.fw),o.KVO(o.SKi),o.KVO(o.zZn))};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac})}return P})();var j=r(17178);let Y=(()=>{class P{constructor(z){this.errorsHttpIgnoredService=z}intercept(z,H){return H.handle(z).pipe((0,j.W)(x=>this.errorsHttpIgnoredService.excludeIgnored(x,z.method)))}static#e=this.\u0275fac=function(H){return new(H||P)(o.KVO(V))};static#t=this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac})}return P})(),a=(()=>{class P{static#e=this.\u0275fac=function(H){return new(H||P)};static#t=this.\u0275mod=o.$C({type:P});static#i=this.\u0275inj=o.G2t({providers:[{multi:!0,provide:e.a7,useClass:Y},V,{provide:o.zcH,useClass:A}],imports:[i.r,t.MD,s.Ov]})}return P})()},65460:(fe,J,r)=>{"use strict";r.d(J,{b:()=>A});var t=r(31635),e=r(54460),o=r(27691),s=r(18447),i=r(36441),p=r(2233),f=r(6622),N=r(48891);class A{constructor(b,l,R){this.environment=b,this.locationStrategy=l,this.authService=R,this.error$=new s.B}emitError(b){const l=this.addContextInfo(b);this.error$.next(l)}errors(){return this.error$.asObservable()}addContextInfo(b){const l=this.environment.getProperty("APP_NAME"),R=this.locationStrategy;return{appName:l,message:b.message||b.toString(),name:b.name,stack:b,status:b instanceof o.yz?b.status:void 0,time:(new Date).getTime(),url:R instanceof e.Sm?R.path():"",userId:this.authService.getCurrentUserId()}}static#e=this.\u0275fac=function(l){return new(l||A)(N.KVO(p.O),N.KVO(e.hb),N.KVO(i.uR))};static#t=this.\u0275prov=N.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}(0,t.Cg)([(0,f.w)(),(0,t.Sn)("design:type",Function),(0,t.Sn)("design:paramtypes",[Error]),(0,t.Sn)("design:returntype",void 0)],A.prototype,"emitError",null)},10266:(fe,J,r)=>{"use strict";r.d(J,{TC:()=>f.T,fz:()=>p});var t=r(48891),e=r(34133),o=r(1703),s=r(47947),i=r(36441);const p=A=>{const I=(0,t.WQX)(e.Ix),b=(0,t.WQX)(i.uR);return(0,t.WQX)(f.T).isAuthenticated$.pipe((0,o.$)(),(0,s.T)(R=>!R&&!b.isAuthorized()||I.parseUrl(A.queryParams.redirect||"/")))};var f=r(37396);r(10056)},10056:(fe,J,r)=>{"use strict";r.d(J,{U:()=>t});const t={clearHashAfterLogin:!1,clientId:"",issuer:"",nonceStateSeparator:"semicolon",redirectUri:window.location.origin+"/",responseType:"code",scope:"openid profile offline_access full_profile termsOfUse:1.0",strictDiscoveryDocumentValidation:!1,useSilentRefresh:!1}},37396:(fe,J,r)=>{"use strict";r.d(J,{T:()=>l});var t=r(71217),e=r(85710),o=r(41483),s=r(36441),i=r(30696),p=r(687),f=r(2233),N=r(45275),A=r(48891),I=r(53071),b=r(34133);let l=(()=>{class R{constructor(E,h,C,M,F){this.authService=E,this.oauthService=h,this.router=C,this.startupService=M,this.environment=F,this.isAuthenticatedSubject$=new t.t(this.oauthService.hasValidAccessToken()),this.subscriptions=new e.yU,this.isAuthenticated$=this.isAuthenticatedSubject$.asObservable(),window.addEventListener("storage",V=>{"access_token"!==V.key&&null!==V.key||this.oauthService.hasValidAccessToken()||this.oauthService.logOut()}),this.subscriptions.add(this.oauthService.events.subscribe(V=>{this.isAuthenticatedSubject$.next(this.oauthService.hasValidAccessToken())})),this.isAuthenticatedSubject$.next(this.oauthService.hasValidAccessToken()),this.subscriptions.add(this.oauthService.events.pipe((0,o.p)(V=>["token_received"].includes(V.type))).subscribe(()=>{const V=p.dB.getCookie(p.d5.SSO_REDIRECT_URI);V&&(p.dB.removeCookie(p.d5.SSO_REDIRECT_URI),this.router.navigate([V]))})),this.subscriptions.add(this.oauthService.events.pipe((0,o.p)(V=>["session_terminated","session_error"].includes(V.type))).subscribe(()=>{this.navigateToLoginPage()}))}runInitialLoginSequence(){return this.oauthService.loadDiscoveryDocumentAndTryLogin().then(()=>this.authService.isExpiredAccessToken()&&this.oauthService.getRefreshToken()&&!this.authService.isExpiredRefreshToken()?(p.wZ.removeItem(p.d5.AUTH_TOKEN),this.oauthService.refreshToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()).then(()=>{if(this.startupService.setAsReady(),this.oauthService.state&&"undefined"!==this.oauthService.state&&"null"!==this.oauthService.state){let E=this.oauthService.state;!1===E.startsWith("/")&&(E=decodeURIComponent(E)),(0,N.Uc)(E)}}).catch(()=>{this.environment.getProperty("OAUTH_ISSUER")&&console.error("SSO error : feature flag ignored. Check issuer and sso endpoint availability"),this.hasFailedAtInit=!0,this.startupService.setAsReady()})}login(E){this.oauthService.initLoginFlow(E||this.router.url)}logout(){this.oauthService.logOut()}navigateToLoginPage(){this.router.navigateByUrl("/auth/login")}static#e=this.\u0275fac=function(h){return new(h||R)(A.KVO(s.uR),A.KVO(I.TC),A.KVO(b.Ix),A.KVO(i.bl),A.KVO(f.O))};static#t=this.\u0275prov=A.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},98379:(fe,J,r)=>{"use strict";r.d(J,{r:()=>o});var t=r(4788),e=r(48891);let o=(()=>{class s{static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275mod=e.$C({type:s});static#i=this.\u0275inj=e.G2t({providers:[t.g]})}return s})()},4788:(fe,J,r)=>{"use strict";r.d(J,{g:()=>e});var t=r(48891);let e=(()=>{class o{constructor(){this.MINIMUM_PASSWORD_LENGTH=8}getRandom(i=this.MINIMUM_PASSWORD_LENGTH){i<=0&&(i=this.MINIMUM_PASSWORD_LENGTH);return Array(i).fill("").map(()=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOP1234567890".charAt(Math.floor(52*Math.random()))).join("")}static#e=this.\u0275fac=function(p){return new(p||o)};static#t=this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})()},74221:(fe,J,r)=>{"use strict";r.d(J,{BY:()=>Q.BY,O6:()=>t.O,Zz:()=>Ge,YH:()=>Q.YH,PW:()=>Q.PW,K8:()=>o.K,zI:()=>We,Ne:()=>Ue.N,vz:()=>Q.vz,H0:()=>Q.H0,IB:()=>b,q2:()=>x,En:()=>C,Yl:()=>V.Y,ju:()=>Q.ju,x1:()=>X,gw:()=>$,Ib:()=>Q.Ib,sZ:()=>Q.sZ,AS:()=>z});var t=r(82526),o=(r(77870),r(41238)),i=(r(23354),r(54460)),p=r(34133),f=r(44687),N=r(18306),A=r(48891);let b=(()=>{class ve{static#e=this.\u0275fac=function(d){return new(d||ve)};static#t=this.\u0275mod=A.$C({type:ve});static#i=this.\u0275inj=A.G2t({imports:[N.tm,i.MD,f.LP,p.iI]})}return ve})();r(29186);var R=r(10936);let C=(()=>{class ve{static#e=this.\u0275fac=function(d){return new(d||ve)};static#t=this.\u0275mod=A.$C({type:ve});static#i=this.\u0275inj=A.G2t({imports:[i.MD,b,R.X1]})}return ve})();r(39102),r(78031);var V=r(50150),P=(r(44510),r(15825),r(58170),r(70272));let z=(()=>{class ve{static#e=this.\u0275fac=function(d){return new(d||ve)};static#t=this.\u0275mod=A.$C({type:ve});static#i=this.\u0275inj=A.G2t({imports:[i.MD,f.LP,P.cq]})}return ve})();var H=r(33325);class x extends R.hs{constructor(S,ue,d,Re,he){super(S,ue,d),this.setWarnings=oe=>{this.warnings=oe},this.validate=()=>{this.warningValidator?this.runWarningValidator():this.warningAsyncValidator?this.runAsyncWarningValidator():this.warnings=void 0},this.setWarningValidators(Re),this.setAsyncWarningValidators(he),this.valueChanges.subscribe(this.validate)}clearAsyncWarningValidators(){this.warningAsyncValidator=void 0,this.asyncValidatorSubscription&&!this.asyncValidatorSubscription.closed&&this.asyncValidatorSubscription.unsubscribe()}clearWarningValidators(){this.warningValidator=void 0}getWarning(S){return this.warnings?this.warnings[S]:void 0}hasWarning(S){return!(!this.warnings||!this.warnings[S])}setAsyncWarningValidators(S){this.warningAsyncValidator=S?this.coerceToAsyncValidator(S):void 0}setWarningValidators(S){this.warningValidator=S?this.coerceToValidator(S):void 0}updateValueAndValidity(S){super.updateValueAndValidity(S)}coerceToAsyncValidator(S){return Array.isArray(S)?R.k0.composeAsync(S):S}coerceToValidator(S){return Array.isArray(S)?R.k0.compose(S):S}runAsyncWarningValidator(){const S=this.warningAsyncValidator(this),ue="function"==typeof S?(0,H.H)(S):S;this.asyncValidatorSubscription=ue.subscribe(this.setWarnings)}runWarningValidator(){this.setWarnings(this.warningValidator(this))}}var Q=r(73548),O=r(36287);let $=(()=>{class ve{constructor(){this.languages=[new O._BQ("Deutsch","de"),new O._BQ("Dutch","nl"),new O._BQ("English","en"),new O._BQ("Espa\xf1ol","es"),new O._BQ("Fran\xe7ais","fr"),new O._BQ("Italiano","it"),new O._BQ("Polski","pl"),new O._BQ("Portugu\xeas","pt")],this.notificationLanguages=[...this.languages,new O._BQ("Khmer","km")]}getLanguages(){return this.languages}getNotificationLanguages(){return this.notificationLanguages}static#e=this.\u0275fac=function(d){return new(d||ve)};static#t=this.\u0275prov=A.jDH({token:ve,factory:ve.\u0275fac})}return ve})(),X=(()=>{class ve{static#e=this.\u0275fac=function(d){return new(d||ve)};static#t=this.\u0275mod=A.$C({type:ve});static#i=this.\u0275inj=A.G2t({providers:[$]})}return ve})();var Z=r(63016),He=r(93e3),L=r(22867),Ce=r(47947),ce=r(1703),me=r(17178),_e=r(91167),Me=r(12596);let Ge=(()=>{class ve{constructor(ue){this.apiService=ue,this.waitTimeInMs=200}uniqueAgencyValidation(ue,d=""){return this.validateNameByEndPointFn(Me.M$.Agencies,"agency",ue,d)}uniqueEmailValidation(ue,d=""){return this.validateEmailByEndPointFn(Me.M$.Users,"email",ue,d)}uniqueOrganizationValidation(ue){return this.validateNameByEndPointFn(Me.M$.Organizations,"organization",ue)}uniqueReferenceValidation(){return ue=>!ue.value||ue.pristine?(0,Z.of)(void 0):(0,He.O)(this.waitTimeInMs).pipe((0,L.n)(()=>this.isExist(Me.M$.Reference.replace(":reference",ue.value))),(0,Ce.T)(d=>d?void 0:{referenceExist:(0,_e.x)("Cette r\xe9f\xe9rence existe d\xe9j\xe0")}),(0,ce.$)())}uniqueTagValidation(ue,d){return this.validateNameByEndPointFn(`${Me.M$.Organizations}/${ue}/tags`,"tag",d)}uniqueUsernameOnboardingValidation(ue,d,Re=""){return this.validateFieldByEndpointFn(Me.M$.OnboardingUsernameExistsValidator.replace(":onboardingCode",d),"username",ue,"",Re)}uniqueUsernameValidation(ue,d=""){return this.validateFieldByEndpointFn(Me.M$.Username,"username",ue,"",d)}isExist(ue){return this.apiService.head(ue).pipe((0,Ce.T)(()=>!1),(0,me.W)(()=>(0,Z.of)(!0)))}validateEmailByEndPointFn(ue,d,Re="",he=""){return this.validateFieldByEndpointFn(ue,d,Re,"email",he)}validateFieldByEndpointFn(ue,d,Re="",he="",oe=""){return qe=>{if(!qe.value||qe.pristine||qe.value===Re)return(0,Z.of)(void 0);let w=`${ue}/${qe.value}`;return he&&(w=`${ue}/${he}/${qe.value}`),(0,He.O)(this.waitTimeInMs).pipe((0,L.n)(()=>this.isExist(w)),(0,Ce.T)(re=>re?void 0:{[`${d}Exist`]:oe??(0,_e.x)("This value already exists")}),(0,ce.$)())}}validateNameByEndPointFn(ue,d,Re="",he=""){return this.validateFieldByEndpointFn(ue,d,Re,"name",he)}static#e=this.\u0275fac=function(d){return new(d||ve)(A.KVO(Me.Gf))};static#t=this.\u0275prov=A.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();var Ue=r(49281),ze=r(89418),k=r(87431);let We=(()=>{class ve{constructor(ue){this.i18nService=ue}emailSeparatedByComma(){return({value:ue})=>{if(!ue||(0,k.A)(ue))return;const d=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return ue.split(",").map(he=>{if(""===he||!d.test(he.trim()))return!1}).includes(!1)?{email:this.i18nService.instant((0,_e.x)("Please enter a comma separated list of valid email addresses"))}:void 0}}phoneSeparatedByComma(){return({value:ue})=>!ue||(0,k.A)(ue)?void 0:ue.split(",").map(Re=>{const he=(0,ze.l)(Re);return!(!he||!he.isValid())&&void 0}).includes(!1)?{phone:(0,_e.x)("Please enter a comma separated list of valid phone numbers")}:void 0}static#e=this.\u0275fac=function(d){return new(d||ve)(A.KVO(f.W4))};static#t=this.\u0275prov=A.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})()},82526:(fe,J,r)=>{"use strict";r.d(J,{O:()=>Y});var t=r(54460),e=r(48891),o=r(10936),s=r(85710),i=r(91167),p=r(14884),f=r(70272),N=r(44687),A=r(26237),I=r(36287),b=r(18306),l=r(53784),R=r(43134),v=r(44510),E=r(15825),h=r(53220),C=r(93658);function M(a,P){if(1&a&&e.nrm(0,"shui-input",14),2&a){const u=e.XpG();e.Y8G("placeholder",u.countryPlaceholder)}}function F(a,P){if(1&a&&(e.nrm(0,"shui-select",15),e.nI1(1,"translate")),2&a){const u=e.XpG();e.FS9("placeholder",e.bMT(1,2,"France")),e.Y8G("items",u.countryList)}}function V(a,P){if(1&a&&(e.j41(0,"p",16),e.EFF(1),e.k0s()),2&a){const u=e.XpG();e.R7$(),e.Lme("",u.timezone,", UTC",u.offset,"")}}function j(a,P){if(1&a){const u=e.RV6();e.j41(0,"div",17)(1,"div",12)(2,"button",18),e.bIt("click",function(){e.eBV(u);const H=e.XpG();return e.Njj(H.onFullscreenMap())}),e.nrm(3,"sh-svg-icon",19),e.k0s()()()}}let Y=(()=>{class a{constructor(u,z,H,x){this.i18nService=u,this.modalService=z,this.timezoneService=H,this.changeDetectorRef=x,this.displayCoordinates=!0,this.geoFencingModes=[new I._BQ((0,i.x)("Circle"),R.Nw.CircleGeoFencing,!0),new I._BQ((0,i.x)("Polygon"),R.Nw.PolygonGeoFencing,!1)],this.isSelectInput=!1,this.streetPlaceholder=this.i18nService.instant((0,i.x)("street")),this.cityPlaceholder=this.i18nService.instant((0,i.x)("town")),this.countryPlaceholder=this.i18nService.instant((0,i.x)("country")),this.zipPlaceholder=this.i18nService.instant((0,i.x)("ZIP")),this.newAddress=(0,e.CGW)(),this.subscriptions=new s.yU,this.setTimezoneAndOffset=Q=>{this.timezone=Q,this.offset=this.timezoneService.getOffset(this.timezone),this.changeDetectorRef.markForCheck()}}ngOnDestroy(){this.subscriptions.unsubscribe()}ngOnInit(){this.geoCodeGroup=this.parent.get("geoCode"),this.geoCodeGroup&&(this.geoCode=this.geoCodeGroup.value,this.geoFencingRadiusControl=this.geoCodeGroup.get("geoFencingRadius"),this.setIsAddressSelected()),this.parent.get("timezone")&&this.setTimezoneAndOffset(this.parent.get("timezone").value),this.setCountries(this.i18nService.getCurrentLanguage().getValue().code)}onFullscreenMap(){const z=this.modalService.showFullPage({component:v.K,inputs:{displayCoordinates:this.displayCoordinates,geoFencingModes:this.geoFencingModes,parent:this.geoCodeGroup}}).subscribe(H=>{this.geoCodeGroup.patchValue(H.result.value)});this.subscriptions.add(z)}onPlaceChanged({address:u,location:z}){this.geoCode.setLat(z.lat),this.geoCode.setLng(z.lng),this.geoCodeGroup.setValue(this.geoCode),u.political=this.i18nService.getCountryCode(u.political),this.geoFencingRadiusControl&&(z.geoFencingRadius=this.geoFencingRadiusControl.value),this.newAddress.emit({address:u,location:z});const H=this.timezoneService.getTimezone(z).subscribe(this.setTimezoneAndOffset);this.subscriptions.add(H),this.setIsAddressSelected()}setCountries(u){const z=this.i18nService.getCountryNames(u);this.countryList=Object.keys(z).map(H=>({label:z[H],value:H}))}setIsAddressSelected(){this.isAddressSelected=this.geoCode.hasLatLng()}static#e=this.\u0275fac=function(z){return new(z||a)(e.rXU(N.W4),e.rXU(A.Bg),e.rXU(p.D),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:a,selectors:[["sh-address-form"]],inputs:{displayCoordinates:"displayCoordinates",geoFencingModes:"geoFencingModes",isSelectInput:"isSelectInput",parent:"parent",streetPlaceholder:"streetPlaceholder",cityPlaceholder:"cityPlaceholder",countryPlaceholder:"countryPlaceholder",zipPlaceholder:"zipPlaceholder"},outputs:{newAddress:"newAddress"},standalone:!0,features:[e.aNF],decls:40,vars:26,consts:[["selectCountry",""],[3,"formGroup"],[1,"row","form-group"],["data-qa","address-street-field",1,"col-6"],["formControlName","street","shMapAutocomplete","",3,"placeChange","placeholder"],[1,"col-6"],["formControlName","town",3,"placeholder"],["formControlName","postalCode",3,"placeholder"],["formControlName","country",3,"placeholder",4,"ngIf","ngIfElse"],["class","mt-2",4,"ngIf"],["class","row mt-5",4,"ngIf"],[1,"row"],[1,"col-12","position-relative"],[3,"displayCoordinates","parent","geoFencingModes"],["formControlName","country",3,"placeholder"],["formControlName","country",3,"items","placeholder"],[1,"mt-2"],[1,"row","mt-5"],["type","button",1,"btn","map-button","pull-right","fullscreen-maximize","box-shadow-base",3,"click"],["color","ghost-button","name","map--expand","size","sm"]],template:function(z,H){if(1&z){const x=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"shui-form-field")(4,"shui-label"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"shui-input",4),e.bIt("placeChange",function(O){return e.eBV(x),e.Njj(H.onPlaceChanged(O))}),e.k0s()()()(),e.j41(8,"div",2)(9,"div",5)(10,"shui-form-field")(11,"shui-label"),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"shui-input",6),e.k0s()(),e.j41(15,"div",5)(16,"shui-form-field")(17,"shui-label"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.nrm(20,"shui-input",7),e.k0s()()(),e.j41(21,"div",2)(22,"div",5)(23,"shui-form-field")(24,"shui-label"),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,M,1,1,"shui-input",8)(28,F,2,4,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(30,"div",5)(31,"shui-form-field")(32,"shui-label"),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.DNE(35,V,2,2,"p",9),e.k0s()()(),e.DNE(36,j,4,0,"div",10),e.j41(37,"div",11)(38,"div",12),e.nrm(39,"sh-map-form",13),e.k0s()()()}if(2&z){const x=e.sdS(29);e.Y8G("formGroup",H.parent),e.R7$(5),e.JRh(e.bMT(6,16,"Street")),e.R7$(2),e.Y8G("placeholder",H.streetPlaceholder),e.R7$(5),e.JRh(e.bMT(13,18,"City")),e.R7$(2),e.Y8G("placeholder",H.cityPlaceholder),e.R7$(4),e.JRh(e.bMT(19,20,"ZIP")),e.R7$(2),e.Y8G("placeholder",H.zipPlaceholder),e.R7$(5),e.JRh(e.bMT(26,22,"Country")),e.R7$(2),e.Y8G("ngIf",!H.isSelectInput)("ngIfElse",x),e.R7$(6),e.JRh(e.bMT(34,24,"Timezone")),e.R7$(2),e.Y8G("ngIf",H.timezone),e.R7$(),e.Y8G("ngIf",H.isAddressSelected),e.R7$(3),e.Y8G("displayCoordinates",H.displayCoordinates)("parent",H.geoCodeGroup)("geoFencingModes",H.geoFencingModes)}},dependencies:[t.MD,t.bT,N.LP,h.D9,l.Gt,E.x,v.K,o.X1,o.BC,o.cb,o.j4,o.JD,b.wB,f.cq,C.D,b.LT,b.KS,b.UF,b.Sj],styles:[".map-button.fullscreen-maximize[_ngcontent-%COMP%]{position:absolute;top:10px;z-index:1;right:25px}[_nghost-%COMP%]     .select-button{min-width:initial!important;width:100%}"],changeDetection:0})}return a})()},77870:(fe,J,r)=>{"use strict";r.d(J,{q:()=>R});var t=r(54460),e=r(10936),o=r(76803),s=r(44687),i=r(18306),p=r(50150),f=r(48891),N=r(78031),A=r(39102),I=r(53220);function b(v,E){if(1&v&&(f.j41(0,"sh-form-validation-messages",16)(1,"sh-form-validation-message",17)(2,"span",18),f.EFF(3,"Please enter a valid phone number"),f.k0s()()()),2&v){const h=f.XpG();f.Y8G("for",h.phoneControl.errors)}}function l(v,E){if(1&v&&(f.j41(0,"sh-form-validation-messages",16)(1,"sh-form-validation-message",19)(2,"span",18),f.EFF(3,"Please enter a valid email address"),f.k0s()()()),2&v){const h=f.XpG();f.Y8G("for",h.emailControl.errors)}}let R=(()=>{class v{get emailControl(){return this.contactGroup.get("email").get("value")}get phoneControl(){return this.contactGroup.get("phone").get("value")}ngOnInit(){this.phoneControl.errors&&this.phoneControl.markAsTouched(),this.emailControl.errors&&this.emailControl.markAsTouched()}static#e=this.\u0275fac=function(C){return new(C||v)};static#t=this.\u0275cmp=f.VBU({type:v,selectors:[["sh-contact-form"]],inputs:{contactGroup:"contactGroup"},standalone:!0,features:[f.aNF],decls:40,vars:30,consts:[[3,"formGroup"],[1,"row","mt-4"],[1,"col-6"],["data-qa","input-referring-person"],["formControlName","name"],["formGroupName","phone",1,"col-6"],["slot","indicator"],["formControlName","value",3,"placeholder"],[3,"for",4,"ngIf"],["formGroupName","email",1,"col-6"],["formControlName","value"],[1,"row","mt-5"],["formGroupName","phone",1,"col-6","d-flex"],["formControlName","enabled"],["color","shippeo-500","name","information-circle",3,"ngbTooltip"],["formGroupName","email",1,"col-6","d-flex"],[3,"for"],["when","phone"],["translate",""],["when","email"]],template:function(C,M){1&C&&(f.qex(0,0),f.j41(1,"div",1)(2,"div",2)(3,"shui-form-field")(4,"shui-label",3),f.EFF(5),f.nI1(6,"translate"),f.k0s(),f.nrm(7,"shui-input",4),f.k0s()()(),f.j41(8,"div",1)(9,"div",5)(10,"shui-form-field")(11,"shui-label"),f.EFF(12),f.nI1(13,"translate"),f.j41(14,"span",6),f.EFF(15),f.nI1(16,"translate"),f.k0s()(),f.nrm(17,"shui-input",7),f.nI1(18,"translate"),f.k0s(),f.DNE(19,b,4,1,"sh-form-validation-messages",8),f.k0s(),f.j41(20,"div",9)(21,"shui-form-field")(22,"shui-label"),f.EFF(23),f.nI1(24,"translate"),f.k0s(),f.nrm(25,"shui-input",10),f.k0s(),f.DNE(26,l,4,1,"sh-form-validation-messages",8),f.k0s()(),f.j41(27,"div",11)(28,"div",12)(29,"shui-checkbox",13),f.EFF(30),f.nI1(31,"translate"),f.k0s(),f.nrm(32,"shui-svg-icon",14),f.nI1(33,"translate"),f.k0s(),f.j41(34,"div",15)(35,"shui-checkbox",13),f.EFF(36),f.nI1(37,"translate"),f.k0s(),f.nrm(38,"shui-svg-icon",14),f.nI1(39,"translate"),f.k0s()(),f.bVm()),2&C&&(f.Y8G("formGroup",M.contactGroup),f.R7$(5),f.JRh(f.bMT(6,12,"Refering Person")),f.R7$(7),f.SpI(" ",f.bMT(13,14,"Mobile phone")," "),f.R7$(3),f.JRh(f.bMT(16,16,"(+33 x xx xx xx xx)")),f.R7$(2),f.Y8G("placeholder",f.bMT(18,18,"+33 x xx xx xx xx")),f.R7$(2),f.Y8G("ngIf",M.phoneControl.touched),f.R7$(4),f.JRh(f.bMT(24,20,"Email")),f.R7$(3),f.Y8G("ngIf",M.emailControl.touched),f.R7$(4),f.SpI(" ",f.bMT(31,22,"SMS Notifications")," "),f.R7$(2),f.Y8G("ngbTooltip",f.bMT(33,24,"[[NSA - notifications]] Allows to receive SMS  / WhatsApp notifications")),f.R7$(4),f.SpI(" ",f.bMT(37,26,"Email Notifications")," "),f.R7$(2),f.Y8G("ngbTooltip",f.bMT(39,28,"[[NSA - notifications]] Allows to receive email notifications")))},dependencies:[t.MD,t.bT,i.Ad,i.DM,p.Y,N.V,A.s,s.LP,I.Mm,I.D9,o.n8,o.md,e.X1,e.BC,e.cb,e.j4,e.JD,e.$R,i.PY,i.LT,i.KS,i.UF,i.Sj],encapsulation:2,changeDetection:0})}return v})()},41238:(fe,J,r)=>{"use strict";r.d(J,{K:()=>C});var t=r(54460),e=r(10936),o=r(44687),s=r(36287),i=r(18306),p=r(91039),f=r(49281),N=r(77870),A=r(48891),I=r(53220);function b(M,F){if(1&M&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&M){const V=A.XpG().$implicit;A.R7$(),A.SpI(" ",V.controls.name.value," ")}}function l(M,F){1&M&&(A.j41(0,"span",13),A.EFF(1,"Contact"),A.k0s())}function R(M,F){if(1&M){const V=A.RV6();A.j41(0,"shui-button",14),A.bIt("click",function(){A.eBV(V);const Y=A.XpG().index,a=A.XpG();return A.Njj(a.removeContactAtIndex(Y))}),A.nrm(1,"shui-svg-icon",15),A.k0s()}if(2&M){const V=A.XpG(2);A.Y8G("btnTheme",V.buttonTheme.Secondary)("onlyIcon",!0),A.R7$(),A.Y8G("type",V.svgIconType.Solid)}}function v(M,F){if(1&M&&(A.qex(0),A.j41(1,"div",3)(2,"div",4)(3,"div",5)(4,"span",6),A.nrm(5,"shui-svg-icon",7),A.k0s(),A.j41(6,"span",8),A.DNE(7,b,2,1,"span",9)(8,l,2,0,"ng-template",null,0,A.C5r),A.k0s()(),A.DNE(10,R,2,3,"shui-button",10),A.k0s(),A.j41(11,"div",11),A.nrm(12,"sh-contact-form",12),A.k0s()(),A.bVm()),2&M){const V=F.$implicit,j=F.index,Y=A.sdS(9),a=A.XpG();A.R7$(5),A.Y8G("size",a.svgIconSize.Medium)("type",a.svgIconType.Solid),A.R7$(2),A.Y8G("ngIf",V.controls.name.value)("ngIfElse",Y),A.R7$(3),A.Y8G("ngIf",j>0),A.R7$(2),A.Y8G("contactGroup",V)}}function E(M,F){if(1&M){const V=A.RV6();A.j41(0,"div")(1,"div",16)(2,"div",17)(3,"div",5)(4,"span",6),A.nrm(5,"shui-svg-icon",18),A.k0s(),A.j41(6,"span",8),A.EFF(7,"New contact"),A.k0s()(),A.j41(8,"shui-button",19),A.bIt("click",function(){A.eBV(V);const Y=A.XpG();return A.Njj(Y.addContact())}),A.j41(9,"label",20),A.EFF(10),A.nI1(11,"translate"),A.k0s()()()()()}if(2&M){const V=A.XpG();A.R7$(5),A.Y8G("size",V.svgIconSize.Medium)("type",V.svgIconType.Solid),A.R7$(3),A.Y8G("isLinkStyle",!0),A.R7$(2),A.JRh(A.bMT(11,4,"Add a new contact"))}}let C=(()=>{class M{constructor(){this.limitedTo=15,this.buttonTheme=p.Ox,this.svgIconSize=p.D7,this.svgIconType=p.Oo,this.createContactForm=(V=new s.Bve)=>new e.gE({email:this.createContactInfoForm(V.email,f.N.email),name:new e.MJ(V.name),phone:this.createContactInfoForm(V.phone,f.N.phone)})}ngOnChanges({contacts:V,parent:j}){V&&V.currentValue&&j&&j.currentValue&&(this.parent.addControl("contacts",this.createContactsForm(this.contacts)),this.contactsGroup=this.parent.get("contacts"))}addContact(){this.contactsGroup.push(this.createContactForm())}removeContactAtIndex(V){this.contactsGroup.removeAt(V)}createContactInfoForm(V,j){return new e.gE({enabled:new e.MJ(V.enabled),value:new e.MJ(V.value,j)})}createContactsForm(V){return new e.Yp(V.map(this.createContactForm))}static#e=this.\u0275fac=function(j){return new(j||M)};static#t=this.\u0275cmp=A.VBU({type:M,selectors:[["sh-contact-list-form"]],inputs:{contacts:"contacts",limitedTo:"limitedTo",parent:"parent"},standalone:!0,features:[A.OA$,A.aNF],decls:2,vars:2,consts:[["defaultContactName",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"card","shadow-sm","mb-5"],[1,"card-title","px-5","py-2","d-flex","align-items-center","border-bottom","bg-gray-50","justify-content-between"],[1,"d-flex","align-items-center"],[1,"rounded-circle","p-2","bg-gray-100"],["color","gray-700","name","user",3,"size","type"],["translate","",1,"ms-2","f-md","text-gray-700","fw-medium"],[4,"ngIf","ngIfElse"],[3,"btnTheme","onlyIcon","click",4,"ngIf"],[1,"card-body","pt-0"],[3,"contactGroup"],["translate",""],[3,"click","btnTheme","onlyIcon"],["color","red-500","name","minus-circle","slot","label",3,"type"],[1,"card","shadow-sm","my-3"],[1,"card-body","px-5","py-2","d-flex","align-items-center","border-bottom","justify-content-between"],["color","gray-400","name","user",3,"size","type"],[3,"click","isLinkStyle"],["slot","label"]],template:function(j,Y){1&j&&A.DNE(0,v,13,6,"ng-container",1)(1,E,12,6,"div",2),2&j&&(A.Y8G("ngForOf",Y.contactsGroup.controls),A.R7$(),A.Y8G("ngIf",Y.contactsGroup.controls.length<Y.limitedTo))},dependencies:[t.MD,t.Sq,t.bT,e.X1,o.LP,I.Mm,I.D9,i.tm,i.Qp,i.Ad,i.DM,N.q],encapsulation:2,changeDetection:0})}return M})()},23354:(fe,J,r)=>{"use strict";r.d(J,{V:()=>b});var t=r(63016),e=r(47947),o=r(66645),s=r(4437),i=r(91039),p=r(48891),f=r(18306),N=r(54460),A=r(53220);const I=["*"];let b=(()=>{class l{constructor(v){this.navigationService=v,this.redirectUrl="../",this.buttonTheme=i.Ox}ngOnInit(){this.isSaveDisabled$=this.formGroup?this.formGroup.statusChanges.pipe((0,e.T)(v=>"INVALID"===v),(0,o.F)()):(0,t.of)(!1)}cancel(){this.navigationService.cancel(void 0,this.redirectUrl)}static#e=this.\u0275fac=function(E){return new(E||l)(p.rXU(s.o_))};static#t=this.\u0275cmp=p.VBU({type:l,selectors:[["sh-footer-form"]],inputs:{formGroup:"formGroup",redirectUrl:"redirectUrl"},ngContentSelectors:I,decls:11,vars:10,consts:[[1,"d-flex","justify-content-center","mt-3"],["data-qa","form-button-cancel","data-qa","cancel",3,"click","btnTheme"],["slot","label"],["type","submit","data-qa","save",1,"ms-3",3,"disabled"]],template:function(E,h){1&E&&(p.NAR(),p.j41(0,"div",0)(1,"shui-button",1),p.bIt("click",function(){return h.cancel()}),p.j41(2,"label",2),p.EFF(3),p.nI1(4,"translate"),p.k0s()(),p.j41(5,"shui-button",3),p.nI1(6,"async"),p.j41(7,"label",2),p.EFF(8),p.nI1(9,"translate"),p.k0s()(),p.SdG(10),p.k0s()),2&E&&(p.R7$(),p.Y8G("btnTheme",h.buttonTheme.Secondary),p.R7$(2),p.JRh(p.bMT(4,4,"Cancel")),p.R7$(2),p.Y8G("disabled",p.bMT(6,6,h.isSaveDisabled$)),p.R7$(3),p.JRh(p.bMT(9,8,"Save")))},dependencies:[f.Qp,N.Jj,A.D9],encapsulation:2,changeDetection:0})}return l})()},29186:(fe,J,r)=>{"use strict";r.d(J,{F:()=>p});var t=r(48891),e=r(23354),o=r(10936);const s=["*",[["sh-form-page-footer"]]],i=["*","sh-form-page-footer"];let p=(()=>{class f{constructor(){this.isPreventEnterKeyDefault=!0,this.redirectUrl="../",this.submitted=new t.bkB}onEnterKeyDown(A){this.isPreventEnterKeyDefault&&A.preventDefault()}onSubmit(A){A.stopPropagation(),this.submitted.emit(this.formGroup)}static#e=this.\u0275fac=function(I){return new(I||f)};static#t=this.\u0275cmp=t.VBU({type:f,selectors:[["sh-form-page"]],inputs:{formGroup:"formGroup",isPreventEnterKeyDefault:"isPreventEnterKeyDefault",redirectUrl:"redirectUrl"},outputs:{submitted:"submitted"},ngContentSelectors:i,decls:7,vars:3,consts:[[1,"sh-form-container"],[1,"container"],["novalidate","",3,"keydown.enter","ngSubmit","formGroup"],[1,"pt-4","pb-7","bg-white"],[3,"formGroup","redirectUrl"]],template:function(I,b){1&I&&(t.NAR(s),t.j41(0,"div",0)(1,"div",1)(2,"form",2),t.bIt("keydown.enter",function(R){return b.onEnterKeyDown(R)})("ngSubmit",function(R){return b.onSubmit(R)}),t.j41(3,"div",3),t.SdG(4),t.k0s(),t.j41(5,"sh-footer-form",4),t.SdG(6,1),t.k0s()()()()),2&I&&(t.R7$(2),t.Y8G("formGroup",b.formGroup),t.R7$(3),t.Y8G("formGroup",b.formGroup)("redirectUrl",b.redirectUrl))},dependencies:[e.V,o.qT,o.cb,o.j4],styles:["[_nghost-%COMP%]{display:block}  .form-group{margin-bottom:1.5rem}  [class*=col-]{padding-right:1rem;padding-left:1rem}"]})}return f})()},39102:(fe,J,r)=>{"use strict";r.d(J,{s:()=>f});var t=r(78031),e=r(48891),o=r(54460),s=r(93658);const i=["*"];function p(N,A){1&N&&(e.j41(0,"span",1),e.nrm(1,"sh-svg-icon",2),e.SdG(2),e.k0s()),2&N&&(e.R7$(),e.Y8G("isError",!0))}let f=(()=>{class N{constructor(I){this.formValidationMessageComponent=I,this.setIsMessageDisplayed=b=>{this.isMessageDisplayed=b&&Object.prototype.hasOwnProperty.call(b,this.when)}}ngOnChanges({when:I}){I&&I.currentValue&&!this.errorUpdateSubscription&&(this.errorUpdateSubscription=this.formValidationMessageComponent.errorUpdate.subscribe(this.setIsMessageDisplayed))}ngOnDestroy(){this.formValidationMessageComponent.errorUpdate.unsubscribe()}static#e=this.\u0275fac=function(b){return new(b||N)(e.rXU(t.V,1))};static#t=this.\u0275cmp=e.VBU({type:N,selectors:[["sh-form-validation-message"]],inputs:{when:"when"},features:[e.OA$],ngContentSelectors:i,decls:1,vars:1,consts:[["class","text-red-700 error-info",4,"ngIf"],[1,"text-red-700","error-info"],["color","danger","name","close-circle","size","sm",3,"isError"]],template:function(b,l){1&b&&(e.NAR(),e.DNE(0,p,3,1,"span",0)),2&b&&e.Y8G("ngIf",l.isMessageDisplayed)},dependencies:[o.bT,s.D],encapsulation:2})}return N})()},78031:(fe,J,r)=>{"use strict";r.d(J,{V:()=>p});var t=r(71217),e=function(f){return f.Error="ERROR",f}(e||{}),o=r(48891);const s=[[["sh-form-validation-message"]]],i=["sh-form-validation-message"];let p=(()=>{class f{constructor(A){this.differs=A,this.for={},this.type=e.Error,this.errorUpdate=new t.t(this.for),this.forKeyValueDiffer=this.differs.find(this.for).create()}ngDoCheck(){this.forKeyValueDiffer.diff(this.for)&&this.errorUpdate.next(this.for)}static#e=this.\u0275fac=function(I){return new(I||f)(o.rXU(o.MKu))};static#t=this.\u0275cmp=o.VBU({type:f,selectors:[["sh-form-validation-messages"]],inputs:{for:"for",type:"type"},ngContentSelectors:i,decls:1,vars:0,template:function(I,b){1&I&&(o.NAR(s),o.SdG(0))},encapsulation:2})}return f})()},50150:(fe,J,r)=>{"use strict";r.d(J,{Y:()=>f});var t=r(54460),e=r(70272),i=(r(39102),r(78031),r(48891));let f=(()=>{class N{static#e=this.\u0275fac=function(b){return new(b||N)};static#t=this.\u0275mod=i.$C({type:N});static#i=this.\u0275inj=i.G2t({imports:[t.MD,e.cq]})}return N})()},44510:(fe,J,r)=>{"use strict";r.d(J,{K:()=>u});var t=r(85710),e=r(88221),o=r(36287),s=r(43134),i=r(49281),p=r(48891),f=r(10936),N=r(54460),A=r(86666),I=r(55567),b=r(53220),l=r(93658),R=r(78031),v=r(39102),E=r(18306);const h=z=>({"fullscreen-map-container":z}),C=(z,H)=>({"col-md-4":z,"col-md-3":H});function M(z,H){if(1&z){const x=p.RV6();p.j41(0,"button",8),p.bIt("click",function(){p.eBV(x);const O=p.XpG();return p.Njj(O.closeFullscreen())}),p.nrm(1,"sh-svg-icon",9),p.k0s()}}function F(z,H){1&z&&(p.j41(0,"div",10)(1,"h4",11),p.EFF(2,"No information found to show geofencing"),p.k0s(),p.nrm(3,"div",12),p.k0s())}function V(z,H){if(1&z){const x=p.RV6();p.j41(0,"ng-select",17),p.bIt("change",function(O){p.eBV(x);const $=p.XpG(2);return p.Njj($.onChangeMode(O))}),p.k0s()}if(2&z){const x=p.XpG(2);p.Y8G("clearable",!1)("clearOnBackspace",!1)("items",x.geoFencingModes)("searchable",!1)}}function j(z,H){if(1&z){const x=p.RV6();p.qex(0),p.DNE(1,V,1,4,"ng-select",13),p.j41(2,"div",14)(3,"div",15)(4,"sh-map",16),p.bIt("markerPositionChanged",function(O){p.eBV(x);const $=p.XpG();return p.Njj($.onMarkerPositionChanged(O))})("polygonCreated",function(O){p.eBV(x);const $=p.XpG();return p.Njj($.onPolygonCreated(O))}),p.k0s()()(),p.bVm()}if(2&z){const x=p.XpG();p.R7$(),p.Y8G("ngIf",x.geoFencingModes&&x.geoFencingModes&&x.geoFencingModes.length),p.R7$(3),p.Y8G("geoCode",x.geoCode)("type",x.mapType)}}function Y(z,H){if(1&z&&(p.j41(0,"div",27)(1,"shui-form-field")(2,"shui-label"),p.EFF(3),p.nI1(4,"translate"),p.k0s(),p.j41(5,"div",28),p.nrm(6,"shui-input",29),p.nI1(7,"translate"),p.j41(8,"span",30),p.EFF(9,"m"),p.k0s()(),p.j41(10,"sh-form-validation-messages",22)(11,"sh-form-validation-message",23)(12,"span",24),p.EFF(13,"The geofencing radius needs to be between 100m and 5000m"),p.k0s()(),p.j41(14,"sh-form-validation-message",25)(15,"span",24),p.EFF(16,"The geofencing radius needs to be between 100m and 5000m"),p.k0s()()()()()),2&z){const x=p.XpG(2);p.R7$(3),p.JRh(p.bMT(4,4,"Geofencing")),p.R7$(3),p.Y8G("disabled",x.isLatOrLngNil())("placeholder",p.bMT(7,6,"geofencing radius")),p.R7$(4),p.Y8G("for",x.geoFencingRadiusControl.errors)}}function a(z,H){if(1&z&&(p.j41(0,"div",18),p.DNE(1,Y,17,8,"div",19),p.j41(2,"div",20)(3,"shui-form-field")(4,"shui-label"),p.EFF(5),p.nI1(6,"translate"),p.k0s(),p.nrm(7,"shui-input",21),p.k0s(),p.j41(8,"sh-form-validation-messages",22)(9,"sh-form-validation-message",23)(10,"span",24),p.EFF(11,"The latitude needs to be between -90\xb0 and 90\xb0"),p.k0s()(),p.j41(12,"sh-form-validation-message",25)(13,"span",24),p.EFF(14,"The latitude needs to be between -90\xb0 and 90\xb0"),p.k0s()()()(),p.j41(15,"div",20)(16,"shui-form-field")(17,"shui-label"),p.EFF(18),p.nI1(19,"translate"),p.k0s(),p.nrm(20,"shui-input",26),p.k0s(),p.j41(21,"sh-form-validation-messages",22)(22,"sh-form-validation-message",23)(23,"span",24),p.EFF(24,"The longitude needs to be between -180\xb0 and 180\xb0"),p.k0s()(),p.j41(25,"sh-form-validation-message",25)(26,"span",24),p.EFF(27,"The longitude needs to be between -180\xb0 and 180\xb0"),p.k0s()()()()()),2&z){const x=p.XpG();p.R7$(),p.Y8G("ngIf",x.isCircleGeoFencingType),p.R7$(),p.Y8G("ngClass",p.l_i(13,C,!x.isModal,x.isModal)),p.R7$(3),p.JRh(p.bMT(6,9,"Latitude")),p.R7$(2),p.Y8G("disabled",x.isLatOrLngNil()),p.R7$(),p.Y8G("for",x.latControl.errors),p.R7$(7),p.Y8G("ngClass",p.l_i(16,C,!x.isModal,x.isModal)),p.R7$(3),p.JRh(p.bMT(19,11,"Longitude")),p.R7$(2),p.Y8G("disabled",x.isLatOrLngNil()),p.R7$(),p.Y8G("for",x.lngControl.errors)}}function P(z,H){if(1&z&&(p.j41(0,"div",31)(1,"div",32)(2,"shui-form-field")(3,"shui-label"),p.EFF(4),p.nI1(5,"translate"),p.k0s(),p.nrm(6,"shui-input",33),p.nI1(7,"translate"),p.k0s()()()),2&z){const x=p.XpG();p.R7$(4),p.JRh(p.bMT(5,4,"Zoning")),p.R7$(2),p.Y8G("disabled",!0)("formControl",x.geometryCoordinatesControl)("placeholder",p.bMT(7,6,"Copy/paste here the source code of the desired area"))}}let u=(()=>{class z{constructor(x){this.formBuilder=x,this.subscriptions=new t.yU}closeFullscreen(){this.ngbCurrentModal.close(this.parent)}getFencingType(){return this.geoCode.geoJson?this.geoCode.geoJson.getFirstFeatureType()===o.MWI.Polygon?s.Nw.PolygonGeoFencing:this.geoCode.geoJson.getFirstFeatureType()===o.MWI.Point?s.Nw.CircleGeoFencing:void 0:s.Nw.CircleGeoFencing}isLatOrLngNil(){return(0,e.A)(this.latControl?.value)||(0,e.A)(this.lngControl?.value)}ngOnDestroy(){this.subscriptions.unsubscribe()}ngOnInit(){this.geoCode=this.parent.value,this.polygonGeometryAsString=this.getPolygonGeometryAsString(),this.geoCodeGroup=this.createGeoCodeForm(),this.geometryCoordinatesControl=this.geoCodeGroup.get("geometryCoordinates"),this.geoFencingRadiusControl=this.geoCodeGroup.get("geoFencingRadius"),this.latControl=this.geoCodeGroup.get("lat"),this.lngControl=this.geoCodeGroup.get("lng"),this.mapType=this.getFencingType(),this.setIsFencingTypes(),this.subscribeToFormValueChanges(),this.subscribeToParentFormValueChanges(),this.toggleLatLngRadiusControls()}onChangeMode({value:x}){switch(x){case s.Nw.PolygonGeoFencing:this.setPolygonFencing();break;case s.Nw.CircleGeoFencing:this.setPointFencing()}this.setGeoCode(),this.parent.setValue(this.geoCode)}onMarkerPositionChanged(x){this.geoCode.setLat(x.latLng.lat()),this.geoCode.setLng(x.latLng.lng()),this.setGeoCode(),this.parent.setValue(this.geoCode)}onPolygonCreated(x){this.parent.setValue(x)}createGeoCodeForm(){return this.formBuilder.group({geoFencingMode:this.getFencingType(),geoFencingRadius:[this.geoCode.getRadius()],geoJson:this.geoCode.geoJson,geometryCoordinates:this.polygonGeometryAsString,lat:[this.geoCode.getLat()],lng:[this.geoCode.getLng()]})}getPolygonGeometryAsString(){return this.isPolygonGeoFencingType?this.geoCode.getPolygonGeometryAsString():""}setGeoCode(){this.geoCode=this.geoCode.clone()}setIsFencingTypes(){this.mapType=this.getFencingType(),this.isCircleGeoFencingType=this.geoCode.isCircleGeoFencingType(),this.isPolygonGeoFencingType=this.geoCode.isPolygonGeoFencingType(),this.isNeitherPolygonNorPointFencingType=!this.isPolygonGeoFencingType&&!this.isCircleGeoFencingType,this.isLatLngControlsDisplayed=this.displayCoordinates&&this.isCircleGeoFencingType||this.isNeitherPolygonNorPointFencingType,this.toggleLatLngRadiusControls()}setPointFencing(){this.geoCode.convertToPointGeometry()}setPolygonFencing(){this.geoCode.convertToPolygonGeometry()}subscribeToFormValueChanges(){const x=this.geoCodeGroup.valueChanges.subscribe(Q=>{this.hasValue(Q.lat)&&this.geoCode.setLat(parseFloat(Q.lat)),this.hasValue(Q.lng)&&this.geoCode.setLng(parseFloat(Q.lng)),this.geoFencingRadiusControl.errors||this.latControl.errors||this.lngControl.errors?this.parent.setErrors({...this.geoFencingRadiusControl.errors,...this.latControl.errors,...this.lngControl.errors}):(this.parent.setErrors(void 0),this.parent.updateValueAndValidity({emitEvent:!1})),this.isCircleGeoFencingType&&this.hasValue(Q.geoFencingRadius)&&this.geoFencingRadiusControl.valid&&this.geoCode.setRadius(parseFloat(Q.geoFencingRadius)),this.setGeoCode(),this.parent.setValue(this.geoCode,{emitEvent:!1})});this.subscriptions.add(x)}subscribeToParentFormValueChanges(){const x=this.parent.valueChanges.subscribe(Q=>{this.geoCode=Q,this.setGeoCode(),this.geoCodeGroup.patchValue({geoFencingMode:this.getFencingType(),geoFencingRadius:Q.getRadius(),geoJson:Q.geoJson,geometryCoordinates:this.getPolygonGeometryAsString(),lat:Q.getLat(),lng:Q.getLng()}),this.setIsFencingTypes()});this.subscriptions.add(x)}hasValue(x){return null!=x}toggleLatLngRadiusControls(){this.isLatLngControlsDisplayed?(this.latControl.setValidators(i.N.getLatValidator()),this.lngControl.setValidators(i.N.getLngValidator())):(this.latControl.clearValidators(),this.lngControl.clearValidators()),this.isLatLngControlsDisplayed&&this.isCircleGeoFencingType?this.geoFencingRadiusControl.setValidators(i.N.getRadiusValidator()):this.geoFencingRadiusControl.clearValidators(),this.geoCodeGroup.updateValueAndValidity()}static#e=this.\u0275fac=function(Q){return new(Q||z)(p.rXU(f.ze))};static#t=this.\u0275cmp=p.VBU({type:z,selectors:[["sh-map-form"]],inputs:{displayCoordinates:"displayCoordinates",geoFencingModes:"geoFencingModes",isModal:"isModal",ngbCurrentModal:"ngbCurrentModal",parent:"parent"},decls:8,vars:9,consts:[[3,"ngClass"],[1,"fullscreen-minimize"],["class","btn map-button box-shadow-base","type","button",3,"click",4,"ngIf"],[1,"h-inherit",3,"formGroup"],["class","map-container col d-flex flex-column align-items-center justify-content-center",4,"ngIf"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],["class","row form-group",4,"ngIf"],["type","button",1,"btn","map-button","box-shadow-base",3,"click"],["color","ghost-button","name","map--noun-expand","size","sm"],[1,"map-container","col","d-flex","flex-column","align-items-center","justify-content-center"],["translate","",1,"text-gray-400","mb-0","mt-4"],[1,"ship-icon","ship-icon-map-placeholder","mb-4"],["class","fencing-switch-dropdown","bindLabel","label","bindValue","value","formControlName","geoFencingMode",3,"clearable","clearOnBackspace","items","searchable","change",4,"ngIf"],[1,"row","map-row","mb-4"],[1,"col-12"],[3,"markerPositionChanged","polygonCreated","geoCode","type"],["bindLabel","label","bindValue","value","formControlName","geoFencingMode",1,"fencing-switch-dropdown",3,"change","clearable","clearOnBackspace","items","searchable"],[1,"row","mt-4"],["class","col-3",4,"ngIf"],["data-qa","map-form-lat-lng-section",3,"ngClass"],["formControlName","lat",3,"disabled"],[3,"for"],["when","min"],["translate",""],["when","max"],["formControlName","lng",3,"disabled"],[1,"col-3"],[1,"geofencing-radius"],["type","number","formControlName","geoFencingRadius",1,"w-auto","me-1","float-start",3,"disabled","placeholder"],[1,"float-start","mt-2"],[1,"row","form-group"],[1,"col-6"],[3,"disabled","formControl","placeholder"]],template:function(Q,O){1&Q&&(p.j41(0,"div",0)(1,"div",1),p.DNE(2,M,2,0,"button",2),p.k0s(),p.j41(3,"div",3),p.DNE(4,F,4,0,"div",4)(5,j,5,3,"ng-container",5)(6,a,28,19,"div",6)(7,P,8,8,"div",7),p.k0s()()),2&Q&&(p.Y8G("ngClass",p.eq3(7,h,O.isModal)),p.R7$(2),p.Y8G("ngIf",O.isModal),p.R7$(),p.Y8G("formGroup",O.geoCodeGroup),p.R7$(),p.Y8G("ngIf",O.isLatOrLngNil()),p.R7$(),p.Y8G("ngIf",!O.isLatOrLngNil()),p.R7$(),p.Y8G("ngIf",O.isLatLngControlsDisplayed),p.R7$(),p.Y8G("ngIf",O.isPolygonGeoFencingType))},dependencies:[N.YU,N.bT,A.i,I.vr,f.BC,f.cb,f.l_,f.j4,f.JD,b.Mm,l.D,R.V,v.s,E.KS,E.UF,E.Sj,b.D9],styles:["[_nghost-%COMP%]{height:inherit}.map-container[_ngcontent-%COMP%]   .ship-icon[_ngcontent-%COMP%]{height:126px;width:246px}.map-container[_ngcontent-%COMP%]   h4.text-gray-400[_ngcontent-%COMP%]{font-weight:400}.map-container[_ngcontent-%COMP%]   small.text-gray-400[_ngcontent-%COMP%]{font-size:.75rem}.map-row.row[_ngcontent-%COMP%]   sh-map[_ngcontent-%COMP%]{height:500px}  .geofencing-radius>shui-input{width:80%!important}.fencing-switch-dropdown[_ngcontent-%COMP%]{display:block;height:28px;left:288px;margin-top:10px;position:absolute;width:112px;z-index:1}.fencing-switch-dropdown[_ngcontent-%COMP%]     .select-selected{background-color:#fff}.fullscreen-map-container[_ngcontent-%COMP%]{margin:0 16px;height:inherit}.fullscreen-map-container[_ngcontent-%COMP%]   .fullscreen-minimize[_ngcontent-%COMP%]{position:absolute;z-index:1;right:10px;top:10px}.fullscreen-map-container[_ngcontent-%COMP%]   .fencing-switch-dropdown[_ngcontent-%COMP%]{position:absolute;left:49%!important}.fullscreen-map-container[_ngcontent-%COMP%]   .map-row[_ngcontent-%COMP%]{height:calc(100% - 125px)}.fullscreen-map-container[_ngcontent-%COMP%]   .map-row.row[_ngcontent-%COMP%]{margin:0 -32px 32px}.fullscreen-map-container[_ngcontent-%COMP%]   .map-row.row[_ngcontent-%COMP%]   sh-map[_ngcontent-%COMP%]{height:100%}.fullscreen-map-container[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin:0}.ship-icon-map-placeholder[_ngcontent-%COMP%]{margin-top:40px}"]})}return z})()},15825:(fe,J,r)=>{"use strict";r.d(J,{x:()=>R});var t=r(54460),e=r(10936),o=r(55567),s=r(53220),i=r(28701),p=r(16017),f=r(70272),N=r(18306),A=r(50150),b=(r(44510),r(48891));let R=(()=>{class v{static#e=this.\u0275fac=function(C){return new(C||v)};static#t=this.\u0275mod=b.$C({type:v});static#i=this.\u0275inj=b.G2t({imports:[t.MD,p.iY,o.MQ,i.Ov,e.X1,s.h,f.cq,A.Y,N.LT,N.Sj]})}return v})()},58170:(fe,J,r)=>{"use strict";r.d(J,{t:()=>b});var t=r(91167),e=r(21431),o=r(69832),s=r(44687),i=r(1091),p=r(48891),f=r(53220);function N(l,R){if(1&l&&(p.j41(0,"p",1)(1,"span",2),p.EFF(2,"ID:"),p.k0s(),p.j41(3,"span"),p.EFF(4),p.k0s()()),2&l){const v=p.XpG(2);p.R7$(4),p.JRh(v.baseModel.id)}}function A(l,R){if(1&l&&(p.j41(0,"div",1)(1,"p",1)(2,"span"),p.EFF(3),p.nI1(4,"translate"),p.k0s(),p.j41(5,"span"),p.EFF(6),p.k0s()(),p.j41(7,"p"),p.EFF(8),p.k0s()()),2&l){const v=p.XpG(2);p.R7$(3),p.SpI("",p.bMT(4,3,"Last edition:")," "),p.R7$(3),p.JRh(v.lastUpdatedDate),p.R7$(2),p.JRh(v.updaterLabel)}}function I(l,R){if(1&l&&(p.j41(0,"div",0),p.DNE(1,N,5,1,"p",1)(2,A,9,5,"div",1),p.k0s()),2&l){const v=p.XpG();p.R7$(),p.vxM(v.showId?1:-1),p.R7$(),p.vxM(v.showAdditionalInfo?2:-1)}}let b=(()=>{class l{constructor(v){this.i18nService=v,this.showAdditionalInfo=!1,this.showId=!0,this.isTranslationsReady=!1,this.updateMethodLabels={}}ngOnDestroy(){this.translationSubscription&&!this.translationSubscription.closed&&this.translationSubscription.unsubscribe()}ngOnInit(){this.translationSubscription=this.i18nService.get("any").subscribe(()=>{this.updateMethodLabels={EDI:this.i18nService.instant((0,t.x)("EDI")),IMPORT:this.i18nService.instant((0,t.x)("Import")),MANUAL:this.i18nService.instant((0,t.x)("Manually"))},this.isTranslationsReady=!0,this.lastUpdatedDate=this.baseModel.updatedAt&&(0,o.GP)((0,e.H)(this.baseModel.updatedAt),i.nY.Long,{timeZone:this.timeZone}),this.updaterLabel=[this.baseModel.updatedBy,this.updateMethodLabels[this.baseModel.updateMethod]].filter(v=>v).join(" - ")})}static#e=this.\u0275fac=function(E){return new(E||l)(p.rXU(s.W4))};static#t=this.\u0275cmp=p.VBU({type:l,selectors:[["sh-reference"]],inputs:{baseModel:"baseModel",showAdditionalInfo:"showAdditionalInfo",showId:"showId",timeZone:"timeZone"},decls:1,vars:1,consts:[[1,"fst-italic","fw-medium"],[1,"mb-0"],["translate","",1,"me-2"]],template:function(E,h){1&E&&p.DNE(0,I,3,2,"div",0),2&E&&p.vxM(h.isTranslationsReady?0:-1)},dependencies:[f.Mm,f.D9],styles:["[_nghost-%COMP%]{display:block}h4[_ngcontent-%COMP%]{color:#4b5563;font-size:.75rem}"]})}return l})()},73548:(fe,J,r)=>{"use strict";r.d(J,{BY:()=>f,H0:()=>t,Ib:()=>N,PW:()=>i,YH:()=>p,ju:()=>e,sZ:()=>s,vz:()=>o,wz:()=>A});const t=40,e=80,o=80,s=20,i=80,p=40,f=255,N=35,A=9},49281:(fe,J,r)=>{"use strict";r.d(J,{N:()=>C});var t=r(10936),e=r(91167),o=r(95607),s=r(89418),i=r(87431),p=r(88221),f=r(73548);const A=/^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,I=/^[a-z0-9][a-z0-9\- ]{0,10}[a-z0-9]$/i;class C extends t.k0{static#e=this.errorMaxLength=(0,e.x)("Your {field} should be less than {maxLength} characters");static arrayNotEmpty(F){return F.value&&Array.isArray(F.value)&&0===F.value.length?{arrayNotEmpty:(0,e.x)("Required")}:void 0}static sameFieldValue(F,V,j){return F.value&&F.value!==V?{differentFieldValue:j}:void 0}static email({value:F},V=""){if(F&&!RegExp(A).test(F))return{email:V??(0,e.x)("Please enter a valid email address")}}static geoJsonFilled({value:F}){return F.isFilledGeoJson()&&F.hasLatLng()?void 0:{geoJsonFilled:(0,e.x)("You have to draw at least one geofencing")}}static getLatValidator(){return t.k0.compose([C.required,C.min(-90),C.max(90)])}static getLngValidator(){return t.k0.compose([C.required,C.min(-180),C.max(180)])}static getRadiusValidator(){return t.k0.compose([C.required,C.min(100),C.max(5e3)])}static httpUrl({value:F}){return RegExp("^http(s)?:\\/\\/?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$").test(F)?void 0:{isNotValidUrl:(0,e.x)("[[http url validator form]] Please enter a valid url")}}static isActiveValidator(){return({value:F})=>{if(!F||!F.isActive)return{isNotActive:!0}}}static max(F){return({value:j})=>{if(!(0,i.A)(j))return j>F?{max:`${(0,e.x)("Maximum value: ")} ${F}`}:void 0}}static min(F){return({value:j})=>{if(!(0,i.A)(j))return j<F?{min:`${(0,e.x)("Minimum value: ")} ${F}`}:void 0}}static minLength(F,V){return({value:Y})=>{if((0,i.A)(Y)||(0,p.A)(Y))return;const a=Y?Y.length:0,P=`${F} ${(0,e.x)("minimum characters")}}`;return a<F?{minlength:V||P}:void 0}}static maxLength(F,V){return({value:Y})=>{if((0,i.A)(Y)||(0,p.A)(Y))return;const a=Y?Y.length:0,P=`${F} ${(0,e.x)("maximum characters")}}`;return a>F?{maxLength:V||P}:void 0}}static greaterThan(F){return V=>{const Y=V.parent.get(F);return Number(Y.value)>Number(V.value)?{lessThan:{value:V.value}}:void 0}}static minimumTrueValuesValidator(F=1,V){return function(Y){let a=0;if(Object.keys(Y.controls).forEach(P=>{!0===Y.controls[P].value&&a++}),a<F)return{minimumTrueValuesValidator:V}}}static modelIdRequired({value:F}){const V=F?.value&&"function"==typeof F.value.hasId?F.value:F;if(!V||"function"!=typeof V.hasId||!V.hasId())return{required:(0,e.x)("Required")}}static multipleCheckboxRequireOne(F){return F.value.includes(!0)?void 0:{multipleCheckboxRequireOne:!0}}static phone({value:F},V){if(!F||(0,i.A)(F))return;const j=(0,s.l)(F);return j&&j.isValid()?void 0:V?{phone:V}:{phone:(0,e.x)("Please enter a valid phone number")}}static postalCode({value:F},V){if(F&&!RegExp(I).test(F))return V?{postalCode:V}:{postalCode:(0,e.x)("Please enter a valid ZIP number")}}static required({value:F},V){return(0,i.A)(F)||(0,p.A)(F)?{required:V??(0,e.x)("Required")}:void 0}static salesforceIdValidator({value:F}){return!F||"string"==typeof F&&18===F.length&&/^[A-Za-z0-9]+$/.test(F)?void 0:{salesforceIdIncorrect:(0,e.x)("This Salesforce ID is not valid")}}static shouldBeTrue(F,V){return!0!==F.value?{shouldBeTrue:V}:void 0}static stringRequired(F,V){return F.value&&""!==F.value?void 0:{required:V}}static passwordFormat(F){const V=/[A-Z]+/.test(F.value),j=/[a-z]+/.test(F.value),Y=/[1-9]+/.test(F.value);return!F.value||V&&j&&Y&&(F.value||"").length>=f.wz?void 0:{passwordFormatIncorrect:(0,e.x)("Password must contain at least 1 uppercase and 1 lowercase letters, 1 number and a minimum of 9 characters")}}static forbiddenValues(F){const V=F.map(j=>j.toLowerCase());return j=>V.includes(j.value.toLowerCase().trim())?{forbiddenValues:{value:j.value}}:void 0}static dateRange(F){const V=F.getRawValue();if(!V)return;const j=V[0]?.dateSlot,Y=V[1]?.dateSlot;if(V[0]?.timeSlot){const a=V[0].timeSlot.value.split(":");a?.length&&(j.setHours(+a[0]),j.setMinutes(+a[1]))}if(V[1]?.timeSlot){const a=V[1].timeSlot.value.split(":");a?.length&&(Y.setHours(+a[0]),Y.setMinutes(+a[1]))}return j&&Y&&(0,o.d)(new Date(j),new Date(Y))?{rangeDateIncorrect:!0}:void 0}static dateRangeValidator(){return F=>{if(F.controls)return(0,o.d)(F.controls.startDate.value,F.controls.endDate.value)?{rangeDate:(0,e.x)("Start date must be before end date")}:void 0}}static integer(){return F=>!F.value||/^[0-9]*$/.test(F.value)?void 0:{integer:(0,e.x)("The value must be an integer.")}}static double(){return F=>/^[+-]?\d+(\.\d+)?$/.test(F.value)?void 0:{double:(0,e.x)("The value must be a double.")}}static customError(F){return()=>F}static customPattern(F,V,j){return Y=>F.test(Y.value)?void 0:{[V]:j||!0}}static atLeastOneHasValue(F){return V=>{for(const j of F)if(V.get(j).value)return;return{atLeastOneHasValue:!0}}}static atLeastOneFormGroupHasValue(){return F=>{for(const V of Object.keys(F.controls))if(Object.values(F.controls[V].controls).some(a=>a.value))return;return{atLeastOneFormGroupHasValue:!0}}}static jsonValidator(){return F=>{if(F.value)try{JSON.parse(F.value)}catch{return{json:(0,e.x)("Json not valid")}}}}static dateRangeRequired(){return F=>{const V=F.getRawValue();if(V)return V.start&&V.end?void 0:{dateRangeRequired:(0,e.x)("[[Form field validator]] Please select a date range")}}}}},7046:(fe,J,r)=>{"use strict";r.d(J,{r:()=>s});var t=r(48891),e=r(34133);let o={},s=(()=>{class i{constructor(f,N){this.router=f,this.ngZone=N}getUrl(f,N,A){return A=this.prepareExtras(N,A),this.router.serializeUrl(this.router.createUrlTree(f,A))}navigate(f,N,A){if(A=this.prepareExtras(N,A),o={...A.state},A?.blank){const I=this.getUrl(f,N,A);return window.open(I,"_blank"),Promise.resolve(!!I)}return this.ngZone.run(()=>this.router.navigate(f,A))}getLegacyState(){return o}prepareExtras(f,N){return f&&f.length&&(N={...N,fragment:["!","app"].concat(f).join("/")}),N?.state?.returnTo?.state&&(delete N?.state?.returnTo?.state.$$state,delete N?.state?.returnTo?.state.resolve),N??{}}static#e=this.\u0275fac=function(N){return new(N||i)(t.KVO(e.Ix),t.KVO(t.SKi))};static#t=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},16017:(fe,J,r)=>{"use strict";r.d(J,{iY:()=>t.i,rP:()=>f,rU:()=>e.rU});var t=r(86666),e=r(55665),o=r(54460),i=(r(41731),r(48891));let f=(()=>{class N{static#e=this.\u0275fac=function(b){return new(b||N)};static#t=this.\u0275mod=i.$C({type:N});static#i=this.\u0275inj=i.G2t({imports:[o.MD]})}return N})()},41731:(fe,J,r)=>{"use strict";r.d(J,{I:()=>e});var t=r(48891);let e=(()=>{class o{constructor(i,p){this.elementRef=i,this.isControlAdded=!1,p.addClass(i.nativeElement,"m-2")}ngAfterViewInit(){this.googleMap&&this.addControl(this.googleMap,this.controlPosition,this.elementRef.nativeElement)}ngOnChanges({googleMap:i}){i&&i.currentValue&&this.addControl(i.currentValue,this.controlPosition,this.elementRef.nativeElement)}addControl(i,p,f){this.isControlAdded||(i.controls[google.maps.ControlPosition[p]].push(f),this.isControlAdded=!0)}static#e=this.\u0275fac=function(p){return new(p||o)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:o,selectors:[["","shMapControlPosition",""]],inputs:{controlPosition:"controlPosition",googleMap:"googleMap"},features:[t.OA$]})}return o})()},86666:(fe,J,r)=>{"use strict";r.d(J,{i:()=>j});var t=r(54460),e=r(48891),o=r(32884),s=r(71217),i=r(85710),p=r(76627),f=r(47947),N=r(82040),A=r(66645),I=r(41483),l=(r(36287),r(43134)),R=r(4437),v=r(55665);const E=()=>({draggable:!0});function h(Y,a){if(1&Y){const P=e.RV6();e.j41(0,"map-marker",5),e.bIt("mapDragend",function(z){e.eBV(P);const H=e.XpG(4);return e.Njj(H.onMarkerDragEnd(z))}),e.k0s()}if(2&Y){const P=e.XpG(2).ngIf;e.Y8G("position",P.currentMarker)("options",e.lJ4(2,E))}}function C(Y,a){if(1&Y&&e.nrm(0,"map-circle",6),2&Y){const P=e.XpG(2).ngIf;e.Y8G("center",P.currentMarker)("radius",P.radius)("options",P.drawingStyle)}}function M(Y,a){if(1&Y&&(e.qex(0),e.DNE(1,h,1,3,"map-marker",3)(2,C,1,3,"map-circle",4),e.bVm()),2&Y){const P=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",!P.isPolygonGeoFencingType),e.R7$(),e.Y8G("ngIf",P.isCircleGeoFencingType)}}function F(Y,a){if(1&Y&&(e.qex(0),e.DNE(1,M,3,2,"ng-container",2),e.bVm()),2&Y){const P=a.ngIf;e.R7$(),e.Y8G("ngIf",P.currentMarker)}}function V(Y,a){if(1&Y){const P=e.RV6();e.j41(0,"google-map",1),e.bIt("mapInitialized",function(z){e.eBV(P);const H=e.XpG();return e.Njj(H.onMapReady(z))})("maptypeidChanged",function(){e.eBV(P);const z=e.XpG();return e.Njj(z.onMapTypeChanged())}),e.DNE(1,F,2,1,"ng-container",2),e.nI1(2,"async"),e.k0s()}if(2&Y){const P=e.XpG();e.Y8G("options",P.mapOptions),e.R7$(),e.Y8G("ngIf",e.bMT(2,2,P.data$))}}let j=(()=>{class Y{set geoCode(P){this.geoCodeSubject.next(P)}get geoCode(){return this.geoCodeSubject.getValue()}set type(P){this.geoCodeTypeSubject.next(P)}get type(){return this.geoCodeTypeSubject.getValue()}constructor(P){this.googleMapsService=P,this.markerPositionChanged=new e.bkB,this.polygonCreated=new e.bkB,this.mapOptions={clickableIcons:!1,fullscreenControl:!1,mapTypeControlOptions:{style:v.rU.DROPDOWN_MENU},streetViewControl:!1,zoom:13},this.geoCodeSubject=new s.t(void 0),this.geoCodeTypeSubject=new s.t(l.Nw.Historic),this.mapTypeSubject=new s.t(v.IZ.ROADMAP),this.polygonSubject=new s.t(void 0),this.minPolygonPoints=3,this.subscriptions=new i.yU,this.apiLoaded$=this.googleMapsService.isApiLoaded$()}ngOnInit(){this.data$=(0,p.z)({currentMarker:this.geoCodeSubject.pipe((0,f.T)(P=>P?{lat:P.getLat(),lng:P.getLng()}:void 0),(0,N.M)(P=>P&&this.map?.googleMap?.panTo(P))),drawingStyle:this.mapTypeSubject.pipe((0,f.T)(P=>v.eQ[P]),(0,A.F)(),(0,N.M)(P=>{this.drawingManager?.setOptions({polygonOptions:P}),this.polygonSubject.getValue()?.setOptions(P)})),isCircleGeoFencingType:this.geoCodeTypeSubject.pipe((0,f.T)(P=>P===l.Nw.CircleGeoFencing),(0,A.F)()),isPolygonGeoFencingType:this.geoCodeTypeSubject.pipe((0,f.T)(P=>P===l.Nw.PolygonGeoFencing),(0,A.F)()),radius:this.geoCodeSubject.pipe((0,f.T)(P=>P?.getRadius()??0),(0,A.F)())}),this.subscriptions.add(this.geoCodeTypeSubject.subscribe(()=>this.setDrawingManagerState())),this.subscriptions.add(this.polygonSubject.pipe((0,I.p)(P=>!!P)).subscribe(P=>{const u=P.getPath().getArray().map(z=>[z.lng(),z.lat()]);this.geoCode?.setPolygonGeometry(u),this.polygonCreated.emit(this.geoCode)}))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.geoCodeSubject.complete(),this.geoCodeTypeSubject.complete(),this.mapTypeSubject.complete(),this.polygonSubject.complete()}onMapReady(P){this.geoCode&&P.setCenter({lat:this.geoCode.getLat(),lng:this.geoCode.getLng()}),this.initializeDrawingManager(P)}onMarkerDragEnd(P){this.markerPositionChanged.emit(P)}onMapTypeChanged(){const P=this.map?.googleMap?.getMapTypeId();P&&this.mapTypeSubject.next(P)}initializeDrawingManager(P){if(this.drawingManager=new google.maps.drawing.DrawingManager,this.setDrawingManagerState(),this.drawingManager.addListener("polygoncomplete",u=>this.onNewPolygon(u)),this.drawingManager.setMap(P),this.geoCode&&this.type===l.Nw.PolygonGeoFencing){const u=new google.maps.Polygon({paths:this.geoCode.getPolygon()});u.setMap(P),this.onNewPolygon(u)}}onNewPolygon(P){this.removeCurrentPolygon(),P.setEditable(!0),P.addListener("contextmenu",u=>{u.vertex&&P.getPath().getLength()>this.minPolygonPoints&&P.getPath().removeAt(u.vertex)}),this.polygonSubject.next(P),P.getPath().addListener("insert_at",()=>this.polygonSubject.next(P)),P.getPath().addListener("remove_at",()=>this.polygonSubject.next(P)),P.getPath().addListener("set_at",()=>this.polygonSubject.next(P))}removeCurrentPolygon(){this.polygonSubject.getValue()?.setMap(null),this.polygonSubject.next(void 0)}setDrawingManagerState(){this.drawingManager&&(this.type===l.Nw.PolygonGeoFencing?this.drawingManager.setOptions({drawingControl:!0,drawingControlOptions:{drawingModes:[google.maps.drawing.OverlayType.POLYGON],position:google.maps.ControlPosition.LEFT_CENTER},drawingMode:google.maps.drawing.OverlayType.POLYGON}):(this.drawingManager.setOptions({drawingControl:!1,drawingMode:void 0}),this.removeCurrentPolygon()))}static#e=this.\u0275fac=function(u){return new(u||Y)(e.rXU(R.s5))};static#t=this.\u0275cmp=e.VBU({type:Y,selectors:[["sh-map"]],viewQuery:function(u,z){if(1&u&&e.GBs(o.u6,5),2&u){let H;e.mGM(H=e.lsd())&&(z.map=H.first)}},inputs:{geoCode:"geoCode",type:"type"},outputs:{markerPositionChanged:"markerPositionChanged",polygonCreated:"polygonCreated"},standalone:!0,features:[e.aNF],decls:2,vars:3,consts:[["class","mb-3","width","100%","height","100%",3,"options","mapInitialized","maptypeidChanged",4,"ngIf"],["width","100%","height","100%",1,"mb-3",3,"mapInitialized","maptypeidChanged","options"],[4,"ngIf"],[3,"position","options","mapDragend",4,"ngIf"],[3,"center","radius","options",4,"ngIf"],[3,"mapDragend","position","options"],[3,"center","radius","options"]],template:function(u,z){1&u&&(e.DNE(0,V,3,4,"google-map",0),e.nI1(1,"async")),2&u&&e.Y8G("ngIf",e.bMT(1,1,z.apiLoaded$))},dependencies:[t.MD,t.bT,t.Jj,o.rJ,o.u6,o.py,o.fU],styles:["[_nghost-%COMP%]{display:block;height:100%}"],changeDetection:0})}return Y})()},55665:(fe,J,r)=>{"use strict";r.d(J,{IZ:()=>e,eQ:()=>o,rU:()=>t});var t=function(s){return s[s.DEFAULT=0]="DEFAULT",s[s.DROPDOWN_MENU=1]="DROPDOWN_MENU",s[s.HORIZONTAL_BAR=2]="HORIZONTAL_BAR",s}(t||{}),e=function(s){return s.HYBRID="hybrid",s.ROADMAP="roadmap",s.SATELLITE="satellite",s.TERRAIN="terrain",s}(e||{});const o={[e.HYBRID]:{fillColor:"#ffd963",strokeColor:"#fa7921",strokeWeight:1},[e.ROADMAP]:{fillColor:"#1c203d",strokeColor:"#264888",strokeWeight:1},[e.SATELLITE]:{fillColor:"#ffd963",strokeColor:"#fa7921",strokeWeight:1},[e.TERRAIN]:{fillColor:"#1c203d",strokeColor:"#264888",strokeWeight:1}}},87708:(fe,J,r)=>{"use strict";r.d(J,{Q:()=>N});var t=r(27691),e=r(47947),o=r(12596),s=r(66162),i=r(36287),p=r(57666),f=r(48891);let N=(()=>{class A{constructor(b,l,R){this.apiService=b,this.exportService=l,this.cacheService=R,this.cache=this.cacheService.create()}create(b){const l=(0,i.f_O)(b);return Object.assign(l,{goods:l.goods.map(i.Ib5.createGood)}),l}createPublicLink(b,l=o.rq.Orders){const R=new t.Nl({fromObject:{origin:"web"}});return this.apiService.get(o.M$.PublicLink.replace(":context",l).replace(":id",b),{params:R}).pipe((0,e.T)(({url:v})=>v.replace("/orderPublic/","/road/orderPublic/")))}delete(b){return this.apiService.delete(o.M$.Order.replace(":id",b).replace(":prefix",""))}downloadArchive(b){return this.apiService.getAsBlob(o.M$.OrderDebugArchive.replace(":id",b)).pipe((0,e.T)(l=>(0,s.PE)(l)))}exportByAlgoliaFilter(b,l){return this.exportService.exportOrdersByAlgoliaSearchParameters(b,l).pipe((0,e.T)(R=>(0,s.PE)(R)))}getOrderDetail(b){return this.cache.has(b)||this.cache.set(b,this.requestOrderDetail(b)),this.cache.get(b)}getByDecodedId(b){return this.apiService.query(o.M$.OrderRawFull.replace(":id",b)).pipe((0,e.T)(l=>(0,p.S4)(l)))}getByHashId(b){return this.apiService.query(o.M$.OrderFull.replace(":id",b)).pipe((0,e.T)(l=>(0,p.S4)(l)))}getOrderEtaInformations(b){return this.apiService.get(o.M$.OrderDebugEta.replace(":id",b))}repair(b){return this.apiService.put(o.M$.OrderRepair.replace(":id",b),void 0)}deIndexOrder(b){return this.apiService.delete(o.M$.OrderDelete.replace(":id",b))}requestOrderDetail(b){return this.apiService.query(o.M$.Order.replace(":prefix","").replace(":id",b)).pipe((0,e.T)(l=>(0,i.f_O)(l)))}static#e=this.\u0275fac=function(l){return new(l||A)(f.KVO(o.Gf),f.KVO(s._T),f.KVO(o._C))};static#t=this.\u0275prov=f.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},65083:(fe,J,r)=>{"use strict";r.d(J,{M:()=>N});var t=r(34133),e=r(71217),o=r(18447),s=r(5424),i=r(41483),p=r(47947),f=r(48891);let N=(()=>{class A{constructor(b,l){this.route=b,this.router=l,this.isChildTabsRouteActivated$=new e.t(!1),this.isListChildRouteActivated$=new e.t(!1),this.unsubscribeRouteEvent=new o.B,this.getLastRouteChildWithComponent=(R=this.route)=>!R.firstChild&&R.component?R:this.getLastRouteChildWithComponent(R.firstChild),this.setIsListChildRouteActivated=R=>{const v=this.childTabs.find(h=>R.includes(h)),E=this.children.find(h=>R.includes(`${h}/`))&&!v;this.isChildTabsRouteActivated$.next(!!v),this.isListChildRouteActivated$.next(!!E)},this.setOrganizationInListChildSnapshotData=R=>{R.snapshot.data.organization=this.organization}}getIsChildTabsRouteActivated(){return this.isChildTabsRouteActivated$}getIsListChildRouteActivated$(){return this.isListChildRouteActivated$}initListChildRouteEventListener(b,l,R=[]){return this.organization=b,this.children=l,this.childTabs=R,this.setIsListChildRouteActivated(this.router.url),this.router.events.pipe((0,s.Q)(this.unsubscribeRouteEvent),(0,i.p)(v=>v instanceof t.wF)).subscribe(({urlAfterRedirects:v})=>this.setIsListChildRouteActivated(v)),this.isListChildRouteActivated$.pipe((0,s.Q)(this.unsubscribeRouteEvent),(0,i.p)(v=>!!v),(0,p.T)(()=>this.getLastRouteChildWithComponent())).subscribe(this.setOrganizationInListChildSnapshotData),this.isListChildRouteActivated$}unsubscribeRouterListener(){this.isListChildRouteActivated$.next(!1),this.unsubscribeRouteEvent.next(void 0)}static#e=this.\u0275fac=function(l){return new(l||A)(f.KVO(t.nX),f.KVO(t.Ix))};static#t=this.\u0275prov=f.jDH({token:A,factory:A.\u0275fac})}return A})()},59614:(fe,J,r)=>{"use strict";r.d(J,{$z:()=>t,o6:()=>i,fr:()=>A});var t=function(I){return I.IsAppBackOffice="isAppBackOffice",I.DisplayNotificationBuilderMocks="displayNotificationBuilderMocks",I.DemoAirRailMode="demoAirRailMode",I.ExternalEta="externalEta",I.SeeInsightsCsvDownload="seeInsightsCsvDownload",I.SeeExportHandlingUnits="seeExportHandlingUnits",I.SeeRoadOrderExport="seeRoadOrderExport",I.SeeExportOcean="seeExportOcean",I.SeeAllContainers="seeAllContainers",I.SeeAllContainersLight="seeAllContainersLight",I}(t||{}),e=r(28701),o=r(45275),s=r(48891);let i=(()=>{class I{constructor(l){(0,o.Jc)(l,"RightsModule")}static#e=this.\u0275fac=function(R){return new(R||I)(s.KVO(I,12))};static#t=this.\u0275mod=s.$C({type:I});static#i=this.\u0275inj=s.G2t({imports:[e.Ov.forRoot()]})}return I})();var p=r(2233),f=r(36287),N=function(I){return I.ViewSelectionTours="VIEW_SELECTION_TOURS",I}(N||{});let A=(()=>{class I{constructor(l,R){this.environment=l,this.ngxPermissionsService=R,this.isAppBackoffice=()=>this.environment.isBackOffice(),this.isDev=()=>this.environment.isDev(),this.isProduction=()=>this.environment.isProduction()}initUserPermissions(l){this.featuresNames=l.getActiveFeatures().map(({name:v})=>v),this.featureOrganizationNames=l.getOrganizationFeatureNames();const R=l.user.hasAdminAccess();this.ngxPermissionsService.loadPermissions(this.featuresNames),this.ngxPermissionsService.addPermission(f.NvA.CostVisibility,this.hasOrganizationFeatureCostVisibility(R)),this.ngxPermissionsService.addPermission(t.DisplayNotificationBuilderMocks,()=>!this.isProduction()),this.ngxPermissionsService.addPermission(t.DemoAirRailMode,this.hasOrganizationFeatureDemoAirRailMode(R)),this.ngxPermissionsService.addPermission(t.IsAppBackOffice,this.isAppBackoffice),this.ngxPermissionsService.addPermission(N.ViewSelectionTours,this.hasOrganizationFeatureViewSelectionTour(R)),this.ngxPermissionsService.addPermission(f.lRW.ReGeoCode,this.checkRegeocodePermission(R)),this.ngxPermissionsService.addPermission(f.lRW.QualityNewsletterManagement,this.checkQualityNewsletterManagementPermission(R)),this.ngxPermissionsService.addPermission(f.NvA.Ocean,this.hasOrganizationFeature(f.NvA.Ocean)),this.ngxPermissionsService.addPermission(f.NvA.BlockTourDetailsAccess,this.hasOrganizationFeature(f.NvA.BlockTourDetailsAccess)),this.ngxPermissionsService.addPermission(t.SeeInsightsCsvDownload,this.checkInsightPermission()),this.ngxPermissionsService.addPermission(t.SeeExportHandlingUnits,this.checkExportHandlingUnits()),this.ngxPermissionsService.addPermission(t.SeeRoadOrderExport,this.checkExportRoadOrder()),this.ngxPermissionsService.addPermission(t.SeeExportOcean,this.checkExportOcean()),this.ngxPermissionsService.addPermission(t.SeeAllContainers,this.checkExportAllContainers()),this.ngxPermissionsService.addPermission(t.ExternalEta,this.hasOrganizationFeatureExternalEta(R)),this.ngxPermissionsService.addPermission(t.SeeAllContainersLight,()=>this.featureOrganizationNames.includes(f.NvA.Ocean))}checkInsightPermission(){return()=>!this.environment.isPortal()||this.featureOrganizationNames.includes(f.NvA.AllowDashboardInsight)}checkRegeocodePermission(l){return()=>l||this.featuresNames.includes(f.lRW.AdministrationPlaces)&&this.featureOrganizationNames.includes(f.NvA.ReGeoCode)}checkQualityNewsletterManagementPermission(l){return()=>l||this.featuresNames.includes(f.lRW.QualityNewsletterManagement)&&this.featureOrganizationNames.includes(f.NvA.QualityNewsletterManagement)}hasOrganizationFeature(l){return()=>this.featureOrganizationNames.includes(l)}hasOrganizationFeatureCostVisibility(l){return()=>l||this.featureOrganizationNames.includes(f.NvA.CostVisibility)}hasOrganizationFeatureViewSelectionTour(l){return()=>l||this.featureOrganizationNames.includes(N.ViewSelectionTours)}hasOrganizationFeatureDemoAirRailMode(l){return()=>l||this.featureOrganizationNames.includes(f.NvA.DemoAirRailMode)}hasOrganizationFeatureExternalEta(l){return()=>l||this.featureOrganizationNames.includes(f.NvA.ExternalEta)}checkExportHandlingUnits(){return()=>this.featuresNames.includes(f.lRW.ExportHandlingUnits)&&this.featureOrganizationNames.includes(f.NvA.ExportHandlingUnits)}checkExportRoadOrder(){return()=>this.featuresNames.includes(f.lRW.ExportOrder)&&this.featureOrganizationNames.includes(f.NvA.RoadOrderExport)}checkExportOcean(){return()=>this.featuresNames.includes(f.lRW.ExportOcean)&&this.featureOrganizationNames.includes(f.NvA.OceanContainerExport)}checkExportAllContainers(){return()=>this.featureOrganizationNames.includes(f.NvA.OceanLegacyExport)&&this.featureOrganizationNames.includes(f.NvA.Ocean)}static#e=this.\u0275fac=function(R){return new(R||I)(s.KVO(p.O),s.KVO(e.$R))};static#t=this.\u0275prov=s.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},81956:(fe,J,r)=>{"use strict";r.d(J,{d:()=>p,W:()=>s});var t=r(59614),e=r(36287),o=r(48891);let s=(()=>{class f{constructor(A){this.rightsService=A}getUserApiChildren(){return e.XpL.getUserApiChildren()}getUserAdminChildren(){return e.XpL.getUserAdminChildren()}getUserOperatorChildren(){return e.XpL.getUserOperatorChildren()}getUserRoles(){return this.rightsService.isAppBackoffice()?e.XpL.getUserRoles():e.XpL.getFrontUserRoles()}static#e=this.\u0275fac=function(I){return new(I||f)(o.KVO(t.fr))};static#t=this.\u0275prov=o.jDH({token:f,factory:f.\u0275fac})}return f})();var i=r(44687);let p=(()=>{class f{static#e=this.\u0275fac=function(I){return new(I||f)};static#t=this.\u0275mod=o.$C({type:f});static#i=this.\u0275inj=o.G2t({providers:[s],imports:[i.LP]})}return f})()},11674:(fe,J,r)=>{"use strict";r.d(J,{h:()=>I});var t=r(82653),e=r(63016),o=r(22867),s=r(47947),i=r(1703),p=r(41483),f=r(12596),N=r(6134),A=r(48891);let I=(()=>{class b{constructor(R,v){this.apiService=R,this.cacheService=v,this.cacheIdCurrentUserSettings="CURRENT_USER_SETTINGS",this.cacheInMS=1e4,this.createRemoteSetting=E=>N.nC.createRemoteSetting(E.type,E.data,E.id,E.label),this.cache=this.cacheService.create(this.cacheInMS)}deleteSetting(R,v){return this.apiService.delete(f.M$.UserSetting.replace(":userId",R).replace(":settingId",v))}duplicate(R,v){return this.getAll(R).pipe((0,o.n)(E=>{const h=E.data,C=h.find(M=>M.type===N.LE.HomepageDisplay);return(0,t.p)(h.filter(M=>M.type!==N.LE.HomepageDisplay).map(M=>this.saveSetting(v,{...M,id:void 0}).pipe((0,s.T)(F=>({from:M,to:F}))))).pipe((0,o.n)(M=>C?this.duplicateHomepageSetting(v,M,C):(0,e.of)(M.map(({to:F})=>F))))}))}getAll(R,v=!1){const E=R||this.cacheIdCurrentUserSettings;return(!this.cache.has(E)||v)&&this.cache.set(E,R?this.fetch(R):this.fetchMySettings()),this.cache.get(E).pipe((0,i.$)())}getByType(R,v){return this.getAll(v).pipe((0,s.T)(({data:E})=>E.find(h=>h.type===R)))}query(R){return this.getAll(R).pipe((0,s.T)(v=>new f.Qw(v,v.data.map(this.createRemoteSetting))))}save(R,v){return this.createOrUpdateSetting(R,v).pipe((0,p.p)(E=>!!E),(0,s.T)(E=>this.createRemoteSetting(E)))}saveSetting(R,v){return v.id?this.apiService.put(f.M$.UserSetting.replace(":userId",R).replace(":settingId",v.id),v):this.apiService.post(f.M$.UserSettings.replace(":userId",R),v)}createOrUpdateSetting(R,v){return v.getId()?this.apiService.put(f.M$.UserSetting.replace(":userId",R).replace(":settingId",v.getId()),v.transformRequest()):this.apiService.post(f.M$.UserSettings.replace(":userId",R),v.transformRequest())}duplicateHomepageSetting(R,v,E){const h=E.data.sections??[],C={...E,data:{...E.data,isHomepageSet:!1,sections:h.map(M=>({...M,widgets:M.widgets?.map(F=>v.find(j=>j.from.id===F)?.to?.id??F)}))},id:void 0};return this.saveSetting(R,C).pipe((0,s.T)(M=>[...v.map(({to:F})=>F),M]))}fetch(R){return this.apiService.query(f.M$.UserSettings.replace(":userId",R))}fetchMySettings(){return this.apiService.query(f.M$.MySettings)}static#e=this.\u0275fac=function(v){return new(v||b)(A.KVO(f.Gf),A.KVO(f._C))};static#t=this.\u0275prov=A.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},14884:(fe,J,r)=>{"use strict";r.d(J,{D:()=>f});var t=r(47947),e=r(2233),o=r(1091),s=r(36287),i=r(48891),p=r(27691);let f=(()=>{class A{constructor(b,l){this.environment=b,this.http=l}getByName(b){return s.B4q.getByName(b)}getCountries(){return s.B4q.getCountries()}getOffset(b){return(0,o.Yq)((new Date).toISOString(),{timezone:b,format:o.nY.TimezoneShort})}getTimezone({lat:b,lng:l}){const R=this.environment.getProperty("API_TIMEZONE_URL");return this.http.get(`${R}?lat=${b}&lng=${l}`).pipe((0,t.T)(({timezone:v})=>v))}static#e=this.\u0275fac=function(l){return new(l||A)(i.KVO(e.O),i.KVO(p.Qq))};static#t=this.\u0275prov=i.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},96704:(fe,J,r)=>{"use strict";r.d(J,{Il:()=>i,rD:()=>j});var t=r(31635),e=r(47817),o=r(54796),s=r(36287),i=function(g){return g.LOADING="Loading",g.UNLOADING="Delivery",g}(i||{}),p=function(g){return g.FULL_TRUCK="Full Truck",g.LINEAR_METERS="Linear meters",g.PALETS="Pallets",g}(p||{}),f=function(g){return g.NotStarted="NOT_STARTED",g.InProgress="IN_PROGRESS",g.TowardsFirstStop="TOWARDS_FIRST_STOP",g.Finished="FINISHED",g}(f||{}),N=function(g){return g.NotConform="NOT_CONFORM",g.None="NONE",g.NotRealised="NOT_REALISED",g.NotRealisedAtLoadingSite="NOT_REALISED_AT_LOADING_SITE",g.Refused="REFUSED",g.RefusedAtLoadingSite="REFUSED_AT_LOADING_SITE",g}(N||{}),b=function(g){return g.None="NONE",g.Charter="CHARTER",g.Shipper="SHIPPER",g}(b||{}),R=function(g){return g.AwaitingPairing="AWAITING_PAIRING",g.AwaitingConfirmation="AWAITING_CONFIRMATION",g.AwaitingSetup="AWAITING_SETUP",g.PendingConfirmation="PENDING_CONFIRMATION",g.ResourcePaired="RESOURCE_PAIRED",g.Finished="FINISHED",g.InProgress="IN_PROGRESS",g.NotStarted="NOT_STARTED",g}(R||{}),v=function(g){return g.MobileDriver="mobileDriver",g.Telematic="telematic",g}(v||{}),E=function(g){return g.Modify="MODIFY",g}(E||{}),h=function(g){return g.Internal="internal",g.External="external",g.InternalLeadTime="internalLeadTime",g}(h||{});class F{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",s.puw)],F.prototype,"quantities",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],F.prototype,"type",void 0);class j{getGoods(){return this.goods}hasGoodsProblem(){return[N.Refused,N.NotRealised,N.NotConform,N.RefusedAtLoadingSite,N.NotRealisedAtLoadingSite].includes(this.goodsStatus)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],j.prototype,"activity",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],j.prototype,"contractNumber",void 0),(0,t.Cg)([(0,e.deserializeAs)(F),(0,t.Sn)("design:type",Array)],j.prototype,"goods",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],j.prototype,"goodsStatus",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],j.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],j.prototype,"reference",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],j.prototype,"searchableReferences",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],j.prototype,"transportType",void 0);var a=r(94286),P=r(21431),u=r(95607),z=r(95434),H=r(1091),x=function(g){return g.NoPosition="exclamation-circle",g.OldPosition="exclamation-triangle",g.RecentPosition="check-circle",g}(x||{}),Q=function(g){return g.NoPosition="red-500",g.OldPosition="yellow-500",g.RecentPosition="green-500",g}(Q||{});class O{constructor(){this.limitTimePosition=60,this.now=new Date,this.dateWithLimitTimePosition=(0,a.Y)(this.now,this.limitTimePosition)}getIconColor(){return this.isGpsTrackingPositionRecent()?Q.RecentPosition:this.isGpsTrackingPositionOld()?Q.OldPosition:this.hasNoGpsTrackingPosition()?Q.NoPosition:void 0}getIconStatus(){return this.isGpsTrackingPositionRecent()?x.RecentPosition:this.isGpsTrackingPositionOld()?x.OldPosition:this.hasNoGpsTrackingPosition()?x.NoPosition:void 0}getMeanLastPositionDate(){return this.date}hasNoGpsTrackingPosition(){return!this.date}isDeprecated(){return(0,H.oM)(new Date,(0,P.H)(this.date.toISOString()))>this.limitTimePosition}isGpsTrackingPositionOld(){return!!this.date&&(0,u.d)(this.dateWithLimitTimePosition,(0,P.H)(this.date.toISOString()))}isGpsTrackingPositionRecent(){return!!this.date&&(0,z.Y)(this.dateWithLimitTimePosition,(0,P.H)(this.date.toISOString()))}}(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],O.prototype,"date",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],O.prototype,"lat",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],O.prototype,"lng",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],O.prototype,"serverDate",void 0);class X{getActivityTime(){return this.activityTime}getAddress(){return[this.street?.trim().concat(","),this.postalCode?.trim(),this.town?.trim(),this.country?.trim()].filter(K=>void 0!==K).join(" ")}getCompletionState(){return this.completionState}getDelayCalculationDate(){return this.appointmentAt?this.appointmentAt.end:this.scheduledAt.end}getGoodsStatusFromOrder(){const K=[];return this.orders.forEach(ae=>{ae.goodsStatus&&K.push(ae.goodsStatus)}),K.includes(N.Refused)?N.Refused:K.includes(N.NotRealised)?N.NotRealised:K.includes(N.NotConform)?N.NotConform:N.None}getIsDriving(){return this.isDriving}getIsNotStarted(){return this.isNotStarted}getIsSkipped(){return this.isSkipped}getName(){return this.name.trim()}getOnSiteState(){return this.onSite}getOrdersSortByReference(){return this.orders.sort((K,ae)=>K.reference.localeCompare(ae.reference))}getRemainingDistance(K=0){return this.remainingDistance<0||!this.remainingDistance?"":this.remainingDistance>1e3?`${(this.remainingDistance/1e3).toFixed(K)} km`:`${this.remainingDistance.toFixed(K)} m`}getScheduledEndDate(){return this.scheduledAt.end}getScheduledEndDateFromNowInHours(){return(0,o.M)(this.scheduledAt.end,new Date)}getScheduledStartDate(){return this.scheduledAt.start}getSortedOrdersIds(){return this.getOrdersSortByReference().map(K=>K.id)}hasEventDate(){return!!(this.leftAt||this.appointmentAt?.end||this.arrivedAt||this.loadedAt?.end||this.scheduledAt?.end)}hasNoIssue(){return!this.goodsStatus||this.goodsStatus===N.None}hasOrderGoodsProblem(){const K=[N.Refused,N.NotRealised,N.NotConform,N.RefusedAtLoadingSite,N.NotRealisedAtLoadingSite];return this.orders.some(ae=>K.includes(ae.goodsStatus))}isCompletionStateDone(){return this.completionState.isDone}isCompletionStateHasBeenAborted(){return this.completionState.hasBeenAborted}isCompletionStateLate(){return this.completionState.isLate}isDeliverySite(){return this.delivery&&Object.keys(this.delivery).length>0}isGoodsNotRealisedOrRefused(){return this.goodsStatus===N.NotRealised||this.goodsStatus===N.Refused}isLoadingSite(){return this.loading&&Object.keys(this.loading).length>0}isNotConform(){return this.goodsStatus===N.NotConform}isOnSite(){return this.isOnSiteLate()||this.isOnSiteOnTime()}isOnSiteLate(){return this.onSite.isLate}isOnSiteOnTime(){return this.onSite.isOnSite}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],X.prototype,"activityTime",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],X.prototype,"arrivedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],X.prototype,"completionState",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"country",void 0),(0,t.Cg)([(0,e.deserializeAs)(s.dw4),(0,t.Sn)("design:type",s.dw4)],X.prototype,"deliveredAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],X.prototype,"delivery",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],X.prototype,"departureDate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],X.prototype,"geofencing",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],X.prototype,"geofencingRadius",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"goodsStatus",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],X.prototype,"isDriving",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"isNextStop",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],X.prototype,"isNotStarted",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],X.prototype,"isSkipped",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],X.prototype,"leftAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(s.dw4),(0,t.Sn)("design:type",s.dw4)],X.prototype,"loadedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"loading",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],X.prototype,"onSite",void 0),(0,t.Cg)([(0,e.deserializeAs)(j),(0,t.Sn)("design:type",Array)],X.prototype,"orders",void 0),(0,t.Cg)([(0,e.deserializeAs)(O),(0,t.Sn)("design:type",O)],X.prototype,"position",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"postalCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],X.prototype,"remainingDistance",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"street",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"town",void 0);class He{getName(){return this.name}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],He.prototype,"name",void 0);class Ce{constructor(){this.telematicProvider=((g={})=>(0,e.Deserialize)(g,He))()}getProviderName(){return this.telematicProvider?.getName()}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ce.prototype,"id",void 0),(0,t.Cg)([(0,e.deserializeAs)(He),(0,t.Sn)("design:type",Object)],Ce.prototype,"telematicProvider",void 0);class me{getLabel(){return this.label}getPosition(){return this.position}getTelematicProviderName(){return this.telematicConfiguration?.getProviderName()}isPositionDeprecated(){return this.position?.isDeprecated()}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],me.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],me.prototype,"label",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],me.prototype,"mode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],me.prototype,"organizationName",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],me.prototype,"telematicUnitId",void 0),(0,t.Cg)([(0,e.deserializeAs)(O),(0,t.Sn)("design:type",O)],me.prototype,"position",void 0),(0,t.Cg)([(0,e.deserializeAs)(Ce),(0,t.Sn)("design:type",Ce)],me.prototype,"telematicConfiguration",void 0);const Me={Deserialize:g=>g.map(K=>((g={})=>{const{appointment:K,geofencing:ae,scheduledEndDate:Be,scheduledStartDate:et}=g,ft=(0,e.Deserialize)(g,X);return ft.scheduledAt=(0,s.bvP)({end:Be,start:et}),K&&(ft.appointmentAt=(0,s.bvP)({end:K.endAt,start:K.startAt})),ft.geoCode=ae?(0,s.cY1)(ae):void 0,ft})(K))};class Ge{getFirstStopPoint(){return this.stopPoints?.length?this.stopPoints[0]:void 0}getNextStopPoint(){return this.stopPoints.find(ae=>ae.isNextStop)||this.getFirstStopPoint()}getStopPoints(){return this.stopPoints}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ge.prototype,"nextStopPointEtaState",void 0),(0,t.Cg)([(0,e.deserializeAs)(me),(0,t.Sn)("design:type",me)],Ge.prototype,"resource",void 0),(0,t.Cg)([(0,e.deserializeAs)(Me),(0,t.Sn)("design:type",Array)],Ge.prototype,"stopPoints",void 0);class Ue{getItinerary(){return this.itinerary}getResourcePosition(){return this.mean?.getPosition()}getStopPoints(){return this.itinerary?.getStopPoints()}isPositionDeprecated(){return this.mean?.isPositionDeprecated()}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ue.prototype,"agency",void 0),(0,t.Cg)([(0,e.deserializeAs)(Ge),(0,t.Sn)("design:type",Ge)],Ue.prototype,"itinerary",void 0),(0,t.Cg)([(0,e.deserializeAs)(me),(0,t.Sn)("design:type",me)],Ue.prototype,"mean",void 0),r(84889);class We{canCharter(){return this.permissions.includes(E.Modify)}getAgencyName(){return this.agency?.name}isChartered(){return this.isActive}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],We.prototype,"agency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],We.prototype,"isActive",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],We.prototype,"organization",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],We.prototype,"permissions",void 0);class ve{canPair(){return this.getPermissions().includes(E.Modify)}getPairingAgency(){return this.pairedBy}getPermissions(){return this.permissions}getResource(){return this.mean}getResourceLabel(){return this.mean?.getLabel()}getTelematicProviderName(){return this.mean?.getTelematicProviderName()}getType(){return this.type}isTelematic(){return this.getType()===v.Telematic}}(0,t.Cg)([(0,e.deserializeAs)(me),(0,t.Sn)("design:type",me)],ve.prototype,"mean",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ve.prototype,"mode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ve.prototype,"pairedBy",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],ve.prototype,"permissions",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ve.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ve.prototype,"telematicUnitId",void 0);class ue{constructor(){this.isAwaitingConfirmation=()=>this.currentStatus===R.AwaitingConfirmation,this.isAwaitingPairing=()=>this.currentStatus===R.AwaitingPairing,this.isAwaitingSetup=()=>this.currentStatus===R.AwaitingSetup,this.isPairedOrAwaitingPairing=()=>this.isPaired()||this.isAwaitingPairing(),this.isPendingConfirmation=()=>this.currentStatus===R.PendingConfirmation}canDisplayGpsTrackingPosition(){return!this.isItineraryNotStarted()&&!this.isItineraryFinished()}canEditChartering(){return this.chartering?.canCharter()&&this.isChartered()&&!this.isItineraryFinished()}canEditPairing(){return this.pair?.canPair()&&this.isPaired()&&!this.isItineraryFinished()}canStartChartering(){return this.chartering?.canCharter()&&!this.isItineraryFinished()}canStartPairing(){return this.pair?.canPair()&&!this.isItineraryFinished()&&!this.isPaired()}getCharteringAgencyName(){return this.chartering?.getAgencyName()}getContractNumbers(){const K=this.orders.filter(ae=>ae.contractNumber).map(ae=>ae.contractNumber);return[...new Set(K)]}getDriverAttributes(){return[...new Set(this.attributes.map(K=>K.driver))].join(" / ")}getGoods(){return this.goods.map(K=>({...K,label:p[K.type]}))}getItinerary(){return this.carrier?.getItinerary()}getItineraryStatus(){return this.status||f.NotStarted}getOrdersSortByReference(){return this.orders.sort((K,ae)=>K.reference.localeCompare(ae.reference))}getPairResource(){return this.pair?.getResource()}getPairResourceLabel(){return this.pair?.getResourceLabel()}getPairResourcePermissions(){return this.pair?.getPermissions()}getResourcePosition(){return this.carrier?.getResourcePosition()}getResourceType(){return this.pair?.getType()}getStopPoints(){return this.carrier?.getStopPoints()??[]}getTelematicProviderName(){return this.pair?.getTelematicProviderName()}getTrailerAttributes(){return[...new Set(this.attributes.map(K=>K.trailer))].join(" / ")}getTransportTypes(){const K=this.orders.filter(ae=>ae.transportType).map(ae=>ae.transportType);return[...new Set(K)]}getVehicleAttributes(){return[...new Set(this.attributes.map(K=>K.vehicle))].join(" / ")}isChartered(){return this.chartering?.isChartered()}isGpsPositionDeprecated(){return this.carrier?.isPositionDeprecated()}isItineraryFinished(){return this.getItineraryStatus()===f.Finished}isItineraryNotStarted(){return this.getItineraryStatus()===f.NotStarted}isPaired(){return!!this.pair.getPairingAgency()&&this.pair.getPairingAgency()!==b.None}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ue.prototype,"actor",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ue.prototype,"agency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],ue.prototype,"attributes",void 0),(0,t.Cg)([(0,e.deserializeAs)(Ue),(0,t.Sn)("design:type",Ue)],ue.prototype,"carrier",void 0),(0,t.Cg)([(0,e.deserializeAs)(We),(0,t.Sn)("design:type",We)],ue.prototype,"chartering",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ue.prototype,"currentStatus",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ue.prototype,"globalGoodsStatus",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],ue.prototype,"goods",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ue.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],ue.prototype,"orders",void 0),(0,t.Cg)([(0,e.deserializeAs)(ve),(0,t.Sn)("design:type",ve)],ue.prototype,"pair",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ue.prototype,"publicLinkUrl",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ue.prototype,"trackingLinkUrl",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ue.prototype,"reference",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ue.prototype,"shipper",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ue.prototype,"status",void 0),(0,t.Cg)([(0,e.deserializeAs)(s.vwO),(0,t.Sn)("design:type",Array)],ue.prototype,"tags",void 0);var Re=r(91167);class he{static OnDeserialized(K){K.setLabelOptions()}setLabelOptions(){let K=(0,Re.x)("ETA");this.source===h.InternalLeadTime?K=(0,Re.x)("Shippeo ETA"):this.source===h.External&&(K=(0,Re.x)("External ETA"));const ae={[s.xJJ.OnTime]:{label:K,backgroundColor:"green-50",borderColor:"green-500",labelColor:"green-600",source:this.source},[s.xJJ.TolerableDelay]:{label:K,backgroundColor:"yellow-50",borderColor:"yellow-500",labelColor:"yellow-600",source:this.source},[s.xJJ.ToleratedDelay]:{label:K,backgroundColor:"yellow-50",borderColor:"yellow-500",labelColor:"yellow-600",source:this.source},[s.xJJ.RiskyDelay]:{label:K,backgroundColor:"red-50",borderColor:"red-500",labelColor:"red-600",source:this.source},[s.xJJ.Early]:{label:K,backgroundColor:"green-50",borderColor:"green-500",labelColor:"green-600",source:this.source}};this.labelOptions=ae[this.etaStatus]||ae[s.xJJ.OnTime]}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"activity",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C,"eta"),(0,t.Sn)("design:type",Date)],he.prototype,"dateTime",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"etaReason",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"etaStatus",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],he.prototype,"position",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"precision",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],he.prototype,"predictionTimestamp",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],he.prototype,"receptionDate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"source",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],he.prototype,"theoreticalDistance",void 0);class re{}(0,t.Cg)([(0,e.deserializeAs)("eta"),(0,t.Sn)("design:type",Array)],re.prototype,"etaList",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],re.prototype,"meanId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],re.prototype,"meanMode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],re.prototype,"orderId",void 0);var Ae=r(68149);class y{}(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],y.prototype,"createdAt",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],y.prototype,"dateEvent",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],y.prototype,"inputDate",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],y.prototype,"scheduledAt",void 0);class Ke{}(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],Ke.prototype,"endAt",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],Ke.prototype,"oldEndAt",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],Ke.prototype,"oldStartAt",void 0),(0,t.Cg)([(0,e.autoserializeAs)(s.h0C),(0,t.Sn)("design:type",Date)],Ke.prototype,"startAt",void 0);class Qe{getDelayCalculationDate(){return this.appointment?this.appointment.end:this.dates.scheduledAt}isAppointmentEvent(){return[s.km9.AppointmentLoadTaken,s.km9.AppointmentUnloadTaken].includes(this.name)}isCreationDateSameAsEventDate(){return(0,Ae.n)(this.dates.dateEvent,this.dates.createdAt)}isExternalEtaEvent(){return s.km9.OrderExternalEtaAdded===this.name}isPostponedEvent(){return[s.km9.LoadingPostponed,s.km9.UnloadingPostponed].includes(this.name)}isRelatedToAStop(){return![s.km9.CancelOrder,s.km9.DriverConfirmed,s.km9.OrderAddedToATour,s.km9.OrderConfirmed,s.km9.OrderCreated,s.km9.OrderIsPair,s.km9.OrderIsRefused,s.km9.OrderIsUnchartered,s.km9.OrderIsUnpair,s.km9.OrderModified,s.km9.OrderPending,s.km9.OrderRemovedFromTour,s.km9.OrderUnfinished,s.km9.TagModified,s.km9.TourChartered,s.km9.TourCharteringConfirmed,s.km9.TourCharteringRefused,s.km9.TourPaired,s.km9.TourUnChartered,s.km9.TourUnpaired].includes(this.name)}isSkipped(){return[s.km9.SkipLoadingPhase,s.km9.SkipDeliveryPhase].includes(this.name)}showEventDate(){return![s.km9.AppointmentLoadTaken,s.km9.CalculatedDelayDrivingTowardSiteUnload,s.km9.CalculatedEarlyDrivingTowardSiteUnload,s.km9.DelayDrivingTowardSiteUnload,s.km9.NoGpsDrivingToUnload,s.km9.NoPositionOnSiteUnload,s.km9.OrderModified,s.km9.TagModified,s.km9.UnloadingPostponed,s.km9.UnloadingWaitingToBeConfirmed].includes(this.name)||this.isCreationDateSameAsEventDate()}}(0,t.Cg)([(0,e.deserializeAs)(s.dw4),(0,t.Sn)("design:type",s.dw4)],Qe.prototype,"appointment",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"carrierName",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"category",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"comment",void 0),(0,t.Cg)([(0,e.deserializeAs)(s.vwO),(0,t.Sn)("design:type",s.vwO)],Qe.prototype,"currentTag",void 0),(0,t.Cg)([(0,e.deserializeAs)(y),(0,t.Sn)("design:type",y)],Qe.prototype,"dates",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"eventId",void 0),(0,t.Cg)([(0,e.deserializeAs)(he),(0,t.Sn)("design:type",he)],Qe.prototype,"externalEta",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Qe.prototype,"orders",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"platformType",void 0),(0,t.Cg)([(0,e.deserializeAs)(O),(0,t.Sn)("design:type",O)],Qe.prototype,"position",void 0),(0,t.Cg)([(0,e.deserializeAs)(Ke),(0,t.Sn)("design:type",Ke)],Qe.prototype,"postponeDates",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"resourceName",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"siteName",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Qe.prototype,"skipPhaseTime",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"tagAction",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qe.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Qe.prototype,"user",void 0)},70272:(fe,J,r)=>{"use strict";r.d(J,{Li:()=>e.L,lK:()=>e.l,cq:()=>E}),r(93658);var e=r(72416),o=r(54460),s=r(10936),i=r(76803),p=r(55567),f=r(53220),N=r(51359),A=r(18306),I=r(48891);let E=(()=>{class h{static#e=this.\u0275fac=function(F){return new(F||h)};static#t=this.\u0275mod=I.$C({type:h});static#i=this.\u0275inj=I.G2t({imports:[A.tm,o.MD,s.YN,i.UN,s.X1,f.h,p.MQ,N.Ux,A.Ad,p.MQ]})}return h})()},93658:(fe,J,r)=>{"use strict";r.d(J,{D:()=>A});var t=r(72416),e=r(87366);class o extends Error{constructor(b,l){super(`\n      ${l} is not suppported.\n      Available: ${(0,e.A)(b).toString()}\n    `),this.items=b,this.stack=(new TypeError).stack}}var s=r(48891);let i=(()=>{class I{constructor(){this.availableColors=[t.L.AlertButton,t.L.Danger,t.L.Default,t.L.Disabled,t.L.GhostButton,t.L.Info,t.L.Primary,t.L.PrimaryButton,t.L.Salta,t.L.Secondary,t.L.SecondaryButton,t.L.Success,t.L.Warning,t.L.White],this.availableSizes=[t.l.XSmall,t.l.Small,t.l.Medium,t.l.Large,t.l.XLarge],this.sizeInPx={lg:32,md:24,sm:16,xl:64,xs:12}}getSizeInPx(l){return this.sizeInPx[l]}isSupported(l,R){if(!this.availableColors.some(v=>v===l))throw new o(this.availableColors,l);if(!this.availableSizes.some(v=>v===R))throw new o(this.availableSizes,R)}static#e=this.\u0275fac=function(R){return new(R||I)};static#t=this.\u0275prov=s.jDH({token:I,factory:I.\u0275fac})}return I})();var p=r(54460);const f=["*"],N=(I,b)=>({height:I,width:b});let A=(()=>{class I{constructor(l,R){this.element=l,this.svgIconService=R,this.color=t.L.Primary,this.isError=!1,this.size=t.l.Medium,this.baseClass="svg-icon",this.previousColor=t.L.Primary}ngOnChanges(){this.svg&&(this.svg.classList.remove(this.getIconClass(this.previousColor)),this.svg.classList.add(this.getIconClass(this.isError?t.L.Danger:this.color))),this.previousColor=this.isError?t.L.Danger:this.color}ngOnInit(){this.validateProvidedInputs(),this.init()}getIconClass(l){return`${this.baseClass}-${l}`}init(){this.svg=this.element.nativeElement.querySelector("svg"),this.svg.classList.add(this.getIconClass(this.color)),this.sizeInPx=this.svgIconService.getSizeInPx(this.size)}validateProvidedInputs(){this.svgIconService.isSupported(this.color,this.size)}static#e=this.\u0275fac=function(R){return new(R||I)(s.rXU(s.aKT),s.rXU(i))};static#t=this.\u0275cmp=s.VBU({type:I,selectors:[["sh-svg-icon"]],hostVars:2,hostBindings:function(R,v){2&R&&s.AVh("svg-icon",v.color)},inputs:{color:"color",isError:"isError",name:"name",size:"size"},features:[s.Jv_([i]),s.OA$],ngContentSelectors:f,decls:4,vars:5,consts:[[1,"svg-icon",3,"ngStyle"],[1,"svg-icon-content"]],template:function(R,v){1&R&&(s.NAR(),s.qSk(),s.j41(0,"svg",0),s.nrm(1,"use"),s.k0s(),s.joV(),s.j41(2,"div",1),s.SdG(3),s.k0s()),2&R&&(s.Y8G("ngStyle",s.l_i(2,N,v.sizeInPx+"px",v.sizeInPx+"px")),s.R7$(),s.BMQ("href","assets/sprite/icons.svg#"+v.name,null,"xlink"))},dependencies:[p.B3],styles:["[_nghost-%COMP%]{align-items:center;display:flex;line-height:1rem}[_nghost-%COMP%]   .svg-icon-content[_ngcontent-%COMP%]    >*{margin:.5rem}[_nghost-%COMP%]   .svg-icon[_ngcontent-%COMP%]{overflow:visible;transition:.2s all ease}[_nghost-%COMP%]   .svg-icon-white[_ngcontent-%COMP%]{fill:#fff!important}[_nghost-%COMP%]   .svg-icon-white[_ngcontent-%COMP%]:hover{fill:#fff!important}[_nghost-%COMP%]   .svg-icon-default[_ngcontent-%COMP%]{fill:#4b5563!important}[_nghost-%COMP%]   .svg-icon-default[_ngcontent-%COMP%]:hover{fill:#1776ce!important}[_nghost-%COMP%]   .svg-icon-primary[_ngcontent-%COMP%]{fill:#1776ce!important}[_nghost-%COMP%]   .svg-icon-primary[_ngcontent-%COMP%]:hover{fill:#125ca0!important}[_nghost-%COMP%]   .svg-icon-primary-button[_ngcontent-%COMP%]{fill:#fff!important}[_nghost-%COMP%]   .svg-icon-secondary-button[_ngcontent-%COMP%]{fill:#1776ce}[_nghost-%COMP%]   .svg-icon-ghost-button[_ngcontent-%COMP%]{fill:#6b7280}[_nghost-%COMP%]   .svg-icon-disabled[_ngcontent-%COMP%]{cursor:not-allowed;fill:#9ca3af!important}[_nghost-%COMP%]   .svg-icon-alert-button[_ngcontent-%COMP%]{fill:#fff!important}[_nghost-%COMP%]   .svg-icon-secondary[_ngcontent-%COMP%]{fill:#4b5563!important}[_nghost-%COMP%]   .svg-icon-secondary[_ngcontent-%COMP%]:hover{fill:#374151!important}[_nghost-%COMP%]   .svg-icon-warning[_ngcontent-%COMP%]{fill:#fcd34d!important}[_nghost-%COMP%]   .svg-icon-warning[_ngcontent-%COMP%]:hover{fill:#fbbf24!important}[_nghost-%COMP%]   .svg-icon-danger[_ngcontent-%COMP%]{fill:#b91c1c!important}[_nghost-%COMP%]   .svg-icon-danger[_ngcontent-%COMP%]:hover{fill:#991b1b!important}[_nghost-%COMP%]   .svg-icon-salta[_ngcontent-%COMP%]{fill:#f97316!important}[_nghost-%COMP%]   .svg-icon-salta[_ngcontent-%COMP%]:hover{fill:#ea580c!important}[_nghost-%COMP%]   .svg-icon-success[_ngcontent-%COMP%]{fill:#34d399!important}[_nghost-%COMP%]   .svg-icon-success[_ngcontent-%COMP%]:hover{fill:#059669!important}"]})}return I})()},72416:(fe,J,r)=>{"use strict";r.d(J,{L:()=>t,l:()=>e});var t=function(o){return o.AlertButton="alert-button",o.Danger="danger",o.Default="default",o.Disabled="disabled",o.GhostButton="ghost-button",o.Info="info",o.Primary="primary",o.PrimaryButton="primary-button",o.Salta="salta",o.Secondary="secondary",o.SecondaryButton="secondary-button",o.Success="success",o.Warning="warning",o.White="white",o}(t||{}),e=function(o){return o.XSmall="xs",o.Small="sm",o.Medium="md",o.Large="lg",o.XLarge="xl",o}(e||{})},30696:(fe,J,r)=>{"use strict";r.d(J,{Br:()=>qe.B,xk:()=>p,JV:()=>f,bl:()=>Ge,eR:()=>oe,HK:()=>Me.H,u6:()=>ue,DL:()=>s.D,hG:()=>ze,fL:()=>S});var t=r(47947),e=r(36441),o=r(36287),s=r(12827),i=r(48891);let p=(()=>{class le{constructor(y,Le){this.authService=y,this.userService=Le}resolve(y){return y.params.userId?this.userService.get(y.params.userId):this.userService.get(this.authService.getCurrentUserId()).pipe((0,t.T)(({organization:Le})=>{const Ke=o.KJW.createUser();return Ke.organization=Le,Ke}))}static#e=this.\u0275fac=function(Le){return new(Le||le)(i.KVO(e.uR),i.KVO(s.D))};static#t=this.\u0275prov=i.jDH({token:le,factory:le.\u0275fac})}return le})(),f=(()=>{class le{constructor(y){this.userService=y,this.duplicateUser=Le=>{const Ke=o.KJW.createUser();return Ke.agencyLinks=Le.agencyLinks,Ke.deactivatedAt=Le.deactivatedAt,Ke.organization=Le.organization,Ke.receiveMail=Le.receiveMail,Ke.role=Le.role,Ke.userProfile=Le.userProfile,Ke.setAgencies(Le.getAgencies()),Ke}}resolve(y){return this.userService.getUserAndAgencies(y.params.userId).pipe((0,t.T)(this.duplicateUser))}static#e=this.\u0275fac=function(Le){return new(Le||le)(i.KVO(s.D))};static#t=this.\u0275prov=i.jDH({token:le,factory:le.\u0275fac})}return le})();var N=r(39120),A=r(71217),I=r(82653),b=r(63016),l=r(41483),R=r(1703),v=r(22867),E=r(11674),h=r(687),C=r(6134),M=r(65985);const F=(0,M.VP)("[Unit system] Load general settings"),V=(0,M.VP)("[Unit system] Load general settings - Success",(0,M.xk)()),a=((0,M.VP)("[Unit system] Load general settings - Error"),(0,M.VP)("[Unit system] Save unit system",(0,M.xk)()),(0,M.VP)("[Unit system] Save general settings success",(0,M.xk)()));(0,M.VP)("[Unit system] Save general settings - Error"),r(44687),r(12596);var x=r(69483);(0,M.vy)({generalSettings:{distanceUnitSystem:x._r.Metric,temperatureUnitSystem:x._r.Metric,volumeUnitSystem:x._r.Metric,weightUnitSystem:x._r.Metric}},(0,M.on)(V,(le,{generalSettings:Ae})=>({...le,generalSettings:Ae})),(0,M.on)(a,(le,{generalSettingsUpdate:Ae})=>({...le,generalSettings:Ae}))),(0,M.UX)("unitSystem");const L=(0,M.UX)("unitSystem");var me=r(85710),_e=r(59614),Me=r(52409);let Ge=(()=>{class le{constructor(y,Le,Ke){this.rightsService=y,this.userPreferencesService=Le,this.store=Ke,this.isReadySubject=new A.t(!1),this.subscriptions=new me.yU,this.isReady$=this.isReadySubject.asObservable(),this.subscriptions.add(this.store.pipe((0,M.Lt)(L)).subscribe(ht=>{this.userPreferencesService.setGeneralSettings(ht?.generalSettings)}))}ngOnDestroy(){this.isReadySubject.complete(),this.subscriptions.unsubscribe()}init(y){this.rightsService.initUserPermissions(y),this.userPreferencesService.initUserPreferences(y)}setAsReady(){this.isReadySubject.next(!0)}static#e=this.\u0275fac=function(Le){return new(Le||le)(i.KVO(_e.fr),i.KVO(Me.H),i.KVO(M.il))};static#t=this.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();var Ue=r(34133);let ze=(()=>{class le{constructor(y,Le,Ke,ht,Qe,ye){this.settingsService=y,this.startupService=Le,this.userService=Ke,this.store=ht,this.authService=Qe,this.router=ye,this.userSession$=new A.t(void 0),this.getAllSettings=Ve=>{const g=[{setting:(0,C.lW)(),type:C.es},{setting:(0,C.eR)(),type:C.rV},{setting:(0,C.un)(),type:C.nj},{setting:(0,C.kw)(),type:C.L},{setting:(0,C.xL)(),type:C.Af},{setting:(0,C.mg)(),type:C.Le},{setting:(0,C.le)(),type:C.sN},{setting:(0,C.Qg)(),type:C.j1},{setting:(0,C.Ud)(),type:C.Hh},{setting:(0,C.Ev)(),type:C.P4},{setting:(0,C.kW)(),type:C.h8}],K=[...Ve];return g.forEach(ae=>{Ve.find(Be=>Be instanceof ae.type)||K.push(ae.setting)}),K},this.initUserStartService=()=>this.startupService.isReady$.pipe((0,l.p)(Ve=>Ve&&this.authService.isAuthorized()),(0,R.$)(),(0,v.n)(()=>this.userService.getMe()),(0,v.n)(Ve=>(0,I.p)({agencyLinks:this.userService.getMyAgenciesLinks(),settings:this.settingsService.query(),user:(0,b.of)(Ve)})),(0,t.T)(({agencyLinks:Ve,settings:g,user:K})=>{if(K){K.setAgencyLinks(Ve),h.wZ.userId=K.id,this.store.dispatch(F());const ae=this.getAllSettings(g);return this.userSession=N._.createUserSession(K,ae),this.startupService.init(this.userSession),this.userSession$.next(this.userSession),!0}return!1}))}getActiveFeatures(){return this.userSession.getActiveFeatures()}getUser(){return this.userSession.getUser()}getUserOrganization(){return this.userSession.getOrganization()}getUserSession(){return this.userSession}hasUserSession(){return!!this.userSession}init(){return this.initUserStartService()}onLoaded(){return this.userSession$.pipe((0,l.p)(y=>!!y))}update(y){return this.userService.update(y)}static#e=this.\u0275fac=function(Le){return new(Le||le)(i.KVO(E.h),i.KVO(Ge),i.KVO(s.D),i.KVO(M.il),i.KVO(e.uR),i.KVO(Ue.Ix))};static#t=this.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();var We=r(17178),ve=r(91167);const S=()=>{const le=(0,i.WQX)(ze),Ae=(0,i.WQX)(Ue.Ix);return le.init().pipe((0,We.W)(()=>{const y={description:(0,ve.x)("[[ Error page ]] You do not have the necessary rights to access this application"),displayLogoutButton:!0};return Ae.navigate(["error"],{state:{error:y}}),(0,b.of)(!1)}))};let ue=(()=>{class le{constructor(y){this.userService=y}resolve(y){return y.params.userId?this.userService.getUserAndAgencies(y.params.userId):(0,b.of)(o.KJW.createUser())}static#e=this.\u0275fac=function(Le){return new(Le||le)(i.KVO(s.D))};static#t=this.\u0275prov=i.jDH({token:le,factory:le.\u0275fac})}return le})();var d=r(54460),Re=r(80307),he=r(40142);let oe=(()=>{class le{static#e=this.\u0275fac=function(Le){return new(Le||le)};static#t=this.\u0275mod=i.$C({type:le});static#i=this.\u0275inj=i.G2t({providers:[Re._T,d.QX,he.q]})}return le})();var qe=r(99332)},99332:(fe,J,r)=>{"use strict";r.d(J,{B:()=>f});var t=r(48891),e=r(91834),o=r(69483),s=r(40142),i=r(54460);let f=(()=>{class N{constructor(I,b,l){this.number=I,this.convertUnit=b,this.unitPreference=l}transform(I,b,l=2,R=!0,v=!0){return(0,t.EWP)(()=>{let E=this.unitPreference.transform(b)();v&&(E=o.ID.getGreaterUnit("string"==typeof I?parseFloat(I):I,E));const h=this.convertUnit.transform(I,b,E?.label),C=this.number.transform(h,`1.0-${l}`);return R?`${C} ${E?.label}`:`${C}`})}static#e=this.\u0275fac=function(b){return new(b||N)(t.rXU(i.QX,16),t.rXU(e.cU,16),t.rXU(s.q,16))};static#t=this.\u0275pipe=t.EJ8({name:"convertUnitPreference",type:N,pure:!0})}return N})()},40142:(fe,J,r)=>{"use strict";r.d(J,{q:()=>i});var t=r(48891),e=r(2233),o=r(69483),s=r(52409);let i=(()=>{class p{constructor(){this.userPreferencesService=(0,t.WQX)(s.H),this.env=(0,t.WQX)(e.O),this.isPublicContext=this.env.isPublic()}transform(N){const A=o.QN.find(({label:I})=>I===N);return A?(0,t.EWP)(()=>(this.isPublicContext?this.userPreferencesService.publicUnitSystemState()===o.kS.Imperial:this.userPreferencesService.getUnitSystem(A.type)===o.kS.Imperial)?o.iL.find(({metric:b})=>b===A).imperial:A):(0,t.vPA)(void 0)}static#e=this.\u0275fac=function(A){return new(A||p)};static#t=this.\u0275pipe=t.EJ8({name:"unitPreference",type:p,pure:!0})}return p})()},52409:(fe,J,r)=>{"use strict";r.d(J,{H:()=>l});var t=r(48891),e=r(82040),o=r(11674),s=r(14884),i=r(12596),p=r(44687),f=r(1091),N=r(36287),A=r(6134),I=r(69483),b=r(12827);let l=(()=>{class R{constructor(){this.publicUnitSystemState=(0,t.vPA)(I.kS.Metric),this.i18nService=(0,t.WQX)(p.W4),this.settingsService=(0,t.WQX)(o.h),this.timezoneService=(0,t.WQX)(s.D),this.userService=(0,t.WQX)(b.D),this.defaults={language:this.i18nService.getBrowserLanguage(),timezone:this.timezoneService.getByName(f.SJ)},this.apiService=(0,t.WQX)(i.Gf)}getAddressSite(){return this.addressSetting}getDateTimeFormat(){return this.dateTimeFormatSetting}getMetricSystem(){return this.metricSystemSetting}getWeight(){return this.weightSetting}getTemperature(){return this.temperatureSetting}getDistance(){return this.distanceSetting}getVolume(){return this.volumeSetting}setGeneralSettings(E){this.generalSettings=E}getGeneralSettings(){return this.generalSettings}getUnitSystem(E){return{[I.ni.Distance]:this.isImperial("distanceUnitSystem")||this.getDistance()?.getValue(),[I.ni.Temperature]:this.isImperial("temperatureUnitSystem")||this.getTemperature()?.getValue(),[I.ni.Volume]:this.isImperial("volumeUnitSystem")||this.getVolume()?.getValue(),[I.ni.Weight]:this.isImperial("weightUnitSystem")||this.getWeight()?.getValue()}[E]??I.kS.Metric}getGlobalMapPage(){return this.globalMapPageSetting}getHomePage(){return this.homePageSetting}getLang(){return this.langSetting}getOrderDetailsLanding(){return this.orderDetailsLandingSetting}getTimezone(){return this.timezoneSetting}getToursPage(){return this.toursPageSetting}initUserPreferences(E){this.user=E.getUser(),this.setSettings(E),this.setI18nLanguage(),this.user.timezone?.name&&this.i18nService.setTimezone(this.user.timezone.name),this.i18nService.setDateTimeFormat(this.dateTimeFormatSetting.getValue())}isUSRegion(){return"US"===this.getTimezone().getValue()}setDateTimeFormat(E){return this.dateTimeFormatSetting.setValue(E),this.saveSetting(this.dateTimeFormatSetting).pipe((0,e.M)(h=>{this.dateTimeFormatSetting=h,this.i18nService.setDateTimeFormat(h.getValue())}))}setDateTimeFormatToDefault(){const E=this.isUSRegion()?f.nY.UsFormat:f.nY.Default;return this.dateTimeFormatSetting.setDefault(E),this.saveSetting(this.dateTimeFormatSetting).pipe((0,e.M)(h=>this.dateTimeFormatSetting=h))}setMetricSystem(E){return this.metricSystemSetting.setValue(E),this.saveSetting(this.metricSystemSetting).pipe((0,e.M)(h=>{this.metricSystemSetting=h}))}setMetricSystemToDefault(){const E=this.isUSRegion()?I.kS.Imperial:I.kS.Metric;return this.metricSystemSetting.setDefault(E),this.saveSetting(this.metricSystemSetting).pipe((0,e.M)(h=>{this.metricSystemSetting=h}))}setWeight(E){return this.weightSetting.setValue(E),this.saveSetting(this.weightSetting).pipe((0,e.M)(h=>{this.weightSetting=h}))}setWeightToDefault(){const E=this.isUSRegion()?I.kS.Imperial:I.kS.Metric;return this.weightSetting.setDefault(E),this.saveSetting(this.weightSetting).pipe((0,e.M)(h=>{this.weightSetting=h}))}setTemperature(E){return this.temperatureSetting.setValue(E),this.saveSetting(this.temperatureSetting).pipe((0,e.M)(h=>{this.temperatureSetting=h}))}setTemperatureToDefault(){const E=this.isUSRegion()?I.kS.Imperial:I.kS.Metric;return this.temperatureSetting.setDefault(E),this.saveSetting(this.temperatureSetting).pipe((0,e.M)(h=>{this.temperatureSetting=h}))}setDistance(E){return this.distanceSetting.setValue(E),this.saveSetting(this.distanceSetting).pipe((0,e.M)(h=>{this.distanceSetting=h}))}setDistanceToDefault(){const E=this.isUSRegion()?I.kS.Imperial:I.kS.Metric;return this.distanceSetting.setDefault(E),this.saveSetting(this.distanceSetting).pipe((0,e.M)(h=>{this.distanceSetting=h}))}setVolume(E){return this.volumeSetting.setValue(E),this.saveSetting(this.volumeSetting).pipe((0,e.M)(h=>{this.volumeSetting=h}))}setVolumeToDefault(){const E=this.isUSRegion()?I.kS.Imperial:I.kS.Metric;return this.volumeSetting.setDefault(E),this.saveSetting(this.volumeSetting).pipe((0,e.M)(h=>{this.volumeSetting=h}))}setAddressFormat(E){return this.addressSetting.setValue(E),this.saveSetting(this.addressSetting).pipe((0,e.M)(h=>{this.addressSetting=h}))}setGlobalMapPage(E){return this.globalMapPageSetting.setValue(E),this.saveSetting(this.globalMapPageSetting).pipe((0,e.M)(h=>{this.globalMapPageSetting=h}))}setHomePage(E){return this.homePageSetting.setValue(E),this.saveSetting(this.homePageSetting).pipe((0,e.M)(h=>{this.homePageSetting=h}))}setOrderDetailsLanding(E){return this.orderDetailsLandingSetting.setValue(E),this.saveSetting(this.orderDetailsLandingSetting).pipe((0,e.M)(h=>{this.orderDetailsLandingSetting=h}))}setToursPage(E){return this.toursPageSetting.setValue(E),this.saveSetting(this.toursPageSetting).pipe((0,e.M)(h=>{this.toursPageSetting=h}))}setLang(E){return this.langSetting.setValue(E),this.i18nService.setLanguage(E),this.user.setLanguage(E),this.saveUser()}setTimezone(E){return this.timezoneSetting.setValue(E),this.user.setTimezone(E),this.saveUser()}setTimezoneToDefault(){return this.getTimezone().setToDefault(),this.user.setTimezone(this.getTimezone().getValue()),this.saveUser()}setLangToDefault(){return this.langSetting.setToDefault(),this.i18nService.setLanguageToBrowser(),this.user.setLanguage(this.i18nService.getBrowserLanguage()),this.saveUser()}saveLangAndTimezone(E,h){return this.apiService.put(i.M$.LanguageTimezonePreference,{lang:E,timezone:h}).pipe((0,e.M)(()=>{this.i18nService.setTimezone(h),this.i18nService.setLanguage(f.NH.getByCode(E))}))}setSettings(E){this.langSetting=A.nC.createLangSetting(this.user.language,this.defaults.language),this.timezoneSetting=A.nC.createTimezoneSetting(this.user.timezone,this.defaults.timezone),this.addressSetting=E.getAddressSetting(),this.globalMapPageSetting=E.getGlobalMapPageSetting(),this.homePageSetting=E.getHomePageSetting(),this.dateTimeFormatSetting=E.getDateTimeFormatSetting(),this.metricSystemSetting=E.getMetricSetting(),this.weightSetting=E.getWeightSetting(),this.temperatureSetting=E.getTemperatureSetting(),this.distanceSetting=E.getDistanceSetting(),this.volumeSetting=E.getVolumeSetting(),this.toursPageSetting=E.getToursPageSetting(),this.orderDetailsLandingSetting=E.getOrderDetailsLandingSetting()}saveSetting(E){return this.settingsService.save(this.user.id,E)}saveUser(){return this.userService.save(this.user).pipe((0,e.M)(E=>{delete N.KJW.transformRequest(E).organization}))}isImperial(E){return this.getGeneralSettings()?.[E]===I.kS.Imperial?I.kS.Imperial:void 0}setI18nLanguage(){this.langSetting.hasValue()?this.i18nService.setLanguage(this.langSetting.getValue()):this.i18nService.setLanguage(this.langSetting.getDefaultValue())}static#e=this.\u0275fac=function(h){return new(h||R)};static#t=this.\u0275prov=t.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},12827:(fe,J,r)=>{"use strict";r.d(J,{D:()=>E});var t=r(27691),e=r(82653),o=r(63016),s=r(47947),i=r(82040),p=r(17178),f=r(91167),N=r(12596),A=r(2233),I=r(44687),b=r(36287),l=r(39120),R=r(48891),v=r(18306);let E=(()=>{class h{constructor(M,F,V,j){this.apiService=M,this.toastService=F,this.i18nService=V,this.environment=j,this.query=Y=>this.apiService.query(N.M$.Users,{params:Y}).pipe((0,s.T)(a=>new N.Qw(a,a.data.map(b.KJW.createUser))))}activateUser(M){return this.apiService.put(`${N.M$.Users}/${M}/activate`).pipe((0,s.T)(b.KJW.createUser))}create(M){return this.apiService.post(N.M$.Users,b.KJW.transformRequest(M)).pipe((0,s.T)(b.KJW.createUser))}deactivateUser(M){return this.apiService.put(`${N.M$.Users}/${M}/deactivate`).pipe((0,s.T)(b.KJW.createUser))}delete(M){return this.apiService.delete(`${N.M$.Users}/${M}`)}get(M){let F=new t.Nl;return F=F.append("include","organization,userProfile"),this.apiService.get(`${N.M$.Users}/${M}`,{params:F}).pipe((0,s.T)(b.KJW.createUser))}getMe(){let M=new t.Nl;return M=M.append("include","organization,userProfile"),this.apiService.get(N.M$.Me,{params:M}).pipe((0,s.T)(b.KJW.createUser))}getAgencyLinks(M){return this.apiService.query(`${N.M$.Users}/${M}/${N.n8.Agencies}?include=agency`).pipe((0,s.T)(({data:F})=>F.map(b.a2k)))}getMyAgenciesLinks(){return this.apiService.query(`${N.M$.MyAgencies}?include=agency`).pipe((0,s.T)(({data:M})=>M.map(b.a2k)))}getMyPortfolios(){return this.apiService.query(N.M$.MyPortfolios).pipe((0,s.T)(({data:M})=>M.map(b.cKe)))}getBrowserConnectionLogs(M,F){return this.apiService.query(N.M$.UserBrowserLogs.replace(":id",M),{params:F}).pipe((0,s.T)(V=>new N.Qw(V,V.data.map(l.z.create))))}getConnectionLogs(M,F){return M.isDriver()?this.getDeviceConnectionLogs(M.id,F):this.getBrowserConnectionLogs(M.id,F)}getDeviceConnectionLogs(M,F){return this.apiService.query(N.M$.UserDeviceLogs.replace(":id",M),{params:F}).pipe((0,s.T)(V=>new N.Qw(V,V.data.map(l.z.create))))}getSalesforceUserAccountUrl(M){return`${this.environment.getProperty("SALESFORCE_URL")}/lightning/r/Contact/${M}/view`}getToken(M){return this.apiService.get(`${N.M$.Tokens}/impersonation/${M}`)}getUserAndAgencies(M){return(0,e.p)([this.get(M),this.getAgencyLinks(M)]).pipe((0,i.M)(([F,V])=>F.setAgencyLinks(V)),(0,s.T)(([F])=>F))}save(M){return M.id?this.update(M).pipe((0,i.M)(()=>{this.toastService.success(this.i18nService.instant((0,f.x)("Success")),this.i18nService.instant((0,f.x)("User has been updated")))})):this.create(M).pipe((0,i.M)(()=>{this.toastService.success(this.i18nService.instant((0,f.x)("Success")),this.i18nService.instant((0,f.x)("User has been created")))}))}update(M){return this.apiService.put(`${N.M$.Users}/${M.id}`,b.KJW.transformRequest(M)).pipe((0,s.T)(b.KJW.createUser))}isExistUsername(M){return this.apiService.head(`${N.M$.Username}/${M}`).pipe((0,s.T)(()=>!0),(0,p.W)(()=>(0,o.of)(!1)))}static#e=this.\u0275fac=function(F){return new(F||h)(R.KVO(N.Gf),R.KVO(v.fw),R.KVO(I.W4),R.KVO(A.O))};static#t=this.\u0275prov=R.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},87344:(fe,J,r)=>{"use strict";r.d(J,{s:()=>s});var t=r(48891),e=r(86388);let s=(()=>{class i{get nativeWindow(){return function o(){return window}()}constructor(f){this.sanitizer=f}getBlobAsSafeUrl(f){return this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(f))}openNewTab(f){this.nativeWindow.open(f,"_blank")}static#e=this.\u0275fac=function(N){return new(N||i)(t.KVO(e.up))};static#t=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},12596:(fe,J,r)=>{"use strict";r.d(J,{KL:()=>b,Bj:()=>I,Gf:()=>A,M$:()=>l,Tl:()=>M,_C:()=>O,Oh:()=>R,Tr:()=>h,kG:()=>$,ii:()=>v,nD:()=>P,A8:()=>F,xj:()=>E,q3:()=>C,Zb:()=>X,hk:()=>a,rq:()=>Z,Qw:()=>He,UB:()=>j,Of:()=>V,n8:()=>Y});var t=r(27691),e=r(76564),o=r(47947),s=r(6218),i=r(37953),p=r(81215),f=r(2233),N=r(48891);let A=(()=>{class L{constructor(ce,me){this.environment=ce,this.http=me,this.defaultHeaders=new t.Lr,this.defaultParams=new t.Nl,this.DEFAULT_PAGE_SIZE=20,this.baseUrl=this.environment.getProperty("API_URL")}delete(ce,me={}){return this.http.delete(`${this.baseUrl}${ce}`,this.computeRequestOptions(me))}get(ce,me={}){return this.http.get(`${this.baseUrl}${ce}`,{...this.computeRequestOptions(me),observe:"response"}).pipe((0,o.T)(_e=>{const Me=_e.body;let Ge;return Ge="application/vnd.api+json"===_e.headers.get("Content-Type")||Me.data?Me.data instanceof Array?Me.data[0]:Me.data:_e.body,Ge}),(0,s.u)())}getAsBlob(ce,me={}){return this.http.get(`${this.baseUrl}${ce}`,{...this.computeRequestOptions(me),responseType:"blob"})}getAsText(ce,me={}){return this.http.get(`${this.baseUrl}${ce}`,{...this.computeRequestOptions(me),responseType:"text"})}head(ce){return this.http.head(`${this.baseUrl}${ce}`)}patch(ce,me,_e={}){return this.http.patch(`${this.baseUrl}${ce}`,me,this.computeRequestOptions(_e)).pipe((0,o.T)(this.extractSingleResource))}post(ce,me,_e={}){return this.http.post(`${this.baseUrl}${ce}`,me,this.computeRequestOptions(_e)).pipe((0,o.T)(this.extractSingleResource))}postQuery(ce,me,_e={}){return this.http.post(`${this.baseUrl}${ce}`,me,this.computeRequestOptions(_e)).pipe((0,s.u)())}put(ce,me,_e={}){return this.http.put(`${this.baseUrl}${ce}`,me,this.computeRequestOptions(_e)).pipe((0,o.T)(this.extractSingleResource))}query(ce,me={}){return this.http.get(`${this.baseUrl}${ce}`,this.computeRequestOptions(me)).pipe((0,s.u)())}queryAll(ce,me,_e=this.DEFAULT_PAGE_SIZE){let Me=1;return me=me.set("page[size]",_e.toString()).set("page[number]",Me.toString()),this.query(ce,{params:me}).pipe((0,i.f)(Ge=>(me=me.set("page[number]",(++Me).toString()),Ge?.links?.next?this.query(ce,{params:me}):e.w)),(0,p.T)((Ge,Ue)=>({...Ge,data:Ge.data.concat(Ue.data)})))}addDefaultHeaders(ce){return ce?ce.keys().reduce((me,_e)=>me.set(_e,ce.get(_e)||""),this.defaultHeaders):this.defaultHeaders}addDefaultParams(ce){return ce?ce.keys().reduce((me,_e)=>me.set(_e,ce.get(_e)||""),this.defaultParams):this.defaultParams}computeRequestOptions(ce={}){return{...ce,headers:this.addDefaultHeaders(ce.headers),params:this.addDefaultParams(ce.params)}}extractSingleResource(ce){if(ce)return ce.data instanceof Array?ce.data[0]:ce.data}static#e=this.\u0275fac=function(me){return new(me||L)(N.KVO(f.O),N.KVO(t.Qq))};static#t=this.\u0275prov=N.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),I=(()=>{class L extends A{constructor(ce,me){super(ce,me),this.environment=ce,this.http=me,this.defaultHeaders=(new t.Lr).set("accept","application/vnd.api+json").set("content-type","application/vnd.api+json"),this.baseUrl=this.environment.getProperty("NOTIFICATION_API_URL")}static#e=this.\u0275fac=function(me){return new(me||L)(N.KVO(f.O),N.KVO(t.Qq))};static#t=this.\u0275prov=N.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();const b=new N.nKC("apiUrlPrefix");var l=function(L){return L.Agencies="/agencies",L.AgenciesCharterableAgencyLinks="/agencies/charterable-agency/links",L.AgencyEventTimeline="/agencies/:id/debug/event-timeline",L.AlgoliaAdminToken="/algolia/admin/token/:organizationId/:documentType",L.AlgoliaOrderToken="/algolia/token/orders",L.AlgoliaTourToken="/algolia/token/tours",L.AsyncExport="/async/export",L.AvailableLanguages=":prefix/:notificationId/available-languages",L.Carrier="/carrier",L.CarrierAccountSetup="/carrier-account-setup",L.CarrierOnboarding="/carrier-onboarding",L.CarrierOnboardingCenter=":prefix/carrier-onboarding-center/:organizationId",L.CarrierOnboardingSetup="/carrier-onboarding-setup",L.ChannelEmailRecipients=":prefix/:notificationId/channel/email/recipients",L.ChannelWhatsAppRecipients=":prefix/:notificationId/channel/whatsapp/recipients",L.ChannelSmsRecipients=":prefix/:notificationId/channel/sms/recipients",L.CharterableAgencyLinks="/charterable-agency-links",L.CharterableAgencyLinksBatch="/charterable-agency-links/batch",L.CharterableAgencyLinksBatchRemove="/charterable-agency-links/batch/remove",L.CharterableAgencyLinksShippers="/charterable-agency-links-of-shippers",L.CheckCredentials="/telematic/providers/:id/check-credentials",L.DelegateResource="/pairing/:organizationId/delegation/delegate/resource",L.UpdateDelegatedFleet="/telematic/configuration/update-delegated-fleet/:organizationId",L.CheckCredentialsResult="/telematic/providers/:id/check-credentials/result/:credentialsKey",L.Comment="/orders/:id/discussions/comments",L.CommentDeleteUpdate="/orders/comments/:commentId",L.CommentSend="/orders/:id/comments",L.CompanyEdi="/company-edi",L.CompanyEdiExtended="/company-edi/extended",L.CompanyEdiById="/company-edi/:companyEdiId",L.CompanyEdiMessageFormat="/company-edi/specs/configuration/message-format",L.CompanyEdiProtocol="/company-edi/specs/configuration/protocol",L.CompanyEdiTimeline="/company-edi/:companyEdiId/debug/event-timeline",L.Conditions=":prefix/:notificationId/conditions",L.ConfirmSmartphoneReady=":prefix/:organizationId/carrier-onboarding-setup/:onboardingCode/confirm-smartphone-ready",L.CustomPackingQualifiers="/custom-packing-qualifiers",L.DeleteNotificationEmailSubscription=":prefix/:notificationId/channel/email/shippeoUsers/:recipientId",L.DeleteNotificationSmsSubscription=":prefix/:notificationId/channel/sms/shippeoUsers/:recipientId",L.EdiSolutions="/edi-solutions",L.EmailTemplateById=":prefix/:notificationId/email/templates/:templateId",L.EmailTemplates=":prefix/:notificationId/email/templates",L.GeneralSettings="/user-settings/general",L.GetTriggerEvent=":prefix/:notificationId/eventTriggerNotificationSettings",L.HashidConverter="/tools/hashid-converter",L.IndexerConfiguration="/representation-indexer/admin/index",L.IndexerConfigurationDetails="/representation-indexer/admin/index/:id",L.IndexerConfigurationPurge="/representation-indexer/admin/index/:id/purge",L.IndexerConfigurationSchedule="/representation-indexer/admin/index/:id/remote-settings/schedule-update",L.IndexerConfigurationScheduleCancel="/representation-indexer/admin/index/:id/remote-settings/cancel-scheduled-update",L.IndexOrganizationAssignment="/representation-indexer/admin/organization-configuration/:organizationConfigurationId/index",L.IndexOrganizationConfiguration="/representation-indexer/admin/organization-configuration",L.IndexOrganizationConfigurationAgencyUpdate="/representation-indexer/admin/organization-configuration/:organizationConfigurationId/agency/:agencyId",L.IndexOrganizationConfigurationDetails="/representation-indexer/admin/organization-configuration/:organizationConfigurationId",L.InsightsTableau=":viz/trusted/:token/views/:workbook/:viewName",L.LastPosition="/telematic-configurations/:telematicConfigId/last-position",L.LanguageTimezonePreference="/me/display-preferences",L.Me="/me",L.Mean="/means/:id",L.MeanActivate="/means/:id/activate",L.MeanDeactivate="/means/:id/deactivate",L.MeanPosition="/means/:id/positions",L.Means="/means",L.MobileDriver="/mobile-drivers",L.MyAgencies="/my-agencies",L.MyPortfolios="/my-portfolios",L.MySettings="/my-settings",L.MobileAgencySettings="/mobile/agencies/settings/:agencyId",L.NewsletterConfigurations="/newsletter-configurations/:organizationId/configurations",L.NotificationById=":prefix/:notificationId",L.Notifications="/notifications",L.NotificationTemplates="/notification-templates",L.Organization="/organizations/:id",L.OrganizationAccount="/organizations/:id/account",L.Organizations="/organizations",L.OrganizationsNotifications="/organizations/notifications",L.OceanCarriers="/ocean/ocean_carriers",L.OceanOrderDebugDetails="/ocean/order/:id/debug/details",L.OceanOrderDetails=":prefix/ocean/order/:id/details",L.OceanOrderInfo=":prefix/ocean/order/:id/info",L.OceanOrderMap=":prefix/ocean/order/:id/map",L.OceanOrderMapStops=":prefix/ocean/order/:id/map/stops",L.OceanOrderTimeline=":prefix/ocean/order/:id/timeline",L.OceanReplayEvents="/ocean/summary-events/replay",L.OceanSetting="/ocean/settings/:id",L.OceanSettings="/ocean/settings",L.OceanVesselItineraries="/ocean/vessel-itineraries",L.Onboarding="/onboarding",L.OnboardingUsernameExists="/onboarding/carrier-account-setup/:onboardingCode/username-exists/:username",L.OnboardingUsernameExistsValidator="/onboarding/carrier-account-setup/:onboardingCode/username-exists",L.Operators="/operators",L.Order="/orders/:id",L.OrderSearchByReference="/orders-search/by-reference/:reference",L.OrderAgencies="/orders/:orderId/agencies",L.OrderAttachmentData="/orders/:id/files/:basename/binary",L.OrderAttachments="/orders/:id/files",L.OrderAttributes="/orders/:id/attributes",L.OrderCancel="/orders/:id/cancel",L.OrderChartering=":prefix/orders/:id/list/chartering",L.OrderCurrentPosition="/orders/:id/positions/current",L.OrderDateEvents="/orders/:id/date/events",L.OrderDebugArchive="/orders/:id/debug/archive",L.OrderDebugEta="/orders/:id/debug/eta",L.OrderDocumentPermission=":prefix/users/:userId/order/:orderId/permissions",L.OrderEventConfirm="/orders/:id/confirm",L.OrderEventRefuse="/orders/:id/refuse",L.OrderEvents=":prefix/orders/:id/events",L.OrderParcelEvents="/goods/orders/:orderId/command",L.OrderEventsTimeline="/orders/:id/events/timeline",L.OrderParcelEventsTimeline="/goods/orders/:id/timeline",L.OrderParcelOverview="/goods/orders/:id/overview",L.OrderParcelGoods="/goods/orders/:id/goods",L.OrderParcelGoodsHandlingUnit="/goods/orders/:id/handling-unit-events",L.OrderFull="/orders/:id/full",L.OrderGeneral=":prefix/orders/:id/list/general",L.OrderGoods="/orders/:id/goods",L.OrderHistoricalPositions=":prefix/orders/:id/historical-positions",L.OrderHistoryPosition=":prefix/orders/:id/positions",L.OrderListTimeline="/orders/:id/list/:mode/timeline",L.OrderOrganizationMeans="/pairing/:id/resources?include=delegators",L.OrderPair="/orders/pair",L.OrderPermission="/orders/:id/list/permissions",L.OrderRawFull="/orders/rawid/:id/full",L.OrderDelete="/algolia/delete/orders/:id",L.OrderRepair="/algolia/repair/orders/:id",L.OrderRoadEta="/orders/:id/eta",L.OrderRoadNotifications=":prefix/orders/:id/list/road/notifications",L.OrderRoadPairing=":prefix/orders/:id/list/road/pairing",L.OrderRoadPermission=":prefix/orders/:id/list/road/permissions",L.OrderParcelPermission=":prefix/orders/:id/list/parcel/permissions",L.OrderTags="/orders/:id/tags",L.OrganizationAgencies="/organizations-agencies",L.OrganizationEventTimeline="/organizations/:id/debug/event-timeline",L.OrganizationTagCheck="/organizations/:id/tags/name/:tagName/permission/:permission",L.ParcelReplayEvents="/goods/summary-events/replay",L.Place="/places",L.PlaceDeactivateBatch="/places/deactivate/batch",L.PodUrls="/orders/:id/pod-urls",L.PostNotificationEmailSubscription=":prefix/:notificationId/channel/email/shippeoUsers",L.PostNotificationSmsSubscription=":prefix/:notificationId/channel/sms/shippeoUsers",L.PublicAgencyFeature="/public/agency/features",L.PublicLink="/:context/:id/public-link",L.PublicOrderStats="/public/orders/:token/stats",L.PushingTemplateEmail=":prefix/:organizationId/carrier-onboarding-setup/:onboardingCode/get-pushing-email-template",L.Reference="/organization/tours/reference/:reference",L.ReplayEventEvents="/replay-event/events",L.ReplayEventReplay="/replay-event/replay",L.Resources="/resources",L.SentNotifications="/sentNotifications",L.SmsTemplateById=":prefix/:notificationId/sms/templates/:templateId",L.SmsTemplates=":prefix/:notificationId/sms/templates",L.Tag="/tags",L.Tasks="/tasks",L.TelematicConfigurationEventTimeline="/telematic-configurations/:telematicConfigurationId/debug/timeline",L.TelematicConfigurations="/telematic-configurations",L.TelematicConfigurationDebugMode="/telematic/configuration/:id/debug-mode",L.TelematicConfigurationUpdateFleet="/telematic/configuration/:id/update-fleet",L.TelematicProviders="/telematic-providers",L.TelematicResource="/telematic-resources",L.TokenDashboard="/dashboard/ticket",L.Tokens="/tokens",L.TourAttributes="/tours/:id/orders/attributes",L.TourCargo="/tours/:id/goods",L.TourDetails="/tours/:id/details",L.TourEta="/tours/:id/eta",L.TourEventList="/tours/:id/events/timeline",L.TourListChartering="/tours/:id/list/chartering",L.TourListGeneral="/tours/:id/list/general",L.TourListIncidents="/tours/:id/list/incidents",L.TourListOrders="/tours/:id/list/orders",L.TourListTimeline="/tours/:id/list/timeline",L.TourPositionList="/tours/:id/positions",L.TourPublicDetails="/public/tours/details",L.TourPublicEta="/public/tours/eta",L.TourPublicEventList="/public/tours/events/timeline",L.TourPublicPositionList="/public/tours/positions",L.Tours="/tours",L.TriggeringEvents="/triggeringEvents",L.OrderExternalTrackingUrl="/orders/:id/vtradex/trace-sync",L.UserBrowserLogs="/users/:id/browser-logs",L.UserDeviceLogs="/users/:id/device-logs",L.Username="/users/username",L.UserNotifications="/users/:userId/notifications",L.UserPreferenceNotification="/users/:userId/notifications/:notificationId",L.UserPreferenceNotificationList="/users/:id/notifications",L.UserProfile="/profiles/:id",L.UserProfiles="/profiles",L.UserProfileUsers="/profiles/:id/users",L.Users="/users",L.UserSetting="/users/:userId/settings/:settingId",L.UserSettings="/users/:userId/settings",L.Variables="/variables",L}(l||{}),R=function(L){return L.Complete="/complete",L.CarrierAlreadyKnown="/mark-carrier-as-already-known",L.CarrierPrice="/orders/:id/agencies/:agencyId/price",L.ConfigureAccountOwner="/configure-account-owner",L.ConfigureOrganization="/configure-organization",L.ConfirmProviderReady="/confirm-provider-ready",L.QualifyOrganization="/qualify-organization",L.SelectConnection="/select-connection",L.Start="/start",L.Submit="/submit",L}(R||{}),v=function(L){return L.Export="/export",L}(v||{}),E=function(L){return L.OrganizationUser="/organizations/:organizationId/users/:userId",L}(E||{}),h=function(L){return L.OrderCategories="/definitions/orders/debug/categories",L}(h||{}),C=function(L){return L.Activate="/activate",L.Configuration="/configuration",L.Deactivate="/deactivate",L.Delegate="/delegate",L.DelegatedUsersResources="/pairing/:organizationId/delegation/resources",L.DelegatedFleetDelegators="/pairing/:organizationId/delegation/fleet/delegators",L.Delegation="/delegation",L.Pairing="/pairing",L.Recall="/recall",L.FetchCarriers="/orders/bulk/agencies",L.AddCarrier="/orders/:orderId/agencies/:carrierId",L.CharterAtTourLevel="/tours/:tourId/agencies/:carrierId",L.UncharterAtTourLevel="/tours/:tourId/uncharter",L}(C||{}),M=function(L){return L.Activation="automatic-event-settings/activation",L.ActivationEnable="automatic-event-settings/activation/enable",L.Default="automatic-event-settings",L}(M||{}),F=function(L){return L.DebugBasicInformation="/orders/:id/debug/basic-information",L.DebugEventCount="/orders/:id/debug/event-count",L.DebugParcelEventCount="/goods/debug/orders/:id/event-count",L.DebugTimeline="/orders/:id/debug/event-timeline",L.DebugTimelineOcean="/ocean/order/:id/debug/timeline",L.DebugTimelineParcel="/goods/debug/orders/:id/timeline",L.EventsTimeline="/orders/:id/events/timeline",L.Export="/orders/export",L.OrderDebugDetails="/orders/:id/debug-details",L.OrderDebugSearch="/orders/debug/search",L.Orders="/orders",L.Pair="/orders/pair",L}(F||{}),V=function(L){return L.RepairTour="/algolia/repair/tours",L.Tours="/tours",L}(V||{}),j=function(L){return L.Pairing="/pairing",L.Unpair="/orders/unpair",L}(j||{}),Y=function(L){return L.Agencies="agencies",L}(Y||{}),a=function(L){return L.CurrentPositionOrder="/public/orders/positions/current",L.Eta="/public/orders/eta",L.Orders="/public/orders",L.OrderParcelEventsTimeline="/public/goods/order/timeline",L.OrderParcelOverview="/public/goods/order/overview",L.OrderParcelGoodsHUEvents="/public/goods/order/goods",L.OrderParcelGoods="/goods/public/orders/goods",L.Shipment="/public/orders/goods",L.Theme="/public/theme",L.OrderExternalTrackingUrl="/public/orders/vtradex/trace-sync",L}(a||{}),P=function(L){return L.LostCode="/carrier/declare-lost-code",L}(P||{}),z=r(71217),H=r(22867),x=r(88249);class Q{constructor(Ce){this.timeMs=Ce,this.DEFAULT_CACHE_TIME_MS=6e4,this.FLUSHER_INTERVAL_MS=1e3,this.EXPIRATION_MIN_INTERVAL_MS=100,this.cache=new Map,this.timeMs=Ce||this.DEFAULT_CACHE_TIME_MS,this.startFlusher()}expire(Ce){if(this.cache.has(Ce)){const ce=this.cache.get(Ce);Date.now()+this.timeMs-ce.expires>this.EXPIRATION_MIN_INTERVAL_MS&&this.delete(Ce)}}get(Ce){if(this.checkExpiration(Ce),!this.cache.has(Ce))throw new Error(`Cache does not contains key: ${Ce}`);return this.cache.get(Ce).cached}has(Ce){return this.checkExpiration(Ce),this.cache.has(Ce)}refresh(Ce){this.cache.has(Ce)&&this.cache.get(Ce).refresher.next()}delete(Ce){this.cache.has(Ce)&&this.cache.delete(Ce)}set(Ce,ce){this.expire(Ce),this.cache.has(Ce)||this.buildCache(Ce,ce)}buildCache(Ce,ce){const me=new z.t(void 0),_e=me.pipe((0,H.n)(()=>ce),(0,x.t)(1));this.cache.set(Ce,{observable:ce,cached:_e,expires:Date.now()+this.timeMs,refresher:me})}checkExpiration(Ce){if(this.cache.has(Ce)){const ce=this.cache.get(Ce);Date.now()>ce.expires&&this.delete(Ce)}}startFlusher(){this.flusherInterval=setInterval(()=>{for(const Ce of this.cache.keys())this.checkExpiration(Ce)},this.FLUSHER_INTERVAL_MS)}}let O=(()=>{class L{constructor(){this.cacheList=[]}create(ce){const me=new Q(ce);return this.cacheList.push(me),me}static#e=this.\u0275fac=function(me){return new(me||L)};static#t=this.\u0275prov=N.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();var $=function(L){return L[L.Disconnected=0]="Disconnected",L[L.BadRequest=400]="BadRequest",L[L.Unauthorized=401]="Unauthorized",L[L.Forbidden=403]="Forbidden",L[L.NotFound=404]="NotFound",L[L.TokenExpired=440]="TokenExpired",L[L.UnknownStatus=520]="UnknownStatus",L[L.Conflict=409]="Conflict",L}($||{});let X=(()=>{class L extends A{setToken(ce){this.token=ce}addDefaultParams(ce){let me=this.defaultParams;return this.token&&(me=me.set("token",this.token)),ce?ce.keys().reduce((_e,Me)=>_e.set(Me,ce.get(Me)),me):me}static#e=this.\u0275fac=(()=>{let ce;return function(_e){return(ce||(ce=N.xGo(L)))(_e||L)}})();static#t=this.\u0275prov=N.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})();var Z=function(L){return L.Orders="orders",L.Tours="tours",L}(Z||{});class He extends Array{static get[Symbol.species](){return Array}constructor(Ce,ce){super(...ce),Ce.meta&&(this.totalItems=Ce.meta["total-items"]||Ce.meta.totalNumberOfItems,this.totalPages=Ce.meta["total-pages"]||Ce.meta.totalNumberOfPages),Ce.links&&(this.links=Ce.links),Object.setPrototypeOf(this,He.prototype)}}},92997:(fe,J,r)=>{"use strict";r.d(J,{b8:()=>E,cV:()=>_e,dr:()=>ve}),r(30696);var e=r(44687),s=r(54460),i=r(48891);let p=(()=>{class S{static#e=this.\u0275fac=function(Re){return new(Re||S)};static#t=this.\u0275mod=i.$C({type:S});static#i=this.\u0275inj=i.G2t({imports:[s.MD]})}return S})();var f=r(10936),N=r(34133),A=r(53220),I=r(18306);let b=(()=>{class S{static#e=this.\u0275fac=function(Re){return new(Re||S)};static#t=this.\u0275mod=i.$C({type:S});static#i=this.\u0275inj=i.G2t({imports:[s.MD,I.LT,e.LP,I.Sj,f.X1,N.iI,A.h]})}return S})();var l=r(89335);let R=(()=>{class S{static#e=this.\u0275fac=function(Re){return new(Re||S)};static#t=this.\u0275mod=i.$C({type:S});static#i=this.\u0275inj=i.G2t({imports:[s.MD,e.LP,I.qD,b,l.by]})}return S})();const v=[p,b,R];let E=(()=>{class S{static#e=this.\u0275fac=function(Re){return new(Re||S)};static#t=this.\u0275mod=i.$C({type:S});static#i=this.\u0275inj=i.G2t({imports:[s.MD,v,p,b,R]})}return S})();var h=r(71217),C=r(85710),M=r(66645),F=r(17178),V=r(76564),j=r(47947),Y=r(24447),a=r(91167),P=r(36441),u=r(2233),z=r(45275),H=r(91039);const x=S=>({name:"eye-off",type:S}),Q=S=>({name:"eye",type:S});function O(S,ue){if(1&S&&(i.j41(0,"a",13),i.EFF(1,"Forgot your password?"),i.k0s()),2&S){const d=i.XpG();i.Y8G("href",d.forgotPasswordUrl,i.B4B)}}function $(S,ue){if(1&S&&(i.j41(0,"div",14)(1,"span"),i.EFF(2),i.nI1(3,"translate"),i.k0s()()),2&S){const d=ue.ngIf;i.R7$(2),i.JRh(i.bMT(3,1,d))}}function X(S,ue){1&S&&(i.j41(0,"span",15),i.EFF(1,"Sign in"),i.k0s())}function Z(S,ue){1&S&&(i.qex(0),i.j41(1,"div",16)(2,"span",17),i.EFF(3,"Loading\u2026"),i.k0s()(),i.bVm())}let He=(()=>{class S{constructor(d,Re,he,oe){this.authService=d,this.formBuilder=Re,this.route=he,this.environment=oe,this.isPasswordVisible=!1,this.isBackOffice=!1,this.svgIconType=H.Oo,this.errorMessageSubject$=new h.t(void 0),this.isLoadingSubject$=new h.t(!1),this.subscriptions=new C.yU,this.errorMessage$=this.errorMessageSubject$.asObservable(),this.isLoading$=this.isLoadingSubject$.asObservable().pipe((0,M.F)())}ngOnDestroy(){this.errorMessageSubject$.complete(),this.subscriptions.unsubscribe()}ngOnInit(){this.isBackOffice=this.environment.isBackOffice(),this.createLoginForm()}onSubmit(){this.loginForm.valid&&(this.isLoadingSubject$.next(!0),this.subscriptions.add(this.authService.login(this.loginForm.value).pipe((0,F.W)(d=>(this.errorMessageSubject$.next((0,a.x)(d.status&&401===d.status?"Invalid credentials":"An error occurred during authentication")),this.authService.clearLocalStorage(),V.w)),(0,j.T)(d=>{this.authService.setTokenAndCurrentUserId(d);const Re=this.route.snapshot.queryParamMap.get("redirect")&&""!==this.route.snapshot.queryParamMap.get("redirect");(0,z.Uc)(Re?this.route.snapshot.queryParamMap.get("redirect"):"/")}),(0,Y.j)(()=>this.isLoadingSubject$.next(!1))).subscribe()))}togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}createLoginForm(){this.loginForm=this.formBuilder.group({password:["",f.k0.required],username:["",f.k0.required]})}static#e=this.\u0275fac=function(Re){return new(Re||S)(i.rXU(P.uR),i.rXU(f.ze),i.rXU(N.nX),i.rXU(u.O))};static#t=this.\u0275cmp=i.VBU({type:S,selectors:[["sh-login-form"]],inputs:{forgotPasswordUrl:"forgotPasswordUrl"},decls:25,vars:31,consts:[["novalidate","",3,"ngSubmit","formGroup"],[1,"form-group","mb-6"],["data-qa","username"],["id","login-username","formControlName","username","name","username","type","text",3,"placeholder"],["data-qa","password"],[1,"d-flex","justify-content-between","align-items-baseline"],["class","link f-sm","data-qa","forgot-password","translate","",3,"href",4,"ngIf"],["id","login-password","formControlName","password","name","password",3,"trailingIconClick","trailingIcon","type","placeholder"],["class","text-red-500 text-end","data-qa","error",4,"ngIf"],[1,"d-flex","actions"],["type","submit","data-qa","submit",1,"btn","d-inline-flex","align-items-center","text-center","justify-content-center",3,"disabled","ngSwitch"],["translate","",4,"ngSwitchCase"],[4,"ngSwitchCase"],["data-qa","forgot-password","translate","",1,"link","f-sm",3,"href"],["data-qa","error",1,"text-red-500","text-end"],["translate",""],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(Re,he){1&Re&&(i.j41(0,"form",0),i.bIt("ngSubmit",function(){return he.onSubmit()}),i.j41(1,"div",1)(2,"shui-form-field",2)(3,"shui-label"),i.EFF(4),i.nI1(5,"translate"),i.k0s(),i.nrm(6,"shui-input",3),i.nI1(7,"translate"),i.k0s()(),i.j41(8,"div",1)(9,"shui-form-field",4)(10,"div",5)(11,"shui-label"),i.EFF(12),i.nI1(13,"translate"),i.k0s(),i.DNE(14,O,2,1,"a",6),i.k0s(),i.j41(15,"shui-input",7),i.nI1(16,"translate"),i.bIt("trailingIconClick",function(){return he.togglePasswordVisibility()}),i.k0s()()(),i.DNE(17,$,4,3,"div",8),i.nI1(18,"async"),i.j41(19,"div",9)(20,"button",10),i.nI1(21,"async"),i.nI1(22,"async"),i.DNE(23,X,2,0,"span",11)(24,Z,4,0,"ng-container",12),i.k0s()()()),2&Re&&(i.Y8G("formGroup",he.loginForm),i.R7$(4),i.JRh(i.bMT(5,13,"Username")),i.R7$(2),i.Y8G("placeholder",i.bMT(7,15,"Please provide your username")),i.R7$(6),i.JRh(i.bMT(13,17,"Password")),i.R7$(2),i.Y8G("ngIf",he.forgotPasswordUrl&&!he.isBackOffice),i.R7$(),i.Y8G("trailingIcon",he.isPasswordVisible?i.eq3(27,x,he.svgIconType.Solid):i.eq3(29,Q,he.svgIconType.Solid))("type",he.isPasswordVisible?"text":"password")("placeholder",i.bMT(16,19,"Please provide your password")),i.R7$(2),i.Y8G("ngIf",i.bMT(18,21,he.errorMessage$)),i.R7$(3),i.Y8G("disabled",!he.loginForm.valid||!0===i.bMT(21,23,he.isLoading$))("ngSwitch",i.bMT(22,25,he.isLoading$)),i.R7$(3),i.Y8G("ngSwitchCase",!1),i.R7$(),i.Y8G("ngSwitchCase",!0))},dependencies:[s.bT,s.ux,s.e1,I.KS,I.UF,A.Mm,I.Sj,f.qT,f.BC,f.cb,f.j4,f.JD,s.Jj,A.D9],styles:[".link[_ngcontent-%COMP%]{font-weight:500;color:#3873e1}.link[_ngcontent-%COMP%]:hover, .link[_ngcontent-%COMP%]:focus{color:#1e59c7}.link[_ngcontent-%COMP%]:active{color:#17459b}",".btn[_ngcontent-%COMP%]{flex-grow:1;width:100%;margin:0 1rem;background:var(--theme-color, #3873e1);color:#fff;border-radius:6px;font-weight:500;white-space:nowrap;border:1px solid var(--theme-color, #3873e1);font-size:.875rem;line-height:1.25rem;height:38px;padding:0 1rem}.btn[_ngcontent-%COMP%]:first-child{margin-left:0}.btn[_ngcontent-%COMP%]:last-child{margin-right:0}.btn[_ngcontent-%COMP%]:focus{outline:0;box-shadow:0 0 0 .2rem var(--theme-color-a-25, #3873e1)}.btn[_ngcontent-%COMP%]:disabled{background-color:#d1d5db;border:1px solid #d1d5db}.btn[_ngcontent-%COMP%]:not(:disabled):active{box-shadow:0 0 0 .2rem var(--theme-color-a-25, #3873e1);background-color:var(--theme-color-d-15, #1b4fb2);border:1px solid var(--theme-color-d-15, #1b4fb2)}.btn[_ngcontent-%COMP%]:not(:disabled):active:hover, .btn[_ngcontent-%COMP%]:not(:disabled):active:focus{box-shadow:0 0 0 .2rem var(--theme-color-a-25, #3873e1);background-color:var(--theme-color-d-10, #1e59c8);border:1px solid var(--theme-color-d-10, #1e59c8)}"],changeDetection:0})}return S})();var L=r(1091),Ce=r(72519),ce=r(60302);function me(S,ue){if(1&S&&(i.j41(0,"div",10)(1,"span",11),i.EFF(2,"No account?"),i.k0s(),i.j41(3,"a",12),i.EFF(4,"Contact us."),i.k0s()()),2&S){const d=i.XpG();i.R7$(3),i.Y8G("href",d.newRequestUrl,i.B4B)}}let _e=(()=>{class S{constructor(d,Re){this.env=d,this.i18nService=Re,this.fontSize=H.Z4,this.svgIconSize=H.D7,this.svgIconType=H.Oo}ngOnInit(){const d=this.i18nService.getCurrentLanguage().getValue(),he=[L.JA.English,L.JA.French,L.JA.German].includes(d.code)?d.code:L.JA.English;this.newRequestUrl=this.env.getProperty("NEW_REQUEST_URL"),this.forgotPasswordUrl=this.env.getProperty("FORGOT_PASSWORD_URL"),this.privacyPolicyLink=this.env.getProperty("PRIVACY_POLICY_URL")?.replace("<lang>",he)}openPrivatePolicy(){this.privacyPolicyLink&&window.open(this.privacyPolicyLink,"_blank")}static#e=this.\u0275fac=function(Re){return new(Re||S)(i.rXU(u.O),i.rXU(e.W4))};static#t=this.\u0275cmp=i.VBU({type:S,selectors:[["sh-login-page"]],decls:15,vars:20,consts:[[1,"content","d-flex","flex-column","align-items-center"],[1,"logo","mb-6",3,"longFormat"],["translate","",1,"title","text-center","f-3xl","fw-bold","mb-2"],["class","register f-sm d-flex align-items-center",4,"ngIf"],[1,"box","d-flex","flex-column","align-items-center","p-7","mt-7"],[1,"form",3,"forgotPasswordUrl"],[1,"w-100","d-flex","justify-content-center","align-items-center","mt-6"],["fontColor","gray-500","icon","lock-closed","iconColor","gray-500",1,"private-policy-link","px-2",3,"click","label","fontSize","iconSize","iconType"],["fontColor","gray-500","icon","shield-check","iconColor","gray-500",1,"gdpr-label","px-2",3,"label","fontSize","iconSize","iconType"],[1,"platform-status","mt-4"],[1,"register","f-sm","d-flex","align-items-center"],["translate","",1,"me-1"],["translate","",1,"link",3,"href"]],template:function(Re,he){1&Re&&(i.j41(0,"div",0),i.nrm(1,"sh-logo",1),i.j41(2,"h1",2),i.EFF(3,"Sign in to your account"),i.k0s(),i.DNE(4,me,5,1,"div",3),i.j41(5,"div",4),i.nrm(6,"sh-login-form",5),i.j41(7,"div",6)(8,"shui-icon-label",7),i.nI1(9,"translate"),i.nI1(10,"uppercase"),i.bIt("click",function(){return he.openPrivatePolicy()}),i.k0s(),i.nrm(11,"shui-icon-label",8),i.nI1(12,"translate"),i.nI1(13,"uppercase"),i.k0s()(),i.nrm(14,"sh-platform-status",9),i.k0s()),2&Re&&(i.R7$(),i.Y8G("longFormat",!0),i.R7$(3),i.Y8G("ngIf",he.newRequestUrl),i.R7$(2),i.Y8G("forgotPasswordUrl",he.forgotPasswordUrl),i.R7$(2),i.Y8G("label",i.bMT(10,14,i.bMT(9,12,"Privacy at Shippeo")))("fontSize",he.fontSize.Xsmall)("iconSize",he.svgIconSize.Xsmall)("iconType",he.svgIconType.Solid),i.BMQ("role",he.privacyPolicyLink?"button":null),i.R7$(3),i.Y8G("label",i.bMT(13,18,i.bMT(12,16,"GDPR compliant")))("fontSize",he.fontSize.Xsmall)("iconSize",he.svgIconSize.Xsmall)("iconType",he.svgIconType.Solid))},dependencies:[s.bT,A.Mm,I.P1,He,Ce.Z,ce.b,s.Pc,A.D9],styles:[".link[_ngcontent-%COMP%]{font-weight:500;color:#3873e1}.link[_ngcontent-%COMP%]:hover, .link[_ngcontent-%COMP%]:focus{color:#1e59c7}.link[_ngcontent-%COMP%]:active{color:#17459b}","[_nghost-%COMP%]{display:block;height:100vh;background-color:#f9fafb}.content[_ngcontent-%COMP%]{justify-content:center;height:100%;padding:2rem;background-color:#f9fafb}@media (max-width: 575.98px){.content[_ngcontent-%COMP%]{padding:2rem 0}}@media (max-height: 700px){.content[_ngcontent-%COMP%]{justify-content:flex-start;height:auto}}.logo[_ngcontent-%COMP%]{width:11.3rem}.title[_ngcontent-%COMP%]{font-weight:900;color:var(--theme-color, #111827)}.box[_ngcontent-%COMP%]{width:28rem;max-width:100%;background-color:#fff;border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}@media (max-width: 575.98px){.box[_ngcontent-%COMP%]{width:100%;border-radius:0}}.form[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}return S})();var Me=r(22867),Ge=r(63016),Ue=r(687),ze=r(67233),k=r(53071);function We(S,ue){if(1&S){const d=i.RV6();i.j41(0,"div",0)(1,"div",1),i.nrm(2,"sh-logo",2),i.k0s(),i.j41(3,"shui-button",3),i.bIt("click",function(){i.eBV(d);const he=i.XpG();return i.Njj(he.loginSso())}),i.j41(4,"span",4),i.EFF(5),i.nI1(6,"translate"),i.k0s()()()}2&S&&(i.R7$(2),i.Y8G("longFormat",!0),i.R7$(3),i.JRh(i.bMT(6,2,"Sign in")))}let ve=(()=>{class S{constructor(d,Re,he,oe,qe){this.oauthService=d,this.route=Re,this.environment=he,this.translateService=oe,this.featureFlagService=qe,this.buttonTheme=H.Ox,this.loginAuto=this.route.snapshot.queryParams.loginAuto,this.redirect=this.route.snapshot.queryParams.redirect,this.idpSelect=this.route.snapshot.params.idpSelect,this.loginHint=this.route.snapshot.params.loginHint,this.subscriptions=new C.yU}ngOnDestroy(){this.subscriptions.unsubscribe()}ngOnInit(){this.subscriptions.add(this.featureFlagService.updateMergeContext({custom:{loginHint:this.idpSelect}}).pipe((0,Me.n)(()=>this.route.data),(0,Me.n)(d=>d.checkFeatureFlag?this.featureFlagService.getFlagWithoutContextSnapshot(ze.TO.SsoCheckLoginHint):(0,Ge.of)(!0))).subscribe(d=>{d?(this.translateService.use(this.translateService.getBrowserLang()||this.translateService.getDefaultLang()),void 0===this.loginAuto&&this.loginSso()):window.location.href=this.environment.getProperty("API_CLIENT_URL")}))}loginSso(){this.idpSelect&&Ue.dB.setCookie({name:Ue.d5.SSO_LOGIN_HINT,value:this.idpSelect}),this.redirect&&Ue.dB.setCookie({name:Ue.d5.SSO_REDIRECT_URI,value:this.redirect}),this.oauthService.initCodeFlow("",this.setQueryParams())}setQueryParams(){const d={};return this.idpSelect&&(d.idp_select=this.idpSelect),this.loginHint&&(d.login_hint=this.loginHint),d}static#e=this.\u0275fac=function(Re){return new(Re||S)(i.rXU(k.TC),i.rXU(N.nX),i.rXU(u.O),i.rXU(A.c$),i.rXU(ze.y9))};static#t=this.\u0275cmp=i.VBU({type:S,selectors:[["ng-component"]],standalone:!0,features:[i.aNF],decls:1,vars:1,consts:[[1,"oauth-container","d-flex","flex-column","align-items-center","border","rounded-1"],[1,"logo-container"],[1,"logo","mb-6",3,"longFormat"],[1,"w-100","mt-4",3,"click"],["slot","label"]],template:function(Re,he){1&Re&&i.DNE(0,We,7,4,"div",0),2&Re&&i.vxM(he.loginAuto?0:-1)},dependencies:[I.tm,I.Qp,e.LP,A.D9,l.Ze],styles:[".oauth-container[_ngcontent-%COMP%]{border-top:5px solid var(--theme-color, var(--bs-shippeo-500))!important;padding:60px;min-width:350px;max-width:600px;margin:60px auto}.oauth-container[_ngcontent-%COMP%]   shui-button[_ngcontent-%COMP%]{--button-primary-bg-color: var(--theme-color, var(--bs-shippeo-500)) !important;--button-primary-border-color: var(--theme-color, var(--bs-shippeo-500));--button-primary-hover-bg-color: var(--theme-color, var(--bs-shippeo-600));--button-primary-hover-border-color: var(--theme-color, var(--bs-shippeo-600));--button-primary-focus-bg-color: var(--theme-color, var(--bs-shippeo-600));--button-primary-focus-border-color: var(--theme-color, var(--bs-shippeo-600));--button-primary-outline-color: var(--theme-color, var(--bs-shippeo-300));--button-primary-active-bg-color: var(--theme-color, var(--bs-shippeo-700))}.oauth-container[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{width:220px}"]})}return S})()},687:(fe,J,r)=>{"use strict";r.d(J,{d5:()=>s,dB:()=>e,wZ:()=>p,Rl:()=>N});const e=new class t{constructor(){this.DOMAIN_SLICE=-2,this.HOUR_IN_SECOND=3600,this.REMOVE_MAX_AGE_IN_HOUR=-24,this.getCookie=I=>{const l=new RegExp(`(?:^${I}|;\\s*${I})=(.*?)(?:;|$)`,"g").exec(document.cookie);return l?decodeURIComponent(l[1]):""},this.removeCookie=I=>{const b={name:I,maxAge:this.REMOVE_MAX_AGE_IN_HOUR*this.HOUR_IN_SECOND,value:""},l=this.hostname.split(".");do{this.setCookie({...b,domain:l.join(".")}),this.setCookie({...b,domain:`.${l.join(".")}`}),l.shift()}while(l.length)},this.setCookie=I=>{const b=`max-age=${I.maxAge||this.HOUR_IN_SECOND}`,l=I.path||"/",R=this.hostname.split(".").slice(this.DOMAIN_SLICE).join(".");document.cookie=`${I.name}=${I.value}; ${b}; path=${l}; domain=${I.domain||R}`}}get hostname(){return document.location.hostname}},o="shippeo:",s={ACTIVE_TAB_FILTERS:`${o}activeTabFilters`,ALGOLIA_ORDER_INDEX:`${o}algolia.order.index`,ALGOLIA_TOUR_INDEX:`${o}algolia.tour.index`,AUTH_TOKEN:`${o}auth.token`,CURRENT_USER_LANGUAGE:`${o}currentUser.lang`,LANGUAGE:`${o}language`,LOGOUT_URL:`${o}logout_url`,ORDER_DETAILS_NAVIGATION_IDS:`${o}orders.details.navigationIds`,ORDER_LIST_FILTER_OPEN_STATE:`${o}orderListFilterOpenState`,ORDER_STATE:`${o}orderState`,ORDER_TIMELINE_FILTER_CATEGORY:`${o}orderTimelineFilterCategory`,ORDER_TIMELINE_FILTER_EVENT:`${o}orderTimelineFilterEvent`,ORDER_TIMELINE_FILTER_PERIOD:`${o}orderTimelineFilterPeriod`,PAGE_STATE:`${o}pageState`,PAGINATOR_ITEMS_PER_PAGE:`${o}paginator.itemsPerPage`,PUBLIC_METRICS_SYSTEM:`${o}public.metrics.system`,SSO_LOGIN_HINT:`${o}ssoLoginHint`,SSO_REDIRECT_URI:`${o}ssoRedirectUri`,TOUR_DETAILS_NAVIGATION_IDS:`${o}tours.details.navigationIds`,TOUR_LIST_FILTER_OPEN_STATE:`${o}tourListFilterOpenState`,TOUR_STATE:`${o}tourState`,USER_ID:`${o}currentUser.id`},p=new class i{get userId(){return this.getItem(s.USER_ID)}set userId(I){this.setItem(s.USER_ID,I)}get token(){return this.getItem(s.AUTH_TOKEN)}set token(I){this.setItem(s.AUTH_TOKEN,I)}get language(){return this.getItem(s.LANGUAGE)}set language(I){this.setItem(s.LANGUAGE,I)}get orderState(){return this.getItem(s.ORDER_STATE)}set orderState(I){this.setItem(s.ORDER_STATE,I)}get tourState(){return this.getItem(s.TOUR_STATE)}set tourState(I){this.setItem(s.TOUR_STATE,I)}clear(){localStorage.clear()}removeItem(I){localStorage.removeItem(I)}getItem(I){const b=localStorage.getItem(I);if(b)try{return JSON.parse(b)}catch{return b}}setItem(I,b){localStorage.setItem(I,JSON.stringify(b))}},N=new class f{clear(){sessionStorage.clear()}removeItem(I){sessionStorage.removeItem(I)}getItem(I){const b=sessionStorage.getItem(I);if(b)try{return JSON.parse(b)}catch{return b}}setItem(I,b){sessionStorage.setItem(I,JSON.stringify(b))}updateJsonItem(I,b,l){const R=this.getItem(I)||{};R[b]=l,this.setItem(I,R)}getJsonItem(I,b){return(this.getItem(I)||{})[b]}}},30456:(fe,J,r)=>{"use strict";r.d(J,{s:()=>p});var t=r(27691),e=r(47947),o=r(12596),s=r(66162),i=r(48891);let p=(()=>{class f{constructor(A){this.apiService=A}getCsv(A,I,b,l,R){let v=new t.Nl;return l&&(v=v.set("filter[compatibility]",l)),R&&(v=v.set("filter[exportType]",R)),b&&Object.keys(b).forEach(E=>{v=v.set(E,b[E])}),this.apiService.getAsText(A,{headers:(new t.Lr).set("Accept",s.xJ.Csv),params:v}).pipe((0,e.T)(E=>(0,s.PE)(E,I)))}static#e=this.\u0275fac=function(I){return new(I||f)(i.KVO(o.Gf))};static#t=this.\u0275prov=i.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},18144:(fe,J,r)=>{"use strict";r.d(J,{C9:()=>ue,ML:()=>ve,r8:()=>L,IW:()=>Me,UA:()=>ze,H0:()=>Ge,ZM:()=>We,N:()=>V,xx:()=>z,gj:()=>Ue,BG:()=>P,tn:()=>He,VK:()=>_e});var t=r(31635),e=r(47817),o=r(36287);class s{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],s.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],s.prototype,"parameters",void 0);const i=(d,Re="")=>d.length?d[0].reduce((he,oe)=>he.concat(i(d.slice(1),Re?Re+" - "+oe:oe)),[]):Re;class p{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],p.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],p.prototype,"enum",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],p.prototype,"sortBy",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],p.prototype,"required",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],p.prototype,"properties",void 0);const N={Deserialize:d=>((d={})=>{const Re=[],he=d.required;if(d.properties){for(const oe of he)Re.push(d.properties[oe].enum);d.enum=i(Re)}return(0,e.Deserialize)(d,p)})(d)};class A{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],A.prototype,"title",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],A.prototype,"type",void 0),(0,t.Cg)([(0,e.deserializeAs)(N),(0,t.Sn)("design:type",p)],A.prototype,"items",void 0);var I,b,l,R,v,E,h,C,M,F,V=function(d){return d.BuildEvent="builtEvent",d.NotificationEvent="notificationEvent",d.OrderEvent="orderEvent",d.TourEvent="tourEvent",d.TCWEvent="TCWEvent",d}(V||{});class j{static#e=(I=V.BuildEvent,b=V.NotificationEvent,l=V.OrderEvent,R=V.TCWEvent,v=V.TourEvent)}(0,t.Cg)([(0,e.deserializeAs)(A),(0,t.Sn)("design:type",A)],j.prototype,I,void 0),(0,t.Cg)([(0,e.deserializeAs)(A),(0,t.Sn)("design:type",A)],j.prototype,b,void 0),(0,t.Cg)([(0,e.deserializeAs)(A),(0,t.Sn)("design:type",A)],j.prototype,l,void 0),(0,t.Cg)([(0,e.deserializeAs)(A),(0,t.Sn)("design:type",A)],j.prototype,R,void 0),(0,t.Cg)([(0,e.deserializeAs)(A),(0,t.Sn)("design:type",A)],j.prototype,v,void 0);class Y{static#e=(E=V.BuildEvent,h=V.NotificationEvent,C=V.OrderEvent,M=V.TourEvent,F=V.TCWEvent)}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Y.prototype,E,void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Y.prototype,h,void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Y.prototype,C,void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Y.prototype,M,void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Y.prototype,F,void 0);class a{hasId(){return!!this.id}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],a.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],a.prototype,"enable",void 0),(0,t.Cg)([(0,e.deserializeAs)(o.waC),(0,t.Sn)("design:type",o.waC)],a.prototype,"agency",void 0),(0,t.Cg)([(0,e.deserializeAs)(o.waC),(0,t.Sn)("design:type",o.waC)],a.prototype,"filterOwnerAgency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],a.prototype,"name",void 0),(0,t.Cg)([(0,e.deserializeAs)(s),(0,t.Sn)("design:type",s)],a.prototype,"messageFormat",void 0),(0,t.Cg)([(0,e.deserializeAs)(s),(0,t.Sn)("design:type",s)],a.prototype,"protocol",void 0),(0,t.Cg)([(0,e.deserializeAs)(Y),(0,t.Sn)("design:type",Y)],a.prototype,"triggerEvents",void 0),(0,t.Cg)([(0,e.deserializeAs)(Y),(0,t.Sn)("design:type",Y)],a.prototype,"triggerEventsByOthers",void 0);const P=(d={})=>(0,e.Deserialize)(d,a);var u=r(91167);const z=[{label:(0,u.x)("calva_fm_log.eventout.csv"),value:"calva_fm_log.eventout.csv"},{label:(0,u.x)("calva_xpo_kpl.eventout.csv"),value:"calva_xpo_kpl.eventout.csv"},{label:(0,u.x)("calva_xpo_trs.eventout.csv"),value:"calva_xpo_trs.eventout.csv"},{label:(0,u.x)("cocacola.tour.eventout.json"),value:"cocacola.tour.eventout.json"},{label:(0,u.x)("fm_log.pod.xml"),value:"fm_log.pod.xml"},{label:(0,u.x)("gatehouse.positionout.json"),value:"gatehouse.positionout.json"},{label:(0,u.x)("gedmouv.ordersout"),value:"gedmouv.ordersout"},{label:(0,u.x)("gtf.ordersout"),value:"gtf.ordersout"},{label:(0,u.x)("gtf.tourout"),value:"gtf.tourout"},{label:(0,u.x)("omp.orderout.json"),value:"omp.orderout.json"},{label:(0,u.x)("handling_unit.event_out"),value:"handling_unit.event_out"},{label:(0,u.x)("shippeo.orderout.json"),value:"shippeo.orderout.json"},{label:(0,u.x)("shippeo.order.ocean.eventout.json"),value:"shippeo.order.ocean.eventout.json"},{label:(0,u.x)("castorama.eventout.json"),value:"castorama.eventout.json"},{label:(0,u.x)("shippeo.eventout.json"),value:"shippeo.eventout.json"},{label:(0,u.x)("shippeo.tcw_eventout.json"),value:"shippeo.tcw_eventout.json"},{label:(0,u.x)("shippeo.positionout.json"),value:"shippeo.positionout.json"},{label:(0,u.x)("shippeo.send_file"),value:"shippeo.send_file"},{label:(0,u.x)("shippeo.sms"),value:"shippeo.sms"}],H={Deserialize(d){const Re=(0,e.Deserialize)(d),he=d?.items?.allOf||d?.allOf||[];return he.length&&(Re.properties=he.reduce((oe,qe)=>({...oe,...qe.properties}),{})),Re}};class x{}(0,t.Cg)([(0,e.deserializeAs)(H),(0,t.Sn)("design:type",Object)],x.prototype,"parameters",void 0);class Q{}(0,t.Cg)([(0,e.deserializeAs)(x),(0,t.Sn)("design:type",x)],Q.prototype,"properties",void 0),r(43134);class ${}(0,t.Cg)([(0,e.deserializeAs)(j),(0,t.Sn)("design:type",j)],$.prototype,"properties",void 0);class X{}(0,t.Cg)([(0,e.deserializeAs)(Q),(0,t.Sn)("design:type",Q)],X.prototype,"messageFormat",void 0),(0,t.Cg)([(0,e.deserializeAs)($),(0,t.Sn)("design:type",$)],X.prototype,"triggerEvents",void 0),(0,t.Cg)([(0,e.deserializeAs)($),(0,t.Sn)("design:type",$)],X.prototype,"triggerEventsByOthers",void 0);class Z{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Z.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Z.prototype,"title",void 0),(0,t.Cg)([(0,e.deserializeAs)(X),(0,t.Sn)("design:type",X)],Z.prototype,"properties",void 0);const He=(d={})=>(0,e.Deserialize)(d,Z),L=()=>({"Hostname or IP address of the FTP server":(0,u.x)("Hostname or IP address of the FTP server"),"Username to authenticate with the FTP server":(0,u.x)("Username to authenticate with the FTP server"),"Password to authenticate with the FTP server":(0,u.x)("Password to authenticate with the FTP server"),"Root directory on the FTP server":(0,u.x)("Root directory on the FTP server"),"Port number of the FTP server":(0,u.x)("Port number of the FTP server"),"The URI of the endpoint":(0,u.x)("The URI of the endpoint"),"The headers to be sent with the request":(0,u.x)("The headers to be sent with the request"),"Based on the configuration and the event, some protocol uri parameters must be provided.":(0,u.x)("Based on the configuration and the event, some protocol uri parameters must be provided."),"Ensure that the certificate file exists in Vault.":(0,u.x)("Ensure that the certificate file exists in Vault."),"Ensure that the certificate key file exists in Vault.":(0,u.x)("Ensure that the certificate key file exists in Vault."),"empty json":(0,u.x)("empty json"),"Either Password or private key passphrase is required":(0,u.x)("Either Password or private key passphrase is required")});var Ce=function(d){return d.CalvaHttpPost="calva.http.post",d.FilesystemToSftp="filesystem.to.sftp",d.FmPod="fm.pod",d.Ftp="ftp",d.GatehouseHttpPost="gatehouse.http.post",d.GedmouvSoap="gedmouv.soap",d.HttpPost="http.post",d.IdlHttpPost="idl.http.post",d.JwtHttpPost="jwt.http.post",d.Mqtt="mqtt",d.Oauth2HttpPost="oauth2.http.post",d.OmpHttpPost="omp.http.post",d.RmqSms="rmq.sms",d.Sftp="sftp",d.Soap="soap",d}(Ce||{});class me{}(0,t.Cg)([(0,e.deserializeAs)({Deserialize:d=>d.enum[0]}),(0,t.Sn)("design:type",String)],me.prototype,"name",void 0),(0,t.Cg)([(0,e.deserializeAs)(H),(0,t.Sn)("design:type",Object)],me.prototype,"parameters",void 0);const _e=(d={})=>(0,e.Deserialize)(d,me),Me=()=>({[Ce.CalvaHttpPost]:(0,u.x)("calva.http.post"),[Ce.FilesystemToSftp]:(0,u.x)("filesystem.to.sftp"),[Ce.FmPod]:(0,u.x)("fm.pod"),[Ce.Ftp]:(0,u.x)("ftp"),[Ce.GatehouseHttpPost]:(0,u.x)("gatehouse.http.post"),[Ce.GedmouvSoap]:(0,u.x)("gedmouv.soap"),[Ce.HttpPost]:(0,u.x)("http.post"),[Ce.IdlHttpPost]:(0,u.x)("idl.http.post"),[Ce.JwtHttpPost]:(0,u.x)("jwt.http.post"),[Ce.Mqtt]:(0,u.x)("mqtt"),[Ce.Oauth2HttpPost]:(0,u.x)("oauth2.http.post"),[Ce.OmpHttpPost]:(0,u.x)("omp.http.post"),[Ce.RmqSms]:(0,u.x)("rmq.sms"),[Ce.Sftp]:(0,u.x)("sftp"),[Ce.Soap]:(0,u.x)("soap")});var Ge=function(d){return d.Inactive="inactive",d.Active="active",d}(Ge||{}),Ue=function(d){return d.FLOW_TYPE_AGENCIES="Flow type and agencies",d.PROTOCOL="Protocol",d.TRIGGER_EVENT="Trigger event",d.CONFIGURATION="Configuration",d.REVIEW="Review",d}(Ue||{});const ze={[Ue.FLOW_TYPE_AGENCIES]:0,[Ue.PROTOCOL]:1,[Ue.TRIGGER_EVENT]:2,[Ue.CONFIGURATION]:3,[Ue.REVIEW]:4};var k=function(d){return d.AddTranshipment="ADD_TRANSHIPMENT",d.AlgoliaIndexation="ALGOLIA_INDEXATION",d.AlgoliaTourDelete="ALGOLIA_TOUR_DELETE",d.AlgoliaTourIndexation="ALGOLIA_TOUR_INDEXATION",d.AppointmentLoadTaken="APPOINTMENT_LOAD_TAKEN",d.AppointmentUnloadTaken="APPOINTMENT_UNLOAD_TAKEN",d.ArrLoad="ARR_LOAD",d.ArrUnload="ARR_UNLOAD",d.CalculatedDelayDrivingTowardSiteLoad="CALCULATED_DELAY_DRIVING_TOWARD_SITE_LOAD",d.CalculatedDelayDrivingTowardSiteUnload="CALCULATED_DELAY_DRIVING_TOWARD_SITE_UNLOAD",d.CalculatedEarlyDrivingTowardSiteLoad="CALCULATED_EARLY_DRIVING_TOWARD_SITE_LOAD",d.CalculatedEarlyDrivingTowardSiteUnload="CALCULATED_EARLY_DRIVING_TOWARD_SITE_UNLOAD",d.CancelOrder="CANCEL_ORDER",d.CarbonInformation="CARBON_INFORMATION",d.CheckOnDeliverySite="CHECK_ON_DELIVERY_SITE",d.CheckOnLoadingSite="CHECK_ON_LOADING_SITE",d.CheckTowardsDeliverySite="CHECK_TOWARDS_DELIVERY_SITE",d.CheckTowardsLoadingSite="CHECK_TOWARDS_LOADING_SITE",d.ClientModified="CLIENT_MODIFIED",d.CollaboratorAdded="COLLABORATOR_ADDED",d.ConLoad="CON_LOAD",d.ConUnload="CON_UNLOAD",d.ContainerAvailableForPickupAtDeliverySite="CONTAINER_AVAILABLE_FOR_PICKUP_AT_DELIVERY_SITE",d.ContainerAvailableForPickupAtLoadingSite="CONTAINER_AVAILABLE_FOR_PICKUP_AT_LOADING_SITE",d.ContainerEmptyGateInAtDeliverySite="CONTAINER_EMPTY_GATE_IN_AT_DELIVERY_SITE",d.ContainerEmptyGateOutAtLoadingSite="CONTAINER_EMPTY_GATE_OUT_AT_LOADING_SITE",d.ContainerFullGateInAtLoadingSite="CONTAINER_FULL_GATE_IN_AT_LOADING_SITE",d.ContainerFullGateOutAtDeliverySite="CONTAINER_FULL_GATE_OUT_AT_DELIVERY_SITE",d.ContainerLeftLoadingSite="CONTAINER_LEFT_LOADING_SITE",d.ContainerLoaded="CONTAINER_LOADED",d.ContainerLoadedTranshipment="CONTAINER_LOADED_TRANSHIPMENT",d.ContainerOnDeliverySite="CONTAINER_ON_DELIVERY_SITE",d.ContainerReleasedFromCustomsAtDeliverySite="CONTAINER_RELEASED_FROM_CUSTOMS_AT_DELIVERY_SITE",d.ContainerReleasedFromCustomsAtLoadingSite="CONTAINER_RELEASED_FROM_CUSTOMS_AT_LOADING_SITE",d.ContainerTrackingActivated="CONTAINER_TRACKING_ACTIVATED",d.ContainerUnloaded="CONTAINER_UNLOADED",d.ContainerUnloadedTranshipment="CONTAINER_UNLOADED_TRANSHIPMENT",d.DelayDrivingTowardSiteLoad="DELAY_DRIVING_TOWARD_SITE_LOAD",d.DelayDrivingTowardSiteUnload="DELAY_DRIVING_TOWARD_SITE_UNLOAD",d.DeliveryRefusedByShipperVariousReason="DELIVERY_REFUSED_BY_SHIPPER_VARIOUS_REASON",d.DeliverySiteNeverUsedBefore="DELIVERY_SITE_NEVER_USED_BEFORE",d.DriverConfirmed="DRIVER_CONFIRMED",d.DriverLeftUnload="DRIVER_LEFT_UNLOAD",d.DriverUnconfirmed="DRIVER_UNCONFIRMED",d.DrivingToLoad="DRIVING_TO_LOAD",d.DrivingToUnload="DRIVING_TO_UNLOAD",d.EtaDeliveryEarly="ETA_DELIVERY_EARLY",d.EtaDeliveryLate="ETA_DELIVERY_LATE",d.EtaDeliveryNone="ETA_DELIVERY_NONE",d.EtaDeliveryToleratedDelay="ETA_DELIVERY_TOLERATED_DELAY",d.EtaEvent="ETA_EVENT",d.EtaEventExternal="ETA_EVENT_EXTERNAL",d.EtaLoadEarly="ETA_LOAD_EARLY",d.EtaLoadLate="ETA_LOAD_LATE",d.EtaLoadNone="ETA_LOAD_NONE",d.EtaLoadToleratedDelay="ETA_LOAD_TOLERATED_DELAY",d.GoodsDeliveredNotConform="GOODS_DELIVERED_NOT_CONFORM",d.GoodsDeliveredNotCreatedAutomatically="GOODS_DELIVERED_NOT_CREATED_AUTOMATICALLY",d.GoodsLoadedNotConform="GOODS_LOADED_NOT_CONFORM",d.GoodsLoadedNotCreatedAutomatically="GOODS_LOADED_NOT_CREATED_AUTOMATICALLY",d.GpsDrivingToLoad="GPS_DRIVING_TO_LOAD",d.GpsDrivingToUnload="GPS_DRIVING_TO_UNLOAD",d.LeftLoadingSite="LEFT_LOADING_SITE",d.LoadingPostponed="LOADING_POSTPONED",d.LoadingRefusedByShipperVariousReason="LOADING_REFUSED_BY_SHIPPER_VARIOUS_REASON",d.LoadingSiteNeverUsedBefore="LOADING_SITE_NEVER_USED_BEFORE",d.LoadingWaitingToBeConfirmed="LOADING_WAITING_TO_BE_CONFIRMED",d.MobileConfigurationUpdated="MOBILE_CONFIGURATION_UPDATED",d.MobileTourSync="MOBILE_TOUR_SYNC",d.NewInternalComment="NEW_INTERNAL_COMMENT",d.NewPosition="NEW_POSITION",d.NewSharedComment="NEW_SHARED_COMMENT",d.NoDrivingTowardUnload="NO_DRIVING_TOWARD_UNLOAD",d.NoGpsDrivingToLoad="NO_GPS_DRIVING_TO_LOAD",d.NoGpsDrivingToUnload="NO_GPS_DRIVING_TO_UNLOAD",d.NoPositionOnSiteLoad="NO_POSITION_ON_SITE_LOAD",d.NoPositionOnSiteUnload="NO_POSITION_ON_SITE_UNLOAD",d.NotDrivingTowardLoad="NOT_DRIVING_TOWARD_LOAD",d.NotDrivingTowardLoadMobile="NOT_DRIVING_TOWARD_LOAD_MOBILE",d.OceanOrderExternalEtaDeliverySignificativeChangeAdded="OCEAN_ORDER_EXTERNAL_ETA_DELIVERY_SIGNIFICATIVE_CHANGE_ADDED",d.OnDeliverySiteNotCreatedAutomatically="ON_DELIVERY_SITE_NOT_CREATED_AUTOMATICALLY",d.OnLoadingSiteNotCreatedAutomatically="ON_LOADING_SITE_NOT_CREATED_AUTOMATICALLY",d.OrderActivityCloseDefinitively="ORDER_ACTIVITY_CLOSE_DEFINITIVELY",d.OrderActivityCreated="ORDER_ACTIVITY_CREATED",d.OrderAddedToATour="ORDER_ADDED_TO_A_TOUR",d.OrderArchived="ORDER_ARCHIVED",d.OrderAttributesModified="ORDER_ATTRIBUTES_MODIFIED",d.OrderBadPairingDetectedLive="ORDER_BAD_PAIRING_DETECTED_LIVE",d.OrderBadPairingDetectedPostTracking="ORDER_BAD_PAIRING_DETECTED_POST_TRACKING",d.OrderCmrUploaded="ORDER_CMR_UPLOADED",d.OrderCollaborationFinished="ORDER_COLLABORATION_FINISHED",d.OrderCommentDeleted="ORDER_COMMENT_DELETED",d.OrderConfirmed="ORDER_CONFIRMED",d.OrderContainerEmptyGateInAtDeliverySiteEstimated="ORDER_CONTAINER_EMPTY_GATE_IN_AT_DELIVERY_SITE_ESTIMATED",d.OrderContainerEmptyGateOutAtLoadingSiteEstimated="ORDER_CONTAINER_EMPTY_GATE_OUT_AT_LOADING_SITE_ESTIMATED",d.OrderContainerFullGateInAtLoadingSiteEstimated="ORDER_CONTAINER_FULL_GATE_IN_AT_LOADING_SITE_ESTIMATED",d.OrderContainerFullGateOutAtDeliverySiteEstimated="ORDER_CONTAINER_FULL_GATE_OUT_AT_DELIVERY_SITE_ESTIMATED",d.OrderContainerLeavingLoadingSiteEstimated="ORDER_CONTAINER_LEAVING_LOADING_SITE_ESTIMATED",d.OrderContainerLoadingEstimated="ORDER_CONTAINER_LOADING_ESTIMATED",d.OrderContainerLoadingTranshipmentEstimated="ORDER_CONTAINER_LOADING_TRANSHIPMENT_ESTIMATED",d.OrderContainerOnDeliverySiteEstimated="ORDER_CONTAINER_ON_DELIVERY_SITE_ESTIMATED",d.OrderContainerUnloadingEstimated="ORDER_CONTAINER_UNLOADING_ESTIMATED",d.OrderContainerUnloadingTranshipmentEstimated="ORDER_CONTAINER_UNLOADING_TRANSHIPMENT_ESTIMATED",d.OrderCreated="ORDER_CREATED",d.OrderCreatedAfterDeliveryPhase="ORDER_CREATED_AFTER_DELIVERY_PHASE",d.OrderCreatedAfterLoadingPhase="ORDER_CREATED_AFTER_LOADING_PHASE",d.OrderDeleted="ORDER_DELETED",d.OrderDeliveredNotConformDamage="ORDER_DELIVERED_NOT_CONFORM_DAMAGE",d.OrderDeliveredNotConformPartiallyMissing="ORDER_DELIVERED_NOT_CONFORM_PARTIALLY_MISSING",d.OrderDeliveryActivityEnded="ORDER_DELIVERY_ACTIVITY_END",d.OrderDeliveryActivityStart="ORDER_DELIVERY_ACTIVITY_START",d.OrderDeliveryCetaExposed="ORDER_DELIVERY_CETA_EXPOSED",d.OrderDeliveryConfirmationSkippedAfterDetectionOnSite="ORDER_DELIVERY_CONFIRMATION_SKIPPED_AFTER_DETECTION_ON_SITE",d.OrderDeliveryDeclarativelyEndedBeforeGps="ORDER_DELIVERY_DECLARATIVELY_ENDED_BEFORE_GPS",d.OrderDeliveryDeclarativelyEndedByCharteredBeforeGps="ORDER_DELIVERY_DECLARATIVELY_ENDED_BY_CHARTERED_BEFORE_GPS",d.OrderDeliveryDeclarativelyEndedByDriverBeforeGps="ORDER_DELIVERY_DECLARATIVELY_ENDED_BY_DRIVER_BEFORE_GPS",d.OrderDeliveryRefusedDamage="ORDER_DELIVERY_REFUSED_DAMAGE",d.OrderDeliveryRefusedLate="ORDER_DELIVERY_REFUSED_LATE",d.OrderDeliveryRefusedPartiallyMissing="ORDER_DELIVERY_REFUSED_PARTIALLY_MISSING",d.OrderDeliverySiteNotGeocodedAtRightLocation="ORDER_DELIVERY_SITE_NOT_GEOCODED_AT_RIGHT_LOCATION",d.OrderDeliverySiteUpdatedRecently="ORDER_DELIVERY_SITE_UPDATED_RECENTLY",d.OrderDeliveryStatusCompleted="ORDER_DELIVERY_STATUS_COMPLETED",d.OrderEcmrCompleted="ORDER_ECMR_COMPLETED",d.OrderEcmrCrated="ORDER_ECMR_CREATED",d.OrderEcmrUpdated="ORDER_ECMR_UPDATED",d.OrderExternalEtaAdded="ORDER_EXTERNAL_ETA_ADDED",d.OrderExternalTrackingClosed="ORDER_EXTERNAL_TRACKING_CLOSED",d.OrderExternalTrackingCreated="ORDER_EXTERNAL_TRACKING_CREATED",d.OrderExternalTrackingCreationRequested="ORDER_EXTERNAL_TRACKING_CREATION_REQUESTED",d.OrderFullIndexation="ORDER_FULL_INDEXATION",d.OrderGoodsDeliveredAndLeftDeliverySiteNotProvided="ORDER_GOODS_DELIVERED_AND_LEFT_DELIVERY_SITE_NOT_PROVIDED",d.OrderGoodsLoadedAndLeftLoadingSiteNotProvided="ORDER_GOODS_LOADED_AND_LEFT_LOADING_SITE_NOT_PROVIDED",d.OrderIsNotPairAlert="ORDER_IS_NOT_PAIR_ALERT",d.OrderIsPair="ORDER_IS_PAIR",d.OrderIsRefused="ORDER_IS_REFUSED",d.OrderIsUnchartered="ORDER_IS_UNCHARTERED",d.OrderIsUnpair="ORDER_IS_UNPAIR",d.OrderLeftDeliverySiteNotProvided="ORDER_LEFT_DELIVERY_SITE_NOT_PROVIDED",d.OrderLeftLoadingSiteNotProvided="ORDER_LEFT_LOADING_SITE_NOT_PROVIDED",d.OrderLoadedNotConformPartiallyMissing="ORDER_LOADED_NOT_CONFORM_PARTIALLY_MISSING",d.OrderLoadingActivityEnd="ORDER_LOADING_ACTIVITY_END",d.OrderLoadingActivityStart="ORDER_LOADING_ACTIVITY_START",d.OrderLoadingConfirmationSkippedAfterDetectionOnSite="ORDER_LOADING_CONFIRMATION_SKIPPED_AFTER_DETECTION_ON_SITE",d.OrderLoadingDeclarativelyEndedBeforeGps="ORDER_LOADING_DECLARATIVELY_ENDED_BEFORE_GPS",d.OrderLoadingDeclarativelyEndedByCharteredBeforeGps="ORDER_LOADING_DECLARATIVELY_ENDED_BY_CHARTERED_BEFORE_GPS",d.OrderLoadingDeclarativelyEndedByDriverBeforeGps="ORDER_LOADING_DECLARATIVELY_ENDED_BY_DRIVER_BEFORE_GPS",d.OrderLoadingSiteNotGeocodedAtRightLocation="ORDER_LOADING_SITE_NOT_GEOCODED_AT_RIGHT_LOCATION",d.OrderLoadingSiteUpdatedRecently="ORDER_LOADING_SITE_UPDATED_RECENTLY",d.OrderModified="ORDER_MODIFIED",d.OrderNeverChartered="ORDER_NEVER_CHARTERED",d.OrderNeverConfirmedByChartered="ORDER_NEVER_CONFIRMED_BY_CHARTERED",d.OrderNeverConfirmedByLastDriver="ORDER_NEVER_CONFIRMED_BY_LAST_DRIVER",d.OrderNeverPaired="ORDER_NEVER_PAIRED",d.OrderNotCharteredBeforeDeliverySlot="ORDER_NOT_CHARTERED_BEFORE_DELIVERY_SLOT",d.OrderNotCharteredBeforeLoadingSlot="ORDER_NOT_CHARTERED_BEFORE_LOADING_SLOT",d.OrderNotCharteredDueToUnknownCarrier="ORDER_NOT_CHARTERED_DUE_TO_UNKNOWN_CARRIER",d.OrderNotConfirmedByCharteredBeforeDeliverySlot="ORDER_NOT_CONFIRMED_BY_CHARTERED_BEFORE_DELIVERY_SLOT",d.OrderNotConfirmedByCharteredBeforeLoadingSlot="ORDER_NOT_CONFIRMED_BY_CHARTERED_BEFORE_LOADING_SLOT",d.OrderNotDeliveredAbsent="ORDER_NOT_DELIVERED_ABSENT",d.OrderNotDeliveredAddressObsolete="ORDER_NOT_DELIVERED_ADDRESS_OBSOLETE",d.OrderNotDeliveredClosedHolidaysInventory="ORDER_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY",d.OrderNotDeliveredClosingHours="ORDER_NOT_DELIVERED_CLOSING_HOURS",d.OrderNotDeliveredEntirelyMissing="ORDER_NOT_DELIVERED_ENTIRELY_MISSING",d.OrderNotDeliveredMissingReturnable="ORDER_NOT_DELIVERED_MISSING_RETURNABLE",d.OrderNotDeliveredNewAddress="ORDER_NOT_DELIVERED_NEW_ADDRESS",d.OrderNotDeliveredNoAccessToSite="ORDER_NOT_DELIVERED_NO_ACCESS_TO_SITE",d.OrderNotDeliveredNotice="ORDER_NOT_DELIVERED_NOTICE",d.OrderNotDeliveredReceiverCantPay="ORDER_NOT_DELIVERED_RECEIVER_CANT_PAY",d.OrderNotDeliveredResourceIncident="ORDER_NOT_DELIVERED_RESOURCE_INCIDENT",d.OrderNotDeliveredWrongGoods="ORDER_NOT_DELIVERED_WRONG_GOODS",d.OrderNotLoadedAbsent="ORDER_NOT_LOADED_ABSENT",d.OrderNotLoadedAddressObsolete="ORDER_NOT_LOADED_ADDRESS_OBSOLETE",d.OrderNotLoadedEntirelyMissing="ORDER_NOT_LOADED_ENTIRELY_MISSING",d.OrderNotLoadedNoAccessToSite="ORDER_NOT_LOADED_NO_ACCESS_TO_SITE",d.OrderNotLoadedPartiallyMissing="ORDER_NOT_LOADED_PARTIALLY_MISSING",d.OrderNotLoadedResourceIncident="ORDER_NOT_LOADED_RESOURCE_INCIDENT",d.OrderNotPairedBeforeDeliverySlot="ORDER_NOT_PAIRED_BEFORE_DELIVERY_SLOT",d.OrderNotPairedBeforeLoadingSlot="ORDER_NOT_PAIRED_BEFORE_LOADING_SLOT",d.OrderNotPairedDueToResourceWithUnknownTelematicConfiguration="ORDER_NOT_PAIRED_DUE_TO_RESOURCE_WITH_UNKNOWN_TELEMATIC_CONFIGURATION",d.OrderNotPairedDueToUnknownResource="ORDER_NOT_PAIRED_DUE_TO_UNKNOWN_RESOURCE",d.OrderOnDeliverySiteNotProvided="ORDER_ON_DELIVERY_SITE_NOT_PROVIDED",d.OrderOnLoadingSiteNotProvided="ORDER_ON_LOADING_SITE_NOT_PROVIDED",d.OrderPackingReturned="ORDER_PACKING_RETURNED",d.OrderPairedToDriverWithMobilePhoneGpsDisabledAtDelivery="ORDER_PAIRED_TO_DRIVER_WITH_MOBILE_PHONE_GPS_DISABLED_AT_DELIVERY",d.OrderPairedToDriverWithMobilePhoneGpsDisabledAtLoading="ORDER_PAIRED_TO_DRIVER_WITH_MOBILE_PHONE_GPS_DISABLED_AT_LOADING",d.OrderPairedToResourceButNoGpsPositionReceivedAtDelivery="ORDER_PAIRED_TO_RESOURCE_BUT_NO_GPS_POSITION_RECEIVED_AT_DELIVERY",d.OrderPairedToResourceButNoGpsPositionReceivedAtLoading="ORDER_PAIRED_TO_RESOURCE_BUT_NO_GPS_POSITION_RECEIVED_AT_LOADING",d.OrderPairedToResourceNeverPairedBefore="ORDER_PAIRED_TO_RESOURCE_NEVER_PAIRED_BEFORE",d.OrderPairedToResourceNotSendingPositions="ORDER_PAIRED_TO_RESOURCE_NOT_SENDING_POSITIONS",d.OrderPending="ORDER_PENDING",d.OrderPodFileRemoved="ORDER_POD_FILE_REMOVED",d.OrderPurchaseOrderItemsUpserted="ORDER_PURCHASE_ORDER_ITEMS_UPSERTED",d.OrderRemovedFromTour="ORDER_REMOVED_FROM_TOUR",d.OrderRequestForDeletion="ORDER_REQUEST_FOR_DELETION",d.OrderResourceEnteredDeliverySite="ORDER_RESOURCE_ENTERED_DELIVERY_SITE",d.OrderResourceEnteredLoadingSite="ORDER_RESOURCE_ENTERED_LOADING_SITE",d.OrderResourceEnteredMicroGeofence="ORDER_RESOURCE_ENTERED_MICRO_GEOFENCE",d.OrderResourceEnteredTranshipmentSite="ORDER_RESOURCE_ENTERED_TRANSHIPMENT_SITE",d.OrderResourceLeftDeliverySite="ORDER_RESOURCE_LEFT_DELIVERY_SITE",d.OrderResourceLeftLoadingSite="ORDER_RESOURCE_LEFT_LOADING_SITE",d.OrderResourceLeftMicroGeofence="ORDER_RESOURCE_LEFT_MICRO_GEOFENCE",d.OrderResourceLeftTranshipmentSite="ORDER_RESOURCE_LEFT_TRANSHIPMENT_SITE",d.OrderSequencedInTour="ORDER_SEQUENCED_IN_TOUR",d.OrderStateModified="ORDER_STATE_MODIFIED",d.OrderTowardsDeliverySiteNotProvided="ORDER_TOWARDS_DELIVERY_SITE_NOT_PROVIDED",d.OrderTowardsLoadingSiteNotProvided="ORDER_TOWARDS_LOADING_SITE_NOT_PROVIDED",d.OrderTrackingEnded="ORDER_TRACKING_ENDED",d.OrderTrackingReliabilityScoreModified="ORDER_TRACKING_RELIABILITY_SCORE_MODIFIED",d.OrderUnfinished="ORDER_UNFINISHED",d.OrderUserCollaborationFinished="ORDER_USER_COLLABORATION_FINISHED",d.OrderUserCollaborationStarted="ORDER_USER_COLLABORATION_STARTED",d.OrderValidatedTimeDelivery="ORDER_VALIDATED_TIME_DELIVERY",d.OrderVesselArrivalAtTranshipmentEstimated="ORDER_VESSEL_ARRIVAL_AT_TRANSHIPMENT_ESTIMATED",d.OrderVesselArrivedAtTranshipment="ORDER_VESSEL_ARRIVED_AT_TRANSHIPMENT",d.OrderVesselDepartedFromTranshipment="ORDER_VESSEL_DEPARTED_FROM_TRANSHIPMENT",d.OrderVesselDepartureFromTranshipmentEstimated="ORDER_VESSEL_DEPARTURE_FROM_TRANSHIPMENT_ESTIMATED",d.OrderWasNotConfirmedByDriverBeforeDeliverySlot="ORDER_WAS_NOT_CONFIRMED_BY_DRIVER_BEFORE_DELIVERY_SLOT",d.OrderWasNotConfirmedByDriverBeforeLoadingSlot="ORDER_WAS_NOT_CONFIRMED_BY_DRIVER_BEFORE_LOADING_SLOT",d.OrderWithDeclarativeArrivalAtLoadingBeforeGpsByChartered="ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_LOADING_BEFORE_GPS_BY_CHARTERED",d.OrderWithDeclarativeArrivalEventAtDeliveryBeforeGps="ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_DELIVERY_BEFORE_GPS",d.OrderWithDeclarativeArrivalEventAtDeliveryBeforeGpsByChartered="ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_DELIVERY_BEFORE_GPS_BY_CHARTERED",d.OrderWithDeclarativeArrivalEventAtDeliveryBeforeGpsByDriver="ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_DELIVERY_BEFORE_GPS_BY_DRIVER",d.OrderWithDeclarativeArrivalEventAtLoadingBeforeGps="ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_LOADING_BEFORE_GPS",d.OrderWithDeclarativeArrivalEventAtLoadingBeforeGpsByDriver="ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_LOADING_BEFORE_GPS_BY_DRIVER",d.OrderWithNoGpsPositionsDuringActivity="ORDER_WITH_NO_GPS_POSITIONS_DURING_ACTIVITY",d.OrderWithNotEnoughGpsPositionsToTriggerDeliveryConfirmation="ORDER_WITH_NOT_ENOUGH_GPS_POSITIONS_TO_TRIGGER_DELIVERY_CONFIRMATION",d.OrderWithNotEnoughGpsPositionsToTriggerLoadingConfirmation="ORDER_WITH_NOT_ENOUGH_GPS_POSITIONS_TO_TRIGGER_LOADING_CONFIRMATION",d.PodAdded="POD_ADDED",d.PushNoDeliveryRightAfterOnSite="PUSH_NO_DELIVERY_RIGHT_AFTER_ON_SITE",d.PushNoLoadingRightAfterOnSite="PUSH_NO_LOADING_RIGHT_AFTER_ON_SITE",d.RefusedLoad="REFUSED_LOAD",d.RefusedUnload="REFUSED_UNLOAD",d.RemoveTranshipment="REMOVE_TRANSHIPMENT",d.ResourceNotGeolocatedRecently="RESOURCE_NOT_GEOLOCATED_RECENTLY",d.SkipDeliveryPhase="SKIP_DELIVERY_PHASE",d.SkipLoadingPhase="SKIP_LOADING_PHASE",d.StopCheckTowardsDeliverySite="STOP_CHECK_TOWARDS_DELIVERY_SITE",d.StopCheckTowardsLoadingSite="STOP_CHECK_TOWARDS_LOADING_SITE",d.TagModified="TAG_MODIFIED",d.TheoreticalDistance="THEORETICAL_DISTANCE",d.TourAlgoliaAccumulationIndexation="TOUR_ALGOLIA_ACCUMULATION_INDEXATION",d.TourModified="TOUR_MODIFIED",d.TourOutCancelOrder="TOUR_OUT_CANCEL_ORDER",d.TourOutOrderAddedToATour="TOUR_OUT_ORDER_ADDED_TO_A_TOUR",d.TourOutOrderIsUncharted="TOUR_OUT_ORDER_IS_UNCHARTERED",d.TourOutOrderModified="TOUR_OUT_ORDER_MODIFIED",d.TourOutOrderRemovedFromTour="TOUR_OUT_ORDER_REMOVED_FROM_TOUR",d.TourOutTourChartered="TOUR_OUT_TOUR_CHARTERED",d.TourOutTourPaired="TOUR_OUT_TOUR_PAIRED",d.TourOutTourUnpaired="TOUR_OUT_TOUR_UNPAIRED",d.TowardsDeliverySiteToBeDoneLater="TOWARDS_DELIVERY_SITE_TO_BE_DONE_LATER",d.TowardsLoadingSiteAbandoned="TOWARDS_LOADING_SITE_ABANDONED",d.UnloadingPostponed="UNLOADING_POSTPONED",d.UnloadingWiaitingToBeConfirmed="UNLOADING_WAITING_TO_BE_CONFIRMED",d}(k||{}),We=function(d){return d.TriggerEvents="TRIGGER_EVENTS",d.TriggerEventsByOthers="TRIGGER_EVENTS_BY_OTHERS",d}(We||{});const ve=()=>({[k.AddTranshipment]:(0,u.x)("ADD_TRANSHIPMENT"),[k.AlgoliaIndexation]:(0,u.x)("ALGOLIA_INDEXATION"),[k.AlgoliaTourDelete]:(0,u.x)("ALGOLIA_TOUR_DELETE"),[k.AlgoliaTourIndexation]:(0,u.x)("ALGOLIA_TOUR_INDEXATION"),[k.AppointmentLoadTaken]:(0,u.x)("APPOINTMENT_LOAD_TAKEN"),[k.AppointmentUnloadTaken]:(0,u.x)("APPOINTMENT_UNLOAD_TAKEN"),[k.ArrLoad]:(0,u.x)("ARR_LOAD"),[k.ArrUnload]:(0,u.x)("ARR_UNLOAD"),[k.CalculatedDelayDrivingTowardSiteLoad]:(0,u.x)("CALCULATED_DELAY_DRIVING_TOWARD_SITE_LOAD"),[k.CalculatedDelayDrivingTowardSiteUnload]:(0,u.x)("CALCULATED_DELAY_DRIVING_TOWARD_SITE_UNLOAD"),[k.CalculatedEarlyDrivingTowardSiteLoad]:(0,u.x)("CALCULATED_EARLY_DRIVING_TOWARD_SITE_LOAD"),[k.CalculatedEarlyDrivingTowardSiteUnload]:(0,u.x)("CALCULATED_EARLY_DRIVING_TOWARD_SITE_UNLOAD"),[k.CancelOrder]:(0,u.x)("CANCEL_ORDER"),[k.CarbonInformation]:(0,u.x)("CARBON_INFORMATION"),[k.CheckOnDeliverySite]:(0,u.x)("CHECK_ON_DELIVERY_SITE"),[k.CheckOnLoadingSite]:(0,u.x)("CHECK_ON_LOADING_SITE"),[k.CheckTowardsDeliverySite]:(0,u.x)("CHECK_TOWARDS_DELIVERY_SITE"),[k.CheckTowardsLoadingSite]:(0,u.x)("CHECK_TOWARDS_LOADING_SITE"),[k.ClientModified]:(0,u.x)("CLIENT_MODIFIED"),[k.CollaboratorAdded]:(0,u.x)("COLLABORATOR_ADDED"),[k.ConLoad]:(0,u.x)("CON_LOAD"),[k.ConUnload]:(0,u.x)("CON_UNLOAD"),[k.ContainerAvailableForPickupAtDeliverySite]:(0,u.x)("CONTAINER_AVAILABLE_FOR_PICKUP_AT_DELIVERY_SITE"),[k.ContainerAvailableForPickupAtLoadingSite]:(0,u.x)("CONTAINER_AVAILABLE_FOR_PICKUP_AT_LOADING_SITE"),[k.ContainerEmptyGateInAtDeliverySite]:(0,u.x)("CONTAINER_EMPTY_GATE_IN_AT_DELIVERY_SITE"),[k.ContainerEmptyGateOutAtLoadingSite]:(0,u.x)("CONTAINER_EMPTY_GATE_OUT_AT_LOADING_SITE"),[k.ContainerFullGateInAtLoadingSite]:(0,u.x)("CONTAINER_FULL_GATE_IN_AT_LOADING_SITE"),[k.ContainerFullGateOutAtDeliverySite]:(0,u.x)("CONTAINER_FULL_GATE_OUT_AT_DELIVERY_SITE"),[k.ContainerLeftLoadingSite]:(0,u.x)("CONTAINER_LEFT_LOADING_SITE"),[k.ContainerLoaded]:(0,u.x)("CONTAINER_LOADED"),[k.ContainerLoadedTranshipment]:(0,u.x)("CONTAINER_LOADED_TRANSHIPMENT"),[k.ContainerOnDeliverySite]:(0,u.x)("CONTAINER_ON_DELIVERY_SITE"),[k.ContainerReleasedFromCustomsAtDeliverySite]:(0,u.x)("CONTAINER_RELEASED_FROM_CUSTOMS_AT_DELIVERY_SITE"),[k.ContainerReleasedFromCustomsAtLoadingSite]:(0,u.x)("CONTAINER_RELEASED_FROM_CUSTOMS_AT_LOADING_SITE"),[k.ContainerTrackingActivated]:(0,u.x)("CONTAINER_TRACKING_ACTIVATED"),[k.ContainerUnloaded]:(0,u.x)("CONTAINER_UNLOADED"),[k.ContainerUnloadedTranshipment]:(0,u.x)("CONTAINER_UNLOADED_TRANSHIPMENT"),[k.DelayDrivingTowardSiteLoad]:(0,u.x)("DELAY_DRIVING_TOWARD_SITE_LOAD"),[k.DelayDrivingTowardSiteUnload]:(0,u.x)("DELAY_DRIVING_TOWARD_SITE_UNLOAD"),[k.DeliveryRefusedByShipperVariousReason]:(0,u.x)("DELIVERY_REFUSED_BY_SHIPPER_VARIOUS_REASON"),[k.DeliverySiteNeverUsedBefore]:(0,u.x)("DELIVERY_SITE_NEVER_USED_BEFORE"),[k.DriverConfirmed]:(0,u.x)("DRIVER_CONFIRMED"),[k.DriverLeftUnload]:(0,u.x)("DRIVER_LEFT_UNLOAD"),[k.DriverUnconfirmed]:(0,u.x)("DRIVER_UNCONFIRMED"),[k.DrivingToLoad]:(0,u.x)("DRIVING_TO_LOAD"),[k.DrivingToUnload]:(0,u.x)("DRIVING_TO_UNLOAD"),[k.EtaDeliveryEarly]:(0,u.x)("ETA_DELIVERY_EARLY"),[k.EtaDeliveryLate]:(0,u.x)("ETA_DELIVERY_LATE"),[k.EtaDeliveryNone]:(0,u.x)("ETA_DELIVERY_NONE"),[k.EtaDeliveryToleratedDelay]:(0,u.x)("ETA_DELIVERY_TOLERATED_DELAY"),[k.EtaEvent]:(0,u.x)("ETA_EVENT"),[k.EtaEventExternal]:(0,u.x)("ETA_EVENT_EXTERNAL"),[k.EtaLoadEarly]:(0,u.x)("ETA_LOAD_EARLY"),[k.EtaLoadLate]:(0,u.x)("ETA_LOAD_LATE"),[k.EtaLoadNone]:(0,u.x)("ETA_LOAD_NONE"),[k.EtaLoadToleratedDelay]:(0,u.x)("ETA_LOAD_TOLERATED_DELAY"),[k.GoodsDeliveredNotConform]:(0,u.x)("GOODS_DELIVERED_NOT_CONFORM"),[k.GoodsDeliveredNotCreatedAutomatically]:(0,u.x)("GOODS_DELIVERED_NOT_CREATED_AUTOMATICALLY"),[k.GoodsLoadedNotConform]:(0,u.x)("GOODS_LOADED_NOT_CONFORM"),[k.GoodsLoadedNotCreatedAutomatically]:(0,u.x)("GOODS_LOADED_NOT_CREATED_AUTOMATICALLY"),[k.GpsDrivingToLoad]:(0,u.x)("GPS_DRIVING_TO_LOAD"),[k.GpsDrivingToUnload]:(0,u.x)("GPS_DRIVING_TO_UNLOAD"),[k.LeftLoadingSite]:(0,u.x)("LEFT_LOADING_SITE"),[k.LoadingPostponed]:(0,u.x)("LOADING_POSTPONED"),[k.LoadingRefusedByShipperVariousReason]:(0,u.x)("LOADING_REFUSED_BY_SHIPPER_VARIOUS_REASON"),[k.LoadingSiteNeverUsedBefore]:(0,u.x)("LOADING_SITE_NEVER_USED_BEFORE"),[k.LoadingWaitingToBeConfirmed]:(0,u.x)("LOADING_WAITING_TO_BE_CONFIRMED"),[k.MobileConfigurationUpdated]:(0,u.x)("MOBILE_CONFIGURATION_UPDATED"),[k.MobileTourSync]:(0,u.x)("MOBILE_TOUR_SYNC"),[k.NewInternalComment]:(0,u.x)("NEW_INTERNAL_COMMENT"),[k.NewPosition]:(0,u.x)("NEW_POSITION"),[k.NewSharedComment]:(0,u.x)("NEW_SHARED_COMMENT"),[k.NoDrivingTowardUnload]:(0,u.x)("NO_DRIVING_TOWARD_UNLOAD"),[k.NoGpsDrivingToLoad]:(0,u.x)("NO_GPS_DRIVING_TO_LOAD"),[k.NoGpsDrivingToUnload]:(0,u.x)("NO_GPS_DRIVING_TO_UNLOAD"),[k.NoPositionOnSiteLoad]:(0,u.x)("NO_POSITION_ON_SITE_LOAD"),[k.NoPositionOnSiteUnload]:(0,u.x)("NO_POSITION_ON_SITE_UNLOAD"),[k.NotDrivingTowardLoad]:(0,u.x)("NotDrivingTowardLoad"),[k.NotDrivingTowardLoadMobile]:(0,u.x)("NotDrivingTowardLoadMobile"),[k.OceanOrderExternalEtaDeliverySignificativeChangeAdded]:(0,u.x)("OCEAN_ORDER_EXTERNAL_ETA_DELIVERY_SIGNIFICATIVE_CHANGE_ADDED"),[k.OnDeliverySiteNotCreatedAutomatically]:(0,u.x)("ON_DELIVERY_SITE_NOT_CREATED_AUTOMATICALLY"),[k.OnLoadingSiteNotCreatedAutomatically]:(0,u.x)("ON_LOADING_SITE_NOT_CREATED_AUTOMATICALLY"),[k.OrderActivityCloseDefinitively]:(0,u.x)("ORDER_ACTIVITY_CLOSE_DEFINITIVELY"),[k.OrderActivityCreated]:(0,u.x)("ORDER_ACTIVITY_CREATED"),[k.OrderAddedToATour]:(0,u.x)("ORDER_ADDED_TO_A_TOUR"),[k.OrderArchived]:(0,u.x)("ORDER_ARCHIVED"),[k.OrderAttributesModified]:(0,u.x)("ORDER_ATTRIBUTES_MODIFIED"),[k.OrderBadPairingDetectedLive]:(0,u.x)("ORDER_BAD_PAIRING_DETECTED_LIVE"),[k.OrderBadPairingDetectedPostTracking]:(0,u.x)("ORDER_BAD_PAIRING_DETECTED_POST_TRACKING"),[k.OrderCmrUploaded]:(0,u.x)("ORDER_CMR_UPLOADED"),[k.OrderCollaborationFinished]:(0,u.x)("ORDER_COLLABORATION_FINISHED"),[k.OrderCommentDeleted]:(0,u.x)("ORDER_COMMENT_DELETED"),[k.OrderConfirmed]:(0,u.x)("ORDER_CONFIRMED"),[k.OrderContainerEmptyGateInAtDeliverySiteEstimated]:(0,u.x)("ORDER_CONTAINER_EMPTY_GATE_IN_AT_DELIVERY_SITE_ESTIMATED"),[k.OrderContainerEmptyGateOutAtLoadingSiteEstimated]:(0,u.x)("ORDER_CONTAINER_EMPTY_GATE_OUT_AT_LOADING_SITE_ESTIMATED"),[k.OrderContainerFullGateInAtLoadingSiteEstimated]:(0,u.x)("ORDER_CONTAINER_FULL_GATE_IN_AT_LOADING_SITE_ESTIMATED"),[k.OrderContainerFullGateOutAtDeliverySiteEstimated]:(0,u.x)("ORDER_CONTAINER_FULL_GATE_OUT_AT_DELIVERY_SITE_ESTIMATED"),[k.OrderContainerLeavingLoadingSiteEstimated]:(0,u.x)("ORDER_CONTAINER_LEAVING_LOADING_SITE_ESTIMATED"),[k.OrderContainerLoadingEstimated]:(0,u.x)("ORDER_CONTAINER_LOADING_ESTIMATED"),[k.OrderContainerLoadingTranshipmentEstimated]:(0,u.x)("ORDER_CONTAINER_LOADING_TRANSHIPMENT_ESTIMATED"),[k.OrderContainerOnDeliverySiteEstimated]:(0,u.x)("ORDER_CONTAINER_ON_DELIVERY_SITE_ESTIMATED"),[k.OrderContainerUnloadingEstimated]:(0,u.x)("ORDER_CONTAINER_UNLOADING_ESTIMATED"),[k.OrderContainerUnloadingTranshipmentEstimated]:(0,u.x)("ORDER_CONTAINER_UNLOADING_TRANSHIPMENT_ESTIMATED"),[k.OrderCreated]:(0,u.x)("ORDER_CREATED"),[k.OrderCreatedAfterDeliveryPhase]:(0,u.x)("ORDER_CREATED_AFTER_DELIVERY_PHASE"),[k.OrderCreatedAfterLoadingPhase]:(0,u.x)("ORDER_CREATED_AFTER_LOADING_PHASE"),[k.OrderDeleted]:(0,u.x)("ORDER_DELETED"),[k.OrderDeliveredNotConformDamage]:(0,u.x)("ORDER_DELIVERED_NOT_CONFORM_DAMAGE"),[k.OrderDeliveredNotConformPartiallyMissing]:(0,u.x)("ORDER_DELIVERED_NOT_CONFORM_PARTIALLY_MISSING"),[k.OrderDeliveryActivityEnded]:(0,u.x)("ORDER_DELIVERY_ACTIVITY_END"),[k.OrderDeliveryActivityStart]:(0,u.x)("ORDER_DELIVERY_ACTIVITY_START"),[k.OrderDeliveryCetaExposed]:(0,u.x)("ORDER_DELIVERY_CETA_EXPOSED"),[k.OrderDeliveryConfirmationSkippedAfterDetectionOnSite]:(0,u.x)("ORDER_DELIVERY_CONFIRMATION_SKIPPED_AFTER_DETECTION_ON_SITE"),[k.OrderDeliveryDeclarativelyEndedBeforeGps]:(0,u.x)("ORDER_DELIVERY_DECLARATIVELY_ENDED_BEFORE_GPS"),[k.OrderDeliveryDeclarativelyEndedByCharteredBeforeGps]:(0,u.x)("ORDER_DELIVERY_DECLARATIVELY_ENDED_BY_CHARTERED_BEFORE_GPS"),[k.OrderDeliveryDeclarativelyEndedByDriverBeforeGps]:(0,u.x)("ORDER_DELIVERY_DECLARATIVELY_ENDED_BY_DRIVER_BEFORE_GPS"),[k.OrderDeliveryRefusedDamage]:(0,u.x)("ORDER_DELIVERY_REFUSED_DAMAGE"),[k.OrderDeliveryRefusedLate]:(0,u.x)("ORDER_DELIVERY_REFUSED_LATE"),[k.OrderDeliveryRefusedPartiallyMissing]:(0,u.x)("ORDER_DELIVERY_REFUSED_PARTIALLY_MISSING"),[k.OrderDeliverySiteNotGeocodedAtRightLocation]:(0,u.x)("ORDER_DELIVERY_SITE_NOT_GEOCODED_AT_RIGHT_LOCATION"),[k.OrderDeliverySiteUpdatedRecently]:(0,u.x)("ORDER_DELIVERY_SITE_UPDATED_RECENTLY"),[k.OrderDeliveryStatusCompleted]:(0,u.x)("ORDER_DELIVERY_STATUS_COMPLETED"),[k.OrderEcmrCompleted]:(0,u.x)("ORDER_ECMR_COMPLETED"),[k.OrderEcmrCrated]:(0,u.x)("ORDER_ECMR_CREATED"),[k.OrderEcmrUpdated]:(0,u.x)("ORDER_ECMR_UPDATED"),[k.OrderExternalEtaAdded]:(0,u.x)("ORDER_EXTERNAL_ETA_ADDED"),[k.OrderExternalTrackingClosed]:(0,u.x)("ORDER_EXTERNAL_TRACKING_CLOSED"),[k.OrderExternalTrackingCreated]:(0,u.x)("ORDER_EXTERNAL_TRACKING_CREATED"),[k.OrderExternalTrackingCreationRequested]:(0,u.x)("ORDER_EXTERNAL_TRACKING_CREATION_REQUESTED"),[k.OrderFullIndexation]:(0,u.x)("ORDER_FULL_INDEXATION"),[k.OrderGoodsDeliveredAndLeftDeliverySiteNotProvided]:(0,u.x)("ORDER_GOODS_DELIVERED_AND_LEFT_DELIVERY_SITE_NOT_PROVIDED"),[k.OrderGoodsLoadedAndLeftLoadingSiteNotProvided]:(0,u.x)("ORDER_GOODS_LOADED_AND_LEFT_LOADING_SITE_NOT_PROVIDED"),[k.OrderIsNotPairAlert]:(0,u.x)("ORDER_IS_NOT_PAIR_ALERT"),[k.OrderIsPair]:(0,u.x)("ORDER_IS_PAIR"),[k.OrderIsRefused]:(0,u.x)("ORDER_IS_REFUSED"),[k.OrderIsUnchartered]:(0,u.x)("ORDER_IS_UNCHARTERED"),[k.OrderIsUnpair]:(0,u.x)("ORDER_IS_UNPAIR"),[k.OrderLeftDeliverySiteNotProvided]:(0,u.x)("ORDER_LEFT_DELIVERY_SITE_NOT_PROVIDED"),[k.OrderLeftLoadingSiteNotProvided]:(0,u.x)("ORDER_LEFT_LOADING_SITE_NOT_PROVIDED"),[k.OrderLoadedNotConformPartiallyMissing]:(0,u.x)("ORDER_LOADED_NOT_CONFORM_PARTIALLY_MISSING"),[k.OrderLoadingActivityEnd]:(0,u.x)("ORDER_LOADING_ACTIVITY_END"),[k.OrderLoadingActivityStart]:(0,u.x)("ORDER_LOADING_ACTIVITY_START"),[k.OrderLoadingConfirmationSkippedAfterDetectionOnSite]:(0,u.x)("ORDER_LOADING_CONFIRMATION_SKIPPED_AFTER_DETECTION_ON_SITE"),[k.OrderLoadingDeclarativelyEndedBeforeGps]:(0,u.x)("ORDER_LOADING_DECLARATIVELY_ENDED_BEFORE_GPS"),[k.OrderLoadingDeclarativelyEndedByCharteredBeforeGps]:(0,u.x)("ORDER_LOADING_DECLARATIVELY_ENDED_BY_CHARTERED_BEFORE_GPS"),[k.OrderLoadingDeclarativelyEndedByDriverBeforeGps]:(0,u.x)("ORDER_LOADING_DECLARATIVELY_ENDED_BY_DRIVER_BEFORE_GPS"),[k.OrderLoadingSiteNotGeocodedAtRightLocation]:(0,u.x)("ORDER_LOADING_SITE_NOT_GEOCODED_AT_RIGHT_LOCATION"),[k.OrderLoadingSiteUpdatedRecently]:(0,u.x)("ORDER_LOADING_SITE_UPDATED_RECENTLY"),[k.OrderModified]:(0,u.x)("ORDER_MODIFIED"),[k.OrderNeverChartered]:(0,u.x)("ORDER_NEVER_CHARTERED"),[k.OrderNeverConfirmedByChartered]:(0,u.x)("ORDER_NEVER_CONFIRMED_BY_CHARTERED"),[k.OrderNeverConfirmedByLastDriver]:(0,u.x)("ORDER_NEVER_CONFIRMED_BY_LAST_DRIVER"),[k.OrderNeverPaired]:(0,u.x)("ORDER_NEVER_PAIRED"),[k.OrderNotCharteredBeforeDeliverySlot]:(0,u.x)("ORDER_NOT_CHARTERED_BEFORE_DELIVERY_SLOT"),[k.OrderNotCharteredBeforeLoadingSlot]:(0,u.x)("ORDER_NOT_CHARTERED_BEFORE_LOADING_SLOT"),[k.OrderNotCharteredDueToUnknownCarrier]:(0,u.x)("ORDER_NOT_CHARTERED_DUE_TO_UNKNOWN_CARRIER"),[k.OrderNotConfirmedByCharteredBeforeDeliverySlot]:(0,u.x)("ORDER_NOT_CONFIRMED_BY_CHARTERED_BEFORE_DELIVERY_SLOT"),[k.OrderNotConfirmedByCharteredBeforeLoadingSlot]:(0,u.x)("ORDER_NOT_CONFIRMED_BY_CHARTERED_BEFORE_LOADING_SLOT"),[k.OrderNotDeliveredAbsent]:(0,u.x)("ORDER_NOT_DELIVERED_ABSENT"),[k.OrderNotDeliveredAddressObsolete]:(0,u.x)("ORDER_NOT_DELIVERED_ADDRESS_OBSOLETE"),[k.OrderNotDeliveredClosedHolidaysInventory]:(0,u.x)("ORDER_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY"),[k.OrderNotDeliveredClosingHours]:(0,u.x)("ORDER_NOT_DELIVERED_CLOSING_HOURS"),[k.OrderNotDeliveredEntirelyMissing]:(0,u.x)("ORDER_NOT_DELIVERED_ENTIRELY_MISSING"),[k.OrderNotDeliveredMissingReturnable]:(0,u.x)("ORDER_NOT_DELIVERED_MISSING_RETURNABLE"),[k.OrderNotDeliveredNewAddress]:(0,u.x)("ORDER_NOT_DELIVERED_NEW_ADDRESS"),[k.OrderNotDeliveredNoAccessToSite]:(0,u.x)("ORDER_NOT_DELIVERED_NO_ACCESS_TO_SITE"),[k.OrderNotDeliveredNotice]:(0,u.x)("ORDER_NOT_DELIVERED_NOTICE"),[k.OrderNotDeliveredReceiverCantPay]:(0,u.x)("ORDER_NOT_DELIVERED_RECEIVER_CANT_PAY"),[k.OrderNotDeliveredResourceIncident]:(0,u.x)("ORDER_NOT_DELIVERED_RESOURCE_INCIDENT"),[k.OrderNotDeliveredWrongGoods]:(0,u.x)("ORDER_NOT_DELIVERED_WRONG_GOODS"),[k.OrderNotLoadedAbsent]:(0,u.x)("ORDER_NOT_LOADED_ABSENT"),[k.OrderNotLoadedAddressObsolete]:(0,u.x)("ORDER_NOT_LOADED_ADDRESS_OBSOLETE"),[k.OrderNotLoadedEntirelyMissing]:(0,u.x)("ORDER_NOT_LOADED_ENTIRELY_MISSING"),[k.OrderNotLoadedNoAccessToSite]:(0,u.x)("ORDER_NOT_LOADED_NO_ACCESS_TO_SITE"),[k.OrderNotLoadedPartiallyMissing]:(0,u.x)("ORDER_NOT_LOADED_PARTIALLY_MISSING"),[k.OrderNotLoadedResourceIncident]:(0,u.x)("ORDER_NOT_LOADED_RESOURCE_INCIDENT"),[k.OrderNotPairedBeforeDeliverySlot]:(0,u.x)("ORDER_NOT_PAIRED_BEFORE_DELIVERY_SLOT"),[k.OrderNotPairedBeforeLoadingSlot]:(0,u.x)("ORDER_NOT_PAIRED_BEFORE_LOADING_SLOT"),[k.OrderNotPairedDueToResourceWithUnknownTelematicConfiguration]:(0,u.x)("ORDER_NOT_PAIRED_DUE_TO_RESOURCE_WITH_UNKNOWN_TELEMATIC_CONFIGURATION"),[k.OrderNotPairedDueToUnknownResource]:(0,u.x)("ORDER_NOT_PAIRED_DUE_TO_UNKNOWN_RESOURCE"),[k.OrderOnDeliverySiteNotProvided]:(0,u.x)("ORDER_ON_DELIVERY_SITE_NOT_PROVIDED"),[k.OrderOnLoadingSiteNotProvided]:(0,u.x)("ORDER_ON_LOADING_SITE_NOT_PROVIDED"),[k.OrderPackingReturned]:(0,u.x)("ORDER_PACKING_RETURNED"),[k.OrderPairedToDriverWithMobilePhoneGpsDisabledAtDelivery]:(0,u.x)("ORDER_PAIRED_TO_DRIVER_WITH_MOBILE_PHONE_GPS_DISABLED_AT_DELIVERY"),[k.OrderPairedToDriverWithMobilePhoneGpsDisabledAtLoading]:(0,u.x)("ORDER_PAIRED_TO_DRIVER_WITH_MOBILE_PHONE_GPS_DISABLED_AT_LOADING"),[k.OrderPairedToResourceButNoGpsPositionReceivedAtDelivery]:(0,u.x)("ORDER_PAIRED_TO_RESOURCE_BUT_NO_GPS_POSITION_RECEIVED_AT_DELIVERY"),[k.OrderPairedToResourceButNoGpsPositionReceivedAtLoading]:(0,u.x)("ORDER_PAIRED_TO_RESOURCE_BUT_NO_GPS_POSITION_RECEIVED_AT_LOADING"),[k.OrderPairedToResourceNeverPairedBefore]:(0,u.x)("ORDER_PAIRED_TO_RESOURCE_NEVER_PAIRED_BEFORE"),[k.OrderPairedToResourceNotSendingPositions]:(0,u.x)("ORDER_PAIRED_TO_RESOURCE_NOT_SENDING_POSITIONS"),[k.OrderPending]:(0,u.x)("ORDER_PENDING"),[k.OrderPodFileRemoved]:(0,u.x)("ORDER_POD_FILE_REMOVED"),[k.OrderPurchaseOrderItemsUpserted]:(0,u.x)("ORDER_PURCHASE_ORDER_ITEMS_UPSERTED"),[k.OrderRemovedFromTour]:(0,u.x)("ORDER_REMOVED_FROM_TOUR"),[k.OrderRequestForDeletion]:(0,u.x)("ORDER_REQUEST_FOR_DELETION"),[k.OrderResourceEnteredDeliverySite]:(0,u.x)("ORDER_RESOURCE_ENTERED_DELIVERY_SITE"),[k.OrderResourceEnteredLoadingSite]:(0,u.x)("ORDER_RESOURCE_ENTERED_LOADING_SITE"),[k.OrderResourceEnteredMicroGeofence]:(0,u.x)("ORDER_RESOURCE_ENTERED_MICRO_GEOFENCE"),[k.OrderResourceEnteredTranshipmentSite]:(0,u.x)("ORDER_RESOURCE_ENTERED_TRANSHIPMENT_SITE"),[k.OrderResourceLeftDeliverySite]:(0,u.x)("ORDER_RESOURCE_LEFT_DELIVERY_SITE"),[k.OrderResourceLeftLoadingSite]:(0,u.x)("ORDER_RESOURCE_LEFT_LOADING_SITE"),[k.OrderResourceLeftMicroGeofence]:(0,u.x)("ORDER_RESOURCE_LEFT_MICRO_GEOFENCE"),[k.OrderResourceLeftTranshipmentSite]:(0,u.x)("ORDER_RESOURCE_LEFT_TRANSHIPMENT_SITE"),[k.OrderSequencedInTour]:(0,u.x)("ORDER_SEQUENCED_IN_TOUR"),[k.OrderStateModified]:(0,u.x)("ORDER_STATE_MODIFIED"),[k.OrderTowardsDeliverySiteNotProvided]:(0,u.x)("ORDER_TOWARDS_DELIVERY_SITE_NOT_PROVIDED"),[k.OrderTowardsLoadingSiteNotProvided]:(0,u.x)("ORDER_TOWARDS_LOADING_SITE_NOT_PROVIDED"),[k.OrderTrackingEnded]:(0,u.x)("ORDER_TRACKING_ENDED"),[k.OrderTrackingReliabilityScoreModified]:(0,u.x)("ORDER_TRACKING_RELIABILITY_SCORE_MODIFIED"),[k.OrderUnfinished]:(0,u.x)("ORDER_UNFINISHED"),[k.OrderUserCollaborationFinished]:(0,u.x)("ORDER_USER_COLLABORATION_FINISHED"),[k.OrderUserCollaborationStarted]:(0,u.x)("ORDER_USER_COLLABORATION_STARTED"),[k.OrderValidatedTimeDelivery]:(0,u.x)("ORDER_VALIDATED_TIME_DELIVERY"),[k.OrderVesselArrivalAtTranshipmentEstimated]:(0,u.x)("ORDER_VESSEL_ARRIVAL_AT_TRANSHIPMENT_ESTIMATED"),[k.OrderVesselArrivedAtTranshipment]:(0,u.x)("ORDER_VESSEL_ARRIVED_AT_TRANSHIPMENT"),[k.OrderVesselDepartedFromTranshipment]:(0,u.x)("ORDER_VESSEL_DEPARTED_FROM_TRANSHIPMENT"),[k.OrderVesselDepartureFromTranshipmentEstimated]:(0,u.x)("ORDER_VESSEL_DEPARTURE_FROM_TRANSHIPMENT_ESTIMATED"),[k.OrderWasNotConfirmedByDriverBeforeDeliverySlot]:(0,u.x)("ORDER_WAS_NOT_CONFIRMED_BY_DRIVER_BEFORE_DELIVERY_SLOT"),[k.OrderWasNotConfirmedByDriverBeforeLoadingSlot]:(0,u.x)("ORDER_WAS_NOT_CONFIRMED_BY_DRIVER_BEFORE_LOADING_SLOT"),[k.OrderWithDeclarativeArrivalAtLoadingBeforeGpsByChartered]:(0,u.x)("ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_LOADING_BEFORE_GPS_BY_CHARTERED"),[k.OrderWithDeclarativeArrivalEventAtDeliveryBeforeGpsByChartered]:(0,u.x)("ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_DELIVERY_BEFORE_GPS"),[k.OrderWithDeclarativeArrivalEventAtDeliveryBeforeGpsByDriver]:(0,u.x)("ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_DELIVERY_BEFORE_GPS_BY_CHARTERED"),[k.OrderWithDeclarativeArrivalEventAtDeliveryBeforeGps]:(0,u.x)("ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_DELIVERY_BEFORE_GPS_BY_DRIVER"),[k.OrderWithDeclarativeArrivalEventAtLoadingBeforeGpsByDriver]:(0,u.x)("ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_LOADING_BEFORE_GPS"),[k.OrderWithDeclarativeArrivalEventAtLoadingBeforeGps]:(0,u.x)("ORDER_WITH_DECLARATIVE_ARRIVAL_EVENT_AT_LOADING_BEFORE_GPS_BY_DRIVER"),[k.OrderWithNoGpsPositionsDuringActivity]:(0,u.x)("ORDER_WITH_NO_GPS_POSITIONS_DURING_ACTIVITY"),[k.OrderWithNotEnoughGpsPositionsToTriggerDeliveryConfirmation]:(0,u.x)("ORDER_WITH_NOT_ENOUGH_GPS_POSITIONS_TO_TRIGGER_DELIVERY_CONFIRMATION"),[k.OrderWithNotEnoughGpsPositionsToTriggerLoadingConfirmation]:(0,u.x)("ORDER_WITH_NOT_ENOUGH_GPS_POSITIONS_TO_TRIGGER_LOADING_CONFIRMATION"),[k.PodAdded]:(0,u.x)("POD_ADDED"),[k.PushNoDeliveryRightAfterOnSite]:(0,u.x)("PUSH_NO_DELIVERY_RIGHT_AFTER_ON_SITE"),[k.PushNoLoadingRightAfterOnSite]:(0,u.x)("PUSH_NO_LOADING_RIGHT_AFTER_ON_SITE"),[k.RefusedLoad]:(0,u.x)("REFUSED_LOAD"),[k.RefusedUnload]:(0,u.x)("REFUSED_UNLOAD"),[k.RemoveTranshipment]:(0,u.x)("REMOVE_TRANSHIPMENT"),[k.ResourceNotGeolocatedRecently]:(0,u.x)("RESOURCE_NOT_GEOLOCATED_RECENTLY"),[k.SkipDeliveryPhase]:(0,u.x)("SKIP_DELIVERY_PHASE"),[k.SkipLoadingPhase]:(0,u.x)("SKIP_LOADING_PHASE"),[k.StopCheckTowardsDeliverySite]:(0,u.x)("STOP_CHECK_TOWARDS_DELIVERY_SITE"),[k.StopCheckTowardsLoadingSite]:(0,u.x)("STOP_CHECK_TOWARDS_LOADING_SITE"),[k.TagModified]:(0,u.x)("TAG_MODIFIED"),[k.TheoreticalDistance]:(0,u.x)("THEORETICAL_DISTANCE"),[k.TourAlgoliaAccumulationIndexation]:(0,u.x)("TOUR_ALGOLIA_ACCUMULATION_INDEXATION"),[k.TourModified]:(0,u.x)("TOUR_MODIFIED"),[k.TourOutCancelOrder]:(0,u.x)("TOUR_OUT_CANCEL_ORDER"),[k.TourOutOrderAddedToATour]:(0,u.x)("TOUR_OUT_ORDER_ADDED_TO_A_TOUR"),[k.TourOutOrderIsUncharted]:(0,u.x)("TOUR_OUT_ORDER_IS_UNCHARTERED"),[k.TourOutOrderModified]:(0,u.x)("TOUR_OUT_ORDER_MODIFIED"),[k.TourOutOrderRemovedFromTour]:(0,u.x)("TOUR_OUT_ORDER_REMOVED_FROM_TOUR"),[k.TourOutTourChartered]:(0,u.x)("TOUR_OUT_TOUR_CHARTERED"),[k.TourOutTourPaired]:(0,u.x)("TOUR_OUT_TOUR_PAIRED"),[k.TourOutTourUnpaired]:(0,u.x)("TOUR_OUT_TOUR_UNPAIRED"),[k.TowardsDeliverySiteToBeDoneLater]:(0,u.x)("TOWARDS_DELIVERY_SITE_TO_BE_DONE_LATER"),[k.TowardsLoadingSiteAbandoned]:(0,u.x)("TOWARDS_LOADING_SITE_ABANDONED"),[k.UnloadingPostponed]:(0,u.x)("UNLOADING_POSTPONED"),[k.UnloadingWiaitingToBeConfirmed]:(0,u.x)("UNLOADING_WAITING_TO_BE_CONFIRMED")});var S=function(d){return d.FwNom="FW_NOM",d.ShowAddresses="showAddresses",d.ShowMeanExternalId="showMeanExternalId",d.ShowTags="showTags",d.ShowHandlingUnits="showHandlingUnits",d.ShowClientReference="showClientReference",d.ShowCarrier="showCarrier",d.ShowAllQuantities="showAllQuantities",d.ShowProduct="showProduct",d.ShowIsPlanned="showIsPlanned",d.ShowDifferenceReason="showDifferenceReason",d.ShowTourLink="showTourLink",d.CustomTourLinkTemplate="customTourLinkTemplate",d.DateFormatIso8601Strict="dateFormatIso8601Strict",d.SendConsolidationIdAndTrackingCode="sendConsolidationIdAndTrackingCode",d.DataFormat="data_format",d.EventQualifier="event_qualifier",d.ShowPurchaseOrders="showPurchaseOrders",d.ShowMileage="showMileage",d.LegacyEventOut="legacyEventOut",d.LegacyDateFormat="legacyDateFormat",d.OrderTourReference="order_tour_reference",d.ShowFreightMeasures="showFreightMeasures",d.ShowHuComment="showHUComment",d.ShowCargo="showCargo",d.OwnerId="owner_id",d.ShowLabel="show_label",d.TargetId="target_id",d.ShowTour="show_tour",d.ShowLadingDeliveryReferences="show_lading_delivery_references",d.JsonEncodeUnicode="json_encode_unicode",d.UsePlaceTechnicalReference="use_place_technical_reference",d.Version="version",d.ShowCarbon="show_carbon",d.ShowCostsTourLevel="show_costs_tour_level",d.UseNewTransportModes="use_new_transport_modes",d.ShowCascade="showCascade",d.FullGoods="fullGoods",d}(S||{});const ue=()=>({[S.FwNom]:(0,u.x)("FW_NOM"),[S.ShowAddresses]:(0,u.x)("showAddresses"),[S.ShowMeanExternalId]:(0,u.x)("showMeanExternalId"),[S.ShowTags]:(0,u.x)("showTags"),[S.ShowHandlingUnits]:(0,u.x)("showHandlingUnits"),[S.ShowClientReference]:(0,u.x)("showClientReference"),[S.ShowCarrier]:(0,u.x)("showCarrier"),[S.ShowAllQuantities]:(0,u.x)("showAllQuantities"),[S.ShowProduct]:(0,u.x)("showProduct"),[S.ShowIsPlanned]:(0,u.x)("showIsPlanned"),[S.ShowDifferenceReason]:(0,u.x)("showDifferenceReason"),[S.ShowTourLink]:(0,u.x)("showTourLink"),[S.CustomTourLinkTemplate]:(0,u.x)("customTourLinkTemplate"),[S.DateFormatIso8601Strict]:(0,u.x)("dateFormatIso8601Strict"),[S.SendConsolidationIdAndTrackingCode]:(0,u.x)("sendConsolidationIdAndTrackingCode"),[S.DataFormat]:(0,u.x)("data_format"),[S.EventQualifier]:(0,u.x)("event_qualifier"),[S.ShowPurchaseOrders]:(0,u.x)("showPurchaseOrders"),[S.ShowMileage]:(0,u.x)("showMileage"),[S.LegacyEventOut]:(0,u.x)("legacyEventOut"),[S.LegacyDateFormat]:(0,u.x)("legacyDateFormat"),[S.OrderTourReference]:(0,u.x)("order_tour_reference"),[S.ShowFreightMeasures]:(0,u.x)("showFreightMeasures"),[S.ShowHuComment]:(0,u.x)("showHUComment"),[S.ShowCargo]:(0,u.x)("showCargo"),[S.OwnerId]:(0,u.x)("owner_id"),[S.ShowLabel]:(0,u.x)("show_label"),[S.TargetId]:(0,u.x)("target_id"),[S.ShowTour]:(0,u.x)("show_tour"),[S.ShowLadingDeliveryReferences]:(0,u.x)("show_lading_delivery_references"),[S.JsonEncodeUnicode]:(0,u.x)("json_encode_unicode"),[S.UsePlaceTechnicalReference]:(0,u.x)("use_place_technical_reference"),[S.Version]:(0,u.x)("version"),[S.ShowCarbon]:(0,u.x)("show_carbon"),[S.ShowCostsTourLevel]:(0,u.x)("show_costs_tour_level"),[S.UseNewTransportModes]:(0,u.x)("use_new_transport_modes"),[S.ShowCascade]:(0,u.x)("showCascade"),[S.FullGoods]:(0,u.x)("fullGoods")})},2233:(fe,J,r)=>{"use strict";r.d(J,{O:()=>s});var t=r(1091),e=function(i){return i.De="de",i.En="en-gb",i.Es="es",i.Fr="fr",i.It="it",i.Nl="nl",i.Pl="pl",i.Pt="pt",i.Ro="ro",i}(e||{});const o={[t.JA.Czech]:e.En,[t.JA.Dutch]:e.Nl,[t.JA.Empty]:e.En,[t.JA.English]:e.En,[t.JA.French]:e.Fr,[t.JA.German]:e.De,[t.JA.Italian]:e.It,[t.JA.Latvian]:e.En,[t.JA.Polish]:e.Pl,[t.JA.Portugues]:e.Pt,[t.JA.PortuguesBrasil]:e.Pt,[t.JA.Romanian]:e.Ro,[t.JA.Russian]:e.En,[t.JA.Slovak]:e.En,[t.JA.Spanish]:e.Es};class s{constructor(p){this.props=p,this.legacyComponentStylesFileName="legacy-components.css",this.legacyRootStylesFileName="legacy-root.css",this.sharedStylesFileName="styles.b0f6e541422048e0.css",this.props=Object.entries(p).reduce((f,[N,A])=>({...f,[N]:A===`\${${N}}`||""===A?void 0:A}),{})}getProperty(p){const f=this.props[p];return void 0===f&&console.warn(`Property ${p} is not defined`),f}getDefaultLogoutUrl(){const p=this.getProperty("API_CLIENT_URL");return p?`${p}/logout`:void 0}getLegacyComponentStylesUrl(){return this.getProperty("ASSETS_URL")+"/"+this.legacyComponentStylesFileName}getLegacyRootStylesUrl(){return this.getProperty("ASSETS_URL")+"/"+this.legacyRootStylesFileName}getLocalizedSupportUrl(p=t.JA.English){return`${this.getProperty("SUPPORT_URL")}/${o[p]}`}getLogoUrl(){return this.getProperty("LOGO_URL")||"/assets/logos/shippeo-monochrome-standalone.svg"}getReleasesUrl(p){return this.getProperty(p===t.JA.French?"RELEASES_FR_URL":"RELEASES_EN_URL")}getSharedStylesUrl(){return this.getProperty("ASSETS_URL")+"/"+this.sharedStylesFileName}getZendeskUrl(){return this.getProperty("API_ZENDESK_URL")}isBackOffice(){return"backOffice"===this.getProperty("APP_NAME")}isPublic(){return"public"===this.getProperty("APP_NAME")}isPortal(){return"portal"===this.getProperty("APP_NAME")}isDev(){return"dev"===this.getProperty("PLATFORM")}isProduction(){return"prod"===this.getProperty("PLATFORM")}isQa(){return"qa"===this.getProperty("PLATFORM")}isProductionMode(){return this.getProperty("production")??!1}}},80307:(fe,J,r)=>{"use strict";r.d(J,{Ef:()=>I,VL:()=>f,_T:()=>p});var t=r(76564),e=r(12596),o=r(30456),s=r(36287),i=r(48891);let p=(()=>{class b{constructor(R){this.downloadService=R}exportDriver(R,v,E,h,C){const M={[s.h3m.Organization]:R.id};return h&&(M[s.h3m.MinimumPositionDate]=h),C&&(M[s.h3m.MaximumPositionDate]=C),this.downloadService.getCsv(`${e.M$.MobileDriver}${e.ii.Export}`,`export.${R.filename}.mobile-driver`,M,v,E)}exportResource(R,v,E,h,C){const M={[s.h3m.Organization]:R.id,[s.h3m.State]:"ALL"};return h&&(M[s.h3m.MinimumPositionDate]=h),C&&(M[s.h3m.MaximumPositionDate]=C),R.telematicConfigurationId&&(M[s.h3m.TelematicConfiguration]=R.telematicConfigurationId),this.downloadService.getCsv(e.M$.Resources,`export.${R.filename}.resources`,M,v,E)}exportPlace(R,v,E){return this.downloadService.getCsv(e.M$.Place,`export.${R.filename}.places`,{[s.h3m.Organization]:R.id,[s.h3m.State]:"ALL"},v,E)}exportUser(R,v,E,h,C){const M={[s.h3m.Organization]:R.id,[s.h3m.State]:"ALL"};return h&&(M[s.h3m.MinimumPositionDate]=h),C&&(M[s.h3m.MaximumPositionDate]=C),this.downloadService.getCsv(e.M$.Users,`export.${R.filename}.users`,M,v,E)}getExport(R,v,E){let h;switch(R){case s.tfS.Resource:h=this.exportResource(v,E.compatibility,E.columnsType,E.minimumPositionDate,E.maximumPositionDate);break;case s.tfS.MobileDriver:h=this.exportDriver(v,E.compatibility,E.columnsType,E.minimumPositionDate,E.maximumPositionDate);break;case s.tfS.Place:h=this.exportPlace(v,E.compatibility,E.columnsType);break;case s.tfS.User:h=this.exportUser(v,E.compatibility,E.columnsType,E.minimumPositionDate,E.maximumPositionDate)}return h}getExportOption(R,v){const E=new s.oYp;return R&&(E.id=R.id,E.filename=R.name),v&&(E.telematicConfigurationId=v),E}exportFile(R,v,E){const h=this.getExportOption(E,v.telematicConfigurationId);return h&&h.id?this.getExport(R,h,v):t.w}static#e=this.\u0275fac=function(v){return new(v||b)(i.KVO(o.s))};static#t=this.\u0275prov=i.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})(),f=(()=>{class b{static#e=this.\u0275fac=function(v){return new(v||b)};static#t=this.\u0275mod=i.$C({type:b});static#i=this.\u0275inj=i.G2t({providers:[p]})}return b})();var N=r(27691),A=r(47947);let I=(()=>{class b{constructor(R){this.apiService=R,this.getDelegatedResources=(v,E=!1)=>{const h=(new N.Nl).set(s.h3m.PageNumber,"1").set(s.h3m.PageSize,"10").set("isDriver",E).set("include","receivers,delegators");return this.apiService.query(e.q3.DelegatedUsersResources.replace(":organizationId",v),{params:h}).pipe((0,A.T)(C=>new e.Qw(C,C.data.map(s.lnb))))}}static#e=this.\u0275fac=function(v){return new(v||b)(i.KVO(e.Gf))};static#t=this.\u0275prov=i.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},66162:(fe,J,r)=>{"use strict";r.d(J,{AV:()=>t,xJ:()=>e,_T:()=>I,PE:()=>R});var t=function(M){return M.Csv="csv",M.Pdf="pdf",M.Xlsx="xlsx",M.Zip="zip",M}(t||{}),e=function(M){return M.Csv="text/csv",M.Pdf="application/pdf",M.Xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",M.Zip="application/zip",M}(e||{}),s=r(91167),i=r(12596),p=r(2233),f=r(36287),N=r(48891),A=r(27691);let I=(()=>{class M{constructor(V,j,Y){this.environment=V,this.http=j,this.apiService=Y,this.getExportAcceptedFormats=()=>[new f._BQ((0,s.x)("Export xlsx"),t.Xlsx,!0),new f._BQ((0,s.x)("Export csv"),t.Csv,!1)]}asyncExport(V){return this.apiService.post(`${i.M$.AsyncExport}`,V)}exportOrders(V,j){const Y=`${this.environment.getProperty("API_EXPORT")}${i.A8.Export}`;return V.format===t.Csv?this.exportOrdersCsv(Y,V,j):this.exportOrdersBlob(Y,V,j)}exportOrdersByAlgoliaSearchParameters(V,j=t.Csv){return this.exportOrders(((M,F=t.Csv)=>({algolia:M,format:F,legacy:!0}))(V,j))}exportOrdersBlob(V,j,Y){return this.http.post(V,j,{...Y,responseType:"blob"})}exportOrdersCsv(V,j,Y){return this.http.post(V,j,{...Y,responseType:"text"})}static#e=this.\u0275fac=function(j){return new(j||M)(N.KVO(p.O),N.KVO(A.Qq),N.KVO(i.Gf))};static#t=this.\u0275prov=N.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();var b=r(54597),l=r(1091);const R=(M,F)=>{const V="string"==typeof M?new Blob([v(M)],{type:e.Csv}):M,j=URL.createObjectURL(V),Y=document.createElement("a");return Y.setAttribute("target","_blank"),Y.setAttribute("href",j),Y.setAttribute("download",C(F,V.type)),document.body.appendChild(Y),Y.click(),Y.remove(),V},v=M=>"\ufeff"+M,h={[e.Csv]:t.Csv,[e.Pdf]:t.Pdf,[e.Xlsx]:t.Xlsx,[e.Zip]:t.Zip},C=(M,F)=>{const V=(0,b.GP)(new Date,l.nY.FileExport),j=h[F]||t.Csv;return M?`${(M=>M.normalize("NFD").replace(/[\u0300-\u036f]|[ ()"'`]/g,"").toLowerCase())(M)}.${V}.${j}`:`download.${V}.${j}`}},44687:(fe,J,r)=>{"use strict";r.d(J,{LP:()=>o.LP,W4:()=>s.W});var t=r(48891),o=(r(1091),r(10630)),s=r(63736);new t.nKC("FakeTranslations")},10630:(fe,J,r)=>{"use strict";r.d(J,{LP:()=>I,Fc:()=>N});var t=r(27691),e=r(48891),o=r(53220),s=r(41704),i=r(1485),p=r(63736);let f=(()=>{class b{constructor(){this.translateParser=(0,e.WQX)(o.Sd)}handle(R){const v=R.translateService.compiler.compile(R.key,R.translateService.defaultLang);return p.W.removeContext(this.translateParser.interpolate(v,R.interpolateParams))}static#e=this.\u0275fac=function(v){return new(v||b)};static#t=this.\u0275prov=e.jDH({token:b,factory:b.\u0275fac})}return b})();const N=new e.nKC("supportedLanguages");function A(b="https://static.shippeo.com/"){return l=>new s.s(l,b+"i18n-assets/json/",".json")}let I=(()=>{class b{static forRoot(R){const v=o.h.forRoot({compiler:{provide:o.kJ,useClass:i.sc},loader:{deps:[t.Qq],provide:o.Wr,useFactory:A(R?.jsonBaseUrl)},missingTranslationHandler:{deps:[o.Sd],provide:o.er,useClass:f},useDefaultLang:!1}).providers??[];return{ngModule:b,providers:[p.W,{provide:N,useValue:R?.supportedLanguages},v]}}static#e=this.\u0275fac=function(v){return new(v||b)};static#t=this.\u0275mod=e.$C({type:b});static#i=this.\u0275inj=e.G2t({providers:[(0,t.$R)((0,t.Sx)())],imports:[o.h]})}return b})()},63736:(fe,J,r)=>{"use strict";r.d(J,{W:()=>I});var t=r(48891),e=r(76082),o=r(71217),s=r(85710),i=r(63016),p=r(53220),f=r(88130),N=r(1091),A=r(10630);let I=(()=>{class b{static#e=this.contextTextRegex=/^\[\[(.*?)\]\]\s*/;constructor(){this.countryList=(0,t.EWP)(()=>Object.entries(this.getCountryNames(this.language().code)).map(([v,E])=>({label:E,value:v}))),this.dateFormat=(0,t.EWP)(()=>this._currentDateTimeFormat().toString().replace(" \u2022 HH:mm","")),this._currentDateTimeFormat=(0,t.vPA)(N.nY.Default),this.defaultLanguage=N.NH.english,this.timezone$=new o.t(N.SJ),this.language$=new o.t(this.defaultLanguage),this.translationFileName={[N.JA.Portugues]:N.JA.PortuguesBrasil},this.supportedLanguages=(0,t.WQX)(A.Fc),this.translateService=(0,t.WQX)(p.c$),this.subscriptions=new s.yU,this.searchCountries=v=>(0,i.of)({items:[...this.countryList()].sort((E,h)=>E.label.localeCompare(h.label)).filter(E=>E.label.toLowerCase().includes(v.toLowerCase()))}),this.browserLanguage=this.getBrowserLanguage(),this.dateTimeFormat=this._currentDateTimeFormat.asReadonly(),this.timezone=(0,e.ot)(this.timezone$,{initialValue:N.SJ}),this.language=(0,e.ot)(this.language$,{initialValue:this.defaultLanguage});const R=N.NH.getLanguagesCodes().filter(v=>this.isSupportedLanguage(v));this.translateService.addLangs(R),this.translateService.setDefaultLang(this.defaultLanguage.code)}static removeContext(R=""){return R.replace(b.contextTextRegex,"")}ngOnDestroy(){this.subscriptions.unsubscribe()}get(R,v){return this.translateService.get(R,v)}getCountryCode(R){return"United States"===R&&(R="United States of America"),(0,f.getAlpha2Code)(R,this.language$.getValue().code)}getBrowserLanguage(){const R=this.translateService.getBrowserCultureLang();return R?N.NH.getByCode(R):this.defaultLanguage}getUserRegion(){return N.SJ in N.qo?N.qo[N.SJ]:new Intl.Locale(navigator.language).region??N.T1}getLanguagesNames(R){return new Intl.DisplayNames([R],{type:"language"})}getCountryNames(R){return(0,f.getNames)(R)}getCountryList(R){return Object.entries(this.getCountryNames(R)).map(([v,E])=>({label:E,value:v}))}getCurrentLanguage(){return this.language$}getDateTimeFormat(){return this._currentDateTimeFormat()}getDateFormat(){return this._currentDateTimeFormat().toString().replace(" \u2022 HH:mm","")}getSupportedLanguages(){return N.NH.getSupportedLanguages().filter(R=>this.isSupportedLanguage(R.code))}getTimezone(){return this.timezone$}instant(R,v){return R?this.translateService.instant(R,v):""}onLangChange(){return this.translateService.onLangChange}setDateTimeFormat(R=N.nY.Default){this._currentDateTimeFormat.set(R)}setLanguage(R){this.subscriptions.add(this.translateService.use(this.translationFileName[R.code]||R.code).subscribe(()=>this.language$.next(R)))}setLanguageToBrowser(){this.isSupportedLanguage(this.browserLanguage.code)?this.setLanguage(this.browserLanguage):this.setLanguage(this.defaultLanguage)}setTimezone(R=Intl.DateTimeFormat().resolvedOptions().timeZone){this.timezone$.next(R)}isSupportedLanguage(R){return this.supportedLanguages.includes(R)}static#t=this.\u0275fac=function(v){return new(v||b)};static#i=this.\u0275prov=t.jDH({token:b,factory:b.\u0275fac})}return b})()},5062:(fe,J,r)=>{"use strict";r.d(J,{n:()=>f}),r(77209);var e=r(54460),o=r(18306),s=r(91834),i=r(48891);let f=(()=>{class N{static#e=this.\u0275fac=function(b){return new(b||N)};static#t=this.\u0275mod=i.$C({type:N});static#i=this.\u0275inj=i.G2t({imports:[e.MD,o.Ad,s.Yc]})}return N})()},77209:(fe,J,r)=>{"use strict";r.d(J,{g:()=>Y});var t=r(41483),e=r(47947),o=r(44687),i=(r(1091),r(91039)),p=r(48891),f=r(54460),N=r(18306),A=r(97439),I=r(75092),b=r(27005),l=r(47203);const R=(a,P,u)=>[a,P,u],v=(a,P)=>({languageCode:a,timezone:P}),E=(a,P,u)=>({format:a,languageCode:P,timezone:u});function h(a,P){if(1&a&&(p.j41(0,"span"),p.EFF(1),p.nI1(2,"async"),p.nI1(3,"async"),p.nI1(4,"formatTimeSlot"),p.k0s()),2&a){let u;const z=p.XpG(2);p.R7$(),p.SpI(" ",p.brH(4,5,z.date,z.dateEnd,p.sMw(9,E,z.format,null!==(u=z.languageCode)&&void 0!==u?u:p.bMT(2,1,z.currentLanguageCode$),null!==(u=z.timezone)&&void 0!==u?u:p.bMT(3,3,z.currentTimezone$)))," ")}}function C(a,P){if(1&a&&(p.j41(0,"span"),p.EFF(1),p.nI1(2,"async"),p.nI1(3,"async"),p.nI1(4,"formatDateTime"),p.k0s()),2&a){let u;const z=p.XpG(2);p.R7$(),p.SpI(" ",p.i5U(4,5,z.date,p.sMw(8,E,z.format,null!==(u=z.languageCode)&&void 0!==u?u:p.bMT(2,1,z.currentLanguageCode$),null!==(u=z.timezone)&&void 0!==u?u:p.bMT(3,3,z.currentTimezone$)))," ")}}function M(a,P){if(1&a&&(p.j41(0,"span",6),p.EFF(1),p.k0s()),2&a){const u=P.$implicit,z=p.XpG(2);p.Y8G("ngClass","bg-"+z.delayColor),p.R7$(),p.SpI(" ",u," ")}}function F(a,P){if(1&a&&(p.j41(0,"span",7)(1,"span",8),p.EFF(2,"\u2022"),p.k0s(),p.j41(3,"span"),p.EFF(4),p.nI1(5,"async"),p.nI1(6,"async"),p.nI1(7,"formatTimeZone"),p.k0s()()),2&a){let u;const z=p.XpG(2);p.R7$(4),p.JRh(p.i5U(7,5,z.date,p.l_i(8,v,null!==(u=z.languageCode)&&void 0!==u?u:p.bMT(5,1,z.currentLanguageCode$),null!==(u=z.timezone)&&void 0!==u?u:p.bMT(6,3,z.currentTimezone$))))}}function V(a,P){if(1&a&&p.nrm(0,"shui-svg-icon",9),2&a){const u=p.XpG(2);p.Y8G("color",u.textColor)("size",u.svgIconSize.SMedium)("type",u.svgIconType.Solid)}}function j(a,P){if(1&a&&(p.j41(0,"div",1),p.DNE(1,h,5,13,"span",2)(2,C,5,12,"span",2)(3,M,2,2,"span",3),p.nI1(4,"async"),p.nI1(5,"async"),p.nI1(6,"formatDelay"),p.DNE(7,F,8,11,"span",4)(8,V,1,3,"shui-svg-icon",5),p.k0s()),2&a){let u;const z=p.XpG();p.Y8G("ngClass",p.sMw(14,R,"f-"+z.fontSize,"fw-"+z.fontWeight,"text-"+z.textColor)),p.R7$(),p.Y8G("ngIf",z.dateEnd),p.R7$(),p.Y8G("ngIf",!z.dateEnd),p.R7$(),p.Y8G("ngIf",z.delay||z.targetDate&&p.brH(6,10,z.date,z.targetDate,p.l_i(18,v,null!==(u=z.languageCode)&&void 0!==u?u:p.bMT(4,6,z.currentLanguageCode$),null!==(u=z.timezone)&&void 0!==u?u:p.bMT(5,8,z.currentTimezone$)))),p.R7$(4),p.Y8G("ngIf",z.displayTimezone),p.R7$(),p.Y8G("ngIf",z.withPopover)}}let Y=(()=>{class a{constructor(u){this.i18nService=u,this.delayColor="gray-500",this.displayTimezone=!1,this.fontSize=i.Z4.Small,this.fontWeight=i.IT.Normal400,this.textColor="gray-500",this.withPopover=!1,this.svgIconSize=i.D7,this.svgIconType=i.Oo,this.currentLanguageCode$=this.i18nService.getCurrentLanguage().pipe((0,t.p)(z=>!!z.code),(0,e.T)(z=>z.code)),this.currentTimezone$=this.i18nService.getTimezone().pipe((0,t.p)(z=>!!z))}ngOnInit(){this.format||(this.format=this.i18nService.getDateTimeFormat())}static#e=this.\u0275fac=function(z){return new(z||a)(p.rXU(o.W4))};static#t=this.\u0275cmp=p.VBU({type:a,selectors:[["sh-i18n-date"]],inputs:{date:"date",dateEnd:"dateEnd",delayColor:"delayColor",displayTimezone:"displayTimezone",fontSize:"fontSize",fontWeight:"fontWeight",format:"format",languageCode:"languageCode",targetDate:"targetDate",textColor:"textColor",timezone:"timezone",withPopover:"withPopover",delay:"delay"},decls:1,vars:1,consts:[["class","d-flex flex-wrap align-items-center",3,"ngClass",4,"ngIf"],[1,"d-flex","flex-wrap","align-items-center",3,"ngClass"],[4,"ngIf"],["class","ms-1 f-xs fw-medium text-white badge badge-pill py-0",3,"ngClass",4,"ngIf"],["class","d-flex flex-shrink-0 align-items-center ms-1",4,"ngIf"],["class","event-collapse-icon ms-1","name","information-circle",3,"color","size","type",4,"ngIf"],[1,"ms-1","f-xs","fw-medium","text-white","badge","badge-pill","py-0",3,"ngClass"],[1,"d-flex","flex-shrink-0","align-items-center","ms-1"],[1,"me-1"],["name","information-circle",1,"event-collapse-icon","ms-1",3,"color","size","type"]],template:function(z,H){1&z&&p.DNE(0,j,9,21,"div",0),2&z&&p.Y8G("ngIf",H.date)},dependencies:[f.YU,f.bT,N.DM,f.Jj,A.f,I.l,b.l,l.t],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return a})()},1091:(fe,J,r)=>{"use strict";r.d(J,{qo:()=>e,T1:()=>t,nY:()=>o,JA:()=>v,NH:()=>it,rl:()=>xt,SJ:()=>T,oM:()=>de,Yq:()=>Ne,Zk:()=>Ut,mo:()=>te,pL:()=>se,Pt:()=>lt,JK:()=>ge,oz:()=>nt});const t="FR",e={"Africa/Abidjan":"CI","Africa/Accra":"GH","Africa/Addis_Ababa":"ET","Africa/Algiers":"DZ","Africa/Asmara":"ER","Africa/Bamako":"ML","Africa/Bangui":"CF","Africa/Banjul":"GM","Africa/Bissau":"GW","Africa/Blantyre":"MW","Africa/Brazzaville":"CG","Africa/Bujumbura":"BI","Africa/Cairo":"EG","Africa/Casablanca":"MA","Africa/Ceuta":"ES","Africa/Conakry":"GN","Africa/Dakar":"SN","Africa/Dar_es_Salaam":"TZ","Africa/Djibouti":"DJ","Africa/Douala":"CM","Africa/El_Aaiun":"EH","Africa/Freetown":"SL","Africa/Gaborone":"BW","Africa/Harare":"ZW","Africa/Johannesburg":"ZA","Africa/Juba":"SS","Africa/Kampala":"UG","Africa/Khartoum":"SD","Africa/Kigali":"RW","Africa/Kinshasa":"CD","Africa/Lagos":"NG","Africa/Libreville":"GA","Africa/Lome":"TG","Africa/Luanda":"AO","Africa/Lubumbashi":"CD","Africa/Lusaka":"ZM","Africa/Malabo":"GQ","Africa/Maputo":"MZ","Africa/Maseru":"LS","Africa/Mbabane":"SZ","Africa/Mogadishu":"SO","Africa/Monrovia":"LR","Africa/Nairobi":"KE","Africa/Ndjamena":"TD","Africa/Niamey":"NE","Africa/Nouakchott":"MR","Africa/Ouagadougou":"BF","Africa/Porto-Novo":"BJ","Africa/Sao_Tome":"ST","Africa/Tripoli":"LY","Africa/Tunis":"TN","Africa/Windhoek":"NA","America/Adak":"US","America/Anchorage":"US","America/Anguilla":"AI","America/Antigua":"AG","America/Araguaina":"BR","America/Argentina/Buenos_Aires":"AR","America/Argentina/Catamarca":"AR","America/Argentina/Cordoba":"AR","America/Argentina/Jujuy":"AR","America/Argentina/La_Rioja":"AR","America/Argentina/Mendoza":"AR","America/Argentina/Rio_Gallegos":"AR","America/Argentina/Salta":"AR","America/Argentina/San_Juan":"AR","America/Argentina/San_Luis":"AR","America/Argentina/Tucuman":"AR","America/Argentina/Ushuaia":"AR","America/Aruba":"AW","America/Asuncion":"PY","America/Atikokan":"CA","America/Bahia":"BR","America/Bahia_Banderas":"MX","America/Barbados":"BB","America/Belem":"BR","America/Belize":"BZ","America/Blanc-Sablon":"CA","America/Boa_Vista":"BR","America/Bogota":"CO","America/Boise":"US","America/Cambridge_Bay":"CA","America/Campo_Grande":"BR","America/Cancun":"MX","America/Caracas":"VE","America/Cayenne":"GF","America/Cayman":"KY","America/Chicago":"US","America/Chihuahua":"MX","America/Costa_Rica":"CR","America/Creston":"CA","America/Cuiaba":"BR","America/Curacao":"CW","America/Danmarkshavn":"GL","America/Dawson":"CA","America/Dawson_Creek":"CA","America/Denver":"US","America/Detroit":"US","America/Dominica":"DM","America/Edmonton":"CA","America/Eirunepe":"BR","America/El_Salvador":"SV","America/Fort_Nelson":"CA","America/Fortaleza":"BR","America/Glace_Bay":"CA","America/Godthab":"GL","America/Goose_Bay":"CA","America/Grand_Turk":"TC","America/Grenada":"GD","America/Guadeloupe":"GP","America/Guatemala":"GT","America/Guayaquil":"EC","America/Guyana":"GY","America/Halifax":"CA","America/Havana":"CU","America/Hermosillo":"MX","America/Indiana/Indianapolis":"US","America/Indiana/Knox":"US","America/Indiana/Marengo":"US","America/Indiana/Petersburg":"US","America/Indiana/Tell_City":"US","America/Indiana/Vevay":"US","America/Indiana/Vincennes":"US","America/Indiana/Winamac":"US","America/Inuvik":"CA","America/Iqaluit":"CA","America/Jamaica":"JM","America/Juneau":"US","America/Kentucky/Louisville":"US","America/Kentucky/Monticello":"US","America/Kralendijk":"BQ","America/La_Paz":"BO","America/Lima":"PE","America/Los_Angeles":"US","America/Lower_Princes":"SX","America/Maceio":"BR","America/Managua":"NI","America/Manaus":"BR","America/Marigot":"MF","America/Martinique":"MQ","America/Matamoros":"MX","America/Mazatlan":"MX","America/Menominee":"US","America/Merida":"MX","America/Metlakatla":"US","America/Mexico_City":"MX","America/Miquelon":"PM","America/Moncton":"CA","America/Monterrey":"MX","America/Montevideo":"UY","America/Montserrat":"MS","America/Nassau":"BS","America/New_York":"US","America/Nipigon":"CA","America/Nome":"US","America/Noronha":"BR","America/North_Dakota/Beulah":"US","America/North_Dakota/Center":"US","America/North_Dakota/New_Salem":"US","America/Ojinaga":"MX","America/Panama":"PA","America/Pangnirtung":"CA","America/Paramaribo":"SR","America/Phoenix":"US","America/Port-au-Prince":"HT","America/Port_of_Spain":"TT","America/Porto_Velho":"BR","America/Puerto_Rico":"PR","America/Rainy_River":"CA","America/Rankin_Inlet":"CA","America/Recife":"BR","America/Regina":"CA","America/Resolute":"CA","America/Rio_Branco":"BR","America/Santarem":"BR","America/Santiago":"CL","America/Santo_Domingo":"DO","America/Sao_Paulo":"BR","America/Scoresbysund":"GL","America/Sitka":"US","America/St_Barthelemy":"BL","America/St_Johns":"CA","America/St_Kitts":"KN","America/St_Lucia":"LC","America/St_Thomas":"VI","America/St_Vincent":"VC","America/Swift_Current":"CA","America/Tegucigalpa":"HN","America/Thule":"GL","America/Thunder_Bay":"CA","America/Tijuana":"MX","America/Toronto":"CA","America/Tortola":"VG","America/Vancouver":"CA","America/Whitehorse":"CA","America/Winnipeg":"CA","America/Yakutat":"US","America/Yellowknife":"CA","Antarctica/Casey":"AQ","Antarctica/Davis":"AQ","Antarctica/DumontDUrville":"AQ","Antarctica/Macquarie":"AU","Antarctica/Mawson":"AQ","Antarctica/McMurdo":"AQ","Antarctica/Palmer":"AQ","Antarctica/Rothera":"AQ","Antarctica/Syowa":"AQ","Antarctica/Troll":"AQ","Antarctica/Vostok":"AQ","Arctic/Longyearbyen":"SJ","Asia/Aden":"YE","Asia/Almaty":"KZ","Asia/Amman":"JO","Asia/Anadyr":"RU","Asia/Aqtau":"KZ","Asia/Aqtobe":"KZ","Asia/Ashgabat":"TM","Asia/Baghdad":"IQ","Asia/Bahrain":"BH","Asia/Baku":"AZ","Asia/Bangkok":"TH","Asia/Barnaul":"RU","Asia/Beirut":"LB","Asia/Bishkek":"KG","Asia/Brunei":"BN","Asia/Calcutta":"IN","Asia/Chita":"RU","Asia/Choibalsan":"MN","Asia/Colombo":"LK","Asia/Damascus":"SY","Asia/Dhaka":"BD","Asia/Dili":"TL","Asia/Dubai":"AE","Asia/Dushanbe":"TJ","Asia/Gaza":"PS","Asia/Hebron":"PS","Asia/Ho_Chi_Minh":"VN","Asia/Hong_Kong":"HK","Asia/Hovd":"MN","Asia/Irkutsk":"RU","Asia/Jakarta":"ID","Asia/Jayapura":"ID","Asia/Jerusalem":"IL","Asia/Kabul":"AF","Asia/Kamchatka":"RU","Asia/Karachi":"PK","Asia/Kathmandu":"NP","Asia/Khandyga":"RU","Asia/Kolkata":"IN","Asia/Krasnoyarsk":"RU","Asia/Kuala_Lumpur":"MY","Asia/Kuching":"MY","Asia/Kuwait":"KW","Asia/Macau":"MO","Asia/Magadan":"RU","Asia/Makassar":"ID","Asia/Manila":"PH","Asia/Muscat":"OM","Asia/Nicosia":"CY","Asia/Novokuznetsk":"RU","Asia/Novosibirsk":"RU","Asia/Omsk":"RU","Asia/Oral":"KZ","Asia/Phnom_Penh":"KH","Asia/Pontianak":"ID","Asia/Pyongyang":"KP","Asia/Qatar":"QA","Asia/Qyzylorda":"KZ","Asia/Rangoon":"MM","Asia/Riyadh":"SA","Asia/Sakhalin":"RU","Asia/Samarkand":"UZ","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Singapore":"SG","Asia/Srednekolymsk":"RU","Asia/Taipei":"TW","Asia/Tashkent":"UZ","Asia/Tbilisi":"GE","Asia/Tehran":"IR","Asia/Thimphu":"BT","Asia/Tokyo":"JP","Asia/Tomsk":"RU","Asia/Ulaanbaatar":"MN","Asia/Urumqi":"CN","Asia/Ust-Nera":"RU","Asia/Vientiane":"LA","Asia/Vladivostok":"RU","Asia/Yakutsk":"RU","Asia/Yekaterinburg":"RU","Asia/Yerevan":"AM","Atlantic/Azores":"PT","Atlantic/Bermuda":"BM","Atlantic/Canary":"ES","Atlantic/Cape_Verde":"CV","Atlantic/Faroe":"FO","Atlantic/Madeira":"PT","Atlantic/Reykjavik":"IS","Atlantic/South_Georgia":"GS","Atlantic/St_Helena":"SH","Atlantic/Stanley":"FK","Australia/Adelaide":"AU","Australia/Brisbane":"AU","Australia/Broken_Hill":"AU","Australia/Currie":"AU","Australia/Darwin":"AU","Australia/Eucla":"AU","Australia/Hobart":"AU","Australia/Lindeman":"AU","Australia/Lord_Howe":"AU","Australia/Melbourne":"AU","Australia/Perth":"AU","Australia/Sydney":"AU","Europe/Amsterdam":"NL","Europe/Andorra":"AD","Europe/Astrakhan":"RU","Europe/Athens":"GR","Europe/Belgrade":"RS","Europe/Berlin":"DE","Europe/Bratislava":"SK","Europe/Brussels":"BE","Europe/Bucharest":"RO","Europe/Budapest":"HU","Europe/Busingen":"DE","Europe/Chisinau":"MD","Europe/Copenhagen":"DK","Europe/Dublin":"IE","Europe/Gibraltar":"GI","Europe/Guernsey":"GG","Europe/Helsinki":"FI","Europe/Isle_of_Man":"IM","Europe/Istanbul":"TR","Europe/Jersey":"JE","Europe/Kaliningrad":"RU","Europe/Kiev":"UA","Europe/Kirov":"RU","Europe/Lisbon":"PT","Europe/Ljubljana":"SI","Europe/London":"GB","Europe/Luxembourg":"LU","Europe/Madrid":"ES","Europe/Malta":"MT","Europe/Mariehamn":"AX","Europe/Minsk":"BY","Europe/Monaco":"MC","Europe/Moscow":"RU","Europe/Oslo":"NO","Europe/Paris":"FR","Europe/Podgorica":"ME","Europe/Prague":"CZ","Europe/Riga":"LV","Europe/Rome":"IT","Europe/Samara":"RU","Europe/San_Marino":"SM","Europe/Sarajevo":"BA","Europe/Simferopol":"RU","Europe/Skopje":"MK","Europe/Sofia":"BG","Europe/Stockholm":"SE","Europe/Tallinn":"EE","Europe/Tirane":"AL","Europe/Ulyanovsk":"RU","Europe/Uzhgorod":"UA","Europe/Vaduz":"LI","Europe/Vatican":"VA","Europe/Vienna":"AT","Europe/Vilnius":"LT","Europe/Volgograd":"RU","Europe/Warsaw":"PL","Europe/Zagreb":"HR","Europe/Zaporozhye":"UA","Europe/Zurich":"CH","Indian/Antananarivo":"MG","Indian/Chagos":"IO","Indian/Christmas":"CX","Indian/Cocos":"CC","Indian/Comoro":"KM","Indian/Kerguelen":"TF","Indian/Mahe":"SC","Indian/Maldives":"MV","Indian/Mauritius":"MU","Indian/Mayotte":"YT","Indian/Reunion":"RE","Pacific/Apia":"WS","Pacific/Auckland":"NZ","Pacific/Bougainville":"PG","Pacific/Chatham":"NZ","Pacific/Chuuk":"FM","Pacific/Easter":"CL","Pacific/Efate":"VU","Pacific/Enderbury":"KI","Pacific/Fakaofo":"TK","Pacific/Fiji":"FJ","Pacific/Funafuti":"TV","Pacific/Galapagos":"EC","Pacific/Gambier":"PF","Pacific/Guadalcanal":"SB","Pacific/Guam":"GU","Pacific/Honolulu":"US","Pacific/Johnston":"UM","Pacific/Kiritimati":"KI","Pacific/Kosrae":"FM","Pacific/Kwajalein":"MH","Pacific/Majuro":"MH","Pacific/Marquesas":"PF","Pacific/Midway":"UM","Pacific/Nauru":"NR","Pacific/Niue":"NU","Pacific/Norfolk":"NF","Pacific/Noumea":"NC","Pacific/Pago_Pago":"AS","Pacific/Palau":"PW","Pacific/Pitcairn":"PN","Pacific/Pohnpei":"FM","Pacific/Port_Moresby":"PG","Pacific/Rarotonga":"CK","Pacific/Saipan":"MP","Pacific/Tahiti":"PF","Pacific/Tarawa":"KI","Pacific/Tongatapu":"TO","Pacific/Wake":"UM","Pacific/Wallis":"WF"};var o=function(De){return De.Algolia="yyyy-MM-dd'T'HH:mm:ss:SSz",De.AlgoliaNumeric="yyyyMMddHHmmss",De.Automatic="automatic",De.ChatMessage="d MMM YYY, HH:mm",De.Date="yyyy-MM-dd",De.Default="dd/MM/yyyy \u2022 HH:mm",De.DefaultWithoutHour="dd/MM/yyyy",De.DefaultWithoutHourUsFormat="MM/dd/yyyy",De.FileExport="yyyy-MM-dd'T'HH-mm-ss",De.LocaleDateFull="PPPP",De.LocaleDateLong="PPP",De.LocaleDateMedium="PP",De.LocaleDateShort="P",De.LocaleDateTimeFull="PPPPp",De.LocaleDateTimeLong="PPPp",De.LocaleDateTimeMedium="PPp",De.LocaleDateTimeShort="Pp",De.LocaleTimeFull="pppp",De.LocaleTimeLong="ppp",De.LocaleTimeMedium="pp",De.LocaleTimeShort="p",De.Long="yyyy-MM-dd HH:mm:ss",De.TimeShort="HH:mm",De.Timezone="xxx",De.TimezoneShort="x",De.UsFormat="MM/dd/yyyy \u2022 HH:mm",De.UTCWithoutTimezone="yyyy-MM-dd'T'HH:mm:ss",De.VerboseDay="iiii",De.WithoutYear="dd/MM \u2022 HH:mm",De}(o||{}),s=r(21431),i=r(54597),p=r(47858),f=r(33336),N=r(95607),A=r(96279),I=r(31859),b=r(88345),l=r(54796),R=r(69832),v=function(De){return De.Czech="cs",De.Dutch="nl",De.Empty="",De.English="en",De.French="fr",De.German="de",De.Italian="it",De.Latvian="lv",De.Polish="pl",De.Portugues="pt",De.PortuguesBrasil="pt_BR",De.Romanian="ro",De.Russian="ru",De.Slovak="sk",De.Spanish="es",De}(v||{}),E=r(8101);function h(De){return Oe=>{const $e=Oe||{},rt=$e.width?String($e.width):De.defaultWidth;return De.formats[rt]||De.formats[De.defaultWidth]}}const V={date:h({defaultWidth:"full",formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} 'um' {{time}}",long:"do MMM 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},Y={...E.de,formatLong:V,shortDayLabel:"d",shortDelaySeparator:":"};var a=r(55818);const H={date:h({defaultWidth:"full",formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} 'at' {{time}}",long:"MMM do 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},Q={...a.c,formatLong:H,shortDayLabel:"d",shortDelaySeparator:":"};var O=r(80210);const He={date:h({defaultWidth:"full",formats:{full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} 'a las' {{time}}",long:"d MMM 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},Ce={...O.es,formatLong:He,shortDayLabel:"d",shortDelaySeparator:":"};var ce=r(42809);const Ge={date:h({defaultWidth:"full",formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} '\xe0' {{time}}",long:"d MMM '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},ze={...ce.fr,formatLong:Ge,shortDayLabel:"j",shortDelaySeparator:"h"};var k=r(85356);const ue={date:h({defaultWidth:"full",formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} {{time}}",long:"d MMM {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},Re={...k.it,formatLong:ue,shortDayLabel:"d",shortDelaySeparator:":"};var he=r(84620);const re={date:h({defaultWidth:"full",formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} 'om' {{time}}",long:"d MMM 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},Ae={...he.nl,formatLong:re,shortDayLabel:"d",shortDelaySeparator:":"};var y=r(25115);const Qe={date:h({defaultWidth:"full",formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} {{time}}",long:"do MMM {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},Ve={...y.pl,formatLong:Qe,shortDayLabel:"d",shortDelaySeparator:":"};var g=r(39316);const et={date:h({defaultWidth:"full",formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} '\xe0s' {{time}}",long:"d 'de' MMM '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},Dt={...g.pt,formatLong:et,shortDayLabel:"d",shortDelaySeparator:":"};var je=r(66233);const Lt={date:h({defaultWidth:"full",formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"}}),dateTime:h({defaultWidth:"full",formats:{full:"{{date}} {{time}}",long:"do MMM {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"}}),time:h({defaultWidth:"full",formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"}})},pt={...je.ro,formatLong:Lt,shortDayLabel:"d",shortDelaySeparator:":"};var xt=function(De){return De.Default="CC, UTC OFF",De.Parenthesis="CC (UTC OFF)",De}(xt||{});const T=Intl.DateTimeFormat().resolvedOptions().timeZone,Se={format:o.Automatic},Xe={...Se},ne={...Se,slotSeparator:" / "},we={...Se,format:o.TimezoneShort,timezoneFormat:xt.Default},ge=De=>{const Oe={de:Y,en:Q,es:Ce,fr:ze,it:Re,nl:Ae,pl:Ve,pt:Dt,ro:pt};return Oe[De]??Oe.en},Ne=(De,Oe=Se)=>{if(!De)return;let $e;Oe=Oe?{...Se,...Oe}:Se,"string"==typeof De&&(De=(0,s.H)(De)),Oe.languageCode&&($e={locale:ge(Oe.languageCode)}),Oe.format=Oe.format??Se.format,Oe.format===o.Automatic&&(Oe.format=o.LocaleDateTimeLong);let rt=Oe.timezone?(0,R.qD)(De,Oe.timezone,Oe.format,$e):(0,i.GP)(De,Oe.format,$e);return Oe.displayCountryCode&&(rt=`${rt} ${Oe.timezone&&e[Oe.timezone]||t}`),rt},Ut=(De,Oe,$e=Xe)=>{"string"==typeof De&&(De=(0,s.H)(De)),"string"==typeof Oe&&(Oe=(0,s.H)(Oe));const rt=Math.abs((0,p.o)(De,Oe)),B=Math.abs((0,f.m)(De,Oe)),dt=(0,N.d)(De,Oe)?"+":"-",ut=ge($e.languageCode??v.English),ot=rt>0,gt=(0,A.F)({end:(0,N.d)(De,Oe)?De:Oe,start:(0,N.d)(De,Oe)?Oe:De}),Ri=ot&&B>0?`${B}${ut.shortDayLabel}`:`${gt.hours??0}${ut.shortDelaySeparator}${(gt.minutes??0)<10?"0":""}${Math.abs(gt.minutes??0)}`;return ot?`${dt}${Ri}`:void 0},te=(De,Oe)=>Oe?(0,I.m)(De,{addSuffix:Oe.addSuffix,includeSeconds:Oe.includeSeconds,locale:Oe.languageCode?ge(Oe.languageCode):void 0}):(0,I.m)(De),lt=(De,Oe=we)=>{(Oe=Oe?{...we,...Oe}:we).format=Oe.format??we.format,Oe.timezone=Oe.timezone??Intl.DateTimeFormat().resolvedOptions().timeZone,"string"==typeof De&&(De=(0,s.H)(De));const $e=e[Oe.timezone]||t,rt=De&&Ne(De,{format:Oe.format,timezone:Oe.timezone});return Oe.timezoneFormat?Oe.timezoneFormat.replace("CC",$e).replace("OFF",rt):""},se=(De,Oe,$e=ne)=>{$e=$e?{...ne,...$e}:ne,"string"==typeof De&&(De=(0,s.H)(De)),"string"==typeof Oe&&(Oe=(0,s.H)(Oe));const rt=Ne(De,$e);if(!Oe||De.getTime()===Oe.getTime())return rt;const B=(0,R.L_)(Oe.toISOString(),$e.timezone),dt=(0,R.L_)(De.toISOString(),$e.timezone),ut=(0,b.r)(dt,B)?Ne(Oe,{...$e,format:o.LocaleTimeShort}):Ne(Oe,$e);return`${rt}${$e.slotSeparator}${ut}`},de=p.o,nt=(De,Oe)=>{if(!De)throw new Error("At least one date should be provided");"string"==typeof De&&(De=(0,s.H)(De)),"string"==typeof Oe&&(Oe=(0,s.H)(Oe));const $e=de(De,Oe);let rt=(0,l.M)(De,Oe);rt=rt>0?Math.floor(rt):Math.ceil(rt);const B=$e>0?"+":"-",dt=bt(rt,$e);return 0===$e?`${rt}:${dt}`:`${B}${Math.abs(rt)}:${dt}`},bt=(De,Oe)=>{const rt=Math.abs(Oe-60*De);return`${rt<10?"0":""}${rt}`};var At=r(88130),Nt=r(59279);class it{static#e=this.languages=[];static#t=this.czech=it.create("Czech",v.Czech,r(50467));static#i=this.dutch=it.create("Dutch",v.Dutch,r(98255));static#n=this.english=it.create("English",v.English,r(91038));static#o=this.french=it.create("Fran\xe7ais",v.French,r(84477));static#r=this.german=it.create("Deutsch",v.German,r(12870));static#a=this.italian=it.create("Italiano",v.Italian,r(46536));static#s=this.latvian=it.create("Latvian",v.Latvian,r(64575));static#l=this.polish=it.create("Polski",v.Polish,r(2565));static#d=this.portugues=it.create("Portugu\xeas",v.Portugues,r(70653));static#c=this.romanian=it.create("Rom\xe2n\u0103",v.Romanian,r(71906));static#p=this.russian=it.create("\u0420\u0443\u0441\u0441\u043a\u0438\u0439",v.Russian,r(7512));static#u=this.slovak=it.create("Slovak",v.Slovak,r(38395));static#g=this.spanish=it.create("Espa\xf1ol",v.Spanish,r(88789));static#m=this.default=it.french;constructor(Oe,$e){this.name=Oe,this.code=$e}static create(Oe,$e,rt){(0,At.registerLocale)(rt);const B=new it(Oe,$e);return it.languages.push(B),B}static createEmpty(){return new it("",v.Empty)}static findCode(Oe){return it.languages.find($e=>Oe&&Oe.includes($e.code))}static getByCode(Oe){return it.findCode(Oe)||it.createEmpty()}static getLanguagesCodes(){return(0,Nt.A)("code",it.getSupportedLanguages())}static getSupportedLanguages(){return it.languages}static getTranslatedLanguage(Oe,$e){return new Intl.DisplayNames([Oe],{type:"language"}).of($e)}}},6622:(fe,J,r)=>{"use strict";r.d(J,{w:()=>N});const e=new class t{error(...I){console.error(...I)}log(...I){console.log(...I)}warn(...I){console.warn(...I)}},o={ifReturnNull:!1};function N(A=o){return(I,b,l)=>{!function f(A,I,b,l){const R=b.value;let v=A.constructor.name;return b.value=function(...E){const h=R.apply(this,E);return"Function"===v&&(v=A.name),E[0]instanceof Error?(function p(A,I,b){e.error(`${A}.${I} => `,b)}(v,I,E[0]),h):l.ifReturnNull&&!h?(function i(A,I,b){e.warn(`${A}.${I} => return null or undefined for ${b}`)}(v,I,E[0]),h):(l.ifReturnNull||function s(A,I,b){e.log(`${A}.${I} => `,b)}(v,I,E),h)},b}(I,b,l,A)}}},26237:(fe,J,r)=>{"use strict";r.d(J,{wx:()=>F,ww:()=>a,Q_:()=>h,Bg:()=>E});var t=r(54460),e=r(44687),o=r(76803),s=r(18306),i=r(48891),p=r(18447);const f=new i.nKC("MODAL_DATA");let N=(()=>{class P{constructor(z){this.viewContainerRef=z}static#e=this.\u0275fac=function(H){return new(H||P)(i.rXU(i.c1b))};static#t=this.\u0275dir=i.FsC({type:P,selectors:[["","shModalPartialHost",""]]})}return P})(),A=(()=>{class P{static#e=this.\u0275fac=function(H){return new(H||P)};static#t=this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac})}return P})();var I=r(53220);function b(P,u){}function l(P,u){if(1&P){const z=i.RV6();i.j41(0,"shui-button",10),i.bIt("click",function(){i.eBV(z);const x=i.XpG(2);return i.Njj(x.onConfirm())}),i.j41(1,"label",11),i.EFF(2),i.nI1(3,"translate"),i.k0s()()}if(2&P){const z=i.XpG(2);i.Y8G("disabled",z.modalComponent.instance.formGroup&&z.modalComponent.instance.formGroup.invalid),i.R7$(2),i.JRh(i.bMT(3,2,z.options.confirmLabel))}}function R(P,u){if(1&P){const z=i.RV6();i.j41(0,"div",6)(1,"shui-button",7),i.bIt("click",function(){i.eBV(z);const x=i.XpG();return i.Njj(x.onDismiss())}),i.j41(2,"label",8),i.EFF(3,"Close"),i.k0s()(),i.DNE(4,l,4,4,"shui-button",9),i.k0s()}if(2&P){const z=i.XpG();i.R7$(4),i.Y8G("ngIf",!z.options.isAlert&&z.options.confirmLabel)}}let v=(()=>{class P{constructor(z,H,x){this.inputs=z,this.componentFactoryResolver=H,this.state=x,this.options=this.state.options}ngOnInit(){this.loadModalContentComponent()}onConfirm(){this.modalComponent.instance.formGroup&&this.modalComponent.instance.formGroup.invalid||this.state.modal.close(this.modalComponent.instance)}onDismiss(){this.state.modal.dismiss(this.modalComponent.instance)}loadModalContentComponent(){const z=this.modalContentHost.viewContainerRef;z.clear();const H=this.componentFactoryResolver.resolveComponentFactory(this.state.component);this.modalComponent=z.createComponent(H),Object.assign(this.modalComponent.instance,this.inputs)}static#e=this.\u0275fac=function(H){return new(H||P)(i.rXU(f),i.rXU(i.OM3),i.rXU(A))};static#t=this.\u0275cmp=i.VBU({type:P,selectors:[["sh-modal-partial"]],viewQuery:function(H,x){if(1&H&&i.GBs(N,7),2&H){let Q;i.mGM(Q=i.lsd())&&(x.modalContentHost=Q.first)}},decls:10,vars:8,consts:[[1,"modal-header","border-bottom-0"],[1,"modal-title","text-gray-600"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],["shModalPartialHost",""],["class","modal-footer border-top-0 justify-content-center",4,"ngIf"],[1,"modal-footer","border-top-0","justify-content-center"],["btnTheme","secondary",3,"click"],["slot","label","translate",""],[3,"disabled","click",4,"ngIf"],[3,"click","disabled"],["slot","label"]],template:function(H,x){1&H&&(i.j41(0,"div",0)(1,"h2",1),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"button",2),i.bIt("click",function(){return x.onDismiss()}),i.j41(5,"span"),i.EFF(6,"\xd7"),i.k0s()()(),i.j41(7,"div",3),i.DNE(8,b,0,0,"ng-template",4),i.k0s(),i.DNE(9,R,5,1,"div",5)),2&H&&(i.AVh("bg-red-700",x.options.isAlert)("text-white",x.options.isAlert),i.R7$(2),i.SpI(" ",i.bMT(3,6,x.options.title)," "),i.R7$(7),i.Y8G("ngIf",!x.options.isDialog))},dependencies:[t.bT,I.Mm,s.Qp,N,I.D9],encapsulation:2})}return P})(),E=(()=>{class P{constructor(z,H,x){this.injector=z,this.modalConfirmState=H,this.ngbModal=x,this.alertModalConfig={isAlert:!0},this.defaultModalConfig={backdropClass:"bg-shippeo-900",confirmLabel:"Confirm",title:"default title"},this.dialogModalConfig={isDialog:!0}}showAlert(z){return this.setupModal(z,this.alertModalConfig)}showConfirm(z){return this.setupModal(z)}showDialog(z){return this.setupModal(z,this.dialogModalConfig)}showFullPage(z){return this.setupFullPageModal(z)}setupFullPageModal(z){const H=this.setupInjector(z);this.modalConfirmState.modal=this.ngbModal.open(z.component,{backdropClass:z.backdropClass||this.defaultModalConfig.backdropClass,injector:H,windowClass:"fullscreen-modal"});const Q={isModal:!0,ngbCurrentModal:this.modalConfirmState.modal};return z.inputs=z.inputs?{...z.inputs,...Q}:Q,Object.assign(this.modalConfirmState.modal.componentInstance,z.inputs),this.setupModalResponse()}setupInjector(z){return i.zZn.create({parent:this.injector,providers:[{provide:f,useValue:z.inputs}]})}setupModal(z,H={}){const x={...this.defaultModalConfig,...H,...z},Q=this.setupInjector(x),O={backdropClass:z.backdropClass||x.backdropClass,injector:Q,size:x.size||void 0};return this.modalConfirmState.options=x,this.modalConfirmState.component=z.component,this.modalConfirmState.modal=this.ngbModal.open(v,O),this.setupModalResponse()}setupModalResponse(){const z=new p.B;return this.modalConfirmState.modal.result.then(H=>z.next({result:H,closed:!0,dismissed:!1})).catch(H=>z.error({result:H,closed:!1,dismissed:!0})),z}static#e=this.\u0275fac=function(H){return new(H||P)(i.KVO(i.zZn),i.KVO(A),i.KVO(o.Bq))};static#t=this.\u0275prov=i.jDH({token:P,factory:P.\u0275fac})}return P})(),h=(()=>{class P{static#e=this.\u0275fac=function(H){return new(H||P)};static#t=this.\u0275mod=i.$C({type:P});static#i=this.\u0275inj=i.G2t({providers:[A,E],imports:[t.MD,o.UN,e.LP,s.tm]})}return P})(),F=(()=>{class P{static#e=this.\u0275fac=function(H){return new(H||P)};static#t=this.\u0275mod=i.$C({type:P});static#i=this.\u0275inj=i.G2t({imports:[t.MD,e.LP,h]})}return P})();r(91167);let a=(()=>{class P{static#e=this.\u0275fac=function(H){return new(H||P)};static#t=this.\u0275mod=i.$C({type:P});static#i=this.\u0275inj=i.G2t({imports:[t.MD,e.LP,h]})}return P})()},36287:(fe,J,r)=>{"use strict";r.d(J,{k$c:()=>rt,waC:()=>K,JFo:()=>w,dCC:()=>re,sXn:()=>Ve,h3m:()=>It,FvM:()=>ki,Ti$:()=>we,fYX:()=>Zi,Xtw:()=>Wn,Bve:()=>nt,QDH:()=>bt,h0C:()=>Fe,dw4:()=>pt,Qt3:()=>B,EDo:()=>dt,Xjg:()=>ut,Eys:()=>ot,OUt:()=>Bn,p3o:()=>Sn,y0L:()=>it,KMV:()=>Nt,AOe:()=>gt,o6A:()=>ji,FY_:()=>fn,oYp:()=>mo,_BQ:()=>oi,vxO:()=>en,lB_:()=>yn,oQf:()=>Ki,_lf:()=>gr,D8M:()=>o,MWI:()=>i,Bxu:()=>Ie,Ib5:()=>wt,eLr:()=>Vn,Ux6:()=>Gr,fNC:()=>Pe,cST:()=>Oi,qs2:()=>Ge,mUg:()=>Cn,tfS:()=>ri,exk:()=>En,IEf:()=>jo,qEk:()=>Ro,OL1:()=>wn,jYY:()=>Ur,ePC:()=>tn,QCF:()=>Jo,Kcy:()=>Xo,Mhl:()=>Yn,pxX:()=>Li,tI9:()=>St,t49:()=>Zo,M1z:()=>Ye,km9:()=>U,tjN:()=>Sr,hNF:()=>eo,yb4:()=>he,XCh:()=>Y,NvA:()=>x,zSg:()=>Q,DjO:()=>O,a4k:()=>me,nCs:()=>Re,Flv:()=>lo,puw:()=>Yi,djs:()=>ao,bH$:()=>Pr,Wt9:()=>k,gp9:()=>Qo,X6$:()=>Ue,$8W:()=>er,EVO:()=>dn,f_e:()=>wi,Tmg:()=>Me,CRd:()=>_e,Xfk:()=>ze,xp6:()=>Ht,Stz:()=>Yr,OR$:()=>H,vtl:()=>Fi,cO6:()=>Tt,JoA:()=>In,xJJ:()=>Fr,lkQ:()=>fi,vwO:()=>Gt,bZX:()=>Xn,kt9:()=>nn,e1J:()=>Pt,B9_:()=>gi,u4t:()=>Rt,rvH:()=>Ui,CqM:()=>Wr,jVh:()=>hi,B4q:()=>zi,Am7:()=>ai,TT5:()=>Jn,CIX:()=>Nn,KJW:()=>Et,NNf:()=>kn,B$E:()=>tt,lRW:()=>ct,V$D:()=>bn,Fvw:()=>ti,XEZ:()=>No,gG1:()=>vt,$HO:()=>at,XpL:()=>Yt,$8s:()=>M,_D7:()=>V,FV:()=>Be,qAx:()=>ae,BeN:()=>et,a2k:()=>je,QPO:()=>ft,CLD:()=>se,K4P:()=>Co,lnb:()=>So,bvP:()=>xt,HEt:()=>R,TeH:()=>v,mL7:()=>De,hJb:()=>Ri,FHG:()=>po,obR:()=>Rr,fFT:()=>Tr,XxY:()=>oa,xSE:()=>u,pZ7:()=>h,cY1:()=>l,R6c:()=>y,np_:()=>aa,c9V:()=>go,xyT:()=>X,tEm:()=>He,T6x:()=>Ce,INL:()=>ve,VbL:()=>ue,RNK:()=>ua,C0M:()=>Ir,epy:()=>Ar,WUx:()=>_a,kyr:()=>La,w3:()=>fo,YTe:()=>Xi,$dr:()=>An,eJH:()=>On,qjO:()=>Go,YtW:()=>Hn,f_O:()=>qr,b$6:()=>tr,l4F:()=>ra,tLX:()=>qe,AxT:()=>oe,e3T:()=>sa,B0T:()=>ea,SJ9:()=>la,Ubi:()=>Zn,cKe:()=>xr,JV1:()=>ya,Mo0:()=>Dr,L0f:()=>rn,hd0:()=>qo,iHi:()=>Oa,Fw6:()=>Rn,Lx0:()=>To,ROm:()=>Uo,vAN:()=>Lo,usp:()=>Mo});var t=r(31635),e=r(47817),o=function(n){return n.Custom="custom",n.Init="init",n.Suggestion="suggestion",n}(o||{}),s=function(n){return n[n.Lng=0]="Lng",n[n.Lat=1]="Lat",n}(s||{}),i=function(n){return n.Polygon="Polygon",n.Point="Point",n}(i||{});class p{constructor(m=[]){this.coordinates=[],this.type=i.Polygon,this.coordinates=m}getJson(){return{coordinates:this.coordinates,type:this.type}}getLat(){return 0}getLng(){return 0}getPolygonPaths(){return this.coordinates[0]||[]}getType(){return this.type}isFilledGeometry(){return!!this.coordinates.length}reset(){this.coordinates=[]}setCoordinates(m){this.coordinates=[this.correctPolygon(m)]}areTwoPositionsEqual(m,W){return m[s.Lng]===W[s.Lng]&&m[s.Lat]===W[s.Lat]}correctPolygon(m){return 0===m.length||this.isFirstPositionEqualToLastOne(m)||m.push(m[0]),m}isFirstPositionEqualToLastOne(m){return this.areTwoPositionsEqual(m[0],m[m.length-1])}}class f{constructor(m,W){this.type="Feature",this.geometry=m,this.properties=W}getGeoJson(){return{features:[{geometry:this.geometry.getJson(),properties:this.properties.getJson(),type:"Feature"}],type:"FeatureCollection"}}getGeometryType(){return this.geometry.getType()}getLat(){return this.geometry instanceof p?this.properties.centroid.getLat():this.geometry.getLat()}getLng(){return this.geometry instanceof p?this.properties.centroid.getLng():this.geometry.getLng()}getPolygonPaths(){return this.geometry.getPolygonPaths()}getRadius(){return this.properties.getRadius()}getStopCount(){return this.properties.getStopCount()}getType(){return this.properties.getType()}isCreation(){return this.properties.getType()===o.Custom}isFilledFeature(){return this.geometry.isFilledGeometry()}isSuggestion(){return this.properties.getType()===o.Suggestion}resetGeometry(){this.geometry.reset()}setGeometryCoordinates(m){this.geometry.setCoordinates(m)}setLat(m){this.geometry instanceof p?this.properties.centroid.setLat(m):this.geometry.setLat(m)}setLng(m){this.geometry instanceof p?this.properties.centroid.setLng(m):this.geometry.setLng(m)}setRadius(m){this.properties.setRadius(m)}setType(m){this.properties.setType(m)}}class N{constructor(m=[]){this.coordinates=[],this.type=i.Point,this.coordinates=m}getJson(){return{coordinates:this.coordinates,type:this.type}}getLat(){return this.coordinates[s.Lat]}getLng(){return this.coordinates[s.Lng]}getPolygonPaths(){return[]}getType(){return this.type}isFilledGeometry(){return!!this.coordinates.length}reset(){this.coordinates=[]}setCoordinates(m){this.coordinates=m[0]}setLat(m){this.coordinates[s.Lat]=m}setLng(m){this.coordinates[s.Lng]=m}}class A{constructor(m){this.centroid=Array.isArray(m.centroid)?new N(m.centroid):void 0,this.radius=m.radius,this.stopCount=m.nb_of_stops,this.type=m.type}getJson(){const m={centroid:this.centroid?[this.centroid.getLng(),this.centroid.getLat()]:void 0,nb_of_stops:this.stopCount,radius:this.radius,type:this.type};return Object.keys(m).forEach(W=>void 0===m[W]&&delete m[W]),m}getRadius(){return this.radius}getStopCount(){return this.stopCount}getType(){return this.type}setRadius(m){this.radius=m}setType(m){this.type=m}}class I{constructor(){this.features=[],this.type="FeatureCollection"}addFeature(m){this.features.push(m)}getFeatures(){return this.features}getFirstFeature(){return this.features[0]}getFirstFeatureType(){return this.getFirstFeature().getGeometryType()}getGeoJson(){return this.getFirstFeature().getGeoJson()}getLat(){return this.getFirstFeature().getLat()}getLng(){return this.getFirstFeature().getLng()}getPolygonGeometry(){return this.getFirstFeature().getPolygonPaths()}getRadius(){return this.getFirstFeature().getRadius()}isCircleGeoFencingType(){return this.getFirstFeatureType()===i.Point}isFilledGeoJson(){return this.getFirstFeature().isFilledFeature()}isPolygonGeoFencingType(){return this.getFirstFeatureType()===i.Polygon}resetGeometry(){this.getFirstFeature().resetGeometry()}setLat(m){this.getFirstFeature().setLat(m)}setLng(m){this.getFirstFeature().setLng(m)}setPolygonGeometry(m){this.getFirstFeature().setGeometryCoordinates(m)}setRadius(m){this.getFirstFeature().setRadius(m)}}const l=n=>{const m=new I;return n.features.forEach(W=>{m.addFeature((n=>{const m=new A(n.properties);let W;switch(n.geometry.type){case i.Point:W=new N(n.geometry.coordinates);break;case i.Polygon:W=new p(n.geometry.coordinates)}return new f(W,m)})(W))}),m},R=n=>{const W={radius:500,...n},Ee=new I,Ze=new A(W),zt=new N;return Ee.addFeature(new f(zt,Ze)),Ee},v=n=>{const W={centroid:[0,0],...n},Ee=new I,Ze=new A(W),zt=new p;return Ee.addFeature(new f(zt,Ze)),Ee};class E{clone(){return Object.assign(new E,this)}convertToPointGeometry(){const m=R({type:this.getType()});m.setLng(this.getLng()),m.setLat(this.getLat()),this.setGeoJson(m)}convertToPolygonGeometry(){const m=v({type:this.getType()});m.setLng(this.getLng()),m.setLat(this.getLat()),this.setGeoJson(m)}getGeoCodeFeatures(){return this.geoJson.getFeatures().map(m=>h({geoJson:m.getGeoJson(),lat:m.getLat(),lng:m.getLng()}))}getLat(){return this.isNeitherPolygonNorPoint()?this.geoJson.getLat():this.lat}getLng(){return this.isNeitherPolygonNorPoint()?this.geoJson.getLng():this.lng}getPolygon(){return this.getPolygonGeometry().map(m=>h({lat:m[s.Lat],lng:m[s.Lng]}))}getPolygonGeometryAsString(){return JSON.stringify(this.getPolygonGeometry())}getRadius(){return this.isNeitherPolygonNorPoint()?this.geoJson.getRadius():this.radius}getType(){return this.geoJson.getFirstFeature().getType()}hasLatLng(){return!(!this.getLat()||!this.getLng())}isCircleGeoFencingType(){return!!this.isNeitherPolygonNorPoint()&&this.geoJson.isCircleGeoFencingType()}isFilledGeoJson(){return this.geoJson.isFilledGeoJson()}isPolygonGeoFencingType(){return!!this.isNeitherPolygonNorPoint()&&this.geoJson.isPolygonGeoFencingType()}resetGeometry(){this.geoJson.resetGeometry()}setGeoJson(m){this.geoJson=m}setLat(m){this.isNeitherPolygonNorPoint()?this.setGeoJsonLat(m):this.lat=m}setLng(m){this.isNeitherPolygonNorPoint()?this.setGeoJsonLng(m):this.lng=m}setPolygonGeometry(m){this.geoJson.setPolygonGeometry(m)}setRadius(m){this.isNeitherPolygonNorPoint()?this.geoJson.setRadius(m):this.radius=m}setType(m){this.geoJson.getFirstFeature().setType(m)}transformRequest(){return this}getPolygonGeometry(){return this.geoJson.getPolygonGeometry()}isNeitherPolygonNorPoint(){return!!this.geoJson}setGeoJsonLat(m){this.geoJson.setLat(m)}setGeoJsonLng(m){this.geoJson.setLng(m)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],E.prototype,"lat",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],E.prototype,"lng",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],E.prototype,"radius",void 0);const h=n=>{const m=(0,e.Deserialize)(n,E);return n?.geoJson&&(m.geoJson=l(n.geoJson)),m};class C{constructor(){this.geoCode=new E}setGeoCodeRadius(m){this.geoCode.setRadius(m)}setGeoJson(m){this.geoCode.setGeoJson(m)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],C.prototype,"country",void 0),(0,t.Cg)([(0,e.deserializeAs)(E),(0,t.Sn)("design:type",E)],C.prototype,"geoCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],C.prototype,"postalCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],C.prototype,"street",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],C.prototype,"town",void 0);const M=(n={})=>(0,e.Deserialize)(n,C);let F=class extends C{};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],F.prototype,"name",void 0),F=(0,t.Cg)([(0,e.inheritSerialization)(C)],F);const V=(n={})=>(0,e.Deserialize)(n,F);class j{constructor(m){this.name=m,this.isActive=!0}isEqual(m){return this.name===m}}var Y=function(n){return n.ShippeoCredentialsOnly="SHIPPEO_CREDENTIALS_ONLY",n.SsoOnly="SSO_ONLY",n.SsoOrShippeoCredentials="SSO_OR_SHIPPEO_CREDENTIALS",n}(Y||{}),a=r(91167);class P{constructor(){this.isActive=!1}isEqual(m){return this.name===m}setIsActive(m){this.isActive=m}}(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],P.prototype,"description",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",Object)],P.prototype,"isActive",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],P.prototype,"label",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],P.prototype,"name",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],P.prototype,"group",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],P.prototype,"subSection",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],P.prototype,"infoMessage",void 0);const u=n=>(0,e.Deserialize)(n,P);var z=r(98583);class H{constructor(){this.registry=new z.bT,this.register()}add(m){return this.registry.set(m.name,m),this}get(m){let W;try{W=this.registry.get(m)}catch{W=new j(m)}return this.registry.containsKey(m)&&(W.isActive=!0),W}getValues(){return this.registry.getValues().toArray()}getValuesMerged(m=[]){return this.getValues().map(W=>m.find(Ze=>Ze.isEqual(W.name))||(W.isActive=!1,W))}}var x=function(n){return n.AddHandlingUnitOnTheFlyDelivery="ADD_HANDLING_UNIT_ON_THE_FLY_DELIVERED",n.AddHandlingUnitOnTheFlyLoaded="ADD_HANDLING_UNIT_ON_THE_FLY_LOADED",n.AllowMeansCreationUsingAPIOrders="ALLOW_MEANS_CREATION_USING_API_ORDERS",n.AllowOverrideOfGeofencingSetManuallyByEdi="ALLOW_OVERRIDE_OF_GEOFENCING_SET_MANUALLY_BY_EDI",n.AllowUnknownCarrierInOrderInV2="ALLOW_UNKNOWN_CARRIER_IN_ORDERS_IN_V2",n.AllowUnknownMeanInOrderInV2="ALLOW_UNKNOWN_MEAN_IN_ORDERS_IN_V2",n.AutomaticStatus="AUTOMATIC_STATUS",n.BetaRelease="BETA_RELEASE",n.BlockTourDetailsAccess="BLOCK_TOUR_DETAILS_ACCESS",n.CostVisibility="COST_VISIBILITY",n.DemoAirRailMode="DEMO_AIR_RAIL_MODE",n.DisableSalesforceSynchronization="DISABLE_SALESFORCE_SYNCHRONIZATION",n.DisplayOffDuty="DISPLAY_OFF_DUTY",n.DriverComplexFormSwitch="DRIVER_COMPLEX_FORM_SWITCH",n.DriveOrderStatusBasedHuEvents="DRIVE_ORDER_STATUS_BASED_HU_EVENTS",n.EnableAutoPairing="ENABLE_AUTO_PAIRING",n.EtaMLV2="ETA_MLV2",n.ExportHandlingUnits="EXPORT_HANDLING_UNITS",n.ExternalEta="EXTERNAL_ETA",n.FilterOnCargoDescription="FILTER_ON_CARGO_DESCRIPTION",n.FilterOnConsignmentReference="FILTER_ON_CONSIGNMENT_REFERENCE",n.FilterOrderClient="FILTER_ORDER_CLIENT",n.ForceOrderWithTour="FORCE_ORDER_WITH_TOUR",n.GeoCodeByName="GEOCODE_BY_NAME",n.GoodsWebReadOnly="GOODS_WEB_READ_ONLY",n.AllowDashboardInsight="ALLOW_DASHBOARD_INSIGHT",n.InsightsCarbon="INSIGHTS_CARBON",n.InsightsDelayCauses="INSIGHTS_DELAY_CAUSES",n.InsightsNotifications="NOTIFICATION_STATS",n.InsightsOceanCarbonDetailed="INSIGHTS_OCEAN_CARBON_DETAILED",n.InsightsPerformance="INSIGHTS_PERFORMANCE",n.InsightsPublicLinkAccess="PUBLIC_LINK_ACCESS_STATS",n.InsightsRoadCarbonDetailed="INSIGHTS_ROAD_CARBON_DETAILED",n.InsightsRoadCarbonCompleteness="INSIGHTS_ROAD_CARBON_COMPLETENESS",n.InsightsWhyTrackingAnalyzer="INSIGHTS_WHY_TRACKING_ANALYZER",n.InsightsOceanDemurrageDetention="INSIGHTS_OCEAN_DEMURRAGE_DETENTION",n.InsightsOceanLaneInsights="INSIGHTS_OCEAN_LANE_INSIGHTS",n.InsightsOceanMilestoneCompleteness="INSIGHTS_OCEAN_MILESTONE_COMPLETENESS",n.InsightsOceanPort="INSIGHTS_OCEAN_PORT",n.InsightsConformityStatus="INSIGHTS_CONFORMITY_STATUS",n.InsightsOceanCarbonCompleteness="INSIGHTS_OCEAN_CARBON_COMPLETENESS",n.MobileAllowValidationByEnterReference="MOBILE_ALLOW_VALIDATION_BY_ENTER_REFERENCE",n.MobileAppAccess="MOBILE_APP_ACCESS",n.MobileAppAllowWrongDelivery="MOBILE_APP_ALLOW_WRONG_DELIVERY",n.MobileDeliveryAvailableTypes="MOBILE_DELIVERY_AVAILABLE_TYPES",n.MobileDeliveryMaxExpectedQuantity="MOBILE_DELIVERY_MAX_EXPECTED_QUANTITY",n.MobileDeliveryPackingIssue="MOBILE_DELIVERY_PACKING_ISSUE",n.MobileLoadAvailableTypes="MOBILE_LOAD_AVAILABLE_TYPES",n.MobileOrderFreightStatementComformity="MOBILE_ORDER_FREIGHT_STATEMENT_CONFORMITY",n.MobileOrderIssueComment="MOBILE_ORDER_ISSUE_COMMENT",n.MobileOrderIssuePhoto="MOBILE_ORDER_ISSUE_PHOTO",n.MobileScanningPro="MOBILE_SCANNING_PRO",n.MobileStopIssueComment="MOBILE_STOP_ISSUE_COMMENT",n.MobileStopIssuePhoto="MOBILE_STOP_ISSUE_PHOTO",n.MobileTourEventAccept="MOBILE_TOUR_EVENT_ACCEPT",n.MobileTourEventFinishUncompleted="MOBILE_TOUR_EVENT_FINISH_UNCOMPLETED",n.MobileTourEventStart="MOBILE_TOUR_EVENT_START",n.MobileTourFinishComment="MOBILE_TOUR_FINISH_COMMENT",n.MobileTourFinishMileage="MOBILE_TOUR_FINISH_MILEAGE",n.MobileTourStartMileage="MOBILE_TOUR_START_MILEAGE",n.NoPlaceUpdateByEdi="NO_PLACE_UPDATE_BY_EDI",n.Ocean="OCEAN",n.OceanContainerExport="OCEAN_CONTAINER_EXPORT",n.OceanLegacyExport="OCEAN_EXPORT_LEGACY",n.OceanRoRoTracking="OCEAN_RORO_TRACKING",n.OceanToMicroService="OCEAN_TO_MICRO_SERVICE",n.OrderEcmrDocument="ORDER_ECMR_DOCUMENT",n.PlaceApiNoGeocode="PLACE_API_NO_GEOCODE",n.PriceManagedByShippeo="PRICE_MANAGED_BY_SHIPPEO",n.PricingPlan="PRICING_PLAN",n.Public="PUBLIC",n.QualityNewsletterManagement="QUALITY_NEWSLETTER_MANAGEMENT",n.ReGeoCode="REGEOCODE",n.RoadOrderExport="ROAD_ORDER_EXPORT",n.SendCETAEventOut="SEND_CETA_EVENT_OUT",n.SendOrderEventsOutBasedOnHandlingUnitEvents="SEND_ORDER_EVENTS_OUT_BASED_ON_HANDLING_UNIT_EVENTS",n.SequencingWaypoints="SEQUENCING_WAYPOINTS",n.TelematicMobile="TELEMATIC_MOBILE",n.TourOut="TOUR_OUT",n.TrackMisdeliveredHandlingUnit="TRACK_MISDELIVERED_HANDLING_UNIT",n.ViewSelectionTours="VIEW_SELECTION_TOURS",n}(x||{}),Q=function(n){return n.Edi="edi",n.General="general",n.Mobile="mobile",n.Web="web",n}(Q||{}),O=function(n){return n.ActionEvents="Action events",n.Administration="Administration",n.CharteringAndPairing="Chartering & pairing",n.CostVisibility="Cost visibility",n.Ecmr="E-CMR",n.Eta="ETA",n.EtaAndDelays="ETA & Delays",n.Events="Events",n.Export="Export",n.FilterAndColumns="Filters & columns",n.General="General",n.GlobalMap="Global map",n.GoodsManagement="Goods management",n.Insights="Insights",n.Ocean="Ocean features package",n.OrderCreation="Order creation",n.Other="Other",n.Places="Places",n.Positions="Positions",n.ReportIssue="Report issue",n.Salesforce="Salesforce",n.TourOut="Tour out",n.Tours="Tours",n.NotificationPricingPlan="Pricing plan",n}(O||{});class $ extends H{register(){this.add(u({description:(0,a.x)("Order is created without carrier"),label:(0,a.x)("Do not reject order if carrier is unknown in order-in V2"),name:x.AllowUnknownCarrierInOrderInV2,subSection:O.CharteringAndPairing})).add(u({description:(0,a.x)("reserved for carriers connected to Project44"),label:(0,a.x)("Allow creation of resource at order creation"),name:x.AllowMeansCreationUsingAPIOrders,subSection:O.CharteringAndPairing})).add(u({label:(0,a.x)("Do not reject order if resource is unknown"),name:x.AllowUnknownMeanInOrderInV2,subSection:O.CharteringAndPairing})).add(u({description:(0,a.x)("[[NSA organization edi feature]] When checked : Place update via EDI will overwrite manually chosen values of Geofence radius and coordinates. When unchecked : Place update via EDI will not overwrite manually chosen values of Geofence radius and coordinates"),label:(0,a.x)("Allow override of manual geofencing by EDI"),name:x.AllowOverrideOfGeofencingSetManuallyByEdi,subSection:O.Places})).add(u({description:(0,a.x)("Deactivate place update by EDI"),label:(0,a.x)("Deactivate place update by EDI"),name:x.NoPlaceUpdateByEdi,subSection:O.Places})).add(u({description:(0,a.x)("The first geocoding attempt for place creations will be done using the name of the place instead of its address"),label:(0,a.x)("Geocode by name first"),name:x.GeoCodeByName,subSection:O.Places})).add(u({description:(0,a.x)("This feature will make the place API reject any place creation/update where the geocoding information is not provided"),label:(0,a.x)("Deactivate place creation by API without geocoding"),name:x.PlaceApiNoGeocode,subSection:O.Places})).add(u({label:(0,a.x)("Send ETA/ETD via event-out generated by collaborative workflow"),name:x.SendCETAEventOut,subSection:O.Eta})).add(u({description:(0,a.x)("Enables order-out events based on order status updates generated by events based on Handling Unit level"),label:(0,a.x)("Send order events generated by handling unit events in Events-out"),name:x.SendOrderEventsOutBasedOnHandlingUnitEvents,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("This feature is a prerequisite to activate tour-out flows, it should be activated only on carrier organizations where this flow is needed"),label:(0,a.x)("Tour out activation"),name:x.TourOut,subSection:O.TourOut}))}}const X=()=>new $;class Z extends H{register(){this.add(u({description:(0,a.x)("All organization users have access to features in beta release"),label:(0,a.x)("Beta release"),name:x.BetaRelease})).add(u({description:(0,a.x)("Activate to prevent clients from seing this organisation when inviting carrier on the OAC"),label:(0,a.x)("Make the organization private (Carriers only)"),name:x.Public})).add(u({description:(0,a.x)("Deactivate to automatically create a Salesforce account. To link this organisation to an existing Salesforce account add the Salesforce account ID below."),label:(0,a.x)("Do not synchronize organisation with Salesforce"),name:x.DisableSalesforceSynchronization,subSection:O.Salesforce})).add(u({description:(0,a.x)("Activation of ETA ML-based. Do not activate without checking with A&P team."),label:(0,a.x)("ETA ML-based"),name:x.EtaMLV2,subSection:O.Eta})).add(u({description:(0,a.x)("Enables Shipper/Carrier to send external ETA through API."),label:(0,a.x)("External ETA"),name:x.ExternalEta,subSection:O.Eta})).add(u({description:(0,a.x)("Enables order statuses to be tracked based on GPS positions (Road Smart Automatic Events)"),label:(0,a.x)("Automatic status change"),name:x.AutomaticStatus,subSection:O.Events})).add(u({description:(0,a.x)('Enables the event "Misdelivered" on Handling Unit level if Handling Unit has been delivered outside the geofence area.'),label:(0,a.x)("Enable creation of misdelivered events on handling units"),name:x.TrackMisdeliveredHandlingUnit,subSection:O.Events})).add(u({description:(0,a.x)("Enables order statuses to be updated based on events Shippeo received on Handling Unit level"),label:(0,a.x)("Drive order execution status based on handling unit events."),name:x.DriveOrderStatusBasedHuEvents,subSection:O.Events})).add(u({description:(0,a.x)("Reserved for France Boissons users"),label:(0,a.x)("Price management"),name:x.PriceManagedByShippeo,subSection:O.Other})).add(u({description:(0,a.x)("Navigate from the simple to the complex form in the mobile resource form, displayed by a switch button in the front-office"),label:(0,a.x)("Display two forms in the mobile resource form"),name:x.DriverComplexFormSwitch,subSection:O.Other}))}}const He=()=>new Z;class L extends H{register(){this.add(u({description:(0,a.x)("Enable organization features for the mobile app"),isActive:!0,label:(0,a.x)("Organization will use the mobile app"),name:x.MobileAppAccess,subSection:O.General})).add(u({description:(0,a.x)("The driver can auto-pair itself to a tour with the tour's reference from the mobile app"),isActive:!0,label:(0,a.x)("Shipper organization can auto-pair"),name:x.EnableAutoPairing,subSection:O.General})).add(u({description:(0,a.x)("Automatically create tour reference when order created"),label:(0,a.x)("Force tour creation, if tour reference do not exist"),name:x.ForceOrderWithTour,subSection:O.General})).add(u({description:(0,a.x)("The driver can enter the mileage of the vehicle to start a tour"),label:(0,a.x)("Mandatory to enter the mileage of the truck when starting a tour"),name:x.MobileTourStartMileage,subSection:O.ActionEvents})).add(u({description:(0,a.x)("The driver can enter the mileage of the vehicle after performing delivery to finish the tour in Past tours"),label:(0,a.x)("Mandatory to enter mileage of the truck when finishing the tour"),name:x.MobileTourFinishMileage,subSection:O.ActionEvents})).add(u({description:(0,a.x)("The driver has to accept the tour from the mobile app to start performing loading/delivery for the orders in the tour"),label:(0,a.x)("Mandatory to select Accept to start the tour"),name:x.MobileTourEventAccept,subSection:O.ActionEvents})).add(u({label:(0,a.x)("Mandatory to select Start to start the tour actions (loading/delivery)"),name:x.MobileTourEventStart,subSection:O.ActionEvents})).add(u({label:(0,a.x)("Choose to select Finish to end an incomplete tour"),name:x.MobileTourEventFinishUncompleted,subSection:O.ActionEvents})).add(u({description:(0,a.x)("The driver can enter comments about the tour after the tour is finished"),label:(0,a.x)("Mandatory to enter a comment when finishing a tour"),name:x.MobileTourFinishComment,subSection:O.ActionEvents})).add(u({description:(0,a.x)("The driver can add a photo when reporting an issue at the stop level"),label:(0,a.x)("Mandatory to add a photo at reporting an issue"),name:x.MobileStopIssuePhoto,subSection:O.ReportIssue})).add(u({description:(0,a.x)("The driver can add comments when reporting an issue at the stop level"),label:(0,a.x)("Mandatory to enter a comment at reporting an issue"),name:x.MobileStopIssueComment,subSection:O.ReportIssue})).add(u({description:(0,a.x)("The driver can add photos when reporting an issue at the order level"),label:(0,a.x)("Mandatory to add a photo at reporting an issue"),name:x.MobileOrderIssuePhoto,subSection:O.ReportIssue})).add(u({description:(0,a.x)("The driver can enter comments when reporting an issue at the order level"),label:(0,a.x)("Mandatory to enter a comment at reporting an issue"),name:x.MobileOrderIssueComment,subSection:O.ReportIssue})).add(u({description:(0,a.x)("At the loading, the driver can load unexpected packing by declaring them from the list of available types"),label:(0,a.x)("Packing qualifier - At the loading, let the drivers load not expected packing qualifiers"),name:x.MobileLoadAvailableTypes,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("Let the driver enters conformity for the order at loading/delivery"),label:(0,a.x)("Packing qualifier - Let the driver enter the conformity of the loading/delivery at the statement"),name:x.MobileOrderFreightStatementComformity,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("Driver can scan the handling unit reference to add it to the order"),label:(0,a.x)("Handling unit - Mobile scanning with Scandit"),name:x.MobileScanningPro,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("Unexpected handling unit can be added at loading"),label:(0,a.x)("Handling unit - Allow driver to send HU information at loading"),name:x.AddHandlingUnitOnTheFlyLoaded,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("Unexpected handling unit can be added at delivery"),label:(0,a.x)("Handling unit - Allow driver to send HU information at delivery"),name:x.AddHandlingUnitOnTheFlyDelivery,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("Driver can perform delivery for the handling unit at another place"),label:(0,a.x)("Handling unit - Allow driver to deliver in the wrong place"),name:x.MobileAppAllowWrongDelivery,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("The driver can enter the reference of the handling unit manually to include it in the order at loading/delivery"),label:(0,a.x)("Handling unit - Allow driver to validate the handling unit by entering a reference"),name:x.MobileAllowValidationByEnterReference,subSection:O.GoodsManagement})).add(u({label:(0,a.x)("Packing qualifier - At the delivery, do not let the driver deliver more than expected quantity of packing qualifiers"),name:x.MobileDeliveryMaxExpectedQuantity,subSection:O.GoodsManagement})).add(u({label:(0,a.x)("Packing qualifier - At the delivery, let the drivers deliver not expected packing qualifiers"),name:x.MobileDeliveryAvailableTypes,subSection:O.GoodsManagement})).add(u({label:(0,a.x)("Packing qualifier - At the delivery, let the driver enter a reason for delivering less quantities than planned"),name:x.MobileDeliveryPackingIssue,subSection:O.GoodsManagement})).add(u({description:(0,a.x)("The driver can retrieve an E-CMR document for each order through the mobile app"),label:(0,a.x)("Mandatory to generate an ECMR document for all orders"),name:x.OrderEcmrDocument,subSection:O.Ecmr}))}}const Ce=()=>new L;class ce{constructor(m){Object.assign(this,m)}isEqual(m){return this.name===m}}var me=function(n){return n.HandlingUnitEventBuffer="EXECUTION_STATUS_BASED_ON_HANDLING_UNIT_EVENT_BUFFER",n.ImportCsv="IMPORT_CSV",n.MissedMilestoneExceptionThreshold="MISSED_MILESTONE_EXCEPTION_THRESHOLD",n.MobileSendPod="MOBILE_SEND_POD",n.MobileOrderFreightStatementClientCommentDelivery="MOBILE_ORDER_FREIGHT_STATEMENT_CLIENT_COMMENT_DELIVERY",n.MobileOrderFreightStatementClientCommentLoading="MOBILE_ORDER_FREIGHT_STATEMENT_CLIENT_COMMENT_LOADING",n.MobileOrderFreightStatementClientNameDelivery="MOBILE_ORDER_FREIGHT_STATEMENT_CLIENT_NAME_DELIVERY",n.MobileOrderFreightStatementClientNameLoading="MOBILE_ORDER_FREIGHT_STATEMENT_CLIENT_NAME_LOADING",n.MobileOrderFreightStatementClientSignatureDelivery="MOBILE_ORDER_FREIGHT_STATEMENT_CLIENT_SIGNATURE_DELIVERY",n.MobileOrderFreightStatementClientSignatureLoading="MOBILE_ORDER_FREIGHT_STATEMENT_CLIENT_SIGNATURE_LOADING",n.MobileOrderFreightStatementDriverCommentDelivery="MOBILE_ORDER_FREIGHT_STATEMENT_DRIVER_COMMENT_DELIVERY",n.MobileOrderFreightStatementDriverCommentLoading="MOBILE_ORDER_FREIGHT_STATEMENT_DRIVER_COMMENT_LOADING",n.MobileOrderFreightStatementDriverNameDelivery="MOBILE_ORDER_FREIGHT_STATEMENT_DRIVER_NAME_DELIVERY",n.MobileOrderFreightStatementDriverNameLoading="MOBILE_ORDER_FREIGHT_STATEMENT_DRIVER_NAME_LOADING",n.MobileOrderFreightStatementDriverSignatureLoading="MOBILE_ORDER_FREIGHT_STATEMENT_DRIVER_SIGNATURE_LOADING",n.MobileOrderFreightStatementDriverSignatureDelivery="MOBILE_ORDER_FREIGHT_STATEMENT_DRIVER_SIGNATURE_DELIVERY",n.MobileOrderFreightStatementPhoto="MOBILE_ORDER_FREIGHT_STATEMENT_PHOTO",n.MobileDeliveryReturnablePacking="MOBILE_DELIVERY_RETURNABLE_PACKING",n.OrderPositionOutMessageFrequency="ORDER_POSITION_OUT_MESSAGE_FREQUENCY",n.OrderPositionOutMessageResolution="ORDER_POSITION_OUT_MESSAGE_RESOLUTION",n.PairingBehavior="PAIRING_BEHAVIOR",n.PairingPriority="PAIRING_PRIORITY",n.PositionOutMaxPositionDateRangeDuration="POSITION_OUT_MAX_POSITION_DATE_RANGE_DURATION",n.PositionOutMaxNumberOfPositionsByMessage="POSITION_OUT_MAX_NUMBER_OF_POSITIONS_BY_MESSAGE",n.PositionOutMaxNumberOfResourcesByMessage="POSITION_OUT_MAX_NUMBER_OF_RESOURCES_BY_MESSAGE",n.OceanPositionOutMessageFrequency="OCEAN_POSITION_OUT_MESSAGE_FREQUENCY",n.OceanPositionOutMaxOctsPerMessage="OCEAN_POSITION_OUT_MAX_OTCS_PER_MESSAGE",n.OceanPositionOutMaxPositionDateRangeDuration="OCEAN_POSITION_OUT_MAX_POSITION_DATE_RANGE_DURATION",n.OrderLeadTimeFtlLtlMode="ORDER_LEAD_TIME_FTL_LTL_MODE",n.OrderLeadTimeParcelLegacyMode="ORDER_LEAD_TIME_PARCEL_LEGACY_MODE",n.OrderLeadTimeRailMode="ORDER_LEAD_TIME_RAIL_MODE",n.PositionRecord="POSITION_RECORD",n.PositionShare="POSITION_SHARE",n.Profile="PROFILE",n.NotificationPricingPlan="NOTIFICATION_PRICING_PLAN",n.RiskyDelay="RISKY_DELAY",n.ToleratedDelay="TOLERATED_DELAY",n}(me||{}),_e=function(n){return n.All="ALL",n.None="NONE",n.Current="CURRENT",n.PastOnly="PAST_ONLY",n}(_e||{}),Me=function(n){return n.OnDuty="ON_DUTY",n.Permanently="PERMANENTLY",n}(Me||{}),Ge=function(n){return n.LeroyMerlin="LEROYMERLIN",n.Schiever="SCHIEVER",n.Sggl="SGGL",n.Standard="STANDARD",n.Via="VIA",n}(Ge||{}),Ue=function(n){return n.Driver="DRIVER",n.Trailer="TRAILER",n.Truck="TRUCK",n}(Ue||{}),ze=function(n){return n.Mandatory="MANDATORY",n.Optional="OPTIONAL",n.Disabled="DISABLED",n}(ze||{}),k=function(n){return n.TelematicMobile="TELEMATIC_MOBILE",n}(k||{});class We extends H{register(){this.add(new ce({control:"mobileSendPod",description:(0,a.x)("The driver can send photos of the POD for an order"),label:(0,a.x)("The driver can send the photos of the POD for an order in the tour"),name:me.MobileSendPod,subSection:O.ActionEvents})).add(new ce({control:"mobileOrderFreightStatementPhoto",description:(0,a.x)("The driver can add photos of the order during loading/delivery"),label:(0,a.x)("Mandatory to add a photo at the statement of the loading / delivery"),name:me.MobileOrderFreightStatementPhoto,subSection:O.GoodsManagement})).add(new ce({control:"mobileDeliveryReturnablePacking",label:(0,a.x)("Packing qualifier - At the delivery, let the driver load returnable packing"),name:me.MobileDeliveryReturnablePacking,subSection:O.GoodsManagement})).add(new ce({control:"mobileOrderFreightStatementDriverNameLoading",description:(0,a.x)("The driver can add his/her name during loading"),label:(0,a.x)("Driver's details - Allow the driver to enter his/her name during loading"),name:me.MobileOrderFreightStatementDriverNameLoading,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementDriverNameDelivery",description:(0,a.x)("The driver can add his/her name during delivery"),label:(0,a.x)("Driver's details - Allow the driver to enter his/her name during delivery"),name:me.MobileOrderFreightStatementDriverNameDelivery,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementDriverCommentLoading",description:(0,a.x)("The driver can add his/her comments during loading"),label:(0,a.x)("Driver's details - Allow the driver to enter his/her comments during loading"),name:me.MobileOrderFreightStatementDriverCommentLoading,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementDriverCommentDelivery",description:(0,a.x)("The driver can add his/her comments during delivery"),label:(0,a.x)("Driver's details - Allow the driver to enter his/her comments during delivery"),name:me.MobileOrderFreightStatementDriverCommentDelivery,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementDriverSignatureLoading",description:(0,a.x)("The driver can enter his/her signature during loading"),label:(0,a.x)("Driver's details - Allow the driver to enter his/her signature during loading"),name:me.MobileOrderFreightStatementDriverSignatureLoading,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementDriverSignatureDelivery",description:(0,a.x)("The driver can enter his/her signature during delivery"),label:(0,a.x)("Driver's details - Allow the driver to enter his/her signature during delivery"),name:me.MobileOrderFreightStatementDriverSignatureDelivery,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementClientNameDelivery",description:(0,a.x)("The client can enter his/her name during delivery"),label:(0,a.x)("Client's details - Allow the client to enter his/her name during delivery"),name:me.MobileOrderFreightStatementClientNameDelivery,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementClientNameLoading",description:(0,a.x)("The client can enter his/her name during loading"),label:(0,a.x)("Client's details - Allow the client to enter his/her name during loading"),name:me.MobileOrderFreightStatementClientNameLoading,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementClientCommentLoading",description:(0,a.x)("The client can enter his/her comments during loading"),label:(0,a.x)("Client's details - Allow the client to enter his/her comments during loading"),name:me.MobileOrderFreightStatementClientCommentLoading,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementClientCommentDelivery",description:(0,a.x)("The client can enter his/her comments during delivery"),label:(0,a.x)("Client's details - Allow the client to enter his/her comments during delivery"),name:me.MobileOrderFreightStatementClientCommentDelivery,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementClientSignatureLoading",description:(0,a.x)("The client can enter his/her signature during loading"),label:(0,a.x)("Client's details - Allow the client to enter his/her signature during loading"),name:me.MobileOrderFreightStatementClientSignatureLoading,subSection:O.Ecmr})).add(new ce({control:"mobileOrderFreightStatementClientSignatureDelivery",description:(0,a.x)("The client can enter his/her signature during delivery"),label:(0,a.x)("Client's details - Allow the client to enter his/her signature during delivery"),name:me.MobileOrderFreightStatementClientSignatureDelivery,subSection:O.Ecmr}))}}const ve=()=>new We;class S extends H{register(){this.add(u({description:(0,a.x)("Supports Shippers to detect and relocate possibly wrongly located places based on collected data"),label:(0,a.x)("Ability to regeocode"),name:x.ReGeoCode,subSection:O.Administration})).add(u({description:(0,a.x)("Allow customer portal to have access to Insights."),label:(0,a.x)("Insights access for customer portals"),name:x.AllowDashboardInsight,subSection:O.Insights})).add(u({description:(0,a.x)("Allow shippers to subscribe their carriers to a newsletter to get an overview of their performance and tracking compliance indicators on a weekly basis"),label:(0,a.x)("Quality newsletter management"),name:x.QualityNewsletterManagement,subSection:O.Administration})).add(u({description:(0,a.x)("Analyze the operational performance"),label:(0,a.x)("Insights for Shippers - Performance"),name:x.InsightsPerformance,subSection:O.Insights})).add(u({description:(0,a.x)("Measure the utilization of the public link feature"),label:(0,a.x)("Insights for Shippers - Public link access"),name:x.InsightsPublicLinkAccess,subSection:O.Insights})).add(u({description:(0,a.x)("Understand better which notifications are generated, and measure the delivery and engagement rates of the emails and SMS sent"),label:(0,a.x)("Insights for Shippers - Notifications"),name:x.InsightsNotifications,subSection:O.Insights})).add(u({description:(0,a.x)("Activates an Insights dashboard displaying the different causes a delay happened on an order"),label:(0,a.x)("Insights for Shippers - Delay causes"),name:x.InsightsDelayCauses,subSection:O.Insights})).add(u({description:(0,a.x)("Insights dashboard to identify and take actions on anomalies preventing the order from being automatically tracked."),label:(0,a.x)("Insights for Shippers - Smart Tracking Analyzer"),name:x.InsightsWhyTrackingAnalyzer,subSection:O.Insights})).add(u({description:(0,a.x)("Do not activate without approval from the Product or Data Quality team."),label:(0,a.x)("Insights for Shippers - OCEAN Milestone Completeness dashboard"),name:x.InsightsOceanMilestoneCompleteness,subSection:O.Insights})).add(u({description:(0,a.x)("Insights OCEAN Port Insights dashboard."),label:(0,a.x)("Insights for Shippers - Port Insights dashboard."),name:x.InsightsOceanPort,subSection:O.Insights})).add(u({description:(0,a.x)("Insights OCEAN Demurrage & Detention Insights dashboards."),label:(0,a.x)("Insights for Shippers - Demurrage & Detention dashboards."),name:x.InsightsOceanDemurrageDetention,subSection:O.Insights})).add(u({description:(0,a.x)("Insights OCEAN Lane Insights dashboard."),label:(0,a.x)("Insights for Shippers - Lane Insights dashboard."),name:x.InsightsOceanLaneInsights,subSection:O.Insights})).add(u({description:(0,a.x)("Insights Conformity Status dashboards."),label:(0,a.x)("Insights for Shippers - Conformity Status dashboards"),name:x.InsightsConformityStatus,subSection:O.Insights})).add(u({description:(0,a.x)("Insights Carbon dashboard."),label:(0,a.x)("Insights for Shippers - Carbon dashboard"),name:x.InsightsCarbon,subSection:O.Insights})).add(u({description:(0,a.x)("Users have access to the Insights Carbon Data completeness (Ocean). Only available for users from organizations that subscribed to the Shippeo Premium Plan."),label:(0,a.x)("Insights - Carbon Data completeness (Ocean)"),name:x.InsightsOceanCarbonCompleteness,subSection:O.Insights})).add(u({description:(0,a.x)("Possibility to choose between the waypoints view and the orders view on tours pages"),label:(0,a.x)("Tour view"),name:x.ViewSelectionTours,subSection:O.Tours})).add(u({description:(0,a.x)("Enable users to sequence waypoints within a tour. To activate the feature, users need to go to Preferences > Display settings > Platform settings section > Tour page view > and check Waypoints instead of Orders."),label:(0,a.x)("Sequence waypoints"),name:x.SequencingWaypoints,subSection:O.Tours})).add(u({description:(0,a.x)("Users will not be able to access to Tour details page"),label:(0,a.x)("Block tour details access"),name:x.BlockTourDetailsAccess,subSection:O.Tours})).add(u({description:(0,a.x)('Makes "Display off-duty resources" button accessible'),label:(0,a.x)("Display my off-duty resources on Global Map"),name:x.DisplayOffDuty,subSection:O.GlobalMap})).add(u({description:(0,a.x)("Allows users to access the specific display of maritime orders in Order list."),label:(0,a.x)("Ocean features activation"),name:x.Ocean,subSection:O.Ocean})).add(u({label:(0,a.x)("[[ocean settings]] Activate architecture V2 for Ocean Orders"),name:x.OceanToMicroService,subSection:O.Ocean})).add(u({description:(0,a.x)("[[OV orga feature]] Update filters and columns to show all ocean cargo types (container, RoRo, breakbulk), not just containers"),label:(0,a.x)("[[OV orga feature]] Activate RoRo/Breakbulk display"),name:x.OceanRoRoTracking,subSection:O.Ocean})).add(u({description:(0,a.x)("Filter and column"),label:(0,a.x)("Display customer references"),name:x.FilterOrderClient,subSection:O.FilterAndColumns})).add(u({description:(0,a.x)('Allows users to have filter to search on "Consignment reference" on Order list and Tour list on the client site'),label:(0,a.x)("Add filter on consignment reference"),name:x.FilterOnConsignmentReference,subSection:O.FilterAndColumns})).add(u({description:(0,a.x)('Allows users to have filter "Cargo - Description" on Order list and Tour list on the client site'),label:(0,a.x)("Add filter on cargo description"),name:x.FilterOnCargoDescription,subSection:O.FilterAndColumns})).add(u({description:(0,a.x)("Allow users to be directed to (external) cost visibility module via a button displayed on Top bar"),label:(0,a.x)("Cost visibility"),name:x.CostVisibility,subSection:O.CostVisibility})).add(u({description:(0,a.x)("Order creation form"),label:(0,a.x)("Prevent modification of goods"),name:x.GoodsWebReadOnly,subSection:O.OrderCreation})).add(u({description:(0,a.x)("Users can export handling units."),label:(0,a.x)("Handling units export"),name:x.ExportHandlingUnits,subSection:O.Export})).add(u({description:(0,a.x)("[[NSA insight export]] Users can export orders via CSV download received by e-mail"),label:(0,a.x)("[[NSA insight export]] Order export (via e-mail)"),name:x.OceanContainerExport,subSection:O.Export})).add(u({description:(0,a.x)("[[NSA insight export]] Users can export orders from the platform"),label:(0,a.x)("[[NSA insight export]]  (Deprecated) Order export (from platform, phasing out)"),name:x.RoadOrderExport,subSection:O.Export})).add(u({description:(0,a.x)("[[Web feature organization]] Users can use the legacy export for ocean"),label:(0,a.x)("[[Web feature organization]] Legacy ocean export"),name:x.OceanLegacyExport,subSection:O.Export})).add(u({description:(0,a.x)("Users have access to the Insights Carbon Data completeness (Road). Only available for users from organizations that subscribed to the Shippeo Premium Plan."),label:(0,a.x)("Insights - Carbon Data completeness (Road)"),name:x.InsightsRoadCarbonCompleteness,subSection:O.Insights})).add(u({description:(0,a.x)("Users have access to the Insights Carbon Detailed (Ocean). Only available for users from organizations that subscribed to the Shippeo Premium Plan."),label:(0,a.x)("Insights - Carbon detailed (Ocean)"),name:x.InsightsOceanCarbonDetailed,subSection:O.Insights})).add(u({description:(0,a.x)("Users have access to the Insights Carbon Detailed (Road). Only available for users from organizations that subscribed to the Shippeo Premium Plan."),label:(0,a.x)("Insights - Carbon detailed (Road)"),name:x.InsightsRoadCarbonDetailed,subSection:O.Insights}))}}const ue=()=>new S,d={Deserialize:n=>n.map(m=>{const W=Ce().get(m),Ee=He().get(m),Ze=ue().get(m),zt=X().get(m),jr=ve().get(m);return W instanceof j?Ze instanceof j?zt instanceof j?jr instanceof j?Ee:jr:zt:Ze:W}),Serialize:n=>n.filter(m=>m.isActive).map(({name:m})=>m)};var Re=function(n){return n.Carrier="carrier",n.Lsp="lsp",n.Shipper="shipper",n.ThirdParty="third-party",n}(Re||{});class he{constructor(){this.authenticationMethod=Y.ShippeoCredentialsOnly,this.features=[],this.preferences=[],this.portfolios=[]}static#e=this.IDENTIFICATION_NUMBER_MIN_LENGTH=5;getFeatureNames(){return this.features.map(m=>m.name)}getId(){return this.id}getPreference(m){return this.preferences.find(W=>W.name===m)}getSalesforceId(){return this.salesforceId}hasId(){return!!this.id}setFeatures(m){const W=m.filter(Ze=>Ze.isActive),Ee=this.features.filter(Ze=>Ze instanceof j);this.features=W.concat(Ee)}transformRequest(){return Object.assign({profile:Re.Carrier},this,{accountOwner:this.accountOwner?.id,address:{country:this.address.country,geoCode:{lat:this.address.geoCode?.getLat(),lng:this.address.geoCode?.getLng()},postalCode:this.address.postalCode,street:this.address.street,town:this.address.town},features:d.Serialize(this.features)})}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],he.prototype,"accountOwner",void 0),(0,t.Cg)([(0,e.deserializeAs)(C),(0,t.Sn)("design:type",C)],he.prototype,"address",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"authenticationMethod",void 0),(0,t.Cg)([(0,e.autoserializeAs)(d),(0,t.Sn)("design:type",Array)],he.prototype,"features",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],he.prototype,"identificationNumbers",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],he.prototype,"isDefaultMobileOrganization",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"language",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"phone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],he.prototype,"preferences",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],he.prototype,"portfolios",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"profile",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],he.prototype,"public",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],he.prototype,"roles",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],he.prototype,"salesforceId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],he.prototype,"test",void 0);const oe=(n={})=>(0,e.Deserialize)(n,he),qe=()=>oe({address:M(),features:[x.AutomaticStatus,x.DisableSalesforceSynchronization]});var w=function(n){return n.AutoConfirm="AUTO_CONFIRM",n.BlockPairingModification="BLOCK_PAIRING_MODIFICATION",n.CarbonCalculation="CARBON_CALCULATION",n.GeofencingBasedItinerary="GEOFENCING_BASED_ITINERARY",n.OceanCarbonVisibility="OCEAN_CARBON_DATA_COMPLETENESS_CALCULATION",n.OceanCargoTab="OCEAN_CARGO_TAB",n.OrderGoodsDeliveredAndLeftDeliverySiteNotProvidedWorkflow="ORDER_GOODS_DELIVERED_AND_LEFT_DELIVERY_SITE_NOT_PROVIDED_WORKFLOW",n.OrderGoodsLoadedAndLeftLoadingSiteNotProvidedWorkflow="ORDER_GOODS_LOADED_AND_LEFT_LOADING_SITE_NOT_PROVIDED_WORKFLOW",n.ParcelToMicroService="PARCEL_TO_MICRO_SERVICE",n.PublicLink="PUBLIC_LINK",n.PublicLinkLight="PUBLIC_LINK_LIGHT",n.PublicLinkOceanCargoTab="PUBLIC_LINK_OCEAN_CARGO_TAB",n.PublicLinkOceanTags="PUBLIC_LINK_OCEAN_TAGS",n.TcwCarrierExtraCostRequestWorkflow="TCW_CARRIER_EXTRA_COST_REQUEST_WORKFLOW",n.TcwCarrierIncidentDeclarationWorkflow="TCW_CARRIER_INCIDENT_DECLARATION_WORKFLOW",n.TcwDelayOnDeliverySites="TCW_DELAY_ON_DELIVERY_SITES_WORKFLOW",n.TcwDelayOnLoadingSites="TCW_DELAY_ON_LOADING_SITES_WORKFLOW",n.TcwDriverBreakDeclaration="TCW_DRIVER_BREAK_DECLARATION_WORKFLOW",n.TcwEarlyDeliveryRequestWorkflow="TCW_EARLY_DELIVERY_REQUEST_WORKFLOW",n.TcwFullManualMode="TCW_FULL_MANUAL_MODE_WORKFLOW",n.TcwHotShipment="TCW_HOT_SHIPMENT_WORKFLOW",n.TcwLateArrivalOnDeliverySitesJustification="TCW_LATE_ARRIVAL_ON_DELIVERY_SITES_JUSTIFICATION_WORKFLOW",n.TcwLateArrivalOnDeliverySitesJustificationCustom="TCW_LATE_ARRIVAL_ON_DELIVERY_SITES_JUSTIFICATION_CUSTOM",n.TcwLateArrivalOnDeliverySitesJustificationGeneric="TCW_LATE_ARRIVAL_ON_DELIVERY_SITES_JUSTIFICATION_GENERIC",n.TcwLeftSiteNotProvidedWorkflow="TCW_LEFT_SITE_NOT_PROVIDED_WORKFLOW",n.TcwLeftoverAtDock="TCW_LEFTOVER_AT_DOCK_WORKFLOW",n.TcwLinkedNoGoodsToLoad="TCW_LINKED_NO_GOODS_TO_LOAD_WORKFLOW",n.TcwNoGoodsToLoad="TCW_NO_GOODS_TO_LOAD_WORKFLOW",n.TcwOnSiteNotProvidedWorkflow="TCW_ON_SITE_NOT_PROVIDED_WORKFLOW",n.TcwPairingNotDone="TCW_PAIRING_NOT_DONE_WORKFLOW",n.TcwPlantIncidentDeclarationWorkflow="TCW_PLANT_INCIDENT_DECLARATION_WORKFLOW",n.TcwScheduleAppointmentWorkflow="TCW_SCHEDULE_APPOINTMENT_WORKFLOW",n.TcwSupplierIncidentDeclarationWorkflow="TCW_SUPPLIER_INCIDENT_DECLARATION_WORKFLOW",n.TcwTourUndoableWorkflow="TCW_TOUR_UNDOABLE_WORKFLOW",n.TcwTowardsNextSiteNotProvidedWorkflow="TCW_TOWARDS_NEXT_SITE_NOT_PROVIDED_WORKFLOW",n.TcwWaitingTime="TCW_WAITING_TIME_DECLARATION_WORKFLOW",n.TourCollaborativeWorkflow="TOUR_COLLABORATIVE_WORKFLOW",n.TourCollaborativeWorkflowAccess="TOUR_COLLABORATIVE_WORKFLOW_ACCESS",n.TourCollaborativeWorkflowGenericFilters="TOUR_COLLABORATIVE_WORKFLOW_GENERIC_FILTERS",n.TourCollaborativeWorkflowSpecificFilters="TOUR_COLLABORATIVE_WORKFLOW_SPECIFIC_FILTERS",n.TrackingLink="TRACKING_LINK",n}(w||{}),re=function(n){return n.PublicLink="public-link",n}(re||{});const Ae=new class le extends H{register(){this.add(u({description:(0,a.x)("Automatically confirm chartered orders, on shipper or carrier side"),label:(0,a.x)("Auto Confirm"),name:w.AutoConfirm})).add(u({description:(0,a.x)("[[ocean agency feature]] The container tracking page will have a dedicated tab to display cargo details"),label:(0,a.x)("[[ocean agency feature]] Ocean cargo tab enabled"),name:w.OceanCargoTab})).add(u({description:(0,a.x)("[[agency feature]] A public link is generated when an order is created"),label:(0,a.x)("[[agency feature]] Public link enabled"),name:w.PublicLink})).add(u({description:(0,a.x)("[[ocean agency feature]] The Ocean Public Link will include tags"),label:(0,a.x)("[[ocean agency feature]] Tags enabled in the Ocean Public Link"),name:w.PublicLinkOceanTags,subSection:re.PublicLink})).add(u({description:(0,a.x)("[[ocean agency feature]] The Ocean Public Link will include the cargo tab"),label:(0,a.x)("[[ocean agency feature]] Cargo tab enabled in the Ocean Public Link"),name:w.PublicLinkOceanCargoTab,subSection:re.PublicLink})).add(u({description:(0,a.x)("[[road public agency feature]] The road Public link light version"),label:(0,a.x)("[[road public agency feature]] The road Public link light version"),name:w.PublicLinkLight,subSection:re.PublicLink})).add(u({description:(0,a.x)("When an order is paired, the shipper can't modify the pairing via orders-in"),label:(0,a.x)("Block pairing modification for shippers"),name:w.BlockPairingModification})).add(u({label:(0,a.x)("Incidents - Collaborative workflows"),name:w.TourCollaborativeWorkflow})).add(u({label:(0,a.x)("Collaborative workflows - access"),name:w.TourCollaborativeWorkflowAccess})).add(u({label:(0,a.x)("Collaborative workflows - generic incidents filters"),name:w.TourCollaborativeWorkflowGenericFilters})).add(u({label:(0,a.x)("Collaborative workflows - specific incidents filters"),name:w.TourCollaborativeWorkflowSpecificFilters})).add(u({label:(0,a.x)("Workflow - Confirmation of estimated delay on delivery sites (RENAULT)"),name:w.TcwDelayOnDeliverySites})).add(u({label:(0,a.x)("Workflow - Confirmation of estimated delay on loading sites (RENAULT)"),name:w.TcwDelayOnLoadingSites})).add(u({label:(0,a.x)("Workflow - Hot shipment"),name:w.TcwHotShipment})).add(u({label:(0,a.x)("Workflow - Tour undoable"),name:w.TcwTourUndoableWorkflow})).add(u({label:(0,a.x)("Incident - Pairing not done"),name:w.TcwPairingNotDone})).add(u({label:(0,a.x)("Incident - Full manual mode"),name:w.TcwFullManualMode})).add(u({label:(0,a.x)("Incident - On site not provided"),name:w.TcwOnSiteNotProvidedWorkflow})).add(u({label:(0,a.x)("Incident - Left site not provided"),name:w.TcwLeftSiteNotProvidedWorkflow})).add(u({label:(0,a.x)("Incident - Driving towards next stop not provided"),name:w.TcwTowardsNextSiteNotProvidedWorkflow})).add(u({label:(0,a.x)("Workflow - No goods to load (RAC)"),name:w.TcwNoGoodsToLoad})).add(u({label:(0,a.x)("Workflow - Linked no goods to load (RAC)"),name:w.TcwLinkedNoGoodsToLoad})).add(u({label:(0,a.x)("Workflow - Justification required for observed delay on delivery site"),name:w.TcwLateArrivalOnDeliverySitesJustification})).add(u({label:(0,a.x)("Workflow - Justification required for observed delay on delivery site Generic"),name:w.TcwLateArrivalOnDeliverySitesJustificationGeneric})).add(u({label:(0,a.x)("Workflow - Justification required for observed delay on delivery site for LogService"),name:w.TcwLateArrivalOnDeliverySitesJustificationCustom})).add(u({label:(0,a.x)("Workflow - Waiting Time"),name:w.TcwWaitingTime})).add(u({label:(0,a.x)("Workflow - Driver break declaration"),name:w.TcwDriverBreakDeclaration})).add(u({label:(0,a.x)("Incident - End of loading and left loading site not provided"),name:w.OrderGoodsLoadedAndLeftLoadingSiteNotProvidedWorkflow})).add(u({label:(0,a.x)("Incident - End of delivery and left delivery site not provided"),name:w.OrderGoodsDeliveredAndLeftDeliverySiteNotProvidedWorkflow})).add(u({label:(0,a.x)("Workflow - Plant incident declaration"),name:w.TcwPlantIncidentDeclarationWorkflow})).add(u({label:(0,a.x)("Workflow - Supplier incident"),name:w.TcwSupplierIncidentDeclarationWorkflow})).add(u({label:(0,a.x)("Workflow - Schedule appointment"),name:w.TcwScheduleAppointmentWorkflow})).add(u({label:(0,a.x)("Workflow - Carrier incident declaration"),name:w.TcwCarrierIncidentDeclarationWorkflow})).add(u({label:(0,a.x)("Workflow - Early Delivery Request"),name:w.TcwEarlyDeliveryRequestWorkflow})).add(u({label:(0,a.x)("Workflow - Carrier Extra Cost request"),name:w.TcwCarrierExtraCostRequestWorkflow})).add(u({label:(0,a.x)("Workflow - Leftover at dock (RAQ)"),name:w.TcwLeftoverAtDock})).add(u({description:(0,a.x)("When enabled, carbon emissions will be calculated for all TOs/OTCs owned by this agency"),label:(0,a.x)("Enable carbon calculation"),name:w.CarbonCalculation})).add(u({description:(0,a.x)("[[agency feature]] When enabled, you will have access to all ocean data carbon completeness information for all TOs/OTCs owned by this agency"),label:(0,a.x)("[[agency feature]] Enable ocean data carbon completeness calculation"),name:w.OceanCarbonVisibility})).add(u({description:(0,a.x)("Do not activate!"),label:(0,a.x)("Geofencing based itinerary(Shuttle flows)"),name:w.GeofencingBasedItinerary})).add(u({description:(0,a.x)("Parcel Microservice tracking"),label:(0,a.x)("Parcel Microservice tracking"),name:w.ParcelToMicroService})).add(u({description:(0,a.x)("Enable Tracking Link Page for App V3"),label:(0,a.x)("Enable Tracking Link Page for App V3"),name:w.TrackingLink}))}},y=()=>Ae;var Le=function(n){return n.OrderCreated="ORDER_CREATED_SMS",n.GoodsDelivered="GOODS_DELIVERED_SMS",n.OrderCancelled="ORDER_CANCELED_SMS",n.OrderModified="ORDER_MODIFIED_SMS",n.TowardDeliverySite="TOWARDS_DELIVERY_SITE_SMS",n}(Le||{});const ht=new class Ke extends H{register(){this.add(u({label:(0,a.x)("SMS: Order Created"),name:Le.OrderCreated})).add(u({label:(0,a.x)("SMS: Left loading site"),name:Le.TowardDeliverySite})).add(u({label:(0,a.x)("SMS: Order Delivered"),name:Le.GoodsDelivered})).add(u({label:(0,a.x)("SMS: Order Modified"),name:Le.OrderModified})).add(u({label:(0,a.x)("SMS: Order Cancelled"),name:Le.OrderCancelled}))}},ye={Deserialize:n=>n.map(m=>{const W=y().get(m);return W instanceof j?ht.get(m):W}),Serialize:n=>n.filter(m=>m.isActive).map(({name:m})=>m)};var Ve=function(n){return n.PurgedDay="PURGED_DAY",n.RoadShipmentType="ROAD_SHIPMENT_TYPE",n.GeofencingPositions="GEOFENCING_POSITIONS",n}(Ve||{}),g=function(n){return n.FTL="FTL",n.LTL="LTL",n}(g||{});class K{constructor(){this.address=M(),this.features=[],this.hasAutomaticEvent=!0,this.language="",this.organization=oe(),this.preferences=[]}static OnDeserialized(m,{hashid:W}){W&&(m.id=W)}getPreference(m){return this.preferences.find(W=>W.name===m)}setPreference(m,W){const Ee=this.preferences.findIndex(Ze=>Ze.name===m);return Ee>-1?this.preferences[Ee].value=W:this.preferences.push({name:m,value:W}),this.preferences}removePreference(m){const W=this.preferences.findIndex(Ee=>Ee.name===m);return W>-1&&this.preferences.splice(W,1),this.preferences}getPreferences(){return this.preferences}isOnlyFtl(){return this.getPreference(Ve.RoadShipmentType)?.value===g.FTL}hasId(){return!!this.id}hasOrganization(){return!!this.organization.id}setFeatures(m){m.forEach(W=>{const Ee=this.features.findIndex(Ze=>Ze.isEqual(W.name));-1===Ee?this.features.push(W):this.features[Ee].setIsActive(W.isActive)})}transformRequest(){return Object.assign({},this,{features:ye.Serialize(this.features),organization:this.organization.id})}}(0,t.Cg)([(0,e.deserializeAs)(C),(0,t.Sn)("design:type",Object)],K.prototype,"address",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],K.prototype,"default",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],K.prototype,"externalId",void 0),(0,t.Cg)([(0,e.autoserializeAs)(ye),(0,t.Sn)("design:type",Array)],K.prototype,"features",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],K.prototype,"hasAutomaticEvent",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],K.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],K.prototype,"language",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],K.prototype,"name",void 0),(0,t.Cg)([(0,e.deserializeAs)(he),(0,t.Sn)("design:type",Object)],K.prototype,"organization",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],K.prototype,"phone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],K.prototype,"siret",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],K.prototype,"preferences",void 0);const ae=(n={})=>(0,e.Deserialize)(n,K),Be=()=>ae({features:[],preferences:[{name:Ve.PurgedDay,value:7}]}),et=n=>{const m=Be();return m.address=M(n.address),m.language=n.language,m.name=n.name,m.organization=n,m},ft=(n={},m)=>{const W=ae(n);return W.organization=m,W};class Dt{static transformRequest(m){return{default:m.default,id:m.agency.id}}getAgency(){return this.agency}isDefault(){return this.default}}(0,t.Cg)([(0,e.deserializeAs)(K),(0,t.Sn)("design:type",K)],Dt.prototype,"agency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Dt.prototype,"default",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Dt.prototype,"id",void 0);const je=(n={})=>(0,e.Deserialize)(n,Dt);var Ie=function(n){return n.RowPositions="RAW_POSITIONS",n.ResampledPositions="RESAMPLED_POSITIONS",n}(Ie||{}),Tt=function(n){return n.Ftl="FTL",n.Ltl="LTL",n.Parcel="PARCEL",n}(Tt||{}),It=function(n){return n.Agency="filter[agency]",n.Channel="filter[channel]",n.CreatedBy="filter[createdBy]",n.Enable="filter[enable]",n.FilterOwnerAgency="filter[filterOwnerAgency]",n.FilterSearch="filter[search]",n.FlowType="flowType",n.From="filter[from]",n.IsActive="filter[isActive]",n.MaximumPositionDate="filter[maximumPositionDate]",n.MessageFormat="filter[messageFormat]",n.MinimumPositionDate="filter[minimumPositionDate]",n.NotificationTemplate="filter[notificationTemplate]",n.TelematicConfiguration="filter[telematicConfiguration]",n.Type="filter[type]",n.Order="filter[order]",n.Organization="filter[organization]",n.OwnerAgency="ownerAgency",n.PageNumber="page[number]",n.PageSize="page[size]",n.ProviderMethod="filter[provider][type.method]",n.ProviderSource="filter[provider][type.source]",n.Search="search",n.State="state",n.Status="filter[status]",n.Mode="filter[mode]",n.To="filter[to]",n.UpdatedBy="filter[updatedBy]",n.When="when",n}(It||{}),Lt=r(22890);const Fe={Deserialize:n=>n instanceof Date?n:(0,Lt.O)(n)};class pt{}(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],pt.prototype,"end",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],pt.prototype,"start",void 0);const xt=n=>(0,e.Deserialize)(n,pt);var pe=r(1091);class Se{getDate(){return this.startAt&&this.endAt?this.endAt:this.startAt&&!this.endAt?this.startAt:void 0}hasDate(){return!(!this.startAt&&!this.endAt)}setRange({startAt:m,endAt:W}){this.clearDate(),m&&(this.startAt=m),W&&(this.endAt=W)}toPayload(m){return{date:(new Date).toISOString(),date_end:this.endAt?.toISOString()?this.endAt.toISOString():this.startAt?.toISOString(),date_start:this.endAt?.toISOString()?this.startAt?.toISOString()??null:null,name:m}}clearDate(){this.endAt=void 0,this.startAt=void 0}}(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Se.prototype,"endAt",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Se.prototype,"startAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Se.prototype,"permissions",void 0);var ne=function(n){return n.Load="load",n.Unload="unload",n}(ne||{}),we=function(n){return n.GoodsDelivered="goodsDelivered",n.GoodsLoaded="goodsLoaded",n.LeftDeliverySite="leftDeliverySite",n.LeftLoadingSite="leftLoadingSite",n.OnDeliverySite="onDeliverySite",n.OnLoadingSite="onLoadingSite",n.TowardsDeliverySite="towardsDeliverySite",n.TowardsLoadingSite="towardsLoadingSite",n}(we||{}),ge=function(n){return n.SkipDelivery="skipDelivery",n.SkipLoad="skipLoad",n.StartOnDeliverySiteEvents="startOnDeliverySiteEvents",n.StartOnLoadingSiteEvents="startOnLoadingSiteEvents",n.StartTowardsDeliverySite="startTowardsDeliverySite",n.StartTowardsLoadingSite="startTowardsLoadingSite",n}(ge||{});class Ne{constructor(m,W,Ee){this.phase=m,this.visibilityName=W,this.timeName=Ee,this.items=[]}getAsTimeObject(){const m={};return this.timeName&&(m[this.timeName]=this.time),{...m,...this.items.reduce((W,Ee)=>({...W,...Ee.getAsTimeObject()}),{})}}getAsVisibilityObject(){const m={};return this.visibilityName&&(m[this.visibilityName]=this.isVisible),{...m,...this.items.reduce((W,Ee)=>({...W,...Ee.getAsVisibilityObject()}),{})}}getItemByName(m){return this.items.find(W=>W.isEqualName(m))}getItems(){return this.items}getLabel(){return this.getName()}getName(){return this.visibilityName||this.timeName}isDelivery(){return this.phase===ne.Unload&&this.timeName!==ge.SkipDelivery}isEqualName(m){return this.visibilityName===m||this.timeName===m}isLoad(){return this.phase===ne.Load&&this.timeName!==ge.SkipLoad}isOnDeliverySite(){return this.isEqualName(we.OnDeliverySite)}isOnLoadingSite(){return this.isEqualName(we.OnLoadingSite)}isSkipDelivery(){return this.timeName===ge.SkipDelivery}isSkipLoad(){return this.timeName===ge.SkipLoad}isTowardDeliverySite(){return this.isEqualName(we.TowardsDeliverySite)}setItems(m){this.items=m}setTime(m){this.time=m}setVisiblity(m){this.isVisible=m,!this.isVisible&&(this.isOnLoadingSite()||this.isOnDeliverySite())&&this.getItems().forEach(W=>{W.setVisiblity(!1)})}}const Ut=(n,m,W)=>n.map(Ee=>{const Ze=((n,m,W,Ee,Ze)=>{const zt=new Ne(n,m,W);return zt.isVisible=Ee,zt.time=Ze,zt})(Ee.phase,Ee.visibilityName,Ee.timeName,m[Ee.visibilityName],W[Ee.timeName]);return Ee.keys&&Ze.setItems(Ut(Ee.keys,m,W)),Ze}),te=[{phase:ne.Load,timeName:ge.SkipLoad},{phase:ne.Unload,timeName:ge.SkipDelivery},{phase:ne.Load,timeName:ge.StartTowardsLoadingSite,visibilityName:we.TowardsLoadingSite},{keys:[{phase:ne.Load,visibilityName:we.GoodsLoaded},{phase:ne.Load,visibilityName:we.LeftLoadingSite}],phase:ne.Load,timeName:ge.StartOnLoadingSiteEvents,visibilityName:we.OnLoadingSite},{phase:ne.Unload,timeName:ge.StartTowardsDeliverySite,visibilityName:we.TowardsDeliverySite},{keys:[{phase:ne.Unload,visibilityName:we.GoodsDelivered},{phase:ne.Unload,visibilityName:we.LeftDeliverySite}],phase:ne.Unload,timeName:ge.StartOnDeliverySiteEvents,visibilityName:we.OnDeliverySite}];class lt{getDeliveryEventSettings(){return this.eventSettings.filter(m=>m.isDelivery())}getEventSettingByName(m){return this.eventSettings.find(W=>W.isEqualName(m))}getLoadEventSettings(){return this.eventSettings.filter(m=>m.isLoad())}getSkipDeliveryEvent(){return this.eventSettings.find(m=>m.isSkipDelivery())}getSkipLoadEvent(){return this.eventSettings.find(m=>m.isSkipLoad())}setEventSettings(m={},W={}){this.eventSettings=Ut(te,m,W)}transformRequest(){return{activateChainedDelivery:this.activateChainedDelivery,time:this.eventSettings.reduce((m,W)=>({...m,...W.getAsTimeObject()}),{}),visibility:this.eventSettings.reduce((m,W)=>({...m,...W.getAsVisibilityObject()}),{})}}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],lt.prototype,"activateChainedDelivery",void 0);const se=(n={})=>{const m=(0,e.Deserialize)(n,lt);return m.setEventSettings(n.visibility,n.time),m};class de{constructor(){this.enabled=!1}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],de.prototype,"enabled",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],de.prototype,"value",void 0);class nt{constructor(){this.email=new de,this.phone=new de}}(0,t.Cg)([(0,e.deserializeAs)(de),(0,t.Sn)("design:type",Object)],nt.prototype,"email",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],nt.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],nt.prototype,"name",void 0),(0,t.Cg)([(0,e.deserializeAs)(de),(0,t.Sn)("design:type",Object)],nt.prototype,"phone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],nt.prototype,"position",void 0);var bt=function(n){return n.Carrier="Carrier",n.Shippeo="Shippeo",n}(bt||{});class At{static createEdiSolution(m={}){return(0,e.Deserialize)(m,At)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],At.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],At.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],At.prototype,"vendorName",void 0);var Nt=function(n){return n.Arrival="Arrival",n.Depart="Depart",n.Unload="Unload",n}(Nt||{});let it=(()=>{class n{constructor(W){this.provider=W.provider,this.date=W.date?new Date(W.date):void 0,this.delay=W.delay,this.recordedOn=W.recordedOn?new Date(W.recordedOn):void 0,this.type=W.type??Nt.Arrival}static create(W){return new n(W)}static#e=this.sort=(W,Ee)=>W.date&&Ee.date?W.isShippeo()&&Ee.isShippeo()?0:W.isShippeo()?-1:1:W.date?-1:1;isShippeo(){return this.provider===bt.Shippeo}}return n})();const De=n=>it.create(n);var $e=r(88221),rt=function(n){return n.Delivery="delivery",n.Loading="loading",n}(rt||{}),B=function(n){return n.Day="day",n.Hour="hour",n}(B||{}),dt=function(n){return n.CalculationInProgress="calculation_in_progress",n.FirstEtaCalculationInProgress="first_eta_calculation_in_progress",n.IsDeprecated="is_deprecated",n.IsSkipped="is_skipped",n.NoPositionReceived="no_position_received",n}(dt||{}),ut=function(n){return n.External="external",n.ExternalDeclared="externalDeclared",n.Internal="internal",n.InternalLeadTime="internalLeadTime",n}(ut||{}),ot=function(n){return n.None="NONE",n.OnTime="ON_TIME",n.RiskyDelay="RISKY_DELAY",n.ToleratedDelay="TOLERATED_DELAY",n}(ot||{}),gt=function(n){return n.Disabled="DISABLED",n.WorkingHours="WORKING_HOURS",n.DayOnly="DAY_ONLY",n.Enabled="ENABLED",n}(gt||{});class kt{constructor(m={}){Object.assign(this,m)}getHumanizedDuration(){return(0,pe.oz)(this.estimatedAt,this.theoreticalAt)}isInAdvance(){return this.etaStatus===ot.OnTime}isRiskyDelay(){return this.etaStatus===ot.RiskyDelay}isToleratedDelay(){return this.etaStatus===ot.ToleratedDelay}isValid(){return!(0,$e.A)(this.estimatedAt)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],kt.prototype,"activity",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],kt.prototype,"etaStatus",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],kt.prototype,"position",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],kt.prototype,"source",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],kt.prototype,"receptionDate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],kt.prototype,"remainingStops",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],kt.prototype,"precision",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],kt.prototype,"etaReason",void 0);const Ri=(n,m,W)=>{const Ee=(0,e.Deserialize)(n,kt);return Ee.estimatedAt=n.eta,Ee.date=n.eta,Ee.timezone=W,Ee.isExternal=n.source===ut.External,Ee.lastCalculationAt=n.predictionTimestamp,Ee.receptionDate=n.receptionDate,Ee.remainingDistance=n.theoreticalDistance,Ee.theoreticalAt=m,Ee.type=n.type,(0,$e.A)(Ee.isDeprecated)&&!(0,$e.A)(n.etaReason)&&(Ee.isDeprecated=n.etaReason.includes(dt.IsDeprecated)),Ee};class pi{getPreferredEtaForNextStopPoint(m){if(this.etaList&&0!==this.etaList.length)return this.etaList.filter(({eta:W})=>!!W).map(W=>W.activity===rt.Loading?Ri(W,m.getDepartureAppointmentDate()?.toISOString(),m.getDepartureTimezone()):Ri(W,m.getArrivalAppointmentDate()?.toISOString(),m.getArrivalTimezone())).sort(({isExternal:W},Ee)=>Number(W)-Number(Ee.isExternal)).reverse()}}(0,t.Cg)([(0,e.deserializeAs)("eta"),(0,t.Sn)("design:type",Array)],pi.prototype,"etaList",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],pi.prototype,"meanId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],pi.prototype,"meanMode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],pi.prototype,"orderId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],pi.prototype,"canAddExternalEta",void 0);const po=(n={})=>(0,e.Deserialize)(n,pi);var Wt=function(n){return n.CreatedAt="createdAt",n.DateEvent="dateEvent",n.Delay="delay",n.InputDate="inputDate",n}(Wt||{});class q{constructor(m){this.preferredDate=Wt.DateEvent,Object.assign(this,m)}}const hn=new class uo{constructor(){this.DEFAULT_CONTEXT="",this.registry={[this.DEFAULT_CONTEXT]:new Map}}getByType(m,W){const Ze=this.getContextRegistry(W).get(m);return this.isDefaultContext(W)||Ze?Ze||new q({label:"UNKNOWN_EVENT"}):this.getByType(m,this.DEFAULT_CONTEXT)}register(m,W,Ee){return this.getContextRegistry(Ee).set(m,W),this}getContextRegistry(m=this.DEFAULT_CONTEXT){return this.registry[m]||(this.registry[m]=new Map),this.registry[m]}isDefaultContext(m){return!m||m===this.DEFAULT_CONTEXT}},go=(n,m)=>hn.getByType(n,m),ee=(n,m,W)=>hn.register(n,m,W);var ji=function(n){return n.Full="full",n.Minimal="minimal",n.OwnFleetDelegatedFleet="minimal-delegated-fleet",n.Simple="simple",n}(ji||{}),fn=function(n){return n.Excel="Excel",n.Csv="RFC_4180",n}(fn||{});class mo{}class oi{constructor(m,W,Ee,Ze=m){this.label=m,this.value=W,this.isDefault=Ee,this.shortLabel=Ze}}var $i=r(6622);class Si{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Si.prototype,"height",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Si.prototype,"length",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Si.prototype,"width",void 0);var Gi=function(n){return n.FullTruck="FULL_TRUCK",n.LinearMeters="LINEAR_METERS",n.Palets="PALETS",n}(Gi||{});class wt{constructor(m){this.units="",Object.assign(this,m)}static createGood(m){return new wt(m)}getDetailLabel(){return{FULL_TRUCK:(0,a.x)("full truck"),LINEAR_METERS:(0,a.x)("{count, plural, =0{{count} linear meters} one{{count} linear meter} other{{count} linear meters}}"),PALETS:(0,a.x)("{count, plural, =0{{count} pallets} one{{count} pallet} other{{count} pallets}}")}[this.type]}getMesureCount(){return this.isLinearMeters()?this.size.length:this.quantity}isFullTruck(){return this.type===Gi.FullTruck}isLinearMeters(){return this.type===Gi.LinearMeters}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],wt.prototype,"gerbabilite",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],wt.prototype,"quantity",void 0),(0,t.Cg)([(0,e.deserializeAs)(Si),(0,t.Sn)("design:type",Si)],wt.prototype,"size",void 0),(0,t.Cg)([(0,e.deserializeAs)(Gi),(0,t.Sn)("design:type",String)],wt.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],wt.prototype,"units",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],wt.prototype,"weight",void 0),(0,t.Cg)([(0,$i.w)({ifReturnNull:!0}),(0,t.Sn)("design:type",Function),(0,t.Sn)("design:paramtypes",[]),(0,t.Sn)("design:returntype",String)],wt.prototype,"getDetailLabel",null);var yn=function(n){return n.Global="gtm.js",n.ActionBarAddToTour="action_bar_add_to_tour",n.ActionBarAppointment="action_bar_appointment",n.ActionBarCarrierSelection="action_bar_carrier_selection",n.ActionBarExport="action_bar_export",n.ActionBarRemoveFromTour="action_bar_remove_from_tour",n.ActionBarResourceSelection="action_bar_resource_selection",n.ActionBarSequenceTour="action_bar_sequence_tour",n.ActionBarStatusUpdate="action_bar_status_update",n.ActionBarTags="action_bar_tags",n.ActivateNotificationCustomBulk="activate_notification_custom_bulk",n.ActivateNotificationTemplateBulk="activate_notification_template_bulk",n.AlgoliaIconsistency="algolia_inconsistency",n.BSEAddToHomepage="bse_add_to_homepage",n.BSECloseBanner="bse_close_banner",n.BSESeeOrders="bse_see_orders",n.CarbonVisibility="carbon_visibility",n.CharterChange="charter_change",n.CharterChangeConfirmation="charter_change_confirmation",n.CharteringSave="chartering_save",n.Costs="costs",n.CountdownClicked="countdown_clicked",n.DashboardCancel="dashboard_cancel",n.DashboardContinue="dashboard_continue",n.DashboardCsv="dashboard_csv",n.DashboardImage="dashboard_image",n.DashboardPause="dashboard_pause",n.DashboardPdf="dashboard_pdf",n.DashboardRedo="dashboard_redo",n.DashboardReset="dashboard_reset",n.DashboardViewsCustomAdding="dashboard_views_custom_adding",n.DashboardViewsCustomSave="dashboard_views_custom_save",n.DeactivateNotificationCustomBulk="deactivate_notification_custom_bulk",n.DeactivateNotificationTemplateBulk="deactivate_notification_template_bulk",n.DeleteNotificationCustomBulk="delete_notification_custom_bulk",n.DetailsOrderAllOrder="details_order_all_order",n.DetailsOrderAttachments="details_order_attachments",n.DetailsOrderCancelation="details_order_cancelation",n.DetailsOrderCargo="details_order_cargo",n.DetailsOrderCharteringChange="details_order_chartering_change",n.DetailsOrderCharteringSave="details_order_chartering_save",n.DetailsOrderCharterSave="details_order_charter_save",n.DetailsOrderCharterSelection="details_order_charter_selection",n.DetailsOrderDownloadPdf="details_order_download_pdf",n.DetailsOrderDuplication="details_order_duplication",n.DetailsOrderModification="details_order_modification",n.DetailsOrderNextOrder="details_order_next_order",n.DetailsOrderPairingChange="details_order_pairing_change",n.DetailsOrderPairingSave="details_order_pairing_save",n.DetailsOrderPairingSelection="details_order_pairing_selection",n.DetailsOrderPreviousOrder="details_order_previous_order",n.DetailsOrderPublicLink="details_order_public_link",n.DetailsOrderExternalLink="details_order_external_link",n.DetailsOrderTagAdding="details_order_tag_adding",n.DetailsOrderTagDeleting="details_order_tag_deleting",n.DetailsOrderTimeline="details_order_timeline",n.DetailsOrderTimelineDisplayProblems="details_order_timeline_display_problems",n.DetailsOrderTimelineHideProblems="details_order_timeline_hide_problems",n.DetailsOrderVisualisation="details_order_visualisation",n.DetailsTourAllTours="details_tour_all_tours",n.DetailsTourCharteringSave="details_tour_chartering_save",n.DetailsTourCtaCharteringChange="details_tour_cta_chartering_change",n.DetailsTourCtaPairingChange="details_tour_cta_pairing_change",n.DetailsTourEvents="details_tour_events",n.DetailsTourHeaderCharteringChange="details_tour_header_chartering_change",n.DetailsTourHeaderPairingChange="details_tour_header_pairing_change",n.DetailsTourMap="details_tour_map",n.DetailsTourMapHistoricalPosition="details_tour_map_historical_position",n.DetailsTourNextTour="details_tour_next_tour",n.DetailsTourOverview="details_tour_overview",n.DetailsTourOverviewCollapse="details_tour_overview_collapse",n.DetailsTourOverviewExpand="details_tour_overview_expand",n.DetailsTourPairingSave="details_tour_pairing_save",n.DetailsTourPreviousTour="details_tour_previous_tour",n.DetailsTourTimeline="details_tour_timeline",n.Discussion="discussion",n.DisplayColumn="display_column",n.DisplayFilter="display_filter",n.DiscussionShared="discussion_shared",n.DuplicateNotificationCustom="duplicate_notification_custom",n.EditNotificationCustom="edit_notification_custom",n.EditNotificationTemplate="edit_notification_template",n.ExportHandlingUnitsExport="export_handling_units_export",n.ExportOceanExport="export_ocean_export",n.FilterCategoryCarrierToggle="filter_category_carrier_toggle",n.FilterCategoryCarrierSeeMore="filter_category_carrier_see_more",n.FilterCategoryCustomerToggle="filter_category_customer_toggle",n.FilterCategoryDatesDelivery="filter_category_dates_delivery",n.FilterCategoryDatesLoading="filter_category_dates_loading",n.FilterCategoryDatesToggle="filter_category_dates_toggle",n.FilterCategoryDatesTrackingLoading="filter_category_dates_tracking_loading",n.FilterCategoryDatesTrackingDelivery="filter_category_dates_tracking_delivery",n.FilterCategoryDelayToggle="filter_category_delay_toggle",n.FilterCategoryDelayRoad="filter_category_delay_road",n.FilterCategoryDelayRoadSelectAll="filter_category_delay_road_select_all",n.FilterCategoryFeaturesArchive="filter_category_features_archive",n.FilterCategoryFeaturesDiscussions="filter_category_features_discussions",n.FilterCategoryFeaturesFile="filter_category_features_file",n.FilterCategoryFeaturesToggle="filter_category_features_toggle",n.FilterCategoryGoodsDescription="filter_category_goods_description",n.FilterCategoryGoodsRealQuantities="filter_category_goods_real_quantities",n.FilterCategoryGoodsRealQuantitiesSelectAll="filter_category_goods_real_quantities_select_all",n.FilterCategoryGoodsToggle="filter_category_goods_toggle",n.FilterCategoryIncidentsToggle="filter_category_incidents_toggle",n.FilterCategoryProblemsSelectAll="filter_category_problems_select_all",n.FilterCategoryReferencesConsignmentReference="filter_category_references_consignment_reference",n.FilterCategoryReferencesContractNumber="filter_category_references_contract_number",n.FilterCategoryReferencesCustomer="filter_category_references_customer",n.FilterCategoryReferencesTransportType="filter_category_references_transport_type",n.FilterCategoryResourceSeeMore="filter_category_resource_see_more",n.FilterCategoryResourceToggle="filter_category_resource_toggle",n.FilterCategoryReferencesToggle="filter_category_references_toggle",n.FilterCategorySitesDelivery="filter_category_sites_delivery",n.FilterCategorySitesDeliverySeeMore="filter_category_sites_delivery_see_more",n.FilterCategorySitesLoading="filter_category_sites_loading",n.FilterCategorySitesLoadingSeeMore="filter_category_sites_loading_see_more",n.FilterCategorySiteTrackingLoading="filter_category_sites_tracking_loading",n.FilterCategorySiteTrackingDelivery="filter_category_sites_tracking_delivery",n.FilterCategoryShipperSeeMore="filter_category_shipper_see_more",n.FilterCategoryShipperToggle="filter_category_shipper_toggle",n.FilterCategorySitesToggle="filter_category_sites_toggle",n.FilterCategoryStatusExpand="filter_category_status_expand",n.FilterCategoryStatusOcean="filter_category_status_ocean",n.FilterCategoryStatusParcel="filter_category_status_parcel",n.FilterCategoryStatusParcelSelectAll="filter_category_status_parcel_select_all",n.FilterCategoryStatusRoad="filter_category_status_road",n.FilterCategoryTagsSeeMore="filter_category_tags_see_more",n.FilterCategoryStatusToggle="filter_category_status_toggle",n.FilterCategoryTagsToggle="filter_category_tags_toggle",n.FilterCategoryTransportModeToggle="filter_category_transport_mode_toggle",n.FilterCategoryTransportTypeToggle="filter_category_transport_type_toggle",n.FilterCategoryTransportModeSelectAll="filter_category_transport_mode_select_all",n.FilterChartering="filter_chartering",n.FilterClearAll="filter_clear_all",n.FilterClearCategory="filter_clear_category",n.FilterConsignmentReference="filter_consignment_reference",n.FilterContainerEtaDelay="filter_container_eta_delay",n.FilterContainerEtdDelay="filter_container_etd_delay",n.FilterContainerStatusUnchanged="filter_container_status_unchanged",n.FilterContractNumber="filter_contract_number",n.FilterCustomer="filter_customer",n.FilterDatePresetCurrentMonth="filter_date_preset_current_month",n.FilterDatePresetCurrentWeek="filter_date_preset_current_week",n.FilterDatePresetCustom="filter_date_preset_custom",n.FilterDatePresetPastMonth="filter_date_preset_past_month",n.FilterDatePresetPastWeek="filter_date_preset_past_week",n.FilterDatePresetToday="filter_date_preset_today",n.FilterDatePresetTomorrow="filter_date_preset_tomorrow",n.FilterDatePresetYesterday="filter_date_preset_yesterday",n.FilterDeliveryDate="filter_delivery_date",n.FilterDeliverySite="filter_delivery_site",n.FilterDiscussions="filter_discussions",n.FilterEtaNextSite="filter_eta_next_site",n.FilterFile="filter_file",n.FilterGoodsDescription="filter_goods_description",n.FilterGoodsRealQuantities="filter_goods_real_quantities",n.FilterIncidents="filter_incidents",n.FilterIsarchived="filter_isArchived",n.FilterLoadingDate="filter_loading_date",n.FilterLoadingSite="filter_loading_site",n.FilterModeOfTransport="filter_mode_of_transport",n.FilterOceanEta="filter_ocean_eta",n.FilterOceanEtd="filter_ocean_etd",n.FilterPanelClose="filter_panel_close",n.FilterPanelOpen="filter_panel_open",n.FilterResource="filter_resource",n.FilterResourceType="filter_resource_type",n.FilterSearch="filter_search",n.FilterShipper="filter_shipper",n.FilterStatus="filter_status",n.FilterTags="filter_tags",n.FilterTransportType="filter_transport_type",n.FormCompleted="form_completed",n.FormFilling="form_filling",n.HelpButton="help_button",n.HelpCenter="help_center",n.HelpCenterButton="help_center_button",n.HideColumn="hide_column",n.HideFilter="hide_filter",n.Homepage="homepage",n.HomepageEditionButton="homepage_edition_button",n.HomepageNewSection="homepage_new_section",n.HomepageOptedOut="homepage_opted_out",n.HomepageSearchReference="homepage_search_reference",n.HomepageWidgetAdded="homepage_widget_added",n.HomepageWidgetHidden="homepage_widget_hidden",n.HomepageWidgetLink="homepage_widget_link",n.HomepageWidgetRemoved="homepage_widget_removed",n.Insights="insights",n.Login="login",n.ManagePricingPlanNotificationTemplate="manage_pricing_plan_notification_template",n.ManagePricingPlanNotificationTemplateBulk="manage_pricing_plan_notification_template_bulk",n.Map="map",n.MapDisplayMap="map_display_map",n.MapDisplayOffDutyResources="map_display_off_duty_resources",n.MapDisplaySatellite="map_display_satellite",n.MapDisplayTraffic="map_display_traffic",n.MapFullScreen="map_full_screen",n.MapInteraction="map_interaction",n.MapOrderReference="map_order_reference",n.MapResourceLabel="map_resource_label",n.MapZoom="map_zoom",n.MessageCenter="message_center",n.NavigationOrderListByPreviousState="navigation_order_list_by_previous_state",n.NavigationOrderListByReference="navigation_order_list_by_reference",n.NewBookmarkAdding="new_bookmark_adding",n.NewBookmarkSaving="new_bookmark_saving",n.NewNotificationCustom="new_notification_custom",n.NewNotificationTemplate="new_notification_template",n.NextTimezone="next_timezone",n.NotificationCenter="notification_center",n.Orders="orders",n.OrdersBulkBanner="orders_bulk_banner",n.OrdersCancelation="orders_cancelation",n.OrdersCopyPublicLink="orders_copy_public_link",n.OrdersDuplication="orders_duplication",n.OrdersExport="orders_export",n.OrdersExportation="orders_exportation",n.OrdersExportType="orders_export_type",n.OrdersModification="orders_modification",n.OrdersOptions="orders_options",n.OrdersSelection="orders_selection",n.OrdersStarWheel="orders_star_wheel",n.OrdersStarWheelMovingFilter="orders_star_wheel_moving_filter",n.OrdersStarWheelSelectionFilter="orders_star_wheel_selection_filter",n.PageView="page_view",n.PairingChange="pairing_change",n.PairingChangeConfirmation="pairing_change_confirmation",n.PairingSave="pairing_save",n.PreviousTimezone="previous_timezone",n.RefreshPage="refresh_page",n.ReleasesButton="releases_button",n.Search="search",n.StatusChange="status_change",n.StatusChangeConfirmation="status_change_confirmation",n.Tours="tours",n.ToursBulkBanner="tours_bulk_banner",n.ToursCancelation="tours_cancelation",n.ToursCopyPublicLink="tours_copy_public_link",n.ToursDuplication="tours_duplication",n.ToursExportation="tours_exportation",n.ToursModification="tours_modification",n.ToursOption="tours_option",n.ToursOptions="tours_options",n.ToursSelection="tours_selection",n.ToursStarWheel="tours_star_wheel",n.ToursStarWheelMovingFilter="tours_star_wheel_moving_filter",n.ToursStarWheelSelectionFilter="tours_star_wheel_selection_filter",n.ViewAddedToHomePage="view_added_to_homepage",n.ViewAdding="view_adding",n.ViewDeleted="view_deleted",n.ViewExport="view_exported",n.ViewImport="view_imported",n.ViewUpdate="view_updated",n.ViewHistoricalPositionsClick="view_historical_positions_click",n.ViewNotificationCustomDetail="view_notification_custom_detail",n.ViewNotificationTemplateDetail="view_notification_template_detail",n.ViewReseted="view_reseted",n.ViewSelected="view_selected",n.WalkmeTutorialsButton="walkme_tutorials_button",n.WebVitals="web_vitals",n}(yn||{}),Ki=function(n){return n.Category="category",n.HomepageWidgetId="homepage_widget_id",n.HomepageWidgetLabel="homepage_widget_label",n.Reference="reference",n.WebVitalsName="web_vitals_name",n.WebVitalsObject="web_vitals_object",n.WebVitalsValue="web_vitals_value",n}(Ki||{});const Dn={Deserialize:n=>parseFloat(n)};class Oi{}(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Oi.prototype,"date",void 0),(0,t.Cg)([(0,e.deserializeAs)(Dn),(0,t.Sn)("design:type",Number)],Oi.prototype,"lat",void 0),(0,t.Cg)([(0,e.deserializeAs)(Dn),(0,t.Sn)("design:type",Number)],Oi.prototype,"lng",void 0);const fo=(n={})=>(0,e.Deserialize)(n,Oi);class ui{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ui.prototype,"configuration",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ui.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ui.prototype,"name",void 0);var Ai=r(74320),vn=function(n){return n.Create="create",n.Update="update",n}(vn||{});const vo={Deserialize:n=>Xi(n)};class qt{toJSON(){return this.dryRun=this.isDryRun,JSON.stringify({...this})}}(0,t.Cg)([(0,e.deserializeAs)(vn),(0,t.Sn)("design:type",String)],qt.prototype,"action",void 0),(0,t.Cg)([(0,e.deserializeAs)(ui),(0,t.Sn)("design:type",ui)],qt.prototype,"file",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],qt.prototype,"organizationId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],qt.prototype,"telematicConfigurationId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],qt.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],qt.prototype,"dryRun",void 0);const Xi=n=>{const m=(0,e.Deserialize)(n,qt);return m.isDryRun=Object.prototype.hasOwnProperty.call(n,"isDryRun")?n.isDryRun:n.dryRun,m.file&&!m.file.id&&(m.file.id=(0,Ai.A)()),m};var ri=function(n){return n.MobileDriver="mobile_driver",n.Place="place",n.Resource="telematic_resource",n.User="user",n}(ri||{}),Cn=function(n){return n.Export="Export",n.Import="Import",n}(Cn||{}),En=function(n){return n.BackOffice="back-office",n.FrontOffice="front-office",n}(En||{});class Ji{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ji.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ji.prototype,"id",void 0);const Co=(n={})=>(0,e.Deserialize)(n,Ji);class Qi{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Qi.prototype,"telematicReference",void 0);var Zi=function(n){return n.Name="NAME",n.TelematicReference="TELEMATIC_REFERENCE",n}(Zi||{}),Tn=function(n){return n.Id="id",n.ExternalId="externalId",n}(Tn||{});class ei{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ei.prototype,"resourcesActivated",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ei.prototype,"resourcesAfterUpdate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ei.prototype,"resourcesBeforeUpdate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ei.prototype,"resourcesCreated",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ei.prototype,"resourcesDeactivated",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ei.prototype,"resourcesUpdated",void 0);var gi=function(n){return n.Active="active",n.Down="down",n.Idle="idle",n.Inactive="inactive",n.Risky="risky",n.Updating="updating",n}(gi||{});class qi{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],qi.prototype,"currentState",void 0);var Ui=function(n){return n.Pushing="pushing",n.Pulling="pulling",n}(Ui||{});class Rt{constructor(){this.method=Ui.Pushing}static createTelematicProvider(m={}){return(0,e.Deserialize)(m,Rt)}isMethodPulling(){return this.method===Ui.Pulling}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Rt.prototype,"connectionParametersJsonSchema",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Rt.prototype,"constant",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Rt.prototype,"contacts",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Rt.prototype,"displayName",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Rt.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Rt.prototype,"isAutomaticFleetUpdateAllowed",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Rt.prototype,"method",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Rt.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Rt.prototype,"source",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Rt.prototype,"testerAvailable",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Rt.prototype,"technicalReferenceLabels",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Rt.prototype,"userGuides",void 0);class Ct{constructor(){this.credentials={},this.isActive=!0,this.isDriversOnDuty=!0,this.isTemperaturesFeatActive=!1,this.provider=Rt.createTelematicProvider(),this.type=Tn.Id}getLabel(){return this.label}hasId(){return!!this.id}hasOrganization(){return this.organization?.hasId()}hasSalesforceId(){return!!this.salesforceId}isPulling(){return this.provider.isMethodPulling()}getStatus(){return this.isActive?this.probe?.currentState||gi.Updating:gi.Inactive}getTelematicProbState(){return this.isActive?gi.Active:gi.Inactive}transformRequest(){return{automaticFleetUpdateExternalId:this.automaticFleetUpdateExternalId,credentials:this.credentials,externalId:this.externalId,isActive:this.isActive,isAutomaticFleetUpdateActive:this.isAutomaticFleetUpdateActive,isDriversOnDuty:this.isDriversOnDuty,isTemperaturesFeatActive:this.isTemperaturesFeatActive,label:this.label,organization:this.organization?.id,provider:this.provider?.id,salesforceId:this.salesforceId,telematicProviderEmail:this.telematicProviderEmail}}}(0,t.Cg)([(0,e.deserializeAs)(Zi),(0,t.Sn)("design:type",String)],Ct.prototype,"automaticFleetUpdateExternalId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ct.prototype,"credentials",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ct.prototype,"externalId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ct.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ct.prototype,"isActive",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ct.prototype,"isAutomaticFleetUpdateActive",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ct.prototype,"isDriversOnDuty",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ct.prototype,"isTemperaturesFeatActive",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ct.prototype,"label",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ct.prototype,"lastCredentialsTestStatus",void 0),(0,t.Cg)([(0,e.deserializeAs)(ei),(0,t.Sn)("design:type",ei)],Ct.prototype,"lastFleetUpdate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ct.prototype,"lastFleetUpdateAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(he),(0,t.Sn)("design:type",he)],Ct.prototype,"organization",void 0),(0,t.Cg)([(0,e.deserializeAs)(qi),(0,t.Sn)("design:type",qi)],Ct.prototype,"probe",void 0),(0,t.Cg)([(0,e.deserializeAs)(Rt),(0,t.Sn)("design:type",Object)],Ct.prototype,"provider",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ct.prototype,"salesforceId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ct.prototype,"telematicProviderEmail",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ct.prototype,"type",void 0);const Rn=(n={})=>(0,e.Deserialize)(n,Ct),To=(n={},m)=>{const W=Rn(n);return W.organization=m,W};var Sn=function(n){return n.Euro6b="Euro6b",n.Euro6c="Euro6c",n.Euro6d="Euro6d",n.Euro6dTemp="Euro6d-temp",n.Euro6="Euro6",n.Euro5a="Euro5a",n.Euro5b="Euro5b",n.Euro5="Euro5",n.Euro4="Euro4",n.Euro3="Euro3",n.Euro2="Euro2",n.Euro1="Euro1",n}(Sn||{}),en=function(n){return n.Diesel="DIESEL",n.B20="B20",n.B30="B30",n.B100="Biodiesel (B100)",n.BioLng="BioLNG",n.Cng="CNG",n.Hvo="HVO",n.Lng="LNG",n.Petrol="PETROL",n.Electricity="ELECTRICITY",n.Hydrogen="HYDROGEN",n.LPG="LPG",n}(en||{}),Ro=function(n){return n.MobileDriver="mobileDriver",n.PullingTelematic="pullingTelematic",n.PushingTelematic="pushingTelematic",n.Telematic="telematic",n}(Ro||{}),Fi=function(n){return n.Container="container",n.Van="van",n.Train="train",n.Truck="truck",n.Plane="plane",n.Vessel="vessel",n.Mobile="mobile",n}(Fi||{});class mt{constructor(){this.lastAppVersionUsed="",this.mode=Fi.Truck}getFullName(){return this.label}getStatusIconName(){return this.deactivatedAt?"x-circle":"check-circle"}getTelematicConfigurationLabel(){return this.telematicConfiguration?this.telematicConfiguration.getLabel():""}hasId(){return!!this.id}hasOrganization(){return this.organization.hasId()}isEmpty(){return!this.label&&!this.telematicUnitId}transformRequest(){return{engineType:this.engineType,fuelType:this.fuelType,id:this.id,mean:{externalId:this.externalId,label:this.label,mode:this.mode,telematicUnitId:this.telematicUnitId,type:this.type},organization:this.organization.id,telematicConfiguration:this.telematicConfiguration?this.telematicConfiguration.id:void 0,truckSize:this.truckSize,vehicleIdentificationNumber:this.vehicleIdentificationNumber,yearOfManufacturing:this.yearOfManufacturing}}}(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],mt.prototype,"deactivatedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"error",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"externalId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"label",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],mt.prototype,"lastAppVersionUsed",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],mt.prototype,"mobileDriver",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],mt.prototype,"mode",void 0),(0,t.Cg)([(0,e.deserializeAs)(he),(0,t.Sn)("design:type",he)],mt.prototype,"organization",void 0),(0,t.Cg)([(0,e.deserializeAs)(Rt),(0,t.Sn)("design:type",Rt)],mt.prototype,"pullingTelematicProvider",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],mt.prototype,"receivers",void 0),(0,t.Cg)([(0,e.deserializeAs)(Ct),(0,t.Sn)("design:type",Ct)],mt.prototype,"telematicConfiguration",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"telematicUnitId",void 0),(0,t.Cg)([(0,e.deserializeAs)("newType"),(0,t.Sn)("design:type",String)],mt.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"engineType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"fuelType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],mt.prototype,"truckSize",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"vehicleIdentificationNumber",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mt.prototype,"yearOfManufacturing",void 0);const On=(n={})=>(0,e.Deserialize)(n,mt),An=()=>On({organization:{},telematicConfiguration:{}});let Ii=class extends mt{};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Ii.prototype,"delegators",void 0),(0,t.Cg)([(0,e.deserializeAs)(Qi),(0,t.Sn)("design:type",Qi)],Ii.prototype,"telematic",void 0),Ii=(0,t.Cg)([(0,e.inheritSerialization)(mt)],Ii);const So=(n={})=>(0,e.Deserialize)(n,Ii);var In=function(n){return n.Label="label",n.TelematicUnit="telematic_unit",n}(In||{}),Nn=function(n){return n.ErrorUniqueTelematicReference="validator.unique_entity_from_other.not_unique_error",n}(Nn||{});class mi{constructor(m,W){this.name=m,this.code=W}static createTimezone(m,W){return new mi(m,W)}static transformRequest(m){return m.name||void 0}}var Ln=r(11141),Oo=r(84628),Ao=r(11777);class zi{static getByName(m){return pe.qo[m]?mi.createTimezone(m,pe.qo[m]):mi.createTimezone("","")}static getByCode(m){const W=Object.entries(pe.qo).find(Ee=>Ee[1]===m);return W?mi.createTimezone(W[0],W[1]):void 0}static getCountries(){return(0,Ln.A)(Oo.A,(0,Ao.A)(zi.getByName))(pe.qo)}}var _i=function(n){return n.InsightsCarbonShipper="INSIGHTS_CARBON",n.InsightsOceanCarbonCompleteness="INSIGHTS_OCEAN_CARBON_COMPLETENESS",n.InsightsRoadCarbonCompleteness="INSIGHTS_ROAD_CARBON_COMPLETENESS",n.InsightsRoadCarbonDetailed="INSIGHTS_ROAD_CARBON_DETAILED",n.InsightsOceanCarbonDetailed="INSIGHTS_OCEAN_CARBON_DETAILED",n}(_i||{}),ct=function(n){return n.AdministrateOrganizationNotification="ADMINISTRATE_ORGANIZATION_NOTIFICATION",n.AdministrationDiscussion="ADMINISTRATION_DISCUSSION",n.AdministrationPlaces="ADMINISTRATION_PLACES",n.AdministrationResources="ADMINISTRATION_RESOURCES",n.AdministrationTags="ADMINISTRATION_TAGS",n.AdministrationUsers="ADMINISTRATION_USERS",n.BuilderAccess="ADMINISTRATE_NOTIFICATION_BUILDER_ACCESS",n.ExportHandlingUnits="EXPORT_HANDLING_UNITS",n.ExportOcean="EXPORT_OCEAN",n.ExportOrder="EXPORT_ORDER",n.GlobalMap="GLOBAL_MAP",n.InsightsComplianceShipper="INSIGHTS_COMPLIANCE_SHIPPER",n.InsightsDelayCausesShipper="INSIGHTS_DELAY_CAUSES",n.InsightsPerformanceShipper="INSIGHTS_PERFORMANCE_SHIPPER",n.InsightsPublicLinkAccessShipper="PUBLIC_LINK_ACCESS_STATS",n.InsightsNotificationsShipper="NOTIFICATION_STATS",n.InsightsWhyTrackingAnalyzerShipper="INSIGHTS_WHY_TRACKING_ANALYZER",n.InsightsConformityStatusShipper="INSIGHTS_CONFORMITY_STATUS",n.InsightsOceanDemurrageDetentionShipper="INSIGHTS_OCEAN_DEMURRAGE_DETENTION",n.InsightsOceanLaneInsightsShipper="INSIGHTS_OCEAN_LANE_INSIGHTS",n.InsightsOceanMilestoneCompletenessShipper="INSIGHTS_OCEAN_MILESTONE_COMPLETENESS",n.InsightsOceanPortShipper="INSIGHTS_OCEAN_PORT",n.QualityNewsletterManagement="QUALITY_NEWSLETTER_MANAGEMENT",n.OceanContainerExport="OCEAN_CONTAINER_EXPORT",n.OceanUsersDisplay="OCEAN_USERS_DISPLAY",n.OnboardingAutomationCenter="ONBOARDING_AUTOMATION_CENTER",n.OrderChartering="ORDER_CHARTERING",n.OrderCreation="ORDER_CREATION",n.Orders="ORDERS",n.PreferencesNotifications="PREFERENCES_NOTIFICATIONS",n.Tours="TOURS",n.ReGeoCode="REGEOCODE",n.InsightsOceanCsvExport="OCEAN_CSV_EXPORT",n}(ct||{}),tt=function(n){return n.OrderAndOperationsManagement="ORDER_AND_OPERATIONS_MANAGEMENT",n.Administration="ADMINISTRATION",n.Insights="INSIGHTS",n.CarbonVisibility="CARBON_VISIBILITY",n.AnalyticsExport="ANALYTICS_EXPORT",n}(tt||{});class bn extends H{register(){this.add(u({description:(0,a.x)("[[user feature]] Users have access to the Orders page and perform various actions on orders."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Manage Orders"),name:ct.Orders})).add(u({description:(0,a.x)("[[user feature]] Users can create new orders, providing details such as order reference, loading site, delivery site, and dates for loading and delivery."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Create Orders"),name:ct.OrderCreation})).add(u({description:(0,a.x)("[[user feature]] Users can charter orders without confirming the price."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Charter Orders"),name:ct.OrderChartering})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Tours page and perform various actions on orders."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Manage Tours"),name:ct.Tours})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Global map page to follow on duty resources."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Access to Global Map"),name:ct.GlobalMap})).add(u({description:(0,a.x)("[[user feature]] Users can delete comments created by other users of their organization."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Manage Discussion"),name:ct.AdministrationDiscussion})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Notifications preference page and can subscribe or unsubscribe from Shippeo Template Notifications."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Subscribe to Shippeo Notifications"),name:ct.PreferencesNotifications})).add(u({description:(0,a.x)("[[user feature]] Users have access to My carriers page from the user menu. Users must have a Salesforce account, as it redirects to the Salesforce OAC on Shippeo."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Access to the Onboarding Automation Center"),name:ct.OnboardingAutomationCenter})).add(u({description:(0,a.x)("[[user feature]] Apply to the user a default set of filters optimized for managing ocean orders."),group:tt.OrderAndOperationsManagement,label:(0,a.x)("[[user feature]] Apply Ocean User Display Filters"),name:ct.OceanUsersDisplay})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Users administration page and can manage their organization's users (add, edit, duplicate, activate and deactivate)."),group:tt.Administration,label:(0,a.x)("[[user feature]] Administrate Users"),name:ct.AdministrationUsers})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Mobile Fleet, Telematic Fleet, and Telematics administration pages. They can manage their organization's Fleet (add, edit, activate, deactivate, and delegate) and view Telematics details."),group:tt.Administration,label:(0,a.x)("[[user feature]] Administrate Resources"),name:ct.AdministrationResources})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Places administration page and can manage their organization's places (add, edit, activate and deactivate)."),group:tt.Administration,label:(0,a.x)("[[user feature]] Administrate Places"),name:ct.AdministrationPlaces})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Tags administration page and can manage their organization's tags (add, edit, and delete)."),group:tt.Administration,label:(0,a.x)("[[user feature]] Administrate Tags"),name:ct.AdministrationTags})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Notification administration page and can view their organization's notifications."),group:tt.Administration,infoMessage:(0,a.x)("[[user feature]] Please contact the NSA product team before activating this feature."),label:(0,a.x)("[[user feature]] Administrate Notifications Overview only"),name:ct.AdministrateOrganizationNotification})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Notification administration page and can manage their organization's notifications (add, edit, activate, deactivate, and delete ) using the Notification Builder."),group:tt.Administration,infoMessage:(0,a.x)("[[user feature]] Please contact the NSA product team before activating this feature."),label:(0,a.x)("[[user feature]] Administrate Notifications with Builder Access"),name:ct.BuilderAccess})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Quality Newsletter administration page and can manage their organization's newsletters (add, edit, and delete)."),group:tt.Administration,label:(0,a.x)("[[user feature]] Administrate Quality Newsletters"),name:ct.QualityNewsletterManagement})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Compliance dashboard."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Road - Compliance"),name:ct.InsightsComplianceShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Smart Tracking Analyzer dashboard."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Road - Smart Tracking Analyzer"),name:ct.InsightsWhyTrackingAnalyzerShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Performance dashboard. Requires Shippeo Insights subscription."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Road - Performance"),name:ct.InsightsPerformanceShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Event-in rate and OTIF dashboards. Requires Shippeo Insights subscription."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Road - Event-in rate + OTIF"),name:ct.InsightsConformityStatusShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Delay Causes and Delay Justification dashboards. Requires specific subscription to Shippeo Workflows."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Road - Delay Causes"),name:ct.InsightsDelayCausesShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Port Insights dashboard. Requires Shippeo Insights subscription."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Ocean - Port Insights"),name:ct.InsightsOceanPortShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Lane Insights dashboard. Requires Shippeo Insights subscription."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Ocean - Lane Insights"),name:ct.InsightsOceanLaneInsightsShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the D&D Analysis and Real-time D&D dashboards. Requires Shippeo Insights subscription."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Ocean - Demurrage & Detention"),name:ct.InsightsOceanDemurrageDetentionShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Milestone Completeness dashboard - DO NOT ENABLE. Only permitted for certain demos."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights for Ocean - Milestone Completeness [DO NOT ENABLE]"),name:ct.InsightsOceanMilestoneCompletenessShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Public link usage dashboard. Requires Shippeo Insights subscription."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights - Public link usage"),name:ct.InsightsPublicLinkAccessShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Notifications dashboard. Only enable if the organization uses notifications."),group:tt.Insights,label:(0,a.x)("[[user feature]] Insights - Notifications"),name:ct.InsightsNotificationsShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the multi-mode Carbon Visibility dashboard. Requires Carbon Visibility subscription."),group:tt.CarbonVisibility,label:(0,a.x)("[[user feature]] Carbon Visibility - Overview"),name:_i.InsightsCarbonShipper})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Carbon Visibility - road dashboard. Requires Carbon Visibility subscription."),group:tt.CarbonVisibility,label:(0,a.x)("[[user feature]] Carbon Visibility - Road"),name:_i.InsightsRoadCarbonDetailed})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Carbon Visibility - ocean dashboard. Requires Carbon Visibility subscription."),group:tt.CarbonVisibility,label:(0,a.x)("[[user feature]] Carbon Visibility - Ocean"),name:_i.InsightsOceanCarbonDetailed})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Carbon Data Completeness (road) dashboard. Requires Carbon Visibility subscription."),group:tt.CarbonVisibility,label:(0,a.x)("[[user feature]] Carbon Visibility - Carbon Data Completeness (road)"),name:_i.InsightsRoadCarbonCompleteness})).add(u({description:(0,a.x)("[[user feature]] Users have access to the Carbon Data Completeness (ocean) dashboard. Requires Carbon Visibility subscription."),group:tt.CarbonVisibility,label:(0,a.x)("[[user feature]] Carbon Visibility - Carbon Data Completeness (ocean)"),name:_i.InsightsOceanCarbonCompleteness})).add(u({description:(0,a.x)("[[user feature]] Enables the Analytics Export for Road menu item for users, which allows the export via e-mail of Road orders."),group:tt.AnalyticsExport,label:(0,a.x)("[[user feature]] Analytics Export for Road"),name:ct.ExportOrder})).add(u({description:(0,a.x)("[[user feature]] Enables the Analytics Export for Ocean menu item for users, which allows the export via e-mail of Ocean orders."),group:tt.AnalyticsExport,label:(0,a.x)("[[user feature]] Analytics Export for Ocean"),name:ct.ExportOcean})).add(u({description:(0,a.x)("[[user feature]] Enables the Analytics Export for Handling Units menu item for users, which allows the export via e-mail of Handling Units."),group:tt.AnalyticsExport,label:(0,a.x)("[[user feature]] Analytics Export for Handling Units"),name:ct.ExportHandlingUnits}))}}const Io=new bn,xn={Deserialize:n=>n.map(m=>Io.get(m)),Serialize:n=>n.filter(({isActive:m})=>m).map(({name:m})=>m)};var No=function(n){return n.Carrier="CARRIER",n.OceanShipper="OCEAN_SHIPPER",n.ParcelShipper="PARCEL_SHIPPER",n.Shipper="SHIPPER",n.ThirdPartyLogistics="THIRD_PARTY_LOGISTICS",n}(No||{});class ti{constructor(){this.features=[],this.isReadOnly=!1}static isReadonly(m){return m.isReadOnly}static isSaved(m){return!!m.id}static OnSerialized(m,W){W.features=xn.Serialize(m.features)}transformRequest(){return(0,e.Serialize)(this,ti)}}(0,t.Cg)([(0,e.autoserializeAs)(xn),(0,t.Sn)("design:type",Array)],ti.prototype,"features",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],ti.prototype,"id",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",Object)],ti.prototype,"isReadOnly",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],ti.prototype,"name",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],ti.prototype,"type",void 0);const Lo=n=>(0,e.Deserialize)(n??{},ti);var Mn=r(82333),bo=r(65355),Ni=r(87431),Gn=r(79765);class Po{constructor(){this.privileges=[]}containsPrivilege(m){return(0,Gn.A)(m,this.getPrivileges())}findPrivilegeFromRole(m){return this.getPrivileges().find(W=>m.hasPrivilegeName(W.value))}getLabel(){return this.label}getPrivilegeLabels(){return this.getPrivileges().map(({label:m})=>m)}getPrivilegeValues(){return this.getPrivileges().map(({value:m})=>m)}getPrivileges(){return this.privileges}getRoleName(){return this.roleName}hasPrivilegeName(m){return this.getPrivileges().some(W=>W.value===m)}hasPrivileges(){return!(0,Ni.A)(this.getPrivileges())}isEqual(m){return this.roleName===m}setLabel(m){this.label=m}setPrivilegeFromDefinition(m,W){this.setPrivilegesFromDefinition(m?[m]:[],W)}setPrivileges(m){this.privileges=m}setPrivilegesFromDefinition(m,W){if(W.hasPrivileges()){const Ee=W.findPrivilegesByNames(m);this.setPrivileges(Ee)}}setValue(m){this.roleName=m}findPrivilegesByNames(m){return this.getPrivileges().filter(({value:W})=>m.includes(W))}}class xo extends Po{constructor(){super(...arguments),this.children=[]}addChildren(m){this.children=[...this.children,...m]}containsChildRole(m){return(0,Gn.A)(m,this.children)}getChildren(){return this.children}hasChildren(){return!(0,Ni.A)(this.getChildren())}setChildren(m){this.children=m}setChildrenFromDefinition(m,W){if(W.hasChildren()){const Ee=W.findChildRolesByNames(m);this.setChildren(Ee)}}findChildRolesByNames(m){return this.getChildren().filter(W=>m.includes(W.getRoleName()))}}var at=function(n){return n.AccessDeveloperPortal="ROLE_ACCESS_DEVELOPER_PORTAL",n.Admin="ROLE_ADMIN",n.ApiEtasWrite="ROLE_API_ETAS_WRITE",n.ApiEventsWrite="ROLE_API_EVENTS_WRITE",n.ApiOrderWrite="ROLE_API_ORDER_WRITE",n.ApiPositionsWrite="ROLE_API_POSITIONS_WRITE",n.ClientAdmin="ROLE_CLIENT_ADMIN",n.ClientApi="ROLE_CLIENT_API",n.ClientDriver="ROLE_CLIENT_DRIVER",n.ClientExploitant="ROLE_CLIENT_EXPLOITANT",n.SuperAdmin="ROLE_SUPER_ADMIN",n.SuperAdminNotification="ROLE_SUPER_ADMIN_NOTIFICATION",n.UserTemporaryE2open="ROLE_USER_TEMPORARY_E2OPEN",n}(at||{});class vt extends xo{constructor(m,W){super(),this.label=W,this.roleName=m}static create(m,W){return new vt(m,W)}static isRoleOperatorApi(m){return(0,Ln.A)((0,Mn.A)([at.ClientApi,at.ApiEventsWrite,at.ApiOrderWrite,at.ApiPositionsWrite,at.ApiEtasWrite]),(0,bo.A)(Ni.A))(m)}isAdmin(){return this.roleName===at.Admin}isApi(){return this.roleName===at.ClientApi}isClientAdmin(){return this.roleName===at.ClientAdmin}isDriver(){return this.roleName===at.ClientDriver}isOperator(){return this.roleName===at.ClientExploitant}isOperatorApi(){return vt.isRoleOperatorApi(this.getChildren().map(m=>m.roleName))}isSuperAdmin(){return this.roleName===at.SuperAdmin}isSuperAdminNotification(){return this.roleName===at.SuperAdminNotification}}const Un=vt.create(at.ClientExploitant,(0,a.x)("Operator"));Un.addChildren([vt.create(at.AccessDeveloperPortal,(0,a.x)("Access to developer portal"))]);const Fn=vt.create(at.ClientApi,(0,a.x)("API"));Fn.addChildren([vt.create(at.ClientApi,(0,a.x)("Admin")),vt.create(at.ApiOrderWrite,(0,a.x)("Orders in")),vt.create(at.ApiEventsWrite,(0,a.x)("Events in")),vt.create(at.ApiPositionsWrite,(0,a.x)("Positions in")),vt.create(at.ApiEtasWrite,(0,a.x)("ETAs in"))]);const zn=vt.create(at.Admin,(0,a.x)("Admin"));zn.addChildren([vt.create(at.UserTemporaryE2open,(0,a.x)("Partner admin (for external API users - optional)")),vt.create(at.SuperAdminNotification,(0,a.x)("Notification admin (optional)"))]);class Yt{static#e=this.roles=[vt.create(at.ClientDriver,(0,a.x)("Driver")),Un,Fn,vt.create(at.SuperAdmin,(0,a.x)("Super Admin")),zn,vt.create(at.SuperAdminNotification,(0,a.x)("Super Admin Notification"))];static getFrontUserRoles(){return[vt.create(at.ClientExploitant,(0,a.x)("Operator")),Fn]}static getReferenceByNames(m=[]){return m.map(Yt.getReferenceByNameOrChildName).filter(W=>!(0,$e.A)(W)).reduce((W,Ee)=>(W.setValue(Ee.getRoleName()),W.setLabel(Ee.getLabel()),W.setChildrenFromDefinition(m,Ee),W.setPrivilegesFromDefinition(m,Ee),W),vt.create())}static getUserApiChildren(){return Yt.getReferenceByNameOrChildName(at.ClientApi).getChildren()}static getUserAdminChildren(){return Yt.getReferenceByNameOrChildName(at.Admin).getChildren()}static getUserOperatorChildren(){return Yt.getReferenceByNameOrChildName(at.ClientExploitant).getChildren()}static getUserRoles(){return Yt.roles.filter(m=>!m.isDriver())}static getReferenceByNameOrChildName(m){return Yt.roles.find(W=>W.isEqual(m)||W.getChildren().find(Ee=>Ee.isEqual(m)))}}(0,t.Cg)([(0,$i.w)({ifReturnNull:!0}),(0,t.Sn)("design:type",Function),(0,t.Sn)("design:paramtypes",[String]),(0,t.Sn)("design:returntype",vt)],Yt,"getReferenceByNameOrChildName",null);var kn=function(n){return n.ShippeoCredentials="SHIPPEO_CREDENTIALS",n.Sso="SSO",n}(kn||{});class Et{constructor(m){this.firstname="",this.lastname="",this.lastAppVersionUsed="",this.agencyLinks=[],this.email="",this.receiveMail=!0,Object.assign(this,m)}static createUser(m={}){const W=new Et(m);return m.agencyLinks&&(W.agencyLinks=m.agencyLinks.map(je)),W.deactivatedAt=m.deactivatedAt?new Date(m.deactivatedAt):void 0,W.language=pe.NH.getByCode(m.lang),W.organization=oe(m.organization),W.role=Yt.getReferenceByNames(m.roles),W.timezone=zi.getByName(m.timezone),W.userProfile=Lo(m.userProfile),W.userFullname=W.getFullName(),W}static createUserWithOrganization(m){const W=Et.createUser();return W.setOrganization(m),W}static transformRequest(m){const W={...m,lang:m.language.code,organization:m.organization.id,relationships:{companiesLinkedToUser:m.agencyLinks?m.agencyLinks.map(Dt.transformRequest):[]},role:[],timezone:mi.transformRequest(m.timezone),userProfile:m.getProfileId(m.roles)};return delete W.language,delete W.agencyLinks,delete W.agencies,delete W.companiesLinkedToUser,delete W.followedAgencies,W}getActiveFeatures(){return this.userProfile.features.filter(({isActive:m})=>m)}getAgencies(){return this.agencies}getAgenciesFeatures(){return[].concat(...this.getAgencies().map(m=>m.features))}getAgencyLinks(){return this.agencyLinks}getDefaultAgency(){const m=this.agencyLinks.find(W=>W.isDefault());return m&&m.getAgency()}getFollowedAgencies(){return this.getAgencyLinks().filter(m=>!m.isDefault()).map(m=>m.getAgency())}getFullName(){return`${this.firstname} ${this.lastname}`.trim()}getOrganizationFeatureNames(){return this.organization.getFeatureNames()}getOrganizationId(){return this.organization.id}getRoleName(){return this.role.getRoleName()}getSalesforceId(){return this.salesforceId}getStatusIconName(){return this.deactivatedAt?"x-circle":"check-circle"}hasAgencies(){return!!this.getAgencies()}hasAgencyFeature(m){return this.getAgenciesFeatures().some(W=>W.name===m)}hasFeature(m){return this.getActiveFeatures().some(W=>W.name===m)}hasId(){return!!this.id}hasOrganization(){return!!this.organization.id}hasOrganizationFeature(m){return this.getOrganizationFeatureNames().includes(m)}hasRoles(){return!!this.role}isAdmin(){return this.getRoleName()===at.Admin}isClientAdmin(){return this.role.isClientAdmin()}isDriver(){return this.role.isDriver()}isEqual(m){return this.id===m.id}isOperator(){return this.role.isOperator()}isOperatorApi(){return this.role.isOperatorApi()}isSuperAdmin(){return this.role.isSuperAdmin()}hasAdminAccess(){return this.isAdmin()||this.isSuperAdmin()||this.isSuperAdminNotification()}isSuperAdminNotification(){return this.role.isSuperAdminNotification()||this.role.getChildren().some(m=>m.isSuperAdminNotification())}setAgencies(m){this.agencies=m}setAgencyLinks(m){this.agencyLinks=m,this.setAgencies(m.map(W=>W.getAgency()))}setLanguage(m){this.language=m}setOrganization(m){this.organization=m}setRole(m){this.role=m}setTimezone(m){this.timezone=m}getProfileId(m){return vt.isRoleOperatorApi(m)||this.isDriver()?"":this.userProfile.id}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Et.prototype,"firstname",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Et.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Et.prototype,"isAccountOwner",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Et.prototype,"lastname",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Et.prototype,"lastAppVersionUsed",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Et.prototype,"receivers",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Et.prototype,"salesforceId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Et.prototype,"username",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Et.prototype,"defaultAgency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Et.prototype,"authenticationMethod",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Et.prototype,"hasAccessToDeveloperPortal",void 0);const Mo=(n={},m)=>{const W=Et.createUser(n);return W.organization=m,W};class Mt{getUserId(){return this.user.id}hasId(){return!!this.id}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Mt.prototype,"id",void 0),(0,t.Cg)([(0,e.deserializeAs)("message"),(0,t.Sn)("design:type",String)],Mt.prototype,"text",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Mt.prototype,"createdAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Mt.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Mt.prototype,"readAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(Et),(0,t.Sn)("design:type",Et)],Mt.prototype,"driver",void 0),(0,t.Cg)([(0,e.deserializeAs)(Et),(0,t.Sn)("design:type",Et)],Mt.prototype,"user",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Mt.prototype,"isRead",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Mt.prototype,"canDelete",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Mt.prototype,"canEdit",void 0);const Go=(n={})=>(0,e.Deserialize)(n,Mt);class hi{static OnDeserialized(m,W={}){m.isRead=!!W.lastMessage?.readAt||!W.lastMessage?.user}addMessage(m){this.messages=[...this.messages,m]}removeMessageById(m){const W=this.messages.findIndex(Ee=>Ee.id===m);this.messages.splice(W,1)}setAsRead(){this.lastMessage.isRead=!0}setMessages(m){this.messages=[...m]}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],hi.prototype,"id",void 0),(0,t.Cg)([(0,e.deserializeAs)(Mt),(0,t.Sn)("design:type",Array)],hi.prototype,"messages",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],hi.prototype,"createdAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Mt)],hi.prototype,"lastMessage",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],hi.prototype,"name",void 0);const Uo=(n={})=>(0,e.Deserialize)(n,hi);var wn=function(n){return n.Scheduled="SCHEDULED",n.Arrived="ARRIVED",n.Loaded="LOADED",n.Delivered="DELIVERED",n.Appointment="APPOINTMENT",n.ParcelLoading="loading",n.ParcelDelivery="delivery",n.ParcelHub="hub",n.ParcelDeliveryHub="deliveryHub",n.Terminal="terminal",n.Left="left",n}(wn||{});const gr=2;var tn=function(n){return n.AgencyId="agencyId",n.AreUnexpectedGoodsAllowedAtDelivery="areUnexpectedGoodsAllowedAtDelivery",n.AreUnexpectedGoodsAllowedAtLoading="areUnexpectedGoodsAllowedAtLoading",n.EmptyGoodsDefaultType="emptyGoodsDefaultType",n.GPSFrequency="GPSFrequency",n.GoodsDeclarationType="goodsDeclarationType",n.IsMandatoryScan="isMandatoryScan",n.IsReturnablePackingsDeclarationAllowed="isReturnablePackingsDeclarationAllowed",n.IsSignatureAtDeliveryRequired="isSignatureAtDeliveryRequired",n.IsSignatureAtLoadingRequired="isSignatureAtLoadingRequired",n.TrackingMode="trackingMode",n}(tn||{}),ai=function(n){return n.AllFeatures="all_features",n.GoodsAndIssuesDeclaration="goods_and_issues_declaration",n.GpsTracking="gps_tracking",n.MilestoneDeclaration="milestone_declaration",n.NoMobileTracking="no_mobile_tracking",n}(ai||{}),Vn=function(n){return n.Automatic="automatic",n.FreightMeasures="freight_measures",n.HandlingUnits="handling_units",n.PackingQualifier="packing_qualifier",n}(Vn||{}),Bn=function(n){return n.FreightMeasures="freight_measures",n.HandlingUnits="handling_units",n.PackingQualifier="packing_qualifier",n}(Bn||{});class Ft{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ft.prototype,"agencyId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ft.prototype,"areUnexpectedGoodsAllowedAtDelivery",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ft.prototype,"areUnexpectedGoodsAllowedAtLoading",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ft.prototype,"emptyGoodsDefaultType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Ft.prototype,"GPSFrequency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ft.prototype,"goodsDeclarationType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ft.prototype,"isMandatoryScan",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ft.prototype,"isReturnablePackingsDeclarationAllowed",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ft.prototype,"isSignatureAtDeliveryRequired",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ft.prototype,"isSignatureAtLoadingRequired",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ft.prototype,"trackingMode",void 0);const Hn=n=>(0,e.Deserialize)(n,Ft);var mr=r(89418),Wn=function(n){return n.Edi="edi",n.Smartphone="smartphone",n.Telematic="telematic",n.TelematicPulling="telematic-pulling",n.Web="web",n.TelematicUnknown="telematic-unknown",n.TelematicPushing="telematic-pushing",n.CustomIntegration="custom-integration",n.EdiUnknown="edi-unknown",n}(Wn||{}),Yn=function(n){return n.ExistingCarrier="existingCarrier",n.SubcontractorsOnly="subcontractorsOnly",n.Smartphone="smartphone",n.TelematicPushing="telematicPushing",n.TelematicPulling="telematicPulling",n.TelematicUnknown="telematicUnknown",n.Edi="edi",n.EdiUnknown="edi-unknown",n}(Yn||{});class jn{static transformRequest(m){return{...m,phone:(0,mr.l)(m.phone)?.number}}}class Yo{}class jo{static transformRequest(m){return m.phoneNumber=m.phoneNumber.replace(/ /g,""),{...m}}}class $o{}class Ko{constructor(){this.address=new C,this.public=!0,this.vat=new $o}}class Xo{constructor(){this.connections=[],this.organization=new Ko,this.qualification=new Yo,this.user=new jn}static transformRequest(m){return m.user=jn.transformRequest(m.user),{...m}}}var Jo=function(n){return n.Arrival="arrival",n.Departure="departure",n}(Jo||{}),Qo=function(n){return n.Manual="MANUAL",n.Standard="STANDARD",n}(Qo||{}),$n=function(n){return n.ToBePaid="TO_BE_PAID",n.ToPay="TO_PAY",n}($n||{}),Zo=function(n){return n.Anomaly="ANOMALY",n.Planning="PLANNING",n.Problem="PROBLEM",n.Tracking="TRACKING",n.TrackingGoodsEvent="TRACKED_GOODS_EVENT",n.SummaryEvent="SUMMARY_EVENT",n}(Zo||{}),ki=function(n){return n.IsNotRequired="is_not_required",n.IsRequired="is_required",n.IsTaken="is_taken",n}(ki||{});const Kn={Deserialize:n=>((n={})=>(0,e.Deserialize)(n,Se))(n)};class st{static OnDeserialized(m){m.geoCode=m.geofencing?l(m.geofencing):void 0,m.appointment&&(m.appointment.appointmentState=m.appointmentState)}getAppointmentDate(){return this.appointment&&this.appointment.hasDate()?this.appointment.getDate():this.theoreticalEndAt}getAppointmentDateOrScheduledAt(){return this.appointment?.hasDate()?this.appointment.getDate():this.scheduledAt}isAppointmentRequired(){return this.appointmentState===ki.IsRequired}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],st.prototype,"activityTime",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Kn),(0,t.Sn)("design:type",Se)],st.prototype,"appointment",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],st.prototype,"arrivedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"contact",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"appointmentState",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"contactPhone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"country",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"countryCode",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],st.prototype,"dateTime",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],st.prototype,"geofencing",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"email",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],st.prototype,"geofencingRadius",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"instruction",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],st.prototype,"isSkipped",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],st.prototype,"loadedUnloadedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"localeDate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"phone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"placeId",void 0),(0,t.Cg)([(0,e.deserializeAs)(E),(0,t.Sn)("design:type",E)],st.prototype,"position",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"postalCode",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],st.prototype,"scheduledAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"street",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"siret",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],st.prototype,"theoreticalDepartureDate",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],st.prototype,"theoreticalEndAt",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],st.prototype,"theoreticalStartAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],st.prototype,"timestamp",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"town",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],st.prototype,"unlocode",void 0);var Kt=r(18306),nn=function(n){return n.Private="PRIVATE",n.SharedViewAndAssign="SHARED_VIEW_AND_ASSIGN",n.SharedViewOnly="SHARED_VIEW_ONLY",n}(nn||{}),Xn=function(n){return n.Added="ADDED",n.Removed="REMOVED",n}(Xn||{}),on=function(n){return n.Modify="MODIFY",n.Read="READ",n}(on||{});class Gt{constructor(){this.organization=qe(),this.closable=!0}static#e=this.colorMapping={"#092e50":Kt.zH.Purple,"#107d45":Kt.zH.Teal,"#17b464":Kt.zH.Green,"#195e9e":Kt.zH.Blue,"#4f575c":Kt.zH.Gray,"#9eb3c7":Kt.zH.LightBlue,"#babcba":Kt.zH.Cyan,"#c52732":Kt.zH.Red,"#e5c258":Kt.zH.Yellow,"#fa7921":Kt.zH.Orange};static OnDeserialized(m){m.color?.includes("#")&&(m.color=Gt.colorMapping[m.color]),m.closable=!m.isAutomaticallyAssigned&&!!m.actionPermissions?.includes(on.Modify)}hasId(){return!!this.id}hasPermissionModify(){return!this.actionPermissions?.length||this.actionPermissions.includes(on.Modify)}transformRequest(){return Object.assign({},this)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Gt.prototype,"actionPermissions",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Gt.prototype,"addedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Gt.prototype,"color",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Gt.prototype,"createdAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Gt.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Gt.prototype,"isAutomaticallyAssigned",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Gt.prototype,"label",void 0),(0,t.Cg)([(0,e.deserializeAs)(he),(0,t.Sn)("design:type",he)],Gt.prototype,"organization",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Gt.prototype,"permission",void 0);const rn=(n={})=>(0,e.Deserialize)(n,Gt),Dr=()=>rn({}),qo=(n={},m)=>{const W=rn(n);return W.organization=m,W};var Jn=function(n){return n.Air="air",n.Ftl="ftl",n.FtlLegacy="ftl_legacy",n.LtlLegacy="ltl_legacy",n.ParcelLegacy="parcel_legacy",n.Ltl="ltl",n.Maritime="maritime",n.Ocean="ocean",n.Parcel="parcel",n.Rail="rail",n.Road="road",n.IntermodalLegacy="intermodal_legacy",n}(Jn||{}),Qn=function(n){return n.Arrival="arrival",n.Departure="departure",n}(Qn||{}),wi=function(n){return n.Api="API",n.Backoffice="BACKOFFICE",n.Cron="CRON",n.Edi="EDI",n.Email="EMAIL",n.MobileAutomatic="MOBILE_AUTOMATIC",n.Telematic="TELEMATIC",n.Unknown="UNKNOWN",n.Web="WEB",n.GoodsSolution="GOODS_SOLUTION",n}(wi||{});const Zn={API:{icon:"cog",label:(0,a.x)("Automatic"),providedName:(0,a.x)("by API")},BACKOFFICE:{icon:"cog",label:(0,a.x)("Automatic"),providedName:(0,a.x)("Automatic")},CRON:{icon:"cog",label:(0,a.x)("Automatic"),providedName:(0,a.x)("Automatic")},EDI:{icon:"edi",label:"Edi",providedName:(0,a.x)("by EDI")},EMAIL:{icon:"mail",label:(0,a.x)("Email"),providedName:(0,a.x)("by Email")},GOODS_SOLUTION:{icon:"",label:(0,a.x)("Goods"),providedName:(0,a.x)("by goods solution")},MOBILE_AUTOMATIC:{icon:"device-mobile",label:(0,a.x)("Mobile app"),providedName:(0,a.x)("by Mobile")},TELEMATIC:{icon:"cog",label:(0,a.x)("Automatic"),providedName:(0,a.x)("by Telematic")},UNKNOWN:{icon:"cube-transparent",label:(0,a.x)("Unknown"),providedName:(0,a.x)("by a web user")},WEB:{icon:"user-circle",label:(0,a.x)("Web"),providedName:(0,a.x)("by a web user")}};var Pe=function(n){return n.HandlingUnitDeliveredConform="HANDLING_UNIT_DELIVERED_CONFORM",n.HandlingUnitDeliveredNotConform="HANDLING_UNIT_DELIVERED_NOT_CONFORM",n.HandlingUnitDeliveredNotConformClosedHolidaysInventory="HANDLING_UNIT_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY",n.HandlingUnitNotDeliveredAbsent="HANDLING_UNIT_NOT_DELIVERED_ABSENT",n.HandlingUnitNotDeliveredAddressObsolete="HANDLING_UNIT_NOT_DELIVERED_ADDRESS_OBSOLETE",n.HandlingUnitNotDeliveredClosingHours="HANDLING_UNIT_NOT_DELIVERED_CLOSING_HOURS",n.HandlingUnitNotDeliveredEntirelyMissing="HANDLING_UNIT_NOT_DELIVERED_ENTIRELY_MISSING",n.HandlingUnitNotDeliveredNewAddress="HANDLING_UNIT_NOT_DELIVERED_NEW_ADDRESS",n.HandlingUnitDeliveredNotConformDamage="HANDLING_UNIT_DELIVERED_NOT_CONFORM_DAMAGE",n.HandlingUnitNotDeliveredNotice="HANDLING_UNIT_NOT_DELIVERED_NOTICE",n.HandlingUnitDeliveryNotRealised="HANDLING_UNIT_DELIVERY_NOT_REALISED",n.HandlingUnitDeliveryRefused="HANDLING_UNIT_DELIVERY_REFUSED",n.HandlingUnitDeliveryRefusedDamage="HANDLING_UNIT_DELIVERY_REFUSED_DAMAGE",n.HandlingUnitDeliveryRefusedLate="HANDLING_UNIT_DELIVERY_REFUSED_LATE",n.HandlingUnitDeliveryRefusedNotJustified="HANDLING_UNIT_DELIVERY_REFUSED_NOT_JUSTIFIED",n.HandlingUnitDeliveryRefusedVariousReason="HANDLING_UNIT_DELIVERY_REFUSED_VARIOUS_REASON",n.HandlingUnitLoadedConform="HANDLING_UNIT_LOADED_CONFORM",n.HandlingUnitLoadedNotConform="HANDLING_UNIT_LOADED_NOT_CONFORM",n.HandlingUnitLoadingRefusedNotJustified="HANDLING_UNIT_LOADING_REFUSED_NOT_JUSTIFIED",n.HandlingUnitLoadingRefusedVariousReason="HANDLING_UNIT_LOADING_REFUSED_VARIOUS_REASON",n.HandlingUnitMisdelivered="HANDLING_UNIT_MISDELIVERED",n.HandlingUnitNotLoadedEntirelyMissing="HANDLING_UNIT_NOT_LOADED_ENTIRELY_MISSING",n.CompliantDeclared="goods.solution.tracked_goods.handling_unit_loading_compliant_declared",n.NonCompliantDeclared="goods.solution.tracked_goods.handling_unit_loading_non_compliant_declared",n.NonRealisedDeclared="goods.solution.tracked_goods.handling_unit_loading_non_realised_declared",n.RefusedDeclared="goods.solution.tracked_goods.handling_unit_loading_refused_declared",n.DeliveryCompliantDeclared="goods.solution.tracked_goods.handling_unit_delivery_compliant_declared",n.DeliveryNonCompliantDeclared="goods.solution.tracked_goods.handling_unit_delivery_non_compliant_declared",n.DeliveryNonRealisedDeclared="goods.solution.tracked_goods.handling_unit_delivery_non_realised_declared",n.DeliveryRefusedDeclared="goods.solution.tracked_goods.handling_unit_delivery_refused_declared",n.ArrivedAtHubDeclared="goods.solution.tracked_goods.handling_unit_arrived_at_hub_declared",n.ArrivedAtDeliveryHubDeclared="goods.solution.tracked_goods.handling_unit_arrived_at_delivery_hub_declared",n.LeftDeliveryHubDeclared="goods.solution.tracked_goods.handling_unit_left_delivery_hub_declared",n.LeftHubDeclared="goods.solution.tracked_goods.handling_unit_left_hub_declared",n.OrderInTransitCalculated="goods.solution.tracked_goods.order_in_transit_calculated",n.OrderInTransitDeclared="goods.solution.tracked_goods.order_in_transit_declared",n.OrderReadyForPickupDeclared="goods.solution.tracked_goods.order_ready_for_pickup_declared",n.OrderReadyForPickupCalculated="goods.solution.tracked_goods.order_ready_for_pickup_calculated",n.HuReadyForPickupDeclared="goods.solution.tracked_goods.handling_unit_ready_for_pickup_declared",n.HuReadyForPickupCalculated="goods.solution.tracked_goods.handling_unit_ready_for_pickup_calculated",n}(Pe||{});ee(Pe.OrderInTransitCalculated,new q({label:(0,a.x)("In transit")})),ee(Pe.OrderInTransitDeclared,new q({label:(0,a.x)("In transit")})),ee(Pe.OrderReadyForPickupDeclared,new q({label:(0,a.x)("Ready for pickup")})),ee(Pe.OrderReadyForPickupCalculated,new q({label:(0,a.x)("Ready for pickup")})),ee(Pe.HuReadyForPickupDeclared,new q({label:(0,a.x)("Ready for pickup")})),ee(Pe.HuReadyForPickupCalculated,new q({label:(0,a.x)("Ready for pickup")})),ee(Pe.CompliantDeclared,new q({label:(0,a.x)("Compliant")})),ee(Pe.NonCompliantDeclared,new q({label:(0,a.x)("Non compliant")})),ee(Pe.NonRealisedDeclared,new q({label:(0,a.x)("Non realised")})),ee(Pe.RefusedDeclared,new q({label:(0,a.x)("Refused")})),ee(Pe.DeliveryCompliantDeclared,new q({label:(0,a.x)("Compliant")})),ee(Pe.DeliveryNonRealisedDeclared,new q({label:(0,a.x)("Non realised")})),ee(Pe.DeliveryRefusedDeclared,new q({label:(0,a.x)("Refused")})),ee(Pe.ArrivedAtHubDeclared,new q({label:(0,a.x)("Arrived")})),ee(Pe.ArrivedAtDeliveryHubDeclared,new q({label:(0,a.x)("Arrived")})),ee(Pe.LeftDeliveryHubDeclared,new q({label:(0,a.x)("Left")})),ee(Pe.LeftHubDeclared,new q({label:(0,a.x)("Left")})),ee(Pe.DeliveryNonCompliantDeclared,new q({label:(0,a.x)("Non compliant")})),ee(Pe.HandlingUnitDeliveredConform,new q({label:(0,a.x)("Conform")})),ee(Pe.HandlingUnitDeliveredNotConform,new q({label:(0,a.x)("Not conform")})),ee(Pe.HandlingUnitDeliveredNotConformClosedHolidaysInventory,new q({label:(0,a.x)("Closed for holidays or inventory")})),ee(Pe.HandlingUnitDeliveredNotConformDamage,new q({label:(0,a.x)("Damage")})),ee(Pe.HandlingUnitDeliveryNotRealised,new q({label:(0,a.x)("Delivery not realised")})),ee(Pe.HandlingUnitDeliveryRefused,new q({label:(0,a.x)("Delivery rejected")})),ee(Pe.HandlingUnitDeliveryRefusedDamage,new q({label:(0,a.x)("Damage")})),ee(Pe.HandlingUnitDeliveryRefusedLate,new q({label:(0,a.x)("Late delivery")})),ee(Pe.HandlingUnitDeliveryRefusedNotJustified,new q({label:(0,a.x)("Not justified")})),ee(Pe.HandlingUnitDeliveryRefusedVariousReason,new q({label:(0,a.x)("Refused by the consignee")})),ee(Pe.HandlingUnitLoadedConform,new q({label:(0,a.x)("Conform")})),ee(Pe.HandlingUnitLoadedNotConform,new q({label:(0,a.x)("Not conform")})),ee(Pe.HandlingUnitLoadingRefusedNotJustified,new q({label:(0,a.x)("Not justified")})),ee(Pe.HandlingUnitLoadingRefusedVariousReason,new q({label:(0,a.x)("Refused by the shipper")})),ee(Pe.HandlingUnitMisdelivered,new q({label:(0,a.x)("Misdelivered")})),ee(Pe.HandlingUnitNotDeliveredAbsent,new q({label:(0,a.x)("Consignee closed or absent")})),ee(Pe.HandlingUnitNotDeliveredAddressObsolete,new q({label:(0,a.x)("Consignee changed address")})),ee(Pe.HandlingUnitNotDeliveredClosingHours,new q({label:(0,a.x)("Weekly closing time")})),ee(Pe.HandlingUnitNotDeliveredEntirelyMissing,new q({label:(0,a.x)("Entirely missing cargo")})),ee(Pe.HandlingUnitNotDeliveredNewAddress,new q({label:(0,a.x)("Deliver to new address")})),ee(Pe.HandlingUnitNotDeliveredNotice,new q({label:(0,a.x)("Notice of delivery left to consignee")})),ee(Pe.HandlingUnitNotLoadedEntirelyMissing,new q({label:(0,a.x)("Entirely missing cargo")}));class Li{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Li.prototype,"hashId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Li.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Li.prototype,"name",void 0);var U=function(n){return n.Abandoned="abandoned",n.AppointmentLoadTaken="APPOINTMENT_LOAD_TAKEN",n.AppointmentUnloadTaken="APPOINTMENT_UNLOAD_TAKEN",n.ArrLoad="ARR_LOAD",n.ArrUnload="ARR_UNLOAD",n.ArrivedAtDeliveryHub="arrivedAtDeliveryHub",n.ArrivedAtHub="arrivedAtHub",n.ArrivedAtTerminal="ARRIVED_AT_TERMINAL",n.CalculatedDelayDrivingTowardSiteLoad="CALCULATED_DELAY_DRIVING_TOWARD_SITE_LOAD",n.CalculatedDelayDrivingTowardSiteUnload="CALCULATED_DELAY_DRIVING_TOWARD_SITE_UNLOAD",n.CalculatedEarlyDrivingTowardSiteLoad="CALCULATED_EARLY_DRIVING_TOWARD_SITE_LOAD",n.completed="completed",n.CalculatedEarlyDrivingTowardSiteUnload="CALCULATED_EARLY_DRIVING_TOWARD_SITE_UNLOAD",n.CancelOrder="CANCEL_ORDER",n.Canceled="canceled",n.Completed="COMPLETED",n.Compliant="compliant",n.NonCompliant="non_compliant",n.NonRealised="non_realised",n.Refused="refused",n.Arrived="arrived",n.Left="left",n.ConLoad="CON_LOAD",n.ConUnload="CON_UNLOAD",n.ContainerAvailableForPickupAtDeliverySite="CONTAINER_AVAILABLE_FOR_PICKUP_AT_DELIVERY_SITE",n.ContainerAvailableForPickupAtLoadingSite="CONTAINER_AVAILABLE_FOR_PICKUP_AT_LOADING_SITE",n.ContainerEmptyGateInAtDeliverySite="CONTAINER_EMPTY_GATE_IN_AT_DELIVERY_SITE",n.ContainerEmptyGateInAtDischargeSite="CONTAINER_EMPTY_GATE_IN_AT_DISCHARGE_SITE",n.ContainerEmptyGateOutAtLoadingSite="CONTAINER_EMPTY_GATE_OUT_AT_LOADING_SITE",n.ContainerFullGateInAtLoadingSite="CONTAINER_FULL_GATE_IN_AT_LOADING_SITE",n.ContainerFullGateOutAtDeliverySite="CONTAINER_FULL_GATE_OUT_AT_DELIVERY_SITE",n.ContainerFullGateOutAtDischargeSite="CONTAINER_FULL_GATE_OUT_AT_DISCHARGE_SITE",n.ContainerLeftLoadingSite="CONTAINER_LEFT_LOADING_SITE",n.ContainerLoaded="CONTAINER_LOADED",n.ContainerLoadedTranshipment="CONTAINER_LOADED_TRANSHIPMENT",n.ContainerOnDeliverySite="CONTAINER_ON_DELIVERY_SITE",n.ContainerOnDischargeSite="CONTAINER_ON_DISCHARGE_SITE",n.ContainerReleasedFromCustomsAtDeliverySite="CONTAINER_RELEASED_FROM_CUSTOMS_AT_DELIVERY_SITE",n.ContainerReleasedFromCustomsAtLoadingSite="CONTAINER_RELEASED_FROM_CUSTOMS_AT_LOADING_SITE",n.ContainerTrackingActivated="CONTAINER_TRACKING_ACTIVATED",n.ContainerUnloaded="CONTAINER_UNLOADED",n.ContainerUnloadedTranshipment="CONTAINER_UNLOADED_TRANSHIPMENT",n.Created="created",n.DelayDrivingTowardSiteLoad="DELAY_DRIVING_TOWARD_SITE_LOAD",n.DelayDrivingTowardSiteUnload="DELAY_DRIVING_TOWARD_SITE_UNLOAD",n.DeliveryCompliant="deliveryCompliant",n.DeliveryNonCompliant="deliveryNonCompliant",n.DeliveryNonRealised="deliveryNonRealised",n.DeliveryRefused="deliveryRefused",n.DeliveryRefusedByShipperVariousReason="DELIVERY_REFUSED_BY_SHIPPER_VARIOUS_REASON",n.DriverConfirmed="DRIVER_CONFIRMED",n.DriverLeftUnload="DRIVER_LEFT_UNLOAD",n.DriverUnconfirmed="DRIVER_UNCONFIRMED",n.DrivingToLoad="DRIVING_TO_LOAD",n.DrivingToUnload="DRIVING_TO_UNLOAD",n.GateInFullAtOceanCarrierDestination="GATE_IN_FULL_AT_OCEAN_CARRIER_DESTINATION",n.GateOutFullAtOceanCarrierOrigin="GATE_OUT_FULL_AT_OCEAN_CARRIER_ORIGIN",n.GoodsDeliveredNotConform="GOODS_DELIVERED_NOT_CONFORM",n.GoodsLoadedNotConform="GOODS_LOADED_NOT_CONFORM",n.HandlingUnitDeliveredConform="HANDLING_UNIT_DELIVERED_CONFORM",n.HandlingUnitDeliveredNotConform="HANDLING_UNIT_DELIVERED_NOT_CONFORM",n.HandlingUnitDeliveredNotConformDamage="HANDLING_UNIT_DELIVERED_NOT_CONFORM_DAMAGE",n.HandlingUnitDeliveredRefusedDamage="HANDLING_UNIT_DELIVERY_REFUSED_DAMAGE",n.HandlingUnitDeliveryRefusedLate="HANDLING_UNIT_DELIVERY_REFUSED_LATE",n.HandlingUnitDeliveryRefusedNotJustified="HANDLING_UNIT_DELIVERY_REFUSED_NOT_JUSTIFIED",n.HandlingUnitDeliveryRefusedVariousReason="HANDLING_UNIT_DELIVERY_REFUSED_VARIOUS_REASON",n.HandlingUnitLoadedConform="HANDLING_UNIT_LOADED_CONFORM",n.HandlingUnitLoadedNotConform="HANDLING_UNIT_LOADED_NOT_CONFORM",n.HandlingUnitLoadingRefusedNotJustified="HANDLING_UNIT_LOADING_REFUSED_NOT_JUSTIFIED",n.HandlingUnitLoadingRefusedVariousReason="HANDLING_UNIT_LOADING_REFUSED_VARIOUS_REASON",n.HandlingUnitMisdelivered="HANDLING_UNIT_MISDELIVERED",n.HandlingUnitNotDeliveredAbsent="HANDLING_UNIT_NOT_DELIVERED_ABSENT",n.HandlingUnitNotDeliveredAddressObselete="HANDLING_UNIT_NOT_DELIVERED_ADDRESS_OBSOLETE",n.HandlingUnitNotDeliveredClosedHolidaysInventory="HANDLING_UNIT_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY",n.HandlingUnitNotDeliveredClosingHours="HANDLING_UNIT_NOT_DELIVERED_CLOSING_HOURS",n.HandlingUnitNotDeliveredEntirelyMissing="HANDLING_UNIT_NOT_DELIVERED_ENTIRELY_MISSING",n.HandlingUnitNotDeliveredNewAddress="HANDLING_UNIT_NOT_DELIVERED_NEW_ADDRESS",n.HandlingUnitNotDeliveredNotice="HANDLING_UNIT_NOT_DELIVERED_NOTICE",n.HandlingUnitNotLoadedEntirelyMissing="HANDLING_UNIT_NOT_LOADED_ENTIRELY_MISSING",n.LeftDeliveryHub="leftDeliveryHub",n.LeftDeliverySite="LEFT_DELIVERY_SITE",n.LeftHub="leftHub",n.LeftLoadingSite="LEFT_LOADING_SITE",n.LeftTerminal="LEFT_TERMINAL",n.LoadingCompliant="loadingCompliant",n.LoadingNonCompliant="loadingNonCompliant",n.LoadingNonRealised="loadingNonRealised",n.LoadingPostponed="LOADING_POSTPONED",n.LoadingRefused="loadingRefused",n.LoadingRefusedByShipperVariousReason="LOADING_REFUSED_BY_SHIPPER_VARIOUS_REASON",n.LoadingWaitingToBeConfirmed="LOADING_WAITING_TO_BE_CONFIRMED",n.LoadingWaitingToBeConfirmedResolved="LOADING_WAITING_TO_BE_CONFIRMED_RESOLVED",n.NoGpsDrivingToLoad="NO_GPS_DRIVING_TO_LOAD",n.NoGpsDrivingToUnload="NO_GPS_DRIVING_TO_UNLOAD",n.NoPositionOnSiteLoad="NO_POSITION_ON_SITE_LOAD",n.NoPositionOnSiteUnload="NO_POSITION_ON_SITE_UNLOAD",n.NotDrivingTowardLoad="NOT_DRIVING_TOWARD_LOAD",n.NotDrivingTowardLoadMobile="NOT_DRIVING_TOWARD_LOAD_MOBILE",n.NotDrivingTowardUnload="NO_DRIVING_TOWARD_UNLOAD",n.NotDrivingTowardUnloadMobile="NOT_DRIVING_TOWARD_UNLOAD_MOBILE",n.OrderAddedToATour="ORDER_ADDED_TO_A_TOUR",n.OrderConfirmed="ORDER_CONFIRMED",n.OrderCreated="ORDER_CREATED",n.OrderDeliveredNotConformDamage="ORDER_DELIVERED_NOT_CONFORM_DAMAGE",n.OrderDeliveredNotConformPartiallyMissing="ORDER_DELIVERED_NOT_CONFORM_PARTIALLY_MISSING",n.OrderDeliveryRefusedDamage="ORDER_DELIVERY_REFUSED_DAMAGE",n.OrderDeliveryRefusedLate="ORDER_DELIVERY_REFUSED_LATE",n.OrderDeliveryRefusedPartiallyMissing="ORDER_DELIVERY_REFUSED_PARTIALLY_MISSING",n.OrderExternalEtaAdded="ORDER_EXTERNAL_ETA_ADDED",n.OrderIsNotPairAlert="ORDER_IS_NOT_PAIR_ALERT",n.OrderIsPair="ORDER_IS_PAIR",n.OrderIsRefused="ORDER_IS_REFUSED",n.OrderIsUnchartered="ORDER_IS_UNCHARTERED",n.OrderIsUnpair="ORDER_IS_UNPAIR",n.OrderLeftDeliverySiteNotProvided="ORDER_LEFT_DELIVERY_SITE_NOT_PROVIDED",n.OrderLeftLoadingSiteNotProvided="ORDER_LEFT_LOADING_SITE_NOT_PROVIDED",n.OrderLoadedNotConformPartiallyMissing="ORDER_LOADED_NOT_CONFORM_PARTIALLY_MISSING",n.OrderModified="ORDER_MODIFIED",n.OrderNotDeliveredAbsent="ORDER_NOT_DELIVERED_ABSENT",n.OrderNotDeliveredAddressObsolete="ORDER_NOT_DELIVERED_ADDRESS_OBSOLETE",n.OrderNotDeliveredClosedHolidaysInventory="ORDER_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY",n.OrderNotDeliveredClosingHours="ORDER_NOT_DELIVERED_CLOSING_HOURS",n.OrderNotDeliveredEntirelyMissing="ORDER_NOT_DELIVERED_ENTIRELY_MISSING",n.OrderNotDeliveredMissingReturnable="ORDER_NOT_DELIVERED_MISSING_RETURNABLE",n.OrderNotDeliveredNewAddress="ORDER_NOT_DELIVERED_NEW_ADDRESS",n.OrderNotDeliveredNoAccessToSite="ORDER_NOT_DELIVERED_NO_ACCESS_TO_SITE",n.OrderNotDeliveredNotice="ORDER_NOT_DELIVERED_NOTICE",n.OrderNotDeliveredReceiverCantPay="ORDER_NOT_DELIVERED_RECEIVER_CANT_PAY",n.OrderNotDeliveredResourceIncident="ORDER_NOT_DELIVERED_RESOURCE_INCIDENT",n.OrderNotDeliveredWrongGoods="ORDER_NOT_DELIVERED_WRONG_GOODS",n.OrderNotLoadedAbsent="ORDER_NOT_LOADED_ABSENT",n.OrderNotLoadedAddressObsolete="ORDER_NOT_LOADED_ADDRESS_OBSOLETE",n.OrderNotLoadedEntirelyMissing="ORDER_NOT_LOADED_ENTIRELY_MISSING",n.OrderNotLoadedNoAccessToSite="ORDER_NOT_LOADED_NO_ACCESS_TO_SITE",n.OrderNotLoadedPartiallyMissing="ORDER_NOT_LOADED_PARTIALLY_MISSING",n.OrderNotLoadedResourceIncident="ORDER_NOT_LOADED_RESOURCE_INCIDENT",n.OrderNotTrackable="ORDER_NOT_TRACKABLE",n.OrderPending="ORDER_PENDING",n.OrderPendingWaitingConfirmation="ORDER_PENDING_WAITING_CONFIRMATION",n.OrderRemovedFromTour="ORDER_REMOVED_FROM_TOUR",n.OrderToBeConfirmed="ORDER_TO_BE_CONFIRMED",n.OrderUnfinished="ORDER_UNFINISHED",n.OrderWaitingToPair="ORDER_WAITING_TO_PAIR",n.RefusedLoad="REFUSED_LOAD",n.RefusedUnload="REFUSED_UNLOAD",n.SkipDeliveryPhase="SKIP_DELIVERY_PHASE",n.SkipLoadingPhase="SKIP_LOADING_PHASE",n.TagModified="TAG_MODIFIED",n.TourChartered="TOUR_CHARTERED",n.TourCharteringConfirmed="TOUR_CHARTERING_CONFIRMED",n.TourCharteringRefused="TOUR_CHARTERING_REFUSED",n.TourCharteringRequested="TOUR_CHARTERING_REQUESTED",n.TourPaired="TOUR_PAIRED",n.TourUnChartered="TOUR_UNCHARTERED",n.TourUnpaired="TOUR_UNPAIRED",n.UnloadingPostponed="UNLOADING_POSTPONED",n.UnloadingWaitingToBeConfirmed="UNLOADING_WAITING_TO_BE_CONFIRMED",n.UnloadingWaitingToBeConfirmedResolved="UNLOADING_WAITING_TO_BE_CONFIRMED_RESOLVED",n}(U||{}),Ye=function(n){return n.Road="road",n}(Ye||{});ee(U.Compliant,new q({label:(0,a.x)("Compliant")}),Ye.Road),ee(U.NonCompliant,new q({label:(0,a.x)("Non compliant")}),Ye.Road),ee(U.NonRealised,new q({label:(0,a.x)("Non realised")}),Ye.Road),ee(U.Refused,new q({label:(0,a.x)("Refused")}),Ye.Road),ee(U.Arrived,new q({label:(0,a.x)("Arrived")}),Ye.Road),ee(U.Left,new q({label:(0,a.x)("Left")}),Ye.Road),ee(U.ArrivedAtTerminal,new q({label:(0,a.x)("Arrived at Terminal")}),Ye.Road),ee(U.LeftTerminal,new q({label:(0,a.x)("Left Terminal")}),Ye.Road),ee(U.ArrLoad,new q({label:(0,a.x)("At loading site")})),ee(U.OrderCreated,new q({label:(0,a.x)("At loading site")})),ee(U.LeftDeliveryHub,new q({label:(0,a.x)("[[RV parcel status]] Left Delivery Hub")})),ee(U.LeftDeliverySite,new q({label:(0,a.x)("At delivery site")})),ee(U.LeftHub,new q({label:(0,a.x)("[[RV parcel status]] Left Hub")})),ee(U.ArrUnload,new q({label:(0,a.x)("At delivery site")})),ee(U.ArrivedAtDeliveryHub,new q({label:(0,a.x)("[[RV parcel status]] Arrived At Delivery Hub")})),ee(U.ArrivedAtHub,new q({label:(0,a.x)("[[RV parcel status]] Arrived At Hub")})),ee(U.CalculatedDelayDrivingTowardSiteLoad,new q({label:(0,a.x)("Likely delay - loading site")})),ee(U.CalculatedDelayDrivingTowardSiteLoad,new q({actionLabel:(0,a.x)("Likely delay at loading site"),label:(0,a.x)("Likely - loading site")}),Ye.Road),ee(U.CalculatedDelayDrivingTowardSiteUnload,new q({label:(0,a.x)("Likely delay - delivery site")})),ee(U.CalculatedDelayDrivingTowardSiteUnload,new q({actionLabel:(0,a.x)("Likely delay at delivery site"),label:(0,a.x)("Likely - delivery site")}),Ye.Road),ee(U.CalculatedEarlyDrivingTowardSiteLoad,new q({label:(0,a.x)("Likely on-time arrival at loading site")})),ee(U.CalculatedEarlyDrivingTowardSiteUnload,new q({label:(0,a.x)("Likely on-time arrival at delivery site")})),ee(U.CancelOrder,new q({label:(0,a.x)("Order cancelled")})),ee(U.ConLoad,new q({label:(0,a.x)("Cargo loaded")})),ee(U.ConLoad,new q({actionLabel:(0,a.x)("Confirm loading"),label:(0,a.x)("Loading conform")}),Ye.Road),ee(U.Abandoned,new q({label:(0,a.x)("Tracking abandoned")})),ee(U.Completed,new q({label:(0,a.x)("Tracking completed")})),ee(U.completed,new q({label:(0,a.x)("Tracking completed")})),ee(U.Canceled,new q({label:(0,a.x)("Tracking cancel")})),ee(U.LoadingCompliant,new q({actionLabel:(0,a.x)("Loading compliant"),label:(0,a.x)("Loading compliant")}),Ye.Road),ee(U.LoadingNonCompliant,new q({actionLabel:(0,a.x)("Loading non compliant"),label:(0,a.x)("Loading non compliant")}),Ye.Road),ee(U.LoadingNonRealised,new q({actionLabel:(0,a.x)("Loading non realised"),label:(0,a.x)("Loading non realised")}),Ye.Road),ee(U.LoadingRefused,new q({actionLabel:(0,a.x)("Loading refused"),label:(0,a.x)("Loading refused")}),Ye.Road),ee(U.DeliveryCompliant,new q({actionLabel:(0,a.x)("Delivery compliant"),label:(0,a.x)("Delivery compliant")}),Ye.Road),ee(U.DeliveryNonCompliant,new q({actionLabel:(0,a.x)("Delivery non compliant"),label:(0,a.x)("Delivery non compliant")}),Ye.Road),ee(U.DeliveryNonRealised,new q({actionLabel:(0,a.x)("Delivery realised"),label:(0,a.x)("Delivery non realised")}),Ye.Road),ee(U.DeliveryRefused,new q({actionLabel:(0,a.x)("Delivery refused"),label:(0,a.x)("Delivery refused")}),Ye.Road),ee(U.ConUnload,new q({label:(0,a.x)("Cargo delivered")})),ee(U.ConUnload,new q({actionLabel:(0,a.x)("Confirm the delivery"),label:(0,a.x)("Delivery conform")}),Ye.Road),ee(U.DelayDrivingTowardSiteLoad,new q({label:(0,a.x)("Reported delay - loading site"),preferredDate:Wt.Delay})),ee(U.DelayDrivingTowardSiteLoad,new q({actionLabel:(0,a.x)("Delay towards loading site"),label:(0,a.x)("Reported - loading site"),preferredDate:Wt.Delay}),Ye.Road),ee(U.DelayDrivingTowardSiteUnload,new q({label:(0,a.x)("Reported delay - delivery site"),preferredDate:Wt.Delay})),ee(U.DelayDrivingTowardSiteUnload,new q({actionLabel:(0,a.x)("Delay towards delivery site"),label:(0,a.x)("Reported - delivery site"),preferredDate:Wt.Delay}),Ye.Road),ee(U.DeliveryRefusedByShipperVariousReason,new q({label:(0,a.x)("Delivery refused by the consignee")})),ee(U.DriverConfirmed,new q({label:(0,a.x)("Resource confirmed")})),ee(U.DriverLeftUnload,new q({label:(0,a.x)("Left delivery site")})),ee(U.DriverUnconfirmed,new q({label:(0,a.x)("The driver did not confirm the transport order")})),ee(U.DrivingToLoad,new q({label:(0,a.x)("On the way to loading site")})),ee(U.DrivingToLoad,new q({label:(0,a.x)("Towards loading site")}),Ye.Road),ee(U.DrivingToUnload,new q({label:(0,a.x)("On the way to delivery site")})),ee(U.DrivingToUnload,new q({label:(0,a.x)("Towards delivery site")}),Ye.Road),ee(U.GoodsDeliveredNotConform,new q({label:(0,a.x)("Cargo delivered - various reservations")})),ee(U.GoodsDeliveredNotConform,new q({actionLabel:(0,a.x)("Confirm the delivery - with reservations"),label:(0,a.x)("Delivery not compliant")}),Ye.Road),ee(U.GoodsLoadedNotConform,new q({label:(0,a.x)("Cargo loaded - various reservations")})),ee(U.GoodsLoadedNotConform,new q({actionLabel:(0,a.x)("Confirm the loading - with reservations"),label:(0,a.x)("Loading not compliant")}),Ye.Road),ee(U.LeftLoadingSite,new q({label:(0,a.x)("Left loading site")})),ee(U.LoadingPostponed,new q({label:(0,a.x)("Loading postponed"),preferredDate:Wt.Delay})),ee(U.LoadingPostponed,new q({actionLabel:(0,a.x)("Postponement at loading site"),label:(0,a.x)("Reported - loading site"),preferredDate:Wt.Delay}),Ye.Road),ee(U.LoadingRefusedByShipperVariousReason,new q({label:(0,a.x)("Loading refused by sender")})),ee(U.LoadingRefusedByShipperVariousReason,new q({label:(0,a.x)("Loading refused by the shipper")}),Ye.Road),ee(U.LoadingWaitingToBeConfirmed,new q({label:(0,a.x)("[[Exceptions label]] Missed milestone at loading site")})),ee(U.LoadingWaitingToBeConfirmedResolved,new q({label:(0,a.x)("Missed milestone at loading site resolved")}),Ye.Road),ee(U.TagModified,new q({label:(0,a.x)("Tag")})),ee(U.NoGpsDrivingToLoad,new q({label:(0,a.x)("Tracking lost on the way to loading site")})),ee(U.NoGpsDrivingToLoad,new q({actionLabel:(0,a.x)("GPS signal lost towards loading site"),label:(0,a.x)("Towards loading site")}),Ye.Road),ee(U.NoGpsDrivingToUnload,new q({label:(0,a.x)("Tracking lost on the way to delivery site")})),ee(U.NoGpsDrivingToUnload,new q({actionLabel:(0,a.x)("GPS signal lost towards delivery site"),label:(0,a.x)("Towards delivery site")}),Ye.Road),ee(U.NoPositionOnSiteLoad,new q({label:(0,a.x)("Tracking lost at loading site")})),ee(U.NoPositionOnSiteLoad,new q({actionLabel:(0,a.x)("Delay observed at loading site"),label:(0,a.x)("Observed - loading site")}),Ye.Road),ee(U.NoPositionOnSiteUnload,new q({label:(0,a.x)("Tracking lost at delivery site")})),ee(U.NoPositionOnSiteUnload,new q({actionLabel:(0,a.x)("Delay observed at delivery site"),label:(0,a.x)("Observed - delivery site")}),Ye.Road),ee(U.NotDrivingTowardLoad,new q({label:(0,a.x)("The driver is not driving towards the loading site")})),ee(U.NotDrivingTowardLoadMobile,new q({label:(0,a.x)("The driver is not driving towards the loading site")})),ee(U.NotDrivingTowardUnload,new q({label:(0,a.x)("The driver is not driving towards the delivery site")})),ee(U.NotDrivingTowardUnloadMobile,new q({label:(0,a.x)("The driver is not driving towards the delivery site")})),ee(U.OrderConfirmed,new q({actionLabel:(0,a.x)("Confirm order"),label:(0,a.x)("Order confirmed")})),ee(U.OrderCreated,new q({label:(0,a.x)("Order created")})),ee(U.OrderCreated,new q({actionLabel:(0,a.x)("Awaiting pairing"),label:(0,a.x)("Order created")}),Ye.Road),ee(U.Created,new q({actionLabel:(0,a.x)("Awaiting pairing"),label:(0,a.x)("Tracking created")})),ee(U.OrderDeliveredNotConformDamage,new q({label:(0,a.x)("Delivered not conform - Damaged")})),ee(U.OrderDeliveredNotConformPartiallyMissing,new q({label:(0,a.x)("Delivered not conform - Partially missing")})),ee(U.OrderDeliveryRefusedDamage,new q({label:(0,a.x)("Delivery refused - Damaged")})),ee(U.OrderDeliveryRefusedLate,new q({label:(0,a.x)("Delivery refused - Late delivery")})),ee(U.OrderDeliveryRefusedPartiallyMissing,new q({label:(0,a.x)("Delivery refused - Partially missing cargo")})),ee(U.OrderIsNotPairAlert,new q({label:(0,a.x)("The order is not paired")})),ee(U.OrderIsPair,new q({label:(0,a.x)("Resource selected")})),ee(U.OrderIsRefused,new q({label:(0,a.x)("Order rejected")})),ee(U.OrderIsRefused,new q({actionLabel:(0,a.x)("Refuse the order"),label:(0,a.x)("Order refused")}),Ye.Road),ee(U.OrderIsUnchartered,new q({label:(0,a.x)("Carrier unselected")})),ee(U.OrderIsUnchartered,new q({label:(0,a.x)("Awaiting pairing")}),Ye.Road),ee(U.OrderIsUnpair,new q({label:(0,a.x)("Resource unselected")})),ee(U.OrderIsUnpair,new q({label:(0,a.x)("Awaiting pairing")}),Ye.Road),ee(U.OrderNotDeliveredAbsent,new q({label:(0,a.x)("Delivery not realised - Consignee closed or absent")})),ee(U.OrderNotDeliveredAbsent,new q({label:(0,a.x)("Delivery not completed - Recipient closed or unavailable")}),Ye.Road),ee(U.OrderNotDeliveredAddressObsolete,new q({label:(0,a.x)("Delivery not realised - Consignee changed address")})),ee(U.OrderNotDeliveredAddressObsolete,new q({label:(0,a.x)("Delivery not completed - Recipient has changed address")}),Ye.Road),ee(U.OrderNotDeliveredClosedHolidaysInventory,new q({label:(0,a.x)("Delivery not realised - Closed for holidays or inventory")})),ee(U.OrderNotDeliveredClosedHolidaysInventory,new q({label:(0,a.x)("Delivery not completed - Closed due to leave or inventory")}),Ye.Road),ee(U.OrderNotDeliveredClosingHours,new q({label:(0,a.x)("Delivery not realised - Weekly closing time")})),ee(U.OrderNotDeliveredClosingHours,new q({label:(0,a.x)("Delivery not completed - Weekly closure")}),Ye.Road),ee(U.OrderNotDeliveredEntirelyMissing,new q({label:(0,a.x)("Delivery not realised - Entirely missing cargo")})),ee(U.OrderNotDeliveredEntirelyMissing,new q({label:(0,a.x)("Delivery not completed - No information")}),Ye.Road),ee(U.OrderNotDeliveredNewAddress,new q({label:(0,a.x)("Delivery not realised - Deliver to new address")})),ee(U.OrderNotDeliveredNewAddress,new q({label:(0,a.x)("Delivery not completed - To be delivered to a new address")}),Ye.Road),ee(U.OrderNotDeliveredNotice,new q({label:(0,a.x)("Delivery not realised - Notice of delivery left to consignee")})),ee(U.OrderNotDeliveredNotice,new q({label:(0,a.x)("Delivery not completed - Non-delivery notice left for recipient")}),Ye.Road),ee(U.OrderLeftDeliverySiteNotProvided,new q({label:(0,a.x)("Left delivery site")})),ee(U.OrderLeftLoadingSiteNotProvided,new q({label:(0,a.x)("Left loading site")})),ee(U.OrderLoadedNotConformPartiallyMissing,new q({label:(0,a.x)("Loaded not conform - Partially missing")})),ee(U.OrderLoadedNotConformPartiallyMissing,new q({label:(0,a.x)("Loading not compliant - Partially missing")}),Ye.Road),ee(U.OrderNotLoadedEntirelyMissing,new q({label:(0,a.x)("Loading not realised - Entirely missing cargo")})),ee(U.OrderNotLoadedEntirelyMissing,new q({label:(0,a.x)("Loading failed - Cargo missing entirely")}),Ye.Road),ee(U.OrderNotLoadedPartiallyMissing,new q({label:(0,a.x)("Loading not realised - Partially missing cargo")})),ee(U.OrderNotLoadedPartiallyMissing,new q({label:(0,a.x)("Loading failed - Partially missing cargo")}),Ye.Road),ee(U.OrderPending,new q({label:(0,a.x)("Carrier selected")}),Ye.Road),ee(U.OrderPending,new q({label:(0,a.x)("Pending confirmation")})),ee(U.OrderPendingWaitingConfirmation,new q({label:(0,a.x)("Order submitted")})),ee(U.OrderPendingWaitingConfirmation,new q({label:(0,a.x)("Pending confirmation")}),Ye.Road),ee(U.OrderToBeConfirmed,new q({label:(0,a.x)("Order submitted")})),ee(U.OrderToBeConfirmed,new q({actionLabel:(0,a.x)("Confirm order"),label:(0,a.x)("To be confirmed")}),Ye.Road),ee(U.OrderUnfinished,new q({label:(0,a.x)("Order not completed")})),ee(U.OrderWaitingToPair,new q({label:(0,a.x)("Order confirmed")})),ee(U.OrderWaitingToPair,new q({actionLabel:(0,a.x)("Select a resource"),label:(0,a.x)("Awaiting pairing")}),Ye.Road),ee(U.OrderExternalEtaAdded,new q({label:(0,a.x)("External ETA added manually")})),ee(U.OrderNotDeliveredReceiverCantPay,new q({label:(0,a.x)("Delivery not realised - Receiver can\u2019t pay")})),ee(U.OrderNotDeliveredNoAccessToSite,new q({label:(0,a.x)("Delivery not realised - No access to site")})),ee(U.OrderNotLoadedAbsent,new q({label:(0,a.x)("Loading not realized - Absent")})),ee(U.OrderNotLoadedAddressObsolete,new q({label:(0,a.x)("Loading not realized - Wrong Address")})),ee(U.OrderNotLoadedNoAccessToSite,new q({label:(0,a.x)("Loading not realized - No access to site")})),ee(U.OrderNotLoadedResourceIncident,new q({label:(0,a.x)("Loading not realized - Resource Incident")})),ee(U.OrderNotDeliveredNoAccessToSite,new q({label:(0,a.x)("Delivery not realized - No access to site")})),ee(U.OrderNotDeliveredResourceIncident,new q({label:(0,a.x)("Delivery not realized - Resource Incident")})),ee(U.OrderNotDeliveredReceiverCantPay,new q({label:(0,a.x)("Delivery not realized - Receiver can't pay")})),ee(U.OrderNotDeliveredMissingReturnable,new q({label:(0,a.x)("Delivery not realized - Missing returnables")})),ee(U.OrderNotDeliveredWrongGoods,new q({label:(0,a.x)("Delivery not realised - Wrong goods")})),ee(U.OrderNotDeliveredResourceIncident,new q({label:(0,a.x)("Delivery not realised - Ressource incident")})),ee(U.OrderNotDeliveredMissingReturnable,new q({label:(0,a.x)("Delivery not realised - Missing returnable")})),ee(U.RefusedLoad,new q({label:(0,a.x)("Loading not realised (not justified)")})),ee(U.RefusedLoad,new q({label:(0,a.x)("Loading failed (not justified)")}),Ye.Road),ee(U.RefusedUnload,new q({label:(0,a.x)("Delivery not realised (not justified)")})),ee(U.RefusedUnload,new q({label:(0,a.x)("Delivery not completed (no reason given)")}),Ye.Road),ee(U.UnloadingPostponed,new q({label:(0,a.x)("Delivery postponed"),preferredDate:Wt.Delay})),ee(U.UnloadingPostponed,new q({actionLabel:(0,a.x)("Postponement at delivery site"),label:(0,a.x)("Reported - delivery site"),preferredDate:Wt.Delay}),Ye.Road),ee(U.UnloadingWaitingToBeConfirmed,new q({label:(0,a.x)("[[Exceptions label]] Missed milestone at delivery site")})),ee(U.UnloadingWaitingToBeConfirmedResolved,new q({label:(0,a.x)("Missed milestone at delivery site resolved")}),Ye.Road),ee(U.OrderAddedToATour,new q({icon:"close",label:(0,a.x)("Order added to the tour")})),ee(U.OrderLoadedNotConformPartiallyMissing,new q({label:(0,a.x)("Loading not conform - Partially missing")})),ee(U.OrderRemovedFromTour,new q({label:(0,a.x)("Order removed from the tour")})),ee(U.SkipDeliveryPhase,new q({label:(0,a.x)("Delivery phase has expired")})),ee(U.SkipLoadingPhase,new q({label:(0,a.x)("Loading phase has expired")})),ee(U.TourCharteringRequested,new q({label:(0,a.x)("Carrier selected for the tour")})),ee(U.TourChartered,new q({label:(0,a.x)("Carrier selected for the tour")})),ee(U.TourCharteringConfirmed,new q({label:(0,a.x)("Tour confirmed")})),ee(U.TourCharteringRefused,new q({label:(0,a.x)("Tour rejected")})),ee(U.TourPaired,new q({label:(0,a.x)("Resource selected for the tour")})),ee(U.TourUnChartered,new q({label:(0,a.x)("Carrier unselected for the tour")})),ee(U.TourUnpaired,new q({label:(0,a.x)("Resource unselected for the tour")})),ee(U.AppointmentLoadTaken,new q({label:(0,a.x)("Appointment made for loading")})),ee(U.AppointmentUnloadTaken,new q({label:(0,a.x)("Appointment made for delivery")})),ee(U.ContainerAvailableForPickupAtDeliverySite,new q({label:(0,a.x)("Available for pickup at delivery site")})),ee(U.ContainerAvailableForPickupAtLoadingSite,new q({label:(0,a.x)("Available for pickup at loading site")})),ee(U.ContainerReleasedFromCustomsAtDeliverySite,new q({label:(0,a.x)("Cleared customs at delivery site")})),ee(U.ContainerReleasedFromCustomsAtLoadingSite,new q({label:(0,a.x)("Cleared customs at loading site")})),ee(U.GateInFullAtOceanCarrierDestination,new q({label:(0,a.x)("Gate-In Full (Inland Destination)")})),ee(U.GateOutFullAtOceanCarrierOrigin,new q({label:(0,a.x)("Gate-Out Full (Inland Origin)")})),ee(U.LoadingCompliant,new q({label:(0,a.x)("Loading compliant")})),ee(U.LoadingNonCompliant,new q({label:(0,a.x)("Loading non compliant")})),ee(U.LoadingNonRealised,new q({label:(0,a.x)("Loading non realised")})),ee(U.LoadingRefused,new q({label:(0,a.x)("Loading refused")})),ee(U.DeliveryCompliant,new q({label:(0,a.x)("Delivery compliant")})),ee(U.DeliveryNonCompliant,new q({label:(0,a.x)("Delivery non compliant")})),ee(U.DeliveryNonRealised,new q({label:(0,a.x)("Delivery non realised")})),ee(U.DeliveryRefused,new q({label:(0,a.x)("Delivery refused")})),ee(U.Abandoned,new q({label:(0,a.x)("Tracking abandoned")})),ee(U.Canceled,new q({label:(0,a.x)("Tracking canceled")})),ee(U.OrderNotTrackable,new q({label:(0,a.x)("[[OV order status]] Not trackable")})),ee(U.OrderModified,new q({label:(0,a.x)("[[OV order status]] Order modified")}));class St{getIconAndColorFromName(){const W=[Pe.HandlingUnitDeliveredNotConformDamage],Ee=[Pe.HandlingUnitDeliveredNotConform,Pe.HandlingUnitDeliveryRefusedNotJustified,Pe.HandlingUnitDeliveryRefusedVariousReason,Pe.HandlingUnitDeliveryRefusedDamage,Pe.HandlingUnitDeliveryRefusedLate,Pe.HandlingUnitLoadedNotConform,Pe.HandlingUnitLoadingRefusedNotJustified,Pe.HandlingUnitLoadingRefusedVariousReason,Pe.HandlingUnitNotDeliveredAbsent,Pe.HandlingUnitNotDeliveredAddressObsolete,Pe.HandlingUnitNotDeliveredClosingHours,Pe.HandlingUnitNotDeliveredNewAddress,Pe.HandlingUnitNotDeliveredNotice,Pe.HandlingUnitDeliveredNotConformClosedHolidaysInventory,Pe.HandlingUnitNotDeliveredEntirelyMissing,Pe.HandlingUnitNotLoadedEntirelyMissing],Ze=this.name;return[Pe.HandlingUnitDeliveredConform,Pe.HandlingUnitLoadedConform].includes(Ze)?{color:"success",icon:"check-circle"}:W.includes(Ze)?{color:"salta",icon:"alert-circle"}:(Ee.includes(Ze),{color:"danger",icon:"close-circle"})}getName(){return this.name}getType(){return this.type}getTypeAsOrderEventName(){return this.type}isCanceled(){return this.type===U.CancelOrder}isDrivingToArrival(){return[U.ArrLoad,U.ConLoad,U.DrivingToLoad,U.DrivingToUnload,U.LeftLoadingSite,U.OrderCreated].includes(this.type)}isDrivingToDeparture(){return[U.DrivingToLoad].includes(this.type)}isRefused(){return[U.RefusedLoad,U.RefusedUnload,U.DeliveryRefusedByShipperVariousReason,U.LoadingRefusedByShipperVariousReason].includes(this.type)}isSameEventName(m){return this.type===m}isUnfinished(){return this.type===U.OrderUnfinished}setTimezone(m=pe.SJ){this.timezone=this.timezone??m}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Li)],St.prototype,"agency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"comment",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"createdAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"dateEvent",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"delay",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"inputDate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],St.prototype,"isIssue",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"platformType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],St.prototype,"timestamp",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],St.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Li)],St.prototype,"user",void 0);const an=(n={})=>(0,e.Deserialize)(n,St);var fi=function(n){return n.Loading="loading",n.Delivery="delivery",n.Hub="hub",n.DeliveryHub="deliveryHub",n.Terminal="terminal",n}(fi||{}),er=function(n){return n.GoodsNotRelevant="goodsNotRelevant",n}(er||{});class sn{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],sn.prototype,"name",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],sn.prototype,"occurredOn",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],sn.prototype,"recordedOn",void 0);class yi{}(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],yi.prototype,"actualEndDate",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],yi.prototype,"actualStartDate",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],yi.prototype,"plannedEndDate",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],yi.prototype,"plannedStartDate",void 0);class Vi{}(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Vi.prototype,"date",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Vi.prototype,"recordedOn",void 0);class si{}(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],si.prototype,"date",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],si.prototype,"precision",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],si.prototype,"recordedOn",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],si.prototype,"source",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],si.prototype,"remainingStops",void 0);class Vt extends C{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Vt.prototype,"countryCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Vt.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Vt.prototype,"position",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Vt.prototype,"postalCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Vt.prototype,"state",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Vt.prototype,"street",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Vt.prototype,"town",void 0);class Bi{}(0,t.Cg)([(0,e.deserializeAs)(Vt),(0,t.Sn)("design:type",Vt)],Bi.prototype,"address",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Bi.prototype,"historyPlaceId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Bi.prototype,"placeHashId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Bi.prototype,"placeId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Bi.prototype,"timezone",void 0),(0,t.Cg)([(0,e.deserializeAs)(Vt),(0,t.Sn)("design:type",Vt)],class Cr{}.prototype,"address",void 0);class bi{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],bi.prototype,"createdByUserId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],bi.prototype,"currentStatus",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],bi.prototype,"occurredOn",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],bi.prototype,"recordedOn",void 0);class Di{getPredictionTimestamp(){return this.eta?.source===ut.ExternalDeclared?"":this.eta?.recordedOn?.toISOString()}}(0,t.Cg)([(0,e.deserializeAs)(yi),(0,t.Sn)("design:type",yi)],Di.prototype,"dates",void 0),(0,t.Cg)([(0,e.deserializeAs)(Vi),(0,t.Sn)("design:type",Vi)],Di.prototype,"declaredEta",void 0),(0,t.Cg)([(0,e.deserializeAs)(si),(0,t.Sn)("design:type",si)],Di.prototype,"eta",void 0),(0,t.Cg)([(0,e.deserializeAs)(sn),(0,t.Sn)("design:type",Array)],Di.prototype,"milestones",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Di.prototype,"place",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Di.prototype,"stopType",void 0);class qn{setAppointment(m){this.appointment=m}}(0,t.Cg)([(0,e.deserializeAs)(bi),(0,t.Sn)("design:type",bi)],qn.prototype,"status",void 0),(0,t.Cg)([(0,e.deserializeAs)(Di),(0,t.Sn)("design:type",Array)],qn.prototype,"stops",void 0);const tr=n=>(0,e.Deserialize)(n,qn);class ln{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ln.prototype,"latitude",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ln.prototype,"longitude",void 0);const eo={Deserialize:n=>n.map(c)};var dn=function(n){return n.ShippeoPlaceQualifier="shippeoPlace",n.UnqualifiedPlaceQualifier="unqualifiedPlace",n}(dn||{});class jt{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],jt.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],jt.prototype,"town",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],jt.prototype,"street",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],jt.prototype,"state",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],jt.prototype,"postalCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],jt.prototype,"country",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],jt.prototype,"countryCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",ln)],jt.prototype,"position",void 0);class to extends jt{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],to.prototype,"timezone",void 0);class io extends jt{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],io.prototype,"timezone",void 0);class vi{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],vi.prototype,"placeId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],vi.prototype,"historyPlaceId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],vi.prototype,"placeHashId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],vi.prototype,"historyPlaceHashId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",io)],vi.prototype,"address",void 0);class Hi{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Hi.prototype,"placeQualifier",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",vi)],Hi.prototype,"shippeoPlace",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",to)],Hi.prototype,"unqualifiedPlace",void 0);class Ci{}(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Ci.prototype,"estimatedAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Ci.prototype,"etaMin",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Ci.prototype,"etaMax",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Ci.prototype,"remainingDistance",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Ci.prototype,"lastCalculationAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ci.prototype,"isLate",void 0);class Bt{}(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"actualStartDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"originalPlannedArrivalStartDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"originalPlannedArrivalEndDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"latestPlannedArrivalStartDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"latestPlannedArrivalEndDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"plannedDepartureDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"arrivedAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"loadedUnloadedAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Bt.prototype,"leftAt",void 0);class cn{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],cn.prototype,"coordinates",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],cn.prototype,"type",void 0);class no{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],no.prototype,"radius",void 0);class pn{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],pn.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",cn)],pn.prototype,"geometry",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",no)],pn.prototype,"properties",void 0);class _{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],_.prototype,"features",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],_.prototype,"type",void 0);class ie{getStopPlaceInfo(){return this.place?.placeQualifier===dn.ShippeoPlaceQualifier?{address:this.place?.shippeoPlace?.address,placeHashId:this.place?.shippeoPlace?.placeHashId,placeId:this.place?.shippeoPlace?.placeId,timezone:this.place?.shippeoPlace?.address.timezone}:{address:this.place?.unqualifiedPlace,placeHashId:void 0,placeId:void 0,timezone:this.place?.unqualifiedPlace?.timezone.timezone}}isAppointmentRequired(){return this.appointmentState===ki.IsRequired}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ie.prototype,"stopType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Hi)],ie.prototype,"place",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],ie.prototype,"eta",void 0),(0,t.Cg)([(0,e.deserializeAs)(Bt),(0,t.Sn)("design:type",Bt)],ie.prototype,"dates",void 0),(0,t.Cg)([(0,e.deserializeAs)(Kn),(0,t.Sn)("design:type",Se)],ie.prototype,"appointment",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ie.prototype,"appointmentState",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],ie.prototype,"appointmentIsRequired",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],ie.prototype,"isSkipped",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ie.prototype,"activityTime",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ie.prototype,"phone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ie.prototype,"geofencingRadius",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",_)],ie.prototype,"geofencing",void 0);const c=(n={})=>(0,e.Deserialize)(n,ie);var D=function(n){return n.OrderCreated="orderCreated",n.DrivingLoadingSite="drivingLoadingSite",n.OnLoadingSite="onLoadingSite",n.DrivingDeliverySite="drivingDeliverySite",n.OnDeliverySite="onDeliverySite",n.OnTerminal="onTerminal",n}(D||{});const G={[U.ArrLoad]:"trolley",[U.ArrUnload]:"warehouse",[U.ConLoad]:"trolley",[U.ConUnload]:"check-circle",[U.DelayDrivingTowardSiteLoad]:"truck",[U.DelayDrivingTowardSiteUnload]:"truck-running",[U.DeliveryRefusedByShipperVariousReason]:"delivery-refused",[U.DriverLeftUnload]:"off-site",[U.DrivingToLoad]:"truck",[U.DrivingToUnload]:"truck-running",[U.GoodsDeliveredNotConform]:"delivery-not-conform",[U.GoodsLoadedNotConform]:"loading-not-conform",[U.OrderConfirmed]:"check",[U.OrderCreated]:"check",[U.OrderDeliveredNotConformDamage]:"delivery-not-conform",[U.OrderDeliveredNotConformPartiallyMissing]:"delivery-not-conform",[U.OrderDeliveryRefusedDamage]:"delivery-refused",[U.OrderDeliveryRefusedLate]:"delivery-refused",[U.OrderDeliveryRefusedPartiallyMissing]:"delivery-refused",[U.OrderIsPair]:"check",[U.OrderIsUnchartered]:"check",[U.OrderIsUnpair]:"check",[U.OrderLoadedNotConformPartiallyMissing]:"loading-refused",[U.OrderNotDeliveredAbsent]:"delivery-refused",[U.OrderNotDeliveredAddressObsolete]:"delivery-refused",[U.OrderNotDeliveredClosedHolidaysInventory]:"delivery-refused",[U.OrderNotDeliveredClosingHours]:"delivery-refused",[U.OrderNotDeliveredEntirelyMissing]:"delivery-refused",[U.OrderNotDeliveredNewAddress]:"delivery-refused",[U.OrderNotDeliveredNotice]:"delivery-refused",[U.OrderNotLoadedEntirelyMissing]:"loading-refused",[U.OrderNotLoadedPartiallyMissing]:"loading-refused",[U.OrderPending]:"check",[U.LeftLoadingSite]:"off-site",[U.LoadingRefusedByShipperVariousReason]:"loading-refused",[U.RefusedLoad]:"loading-refused",[U.RefusedUnload]:"delivery-refused"},Te={[D.DrivingDeliverySite]:(0,a.x)("On the way to delivery site"),[D.DrivingLoadingSite]:(0,a.x)("On the way to loading site"),[D.OnDeliverySite]:(0,a.x)("Delivery"),[D.OnLoadingSite]:(0,a.x)("Loading"),[D.OrderCreated]:(0,a.x)("Order created"),[D.OnTerminal]:(0,a.x)("Terminal")},yt={[D.DrivingDeliverySite]:"truck-running",[D.DrivingLoadingSite]:"truck",[D.OnDeliverySite]:"warehouse",[D.OnTerminal]:"warehouse",[D.OnLoadingSite]:"trolley"},ir=[U.GoodsDeliveredNotConform,U.GoodsLoadedNotConform,U.OrderDeliveredNotConformDamage,U.OrderDeliveredNotConformPartiallyMissing],nr=[U.OrderDeliveryRefusedDamage,U.OrderDeliveryRefusedLate,U.OrderDeliveryRefusedPartiallyMissing,U.OrderNotDeliveredAbsent,U.OrderNotDeliveredAddressObsolete,U.OrderNotDeliveredClosedHolidaysInventory,U.OrderNotDeliveredClosingHours,U.OrderNotDeliveredEntirelyMissing,U.OrderNotDeliveredNewAddress,U.OrderNotDeliveredNotice,U.OrderLoadedNotConformPartiallyMissing,U.OrderNotLoadedEntirelyMissing,U.OrderNotLoadedPartiallyMissing],Xt={Deserialize:n=>new z.B8(n.map(an))};class oo{static OnDeserialized(m){m.lastEvent=m.events.lastOrDefault()}getEventType(){return this.lastEvent?this.lastEvent.getType():void 0}getIcon(){return this.lastEvent?G[this.lastEvent.getType()]:yt[this.type]}getLabel(){return Te[this.type]}hasRefusedEvent(){return!!this.events.firstOrDefault(m=>m.isRefused())}isFinalStep(){return this.type===D.OnDeliverySite}isNotConform(){return!!this.lastEvent&&ir.includes(this.lastEvent.getTypeAsOrderEventName())}isNotRealisedOrRefused(){return!!this.lastEvent&&nr.includes(this.lastEvent.getTypeAsOrderEventName())}setIndex(m){this.index=m}setIsCurrent(m){this.isCurrent=m}setIsCurrentFromStatusName(m){this.setIsCurrent(!!this.events.firstOrDefault(W=>W.isSameEventName(m)||[U.OrderWaitingToPair,U.OrderPendingWaitingConfirmation].includes(m)))}setTimezone(m){this.events.forEach(W=>W.setTimezone(m))}}(0,t.Cg)([(0,e.deserializeAs)(Xt),(0,t.Sn)("design:type",z.B8)],oo.prototype,"events",void 0),(0,t.Cg)([(0,e.deserializeAs)(Xt),(0,t.Sn)("design:type",z.B8)],oo.prototype,"notificationEvents",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],oo.prototype,"type",void 0);const $r=(n={},m)=>{const W=(0,e.Deserialize)(n,oo);return W.setIndex(m),W},Kr={Deserialize:n=>new z.B8(n.map($r))};class or{getCurrentTimelineStep(){return this.timelineSteps.singleOrDefault(m=>m.isCurrent)}getEventsWihoutOrderCreated(){return this.timelineSteps.skip(1).selectMany(m=>m.events.concat(m.notificationEvents))}getSteps(){return this.timelineSteps}setCurrent(m){this.timelineSteps.forEach((W,Ee)=>{W.setIsCurrentFromStatusName(m),W.isLast=Ee===this.timelineSteps.count()-1})}setTimezone(m){this.timelineSteps.forEach(W=>{W.setTimezone(m)})}}(0,t.Cg)([(0,e.deserializeAs)(Kr),(0,t.Sn)("design:type",z.B8)],or.prototype,"timelineSteps",void 0);const Jr={Deserialize:n=>n.map(an)},Qr={Deserialize:n=>an(n)},Er={Deserialize:n=>((n={})=>(0,e.Deserialize)(n,st))(n)},Zr={Deserialize:n=>((n={})=>(0,e.Deserialize)({timelineSteps:n},or))(n)};class Je{constructor(){this.tags=[]}static OnDeserialized(m){m.timeline&&(m.timeline.setTimezone(m.getNextStopPoint()?.timezone),m.timeline.setCurrent(m.currentStatus))}getArrivalAppointmentDate(){return this.arrival.getAppointmentDate()}getClientReferenceId(){return this.client?.reference}getDepartureAppointmentDate(){return this.departure.getAppointmentDate()}getIdAndReference(){return`${this.id} - ${this.reference}`}getNextStopPoint(){return this[this.nextStopPoint]||this.departure}isCanceled(){return this.currentEvent.isCanceled()}isNextStopPointDeparture(){return this.nextStopPoint===Qn.Departure}isUnfinished(){return this.currentEvent.isUnfinished()}getPrice(){return this.prices?.length>0?this.prices.find(({type:m})=>m===$n.ToBePaid)||this.prices[0]:this.price}getArrivalTimezone(){return this.arrival?.timezone}getDepartureTimezone(){return this.departure?.timezone}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"allowedEvents",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Er),(0,t.Sn)("design:type",st)],Je.prototype,"arrival",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"attributes",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"cargoDescription",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"charteredName",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"chartering",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"client",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"comments",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"companyToDisplay",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Qr),(0,t.Sn)("design:type",St)],Je.prototype,"currentEvent",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"currentNotification",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"currentStatus",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Er),(0,t.Sn)("design:type",st)],Je.prototype,"departure",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Je.prototype,"fileCount",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Je.prototype,"generatedAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(wt),(0,t.Sn)("design:type",Array)],Je.prototype,"goods",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Je.prototype,"hasMultiPairing",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Je.prototype,"idDecoded",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Je.prototype,"isLastChartered",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Je.prototype,"isCharteredAtTourLevel",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Je.prototype,"isPublicLinkLight",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Je.prototype,"isPairedAtTourLevel",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Je.prototype,"isInChina",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Je.prototype,"microtime",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"nextAction",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"nextStop",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"nextStopPoint",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"orderActor",void 0),(0,t.Cg)([(0,e.deserializeAs)(eo),(0,t.Sn)("design:type",Array)],Je.prototype,"stops",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"ownerName",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"pair",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Je.prototype,"permissions",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"price",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Je.prototype,"prices",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"reference",void 0),(0,t.Cg)([(0,e.autoserializeAs)(Jr),(0,t.Sn)("design:type",Array)],Je.prototype,"relevantNotifications",void 0),(0,t.Cg)([(0,e.deserializeAs)(Gt),(0,t.Sn)("design:type",Array)],Je.prototype,"tags",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Je.prototype,"theoreticalDistance",void 0),(0,t.Cg)([(0,e.deserializeAs)(Zr),(0,t.Sn)("design:type",or)],Je.prototype,"timeline",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"tour",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"transportMode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"tripType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"consignmentReference",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"contractNumber",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"discussionComment",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"documentCount",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Je.prototype,"newTour",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Je.prototype,"transportType",void 0);const qr=(n={})=>(0,e.Deserialize)(n,Je),ea={ORDER_PERIOD_PAIRING:(0,a.x)("Pairing"),ORDER_THEORETICAL_PERIOD_DELIVERY_ACTIVITY:(0,a.x)("Delivery activity planned"),ORDER_THEORETICAL_PERIOD_DELIVERY_TIMESLOT:(0,a.x)("Delivery timeslot planned"),ORDER_THEORETICAL_PERIOD_LOADING_ACTIVITY:(0,a.x)("Loading activity planned"),ORDER_THEORETICAL_PERIOD_LOADING_TIMESLOT:(0,a.x)("Loading timeslot planned")},Tr=[U.ArrLoad,U.ContainerFullGateInAtLoadingSite,U.LeftLoadingSite,U.ContainerLeftLoadingSite,U.NoGpsDrivingToLoad,U.NoGpsDrivingToUnload,U.OrderLoadedNotConformPartiallyMissing,U.LoadingWaitingToBeConfirmed,U.DrivingToLoad,U.ContainerEmptyGateOutAtLoadingSite,U.NoPositionOnSiteLoad,U.NotDrivingTowardLoad,U.NotDrivingTowardLoadMobile,U.ConLoad,U.ContainerLoaded,U.RefusedLoad,U.LoadingPostponed,U.AppointmentLoadTaken,U.DelayDrivingTowardSiteLoad,U.CalculatedDelayDrivingTowardSiteLoad,U.GoodsLoadedNotConform,U.LoadingRefusedByShipperVariousReason,U.HandlingUnitLoadedConform,U.HandlingUnitLoadingRefusedNotJustified,U.HandlingUnitLoadingRefusedVariousReason,U.HandlingUnitNotLoadedEntirelyMissing,U.HandlingUnitLoadedNotConform,U.OrderLoadedNotConformPartiallyMissing,U.OrderNotLoadedEntirelyMissing,U.OrderNotLoadedPartiallyMissing,U.CalculatedEarlyDrivingTowardSiteLoad,U.ContainerAvailableForPickupAtLoadingSite,U.ContainerReleasedFromCustomsAtLoadingSite,U.OrderNotLoadedAbsent,U.OrderNotLoadedAddressObsolete,U.OrderNotLoadedNoAccessToSite,U.OrderNotLoadedResourceIncident],Rr=[U.ArrUnload,U.ContainerOnDeliverySite,U.OrderDeliveredNotConformDamage,U.OrderDeliveredNotConformPartiallyMissing,U.OrderDeliveryRefusedDamage,U.OrderDeliveryRefusedLate,U.OrderDeliveryRefusedPartiallyMissing,U.DriverLeftUnload,U.ContainerFullGateOutAtDeliverySite,U.UnloadingWaitingToBeConfirmed,U.ConUnload,U.ContainerUnloaded,U.LeftDeliverySite,U.DrivingToUnload,U.NoPositionOnSiteUnload,U.RefusedUnload,U.UnloadingPostponed,U.AppointmentUnloadTaken,U.DelayDrivingTowardSiteUnload,U.CalculatedDelayDrivingTowardSiteUnload,U.GoodsDeliveredNotConform,U.DeliveryRefusedByShipperVariousReason,U.HandlingUnitDeliveredConform,U.HandlingUnitDeliveredNotConform,U.HandlingUnitDeliveryRefusedNotJustified,U.HandlingUnitDeliveryRefusedLate,U.HandlingUnitNotDeliveredEntirelyMissing,U.HandlingUnitDeliveredRefusedDamage,U.HandlingUnitNotDeliveredNewAddress,U.HandlingUnitNotDeliveredNewAddress,U.HandlingUnitNotDeliveredClosingHours,U.HandlingUnitNotDeliveredClosedHolidaysInventory,U.HandlingUnitNotDeliveredAddressObselete,U.HandlingUnitNotDeliveredAddressObselete,U.HandlingUnitNotDeliveredNotice,U.HandlingUnitNotDeliveredAbsent,U.HandlingUnitDeliveredNotConformDamage,U.HandlingUnitDeliveryRefusedVariousReason,U.HandlingUnitMisdelivered,U.OrderNotDeliveredAddressObsolete,U.OrderNotDeliveredClosedHolidaysInventory,U.OrderNotDeliveredClosingHours,U.OrderNotDeliveredEntirelyMissing,U.OrderNotDeliveredAbsent,U.OrderNotDeliveredNewAddress,U.OrderNotDeliveredNotice,U.CalculatedEarlyDrivingTowardSiteUnload,U.ContainerUnloadedTranshipment,U.ContainerLoadedTranshipment,U.ContainerReleasedFromCustomsAtDeliverySite,U.ContainerAvailableForPickupAtDeliverySite,U.ContainerEmptyGateInAtDeliverySite,U.OrderNotDeliveredNoAccessToSite,U.OrderNotDeliveredResourceIncident,U.OrderNotDeliveredReceiverCantPay,U.OrderNotDeliveredMissingReturnable],oa={conform:[U.GoodsDeliveredNotConform,Pe.HandlingUnitDeliveredConform,Pe.HandlingUnitLoadedConform],eventRelatedToArrival:Rr,eventRelatedToDeparture:Tr,notConform:[U.GoodsLoadedNotConform,Pe.HandlingUnitDeliveredNotConform,Pe.HandlingUnitDeliveredNotConformDamage,Pe.HandlingUnitLoadedNotConform],refusedOrNotRealised:[Pe.HandlingUnitDeliveryRefusedDamage,Pe.HandlingUnitDeliveryRefusedLate,Pe.HandlingUnitDeliveryRefusedNotJustified,Pe.HandlingUnitDeliveryRefusedVariousReason,Pe.HandlingUnitLoadingRefusedNotJustified,Pe.HandlingUnitLoadingRefusedVariousReason,Pe.HandlingUnitNotDeliveredAbsent,Pe.HandlingUnitNotDeliveredAddressObsolete,Pe.HandlingUnitDeliveredNotConformClosedHolidaysInventory,Pe.HandlingUnitNotDeliveredClosingHours,Pe.HandlingUnitNotDeliveredEntirelyMissing,Pe.HandlingUnitNotDeliveredNewAddress,Pe.HandlingUnitNotDeliveredNotice,Pe.HandlingUnitNotLoadedEntirelyMissing,U.LoadingRefusedByShipperVariousReason]};var Sr=function(n){return n.Cancel="CANCEL",n.DiscussionRead="DISCUSSION_READ",n.Duplicate="DUPLICATE",n.Modify="MODIFY",n.Share="SHARE",n}(Sr||{});class ro{hasId(){return!!this.id}transformRequest(){return Object.assign({},this)}}(0,t.Cg)([(0,e.deserializeAs)(K),(0,t.Sn)("design:type",Array)],ro.prototype,"agencies",void 0),(0,t.Cg)([(0,e.deserializeAs)("hashid"),(0,t.Sn)("design:type",String)],ro.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ro.prototype,"name",void 0);const ra=(n={})=>(0,e.Deserialize)(n,ro),Ar=()=>[new oi("--",void 0),...Nr(new oi("0min","0"))],Ir=()=>Nr(new oi("0min","0")),Nr=n=>Array(97).fill(0).map((m,W)=>0===W?n:br(W)),br=(n,m=1)=>{const W=Math.trunc(15*n/60),Ee=15*n%60,Ze=W>0?W.toString()+"h "+Ee.toString()+"min":Ee.toString()+"min",zt=(m*n*15).toString();return new oi(Ze,zt)},aa=()=>[new oi("before",-1),new oi("after",1)];var ao=function(n){return n.Outsize="outsize",n.Pallet="pallet",n.Parcel="parcel",n}(ao||{});class Jt{getOrganizationName(){return this.organization?.name||"Shippeo"}transformRequest(){return{...this}}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Jt.prototype,"externalId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Jt.prototype,"height",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Jt.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Jt.prototype,"length",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Jt.prototype,"name",void 0),(0,t.Cg)([(0,e.deserializeAs)(he),(0,t.Sn)("design:type",he)],Jt.prototype,"organization",void 0),(0,t.Cg)([(0,e.deserializeAs)(ao),(0,t.Sn)("design:type",String)],Jt.prototype,"standardPackingQualifier",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Jt.prototype,"volume",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Jt.prototype,"weight",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Jt.prototype,"width",void 0);const sa=(n={})=>(0,e.Deserialize)(n,Jt);var Pr=function(n){return n.Edit="edit",n.View="view",n.History="history",n}(Pr||{});class Ot{constructor(){this.address=M(),this.contacts=[],this.organization=oe(),this.regeocodeType=o.Init}getFullAddress(){return this.address?`${this.address.street}, ${this.address.postalCode} ${this.address.town}, ${this.address.country}`:void 0}getGeofencing(){return this.geofencing}getStatusIconName(){return this.deactivatedAt?"x-circle":"check-circle"}hasId(){return!!this.id}hasOrganization(){return!!this.organization.hasId()}setGeoJson(m){this.geofencing=m.getGeoJson(),this.address.setGeoJson(m)}setRegeoCodeType(m){this.regeocodeType=m}transformRequest(){return Object.assign({},this)}}(0,t.Cg)([(0,e.deserializeAs)(C),(0,t.Sn)("design:type",Object)],Ot.prototype,"address",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],Ot.prototype,"appointment",void 0),(0,t.Cg)([(0,e.deserializeAs)(nt),(0,t.Sn)("design:type",Array)],Ot.prototype,"contacts",void 0),(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],Ot.prototype,"deactivatedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"details",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"externalId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ot.prototype,"geofencing",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"name",void 0),(0,t.Cg)([(0,e.deserializeAs)(he),(0,t.Sn)("design:type",Object)],Ot.prototype,"organization",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"ownership",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"phone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"refPhone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"referent",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Ot.prototype,"regeocodeType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"updateMethod",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"updatedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ot.prototype,"updatedBy",void 0);const la=(n={})=>{const m=(0,e.Deserialize)(n,Ot);return m.setGeoJson(n.geofencing?l(n.geofencing):R()),m};class so{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],so.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],so.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],so.prototype,"name",void 0);const xr=(n={})=>(0,e.Deserialize)(n,so);class Qt{constructor(m){Object.assign(this,m)}isEqual(m){return this.name===m}}var Ht=function(n){return n.CreationPopoverAction="CREATION_POPOVER_ACTION",n.CreationPopoverTitle="CREATION_POPOVER_TITLE",n.CreationTooltip="CREATION_TOOLTIP",n.FeaturePopoverLatitude="FEATURE_POPOVER_LATITUDE",n.FeaturePopoverLongitude="FEATURE_POPOVER_LONGITUDE",n.PositionPopoverAction="POSITION_POPOVER_ACTION",n.PositionPopoverTitle="POSITION_POPOVER_TITLE",n.SuggestionPopoverAction="SUGGESTION_POPOVER_ACTION",n.SuggestionPopoverReached="SUGGESTION_POPOVER_REACHED",n.SuggestionPopoverReachedTimes="SUGGESTION_POPOVER_REACHED_TIMES",n.SuggestionPopoverTitle="SUGGESTION_POPOVER_TITLE",n}(Ht||{});const pa=new class ca extends H{register(){this.add(new Qt({label:(0,a.x)("Use this location"),name:Ht.CreationPopoverAction})).add(new Qt({label:(0,a.x)("NEW LOCATION"),name:Ht.CreationPopoverTitle})).add(new Qt({label:(0,a.x)("Drag & drop the pin to adjust the location."),name:Ht.CreationTooltip})).add(new Qt({label:(0,a.x)("Latitude:"),name:Ht.FeaturePopoverLatitude})).add(new Qt({label:(0,a.x)("Longitude:"),name:Ht.FeaturePopoverLongitude})).add(new Qt({label:(0,a.x)("CURRENT LOCATION"),name:Ht.PositionPopoverTitle})).add(new Qt({label:(0,a.x)("Keep this location"),name:Ht.PositionPopoverAction})).add(new Qt({label:(0,a.x)("Use this location"),name:Ht.SuggestionPopoverAction})).add(new Qt({label:(0,a.x)("Reached"),name:Ht.SuggestionPopoverReached})).add(new Qt({label:(0,a.x)("times"),name:Ht.SuggestionPopoverReachedTimes})).add(new Qt({label:(0,a.x)("SUGGESTED LOCATION"),name:Ht.SuggestionPopoverTitle}))}},ua=()=>pa;var li=function(n){return n.Loading="LOADING",n.LoadingNotConform="LOADING_NOT_CONFORM",n.LoadingNotRealised="LOADING_NOT_REALISED",n.LoadingRefused="LOADING_REFUSED",n.Delivery="DELIVERY",n.DeliveryNotConform="DELIVERY_NOT_CONFORM",n.DeliveryNotRealised="DELIVERY_NOT_REALISED",n.DeliveryRefused="DELIVERY_REFUSED",n}(li||{});let Wi=class extends St{constructor(){super(...arguments),this.isMisdeliveredEvent=!1,this.isReadyForPickup=!1}static OnDeserialized(m){m.isMisdeliveredEvent=m.name===Pe.HandlingUnitMisdelivered,m.isReadyForPickup=[Pe.HuReadyForPickupDeclared,Pe.HuReadyForPickupCalculated].includes(m.name)}getLabelFromType(){const m=this.getType();return{[li.Loading]:(0,a.x)("Loaded"),[li.LoadingNotConform]:(0,a.x)("Loading not conform"),[li.LoadingNotRealised]:(0,a.x)("Loading not realised"),[li.LoadingRefused]:(0,a.x)("Loading refused"),[li.Delivery]:(0,a.x)("Delivered"),[li.DeliveryNotConform]:(0,a.x)("Delivery not conform"),[li.DeliveryNotRealised]:(0,a.x)("Delivery not realised"),[li.DeliveryRefused]:(0,a.x)("Delivery refused")}[m]||(0,a.x)(m)}isHandlingUnitMisdelivered(){return this.getName()===Pe.HandlingUnitMisdelivered}isTypeDelivery(){return this.getType().toLowerCase().includes(fi.Delivery)}isTypeLoading(){return this.getType().toLowerCase().includes(fi.Loading)}isTypeHub(){return[fi.Hub,fi.DeliveryHub].includes(this.getType())}};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Wi.prototype,"places",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],Wi.prototype,"position",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Wi.prototype,"urls",void 0),Wi=(0,t.Cg)([(0,e.inheritSerialization)(St)],Wi);const ga=(n={})=>{const m=(0,e.Deserialize)(n,St),W=(0,e.Deserialize)(n,Wi);return W.createdAt=n.dates?.recordedOn??n.dates?.createdAt,W.dateEvent=n.dates?.occurredOn??n.dates?.dateEvent,W.inputDate=n.dates?.occurredOn??n.dates?.inputDate,Object.assign(W,m)};var lo=function(n){return n.Item="item",n.PurchaseOrder="purchaseOrder",n}(lo||{});class co{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],co.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],co.prototype,"value",void 0);class un{constructor(){this.label=""}static OnDeserialized(m){m.label=m.getLabel()}getLabel(){let m="";return this.length&&(m=`${this.length}`),this.width&&(m+=`x${this.width}`),this.height&&(m+=`x${this.height}`),m}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],un.prototype,"height",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],un.prototype,"length",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],un.prototype,"width",void 0);var sr=function(n){return n.Conform="CONFORM",n.NotConform="NOT_CONFORM",n}(sr||{});class Zt{constructor(m,W){this.quantity=m,this.status=W}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Zt.prototype,"quantity",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],Zt.prototype,"status",void 0);class Yi{constructor(){this.delivered=new Zt,this.loaded=new Zt,this.planned=new Zt(0)}addQuantities(m){this.planned.quantity+=m.planned.quantity,m.loaded.quantity&&(this.loaded.quantity=(this.loaded.quantity??0)+m.loaded.quantity),m.delivered.quantity&&(this.delivered.quantity=(this.delivered.quantity??0)+m.delivered.quantity)}hasDelivered(){return!(0,$e.A)(this.delivered.quantity)}hasLoadingIssue(){return this.hasLoaded()&&!this.isLoaded()}hasDeliveryIssue(){return this.hasDelivered()&&!this.isDelivered()}hasIssue(){return this.hasLoadingIssue()||this.hasDeliveryIssue()}hasLoaded(){return!(0,$e.A)(this.loaded.quantity)}isDelivered(){return this.hasDelivered()&&this.planned.quantity===this.delivered.quantity}isDeliveredConform(){return this.delivered.status.includes(sr.Conform)}isDeliveredNil(){return(0,$e.A)(this.delivered.quantity)}isLoaded(){return this.hasLoaded()&&this.planned.quantity===this.loaded.quantity}isLoadedConform(){return this.loaded.status.includes(sr.NotConform)}isLoadedNil(){return(0,$e.A)(this.loaded.quantity)}}(0,t.Cg)([(0,e.deserializeAs)(Zt),(0,t.Sn)("design:type",Object)],Yi.prototype,"delivered",void 0),(0,t.Cg)([(0,e.deserializeAs)(Zt),(0,t.Sn)("design:type",Object)],Yi.prototype,"loaded",void 0),(0,t.Cg)([(0,e.deserializeAs)(Zt),(0,t.Sn)("design:type",Object)],Yi.prototype,"planned",void 0);class ii{constructor(){this.quantities=new Yi}}(0,t.Cg)([(0,e.deserializeAs)(co),(0,t.Sn)("design:type",Array)],ii.prototype,"contentReferences",void 0),(0,t.Cg)([(0,e.deserializeAs)(un),(0,t.Sn)("design:type",un)],ii.prototype,"dimensions",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ii.prototype,"label",void 0),(0,t.Cg)([(0,e.deserializeAs)(Yi),(0,t.Sn)("design:type",Object)],ii.prototype,"quantities",void 0),(0,t.Cg)([(0,e.deserializeAs)(ao),(0,t.Sn)("design:type",String)],ii.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],ii.prototype,"weight",void 0);const Mr=n=>(0,e.Deserialize)(n,ii),ma={Deserialize:n=>n.map(ga)};let ni=class extends ii{constructor(){super(...arguments),this.events=[]}static OnDeserialized(m){m.events.forEach((W,Ee,Ze)=>{W.isMisdeliveredEvent&&(Ze.at(Ee-1).misdeliveredEvent=W)})}getDeliveryEvents(){return this.events.filter(m=>m.isTypeDelivery())}getEvents(){return this.events}getItemsReferences(){return this.getContentReferencesByType(lo.Item)}getLoadingEvents(){return this.events.filter(m=>m.isTypeLoading()||m.isReadyForPickup)}getHubsEvents(){return this.events.filter(m=>m.isTypeHub())}getPurchaseOrders(){return this.getContentReferencesByType(lo.PurchaseOrder)}isSomeEventsHasIssue(){return this.events.some(m=>m.isIssue)}getContentReferencesByType(m){return this.contentReferences.filter(W=>W.type===m).map(W=>W.value).join(", ")}};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ni.prototype,"consolidationID",void 0),(0,t.Cg)([(0,e.autoserializeAs)(ma),(0,t.Sn)("design:type",Array)],ni.prototype,"events",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ni.prototype,"hashId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ni.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ni.prototype,"trackingBarcode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ni.prototype,"trackingUrl",void 0),ni=(0,t.Cg)([(0,e.inheritSerialization)(ii)],ni);const _a=(n={})=>(0,e.Deserialize)(n,ni);var Gr=function(n){return n.Icon="icon",n.Label="label",n}(Gr||{});class Ei{}(0,t.Cg)([(0,e.deserializeAs)("fullLoad"),(0,t.Sn)("design:type",Boolean)],Ei.prototype,"isFullLoad",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Ei.prototype,"linearMeters",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Ei.prototype,"palletGround",void 0),(0,t.Cg)([(0,e.deserializeAs)("grossVolume"),(0,t.Sn)("design:type",Number)],Ei.prototype,"volume",void 0),(0,t.Cg)([(0,e.deserializeAs)("grossWeight"),(0,t.Sn)("design:type",Number)],Ei.prototype,"weight",void 0);class lr{constructor(){this.items=[]}}(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],lr.prototype,"reference",void 0);class Pi{}(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],Pi.prototype,"description",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],Pi.prototype,"ean",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],Pi.prototype,"purchaseOrder",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",Number)],Pi.prototype,"quantity",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],Pi.prototype,"reference",void 0),(0,t.Cg)([e.autoserialize,(0,t.Sn)("design:type",String)],Pi.prototype,"unit",void 0);class dr{constructor(){this.planned=new Zt(0)}}(0,t.Cg)([(0,e.deserializeAs)(Zt),(0,t.Sn)("design:type",Zt)],dr.prototype,"planned",void 0);class gn{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],gn.prototype,"customType",void 0),(0,t.Cg)([(0,e.deserializeAs)(dr),(0,t.Sn)("design:type",dr)],gn.prototype,"quantities",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],gn.prototype,"type",void 0);var fa=r(42170);class xi{constructor(){this.packings=[],this.purchaseOrders=[],this.items=[],this.returnablePackings=[],this.lonelyItemList=[]}static OnDeserialized(m){const W=m.items.filter(({purchaseOrder:Ee})=>Ee);m.purchaseOrders=(0,fa.A)(({reference:Ee})=>Ee,[...m.purchaseOrders,...W.map(({purchaseOrder:Ee})=>(0,e.Deserialize)({reference:Ee},lr))]),m.purchaseOrders.forEach(Ee=>Ee.items=W.filter(({purchaseOrder:Ze})=>Ze===Ee.reference)),m.lonelyItemList=m.items.filter(({purchaseOrder:Ee})=>!Ee)}getHandlingUnitsGrouped(){return this.handlingUnits.reduce((m,W)=>{let Ee=m.find(({type:Ze,label:zt})=>Ze===W.type&&zt===W.label);return Ee||(Ee=Mr({dimensions:W.dimensions,label:W.label,type:W.type}),m.push(Ee)),Ee.quantities.addQuantities(W.quantities),W.weight&&(Ee.weight=(Ee.weight??0)+W.weight),m},[])}getPackingsGrouped(){return this.packings.reduce((m,W)=>{let Ee=m.find(Ze=>Ze.type===W.type);return Ee||(Ee=Mr({type:W.type}),m.push(Ee)),Ee.quantities.addQuantities(W.quantities),m},[])}hasHandlingUnits(){return!(0,Ni.A)(this.handlingUnits)}hasReturnablePackings(){return!(0,Ni.A)(this.returnablePackings)}}(0,t.Cg)([(0,e.deserializeAs)(ni),(0,t.Sn)("design:type",Array)],xi.prototype,"handlingUnits",void 0),(0,t.Cg)([(0,e.deserializeAs)(Ei,"measures"),(0,t.Sn)("design:type",Ei)],xi.prototype,"measure",void 0),(0,t.Cg)([(0,e.deserializeAs)(ii),(0,t.Sn)("design:type",Array)],xi.prototype,"packings",void 0),(0,t.Cg)([(0,e.deserializeAs)(lr),(0,t.Sn)("design:type",Array)],xi.prototype,"purchaseOrders",void 0),(0,t.Cg)([(0,e.deserializeAs)(Pi),(0,t.Sn)("design:type",Array)],xi.prototype,"items",void 0),(0,t.Cg)([(0,e.deserializeAs)(gn),(0,t.Sn)("design:type",Array)],xi.prototype,"returnablePackings",void 0);const ya=(n={})=>(0,e.Deserialize)(n,xi);var Ur=function(n){return n.Done="DONE",n.Estimated="ESTIMATED",n.Expected="EXPECTED",n.Scheduled="SCHEDULED",n}(Ur||{}),Fr=function(n){return n.Early="EARLY",n.None="NONE",n.NotStarted="NOT_STARTED",n.NoIssue="NO_ISSUE",n.OnTime="ON_TIME",n.Warning="WARNING",n.Risky="RISKY",n.Skipped="SKIPPED",n.RiskyDelay="RISKY_DELAY",n.TolerableDelay="TOLERABLE_DELAY",n.ToleratedDelay="TOLERATED_DELAY",n}(Fr||{}),Da=r(54597),$t=function(n){return n.Message="message",n.Field="field",n.CsvLine="csvLine",n}($t||{});let di=class{constructor(m){this.type=m}};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],di.prototype,"name",void 0),di=(0,t.Cg)([(0,t.Qj)(0,(0,e.deserializeAs)($t)),(0,t.Sn)("design:paramtypes",[String])],di);var va=r(55550),be=function(n){return n.AccessDenied="http.access_denied_error",n.ConflictError="http.conflict_error",n.NotFound="http.not_found",n.UnsupportedMediaType="http.unsupported_media_type",n.NotExistingOrganization="organization.not_found_error",n.AlreadyUsedValue="organization.unique_constraint_error",n.NotExistingPlace="place.not_found_error",n.NotBlankValue="validator.blank.not_blank_error",n.NotValidChoice="validator.choice.no_such_choice_error",n.TooFewChoices="validator.choice.too_few_error",n.TooManyChoices="validator.choice.too_many_error",n.MissingField="validator.collection.missing_field_error",n.NotExpectedField="validator.collection.no_such_field_error",n.TooFewElements="validator.count.too_few_error",n.TooManyElements="validator.count.too_many_error",n.NotValidCountry="validator.country.no_such_country_error",n.NotRespectedColumns="validator.csv.invalid_header_error",n.InvalidDate="validator.date.invalid_date_error",n.InvalidDateFormat="validator.date.invalid_format_error",n.InvalidDateTime="validator.date_time.invalid_date_error",n.InvalidDateTimeFormat="validator.date_time.invalid_format_error",n.InvalidTime="validator.date_time.invalid_time_error",n.InvalidEmailHost="validator.email.host_check_failed_error",n.InvalidEmailMx="validator.email.mx_check_failed_error",n.InvalidEmailStrict="validator.email.strict_check_failed_error",n.EqualToNotEqual="validator.equal_to.not_equal_error",n.EmptyFile="validator.file.empty_error",n.ExistingFile="validator.file.exists_error",n.InvalidMimeTypeFile="validator.file.invalid_mime_type_error",n.NotFoundFile="validator.file.not_found_error",n.NotReadableFile="validator.file.not_readable_error",n.TooLargeFile="validator.file.too_large_error",n.InsufficientCoordinatesGeoJson="validator.geo_json.insufficient_coordinates_error",n.NotClosedPolygonGeoJson="validator.geo_json.not_closed_polygon_error",n.GreaterThanTooLow="validator.greater_than.too_low_error",n.GreaterThanOrEqualTooLow="validator.greater_than_or_equal.too_low_error",n.InvalidHashId="validator.hashid.invalid_hashid_error",n.IdenticalToNotIdentical="validator.identical_to.not_identical_error",n.InvalidValue="validator.invalid_value",n.NotFalse="validator.is_false.not_false_error",n.IsNullNotNull="validator.is_null.not_null_error",n.NotTrue="validator.is_true.not_true_error",n.InvalidJson="validator.json.invalid_json_error",n.NoSuchLanguage="validator.language.no_such_language_error",n.InvalidCharacters="validator.length.invalid_characters_error",n.LengthTooLong="validator.length.too_long_error",n.LengthTooShort="validator.length.too_short_error",n.LessThanTooHigh="validator.less_than.too_high_error",n.LessThanOrEqualTooHigh="validator.less_than_or_equal.too_high_error",n.NoSuchLocale="validator.locale.no_such_locale_error",n.BlankValue="validator.not_blank.is_blank_error",n.NotEqualIsEqual="validator.not_equal_to.is_equal_error",n.NotIdenticalToIsIdentical="validator.not_identical_to.is_identical_error",n.NotNullIsNull="validator.not_null.is_null_error",n.PlacePositionNotFound="place.position.not_found_error",n.RangeInvalidCharacters="validator.range.invalid_characters_error",n.RangeNotInRange="validator.range.not_in_range_error",n.RangeTooHigh="validator.range.too_high_error",n.RangeTooLow="validator.range.too_low_error",n.RegexFailed="validator.regex.regex_failed_error",n.TimeInvalidFormat="validator.time.invalid_format_error",n.TimeInvalidTime="validator.time.invalid_time_error",n.TimeZoneIdentifier="validator.timezone.timezone_identifier_error",n.TimeZoneIdentifierInCountry="validator.timezone.timezone_identifier_in_country_error",n.TimeZoneIdentifierInZone="validator.timezone.timezone_identifier_in_zone_error",n.TimeZoneIdentifierIntl="validator.timezone.timezone_identifier_intl_error",n.InvalidType="validator.type.invalid_type_error",n.UniqueIsNotUnique="validator.unique.is_not_unique",n.UniqueEntityFromOtherNotUnique="validator.unique_entity_from_other.not_unique_error",n.InvalidUrl="validator.url.invalid_url_error",n.InvalidUuidCharacters="validator.uuid.invalid_characters_error",n.InvalidUuidHyphenPlacement="validator.uuid.invalid_hyphen_placement_error",n.InvalidUuidVariant="validator.uuid.invalid_variant_error",n.InvalidUuidVersion="validator.uuid.invalid_version_error",n.InvalidPhoneNumber="validator.phone_number.invalid_phone_number_error",n.TelematicResourceUniqueConstraint="telematic_resource.unique_constraint_error",n.TelematicResourceNotFoundError="telematic_resource.telematic_configuration.not_found_error",n.TooLongUuid="validator.uuid.too_long_error",n.TooShortUuid="validator.uuid.too_short_error",n.UserUniqueConstraint="user.unique_constraint_error",n.UserNotFound="user.not_found_error",n.UserProfileNotFound="user_profile.not_found_error",n.AgencyNotFound="agency.not_found_error",n.MeanUniqueConstraint="mean.unique_constraint_error",n.UserMobileUniqueConstraint="user_mobile.phone_number.unique_constraint_error",n}(be||{});class xe{constructor(m){this.name=m.name,this.message=m.message}isEqual(m){return m===this.name}}const _t={notValidDateErrorMessage:(0,a.x)("This date is not valid."),notValidEmail:(0,a.x)("This email is not valid."),notValidTime:(0,a.x)("This value is not a valid time."),notValidTimeZone:(0,a.x)("This value is not a valid timezone."),notValidUuid:(0,a.x)("This is not a valid UUID."),notValidValue:(0,a.x)("This value is not valid.")},Ea=new class Ca extends H{register(){this.add(new xe({message:(0,a.x)("Access denied."),name:be.AccessDenied})).add(new xe({message:(0,a.x)("Conflict error."),name:be.ConflictError})).add(new xe({message:(0,a.x)("Not found."),name:be.NotFound})).add(new xe({message:(0,a.x)("Unsupported media type."),name:be.UnsupportedMediaType})).add(new xe({message:(0,a.x)("Organization does not exist."),name:be.NotExistingOrganization})).add(new xe({message:(0,a.x)("This value is already used."),name:be.AlreadyUsedValue})).add(new xe({message:(0,a.x)("Place does not exist."),name:be.NotExistingPlace})).add(new xe({message:(0,a.x)("This value should not be blank."),name:be.BlankValue})).add(new xe({message:(0,a.x)("This value selected is not a valid choice."),name:be.NotValidChoice})).add(new xe({message:(0,a.x)("Too few choices."),name:be.TooFewChoices})).add(new xe({message:(0,a.x)("Too many choices."),name:be.TooManyChoices})).add(new xe({message:(0,a.x)("This field is missing."),name:be.MissingField})).add(new xe({message:(0,a.x)("This field is not expected."),name:be.NotExpectedField})).add(new xe({message:(0,a.x)("Too few elements."),name:be.TooFewElements})).add(new xe({message:(0,a.x)("Too many elements."),name:be.TooManyElements})).add(new xe({message:(0,a.x)("Country is not valid."),name:be.NotValidCountry})).add(new xe({message:(0,a.x)("Columns not respected."),name:be.NotRespectedColumns})).add(new xe({message:_t.notValidDateErrorMessage,name:be.InvalidDate})).add(new xe({message:_t.notValidDateErrorMessage,name:be.InvalidDateFormat})).add(new xe({message:_t.notValidDateErrorMessage,name:be.InvalidDateTime})).add(new xe({message:_t.notValidDateErrorMessage,name:be.InvalidDateTimeFormat})).add(new xe({message:_t.notValidDateErrorMessage,name:be.InvalidTime})).add(new xe({message:_t.notValidEmail,name:be.InvalidEmailHost})).add(new xe({message:_t.notValidEmail,name:be.InvalidEmailMx})).add(new xe({message:_t.notValidEmail,name:be.InvalidEmailStrict})).add(new xe({message:_t.notValidValue,name:be.EqualToNotEqual})).add(new xe({message:(0,a.x)("An empty file is not allowed."),name:be.EmptyFile})).add(new xe({message:(0,a.x)("The file could not be found."),name:be.ExistingFile})).add(new xe({message:(0,a.x)("The mime type of the file is not valid."),name:be.InvalidMimeTypeFile})).add(new xe({message:(0,a.x)("The file could not be found."),name:be.NotFoundFile})).add(new xe({message:(0,a.x)("The file is not readable."),name:be.NotReadableFile})).add(new xe({message:(0,a.x)("The file is too large."),name:be.TooLargeFile})).add(new xe({message:(0,a.x)("Polygon must contain at least 4 coordinates."),name:be.InsufficientCoordinatesGeoJson})).add(new xe({message:(0,a.x)("Polygon path must be closed (ie first and last coordinates must be equal)."),name:be.NotClosedPolygonGeoJson})).add(new xe({message:(0,a.x)("This value is too low."),name:be.GreaterThanTooLow})).add(new xe({message:(0,a.x)("This value is too high."),name:be.GreaterThanOrEqualTooLow})).add(new xe({message:(0,a.x)("Identifier not found."),name:be.InvalidHashId})).add(new xe({message:_t.notValidValue,name:be.IdenticalToNotIdentical})).add(new xe({message:_t.notValidValue,name:be.InvalidValue})).add(new xe({message:(0,a.x)("This value should be false."),name:be.NotFalse})).add(new xe({message:(0,a.x)("This value should be null."),name:be.IsNullNotNull})).add(new xe({message:(0,a.x)("This value should be true."),name:be.NotTrue})).add(new xe({message:(0,a.x)("This value should be valid JSON."),name:be.InvalidJson})).add(new xe({message:(0,a.x)("This value is not a valid language."),name:be.NoSuchLanguage})).add(new xe({message:_t.notValidValue,name:be.InvalidCharacters})).add(new xe({message:(0,a.x)("This value is too long."),name:be.LengthTooLong})).add(new xe({message:(0,a.x)("This value is too short."),name:be.LengthTooShort})).add(new xe({message:(0,a.x)("This value is too high."),name:be.LessThanTooHigh})).add(new xe({message:(0,a.x)("This value is too low."),name:be.LessThanOrEqualTooHigh})).add(new xe({message:(0,a.x)("This value is not a valid locale."),name:be.NoSuchLocale})).add(new xe({message:(0,a.x)("This value should not be blank."),name:be.NotBlankValue})).add(new xe({message:_t.notValidValue,name:be.NotEqualIsEqual})).add(new xe({message:_t.notValidValue,name:be.NotIdenticalToIsIdentical})).add(new xe({message:(0,a.x)("This value should not be null."),name:be.NotNullIsNull})).add(new xe({message:_t.notValidValue,name:be.RangeInvalidCharacters})).add(new xe({message:_t.notValidValue,name:be.RangeNotInRange})).add(new xe({message:(0,a.x)("This value is too high."),name:be.RangeTooHigh})).add(new xe({message:(0,a.x)("This value is too low."),name:be.RangeTooLow})).add(new xe({message:_t.notValidValue,name:be.RegexFailed})).add(new xe({message:_t.notValidTime,name:be.TimeInvalidFormat})).add(new xe({message:_t.notValidTime,name:be.TimeInvalidTime})).add(new xe({message:_t.notValidTimeZone,name:be.TimeZoneIdentifier})).add(new xe({message:_t.notValidTimeZone,name:be.TimeZoneIdentifierInCountry})).add(new xe({message:_t.notValidTimeZone,name:be.TimeZoneIdentifierInZone})).add(new xe({message:_t.notValidTimeZone,name:be.TimeZoneIdentifierIntl})).add(new xe({message:_t.notValidValue,name:be.InvalidType})).add(new xe({message:(0,a.x)("This collection should contain only unique elements."),name:be.UniqueIsNotUnique})).add(new xe({message:(0,a.x)("This collection should contain only unique elements."),name:be.UniqueEntityFromOtherNotUnique})).add(new xe({message:(0,a.x)("This value is not a valid URL."),name:be.InvalidUrl})).add(new xe({message:_t.notValidUuid,name:be.InvalidUuidCharacters})).add(new xe({message:_t.notValidUuid,name:be.InvalidUuidHyphenPlacement})).add(new xe({message:_t.notValidUuid,name:be.InvalidUuidVariant})).add(new xe({message:_t.notValidUuid,name:be.InvalidUuidVersion})).add(new xe({message:_t.notValidUuid,name:be.TooLongUuid})).add(new xe({message:_t.notValidUuid,name:be.TooShortUuid})).add(new xe({message:(0,a.x)("Phone number is not valid."),name:be.InvalidPhoneNumber})).add(new xe({message:(0,a.x)("User already exists."),name:be.UserUniqueConstraint})).add(new xe({message:(0,a.x)("User profile not found."),name:be.UserProfileNotFound})).add(new xe({message:(0,a.x)("User not found."),name:be.UserNotFound})).add(new xe({message:(0,a.x)("Agency not found."),name:be.AgencyNotFound})).add(new xe({message:(0,a.x)("Resource already exists."),name:be.MeanUniqueConstraint})).add(new xe({message:(0,a.x)("This value is already used."),name:be.UserMobileUniqueConstraint})).add(new xe({message:(0,a.x)("Place cannot be geolocalized, please check address details."),name:be.PlacePositionNotFound})).add(new xe({message:(0,a.x)("This value is already used"),name:be.TelematicResourceUniqueConstraint})).add(new xe({message:(0,a.x)("This value is not valid"),name:be.TelematicResourceNotFoundError}))}},zr=()=>Ea;let mn=class extends di{constructor(){super($t.Field)}getErrorMessage(){return this.message}};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],mn.prototype,"message",void 0),mn=(0,t.Cg)([(0,e.inheritSerialization)(di),(0,t.Sn)("design:paramtypes",[])],mn);const kr=n=>(0,e.Deserialize)(n,mn);let Ti=class extends di{constructor(){super($t.Message)}getErrorMessage(){return this.message}};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Ti.prototype,"message",void 0),Ti=(0,t.Cg)([(0,e.inheritSerialization)(di),(0,t.Sn)("design:paramtypes",[])],Ti);const cr=n=>(0,e.Deserialize)(n,Ti),wr=()=>cr({message:(0,a.x)("Unknown error type")}),Ta={Deserialize:n=>n.map(m=>{switch(m.message=zr().get(m.message).message,m.type){case $t.Field:return kr(m);case $t.Message:return cr(m);default:return wr()}})};let Mi=class extends di{constructor(){super($t.CsvLine),this.getFieldErrorsMessage=([m,W])=>`${m}: ${Array.from(new Set(W.map(Ze=>Ze.getErrorMessage()))).join(" ")}`}getErrorMessage(){const m=this.getMessageErrors();return m.length?m.map(W=>W.getErrorMessage()).join(" "):Object.entries(this.getFieldsErrorsMap()).map(this.getFieldErrorsMessage).join(" | ")}getFieldsErrorsMap(){return(0,va.A)(W=>W.name)(this.getFieldsErrors())}getLineNumber(){return this.lineNumber}hasMessageError(){return this.errors.some(m=>m instanceof Ti)}getFieldsErrors(){return this.errors.filter(m=>m instanceof mn)}getMessageErrors(){return this.errors.filter(m=>m instanceof Ti)}};(0,t.Cg)([(0,e.deserializeAs)(Ta),(0,t.Sn)("design:type",Array)],Mi.prototype,"errors",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Mi.prototype,"label",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Mi.prototype,"lineNumber",void 0),Mi=(0,t.Cg)([(0,e.inheritSerialization)(di),(0,t.Sn)("design:paramtypes",[])],Mi);const Sa={Deserialize:n=>n.map(m=>{switch((m.type===$t.Field||m.type===$t.Message)&&(m.message=zr().get(m.message).message),m.type){case $t.CsvLine:return(n=>(0,e.Deserialize)(n,Mi))(m);case $t.Field:return kr(m);case $t.Message:return cr(m);default:return wr()}})};class _n{}(0,t.Cg)([(0,e.deserializeAs)(vo),(0,t.Sn)("design:type",qt)],_n.prototype,"configuration",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],_n.prototype,"receiverNames",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],_n.prototype,"resourceLabel",void 0);var Vr=function(n){return n.CreatePlaceCsvFile="place.create.csv_file",n.UpdatePlaceCsvFile="place.update.csv_file",n.CreateUserCsvFile="user.update.csv_file",n.UpdateUserCsvFile="user.create.csv_file",n.CreateMobileDriverCsvFile="mobile_driver.update.csv_file",n.UpdateMobileDriverCsvFile="mobile_driver.create.csv_file",n.CreateResourceCsvFile="resource.update.csv_file",n.UpdateResourceCsvFile="resource.create.csv_file",n}(Vr||{}),Pt=function(n){return n.Canceled="TASK_STATUS_CANCELED",n.Failed="TASK_STATUS_FAILED",n.Pending="TASK_STATUS_PENDING",n.Succeeded="TASK_STATUS_SUCCEEDED",n}(Pt||{});class ci{constructor(){this.taskStatusLabel={[Pt.Canceled]:(0,a.x)("Canceled"),[Pt.Failed]:(0,a.x)("Failed"),[Pt.Pending]:(0,a.x)("In progress"),[Pt.Succeeded]:(0,a.x)("Done")},this.translatedTaskTypes={[ri.MobileDriver]:(0,a.x)("Mobile resources"),[ri.Place]:(0,a.x)("Places"),[ri.User]:(0,a.x)("Users"),[ri.Resource]:(0,a.x)("Telematic resources")}}formatTaskCreatedAt(){return(0,a.x)("Created: ")+(0,Da.GP)(this.createdAt,pe.nY.WithoutYear)}getCsvLineErrors(){return this.errors.filter(m=>m instanceof Mi)}getGlobalErrors(){return this.errors.filter(m=>m instanceof Ti)}getStatusClass(){return this.isSucceeded()||this.isPartiallySuccess()&&!this.isFailed()&&!this.isCanceled()?"green-500":this.isFailed()||this.isCanceled()?"red-700":this.isPending()?"shippeo-700":"gray-900"}getStatusIcon(){if(this.isPartiallySuccess()&&!this.isFailed()&&!this.isCanceled())return"check-circle";switch(this.status){case Pt.Failed:return"x-circle";case Pt.Succeeded:return"check-circle";default:return}}getStatusLabel(){return this.status!==Pt.Failed||!this.isPartiallySuccess()||this.isFailed()||this.isCanceled()?this.taskStatusLabel[this.status]:this.taskStatusLabel[Pt.Succeeded]}getTranslatedTypeLabel(){const m=this.getType();return this.translatedTaskTypes[m]}getType(){return this.name.split(".")[0]}getTypePluralLabel(){const m=this.getType().concat("s");return m[0].toUpperCase()+m.slice(1)}isCanceled(){return this.status===Pt.Canceled}isFailed(){return this.status===Pt.Failed}isPartiallyFailed(){return this.status===Pt.Failed&&!this.errors.some(m=>m instanceof Ti)&&!!this.errors.length}isPartiallySuccess(){return this.statistics.count&&this.statistics.count.lines-this.statistics.count.errors>0}isPending(){return this.status===Pt.Pending}isSucceeded(){return this.status===Pt.Succeeded&&!this.isPartiallyFailed()}}(0,t.Cg)([(0,e.deserializeAs)(Fe),(0,t.Sn)("design:type",Date)],ci.prototype,"createdAt",void 0),(0,t.Cg)([(0,e.deserializeAs)(Sa),(0,t.Sn)("design:type",Array)],ci.prototype,"errors",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ci.prototype,"id",void 0),(0,t.Cg)([(0,e.deserializeAs)(_n),(0,t.Sn)("design:type",_n)],ci.prototype,"metadata",void 0),(0,t.Cg)([(0,e.deserializeAs)(Vr),(0,t.Sn)("design:type",String)],ci.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ci.prototype,"statistics",void 0),(0,t.Cg)([(0,e.deserializeAs)(Pt),(0,t.Sn)("design:type",String)],ci.prototype,"status",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],ci.prototype,"tags",void 0);const Oa=n=>{const m=(0,e.Deserialize)(n,ci);return m.username=n.user?.username,m};class Br{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Br.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Br.prototype,"name",void 0);var Hr=function(n){return n.Transics="shippeo.geopos.transics.telematic",n}(Hr||{});class Aa{constructor(m,W){this.name=m,this.schema=W}isEqual(m){return m===this.name}}new class Ia extends H{register(){this.add(new Aa(Hr.Transics,{order:["wsdl","dispatcher","password","systemNr","integrator","meanType","identifierType"],properties:{dispatcher:{placeholder:"SHIPPEO",title:"Dispatcher",type:"string"},identifierType:{oneOf:[{description:"ID",enum:["ID"],isDefault:!0},{description:"TRANSICS_ID",enum:["TRANSICS_ID"]},{description:"CODE",enum:["CODE"]}],title:"Identifier type",type:"string",widget:"select"},integrator:{placeholder:"SHIPPEO",title:"Integrator",type:"string"},meanType:{oneOf:[{description:"Vehicles",enum:["Vehicles"],isDefault:!0},{description:"Drivers",enum:["Drivers"]},{description:"Trailers",enum:["Trailers"]}],title:"Resource type",type:"string",widget:"select"},password:{placeholder:"SHIPPEO_123456789",title:"Password",type:"string",widget:"password"},systemNr:{placeholder:"111",title:"SystemNr",type:"integer"},wsdl:{format:"http-url",placeholder:"https://iwsfleet.tx-connect.com/IWSMIX/Service.asmx?wsdl",title:"WSDL",type:"string"}},required:["wsdl","dispatcher","password","systemNr","integrator","meanType","identifierType"]}))}};var Wr=function(n){return n.Ok="ok",n.Nok="nok",n}(Wr||{});class pr{transformRequest(){return Object.assign({},this)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],pr.prototype,"hashIds",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],pr.prototype,"orderIds",void 0);const La=(n={})=>(0,e.Deserialize)(n,pr);var Yr=function(n){return n.AllFeatures="ALL FEATURES",n.CarrierAdmin="CARRIER ADMIN",n.CarrierOperator="CARRIER OPERATOR",n.CustomerPortalAdmin="CUSTOMER PORTAL ADMIN",n.CustomerPortalOperator="CUSTOMER PORTAL OPERATOR",n.CustomerService="CUSTOMER SERVICE",n.ShipperAdmin="SHIPPER ADMIN",n.ShipperOcean="SHIPPER OCEAN",n.ShipperOceanAdmin="SHIPPER OCEAN ADMIN",n.ShipperOperator="SHIPPER OPERATOR",n}(Yr||{})},20107:(fe,J,r)=>{"use strict";r.d(J,{kT:()=>t,l7:()=>f,Ps:()=>Ke,ng:()=>x,AG:()=>h,nb:()=>R,Vx:()=>C,b6:()=>E,eV:()=>M,WR:()=>H,C4:()=>z,qD:()=>u,M:()=>he,f:()=>d,cZ:()=>Re,H3:()=>qe,Op:()=>w,Dc:()=>le,aF:()=>ve,JC:()=>me,Br:()=>L,WL:()=>ce,Nd:()=>ae,ug:()=>N,p2:()=>A,RM:()=>Be,gj:()=>oe,Zj:()=>pe,Pt:()=>je,u:()=>Ie,mW:()=>p,ZJ:()=>l,Vf:()=>V,gF:()=>j,rt:()=>a,ft:()=>P,xU:()=>X,b7:()=>Z,tB:()=>He,Ho:()=>k,u2:()=>We,$L:()=>Le,T7:()=>Qe,V2:()=>ue,PP:()=>g,J4:()=>Ue,rv:()=>ft,Or:()=>Dt,nv:()=>xt,yL:()=>Lt});var t=function(T){return T.Add="ADD",T.Remove="REMOVE",T}(t||{}),e=r(31635),o=r(47817);class s{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],s.prototype,"value",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],s.prototype,"label",void 0);const p=(T={})=>(0,o.Deserialize)(T,s);var f=function(T){return T.Contacts="contacts",T.DeliverySite="deliverySite",T.Driver="driver",T.LoadingSite="loadingSite",T}(f||{}),N=function(T){return T.EmailAddress="emailAddress",T.AttachedProfile="attachedProfile",T.UserId="userId",T.PhoneNumber="phoneNumber",T}(N||{}),A=function(T){return T.AttachedProfileRecipient="attached-profile-recipient",T.EmailAddressRecipient="email-address-recipient",T.GlobalRecipient="global-recipients",T.PhoneNumberRecipient="phone-number-recipient",T.WhatsappRecipient="whatsapp-recipient",T.ShippeoUserRecipient="shippeo-user-recipient",T}(A||{});class I{hasId(){return!!this.id}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],I.prototype,"attributes",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"emailAddress",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"phoneNumber",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"firstName",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"lastName",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"userName",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"userId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"attachedProfile",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],I.prototype,"links",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],I.prototype,"type",void 0);const l=(T={})=>(0,o.Deserialize)(T,I);var R=function(T){return T.OPERATOR_AND="OPERATOR_AND",T.OPERATOR_OR="OPERATOR_OR",T}(R||{}),E=function(T){return T.CONDITION_LEFT_TYPE="conditionLeftTypeValue",T.CONDITION_RETURN_TYPE="conditionReturnTypeValue",T.CONDITION_RIGHT_TYPE="conditionRightTypeValue",T}(E||{}),h=function(T){return T.OPERATOR_LOWER_THAN="OPERATOR_LOWER_THAN",T.OPERATOR_GREATER_THAN="OPERATOR_GREATER_THAN",T.OPERATOR_IS_ONE_ABOVE="OPERATOR_IS_ONE_ABOVE",T.OPERATOR_IS_ONE_BELOW="OPERATOR_IS_ONE_BELOW",T.OPERATOR_HAS_CHARTERED_TO="OPERATOR_HAS_CHARTERED_TO",T.OPERATOR_IS_LAST_CHARTERED="OPERATOR_IS_LAST_CHARTERED",T.OPERATOR_IS_CHARTERED_FROM="OPERATOR_IS_CHARTERED_FROM",T.OPERATOR_EQUAL_TO="OPERATOR_EQUAL_TO",T.OPERATOR_NOT_EQUAL_TO="OPERATOR_NOT_EQUAL_TO",T.OPERATOR_CONTAINED_IN_STRING="OPERATOR_CONTAINED_IN_STRING",T.OPERATOR_CONTAINS_IN_STRING="OPERATOR_CONTAINS_IN_STRING",T.OPERATOR_IN="OPERATOR_IN",T.OPERATOR_EXCLUDE_IN_STRING="OPERATOR_EXCLUDE_IN_STRING",T.OPERATOR_EXCLUDED_IN_STRING="OPERATOR_EXCLUDED_IN_STRING",T.OPERATOR_HAS_ONE_OF="OPERATOR_HAS_ONE_OF",T.OPERATOR_NOT_IN="OPERATOR_NOT_IN",T.OPERATOR_IS="OPERATOR_IS",T}(h||{}),C=function(T){return T.OPERATOR_ADD="OPERATOR_ADD",T.OPERATOR_SUB="OPERATOR_SUB",T.OPERATOR_COUNT="OPERATOR_COUNT",T.OPERATOR_INTERSECT="OPERATOR_INTERSECT",T.OPERATOR_MAX="OPERATOR_MAX",T}(C||{}),M=function(T){return T.ARRAY_OF_STRING_VARIABLE="ARRAY_OF_STRING_VARIABLE",T.CONTEXT_BASED_VARIABLE="CONTEXT_BASED_VARIABLE",T.DATETIME_INTERVAL_VARIABLE="DATETIME_INTERVAL_VARIABLE",T.PREDEFINED_VARIABLE="PREDEFINED_VARIABLE",T.SCALAR_VARIABLE="SCALAR_VARIABLE",T.DATETIME_VARIABLE="DATETIME_VARIABLE",T.NULL_VARIABLE="NULL_VARIABLE",T}(M||{});class F{constructor(){this.operands=[]}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],F.prototype,"type",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],F.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],F.prototype,"value",void 0),(0,e.Cg)([(0,o.deserializeAs)(F),(0,e.Sn)("design:type",Array)],F.prototype,"operands",void 0);const V=()=>j({}),j=(T={})=>(0,o.Deserialize)(T,F);class Y{hasId(){return!!this.id}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"language",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Boolean)],Y.prototype,"default",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"subject",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"content",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Y.prototype,"links",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"type",void 0);const a=()=>P({}),P=(T={})=>(0,o.Deserialize)(T,Y),u=160,z=70;class H{constructor(){this.current=0,this.max=u}}var x=function(T){return T.Array="ARRAY",T.Boolean="BOOLEAN",T.DateInterval="DATE_INTERVAL",T.DateTime="DATETIME",T.Double="DOUBLE",T.Integer="INTEGER",T.Litteral="STRING",T.Null="NULL",T}(x||{});class Q{constructor(){this.primitiveType=x.Litteral}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Q.prototype,"type",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Q.prototype,"primitiveType",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Q.prototype,"infos",void 0);class O extends Q{constructor(){super(...arguments),this.type=M.CONTEXT_BASED_VARIABLE,this.primitiveType=x.Litteral}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],O.prototype,"value",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],O.prototype,"infos",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],O.prototype,"type",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],O.prototype,"primitiveType",void 0);class $ extends Q{constructor(){super(...arguments),this.type=M.PREDEFINED_VARIABLE,this.primitiveType=x.Litteral}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],$.prototype,"type",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],$.prototype,"infos",void 0),(0,e.Cg)([(0,o.deserializeAs)("name"),(0,e.Sn)("design:type",String)],$.prototype,"value",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],$.prototype,"primitiveType",void 0);const X=T=>T.type===M.CONTEXT_BASED_VARIABLE,Z=T=>T.type===M.PREDEFINED_VARIABLE,He=T=>(0,o.Deserialize)(T,T.type===M.CONTEXT_BASED_VARIABLE?O:$);var L=function(T){return T.Inactive="inactive",T.Draft="draft",T.Active="active",T}(L||{}),Ce=function(T){return T.Email="email",T.Sms="sms",T.NoChannel="no_channel",T}(Ce||{}),ce=function(T){return T.Standard="standard",T.Premium="premium",T}(ce||{}),me=function(T){return T.Standard="STANDARD",T.Premium="PREMIUM",T.Enterprise="ENTERPRISE",T}(me||{}),_e=function(T){return T.EMAIL="email",T.SMS="sms",T}(_e||{});class Ge{hasId(){return!!this.id}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ge.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Ge.prototype,"recipient",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Ge.prototype,"notification",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Ge.prototype,"target",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ge.prototype,"channel",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],Ge.prototype,"sentAt",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ge.prototype,"type",void 0);const Ue=(T={})=>(0,o.Deserialize)(T,Ge);class ze{constructor(){this.channel=[],this.channels=[]}hasId(){return!!this.id}hasChannelEmail(){return this.channels.some(Se=>Se.name===_e.EMAIL)}hasChannelSms(){return this.channels.some(Se=>Se.name===_e.SMS)}getEmailRecipientId(){return this.channels.filter(Se=>Se.name===Ce.Email)[0].recipientId}getSmsRecipientId(){return this.channels.filter(Se=>Se.name===Ce.Sms)[0].recipientId}isSubscribedToEmail(){return this.channels.some(Se=>Se.name===_e.EMAIL&&!!Se.recipientId)}isSubscribedToSms(){return this.channels.some(Se=>Se.name===_e.SMS&&!!Se.recipientId)}getAuthorFullName(){let Se="";return this.author?.firstName&&(Se+=this.author.firstName+" "),this.author?.lastName&&(Se+=this.author.lastName),Se}getLastUpdatedByFullName(){let Se="";return this.lastUpdatedBy?.firstName&&(Se+=this.lastUpdatedBy.firstName+" "),this.lastUpdatedBy?.lastName&&(Se+=this.lastUpdatedBy.lastName),Se}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],ze.prototype,"author",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"category",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"pricingPlan",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],ze.prototype,"createdOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"notificationTemplateId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Boolean)],ze.prototype,"canBeSentMultipleTimes",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],ze.prototype,"channel",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],ze.prototype,"channels",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"description",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],ze.prototype,"organization",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"status",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],ze.prototype,"lastUpdatedBy",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],ze.prototype,"lastUpdatedOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],ze.prototype,"links",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"type",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"userOrganizationId",void 0);const k=()=>We({}),We=(T={})=>(0,o.Deserialize)(T,ze);var ve=function(T){return T.ORDER_MANAGEMENT="order_management",T.TRACKING_ROAD="tracking_road",T.TRACKING_OCEAN="tracking_ocean",T}(ve||{}),S=r(91167);const ue={deliverySite:(0,S.x)("Delivery site's contacts"),driver:(0,S.x)("Resource paired (Driver - Only if driver's phone number is known by Shippeo)"),loadingSite:(0,S.x)("Loading site's contacts"),orders:(0,S.x)("Order's contacts")},d=[{description:(0,S.x)("Lorem Ipsum"),name:(0,S.x)("The truck arrives to the loading site"),templateId:"6ba7b811-9dad-11d1-80b4-00c04fd430c1"},{description:(0,S.x)("Send a notification when the resource is driving towards the loading site. It could have been detected or declared."),name:(0,S.x)("The resource is driving towards the loading site"),templateId:"39afd38f-0308-4137-8a75-8df3cec27176"},{description:(0,S.x)("Send a notification when the resource arrives at the loading site. It could have been detected or declared."),name:(0,S.x)("The resource has arrived at the loading site"),templateId:"01f81c77-9d68-45a6-9e79-ecabba344d61"},{description:(0,S.x)("Send a notification when the cargo is loaded conform. It could have been detected or declared."),name:(0,S.x)("The cargo is loaded conform"),templateId:"7dbcc54d-fd8e-4c0e-8410-5f6050b32448"},{description:(0,S.x)("Send a notification when the resource is driving towards the delivery site. It could have been detected or declared."),name:(0,S.x)("The resource is driving towards the delivery site"),templateId:"c42f8ddf-f76d-40e2-b7d0-e8e7da74d67d"},{description:(0,S.x)("Send a notification when the resource has arrived at the delivery site. It could have been detected or declared."),name:(0,S.x)("The resource has arrived at the delivery site"),templateId:"3bb7ec36-3085-4ceb-9d77-9785d5cc6adb"},{description:(0,S.x)("Send a notification when the cargo is delivered conform. It could have been detected or declared."),name:(0,S.x)("The cargo is delivered conform"),templateId:"f0870d87-0498-4ce6-9d78-28a46d12d3ee"},{description:(0,S.x)("Send a notification when a new order is chartered to my agency. It could be waiting for a confirmation/refusal."),name:(0,S.x)("The order is waiting for confirmation/refusal"),templateId:"35a0154d-2a3f-4b90-ae18-2da177263bce"},{description:(0,S.x)("Send a notification when the order is modified."),name:(0,S.x)("The order is modified"),templateId:"02f4b00f-6172-4419-9eef-ca1cf0513cf3"},{description:(0,S.x)("Send a notification when the order is canceled."),name:(0,S.x)("The order is canceled"),templateId:"05f23cfd-9418-4903-b501-5c9156ba5a9f"},{description:(0,S.x)("Send a notification when the order is unchartered."),name:(0,S.x)("The order is unchartered"),templateId:"de81c16d-e8cf-44d4-bc3a-a204b7ba4a30"},{description:(0,S.x)("Send a notification when the resource arrives at the loading site. It could have been detected or declared."),name:(0,S.x)("The resource has arrived at the loading site"),templateId:"51668ead-9250-4855-b3ec-fe14e403ab87"},{description:(0,S.x)("Send a notification when the resource is driving towards the loading site. It could have been detected or declared."),name:(0,S.x)("The resource is driving towards the loading site"),templateId:"acc78e1f-7b98-4437-aac3-14e9e907adbc"},{description:(0,S.x)("Send a notification when the resource is driving towards the delivery site. It could have been detected or declared."),name:(0,S.x)("The resource is driving towards the delivery site"),templateId:"e1fba89e-d9f3-4c3b-8568-312b64d0650c"},{description:(0,S.x)("Send a notification when the cargo is loaded conform. It could have been detected or declared."),name:(0,S.x)("The cargo is loaded conform"),templateId:"05e047b0-5f04-4ee9-854c-d42415f4ea8b"},{description:(0,S.x)("Send a notification when the resource has arrived at the delivery site. It could have been detected or declared."),name:(0,S.x)("The resource has arrived at the delivery site"),templateId:"6ff12427-047b-4eb6-95be-4ff2493f904e"},{description:(0,S.x)("Send a notification when the cargo is delivered conform. It could have been detected or declared."),name:(0,S.x)("The cargo is delivered conform"),templateId:"b1388f21-87dd-41a8-ade2-417c01316ab9"},{description:(0,S.x)("Send a notification when an attachment is added to the order (photo, POD, etc.)."),name:(0,S.x)("A new attachment is added to the order"),templateId:"9ace3276-3c0b-4044-be62-3eadfc35a500"},{description:(0,S.x)("Send a notification when the loading is postponed."),name:(0,S.x)("The loading is postponed"),templateId:"5614b88f-66bb-4c03-aa93-fdd19a69f05e"},{description:(0,S.x)("Send a notification when the delivery is postponed."),name:(0,S.x)("The delivery is postponed"),templateId:"4f1ce472-615a-4872-92eb-815304df598a"},{description:(0,S.x)("Send a notification when the order is not paired 6 hours before the end of the loading timeslot."),name:(0,S.x)("The order is awaiting pairing 6 hours before the end of the time slot"),templateId:"fb3636bb-d6ba-4a8d-b222-713041db0fd9"},{description:(0,S.x)("Send a notification when the driver has not confirmed the order 30 min after being paired to the order."),name:(0,S.x)("The driver has not confirmed 30 minutes after pairing"),templateId:"4740c278-dffd-4ba3-9657-415c7073a945"},{description:(0,S.x)("Send a notification when the driver has not confirmed to be on the way to the delivery site 50 minutes before the end of the delivery time slot."),name:(0,S.x)("The driver has not confirmed to be driving towards the delivery site 50 minutes before the end of the time slot"),templateId:"fd610d6f-19da-4825-babe-27224878662b"},{description:(0,S.x)("Send a notification when the driver has not confirmed to be on the way to the loading site 50 minutes before the end of the loading time slot."),name:(0,S.x)("The driver has not confirmed to be driving towards the loading site 50 minutes before the end of the time slot"),templateId:"4837aa64-53f2-44d5-884b-a45e605ae668"},{description:(0,S.x)("Send a notification when the loading is not confirmed 1h after the end of the loading timeslot."),name:(0,S.x)("The loading is not confirmed 1 hour after the end of the time slot"),templateId:"d5315698-82d2-4b99-8abe-52be77dad266"},{description:(0,S.x)("Send a notification when the delivery is not confirmed 1h after the end of the delivery timeslot."),name:(0,S.x)("The delivery is not confirmed 1 hour after the end of the time slot"),templateId:"1f0bbe6a-50c9-481f-8d9d-a9f6f56ab562"},{description:(0,S.x)("Send a notification when the GPS signal is lost for 15 minutes while the truck is driving towards the loading site."),name:(0,S.x)("The GPS signal is lost for 15 minutes on the way to the loading site"),templateId:"a36806e9-34cf-456c-8c36-ba81bc4af15a"},{description:(0,S.x)("Send a notification when the GPS signal is lost for 15 minutes while the truck is driving towards the delivery site."),name:(0,S.x)("The GPS signal is lost for 15 minutes on the way to the delivery site"),templateId:"d73c88c2-d436-43f1-abe7-5f0843e9a177"},{description:(0,S.x)("Send a notification when the truck is 10 km away from the delivery site (based on the remaining distance in KM of the latest Shippeo ETA)."),name:(0,S.x)("The truck is 10 kilometers from the delivery site, based on Shippeo ETA"),templateId:"43263d78-d506-44f1-aa2e-9bbf62557634"},{description:(0,S.x)("Send a notification when the truck is 25 km away from the delivery site (based on the remaining distance in KM of the latest Shippeo ETA)."),name:(0,S.x)("The truck is 25 kilometers from the delivery site, based on Shippeo ETA"),templateId:"08810d65-abc8-4d63-9f6a-7e5d4631a8d6"},{description:(0,S.x)("Send a notification when the truck is 50 km away from the delivery site (based on the remaining distance in KM of the latest Shippeo ETA)."),name:(0,S.x)("The truck is 50 kilometers from the delivery site, based on Shippeo ETA"),templateId:"dab6659c-3428-4ad6-b57a-327ab5a2f4ac"},{description:(0,S.x)("Send a notification when a delay of 30 min is detected on the delivery site (based on Shippeo ETA). Time windows defined in the conditions."),name:(0,S.x)("Likely delay to the delivery site of 30 min based on ETA"),templateId:"9cc7962e-6a88-401d-b2b6-4bd2a6c98471"},{description:(0,S.x)("Send a notification when a delay of 60 min is detected on the delivery site (based on Shippeo ETA). Time windows defined in the conditions."),name:(0,S.x)("Likely delay to the delivery site of 60 min based on ETA"),templateId:"df40dcfe-9649-46b1-82d2-a34f55cb3b90"},{description:(0,S.x)("Send a notification when a delay of 120 min is detected on the delivery site (based on Shippeo ETA). Time windows defined in the conditions."),name:(0,S.x)("Likely delay to the delivery site of 120 min based on ETA"),templateId:"5ed0c58b-c1c6-4c26-8206-d535c857c1ef"},{description:(0,S.x)("Send a notification when a delay of 30 minutes is detected on the delivery site (based on External ETA). Time windows defined in the conditions."),name:(0,S.x)("Likely delay to the delivery site of 30 min based on external ETA"),templateId:"94fd053c-6dbe-4908-864e-d9d46561ab47"},{description:(0,S.x)("Send a notification when a delay of 60 minutes is detected on the delivery site (based on External ETA). Time windows defined in the conditions."),name:(0,S.x)("Likely delay to the delivery site of 60 minutes based on external ETA"),templateId:"bacbfaf9-e9ba-4125-be02-18147c8597f1"},{description:(0,S.x)("Send a notification when a delay of 120 minutes is detected on the delivery site (based on External ETA). Time windows defined in the conditions."),name:(0,S.x)("Likely delay to the delivery site of 120 min based on external ETA"),templateId:"b900baaa-0119-40c0-a7f5-a7701515d1d9"},{description:(0,S.x)("Send a notification when a delay is detected at loading site 1 hour before the end of the timeslot."),name:(0,S.x)("The driver will probably be late upon arrival at loading site 1 hour before the end of the time slot"),templateId:"28d3abe8-a8d3-46cd-b3c4-692c293d247e"},{description:(0,S.x)("Send a notification when a delay is detected at delivery site 1 hour before the end of the timeslot."),name:(0,S.x)("The driver will probably be late upon arrival at delivery site 1 hour before the end of the time slot"),templateId:"6cf5bcc9-54ae-41a3-8963-070fa075d382"},{description:(0,S.x)("Send a notification when a delay is reported on delivery site."),name:(0,S.x)("Delay reported on delivery site"),templateId:"3ff0952b-5937-4cb7-a23e-628150edbd20"},{description:(0,S.x)("Send a notification when a message has been sent in the internal discussion channel."),name:(0,S.x)("There is a new message in the internal discussion channel"),templateId:"cd2f1122-81e0-459c-89cd-4d8fd5e4bae4"},{description:(0,S.x)("Send a notification when a message has been sent in the external discussion channel."),name:(0,S.x)("There is a new message in the shared discussion channel"),templateId:"d6818315-512f-480a-81f5-c9f53437fbac"},{description:(0,S.x)("Send a notification when the driver is not geolocated at loading site after the end of the timeslot."),name:(0,S.x)("The driver is not geolocated at loading site 0 minute after the end of the time slot"),templateId:"dac7f7b5-852b-40d2-b931-4e036140f389"},{description:(0,S.x)("Send a notification when the driver is not geolocated at delivery site after the end of the timeslot."),name:(0,S.x)("The driver is not geolocated at the delivery site 0 minute after the end of the time slot"),templateId:"138a1337-0e5f-4967-8a03-2fa18442588a"},{description:(0,S.x)("Send a notification when an order is confirmed."),name:(0,S.x)("Order confirmed"),templateId:"3926d71c-d111-4140-be76-a9b8f88e778f"},{description:(0,S.x)("Send a notification when the delivery is refused."),name:(0,S.x)("The delivery has been refused"),templateId:"6b3af535-f020-4ec5-9ad9-bb63c49be77a"},{description:(0,S.x)("Send a notification when the delivery is not completed, non-delivery notice left for recipient."),name:(0,S.x)("The delivery has not been completed (non-delivery notice left for recipient)"),templateId:"0026bdcd-9a04-428a-8865-c93017d0aeea"},{description:(0,S.x)("Send a notification when the delivery is not completed, cause : recipient closed or unavailable."),name:(0,S.x)("The delivery has not been completed (recipient closed or unavailable)"),templateId:"0e5d0234-a498-4d8e-88a6-3558cf1a3a9a"},{description:(0,S.x)("Send a notification when the delivery is not completed, cause : recipient has changed address."),name:(0,S.x)("The delivery has not been completed (recipient has changed address)"),templateId:"391edae3-a2ff-44a0-b9ff-7c4eb4b96cac"},{description:(0,S.x)("Send a notification when the delivery is not completed, cause : closed due to leave or inventory."),name:(0,S.x)("The delivery has not been completed (closed du to leave or inventory)"),templateId:"e26c170c-6d73-4a3b-bc09-8195e3ef9c6e"},{description:(0,S.x)("Send a notification when the delivery is not completed, cause : weekly closure."),name:(0,S.x)("The delivery has not been completed (weekly closure)"),templateId:"3adef82a-6c30-44bb-8bb5-8e4c712de522"},{description:(0,S.x)("Send a notification when the delivery is not completed, cause : to be delivered to a new address."),name:(0,S.x)("The delivery has not been completed (to be delivered to a new address)"),templateId:"8bd4407d-d51e-405e-817a-774852547e94"},{description:(0,S.x)("Send a notification when the delivery is not completed, cause : Entirely missing cargo."),name:(0,S.x)("The delivery has not been completed (Entirely missing cargo)"),templateId:"27ab97ed-2494-40d7-ad2f-a8bdf03ea5db"},{description:(0,S.x)("Send a notification when the delivery is refused, cause : various reason."),name:(0,S.x)("The delivery has been refused (various reason)"),templateId:"ae6e7734-372d-4cae-b584-ba5dd417fd59"},{description:(0,S.x)("Send a notification when the delivery is refused, cause : damaged."),name:(0,S.x)("The delivery has been refused (damaged)"),templateId:"d0cb9f4c-a984-4767-afaa-d0f0663d2f1b"},{description:(0,S.x)("Send a notification when the delivery is refused, cause : partially missing cargo."),name:(0,S.x)("The delivery has been refused (partially missing cargo)"),templateId:"1058845f-0b57-4aa1-82ae-bd4ec34875e9"},{description:(0,S.x)("Send a notification when the delivery is refused, cause : late delivery."),name:(0,S.x)("The delivery has been refused (late delivery)"),templateId:"940ee085-7269-4495-9a55-e368a7295598"},{description:(0,S.x)("Send a notification when the loading is refused."),name:(0,S.x)("The loading has been refused"),templateId:"e29d69d2-f1ed-4dae-9b10-ea7ce51a09ba"},{description:(0,S.x)("Send a notification when the loading is not compliant, cause: partially missing cargo."),name:(0,S.x)("The loading is not compliant (partially missing)"),templateId:"5514544e-1be0-4d77-8487-ba19486e5e67"},{description:(0,S.x)("Send a notification when the loading is failed, cause: entirely missing cargo."),name:(0,S.x)("The loading failed (cargo missing entirely)"),templateId:"819c5a19-4ee7-468f-8e58-940565500331"},{description:(0,S.x)("Send a notification when the loading is refused, cause: carious reason."),name:(0,S.x)("The loading has refused by (various reason)"),templateId:"6c2c9d37-16d8-4069-8f79-825277d3c3a8"},{description:(0,S.x)("Send a notification when the loading is not completed, cause : Partially missing cargo."),name:(0,S.x)("The loading has not been completed (Partially missing cargo)"),templateId:"1430343d-98e0-4950-993a-0e64b16b50fc"},{description:(0,S.x)("Send a notification when the delivery is not compliant, cause: partially missing cargo."),name:(0,S.x)("The delivery is not compliant (partially missing)"),templateId:"9dcd8644-fcd5-430b-ae70-fc164cea8bcb"},{description:(0,S.x)("Send a notification when the delivery is not compliant, cause: damaged."),name:(0,S.x)("The delivery is not compliant (damaged)"),templateId:"19c371d7-27b6-481e-97b5-df5115c97cab"},{description:(0,S.x)("Send a notification when a new order automatically confirmed is chartered to my agency."),name:(0,S.x)("Receiving of a new order automatically confirmed"),templateId:"2cda4ac8-7575-4833-9075-38e87d6bdb62 "}],Re=[{label:(0,S.x)("inactive"),value:L.Inactive},{label:(0,S.x)("draft"),value:L.Draft},{label:(0,S.x)("active"),value:L.Active}],he=[{label:(0,S.x)("email"),value:Ce.Email},{label:(0,S.x)("sms"),value:Ce.Sms},{label:(0,S.x)("no channel"),value:Ce.NoChannel}];var oe=function(T){return T.GENERAL_INFORMATION="General information",T.TRIGGER_EVENT="Trigger event",T.CONDITIONS="Conditions",T.RECIPIENTS="Recipients",T.MESSAGE="Message",T.REVIEW="Review and activation",T}(oe||{});const qe={[oe.CONDITIONS]:2,[oe.MESSAGE]:4,[oe.REVIEW]:5},w={[oe.CONDITIONS]:2,[oe.MESSAGE]:3,[oe.REVIEW]:4};var re=function(T){return T.Custom="custom",T.Linked="linked",T}(re||{});const le=[{isDefaultValue:!0,label:(0,S.x)("Custom notification"),value:re.Custom},{label:(0,S.x)("Template notification"),value:re.Linked}];class Ae{hasId(){return!!this.id}}(0,e.Cg)([(0,o.deserializeAs)(ze),(0,e.Sn)("design:type",Array)],Ae.prototype,"notifications",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ae.prototype,"category",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ae.prototype,"templateId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ae.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Ae.prototype,"links",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ae.prototype,"type",void 0);const Le=(T={})=>(0,o.Deserialize)(T,Ae);var Ke=function(T){return T.OPERATOR_HAS_CHARTERED_TO="OPERATOR_HAS_CHARTERED_TO",T.OPERATOR_IS_CHARTERED_FROM="OPERATOR_IS_CHARTERED_FROM",T.OPERATOR_ADD="OPERATOR_ADD",T.OPERATOR_IS_LAST_CHARTERED="OPERATOR_IS_LAST_CHARTERED",T.OPERATOR_SUB="OPERATOR_SUB",T.OPERATOR_MAX="OPERATOR_MAX",T.OPERATOR_GREATER_THAN="OPERATOR_GREATER_THAN",T.OPERATOR_NOT_EQUAL_TO="OPERATOR_NOT_EQUAL_TO",T.OPERATOR_LOWER_THAN="OPERATOR_LOWER_THAN",T.OPERATOR_IS_ONE_ABOVE="OPERATOR_IS_ONE_ABOVE",T.OPERATOR_IS_ONE_BELOW="OPERATOR_IS_ONE_BELOW",T.OPERATOR_CONTAINS_IN_STRING="OPERATOR_CONTAINS_IN_STRING",T.OPERATOR_CONTAINED_IN_STRING="OPERATOR_CONTAINED_IN_STRING",T.OPERATOR_IN="OPERATOR_IN",T.OPERATOR_EQUAL_TO="OPERATOR_EQUAL_TO",T.OPERATOR_AND="OPERATOR_AND",T.OPERATOR_OR="OPERATOR_OR",T.OPERATOR_NOT_IN="OPERATOR_NOT_IN",T.OPERATOR_EXCLUDE_IN_STRING="OPERATOR_EXCLUDE_IN_STRING",T.OPERATOR_EXCLUDED_IN_STRING="OPERATOR_EXCLUDED_IN_STRING",T.OPERATOR_HAS_ONE_OF="OPERATOR_HAS_ONE_OF",T.OPERATOR_INTERSECT="OPERATOR_INTERSECT",T.OPERATOR_COUNT="OPERATOR_COUNT",T.OPERATOR_START_WITH="OPERATOR_START_WITH",T.OPERATOR_HAS="OPERATOR_HAS",T.OPERATOR_NOT_HAS="OPERATOR_NOT_HAS",T.OPERATOR_IS="OPERATOR_IS",T}(Ke||{});class ht{hasCombinationLeftAndReturn(Se,Xe){return this.operandTypeCombinations.some(ne=>ne.left===Se&&ne.return===Xe)}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],ht.prototype,"operandTypeCombinations",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ht.prototype,"type",void 0);const Qe=T=>(0,o.Deserialize)(T,ht);class ye{hasId(){return!!this.id}getFullName(){let Se="";return this.firstName&&(Se+=this.firstName+" "),this.lastName&&(Se+=this.lastName),Se}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],ye.prototype,"attributes",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ye.prototype,"firstName",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ye.prototype,"lastName",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ye.prototype,"userName",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ye.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ye.prototype,"hashId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ye.prototype,"type",void 0);const g=(T={})=>(0,o.Deserialize)(T,ye);var K=function(T){return T.Container="container",T.Mobile="mobile",T.Plane="plane",T.Train="Train",T.Truck="truck",T.Van="van",T.Vessel="vessel",T}(K||{});const ae=[{label:(0,S.x)("container"),value:K.Container},{label:(0,S.x)("mobile"),value:K.Mobile},{label:(0,S.x)("plane"),value:K.Plane},{label:(0,S.x)("trailer"),value:K.Train},{label:(0,S.x)("truck"),value:K.Truck},{label:(0,S.x)("van"),value:K.Van},{label:(0,S.x)("vessel"),value:K.Vessel}];var Be=function(T){return T.Label="label",T.Value="value",T}(Be||{});class et{hasId(){return!!this.id}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],et.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],et.prototype,"language",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Boolean)],et.prototype,"default",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],et.prototype,"content",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],et.prototype,"links",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],et.prototype,"type",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],et.prototype,"senderId",void 0);const ft=()=>Dt({}),Dt=(T={})=>(0,o.Deserialize)(T,et);var je=function(T){return T.Management="MANAGEMENT",T.Ocean="TRACKING_OCEAN",T.Road="TRACKING_ROAD",T.Parcel="TRACKING_GOODS",T}(je||{}),Ie=function(T){return T.AppointmentLoadTaken="APPOINTMENT_LOAD_TAKEN",T.AppointmentUnloadTaken="APPOINTMENT_UNLOAD_TAKEN",T.ArrLoad="ARR_LOAD",T.ArrUnload="ARR_UNLOAD",T.CalculatedDelayDrivingTowardSiteLoad="CALCULATED_DELAY_DRIVING_TOWARD_SITE_LOAD",T.CalculatedDelayDrivingTowardSiteUnload="CALCULATED_DELAY_DRIVING_TOWARD_SITE_UNLOAD",T.CancelOrder="CANCEL_ORDER",T.ConLoad="CON_LOAD",T.ConUnload="CON_UNLOAD",T.DelayDrivingTowardSiteLoad="DELAY_DRIVING_TOWARD_SITE_LOAD",T.DelayDrivingTowardSiteUnload="DELAY_DRIVING_TOWARD_SITE_UNLOAD",T.DeliveryRefusedByShipperVariousReason="DELIVERY_REFUSED_BY_SHIPPER_VARIOUS_REASON",T.DriverConfirmed="DRIVER_CONFIRMED",T.DriverUnconfirmed="DRIVER_UNCONFIRMED",T.DrivingToLoad="DRIVING_TO_LOAD",T.DrivingToUnload="DRIVING_TO_UNLOAD",T.EtaComputed="ETA_COMPUTED",T.EtaDeliveryLate="ETA_DELIVERY_LATE",T.EtaEvent="ETA_EVENT",T.EtaEventExternal="ETA_EVENT_EXTERNAL",T.EtaExternal="ORDER_EXTERNAL_ETA_ADDED",T.EtaLoadEarly="ETA_LOAD_EARLY",T.EtaLoadLate="ETA_LOAD_LATE",T.GoodsDeliveredNotConform="GOODS_DELIVERED_NOT_CONFORM",T.GoodsLoadedNotConform="GOODS_LOADED_NOT_CONFORM",T.LoadingPostponed="LOADING_POSTPONED",T.LoadingRefusedByShipperVariousReason="LOADING_REFUSED_BY_SHIPPER_VARIOUS_REASON",T.LoadingWaitingToBeConfirmed="LOADING_WAITING_TO_BE_CONFIRMED",T.NewInternalComment="NEW_INTERNAL_COMMENT",T.NewSharedComment="NEW_SHARED_COMMENT",T.NoDrivingTowardLoad="NO_DRIVING_TOWARD_LOAD",T.NoDrivingTowardUnload="NO_DRIVING_TOWARD_UNLOAD",T.NoGpsDrivingToLoad="NO_GPS_DRIVING_TO_LOAD",T.NoGpsDrivingToUnload="NO_GPS_DRIVING_TO_UNLOAD",T.NoPositionOnSiteLoad="NO_POSITION_ON_SITE_LOAD",T.NoPositionOnSiteUnload="NO_POSITION_ON_SITE_UNLOAD",T.OceanSolutionEventOutMilestoneUpdated="ocean.solution.event_out.milestone_updated",T.OrderConfirmed="ORDER_CONFIRMED",T.OrderCreated="ORDER_CREATED",T.OrderDeliveredNotConformDamage="ORDER_DELIVERED_NOT_CONFORM_DAMAGE",T.OrderDeliveredNotConformPartiallyMissing="ORDER_DELIVERED_NOT_CONFORM_PARTIALLY_MISSING",T.OrderDeliveryRefusedDamage="ORDER_DELIVERY_REFUSED_DAMAGE",T.OrderDeliveryRefusedLate="ORDER_DELIVERY_REFUSED_LATE",T.OrderDeliveryRefusedPartiallyMissing="ORDER_DELIVERY_REFUSED_PARTIALLY_MISSING",T.OrderEcmrCompleted="ORDER_ECMR_COMPLETED",T.OrderEcmrCreated="ORDER_ECMR_CREATED",T.OrderEcmrUpdated="ORDER_ECMR_UPDATED",T.OrderIsNotPairAlert="ORDER_IS_NOT_PAIR_ALERT",T.OrderIsPair="ORDER_IS_PAIR",T.OrderIsUnchartered="ORDER_IS_UNCHARTERED",T.OrderIsUnpair="ORDER_IS_UNPAIR",T.OrderLoadedNotConformPartiallyMissing="ORDER_LOADED_NOT_CONFORM_PARTIALLY_MISSING",T.OrderLoadingRefusedLate="ORDER_LOADING_REFUSED_LATE",T.OrderModified="ORDER_MODIFIED",T.OrderNotDeliveredAbsent="ORDER_NOT_DELIVERED_ABSENT",T.OrderNotDeliveredAddressObsolete="ORDER_NOT_DELIVERED_ADDRESS_OBSOLETE",T.OrderNotDeliveredClosedHolidaysInventory="ORDER_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY",T.OrderNotDeliveredClosingHours="ORDER_NOT_DELIVERED_CLOSING_HOURS",T.OrderNotDeliveredEntirelyMissing="ORDER_NOT_DELIVERED_ENTIRELY_MISSING",T.OrderNotDeliveredMissingReturnable="ORDER_NOT_DELIVERED_MISSING_RETURNABLE",T.OrderNotDeliveredNewAddress="ORDER_NOT_DELIVERED_NEW_ADDRESS",T.OrderNotDeliveredNotice="ORDER_NOT_DELIVERED_NOTICE",T.OrderNotLoadedAddressObsolete="ORDER_NOT_LOADED_ADDRESS_OBSOLETE",T.OrderNotLoadedEntirelyMissing="ORDER_NOT_LOADED_ENTIRELY_MISSING",T.OrderNotLoadedPartiallyMissing="ORDER_NOT_LOADED_PARTIALLY_MISSING",T.OrderPending="ORDER_PENDING",T.PodAdded="POD_ADDED",T.RefusedLoad="REFUSED_LOAD",T.RefusedUnload="REFUSED_UNLOAD",T.UnloadingPostponed="UNLOADING_POSTPONED",T.UnloadingWaitingToBeConfirmed="UNLOADING_WAITING_TO_BE_CONFIRMED",T}(Ie||{});class Tt{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Tt.prototype,"code",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Tt.prototype,"group",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Tt.prototype,"targetType",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Tt.prototype,"lifeCycleScope",void 0);const Lt=(T={})=>(0,o.Deserialize)(T,Tt);class Fe{getEventName(){return this.event.code}hasId(){return!!this.id}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Tt)],Fe.prototype,"event",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Fe.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Fe.prototype,"links",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Fe.prototype,"type",void 0);const xt=(T={})=>(0,o.Deserialize)(T,Fe),pe=()=>({[Ie.CalculatedDelayDrivingTowardSiteLoad]:{group:(0,S.x)("ETA"),label:(0,S.x)("Likely delay at loading site")},[Ie.CalculatedDelayDrivingTowardSiteUnload]:{group:(0,S.x)("ETA"),label:(0,S.x)("Likely delay at delivery site")},[Ie.DelayDrivingTowardSiteLoad]:{group:(0,S.x)("ETA"),label:(0,S.x)("Delay reported while towards loading site")},[Ie.DelayDrivingTowardSiteUnload]:{group:(0,S.x)("ETA"),label:(0,S.x)("Delay reported while towards delivery site")},[Ie.EtaComputed]:{group:(0,S.x)("ETA"),label:(0,S.x)("Computed ETA")},[Ie.EtaDeliveryLate]:{group:(0,S.x)("ETA"),label:(0,S.x)("Late delivery")},[Ie.EtaEvent]:{group:(0,S.x)("ETA"),label:(0,S.x)("Estimated time of arrival")},[Ie.EtaExternal]:{group:(0,S.x)("ETA"),label:(0,S.x)("External ETA")},[Ie.EtaLoadEarly]:{group:(0,S.x)("ETA"),label:(0,S.x)("Early loading")},[Ie.EtaLoadLate]:{group:(0,S.x)("ETA"),label:(0,S.x)("Late loading")},[Ie.LoadingPostponed]:{group:(0,S.x)("ETA"),label:(0,S.x)("Loading postponed")},[Ie.LoadingWaitingToBeConfirmed]:{group:(0,S.x)("ETA"),label:(0,S.x)("Loading waiting to be confirmed")},[Ie.UnloadingPostponed]:{group:(0,S.x)("ETA"),label:(0,S.x)("Delivery postponed")},[Ie.AppointmentLoadTaken]:{group:(0,S.x)("appointment"),label:(0,S.x)("Appointment taken at loading site")},[Ie.AppointmentUnloadTaken]:{group:(0,S.x)("appointment"),label:(0,S.x)("Appointment taken at delivery site")},[Ie.GoodsDeliveredNotConform]:{group:(0,S.x)("status"),label:(0,S.x)("Delivered - with reservations")},[Ie.GoodsLoadedNotConform]:{group:(0,S.x)("status"),label:(0,S.x)("Loaded - with reservations")},[Ie.ArrLoad]:{group:(0,S.x)("status"),label:(0,S.x)("Arrival at loading site")},[Ie.ArrUnload]:{group:(0,S.x)("status"),label:(0,S.x)("Arrival at delivery site")},[Ie.CancelOrder]:{group:(0,S.x)("status"),label:(0,S.x)("Order cancelled")},[Ie.ConLoad]:{group:(0,S.x)("status"),label:(0,S.x)("Loading conform")},[Ie.ConUnload]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery conform")},[Ie.DrivingToLoad]:{group:(0,S.x)("status"),label:(0,S.x)("Driving towards loading site")},[Ie.DrivingToUnload]:{group:(0,S.x)("status"),label:(0,S.x)("Driving towards delivery site")},[Ie.OrderCreated]:{group:(0,S.x)("status"),label:(0,S.x)("Order created")},[Ie.OrderIsPair]:{group:(0,S.x)("status"),label:(0,S.x)("Order is paired")},[Ie.OrderIsNotPairAlert]:{group:(0,S.x)("pairing"),label:(0,S.x)("Order is not pair")},[Ie.OrderIsUnpair]:{group:(0,S.x)("status"),label:(0,S.x)("Order is unpaired")},[Ie.OrderModified]:{group:(0,S.x)("status"),label:(0,S.x)("Order modified")},[Ie.RefusedLoad]:{group:(0,S.x)("status"),label:(0,S.x)("Loading not realised (not justified)")},[Ie.RefusedUnload]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realised (not justified)")},[Ie.OrderDeliveredNotConformDamage]:{group:(0,S.x)("status"),label:(0,S.x)("Delivered non conform - Damaged")},[Ie.OrderDeliveredNotConformPartiallyMissing]:{group:(0,S.x)("status"),label:(0,S.x)("Delivered non conform - Partially missing")},[Ie.OrderDeliveryRefusedDamage]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery refused - Damaged")},[Ie.OrderDeliveryRefusedLate]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery refused - Late delivery")},[Ie.OrderDeliveryRefusedPartiallyMissing]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery refused - Partially missing cargo")},[Ie.OrderLoadedNotConformPartiallyMissing]:{group:(0,S.x)("status"),label:(0,S.x)("Loading not compliant - Partially missing")},[Ie.OrderLoadingRefusedLate]:{group:(0,S.x)("status"),label:(0,S.x)("Loading refused - Late delivery")},[Ie.OrderNotDeliveredAddressObsolete]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realised - Consignee changed address")},[Ie.OrderNotDeliveredClosedHolidaysInventory]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realised - Closed due to holidays or stocktaking")},[Ie.OrderNotDeliveredClosingHours]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realised - Weekly closing time")},[Ie.OrderNotDeliveredEntirelyMissing]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realised - Cargo missing entirely")},[Ie.OrderNotDeliveredMissingReturnable]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realized - Missing returnable")},[Ie.OrderNotDeliveredNewAddress]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realised - Deliver to new address")},[Ie.OrderNotLoadedAddressObsolete]:{group:(0,S.x)("status"),label:(0,S.x)("Loading not realised - Consignee changed address")},[Ie.OrderNotLoadedEntirelyMissing]:{group:(0,S.x)("status"),label:(0,S.x)(" Loading not realised - Cargo missing entirely")},[Ie.OrderNotLoadedPartiallyMissing]:{group:(0,S.x)("status"),label:(0,S.x)("Loading not realised - Partially missing cargo")},[Ie.EtaEventExternal]:{group:(0,S.x)("status"),label:(0,S.x)("etaEventExternal")},[Ie.OceanSolutionEventOutMilestoneUpdated]:{group:(0,S.x)("status"),label:(0,S.x)("Ocean update")},[Ie.OrderConfirmed]:{group:(0,S.x)("status"),label:(0,S.x)("Order confirmed")},[Ie.LoadingRefusedByShipperVariousReason]:{group:(0,S.x)("status"),label:(0,S.x)("Loading refused by the shipper (Various reason)")},[Ie.OrderNotDeliveredNotice]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realized (delivery notice left)")},[Ie.OrderNotDeliveredAbsent]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery not realized (Recipient closed or unavailable)")},[Ie.DeliveryRefusedByShipperVariousReason]:{group:(0,S.x)("status"),label:(0,S.x)("Delivery refused by the shipper (various reason)")},[Ie.NoGpsDrivingToLoad]:{group:(0,S.x)("Problems"),label:(0,S.x)("No GPS driving to loading site")},[Ie.NoGpsDrivingToUnload]:{group:(0,S.x)("Problems"),label:(0,S.x)("No GPS driving to delivery site")},[Ie.NoPositionOnSiteLoad]:{group:(0,S.x)("Problems"),label:(0,S.x)("No position on loading site")},[Ie.NoPositionOnSiteUnload]:{group:(0,S.x)("Problems"),label:(0,S.x)("No position on delivery site")},[Ie.UnloadingWaitingToBeConfirmed]:{group:(0,S.x)("pending action"),label:(0,S.x)("Unloading waiting to be confirmed")},[Ie.PodAdded]:{group:(0,S.x)("attachement"),label:(0,S.x)("Attachement is added")},[Ie.DriverConfirmed]:{group:(0,S.x)("pairing"),label:(0,S.x)("Driver has confirmed")},[Ie.OrderPending]:{group:(0,S.x)("status"),label:(0,S.x)("Order is pending")},[Ie.OrderIsUnchartered]:{group:(0,S.x)("chartering"),label:(0,S.x)("Order unchartered")},[Ie.NoDrivingTowardLoad]:{group:(0,S.x)("problems"),label:(0,S.x)("No driving toward loading site")},[Ie.DriverUnconfirmed]:{group:(0,S.x)("pairing"),label:(0,S.x)("Driver unconfirmed")},[Ie.NoDrivingTowardUnload]:{group:(0,S.x)("problems"),label:(0,S.x)("No driving toward delivery site")},[Ie.NewSharedComment]:{group:(0,S.x)("discussion"),label:(0,S.x)("New shared comment")},[Ie.NewInternalComment]:{group:(0,S.x)("discussion"),label:(0,S.x)("New internal comment")},[Ie.OrderEcmrCompleted]:{group:(0,S.x)("EPOD"),label:(0,S.x)("Order eCMR Completed")},[Ie.OrderEcmrCreated]:{group:(0,S.x)("EPOD"),label:(0,S.x)("Order eCMR Created")},[Ie.OrderEcmrUpdated]:{group:(0,S.x)("EPOD"),label:(0,S.x)("Order eCMR Updated")}})},98323:(fe,J,r)=>{"use strict";r.d(J,{ZV:()=>p,Vk:()=>he,TA:()=>i,P9:()=>N,_i:()=>A,Gg:()=>I,E1:()=>b,qS:()=>d,wi:()=>Y,Fb:()=>a,Jc:()=>ue,K_:()=>oe,fT:()=>qe,hu:()=>E,kY:()=>Re,Tc:()=>S});var t=r(31635),e=r(47817);class s{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],s.prototype,"identifier",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],s.prototype,"type",void 0);var i=function(g){return g.GoodsDelivering="GOODS_DELIVERING",g.GoodsLoading="GOODS_LOADING",g.OceanCarrierDestination="OCEAN_CARRIER_DESTINATION",g.OceanCarrierOrigin="OCEAN_CARRIER_ORIGIN",g.Transhipment="TRANSHIPMENT",g.Uncategorized="UNCATEGORIZED",g}(i||{}),p=function(g){return g.Container="CONTAINER",g.RoRo="RO_RO",g.BreakBulk="BREAK_BULK",g}(p||{});class f{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],f.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],f.prototype,"scacs",void 0);var N=function(g){return g.TwentyTwoFeet="22",g.TwentyFiveFeet="25",g.FortyTwoFeet="42",g.FortyFiveFeet="45",g}(N||{}),A=function(g){return g.DryVan="Dry van",g.Reefer="Reefer",g.Tank="Tank",g.FlatRack="Flat rack",g.OpenTop="Open top",g}(A||{}),I=function(g){return g.AIS="AIS",g.FreightForwarder="FREIGHT_FORWARDER",g.OceanCarrier="OCEAN_CARRIER",g.Scheduler="SCHEDULER",g.Scraper="SCRAPER",g.Shippeo="SHIPPEO",g.Shipper="SHIPPER",g}(I||{}),b=function(g){return g.Api="api",g.EDI315="edi315",g.Edifact="edifact",g}(b||{}),l=r(36287);class R{}(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],R.prototype,"date",void 0),(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],R.prototype,"recordedOn",void 0);class v{}(0,t.Cg)([(0,e.deserializeAs)(Date),(0,t.Sn)("design:type",Date)],v.prototype,"date",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],v.prototype,"name",void 0);var E=function(g){return g.Air="AIR",g.Ocean="OCEAN",g.Rail="RAIL",g.Road="ROAD",g}(E||{});class h{constructor(){this.scacs=[]}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],h.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],h.prototype,"scacs",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],h.prototype,"type",void 0);class M{}(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],M.prototype,"arrive",void 0),(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],M.prototype,"depart",void 0);class F{constructor(){this.tags=[]}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],F.prototype,"additionalReferences",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],F.prototype,"cargo",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],F.prototype,"container",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],F.prototype,"id",void 0),(0,t.Cg)([(0,e.deserializeAs)(h),(0,t.Sn)("design:type",Array)],F.prototype,"operators",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",M)],F.prototype,"plannedDates",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],F.prototype,"scacAtCreation",void 0),(0,t.Cg)([(0,e.deserializeAs)(v),(0,t.Sn)("design:type",v)],F.prototype,"status",void 0),(0,t.Cg)([(0,e.deserializeAs)(l.vwO),(0,t.Sn)("design:type",Array)],F.prototype,"tags",void 0);var Y=function(g){return g.ContainerArrived="CONTAINER_ARRIVED",g.ContainerAvailableForDelivery="CONTAINER_AVAILABLE_FOR_DELIVERY",g.ContainerCarrierRelease="CONTAINER_CARRIER_RELEASE",g.ContainerCustomsHold="CONTAINER_CUSTOMS_HOLD",g.ContainerCustomsRelease="CONTAINER_CUSTOMS_RELEASE",g.ContainerCustomsUnreleased="CONTAINER_CUSTOMS_UNRELEASED",g.ContainerDelivered="CONTAINER_DELIVERED",g.ContainerDeparted="CONTAINER_DEPARTED",g.ContainerFreeTimeExpired="CONTAINER_FREE_TIME_EXPIRED",g.ContainerFreeTimeToExpired="CONTAINER_FREE_TIME_TO_EXPIRE",g.ContainerGateInEmpty="CONTAINER_GATE_IN_EMPTY",g.ContainerGateInFull="CONTAINER_GATE_IN_FULL",g.ContainerGateOutEmpty="CONTAINER_GATE_OUT_EMPTY",g.ContainerGateOutFull="CONTAINER_GATE_OUT_FULL",g.ContainerLoaded="CONTAINER_LOADED",g.ContainerOceanChargesPaid="CONTAINER_OCEAN_CHARGES_PAID",g.ContainerUnloaded="CONTAINER_UNLOADED",g.ContainerUSCustomsInBond="CONTAINER_US_CUSTOMS_IN_BOND",g}(Y||{}),a=function(g){return g.ContainerArrivedAtLoadingSite="CONTAINER_ARRIVED_AT_LOADING_SITE",g.ContainerArrivedAtOceanCarrierDestinationSite="CONTAINER_ARRIVED_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerAvailableForDeliveryAtDischargeSite="CONTAINER_AVAILABLE_FOR_DELIVERY_AT_DISCHARGE_SITE",g.ContainerAvailableForDeliveryAtLoadingSite="CONTAINER_AVAILABLE_FOR_DELIVERY_AT_LOADING_SITE",g.ContainerAvailableForDeliveryAtOceanCarrierDestinationSite="CONTAINER_AVAILABLE_FOR_DELIVERY_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerAvailableForDeliveryAtOceanCarrierOriginSite="CONTAINER_AVAILABLE_FOR_DELIVERY_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerAvailableForDeliveryAtTranshipment="CONTAINER_AVAILABLE_FOR_DELIVERY_AT_TRANSHIPMENT",g.ContainerCarrierReleaseAtDischargeSite="CONTAINER_CARRIER_RELEASE_AT_DISCHARGE_SITE",g.ContainerCarrierReleaseAtLoadingSite="CONTAINER_CARRIER_RELEASE_AT_LOADING_SITE",g.ContainerCarrierReleaseAtOceanCarrierDestinationSite="CONTAINER_CARRIER_RELEASE_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerCarrierReleaseAtOceanCarrierOriginSite="CONTAINER_CARRIER_RELEASE_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerCarrierReleaseAtTranshipment="CONTAINER_CARRIER_RELEASE_AT_TRANSHIPMENT",g.ContainerCustomsHoldAtDischargeSite="CONTAINER_CUSTOMS_HOLD_AT_DISCHARGE_SITE",g.ContainerCustomsHoldAtLoadingSite="CONTAINER_CUSTOMS_HOLD_AT_LOADING_SITE",g.ContainerCustomsHoldAtOceanCarrierDestinationSite="CONTAINER_CUSTOMS_HOLD_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerCustomsHoldAtOceanCarrierOriginSite="CONTAINER_CUSTOMS_HOLD_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerCustomsHoldAtTranshipment="CONTAINER_CUSTOMS_HOLD_AT_TRANSHIPMENT",g.ContainerCustomsReleaseAtDischargeSite="CONTAINER_CUSTOMS_RELEASE_AT_DISCHARGE_SITE",g.ContainerCustomsReleaseAtLoadingSite="CONTAINER_CUSTOMS_RELEASE_AT_LOADING_SITE",g.ContainerCustomsReleaseAtOceanCarrierDestinationSite="CONTAINER_CUSTOMS_RELEASE_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerCustomsReleaseAtOceanCarrierOriginSite="CONTAINER_CUSTOMS_RELEASE_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerCustomsReleaseAtTranshipment="CONTAINER_CUSTOMS_RELEASE_AT_TRANSHIPMENT",g.ContainerCustomsUnreleasedAtDischargeSite="CONTAINER_CUSTOMS_UNRELEASED_AT_DISCHARGE_SITE",g.ContainerCustomsUnreleasedAtLoadingSite="CONTAINER_CUSTOMS_UNRELEASED_AT_LOADING_SITE",g.ContainerCustomsUnreleasedAtOceanCarrierDestinationSite="CONTAINER_CUSTOMS_UNRELEASED_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerCustomsUnreleasedAtOceanCarrierOriginSite="CONTAINER_CUSTOMS_UNRELEASED_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerCustomsUnreleasedAtTranshipment="CONTAINER_CUSTOMS_UNRELEASED_AT_TRANSHIPMENT",g.ContainerEmptyGateInAtDeliverySite="CONTAINER_EMPTY_GATE_IN_AT_DELIVERY_SITE",g.ContainerEmptyGateInAtDischargeSite="CONTAINER_EMPTY_GATE_IN_AT_DISCHARGE_SITE",g.ContainerEmptyGateInAtOceanCarrierDestinationSite="CONTAINER_EMPTY_GATE_IN_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerEmptyGateOutAtLoadingSite="CONTAINER_EMPTY_GATE_OUT_AT_LOADING_SITE",g.ContainerEmptyGateOutAtOceanCarrierOriginSite="CONTAINER_EMPTY_GATE_OUT_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerFreeTimeExpiredAtDischargeSite="CONTAINER_FREE_TIME_EXPIRED_AT_DISCHARGE_SITE",g.ContainerFreeTimeExpiredAtLoadingSite="CONTAINER_FREE_TIME_EXPIRED_AT_LOADING_SITE",g.ContainerFreeTimeExpiredAtOceanCarrierDestinationSite="CONTAINER_FREE_TIME_EXPIRED_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerFreeTimeExpiredAtOceanCarrierOriginSite="CONTAINER_FREE_TIME_EXPIRED_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerFreeTimeExpiredAtTranshipment="CONTAINER_FREE_TIME_EXPIRED_AT_TRANSHIPMENT",g.ContainerFreeTimeToExpiredAtDischargeSite="CONTAINER_FREE_TIME_TO_EXPIRE_AT_DISCHARGE_SITE",g.ContainerFreeTimeToExpiredAtLoadingSite="CONTAINER_FREE_TIME_TO_EXPIRE_AT_LOADING_SITE",g.ContainerFreeTimeToExpiredAtOceanCarrierDestinationSite="CONTAINER_FREE_TIME_TO_EXPIRE_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerFreeTimeToExpiredAtOceanCarrierOriginSite="CONTAINER_FREE_TIME_TO_EXPIRE_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerFreeTimeToExpiredAtTranshipment="CONTAINER_FREE_TIME_TO_EXPIRE_AT_TRANSHIPMENT",g.ContainerFullGateInAtDischargeSite="CONTAINER_FULL_GATE_IN_AT_DISCHARGE_SITE",g.ContainerFullGateInAtLoadingSite="CONTAINER_FULL_GATE_IN_AT_LOADING_SITE",g.ContainerFullGateInAtOceanCarrierDestinationSite="CONTAINER_FULL_GATE_IN_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerFullGateInAtOceanCarrierOriginSite="CONTAINER_FULL_GATE_IN_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerFullGateOutAtDeliverySite="CONTAINER_FULL_GATE_OUT_AT_DELIVERY_SITE",g.ContainerFullGateOutAtDischargeSite="CONTAINER_FULL_GATE_OUT_AT_DISCHARGE_SITE",g.ContainerFullGateOutAtLoadingSite="CONTAINER_FULL_GATE_OUT_AT_LOADING_SITE",g.ContainerFullGateOutAtOceanCarrierDestinationSite="CONTAINER_FULL_GATE_OUT_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerFullGateOutAtOceanCarrierOriginSite="CONTAINER_FULL_GATE_OUT_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerLeftFromDischargeSite="CONTAINER_LEFT_DISCHARGE_SITE",g.ContainerLeftFromOceanCarrierOriginSite="CONTAINER_LEFT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerLeftLoadingSite="CONTAINER_LEFT_LOADING_SITE",g.ContainerLoadedAtDischargeSite="CONTAINER_LOADED_AT_DISCHARGE_SITE",g.ContainerLoadedOceanCarrierOrigin="CONTAINER_LOADED_OCEAN_CARRIER_ORIGIN",g.ContainerLoadedTranshipment="CONTAINER_LOADED_TRANSHIPMENT",g.ContainerOceanChargesPaidAtDischargeSite="CONTAINER_OCEAN_CHARGES_PAID_AT_DISCHARGE_SITE",g.ContainerOceanChargesPaidAtLoadingSite="CONTAINER_OCEAN_CHARGES_PAID_AT_LOADING_SITE",g.ContainerOceanChargesPaidAtOceanCarrierDestinationSite="CONTAINER_OCEAN_CHARGES_PAID_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerOceanChargesPaidAtOceanCarrierOriginSite="CONTAINER_OCEAN_CHARGES_PAID_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerOceanChargesPaidAtTranshipment="CONTAINER_OCEAN_CHARGES_PAID_AT_TRANSHIPMENT",g.ContainerOnDeliverySite="CONTAINER_ON_DELIVERY_SITE",g.ContainerOnDischargeSite="CONTAINER_ON_DISCHARGE_SITE",g.ContainerUnloadedLoadingSite="CONTAINER_UNLOADED_LOADING_SITE",g.ContainerUnloadedOceanCarrierDestination="CONTAINER_UNLOADED_OCEAN_CARRIER_DESTINATION",g.ContainerUnloadedTranshipment="CONTAINER_UNLOADED_TRANSHIPMENT",g.ContainerUSCustomsInBondAtDischargeSite="CONTAINER_US_CUSTOMS_IN_BOND_AT_DISCHARGE_SITE",g.ContainerUSCustomsInBondAtLoadingSite="CONTAINER_US_CUSTOMS_IN_BOND_AT_LOADING_SITE",g.ContainerUSCustomsInBondAtOceanCarrierDestinationSite="CONTAINER_US_CUSTOMS_IN_BOND_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerUSCustomsInBondAtOceanCarrierOriginSite="CONTAINER_US_CUSTOMS_IN_BOND_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerUSCustomsInBondAtTranshipment="CONTAINER_US_CUSTOMS_IN_BOND_AT_TRANSHIPMENT",g.OrderResourceEntered="ORDER_RESOURCE_ENTERED",g.OrderResourceEnteredDeliverySite="ORDER_RESOURCE_ENTERED_DELIVERY_SITE",g.OrderResourceEnteredDischargeSite="ORDER_RESOURCE_ENTERED_DISCHARGE_SITE",g.OrderResourceEnteredTranshipmentSite="ORDER_RESOURCE_ENTERED_TRANSHIPMENT_SITE",g.OrderResourceLeft="ORDER_RESOURCE_LEFT",g.OrderResourceLeftLoadingSite="ORDER_RESOURCE_LEFT_LOADING_SITE",g.OrderResourceLeftTranshipmentSite="ORDER_RESOURCE_LEFT_TRANSHIPMENT_SITE",g.OrderVesselArrivedAtTranshipment="ORDER_VESSEL_ARRIVED_AT_TRANSHIPMENT",g.OrderVesselDepartedFromTranshipment="ORDER_VESSEL_DEPARTED_FROM_TRANSHIPMENT",g}(a||{});class P{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],P.prototype,"lat",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],P.prototype,"lng",void 0);class u{}(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],u.prototype,"occurredOn",void 0),(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],u.prototype,"plannedOn",void 0),(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],u.prototype,"recordedOn",void 0);class z{}(0,t.Cg)([(0,e.deserializeAs)(u),(0,t.Sn)("design:type",u)],z.prototype,"dates",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],z.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],z.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],z.prototype,"platform",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",P)],z.prototype,"position",void 0);class H extends z{}(0,t.Cg)([(0,e.deserializeAs)(z),(0,t.Sn)("design:type",Array)],H.prototype,"similarEvents",void 0);class Q{static OnDeserialized(K){K.resourceType=K.resourceType.toLowerCase()}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Q.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Q.prototype,"label",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Q.prototype,"resourceType",void 0);class O{}(0,t.Cg)([(0,e.deserializeAs)(H),(0,t.Sn)("design:type",Array)],O.prototype,"events",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],O.prototype,"legType",void 0),(0,t.Cg)([(0,e.deserializeAs)(Q),(0,t.Sn)("design:type",Q)],O.prototype,"resource",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],O.prototype,"type",void 0);class X{static OnDeserialized(K){K.geoCode=(0,l.cY1)(K.geofencing)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],X.prototype,"unlocode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],X.prototype,"geofenceRadius",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],X.prototype,"geofencing",void 0);class L{}(0,t.Cg)([(0,e.deserializeAs)(l.cST),(0,t.Sn)("design:type",Array)],L.prototype,"positions",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],L.prototype,"vesselId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],L.prototype,"vesselName",void 0);class ce{constructor(){this.isOrderV1=!0}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ce.prototype,"currentPosition",void 0),(0,t.Cg)([(0,e.deserializeAs)(L),(0,t.Sn)("design:type",Array)],ce.prototype,"historicalPositions",void 0),(0,t.Cg)([(0,e.deserializeAs)(X),(0,t.Sn)("design:type",Array)],ce.prototype,"stops",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ce.prototype,"isOrderV1",void 0);class _e{}(0,t.Cg)([(0,e.deserializeAs)(R),(0,t.Sn)("design:type",R)],_e.prototype,"oceanCarrierDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(R),(0,t.Sn)("design:type",R)],_e.prototype,"plannedDate",void 0),(0,t.Cg)([(0,e.deserializeAs)(R),(0,t.Sn)("design:type",R)],_e.prototype,"shippeoDate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],_e.prototype,"status",void 0);const Ge={[Y.ContainerArrived]:l.KMV.Arrival,[Y.ContainerDeparted]:l.KMV.Depart,[Y.ContainerUnloaded]:l.KMV.Unload,[a.ContainerArrivedAtOceanCarrierDestinationSite]:l.KMV.Arrival,[a.ContainerLeftFromOceanCarrierOriginSite]:l.KMV.Depart,[a.ContainerLeftLoadingSite]:l.KMV.Depart,[a.ContainerOnDischargeSite]:l.KMV.Arrival,[a.ContainerUnloadedLoadingSite]:l.KMV.Unload,[a.OrderVesselArrivedAtTranshipment]:l.KMV.Arrival,[a.OrderVesselDepartedFromTranshipment]:l.KMV.Depart},Ue=g=>Ge[g];var ze=r(94168);class k{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],k.prototype,"reference",void 0);class We{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"country",void 0),(0,t.Cg)([(0,e.deserializeAs)(_e),(0,t.Sn)("design:type",_e)],We.prototype,"dates",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],We.prototype,"delay",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"placeId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"postalCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"street",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"town",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],We.prototype,"unlocode",void 0);class ve{static mapToDetails(K,ae){return{id:K,additionalReferences:[...ae.billOfLadings.map(({identifier:Be})=>({type:ze.ss.BillOfLading,value:Be})),...ae.bookingReferences.map(({reference:Be})=>({type:ze.ss.Booking,value:Be}))],cargo:ae.cargo,container:ae.container,operators:ae.oceanCarrier?[{name:ae.oceanCarrier.name,scacs:ae.oceanCarrier.scacs,type:E.Ocean}]:[],plannedDates:{arrive:ae.arrival.dates.plannedDate?.date,depart:ae.departure.dates.plannedDate?.date},scacAtCreation:ae.scacAtCreation,status:{date:ae.currentStatusTimestamp,name:ae.currentStatus}}}static mapToOrderTimeline(K){const Be=K.arrival.dates.status!==l.jYY.Done?void 0:K.arrival.dates.shippeoDate?.date??K.arrival.dates.oceanCarrierDate?.date,ft=K.departure.dates.status!==l.jYY.Done?void 0:K.departure.dates.shippeoDate?.date??K.departure.dates.oceanCarrierDate?.date;return(0,ze.ib)({arrival:{...K.arrival,appointment:{permissions:[]},dates:{actual:{end:Be}},isSkipped:!1,loadedUnloadedAt:Be,theoreticalEndAt:K.arrival.dates.plannedDate?.date},currentStatus:K.currentStatus,departure:{...K.departure,appointment:{permissions:[]},dates:{actual:{end:ft}},isSkipped:!1,loadedUnloadedAt:ft,theoreticalEndAt:K.departure.dates.plannedDate?.date}})}static mapToEstimatedTimes(K){const ae=K.arrival.dates.status===l.jYY.Estimated,Be=K.departure.dates.status===l.jYY.Estimated;return[(0,l.mL7)({date:Be?K.departure.dates.shippeoDate?.date.toString():void 0,delay:K.departure.dates.shippeoDate&&K.departure.delay,provider:l.QDH.Shippeo,recordedOn:Be?K.departure.dates.shippeoDate?.recordedOn?.toString():void 0,type:l.KMV.Depart}),(0,l.mL7)({date:ae?K.arrival.dates.shippeoDate?.date.toString():void 0,delay:K.arrival.dates.shippeoDate&&K.arrival.delay,provider:l.QDH.Shippeo,recordedOn:ae?K.arrival.dates.shippeoDate?.recordedOn?.toString():void 0,type:l.KMV.Arrival}),(0,l.mL7)({date:Be?K.departure.dates.oceanCarrierDate?.date.toString():void 0,delay:!K.departure.dates.shippeoDate&&K.departure.dates.oceanCarrierDate?K.departure.delay:void 0,provider:l.QDH.Carrier,recordedOn:Be?K.departure.dates.oceanCarrierDate?.recordedOn?.toString():void 0,type:l.KMV.Depart}),(0,l.mL7)({date:ae?K.arrival.dates.oceanCarrierDate?.date.toString():void 0,delay:!K.arrival.dates.shippeoDate&&K.arrival.dates.oceanCarrierDate?K.arrival.delay:void 0,provider:l.QDH.Carrier,recordedOn:ae?K.arrival.dates.oceanCarrierDate?.recordedOn?.toString():void 0,type:l.KMV.Arrival})].sort(l.y0L.sort)}}(0,t.Cg)([(0,e.deserializeAs)(We),(0,t.Sn)("design:type",We)],ve.prototype,"arrival",void 0),(0,t.Cg)([(0,e.deserializeAs)(s),(0,t.Sn)("design:type",Array)],ve.prototype,"billOfLadings",void 0),(0,t.Cg)([(0,e.deserializeAs)(k),(0,t.Sn)("design:type",Array)],ve.prototype,"bookingReferences",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ve.prototype,"cargo",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],ve.prototype,"container",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ve.prototype,"currentStatus",void 0),(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],ve.prototype,"currentStatusTimestamp",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ve.prototype,"currentVesselName",void 0),(0,t.Cg)([(0,e.deserializeAs)(We),(0,t.Sn)("design:type",We)],ve.prototype,"departure",void 0),(0,t.Cg)([(0,e.deserializeAs)(f),(0,t.Sn)("design:type",f)],ve.prototype,"oceanCarrier",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],ve.prototype,"scacAtCreation",void 0);const S=g=>(0,e.Deserialize)(g,ve);var ue=function(g){return g.AccumulativeTranshipments="ACCUMULATIVE_TRANSHIPMENTS",g.AutomaticOrderCreation="AUTOMATIC_ORDER_CREATION",g.DelayCalculationMethod="DELAY_CALCULATION_METHOD",g.LeadTimeQueryParameters="LEAD_TIME_QUERY_PARAMETERS",g.PullTracking="PULL_TRACKING",g.PushTracking="PUSH_TRACKING",g.SendSummaryEventsAfterContextualization="SEND_SUMMARY_EVENT_UPDATES_ON_CONTEXTUALIZATION",g.TerminalEventsActivated="TERMINAL_EVENTS_ACTIVATED",g}(ue||{}),d=function(g){return g.FirstOCDate="FROM_FIRST_OCEAN_CARRIER_DATE",g.PlannedDate="FROM_SHIPPER_PLANNED_DATE",g}(d||{}),Re=function(g){return g.Api="API",g.Freightower="FREIGHTOWER",g.NotAllowed="NOT_ALLOWED",g}(Re||{}),he=function(g){return g.Carrier="CARRIER",g.CustomerAgency="CUSTOMER_AGENCY",g.CustomerOrganization="CUSTOMER_ORGANIZATION",g.PlaceType="PLACE_TYPE",g}(he||{}),oe=function(g){return g.Abandoned="ABANDONED",g.ArrivedAtDeliverySite="ARRIVED_AT_DELIVERY_SITE",g.ArrivedAtDischargeSite="ARRIVED_AT_DISCHARGE_SITE",g.ArrivedAtLoadingSite="ARRIVED_AT_LOADING_SITE",g.ArrivedAtOceanCarrierDestination="ARRIVED_AT_OCEAN_CARRIER_DESTINATION",g.ArrivedAtOceanCarrierOrigin="ARRIVED_AT_OCEAN_CARRIER_ORIGIN",g.ArrivedAtTranshipmentSite="ARRIVED_AT_TRANSHIPMENT_SITE",g.Cancelled="CANCELLED",g.Completed="COMPLETED",g.Created="CREATED",g.DeliveredAtDischargeSite="DELIVERED_AT_DISCHARGE_SITE",g.DeliveredAtLoadingSite="DELIVERED_AT_LOADING_SITE",g.DeliveredAtOceanCarrierDestination="DELIVERED_AT_OCEAN_CARRIER_DESTINATION",g.DeliveredAtOceanCarrierOrigin="DELIVERED_AT_OCEAN_CARRIER_ORIGIN",g.DeliveredAtTranshipmentSite="DELIVERED_AT_TRANSHIPMENT_SITE",g.DepartedFromDischargeSite="DEPARTED_FROM_DISCHARGE_SITE",g.DepartedFromLoadingSite="DEPARTED_FROM_LOADING_SITE",g.DepartedFromOceanCarrierDestination="DEPARTED_FROM_OCEAN_CARRIER_DESTINATION",g.DepartedFromOceanCarrierOrigin="DEPARTED_FROM_OCEAN_CARRIER_ORIGIN",g.DepartedFromTranshipmentSite="DEPARTED_FROM_TRANSHIPMENT_SITE",g.DischargedAtDeliverySite="DISCHARGED_AT_DELIVERY_SITE",g.DischargedAtDischargeSite="DISCHARGED_AT_DISCHARGE_SITE",g.DischargedAtLoadingSite="DISCHARGED_AT_LOADING_SITE",g.DischargedAtOceanCarrierDestination="DISCHARGED_AT_OCEAN_CARRIER_DESTINATION",g.DischargedAtOceanCarrierOrigin="DISCHARGED_AT_OCEAN_CARRIER_ORIGIN",g.DischargedAtTranshipmentSite="DISCHARGED_AT_TRANSHIPMENT_SITE",g.GateInEmptyAtDeliverySite="GATE_IN_EMPTY_AT_DELIVERY_SITE",g.GateInEmptyAtDischargeSite="GATE_IN_EMPTY_AT_DISCHARGE_SITE",g.GateInEmptyAtOceanCarrierDestination="GATE_IN_EMPTY_AT_OCEAN_CARRIER_DESTINATION",g.GateInFullAtDischargeSite="GATE_IN_FULL_AT_DISCHARGE_SITE",g.GateInFullAtLoadingSite="GATE_IN_FULL_AT_LOADING_SITE",g.GateInFullAtOceanCarrierDestination="GATE_IN_FULL_AT_OCEAN_CARRIER_DESTINATION",g.GateInFullAtOceanCarrierOrigin="GATE_IN_FULL_AT_OCEAN_CARRIER_ORIGIN",g.GateInFullAtTranshipmentSite="GATE_IN_FULL_AT_TRANSHIPMENT_SITE",g.GateOutEmptyAtLoadingSite="GATE_OUT_EMPTY_AT_LOADING_SITE",g.GateOutEmptyAtOceanCarrierOrigin="GATE_OUT_EMPTY_AT_OCEAN_CARRIER_ORIGIN",g.GateOutFullAtDeliverySite="GATE_OUT_FULL_AT_DELIVERY_SITE",g.GateOutFullAtDischargeSite="GATE_OUT_FULL_AT_DISCHARGE_SITE",g.GateOutFullAtLoadingSite="GATE_OUT_FULL_AT_LOADING_SITE",g.GateOutFullAtOceanCarrierDestination="GATE_OUT_FULL_AT_OCEAN_CARRIER_DESTINATION",g.GateOutFullAtOceanCarrierOrigin="GATE_OUT_FULL_AT_OCEAN_CARRIER_ORIGIN",g.GateOutFullAtTranshipmentSite="GATE_OUT_FULL_AT_TRANSHIPMENT_SITE",g.LoadedAtDischargeSite="LOADED_AT_DISCHARGE_SITE",g.LoadedAtLoadingSite="LOADED_AT_LOADING_SITE",g.LoadedAtOceanCarrierDestination="LOADED_AT_OCEAN_CARRIER_DESTINATION",g.LoadedAtOceanCarrierOrigin="LOADED_AT_OCEAN_CARRIER_ORIGIN",g.LoadedAtTranshipmentSite="LOADED_AT_TRANSHIPMENT_SITE",g.NotTrackableContainerNotProvided="NOT_TRACKABLE_CONTAINER_NOT_PROVIDED",g.NotTrackableContainerNotSupportedByCarrier="NOT_TRACKABLE_CONTAINER_NOT_SUPPORTED_BY_OCEAN_CARRIER",g.NotTrackableScacAndContainerNotProvided="NOT_TRACKABLE_SCAC_AND_CONTAINER_NOT_PROVIDED",g.NotTrackableScacNotProvided="NOT_TRACKABLE_SCAC_NOT_PROVIDED",g.NotTrackableScacNotSupported="NOT_TRACKABLE_SCAC_NOT_SUPPORTED",g.TrackingStarted="TRACKING_STARTED",g}(oe||{}),qe=function(g){return g.ContainerArrivedAtLoadingSite="CONTAINER_ARRIVED_AT_LOADING_SITE",g.ContainerArrivedAtOceanCarrierDestinationSite="CONTAINER_ARRIVED_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerEmptyGateInAtDeliverySite="CONTAINER_EMPTY_GATE_IN_AT_DELIVERY_SITE",g.ContainerEmptyGateInAtDischargeSite="CONTAINER_EMPTY_GATE_IN_AT_DISCHARGE_SITE",g.ContainerEmptyGateInAtOceanCarrierDestinationSite="CONTAINER_EMPTY_GATE_IN_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerEmptyGateOutAtLoadingSite="CONTAINER_EMPTY_GATE_OUT_AT_LOADING_SITE",g.ContainerEmptyGateOutAtOceanCarrierOriginSite="CONTAINER_EMPTY_GATE_OUT_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerFullGateInAtDischargeSite="CONTAINER_FULL_GATE_IN_AT_DISCHARGE_SITE",g.ContainerFullGateInAtLoadingSite="CONTAINER_FULL_GATE_IN_AT_LOADING_SITE",g.ContainerFullGateInAtOceanCarrierDestinationSite="CONTAINER_FULL_GATE_IN_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerFullGateInAtOceanCarrierOriginSite="CONTAINER_FULL_GATE_IN_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerFullGateOutAtDeliverySite="CONTAINER_FULL_GATE_OUT_AT_DELIVERY_SITE",g.ContainerFullGateOutAtDischargeSite="CONTAINER_FULL_GATE_OUT_AT_DISCHARGE_SITE",g.ContainerFullGateOutAtLoadingSite="CONTAINER_FULL_GATE_OUT_AT_LOADING_SITE",g.ContainerFullGateOutAtOceanCarrierDestinationSite="CONTAINER_FULL_GATE_OUT_AT_OCEAN_CARRIER_DESTINATION_SITE",g.ContainerFullGateOutAtOceanCarrierOriginSite="CONTAINER_FULL_GATE_OUT_AT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerLeftFromDischargeSite="CONTAINER_LEFT_DISCHARGE_SITE",g.ContainerLeftFromOceanCarrierOriginSite="CONTAINER_LEFT_OCEAN_CARRIER_ORIGIN_SITE",g.ContainerLeftLoadingSite="CONTAINER_LEFT_LOADING_SITE",g.ContainerLoaded="CONTAINER_LOADED",g.ContainerLoadedAtDischargeSite="CONTAINER_LOADED_AT_DISCHARGE_SITE",g.ContainerLoadedOceanCarrierOrigin="CONTAINER_LOADED_OCEAN_CARRIER_ORIGIN",g.ContainerLoadedTranshipment="CONTAINER_LOADED_TRANSHIPMENT",g.ContainerOnDeliverySite="CONTAINER_ON_DELIVERY_SITE",g.ContainerOnDischargeSite="CONTAINER_ON_DISCHARGE_SITE",g.ContainerUnloaded="CONTAINER_UNLOADED",g.ContainerUnloadedLoadingSite="CONTAINER_UNLOADED_LOADING_SITE",g.ContainerUnloadedOceanCarrierDestination="CONTAINER_UNLOADED_OCEAN_CARRIER_DESTINATION",g.ContainerUnloadedTranshipment="CONTAINER_UNLOADED_TRANSHIPMENT",g.OrderResourceEnteredDeliverySite="ORDER_RESOURCE_ENTERED_DELIVERY_SITE",g.OrderResourceEnteredDischargeSite="ORDER_RESOURCE_ENTERED_DISCHARGE_SITE",g.OrderResourceEnteredTranshipmentSite="ORDER_RESOURCE_ENTERED_TRANSHIPMENT_SITE",g.OrderResourceLeftLoadingSite="ORDER_RESOURCE_LEFT_LOADING_SITE",g.OrderResourceLeftTranshipmentSite="ORDER_RESOURCE_LEFT_TRANSHIPMENT_SITE",g.OrderVesselArrivedAtTranshipment="ORDER_VESSEL_ARRIVED_AT_TRANSHIPMENT",g.OrderVesselDepartedFromTranshipment="ORDER_VESSEL_DEPARTED_FROM_TRANSHIPMENT",g}(qe||{});class w{}(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],w.prototype,"date",void 0),(0,t.Cg)([(0,e.deserializeAs)(z),(0,t.Sn)("design:type",Array)],w.prototype,"events",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],w.prototype,"name",void 0),(0,t.Cg)([(0,e.deserializeAs)(l.h0C),(0,t.Sn)("design:type",Date)],w.prototype,"recordedOn",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],w.prototype,"status",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],w.prototype,"unlocode",void 0);let re=class extends _e{getEstimatedTimeList(){const K=this.shippeoDate?.date?.toString(),ae=this.oceanCarrierDate?.date?.toString();return this.status===l.jYY.Estimated?[(0,l.mL7)({date:K,delay:K&&this.delay,provider:l.QDH.Shippeo,recordedOn:this.shippeoDate?.recordedOn?.toString(),type:Ue(this.name)}),(0,l.mL7)({date:this.oceanCarrierDate?.date?.toString(),delay:!K&&ae?this.delay:void 0,provider:l.QDH.Carrier,recordedOn:this.oceanCarrierDate?.recordedOn?.toString(),type:Ue(this.name)})].sort(l.y0L.sort):[]}};(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],re.prototype,"delay",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],re.prototype,"modeType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],re.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],re.prototype,"unlocode",void 0),re=(0,t.Cg)([(0,e.inheritSerialization)(_e)],re);var le=function(g){return g.Done="DONE",g.Ongoing="ONGOING",g.Pending="PENDING",g}(le||{});class y{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"address",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"geofence",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"placeType",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"unlocode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],y.prototype,"version",void 0);class Le{constructor(){this.milestones=[]}get isDone(){return this.completionState===le.Done}get isPending(){return this.completionState===le.Pending}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Le.prototype,"actionPerformed",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Le.prototype,"completionState",void 0),(0,t.Cg)([(0,e.deserializeAs)(R),(0,t.Sn)("design:type",R)],Le.prototype,"eta",void 0),(0,t.Cg)([(0,e.deserializeAs)(R),(0,t.Sn)("design:type",R)],Le.prototype,"etd",void 0),(0,t.Cg)([(0,e.deserializeAs)(y),(0,t.Sn)("design:type",y)],Le.prototype,"place",void 0),(0,t.Cg)([(0,e.deserializeAs)(w),(0,t.Sn)("design:type",Array)],Le.prototype,"steps",void 0),(0,t.Cg)([(0,e.deserializeAs)(re),(0,t.Sn)("design:type",Array)],Le.prototype,"milestones",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Le.prototype,"type",void 0)},57666:(fe,J,r)=>{"use strict";r.d(J,{hB:()=>t,AU:()=>M,hM:()=>C,Ek:()=>P,SZ:()=>h,ED:()=>I,qb:()=>Z,S4:()=>ue});var t=function(d){return d.OrderExecutionActual="ORDER_EXECUTION_ACTUAL",d.OrderHandlingUnitEvents="ORDER_HANDLING_UNIT_EVENTS",d.OrderSAEActual="ORDER_SAE_ACTUAL",d.OrderTheoretical="ORDER_THEORETICAL",d.OrderWhyEvent="ORDER_WHY_EVENT",d.SummaryEvent="SUMMARY_EVENT",d.TrackedContainerEvent="TRACKED_CONTAINER_EVENT",d.Uncategorized="UNCATEGORIZED",d}(t||{}),e=r(31635),o=r(47817),s=r(36287);class i{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],i.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],i.prototype,"hashid",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],i.prototype,"name",void 0);class p{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],p.prototype,"characteristics",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],p.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],p.prototype,"reference",void 0);class f{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],f.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],f.prototype,"hashid",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],f.prototype,"name",void 0);class N{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],N.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],N.prototype,"hashid",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],N.prototype,"reference",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],N.prototype,"referenceEDI",void 0),(0,e.Cg)([(0,o.deserializeAs)(i),(0,e.Sn)("design:type",i)],N.prototype,"agency",void 0),(0,e.Cg)([(0,o.deserializeAs)(f),(0,e.Sn)("design:type",f)],N.prototype,"organization",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],N.prototype,"createdAt",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],N.prototype,"createdBy",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],N.prototype,"transportMode",void 0),(0,e.Cg)([(0,o.deserializeAs)(p),(0,e.Sn)("design:type",p)],N.prototype,"container",void 0);const A=(d={})=>(0,o.Deserialize)(d,N),I=d=>d.map(A);class b{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",s.pxX)],b.prototype,"agency",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",s.pxX)],b.prototype,"organization",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],b.prototype,"role",void 0);class l{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],l.prototype,"agencyId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],l.prototype,"hashId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],l.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],l.prototype,"username",void 0);class R{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],R.prototype,"clientReference",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],R.prototype,"consignmentReference",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],R.prototype,"currentStatus",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],R.prototype,"createdAt",void 0),(0,e.Cg)([(0,o.deserializeAs)(l),(0,e.Sn)("design:type",l)],R.prototype,"createdBy",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],R.prototype,"createdOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],R.prototype,"oceanContext",void 0);const v={Deserialize:d=>Object.fromEntries(Object.entries(d).map(([Re,he])=>[Re,he.map(s.L0f)]))};class E{constructor(){this.actors=[]}}(0,e.Cg)([(0,o.deserializeAs)(b),(0,e.Sn)("design:type",Array)],E.prototype,"actors",void 0),(0,e.Cg)([(0,o.deserializeAs)(l),(0,e.Sn)("design:type",l)],E.prototype,"connectAsUser",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],E.prototype,"currentStatus",void 0),(0,e.Cg)([(0,o.deserializeAs)(R),(0,e.Sn)("design:type",R)],E.prototype,"order",void 0),(0,e.Cg)([(0,o.deserializeAs)(v),(0,e.Sn)("design:type",Object)],E.prototype,"tags",void 0);const h=(d={})=>(0,o.Deserialize)(d,E);var C=function(d){return d.APPOINTMENT_LOAD_TAKEN="APPOINTMENT_LOAD_TAKEN",d.APPOINTMENT_UNLOAD_TAKEN="APPOINTMENT_UNLOAD_TAKEN",d.ARR_LOAD="ARR_LOAD",d.ARR_UNLOAD="ARR_UNLOAD",d.ARRIVED_AT_TERMINAL="ARRIVED_AT_TERMINAL",d.LEFT_TERMINAL="LEFT_TERMINAL",d.CALCULATED_DELAY_DRIVING_TOWARD_SITE_LOAD="CALCULATED_DELAY_DRIVING_TOWARD_SITE_LOAD",d.CALCULATED_DELAY_DRIVING_TOWARD_SITE_UNLOAD="CALCULATED_DELAY_DRIVING_TOWARD_SITE_UNLOAD",d.CANCEL_ORDER="CANCEL_ORDER",d.CHECK_ON_DELIVERY_SITE="CHECK_ON_DELIVERY_SITE",d.CHECK_ON_LOADING_SITE="CHECK_ON_LOADING_SITE",d.CHECK_TOWARDS_DELIVERY_SITE="CHECK_TOWARDS_DELIVERY_SITE",d.CHECK_TOWARDS_LOADING_SITE="CHECK_TOWARDS_LOADING_SITE",d.CLIENT_MODIFIED="CLIENT_MODIFIED",d.COLLABORATOR_ADDED="COLLABORATOR_ADDED",d.CON_LOAD="CON_LOAD",d.CON_UNLOAD="CON_UNLOAD",d.DELAY_DRIVING_TOWARD_SITE_LOAD="DELAY_DRIVING_TOWARD_SITE_LOAD",d.DELAY_DRIVING_TOWARD_SITE_UNLOAD="DELAY_DRIVING_TOWARD_SITE_UNLOAD",d.DELIVERY_REFUSED_BY_SHIPPER_VARIOUS_REASON="DELIVERY_REFUSED_BY_SHIPPER_VARIOUS_REASON",d.DELIVERY_SITE_NEVER_USED_BEFORE="DELIVERY_SITE_NEVER_USED_BEFORE",d.DRIVER_CONFIRMED="DRIVER_CONFIRMED",d.DRIVER_LEFT_UNLOAD="DRIVER_LEFT_UNLOAD",d.DRIVER_UNCONFIRMED="DRIVER_UNCONFIRMED",d.DRIVING_TO_LOAD="DRIVING_TO_LOAD",d.DRIVING_TO_UNLOAD="DRIVING_TO_UNLOAD",d.ETA_DELIVERY_EARLY="ETA_DELIVERY_EARLY",d.ETA_DELIVERY_LATE="ETA_DELIVERY_LATE",d.ETA_DELIVERY_NONE="ETA_DELIVERY_NONE",d.ETA_LOAD_EARLY="ETA_LOAD_EARLY",d.ETA_LOAD_LATE="ETA_LOAD_LATE",d.ETA_LOAD_NONE="ETA_LOAD_NONE",d.GOODS_DELIVERED_NOT_CONFORM="GOODS_DELIVERED_NOT_CONFORM",d.GOODS_DELIVERED_NOT_CREATED_AUTOMATICALLY="GOODS_DELIVERED_NOT_CREATED_AUTOMATICALLY",d.GOODS_LOADED_NOT_CONFORM="GOODS_LOADED_NOT_CONFORM",d.GOODS_LOADED_NOT_CREATED_AUTOMATICALLY="GOODS_LOADED_NOT_CREATED_AUTOMATICALLY",d.HANDLING_UNIT_DELIVERED_CONFORM="HANDLING_UNIT_DELIVERED_CONFORM",d.HANDLING_UNIT_DELIVERED_NOT_CONFORM="HANDLING_UNIT_DELIVERED_NOT_CONFORM",d.HANDLING_UNIT_DELIVERED_NOT_CONFORM_DAMAGE="HANDLING_UNIT_DELIVERED_NOT_CONFORM_DAMAGE",d.HANDLING_UNIT_DELIVERY_REFUSED_DAMAGE="HANDLING_UNIT_DELIVERY_REFUSED_DAMAGE",d.HANDLING_UNIT_DELIVERY_REFUSED_LATE="HANDLING_UNIT_DELIVERY_REFUSED_LATE",d.HANDLING_UNIT_DELIVERY_REFUSED_NOT_JUSTIFIED="HANDLING_UNIT_DELIVERY_REFUSED_NOT_JUSTIFIED",d.HANDLING_UNIT_DELIVERY_REFUSED_VARIOUS_REASON="HANDLING_UNIT_DELIVERY_REFUSED_VARIOUS_REASON",d.HANDLING_UNIT_LOADED_CONFORM="HANDLING_UNIT_LOADED_CONFORM",d.HANDLING_UNIT_LOADED_NOT_CONFORM="HANDLING_UNIT_LOADED_NOT_CONFORM",d.HANDLING_UNIT_LOADING_REFUSED_NOT_JUSTIFIED="HANDLING_UNIT_LOADING_REFUSED_NOT_JUSTIFIED",d.HANDLING_UNIT_LOADING_REFUSED_VARIOUS_REASON="HANDLING_UNIT_LOADING_REFUSED_VARIOUS_REASON",d.HANDLING_UNIT_MISDELIVERED="HANDLING_UNIT_MISDELIVERED",d.HANDLING_UNIT_NOT_DELIVERED_ABSENT="HANDLING_UNIT_NOT_DELIVERED_ABSENT",d.HANDLING_UNIT_NOT_DELIVERED_ADDRESS_OBSOLETE="HANDLING_UNIT_NOT_DELIVERED_ADDRESS_OBSOLETE",d.HANDLING_UNIT_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY="HANDLING_UNIT_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY",d.HANDLING_UNIT_NOT_DELIVERED_CLOSING_HOURS="HANDLING_UNIT_NOT_DELIVERED_CLOSING_HOURS",d.HANDLING_UNIT_NOT_DELIVERED_ENTIRELY_MISSING="HANDLING_UNIT_NOT_DELIVERED_ENTIRELY_MISSING",d.HANDLING_UNIT_NOT_DELIVERED_NEW_ADDRESS="HANDLING_UNIT_NOT_DELIVERED_NEW_ADDRESS",d.HANDLING_UNIT_NOT_DELIVERED_NOTICE="HANDLING_UNIT_NOT_DELIVERED_NOTICE",d.HANDLING_UNIT_NOT_LOADED_ENTIRELY_MISSING="HANDLING_UNIT_NOT_LOADED_ENTIRELY_MISSING",d.LEFT_LOADING_SITE="LEFT_LOADING_SITE",d.LOADING_POSTPONED="LOADING_POSTPONED",d.LOADING_REFUSED_BY_SHIPPER_VARIOUS_REASON="LOADING_REFUSED_BY_SHIPPER_VARIOUS_REASON",d.LOADING_SITE_NEVER_USED_BEFORE="LOADING_SITE_NEVER_USED_BEFORE",d.LOADING_WAITING_TO_BE_CONFIRMED="LOADING_WAITING_TO_BE_CONFIRMED",d.NEW_INTERNAL_COMMENT="NEW_INTERNAL_COMMENT",d.NEW_SHARED_COMMENT="NEW_SHARED_COMMENT",d.NOT_DRIVING_TOWARD_LOAD="NOT_DRIVING_TOWARD_LOAD",d.NOT_DRIVING_TOWARD_LOAD_MOBILE="NOT_DRIVING_TOWARD_LOAD_MOBILE",d.NO_DRIVING_TOWARD_UNLOAD="NO_DRIVING_TOWARD_UNLOAD",d.NO_GPS_DRIVING_TO_LOAD="NO_GPS_DRIVING_TO_LOAD",d.NO_GPS_DRIVING_TO_UNLOAD="NO_GPS_DRIVING_TO_UNLOAD",d.NO_POSITION_ON_SITE_LOAD="NO_POSITION_ON_SITE_LOAD",d.NO_POSITION_ON_SITE_UNLOAD="NO_POSITION_ON_SITE_UNLOAD",d.ON_DELIVERY_SITE_CREATED_MANUALLY="ON_DELIVERY_SITE_CREATED_MANUALLY",d.ON_LOADING_SITE_CREATED_MANUALLY="ON_LOADING_SITE_CREATED_MANUALLY",d.ORDER_ACTIVITY_CLOSE_DEFINITIVELY="ORDER_ACTIVITY_CLOSE_DEFINITIVELY",d.ORDER_ACTIVITY_CREATED="ORDER_ACTIVITY_CREATED",d.ORDER_ADDED_TO_A_TOUR="ORDER_ADDED_TO_A_TOUR",d.ORDER_CMR_UPLOADED="ORDER_CMR_UPLOADED",d.ORDER_COMMENT_DELETED="ORDER_COMMENT_DELETED",d.ORDER_CONFIRMED="ORDER_CONFIRMED",d.ORDER_CREATED="ORDER_CREATED",d.ORDER_DELETED="ORDER_DELETED",d.ORDER_DELIVERED_NOT_CONFORM_DAMAGE="ORDER_DELIVERED_NOT_CONFORM_DAMAGE",d.ORDER_DELIVERED_NOT_CONFORM_PARTIALLY_MISSING="ORDER_DELIVERED_NOT_CONFORM_PARTIALLY_MISSING",d.ORDER_DELIVERY_ACTIVITY_END="ORDER_DELIVERY_ACTIVITY_END",d.ORDER_DELIVERY_ACTIVITY_START="ORDER_DELIVERY_ACTIVITY_START",d.ORDER_DELIVERY_REFUSED_DAMAGE="ORDER_DELIVERY_REFUSED_DAMAGE",d.ORDER_DELIVERY_REFUSED_LATE="ORDER_DELIVERY_REFUSED_LATE",d.ORDER_DELIVERY_REFUSED_PARTIALLY_MISSING="ORDER_DELIVERY_REFUSED_PARTIALLY_MISSING",d.ORDER_DELIVERY_STATUS_COMPLETED="ORDER_DELIVERY_STATUS_COMPLETED",d.ORDER_GOODS_DELIVERED_AND_LEFT_DELIVERY_SITE_NOT_PROVIDED="ORDER_GOODS_DELIVERED_AND_LEFT_DELIVERY_SITE_NOT_PROVIDED",d.ORDER_GOODS_DELIVERED_AND_LEFT_DELIVERY_SITE_NOT_PROVIDED_WORKFLOW="ORDER_GOODS_DELIVERED_AND_LEFT_DELIVERY_SITE_NOT_PROVIDED_WORKFLOW",d.ORDER_GOODS_LOADED_AND_LEFT_LOADING_SITE_NOT_PROVIDED="ORDER_GOODS_LOADED_AND_LEFT_LOADING_SITE_NOT_PROVIDED",d.ORDER_GOODS_LOADED_AND_LEFT_LOADING_SITE_NOT_PROVIDED_WORKFLOW="ORDER_GOODS_LOADED_AND_LEFT_LOADING_SITE_NOT_PROVIDED_WORKFLOW",d.ORDER_IS_NOT_PAIR_ALERT="ORDER_IS_NOT_PAIR_ALERT",d.ORDER_IS_PAIR="ORDER_IS_PAIR",d.ORDER_IS_REFUSED="ORDER_IS_REFUSED",d.ORDER_IS_UNCHARTERED="ORDER_IS_UNCHARTERED",d.ORDER_IS_UNPAIR="ORDER_IS_UNPAIR",d.ORDER_LEFT_DELIVERY_SITE_NOT_PROVIDED="ORDER_LEFT_DELIVERY_SITE_NOT_PROVIDED",d.ORDER_LEFT_LOADING_SITE_NOT_PROVIDED="ORDER_LEFT_LOADING_SITE_NOT_PROVIDED",d.ORDER_LOADED_NOT_CONFORM_PARTIALLY_MISSING="ORDER_LOADED_NOT_CONFORM_PARTIALLY_MISSING",d.ORDER_LOADING_ACTIVITY_END="ORDER_LOADING_ACTIVITY_END",d.ORDER_LOADING_ACTIVITY_START="ORDER_LOADING_ACTIVITY_START",d.ORDER_MODIFIED="ORDER_MODIFIED",d.ORDER_NOT_CHARTERED_BEFORE_DELIVERY_SLOT="ORDER_NOT_CHARTERED_BEFORE_DELIVERY_SLOT",d.ORDER_NOT_CHARTERED_BEFORE_LOADING_SLOT="ORDER_NOT_CHARTERED_BEFORE_LOADING_SLOT",d.ORDER_NOT_CONFIRMED_BEFORE_DELIVERY_SLOT="ORDER_NOT_CONFIRMED_BEFORE_DELIVERY_SLOT",d.ORDER_NOT_CONFIRMED_BEFORE_LOADING_SLOT="ORDER_NOT_CONFIRMED_BEFORE_LOADING_SLOT",d.ORDER_NOT_DELIVERED_ABSENT="ORDER_NOT_DELIVERED_ABSENT",d.ORDER_NOT_DELIVERED_ADDRESS_OBSOLETE="ORDER_NOT_DELIVERED_ADDRESS_OBSOLETE",d.ORDER_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY="ORDER_NOT_DELIVERED_CLOSED_HOLIDAYS_INVENTORY",d.ORDER_NOT_DELIVERED_CLOSING_HOURS="ORDER_NOT_DELIVERED_CLOSING_HOURS",d.ORDER_NOT_DELIVERED_ENTIRELY_MISSING="ORDER_NOT_DELIVERED_ENTIRELY_MISSING",d.ORDER_NOT_DELIVERED_MISSING_RETURNABLE="ORDER_NOT_DELIVERED_MISSING_RETURNABLE",d.ORDER_NOT_DELIVERED_NEW_ADDRESS="ORDER_NOT_DELIVERED_NEW_ADDRESS",d.ORDER_NOT_DELIVERED_NOTICE="ORDER_NOT_DELIVERED_NOTICE",d.ORDER_NOT_DELIVERED_NO_ACCESS_TO_SITE="ORDER_NOT_DELIVERED_NO_ACCESS_TO_SITE",d.ORDER_NOT_DELIVERED_RECEIVER_CANT_PAY="ORDER_NOT_DELIVERED_RECEIVER_CANT_PAY",d.ORDER_NOT_DELIVERED_RESOURCE_INCIDENT="ORDER_NOT_DELIVERED_RESOURCE_INCIDENT",d.ORDER_NOT_DELIVERED_WRONG_GOODS="ORDER_NOT_DELIVERED_WRONG_GOODS",d.ORDER_NOT_LOADED_ENTIRELY_MISSING="ORDER_NOT_LOADED_ENTIRELY_MISSING",d.ORDER_NOT_LOADED_PARTIALLY_MISSING="ORDER_NOT_LOADED_PARTIALLY_MISSING",d.ORDER_NOT_PAIRED_BEFORE_DELIVERY_SLOT="ORDER_NOT_PAIRED_BEFORE_DELIVERY_SLOT",d.ORDER_NOT_PAIRED_BEFORE_LOADING_SLOT="ORDER_NOT_PAIRED_BEFORE_LOADING_SLOT",d.ORDER_ON_DELIVERY_SITE_NOT_PROVIDED="ORDER_ON_DELIVERY_SITE_NOT_PROVIDED",d.ORDER_ON_LOADING_SITE_NOT_PROVIDED="ORDER_ON_LOADING_SITE_NOT_PROVIDED",d.ORDER_PACKING_RETURNED="ORDER_PACKING_RETURNED",d.ORDER_PENDING="ORDER_PENDING",d.ORDER_REMOVED_FROM_TOUR="ORDER_REMOVED_FROM_TOUR",d.ORDER_REQUEST_FOR_DELETION="ORDER_REQUEST_FOR_DELETION",d.ORDER_SEQUENCED_IN_TOUR="ORDER_SEQUENCED_IN_TOUR",d.ORDER_STATE_MODIFIED="ORDER_STATE_MODIFIED",d.ORDER_THEORETICAL_EVENT_DELIVERY_SLOT_END="ORDER_THEORETICAL_EVENT_DELIVERY_SLOT_END",d.ORDER_THEORETICAL_EVENT_DELIVERY_SLOT_START="ORDER_THEORETICAL_EVENT_DELIVERY_SLOT_START",d.ORDER_THEORETICAL_EVENT_LOADING_SLOT_END="ORDER_THEORETICAL_EVENT_LOADING_SLOT_END",d.ORDER_THEORETICAL_EVENT_LOADING_SLOT_START="ORDER_THEORETICAL_EVENT_LOADING_SLOT_START",d.ORDER_THEORETICAL_EVENT_ORIGINAL_DELIVERY_SLOT_END="ORDER_THEORETICAL_EVENT_ORIGINAL_DELIVERY_SLOT_END",d.ORDER_THEORETICAL_EVENT_ORIGINAL_DELIVERY_SLOT_START="ORDER_THEORETICAL_EVENT_ORIGINAL_DELIVERY_SLOT_START",d.ORDER_THEORETICAL_EVENT_ORIGINAL_LOADING_SLOT_END="ORDER_THEORETICAL_EVENT_ORIGINAL_LOADING_SLOT_END",d.ORDER_THEORETICAL_EVENT_ORIGINAL_LOADING_SLOT_START="ORDER_THEORETICAL_EVENT_ORIGINAL_LOADING_SLOT_START",d.ORDER_THEORETICAL_EVENT_SKIP_DELIVERY_PHASE="ORDER_THEORETICAL_EVENT_SKIP_DELIVERY_PHASE",d.ORDER_THEORETICAL_EVENT_SKIP_LOADING_PHASE="ORDER_THEORETICAL_EVENT_SKIP_LOADING_PHASE",d.ORDER_THEORETICAL_EVENT_START_ON_DELIVERY_SITE="ORDER_THEORETICAL_EVENT_START_ON_DELIVERY_SITE",d.ORDER_THEORETICAL_EVENT_START_ON_LOADING_SITE="ORDER_THEORETICAL_EVENT_START_ON_LOADING_SITE",d.ORDER_THEORETICAL_EVENT_START_TOWARDS_DELIVERY_SITE="ORDER_THEORETICAL_EVENT_START_TOWARDS_DELIVERY_SITE",d.ORDER_THEORETICAL_EVENT_START_TOWARDS_LOADING_SITE="ORDER_THEORETICAL_EVENT_START_TOWARDS_LOADING_SITE",d.ORDER_TOWARDS_DELIVERY_SITE_NOT_PROVIDED="ORDER_TOWARDS_DELIVERY_SITE_NOT_PROVIDED",d.ORDER_TOWARDS_LOADING_SITE_NOT_PROVIDED="ORDER_TOWARDS_LOADING_SITE_NOT_PROVIDED",d.ORDER_TRACKING_ENDED="ORDER_TRACKING_ENDED",d.ORDER_UNFINISHED="ORDER_UNFINISHED",d.ORDER_VALIDATED_TIME_DELIVERY="ORDER_VALIDATED_TIME_DELIVERY",d.POD_ADDED="POD_ADDED",d.PUSH_NO_DELIVERY_RIGHT_AFTER_ON_SITE="PUSH_NO_DELIVERY_RIGHT_AFTER_ON_SITE",d.PUSH_NO_LOADING_RIGHT_AFTER_ON_SITE="PUSH_NO_LOADING_RIGHT_AFTER_ON_SITE",d.REFUSED_LOAD="REFUSED_LOAD",d.REFUSED_UNLOAD="REFUSED_UNLOAD",d.RESOURCE_NEVER_PAIRED_BEFORE="RESOURCE_NEVER_PAIRED_BEFORE",d.RESOURCE_NOT_GEOLOCATED_RECENTLY="RESOURCE_NOT_GEOLOCATED_RECENTLY",d.SKIP_DELIVERY_PHASE="SKIP_DELIVERY_PHASE",d.SKIP_LOADING_PHASE="SKIP_LOADING_PHASE",d.STOP_CHECK_TOWARDS_DELIVERY_SITE="STOP_CHECK_TOWARDS_DELIVERY_SITE",d.STOP_CHECK_TOWARDS_LOADING_SITE="STOP_CHECK_TOWARDS_LOADING_SITE",d.TAG_MODIFIED="TAG_MODIFIED",d.TOUR_MODIFIED="TOUR_MODIFIED",d.TOWARDS_DELIVERY_SITE_TO_BE_DONE_LATER="TOWARDS_DELIVERY_SITE_TO_BE_DONE_LATER",d.TOWARDS_LOADING_SITE_ABANDONED="TOWARDS_LOADING_SITE_ABANDONED",d.UNLOADING_POSTPONED="UNLOADING_POSTPONED",d.UNLOADING_WAITING_TO_BE_CONFIRMED="UNLOADING_WAITING_TO_BE_CONFIRMED",d}(C||{}),M=function(d){return d.AnalyticsTrackingUpdated="ocean.solution.analytics.tracked_container_updated",d.ContainerCreated="ocean.solution.tracked_container.milestone_created",d.ContainerLinkedOrderCancelled="ocean.solution.tracked_container.linked_order_cancelled",d.ContainerLinkedToAnOrder="ocean.solution.tracked_container.linked_to_an_order",d.ContainerLinkedToBookingRef="ocean.solution.tracked_container.linked_to_booking_reference",d.ContainerLinkedToMbl="ocean.solution.tracked_container.linked_to_bill_of_lading",d.ContainerTrackingActivated="ocean.solution.tracked_container.activated",d.ContainerTrackingEnded="ocean.solution.tracked_container.ended",d.ContainerUnlinkedFromOrder="ocean.solution.tracked_container.unlinked_from_order",d.ContainerUpdated="ocean.solution.tracked_container.milestone_updated",d.CurrentStopUpdated="ocean.solution.tracked_container.current_stop_updated",d.CurrentVesselUpdated="ocean.solution.tracked_container.current_vessel_updated",d.ExtractionValidated="ocean.solution.tracked_container.extraction_validated",d.MilestoneInvalidated="ocean.solution.event_out.milestone_invalidated",d.MilestoneUpdated="ocean.solution.event_out.milestone_updated",d.OrderCreationRequested="ocean.solution.event_out.order_creation_requested",d.OrderReferenceUpdated="ocean.solution.tracked_container.linked_order_reference_updated",d.ScacUpdated="ocean.solution.tracked_container.linked_order_referenced_scac_updated",d.ShipperTransportPlanCreated="ocean.solution.tracked_container.shipper_transport_plan.created",d.StatusUpdated="ocean.solution.tracked_container.status_updated",d.StopDatesUpdated="ocean.solution.tracked_container.stop_dates_updated",d.SummaryClosed="ocean.solution.summary_event.tracked_container_closed",d.SummaryCreationRequested="ocean.solution.summary_event.order_creation_requested",d.SummaryInvalidated="ocean.solution.summary_event.milestone_invalidated",d.SummaryTrackingActivated="ocean.solution.summary_event.tracking_activated",d.SummaryTrackingEnded="ocean.solution.summary_event.tracking_ended",d.SummaryTrackingUpdated="ocean.solution.summary_event.tracking_updated",d.SummaryUpdated="ocean.solution.summary_event.milestone_updated",d.TrackingActivated="ocean.solution.event_out.tracking_activated",d.TrackingClosed="ocean.solution.tracked_container.closed",d.TrackingCreated="ocean.solution.tracked_container.created",d.TrackingEnded="ocean.solution.event_out.tracking_ended",d.TrackingUpdated="ocean.solution.event_out.tracking_updated",d.TransportPlanCreated="ocean.solution.tracked_container.transport_plan.created",d.TransportPlanUpdated="ocean.solution.tracked_container.transport_plan.updated",d.VesselAssociatedToLeg="ocean.solution.tracked_container.vessel_associated_to_leg",d}(M||{});r(98323);class V{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],V.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],V.prototype,"reference",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],V.prototype,"type",void 0);class j{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],j.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],j.prototype,"reference",void 0);class Y{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],Y.prototype,"scacList",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Y.prototype,"website",void 0);class a{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],a.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],a.prototype,"imo",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],a.prototype,"mmsi",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],a.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],a.prototype,"shipType",void 0);var P=function(d){return d.Discharge="DISCHARGE",d.Loading="LOADING",d.OceanCarrierDestination="OCEAN_CARRIER_DESTINATION",d.OceanCarrierOrigin="OCEAN_CARRIER_ORIGIN",d.Transhipment="TRANSHIPMENT",d.Unqualified="UNQUALIFIED",d}(P||{});class u{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"category",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"dataSourceType",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"event",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"milestone",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"milestoneDate",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"placeUnlocode",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"recordedOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],u.prototype,"source",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"status",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],u.prototype,"stopType",void 0),(0,e.Cg)([(0,o.deserializeAs)(a),(0,e.Sn)("design:type",a)],u.prototype,"vessel",void 0);class z{}(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",String)],z.prototype,"carrierId",void 0),(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",String)],z.prototype,"carrierName",void 0),(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",String)],z.prototype,"reference",void 0);class H{}(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",String)],H.prototype,"externalId",void 0),(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",String)],H.prototype,"id",void 0),(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",Number)],H.prototype,"legacyId",void 0),(0,e.Cg)([(0,o.autoserializeAs)(z),(0,e.Sn)("design:type",Array)],H.prototype,"links",void 0),(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",String)],H.prototype,"name",void 0),(0,e.Cg)([o.autoserialize,(0,e.Sn)("design:type",String)],H.prototype,"organizationId",void 0);class x{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],x.prototype,"dataSource",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],x.prototype,"date",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],x.prototype,"recordedOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],x.prototype,"status",void 0);class Q{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Q.prototype,"country",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],Q.prototype,"firstOceanCarrierEstimate",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Q.prototype,"hashId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Q.prototype,"historyPlaceHashId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],Q.prototype,"historyPlaceId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],Q.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Q.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],Q.prototype,"plannedDate",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Q.prototype,"type",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Q.prototype,"unlocode",void 0);class O{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],O.prototype,"occurredOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Date)],O.prototype,"recordedOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],O.prototype,"stops",void 0);class ${}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Q)],$.prototype,"destination",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Q)],$.prototype,"origin",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],$.prototype,"recordedOn",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Boolean)],$.prototype,"valid",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",a)],$.prototype,"vessel",void 0);class X{constructor(){this.billOfLadingList=[],this.bookingReferenceList=[],this.extractionsList=[],this.milestoneHistoryList=[],this.settings=[],this.transportPlanHistory=[],this.vesselAssociationList=[]}}(0,e.Cg)([(0,o.deserializeAs)(V),(0,e.Sn)("design:type",Array)],X.prototype,"billOfLadingList",void 0),(0,e.Cg)([(0,o.deserializeAs)(j),(0,e.Sn)("design:type",Array)],X.prototype,"bookingReferenceList",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],X.prototype,"cargo",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],X.prototype,"clientScac",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],X.prototype,"closedAt",void 0),(0,e.Cg)([(0,o.deserializeAs)(p),(0,e.Sn)("design:type",p)],X.prototype,"container",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],X.prototype,"contextualizedAt",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],X.prototype,"dataSource",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],X.prototype,"extractionsList",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],X.prototype,"latestVersion",void 0),(0,e.Cg)([(0,o.deserializeAs)(u),(0,e.Sn)("design:type",Array)],X.prototype,"milestoneHistoryList",void 0),(0,e.Cg)([(0,o.deserializeAs)(Y),(0,e.Sn)("design:type",Y)],X.prototype,"oceanCarrier",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],X.prototype,"requestedVersion",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],X.prototype,"scacAtCreation",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],X.prototype,"settings",void 0),(0,e.Cg)([(0,o.deserializeAs)(H),(0,e.Sn)("design:type",H)],X.prototype,"shipper",void 0),(0,e.Cg)([(0,o.deserializeAs)(x),(0,e.Sn)("design:type",x)],X.prototype,"status",void 0),(0,e.Cg)([(0,o.deserializeAs)(O),(0,e.Sn)("design:type",O)],X.prototype,"transportPlan",void 0),(0,e.Cg)([(0,o.deserializeAs)(O),(0,e.Sn)("design:type",Array)],X.prototype,"transportPlanHistory",void 0),(0,e.Cg)([(0,o.deserializeAs)($),(0,e.Sn)("design:type",Array)],X.prototype,"vesselAssociationList",void 0);const Z=(d={})=>(0,o.Deserialize)(d,X);class He{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],He.prototype,"email",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],He.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],He.prototype,"phone",void 0);class L{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],L.prototype,"reference",void 0);class Ce{getPairingView(){if(this.view){const Re=Object.keys(this.view);return Re.length>0?this.view[Re[0]]:void 0}}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ce.prototype,"end",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ce.prototype,"meanHashId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],Ce.prototype,"meanId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ce.prototype,"start",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Ce.prototype,"view",void 0);class ce{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",s.pxX)],ce.prototype,"agency",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ce.prototype,"createdAt",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ce.prototype,"dateEvent",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ce.prototype,"inputDate",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ce.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ce.prototype,"platformType",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",s.pxX)],ce.prototype,"user",void 0);class me{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],me.prototype,"consignmentReference",void 0);class _e{}(0,e.Cg)([(0,o.deserializeAs)(ce),(0,e.Sn)("design:type",ce)],_e.prototype,"executionStatus",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],_e.prototype,"hashid",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],_e.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],_e.prototype,"reference",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],_e.prototype,"tourId",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],_e.prototype,"tourHashid",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],_e.prototype,"tourReference",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],_e.prototype,"transportMode",void 0),(0,e.Cg)([(0,o.deserializeAs)(me),(0,e.Sn)("design:type",me)],_e.prototype,"orderAttributes",void 0),(0,e.Cg)([(0,o.deserializeAs)(L),(0,e.Sn)("design:type",L)],_e.prototype,"client",void 0);class Me{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Me.prototype,"id",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Me.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],Me.prototype,"position",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Me.prototype,"email",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Object)],Me.prototype,"phone",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Me.prototype,"siteName",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Me.prototype,"siteType",void 0);class Ge{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ge.prototype,"end",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Boolean)],Ge.prototype,"isTimeSlot",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],Ge.prototype,"start",void 0);class Ue{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],Ue.prototype,"lat",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Number)],Ue.prototype,"lng",void 0);class ze{constructor(){this.contacts=[]}}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"country",void 0),(0,e.Cg)([(0,o.deserializeAs)(Me),(0,e.Sn)("design:type",Array)],ze.prototype,"contacts",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",s.pxX)],ze.prototype,"historyPlaceIdentifier",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"name",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",s.pxX)],ze.prototype,"placeIdentifier",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Ue)],ze.prototype,"position",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"postalCode",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Ge)],ze.prototype,"scheduledAtTimeSlot",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"street",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Ge)],ze.prototype,"theoreticalTimeSlot",void 0),(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",String)],ze.prototype,"town",void 0);class k{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",s.tI9)],k.prototype,"created",void 0);class We{}(0,e.Cg)([o.deserialize,(0,e.Sn)("design:type",Array)],We.prototype,"global",void 0);const ve={Deserialize:d=>Object.fromEntries(Object.entries(d).map(([Re,he])=>[Re,he.map(s.L0f)]))};class S{}(0,e.Cg)([(0,o.deserializeAs)(We),(0,e.Sn)("design:type",We)],S.prototype,"actors",void 0),(0,e.Cg)([(0,o.deserializeAs)(ze),(0,e.Sn)("design:type",ze)],S.prototype,"arrival",void 0),(0,e.Cg)([(0,o.deserializeAs)(ze),(0,e.Sn)("design:type",ze)],S.prototype,"departure",void 0),(0,e.Cg)([(0,o.deserializeAs)(k),(0,e.Sn)("design:type",k)],S.prototype,"events",void 0),(0,e.Cg)([(0,o.deserializeAs)(_e),(0,e.Sn)("design:type",_e)],S.prototype,"order",void 0),(0,e.Cg)([(0,o.deserializeAs)(L),(0,e.Sn)("design:type",L)],S.prototype,"client",void 0),(0,e.Cg)([(0,o.deserializeAs)(Ce),(0,e.Sn)("design:type",Array)],S.prototype,"pairHistory",void 0),(0,e.Cg)([(0,o.deserializeAs)(ve),(0,e.Sn)("design:type",Object)],S.prototype,"tags",void 0),(0,e.Cg)([(0,o.deserializeAs)(He),(0,e.Sn)("design:type",Array)],S.prototype,"orderContacts",void 0);const ue=(d={})=>(0,o.Deserialize)(d,S)},94168:(fe,J,r)=>{"use strict";r.d(J,{Tx:()=>v,if:()=>x,ss:()=>Re,Wt:()=>He,pt:()=>I,_S:()=>i,Vp:()=>N,Hz:()=>A,xk:()=>R,MY:()=>p,N3:()=>f,j8:()=>s,aA:()=>b,fb:()=>l,dp:()=>V,cr:()=>Y,IV:()=>Q,Pb:()=>Ce,JE:()=>We,ib:()=>Ae});var e=r(91167),o=function(y){return y.GoodsLoadingCompliantDeclaredCompliant="goods_loading_compliant_declared-compliant",y.GoodsLoadingNonCompliantDeclaredNonCompliant="goods_loading_non_compliant_declared-non_compliant",y.GoodsLoadingNonCompliantDeclaredPartiallyMissing="goods_loading_non_compliant_declared-partially_missing",y.GoodsLoadingNonCompliantDeclaredExcessParcels="goods_loading_non_compliant_declared-excess_parcels",y.GoodsLoadingNonCompliantDeclaredMissingDocument="goods_loading_non_compliant_declared-missing_document",y.GoodsLoadingNonCompliantDeclaredOpened="goods_loading_non_compliant_declared-opened",y.GoodsLoadingNonCompliantDeclaredWeightDifference="goods_loading_non_compliant_declared-weight_difference",y.GoodsLoadingNonCompliantDeclaredVolumeDifference="goods_loading_non_compliant_declared-volume_difference",y.GoodsLoadingNonCompliantDeclaredSpecifiedDamages="goods_loading_non_compliant_declared-specified_damages",y.GoodsLoadingNonCompliantDeclaredMissingOrDamaged="goods_loading_non_compliant_declared-missing_or_damaged",y.GoodsLoadingNonRealisedDeclaredNotJustified="goods_loading_non_realised_declared-not_justified",y.GoodsLoadingNonRealisedDeclaredShipperAbsent="goods_loading_non_realised_declared-shipper_absent",y.GoodsLoadingNonRealisedDeclaredClosedForHolidays="goods_loading_non_realised_declared-closed_for_holidays",y.GoodsLoadingNonRealisedDeclaredWeeklyClosure="goods_loading_non_realised_declared-weekly_closure",y.GoodsLoadingNonRealisedDeclaredPartiallyMissing="goods_loading_non_realised_declared-partially_missing",y.GoodsLoadingNonRealisedDeclaredGoodsUnavailable="goods_loading_non_realised_declared-goods_unavailable",y.GoodsLoadingNonRealisedDeclaredPhotoAttached="goods_loading_non_realised_declared-photo_attached",y.GoodsLoadingNonRealisedDeclaredShipperNotified="goods_loading_non_realised_declared-shipper_notified",y.GoodsLoadingNonRealisedDeclaredAddressUpdateNeeded="goods_loading_non_realised_declared-address_update_needed",y.GoodsLoadingNonRealisedDeclaredCustomsClearanceInProgress="goods_loading_non_realised_declared-customs_clearance_in_progress",y.GoodsLoadingNonRealisedDeclaredShipperMoved="goods_loading_non_realised_declared-shipper_moved",y.GoodsLoadingNonRealisedDeclaredShipperUnknownAtAddress="goods_loading_non_realised_declared-shipper_unknown_at_address",y.GoodsLoadingNonRealisedDeclaredForceMajeure="goods_loading_non_realised_declared-force_majeure",y.GoodsLoadingNonRealisedDeclaredBadWeather="goods_loading_non_realised_declared-bad_weather",y.GoodsLoadingNonRealisedDeclaredNewPickupAddress="goods_loading_non_realised_declared-new_pickup_address",y.GoodsLoadingNonRealisedDeclaredNewAppointment="goods_loading_non_realised_declared-new_appointment",y.GoodsLoadingNonRealisedDeclaredMechanicalBreakdown="goods_loading_non_realised_declared-mechanical_breakdown",y.GoodsLoadingNonRealisedDeclaredCodedDoor="goods_loading_non_realised_declared-coded_door",y.GoodsLoadingNonRealisedDeclaredScanned="goods_loading_non_realised_declared-scanned",y.GoodsLoadingNonRealisedDeclaredUnexpectedWeight="goods_loading_non_realised_declared-unexpected_weight",y.GoodsLoadingNonRealisedDeclaredSpecifiedDamages="goods_loading_non_realised_declared-specified_damages",y.GoodsLoadingNonRealisedDeclaredMissingOrDamaged="goods_loading_non_realised_declared-missing_or_damaged",y.GoodsLoadingNonRealisedDeclaredUnexpectedVolume="goods_loading_non_realised_declared-unexpected_volume",y.GoodsLoadingRefusedDeclaredNonCompliant="goods_loading_refused_declared-non_compliant",y.GoodsLoadingRefusedDeclaredCustomsClearanceRefused="goods_loading_refused_declared-customs_clearance_refused",y.GoodsLoadingRefusedDeclaredVariousReasons="goods_loading_refused_declared-various_reasons",y.GoodsLoadingRefusedDeclaredLateCollection="goods_loading_refused_declared-late_collection",y.GoodsLoadingRefusedDeclaredDamage="goods_loading_refused_declared-damage",y.GoodsLoadingRefusedDeclaredClearanceRefused="goods_loading_refused_declared-clearance_refused",y.GoodsLoadingRefusedDeclaredMissingDocument="goods_loading_refused_declared-missing_document",y.GoodsDeliveryCompliantDeclaredCompliant="goods_delivery_compliant_declared-compliant",y.GoodsDeliveryNonCompliantDeclaredPartiallyMissing="goods_delivery_non_compliant_declared-partially_missing",y.GoodsDeliveryNonCompliantDeclaredVariousReservations="goods_delivery_non_compliant_declared-various_reservations",y.GoodsDeliveryNonCompliantDeclaredMissingDocument="goods_delivery_non_compliant_declared-missing_document",y.GoodsDeliveryNonCompliantDeclaredUnloadingFinished="goods_delivery_non_compliant_declared-unloading_finished",y.GoodsDeliveryNonCompliantDeclaredReservationsForMissingParcels="goods_delivery_non_compliant_declared-reservations_for_missing_parcels",y.GoodsDeliveryNonCompliantDeclaredReceiptNotSigned="goods_delivery_non_compliant_declared-receipt_not_signed",y.GoodsDeliveryNonCompliantDeclaredSpecifiedDamages="goods_delivery_non_compliant_declared-specified_damages",y.GoodsDeliveryNonCompliantDeclaredMissingOrDamaged="goods_delivery_non_compliant_declared-missing_or_damaged",y.GoodsDeliveryNonCompliantDeclaredPilferage="goods_delivery_non_compliant_declared-pilferage",y.GoodsDeliveryNonRealisedDeclaredNotJustified="goods_delivery_non_realised_declared-not_justified",y.GoodsDeliveryNonRealisedDeclaredClosedForHolidays="goods_delivery_non_realised_declared-closed_for_holidays",y.GoodsDeliveryNonRealisedDeclaredWeeklyClosure="goods_delivery_non_realised_declared-weekly_closure",y.GoodsDeliveryNonRealisedDeclaredPhotoAttached="goods_delivery_non_realised_declared-photo_attached",y.GoodsDeliveryNonRealisedDeclaredRecipientNotified="goods_delivery_non_realised_declared-recipient_notified",y.GoodsDeliveryNonRealisedDeclaredAddressUpdateNeeded="goods_delivery_non_realised_declared-address_update_needed",y.GoodsDeliveryNonRealisedDeclaredRecipientClosed="goods_delivery_non_realised_declared-recipient_closed",y.GoodsDeliveryNonRealisedDeclaredRecipientMoved="goods_delivery_non_realised_declared-recipient_moved",y.GoodsDeliveryNonRealisedDeclaredRecipientUnknownAtAddress="goods_delivery_non_realised_declared-recipient_unknown_at_address",y.GoodsDeliveryNonRealisedDeclaredForceMajeure="goods_delivery_non_realised_declared-force_majeure",y.GoodsDeliveryNonRealisedDeclaredProblemWithGeographicalPosition="goods_delivery_non_realised_declared-problem_with_geographical_position",y.GoodsDeliveryNonRealisedDeclaredBadWeather="goods_delivery_non_realised_declared-bad_weather",y.GoodsDeliveryNonRealisedDeclaredNewDeliveryAddress="goods_delivery_non_realised_declared-new_delivery_address",y.GoodsDeliveryNonRealisedDeclaredNewAppointment="goods_delivery_non_realised_declared-new_appointment",y.GoodsDeliveryNonRealisedDeclaredOpened="goods_delivery_non_realised_declared-opened",y.GoodsDeliveryNonRealisedDeclaredMechanicalBreakdown="goods_delivery_non_realised_declared-mechanical_breakdown",y.GoodsDeliveryNonRealisedDeclaredCodedDoor="goods_delivery_non_realised_declared-coded_door",y.GoodsDeliveryNonRealisedDeclaredMissingOrDamaged="goods_delivery_non_realised_declared-missing_or_damaged",y.GoodsDeliveryNonRealisedDeclaredPartialDistress="goods_delivery_non_realised_declared-partial_distress",y.GoodsDeliveryRefusedDeclaredVariousReasons="goods_delivery_refused_declared-various_reasons",y.GoodsDeliveryRefusedDeclaredPartiallyMissing="goods_delivery_refused_declared-partially_missing",y.GoodsArrivedAtHubDeclaredCompliant="goods_arrived_at_hub_declared-compliant",y.GoodsDeliveryRefusedDeclaredNotJustified="goods_delivery_refused_declared-not_justified",y.GoodsDeliveryRefusedDeclaredMissingDocument="goods_delivery_refused_declared-missing_document",y.GoodsDeliveryRefusedDeclaredCompletelyMissing="goods_delivery_refused_declared-completely_missing",y.GoodsDeliveryRefusedCalculatedCompletelyMissing="goods_delivery_refused_calculated-completely_missing",y.GoodsDeliveryRefusedDeclaredNotOrdered="goods_delivery_refused_declared-not_ordered",y.GoodsDeliveryRefusedDeclaredPostageDue="goods_delivery_refused_declared-postage_due",y.GoodsDeliveryRefusedDeclaredPilferage="goods_delivery_refused_declared-pilferage",y.GoodsDeliveryRefusedDeclaredCashOnDelivery="goods_delivery_refused_declared-cash_on_delivery",y.GoodsDeliveryRefusedDeclaredLateDelivery="goods_delivery_refused_declared-late_delivery",y.GoodsDeliveryRefusedDeclaredDamage="goods_delivery_refused_declared-damage",y.GoodsArrivedAtDeliveryHubDeclared="goods_arrived_at_delivery_hub_declared",y.GoodsArrivedAtDeliveryHubDeclaredCompliant="goods_arrived_at_delivery_hub_declared-compliant",y.GoodsArrivedAtDeliveryHubDeclaredNonCompliant="goods_arrived_at_delivery_hub_declared-non_compliant",y.GoodsArrivedAtDeliveryHubDeclaredDamage="goods_arrived_at_delivery_hub_declared-damage",y.GoodsArrivedAtDeliveryHubDeclaredExcessParcels="goods_arrived_at_delivery_hub_declared-excess_parcels",y.GoodsArrivedAtDeliveryHubDeclaredCustomsCleared="goods_arrived_at_delivery_hub_declared-customs_cleared",y.GoodsArrivedAtDeliveryHubDeclaredMissingDocument="goods_arrived_at_delivery_hub_declared-missing_document",y.GoodsArrivedAtDeliveryHubDeclaredDiverted="goods_arrived_at_delivery_hub_declared-diverted",y.GoodsArrivedAtDeliveryHubDeclaredPartiallyMissing="goods_arrived_at_delivery_hub_declared-partially_missing",y.GoodsArrivedAtDeliveryHubDeclaredCompletelyMissing="goods_arrived_at_delivery_hub_declared-completely_missing",y.GoodsArrivedAtDeliveryHubDeclaredOpened="goods_arrived_at_delivery_hub_declared-opened",y.GoodsArrivedAtDeliveryHubDeclaredPhotoAttached="goods_arrived_at_delivery_hub_declared-photo_attached",y.GoodsArrivedAtDeliveryHubDeclaredScanned="goods_arrived_at_delivery_hub_declared-scanned",y.GoodsArrivedAtDeliveryHubDeclaredVisiblyIncorrectWeight="goods_arrived_at_delivery_hub_declared-visibly_incorrect_weight",y.GoodsArrivedAtDeliveryHubDeclaredSpecifiedDamages="goods_arrived_at_delivery_hub_declared-specified_damages",y.GoodsArrivedAtDeliveryHubDeclaredMissingItemsRegularized="goods_arrived_at_delivery_hub_declared-missing_items_regularized",y.GoodsArrivedAtDeliveryHubDeclaredMissingOrDamaged="goods_arrived_at_delivery_hub_declared-missing_or_damaged",y.GoodsArrivedAtDeliveryHubDeclaredLatePickupOrArrival="goods_arrived_at_delivery_hub_declared-late_pickup_or_arrival",y.GoodsArrivedAtDeliveryHubDeclaredVisiblyIncorrectVolume="goods_arrived_at_delivery_hub_declared-visibly_incorrect_volume",y.GoodsArrivedAtHubDeclaredNonCompliant="goods_arrived_at_hub_declared-non_compliant",y.GoodsArrivedAtHubDeclaredDamage="goods_arrived_at_hub_declared-damage",y.GoodsArrivedAtHubDeclaredExcessParcels="goods_arrived_at_hub_declared-excess_parcels",y.GoodsArrivedAtHubDeclaredCustomsCleared="goods_arrived_at_hub_declared-customs_cleared",y.GoodsArrivedAtHubDeclaredMissingDocument="goods_arrived_at_hub_declared-missing_document",y.GoodsArrivedAtHubDeclaredDiverted="goods_arrived_at_hub_declared-diverted",y.GoodsArrivedAtHubDeclaredPartiallyMissing="goods_arrived_at_hub_declared-partially_missing",y.GoodsArrivedAtHubDeclaredCompletelyMissing="goods_arrived_at_hub_declared-completely_missing",y.GoodsArrivedAtHubDeclaredOpened="goods_arrived_at_hub_declared-opened",y.GoodsArrivedAtHubDeclaredPhotoAttached="goods_arrived_at_hub_declared-photo_attached",y.GoodsArrivedAtHubDeclaredScanned="goods_arrived_at_hub_declared-scanned",y.GoodsArrivedAtHubDeclaredVisiblyIncorrectWeight="goods_arrived_at_hub_declared-visibly_incorrect_weight",y.GoodsArrivedAtHubDeclaredSpecifiedDamages="goods_arrived_at_hub_declared-specified_damages",y.GoodsArrivedAtHubDeclaredMissingItemsRegularized="goods_arrived_at_hub_declared-missing_items_regularized",y.GoodsArrivedAtHubDeclaredMissingOrDamaged="goods_arrived_at_hub_declared-missing_or_damaged",y.GoodsArrivedAtHubDeclaredLatePickupOrArrival="goods_arrived_at_hub_declared-late_pickup_or_arrival",y.GoodsArrivedAtHubDeclaredVisiblyIncorrectVolume="goods_arrived_at_hub_declared-visibly_incorrect_volume",y.GoodsLeftDeliveryHubDeclaredShipmentCompliant="goods_left_delivery_hub_declared-shipment_compliant",y.GoodsLeftDeliveryHubDeclaredExcessParcels="goods_left_delivery_hub_declared-excess_parcels",y.GoodsLeftDeliveryHubDeclaredCompletelyMissing="goods_left_delivery_hub_declared-completely_missing",y.GoodsLeftDeliveryHubDeclaredPhotoAttached="goods_left_delivery_hub_declared-photo_attached",y.GoodsLeftDeliveryHubDeclaredScanned="goods_left_delivery_hub_declared-scanned",y.GoodsLeftDeliveryHubDeclaredSpecifiedDamages="goods_left_delivery_hub_declared-specified_damages",y.GoodsLeftDeliveryHubDeclaredMissingOrDamaged="goods_left_delivery_hub_declared-missing_or_damaged",y.GoodsLeftDeliveryHubDeclaredPartiallyMissing="goods_left_delivery_hub_declared-partially_missing",y.GoodsLeftHubDeclaredShipmentCompliant="goods_left_hub_declared-shipment_compliant",y.GoodsLeftHubDeclaredExcessParcels="goods_left_hub_declared-excess_parcels",y.GoodsLeftHubDeclaredCompletelyMissing="goods_left_hub_declared-completely_missing",y.GoodsLeftHubDeclaredPhotoAttached="goods_left_hub_declared-photo_attached",y.GoodsLeftHubDeclaredScanned="goods_left_hub_declared-scanned",y.GoodsLeftHubDeclaredSpecifiedDamages="goods_left_hub_declared-specified_damages",y.GoodsLeftHubDeclaredMissingOrDamaged="goods_left_hub_declared-missing_or_damaged",y.GoodsLeftHubDeclaredPartiallyMissing="goods_left_hub_declared-partially_missing",y.GoodsLoadingCompliantCalculatedCompliant="goods_loading_compliant_calculated-compliant",y.GoodsLoadingNonCompliantCalculated="goods_loading_non_compliant_calculated",y.GoodsLoadingNonCompliantCalculatedNonCompliant="goods_loading_non_compliant_calculated-non_compliant",y.GoodsLoadingNonCompliantCalculatedPartiallyMissing="goods_loading_non_compliant_calculated-partially_missing",y.GoodsLoadingNonCompliantCalculatedExcessParcels="goods_loading_non_compliant_calculated-excess_parcels",y.GoodsLoadingNonCompliantCalculatedMissingDocument="goods_loading_non_compliant_calculated-missing_document",y.GoodsLoadingNonCompliantCalculatedOpened="goods_loading_non_compliant_calculated-opened",y.GoodsLoadingNonCompliantCalculatedWeightDifference="goods_loading_non_compliant_calculated-weight_difference",y.GoodsLoadingNonCompliantCalculatedVolumeDifference="goods_loading_non_compliant_calculated-volume_difference",y.GoodsLoadingNonCompliantCalculatedSpecifiedDamages="goods_loading_non_compliant_calculated-specified_damages",y.GoodsLoadingNonCompliantCalculatedMissingOrDamaged="goods_loading_non_compliant_calculated-missing_or_damaged",y.GoodsLoadingNonRealisedCalculatedNotJustified="goods_loading_non_realised_calculated-not_justified",y.GoodsLoadingNonRealisedCalculatedShipperAbsent="goods_loading_non_realised_calculated-shipper_absent",y.GoodsLoadingNonRealisedCalculatedClosedForHolidays="goods_loading_non_realised_calculated-closed_for_holidays",y.GoodsLoadingNonRealisedCalculatedWeeklyClosure="goods_loading_non_realised_calculated-weekly_closure",y.GoodsLoadingNonRealisedCalculatedPartiallyMissing="goods_loading_non_realised_calculated-partially_missing",y.GoodsLoadingNonRealisedCalculatedGoodsUnavailable="goods_loading_non_realised_calculated-goods_unavailable",y.GoodsLoadingNonRealisedCalculatedPhotoAttached="goods_loading_non_realised_calculated-photo_attached",y.GoodsLoadingNonRealisedCalculatedShipperNotified="goods_loading_non_realised_calculated-shipper_notified",y.GoodsLoadingNonRealisedCalculatedAddressUpdateNeeded="goods_loading_non_realised_calculated-address_update_needed",y.GoodsLoadingNonRealisedCalculatedCustomsClearanceInProgress="goods_loading_non_realised_calculated-customs_clearance_in_progress",y.GoodsLoadingNonRealisedCalculatedShipperMoved="goods_loading_non_realised_calculated-shipper_moved",y.GoodsLoadingNonRealisedCalculatedShipperUnknownAtAddress="goods_loading_non_realised_calculated-shipper_unknown_at_address",y.GoodsLoadingNonRealisedCalculatedForceMajeure="goods_loading_non_realised_calculated-force_majeure",y.GoodsLoadingNonRealisedCalculatedBadWeather="goods_loading_non_realised_calculated-bad_weather",y.GoodsLoadingNonRealisedCalculatedNewPickupAddress="goods_loading_non_realised_calculated-new_pickup_address",y.GoodsLoadingNonRealisedCalculatedNewAppointment="goods_loading_non_realised_calculated-new_appointment",y.GoodsLoadingNonRealisedCalculatedMechanicalBreakdown="goods_loading_non_realised_calculated-mechanical_breakdown",y.GoodsLoadingNonRealisedCalculatedCodedDoor="goods_loading_non_realised_calculated-coded_door",y.GoodsLoadingNonRealisedCalculatedScanned="goods_loading_non_realised_calculated-scanned",y.GoodsLoadingNonRealisedCalculatedUnexpectedWeight="goods_loading_non_realised_calculated-unexpected_weight",y.GoodsLoadingNonRealisedCalculatedSpecifiedDamages="goods_loading_non_realised_calculated-specified_damages",y.GoodsLoadingNonRealisedCalculatedMissingOrDamaged="goods_loading_non_realised_calculated-missing_or_damaged",y.GoodsLoadingNonRealisedCalculatedUnexpectedVolume="goods_loading_non_realised_calculated-unexpected_volume",y.GoodsLoadingRefusedCalculatedNonCompliant="goods_loading_refused_calculated-non_compliant",y.GoodsLoadingRefusedCalculatedVariousReasons="goods_loading_refused_calculated-various_reasons",y.GoodsLoadingRefusedCalculatedLateCollection="goods_loading_refused_calculated-late_collection",y.GoodsLoadingRefusedCalculatedDamage="goods_loading_refused_calculated-damage",y.GoodsLoadingRefusedCalculatedClearanceRefused="goods_loading_refused_calculated-clearance_refused",y.GoodsLoadingRefusedCalculatedMissingDocument="goods_loading_refused_calculated-missing_document",y.GoodsDeliveryCompliantCalculatedCompliant="goods_delivery_compliant_calculated-compliant",y.GoodsDeliveryNonCompliantCalculatedVariousReservations="goods_delivery_non_compliant_calculated-various_reservations",y.GoodsDeliveryNonCompliantCalculatedMissingDocument="goods_delivery_non_compliant_calculated-missing_document",y.GoodsDeliveryNonCompliantCalculatedUnloadingFinished="goods_delivery_non_compliant_calculated-unloading_finished",y.GoodsDeliveryNonCompliantCalculatedReservationsForMissingParcels="goods_delivery_non_compliant_calculated-reservations_for_missing_parcels",y.GoodsDeliveryNonCompliantCalculatedReceiptNotSigned="goods_delivery_non_compliant_calculated-receipt_not_signed",y.GoodsDeliveryNonCompliantCalculatedSpecifiedDamages="goods_delivery_non_compliant_calculated-specified_damages",y.GoodsDeliveryNonCompliantCalculatedMissingOrDamaged="goods_delivery_non_compliant_calculated-missing_or_damaged",y.GoodsDeliveryNonCompliantCalculatedPilferage="goods_delivery_non_compliant_calculated-pilferage",y.GoodsDeliveryNonRealisedCalculatedNotJustified="goods_delivery_non_realised_calculated-not_justified",y.GoodsDeliveryNonRealisedCalculatedClosedForHolidays="goods_delivery_non_realised_calculated-closed_for_holidays",y.GoodsDeliveryNonRealisedCalculatedWeeklyClosure="goods_delivery_non_realised_calculated-weekly_closure",y.GoodsDeliveryNonRealisedCalculatedPhotoAttached="goods_delivery_non_realised_calculated-photo_attached",y.GoodsDeliveryNonRealisedCalculatedRecipientNotified="goods_delivery_non_realised_calculated-recipient_notified",y.GoodsDeliveryNonRealisedCalculatedAddressUpdateNeeded="goods_delivery_non_realised_calculated-address_update_needed",y.GoodsDeliveryNonRealisedCalculatedRecipientClosed="goods_delivery_non_realised_calculated-recipient_closed",y.GoodsDeliveryNonRealisedCalculatedRecipientMoved="goods_delivery_non_realised_calculated-recipient_moved",y.GoodsDeliveryNonRealisedCalculatedRecipientUnknownAtAddress="goods_delivery_non_realised_calculated-recipient_unknown_at_address",y.GoodsDeliveryNonRealisedCalculatedForceMajeure="goods_delivery_non_realised_calculated-force_majeure",y.GoodsDeliveryNonRealisedCalculatedProblemWithGeographicalPosition="goods_delivery_non_realised_calculated-problem_with_geographical_position",y.GoodsDeliveryNonRealisedCalculatedBadWeather="goods_delivery_non_realised_calculated-bad_weather",y.GoodsDeliveryNonRealisedCalculatedNewDeliveryAddress="goods_delivery_non_realised_calculated-new_delivery_address",y.GoodsDeliveryNonRealisedCalculatedNewAppointment="goods_delivery_non_realised_calculated-new_appointment",y.GoodsDeliveryNonRealisedCalculatedOpened="goods_delivery_non_realised_calculated-opened",y.GoodsDeliveryNonRealisedCalculatedMechanicalBreakdown="goods_delivery_non_realised_calculated-mechanical_breakdown",y.GoodsDeliveryNonRealisedCalculatedCodedDoor="goods_delivery_non_realised_calculated-coded_door",y.GoodsDeliveryNonRealisedCalculatedMissingOrDamaged="goods_delivery_non_realised_calculated-missing_or_damaged",y.GoodsDeliveryNonRealisedCalculatedPartialDistress="goods_delivery_non_realised_calculated-partial_distress",y.GoodsDeliveryRefusedCalculatedVariousReasons="goods_delivery_refused_calculated-various_reasons",y.GoodsDeliveryRefusedCalculatedPartiallyMissing="goods_delivery_refused_calculated-partially_missing",y.GoodsDeliveryRefusedCalculatedMissingDocument="goods_delivery_refused_calculated-missing_document",y.GoodsDeliveryRefusedCalculatedNotOrdered="goods_delivery_refused_calculated-not_ordered",y.GoodsDeliveryRefusedCalculatedPostageDue="goods_delivery_refused_calculated-postage_due",y.GoodsDeliveryRefusedCalculatedPilferage="goods_delivery_refused_calculated-pilferage",y.GoodsDeliveryRefusedCalculatedCashOnDelivery="goods_delivery_refused_calculated-cash_on_delivery",y.GoodsDeliveryRefusedCalculatedLateDelivery="goods_delivery_refused_calculated-late_delivery",y.GoodsDeliveryRefusedCalculatedDamage="goods_delivery_refused_calculated-damage",y.GoodsArrivedAtDeliveryHubCalculatedNonCompliant="goods_arrived_at_delivery_hub_calculated-non_compliant",y.GoodsArrivedAtDeliveryHubCalculatedDamage="goods_arrived_at_delivery_hub_calculated-damage",y.GoodsArrivedAtDeliveryHubCalculatedExcessParcels="goods_arrived_at_delivery_hub_calculated-excess_parcels",y.GoodsArrivedAtDeliveryHubCalculatedCustomsCleared="goods_arrived_at_delivery_hub_calculated-customs_cleared",y.GoodsArrivedAtDeliveryHubCalculatedMissingDocument="goods_arrived_at_delivery_hub_calculated-missing_document",y.GoodsArrivedAtDeliveryHubCalculatedDiverted="goods_arrived_at_delivery_hub_calculated-diverted",y.GoodsArrivedAtDeliveryHubCalculatedPartiallyMissing="goods_arrived_at_delivery_hub_calculated-partially_missing",y.GoodsArrivedAtDeliveryHubCalculatedCompletelyMissing="goods_arrived_at_delivery_hub_calculated-completely_missing",y.GoodsArrivedAtDeliveryHubCalculatedOpened="goods_arrived_at_delivery_hub_calculated-opened",y.GoodsArrivedAtDeliveryHubCalculatedPhotoAttached="goods_arrived_at_delivery_hub_calculated-photo_attached",y.GoodsArrivedAtDeliveryHubCalculatedScanned="goods_arrived_at_delivery_hub_calculated-scanned",y.GoodsArrivedAtDeliveryHubCalculatedVisiblyIncorrectWeight="goods_arrived_at_delivery_hub_calculated-visibly_incorrect_weight",y.GoodsArrivedAtDeliveryHubCalculatedSpecifiedDamages="goods_arrived_at_delivery_hub_calculated-specified_damages",y.GoodsArrivedAtDeliveryHubCalculatedMissingItemsRegularized="goods_arrived_at_delivery_hub_calculated-missing_items_regularized",y.GoodsArrivedAtDeliveryHubCalculatedMissingOrDamaged="goods_arrived_at_delivery_hub_calculated-missing_or_damaged",y.GoodsArrivedAtDeliveryHubCalculatedLatePickupOrArrival="goods_arrived_at_delivery_hub_calculated-late_pickup_or_arrival",y.GoodsArrivedAtDeliveryHubCalculatedVisiblyIncorrectVolume="goods_arrived_at_delivery_hub_calculated-visibly_incorrect_volume",y.GoodsArrivedAtHubCalculatedNonCompliant="goods_arrived_at_hub_calculated-non_compliant",y.GoodsArrivedAtHubCalculatedDamage="goods_arrived_at_hub_calculated-damage",y.GoodsArrivedAtHubCalculatedExcessParcels="goods_arrived_at_hub_calculated-excess_parcels",y.GoodsArrivedAtHubCalculatedCustomsCleared="goods_arrived_at_hub_calculated-customs_cleared",y.GoodsArrivedAtHubCalculatedMissingDocument="goods_arrived_at_hub_calculated-missing_document",y.GoodsArrivedAtHubCalculatedDiverted="goods_arrived_at_hub_calculated-diverted",y.GoodsArrivedAtHubCalculatedPartiallyMissing="goods_arrived_at_hub_calculated-partially_missing",y.GoodsArrivedAtHubCalculatedCompletelyMissing="goods_arrived_at_hub_calculated-completely_missing",y.GoodsArrivedAtHubCalculatedOpened="goods_arrived_at_hub_calculated-opened",y.GoodsArrivedAtHubCalculatedPhotoAttached="goods_arrived_at_hub_calculated-photo_attached",y.GoodsArrivedAtHubCalculatedScanned="goods_arrived_at_hub_calculated-scanned",y.GoodsArrivedAtHubCalculatedVisiblyIncorrectWeight="goods_arrived_at_hub_calculated-visibly_incorrect_weight",y.GoodsArrivedAtHubCalculatedSpecifiedDamages="goods_arrived_at_hub_calculated-specified_damages",y.GoodsArrivedAtHubCalculatedMissingItemsRegularized="goods_arrived_at_hub_calculated-missing_items_regularized",y.GoodsArrivedAtHubCalculatedMissingOrDamaged="goods_arrived_at_hub_calculated-missing_or_damaged",y.GoodsArrivedAtHubCalculatedLatePickupOrArrival="goods_arrived_at_hub_calculated-late_pickup_or_arrival",y.GoodsArrivedAtHubCalculatedVisiblyIncorrectVolume="goods_arrived_at_hub_calculated-visibly_incorrect_volume",y.GoodsLeftDeliveryHubCalculatedShipmentCompliant="goods_left_delivery_hub_calculated-shipment_compliant",y.GoodsLeftDeliveryHubCalculatedExcessParcels="goods_left_delivery_hub_calculated-excess_parcels",y.GoodsLeftDeliveryHubCalculatedCompletelyMissing="goods_left_delivery_hub_calculated-completely_missing",y.GoodsLeftDeliveryHubCalculatedPhotoAttached="goods_left_delivery_hub_calculated-photo_attached",y.GoodsLeftDeliveryHubCalculatedScanned="goods_left_delivery_hub_calculated-scanned",y.GoodsLeftDeliveryHubCalculatedSpecifiedDamages="goods_left_delivery_hub_calculated-specified_damages",y.GoodsLeftDeliveryHubCalculatedMissingOrDamaged="goods_left_delivery_hub_calculated-missing_or_damaged",y.GoodsLeftDeliveryHubCalculatedPartiallyMissing="goods_left_delivery_hub_calculated-partially_missing",y.GoodsLeftHubCalculatedShipmentCompliant="goods_left_hub_calculated-shipment_compliant",y.GoodsLeftHubCalculatedExcessParcels="goods_left_hub_calculated-excess_parcels",y.GoodsLeftHubCalculatedCompletelyMissing="goods_left_hub_calculated-completely_missing",y.GoodsLeftHubCalculatedPhotoAttached="goods_left_hub_calculated-photo_attached",y.GoodsLeftHubCalculatedScanned="goods_left_hub_calculated-scanned",y.GoodsLeftHubCalculatedSpecifiedDamages="goods_left_hub_calculated-specified_damages",y.GoodsLeftHubCalculatedMissingOrDamaged="goods_left_hub_calculated-missing_or_damaged",y.GoodsLeftHubCalculatedPartiallyMissing="goods_left_hub_calculated-partially_missing",y.GoodsTrackingAbandoned="goods_tracking_abandoned",y.GoodsTrackingCompleted="goods_tracking_completed",y.GoodsEtaDeclared="goods_eta_declared",y.GoodsOrderAbandoned="order_abandoned",y.GoodsAbandoned="abandoned",y.GoodsOrderCompleted="order_completed",y.GoodsNotRelevant="goodsNotRelevant",y.OrderInTransitCalculated="order_in_transit_calculated",y.OrderInTransitDeclared="order_in_transit_declared",y.OrderReadyForPickupDeclared="order_ready_for_pickup_declared",y.OrderReadyForPickupCalculated="order_ready_for_pickup_calculated",y.HuReadyForPickupDeclared="handling_unit_ready_for_pickup_declared",y.HuReadyForPickupCalculated="handling_unit_ready_for_pickup_calculated",y.GoodsLoadingCompliant="loadingCompliant",y.GoodsLoadingNonCompliant="loadingNonCompliant",y.GoodsDeliveryCompliant="deliveryCompliant",y.GoodsDeliveryNonCompliant="deliveryNonCompliant",y.GoodsArrived="arrived",y.GoodsLeftHub="leftHub",y.GoodsArrivedAtHub="arrivedAtHub",y.GoodsArrivedAtDeliveryHub="arrivedAtDeliveryHub",y.GoodsLeftDeliveryHub="leftDeliveryHub",y.GoodsDeliveryNonRealised="deliveryNonRealised",y.GoodsInTransit="inTransit",y.GoodsReadyForPickup="readyForPickup",y.GoodsDeliveryHub="deliveryHub",y.GoodsLoadingNonRealised="loadingNonRealised",y.GoodsDeliveryRefused="deliveryRefused",y.GoodsLoadingRefused="loadingRefused",y.GoodsCompleted="completed",y.GoodsCanceled="canceled",y.GoodsLeftHubDeclaredMissingDocument="goods_left_hub_declared-missing_document",y.GoodsLeftHubDeclaredUnloadingStarted="goods_left_hub_declared-unloading_started",y}(o||{});const s={[o.GoodsAbandoned]:(0,e.x)("Abandoned"),[o.GoodsLoadingCompliantDeclaredCompliant]:(0,e.x)("Loading compliant - compliant"),[o.GoodsLoadingNonCompliantDeclaredNonCompliant]:(0,e.x)("Loading non compliant - non compliant"),[o.GoodsLoadingNonCompliantCalculated]:(0,e.x)("Loading non compliant"),[o.GoodsLoadingNonCompliantDeclaredPartiallyMissing]:(0,e.x)("Loading non compliant - partially missing"),[o.GoodsLoadingNonCompliantDeclaredExcessParcels]:(0,e.x)("Loading non compliant - excess parcels"),[o.GoodsLoadingNonCompliantDeclaredMissingDocument]:(0,e.x)("Loading non compliant - missing document"),[o.GoodsLoadingNonCompliantDeclaredOpened]:(0,e.x)("Loading non compliant - opened"),[o.GoodsLoadingNonCompliantDeclaredWeightDifference]:(0,e.x)("Loading non compliant - weight difference"),[o.GoodsLoadingNonCompliantDeclaredVolumeDifference]:(0,e.x)("Loading non compliant - volume difference"),[o.GoodsLoadingNonCompliantDeclaredSpecifiedDamages]:(0,e.x)("Loading non compliant - specified damages"),[o.GoodsLoadingNonCompliantDeclaredMissingOrDamaged]:(0,e.x)("Loading non compliant - missing or damaged"),[o.GoodsLoadingNonRealisedDeclaredNotJustified]:(0,e.x)("Loading non realised - not justified"),[o.GoodsLoadingNonRealisedDeclaredShipperAbsent]:(0,e.x)("Loading non realised - shipper absent"),[o.GoodsLoadingNonRealisedDeclaredClosedForHolidays]:(0,e.x)("Loading non realised - closed for holidays"),[o.GoodsLoadingNonRealisedDeclaredWeeklyClosure]:(0,e.x)("Loading non realised - weekly closure"),[o.GoodsLoadingNonRealisedDeclaredPartiallyMissing]:(0,e.x)("Loading non realised - partially missing"),[o.GoodsLoadingNonRealisedDeclaredGoodsUnavailable]:(0,e.x)("Loading non realised - goods unavailable"),[o.GoodsLoadingNonRealisedDeclaredPhotoAttached]:(0,e.x)("Loading non realised - photo attached"),[o.GoodsLoadingNonRealisedDeclaredShipperNotified]:(0,e.x)("Loading non realised - shipper notified"),[o.GoodsLoadingNonRealisedDeclaredAddressUpdateNeeded]:(0,e.x)("Loading non realised - address update needed"),[o.GoodsLoadingNonRealisedDeclaredCustomsClearanceInProgress]:(0,e.x)("Loading non realised - customs clearance in progress"),[o.GoodsLoadingNonRealisedDeclaredShipperMoved]:(0,e.x)("Loading non realised - shipper moved"),[o.GoodsLoadingNonRealisedDeclaredShipperUnknownAtAddress]:(0,e.x)("Loading non realised - shipper unknown at address"),[o.GoodsLoadingNonRealisedDeclaredForceMajeure]:(0,e.x)("Loading non realised - force majeure"),[o.GoodsLoadingNonRealisedDeclaredBadWeather]:(0,e.x)("Loading non realised - bad weather"),[o.GoodsLoadingNonRealisedDeclaredNewPickupAddress]:(0,e.x)("Loading non realised - new pickup address"),[o.GoodsLoadingNonRealisedDeclaredNewAppointment]:(0,e.x)("Loading non realised - new appointment"),[o.GoodsLoadingNonRealisedDeclaredMechanicalBreakdown]:(0,e.x)("Loading non realised - mechanical breakdown"),[o.GoodsLoadingNonRealisedDeclaredCodedDoor]:(0,e.x)("Loading non realised - coded door"),[o.GoodsLoadingNonRealisedDeclaredScanned]:(0,e.x)("Loading non realised - scanned"),[o.GoodsLoadingNonRealisedDeclaredUnexpectedWeight]:(0,e.x)("Loading non realised - unexpected weight"),[o.GoodsLoadingNonRealisedDeclaredUnexpectedVolume]:(0,e.x)("Loading non realised - unexpected volume"),[o.GoodsLoadingNonRealisedDeclaredSpecifiedDamages]:(0,e.x)("Loading non realised - specified damages"),[o.GoodsLoadingNonRealisedDeclaredMissingOrDamaged]:(0,e.x)("Loading non realised - missing or damaged"),[o.GoodsLoadingRefusedDeclaredNonCompliant]:(0,e.x)("Loading refused - non compliant"),[o.GoodsLoadingRefusedDeclaredCustomsClearanceRefused]:(0,e.x)("Loading refused - customs clearance refused"),[o.GoodsLoadingRefusedDeclaredVariousReasons]:(0,e.x)("Loading refused - various reasons"),[o.GoodsLoadingRefusedDeclaredLateCollection]:(0,e.x)("Loading refused - late collection"),[o.GoodsLoadingRefusedDeclaredDamage]:(0,e.x)("Loading refused - damage"),[o.GoodsLoadingRefusedDeclaredClearanceRefused]:(0,e.x)("Loading refused - clearance refused"),[o.GoodsLoadingRefusedDeclaredMissingDocument]:(0,e.x)("Loading refused - missing document"),[o.GoodsDeliveryCompliantDeclaredCompliant]:(0,e.x)("Delivery compliant - compliant"),[o.GoodsDeliveryNonCompliantDeclaredVariousReservations]:(0,e.x)("Delivery non compliant - various reservations"),[o.GoodsDeliveryNonCompliantDeclaredMissingDocument]:(0,e.x)("Delivery non compliant - missing document"),[o.GoodsDeliveryRefusedDeclaredCompletelyMissing]:(0,e.x)("Delivery refused - completely missing"),[o.GoodsDeliveryNonCompliantDeclaredUnloadingFinished]:(0,e.x)("Delivery non compliant - unloading finished"),[o.GoodsDeliveryNonCompliantDeclaredReservationsForMissingParcels]:(0,e.x)("Delivery non compliant - reservations for missing parcels"),[o.GoodsDeliveryNonCompliantDeclaredReceiptNotSigned]:(0,e.x)("Delivery non compliant - receipt not signed"),[o.GoodsDeliveryNonCompliantDeclaredSpecifiedDamages]:(0,e.x)("Delivery non compliant - specified damages"),[o.GoodsDeliveryNonCompliantDeclaredMissingOrDamaged]:(0,e.x)("Delivery non compliant - missing or damaged"),[o.GoodsDeliveryNonCompliantDeclaredPilferage]:(0,e.x)("Delivery non compliant - pilferage"),[o.GoodsDeliveryNonRealisedDeclaredNotJustified]:(0,e.x)("Delivery non realised - not justified"),[o.GoodsDeliveryNonRealisedDeclaredClosedForHolidays]:(0,e.x)("Delivery non realised - closed for holidays"),[o.GoodsDeliveryNonRealisedDeclaredWeeklyClosure]:(0,e.x)("Delivery non realised - weekly closure"),[o.GoodsDeliveryNonRealisedDeclaredPhotoAttached]:(0,e.x)("Delivery non realised - photo attached"),[o.GoodsDeliveryNonRealisedDeclaredRecipientNotified]:(0,e.x)("Delivery non realised - recipient notified"),[o.GoodsDeliveryNonRealisedDeclaredAddressUpdateNeeded]:(0,e.x)("Delivery non realised - address update needed"),[o.GoodsDeliveryNonCompliantDeclaredPartiallyMissing]:(0,e.x)("Delivery non compliant - partially missing"),[o.GoodsDeliveryNonRealisedDeclaredRecipientClosed]:(0,e.x)("Delivery non realised - recipient closed"),[o.GoodsDeliveryNonRealisedDeclaredRecipientMoved]:(0,e.x)("Delivery non realised - recipient moved"),[o.GoodsDeliveryNonRealisedDeclaredRecipientUnknownAtAddress]:(0,e.x)("Delivery non realised - recipient unknown at address"),[o.GoodsDeliveryNonRealisedDeclaredForceMajeure]:(0,e.x)("Delivery non realised - force majeure"),[o.GoodsDeliveryNonRealisedDeclaredProblemWithGeographicalPosition]:(0,e.x)("Delivery non realised - problem with geographical position"),[o.GoodsDeliveryNonRealisedDeclaredBadWeather]:(0,e.x)("Delivery non realised - bad weather"),[o.GoodsDeliveryNonRealisedDeclaredNewDeliveryAddress]:(0,e.x)("Delivery non realised - new delivery address"),[o.GoodsDeliveryNonRealisedDeclaredNewAppointment]:(0,e.x)("Delivery non realised - new appointment"),[o.GoodsDeliveryNonRealisedDeclaredOpened]:(0,e.x)("Delivery non realised - opened"),[o.GoodsDeliveryNonRealisedDeclaredMechanicalBreakdown]:(0,e.x)("Delivery non realised - mechanical breakdown"),[o.GoodsDeliveryNonRealisedDeclaredCodedDoor]:(0,e.x)("Delivery non realised - coded door"),[o.GoodsDeliveryNonRealisedDeclaredMissingOrDamaged]:(0,e.x)("Delivery non realised - missing or damaged"),[o.GoodsDeliveryNonRealisedDeclaredPartialDistress]:(0,e.x)("Delivery non realised - partial distress"),[o.GoodsDeliveryRefusedDeclaredNotJustified]:(0,e.x)("Delivery refused - not justified"),[o.GoodsDeliveryRefusedDeclaredVariousReasons]:(0,e.x)("Delivery refused - various reasons"),[o.GoodsDeliveryRefusedDeclaredPartiallyMissing]:(0,e.x)("Delivery refused - partially missing"),[o.GoodsDeliveryRefusedDeclaredMissingDocument]:(0,e.x)("Delivery refused - missing document"),[o.GoodsDeliveryRefusedDeclaredNotOrdered]:(0,e.x)("Delivery refused - not ordered"),[o.GoodsDeliveryRefusedDeclaredPostageDue]:(0,e.x)("Delivery refused - postage due"),[o.GoodsDeliveryRefusedDeclaredPilferage]:(0,e.x)("Delivery refused - pilferage"),[o.GoodsDeliveryRefusedDeclaredCashOnDelivery]:(0,e.x)("Delivery refused - cash on delivery"),[o.GoodsDeliveryRefusedDeclaredLateDelivery]:(0,e.x)("Delivery refused - late delivery"),[o.GoodsArrivedAtDeliveryHubDeclaredNonCompliant]:(0,e.x)("Arrived at delivery hub - non compliant"),[o.GoodsArrivedAtDeliveryHubDeclaredCompliant]:(0,e.x)("Arrived at delivery hub - compliant"),[o.GoodsArrivedAtDeliveryHubDeclared]:(0,e.x)("Arrived at delivery hub - compliant"),[o.GoodsArrivedAtDeliveryHubDeclaredDamage]:(0,e.x)("Arrived at delivery hub - damage"),[o.GoodsArrivedAtDeliveryHubDeclaredExcessParcels]:(0,e.x)("Arrived at delivery hub - excess parcels"),[o.GoodsArrivedAtDeliveryHubDeclaredCustomsCleared]:(0,e.x)("Arrived at delivery hub - customs cleared"),[o.GoodsArrivedAtDeliveryHubDeclaredMissingDocument]:(0,e.x)("Arrived at delivery hub - missing document"),[o.GoodsArrivedAtDeliveryHubDeclaredDiverted]:(0,e.x)("Arrived at delivery hub - diverted"),[o.GoodsArrivedAtDeliveryHubDeclaredPartiallyMissing]:(0,e.x)("Arrived at delivery hub - partially missing"),[o.GoodsArrivedAtDeliveryHubDeclaredCompletelyMissing]:(0,e.x)("Arrived at delivery hub - completely missing"),[o.GoodsArrivedAtDeliveryHubDeclaredOpened]:(0,e.x)("Arrived at delivery hub - opened"),[o.GoodsArrivedAtDeliveryHubDeclaredPhotoAttached]:(0,e.x)("Arrived at delivery hub - photo attached"),[o.GoodsArrivedAtDeliveryHubDeclaredScanned]:(0,e.x)("Arrived at delivery hub - scanned"),[o.GoodsArrivedAtDeliveryHubDeclaredVisiblyIncorrectWeight]:(0,e.x)("Arrived at delivery hub - visibly incorrect weight"),[o.GoodsArrivedAtDeliveryHubDeclaredSpecifiedDamages]:(0,e.x)("Arrived at delivery hub - specified damages"),[o.GoodsArrivedAtDeliveryHubDeclaredMissingItemsRegularized]:(0,e.x)("Arrived at delivery hub - missing items regularized"),[o.GoodsArrivedAtDeliveryHubDeclaredMissingOrDamaged]:(0,e.x)("Arrived at delivery hub - missing or damaged"),[o.GoodsArrivedAtDeliveryHubDeclaredLatePickupOrArrival]:(0,e.x)("Arrived at delivery hub - late pickup or arrival"),[o.GoodsArrivedAtDeliveryHubDeclaredVisiblyIncorrectVolume]:(0,e.x)("Arrived at delivery hub - visibly incorrect volume"),[o.GoodsArrivedAtHubDeclaredCompliant]:(0,e.x)("Arrived at hub - compliant"),[o.GoodsArrivedAtHubDeclaredNonCompliant]:(0,e.x)("Arrived at hub - non compliant"),[o.GoodsArrivedAtHubDeclaredDamage]:(0,e.x)("Arrived at hub - damage"),[o.GoodsArrivedAtHubDeclaredExcessParcels]:(0,e.x)("Arrived at hub - excess parcels"),[o.GoodsArrivedAtHubDeclaredCustomsCleared]:(0,e.x)("Arrived at hub - customs cleared"),[o.GoodsArrivedAtHubDeclaredMissingDocument]:(0,e.x)("Arrived at hub - missing document"),[o.GoodsArrivedAtHubDeclaredDiverted]:(0,e.x)("Arrived at hub - diverted"),[o.GoodsArrivedAtHubDeclaredPartiallyMissing]:(0,e.x)("Arrived at hub - partially missing"),[o.GoodsArrivedAtHubDeclaredCompletelyMissing]:(0,e.x)("Arrived at hub - completely missing"),[o.GoodsArrivedAtHubDeclaredOpened]:(0,e.x)("Arrived at hub - opened"),[o.GoodsArrivedAtHubDeclaredPhotoAttached]:(0,e.x)("Arrived at hub - photo attached"),[o.GoodsArrivedAtHubDeclaredScanned]:(0,e.x)("Arrived at hub - scanned"),[o.GoodsArrivedAtHubDeclaredVisiblyIncorrectWeight]:(0,e.x)("Arrived at hub - visibly incorrect weight"),[o.GoodsArrivedAtHubDeclaredSpecifiedDamages]:(0,e.x)("Arrived at hub - specified damages"),[o.GoodsArrivedAtHubDeclaredMissingItemsRegularized]:(0,e.x)("Arrived at hub - missing items regularized"),[o.GoodsArrivedAtHubDeclaredMissingOrDamaged]:(0,e.x)("Arrived at hub - missing or damaged"),[o.GoodsArrivedAtHubDeclaredLatePickupOrArrival]:(0,e.x)("Arrived at hub - late pickup or arrival"),[o.GoodsArrivedAtHubDeclaredVisiblyIncorrectVolume]:(0,e.x)("Arrived at hub - visibly incorrect volume"),[o.GoodsLeftDeliveryHubDeclaredShipmentCompliant]:(0,e.x)("Left delivery hub - shipment compliant"),[o.GoodsLeftDeliveryHubDeclaredExcessParcels]:(0,e.x)("Left delivery hub - excess parcels"),[o.GoodsLeftDeliveryHubDeclaredCompletelyMissing]:(0,e.x)("Left delivery hub - completely missing"),[o.GoodsLeftDeliveryHubDeclaredPhotoAttached]:(0,e.x)("Left delivery hub - photo attached"),[o.GoodsLeftDeliveryHubDeclaredScanned]:(0,e.x)("Left delivery hub - scanned"),[o.GoodsLeftDeliveryHubDeclaredSpecifiedDamages]:(0,e.x)("Left delivery hub - specified damages"),[o.GoodsLeftDeliveryHubDeclaredMissingOrDamaged]:(0,e.x)("Left delivery hub - missing or damaged"),[o.GoodsLeftDeliveryHubDeclaredPartiallyMissing]:(0,e.x)("Left delivery hub - partially missing"),[o.GoodsLeftHubDeclaredShipmentCompliant]:(0,e.x)("Left hub - shipment compliant"),[o.GoodsLeftHubDeclaredExcessParcels]:(0,e.x)("Left hub - excess parcels"),[o.GoodsLeftHubDeclaredCompletelyMissing]:(0,e.x)("Left hub - completely missing"),[o.GoodsLeftHubDeclaredPhotoAttached]:(0,e.x)("Left hub - photo attached"),[o.GoodsLeftHubDeclaredScanned]:(0,e.x)("Left hub - scanned"),[o.GoodsLeftHubDeclaredSpecifiedDamages]:(0,e.x)("Left hub - specified damages"),[o.GoodsLeftHubDeclaredMissingOrDamaged]:(0,e.x)("Left hub - missing or damaged"),[o.GoodsLeftHubDeclaredPartiallyMissing]:(0,e.x)("Left hub - partially missing"),[o.GoodsTrackingAbandoned]:(0,e.x)("Tracking abandoned"),[o.GoodsTrackingCompleted]:(0,e.x)("Tracking Completed"),[o.GoodsEtaDeclared]:(0,e.x)("ETA declared"),[o.GoodsDeliveryRefusedDeclaredDamage]:(0,e.x)("Delivery refused - damage"),[o.GoodsOrderAbandoned]:(0,e.x)("Tracking abandoned"),[o.GoodsLoadingCompliantCalculatedCompliant]:(0,e.x)("Loading compliant - compliant"),[o.GoodsOrderCompleted]:(0,e.x)("Tracking completed"),[o.GoodsLoadingNonCompliantCalculatedNonCompliant]:(0,e.x)("Loading non compliant - non compliant"),[o.GoodsLoadingNonCompliantCalculatedPartiallyMissing]:(0,e.x)("Loading non compliant - partially missing"),[o.GoodsLoadingNonCompliantCalculatedExcessParcels]:(0,e.x)("Loading non compliant - excess parcels"),[o.GoodsLoadingNonCompliantCalculatedMissingDocument]:(0,e.x)("Loading non compliant - missing document"),[o.GoodsLoadingNonCompliantCalculatedOpened]:(0,e.x)("Loading non compliant - opened"),[o.GoodsLoadingNonCompliantCalculatedWeightDifference]:(0,e.x)("Loading non compliant - weight difference"),[o.GoodsLoadingNonCompliantCalculatedVolumeDifference]:(0,e.x)("Loading non compliant - volume difference"),[o.GoodsLoadingNonCompliantCalculatedSpecifiedDamages]:(0,e.x)("Loading non compliant - specified damages"),[o.GoodsLoadingNonCompliantCalculatedMissingOrDamaged]:(0,e.x)("Loading non compliant - missing or damaged"),[o.GoodsLoadingNonRealisedCalculatedNotJustified]:(0,e.x)("Loading non realised - not justified"),[o.GoodsLoadingNonRealisedCalculatedShipperAbsent]:(0,e.x)("Loading non realised - shipper absent"),[o.GoodsLoadingNonRealisedCalculatedClosedForHolidays]:(0,e.x)("Loading non realised - closed for holidays"),[o.GoodsLoadingNonRealisedCalculatedWeeklyClosure]:(0,e.x)("Loading non realised - weekly closure"),[o.GoodsLoadingNonRealisedCalculatedPartiallyMissing]:(0,e.x)("Loading non realised - partially missing"),[o.GoodsLoadingNonRealisedCalculatedGoodsUnavailable]:(0,e.x)("Loading non realised - goods unavailable"),[o.GoodsLoadingNonRealisedCalculatedPhotoAttached]:(0,e.x)("Loading non realised - photo attached"),[o.GoodsLoadingNonRealisedCalculatedShipperNotified]:(0,e.x)("Loading non realised - shipper notified"),[o.GoodsLoadingNonRealisedCalculatedAddressUpdateNeeded]:(0,e.x)("Loading non realised - address update needed"),[o.GoodsLoadingNonRealisedCalculatedCustomsClearanceInProgress]:(0,e.x)("Loading non realised - customs clearance in progress"),[o.GoodsLoadingNonRealisedCalculatedShipperMoved]:(0,e.x)("Loading non realised - shipper moved"),[o.GoodsLoadingNonRealisedCalculatedShipperUnknownAtAddress]:(0,e.x)("Loading non realised - shipper unknown at address"),[o.GoodsLoadingNonRealisedCalculatedForceMajeure]:(0,e.x)("Loading non realised - force majeure"),[o.GoodsLoadingNonRealisedCalculatedBadWeather]:(0,e.x)("Loading non realised - bad weather"),[o.GoodsLoadingNonRealisedCalculatedNewPickupAddress]:(0,e.x)("Loading non realised - new pickup address"),[o.GoodsLoadingNonRealisedCalculatedNewAppointment]:(0,e.x)("Loading non realised - new appointment"),[o.GoodsLoadingNonRealisedCalculatedMechanicalBreakdown]:(0,e.x)("Loading non realised - mechanical breakdown"),[o.GoodsLoadingNonRealisedCalculatedCodedDoor]:(0,e.x)("Loading non realised - coded door"),[o.GoodsLoadingNonRealisedCalculatedScanned]:(0,e.x)("Loading non realised - scanned"),[o.GoodsLoadingNonRealisedCalculatedUnexpectedWeight]:(0,e.x)("Loading non realised - unexpected weight"),[o.GoodsLoadingNonRealisedCalculatedSpecifiedDamages]:(0,e.x)("Loading non realised - specified damages"),[o.GoodsLoadingNonRealisedCalculatedMissingOrDamaged]:(0,e.x)("Loading non realised - missing or damaged"),[o.GoodsLoadingNonRealisedCalculatedUnexpectedVolume]:(0,e.x)("Loading non realised - unexpected volume"),[o.GoodsLoadingRefusedCalculatedNonCompliant]:(0,e.x)("Loading refused - non compliant"),[o.GoodsLoadingRefusedCalculatedVariousReasons]:(0,e.x)("Loading refused - various reasons"),[o.GoodsLoadingRefusedCalculatedLateCollection]:(0,e.x)("Loading refused - late collection"),[o.GoodsLoadingRefusedCalculatedDamage]:(0,e.x)("Loading refused - damage"),[o.GoodsLoadingRefusedCalculatedClearanceRefused]:(0,e.x)("Loading refused - clearance refused"),[o.GoodsLoadingRefusedCalculatedMissingDocument]:(0,e.x)("Loading refused - missing document"),[o.GoodsDeliveryCompliantCalculatedCompliant]:(0,e.x)("Delivery compliant - compliant"),[o.GoodsDeliveryNonCompliantCalculatedVariousReservations]:(0,e.x)("Delivery non compliant - various reservations"),[o.GoodsDeliveryNonCompliantCalculatedMissingDocument]:(0,e.x)("Delivery non compliant - missing document"),[o.GoodsDeliveryNonCompliantCalculatedUnloadingFinished]:(0,e.x)("Delivery non compliant - unloading finished"),[o.GoodsDeliveryNonCompliantCalculatedReservationsForMissingParcels]:(0,e.x)("Delivery non compliant - reservations for missing parcels"),[o.GoodsDeliveryNonCompliantCalculatedReceiptNotSigned]:(0,e.x)("Delivery non compliant - receipt not signed"),[o.GoodsDeliveryNonCompliantCalculatedSpecifiedDamages]:(0,e.x)("Delivery non compliant - specified damages"),[o.GoodsDeliveryNonCompliantCalculatedMissingOrDamaged]:(0,e.x)("Delivery non compliant - missing or damaged"),[o.GoodsDeliveryNonCompliantCalculatedPilferage]:(0,e.x)("Delivery non compliant - pilferage"),[o.GoodsDeliveryNonRealisedCalculatedNotJustified]:(0,e.x)("Delivery non realised - not justified"),[o.GoodsDeliveryNonRealisedCalculatedClosedForHolidays]:(0,e.x)("Delivery non realised - closed for holidays"),[o.GoodsDeliveryNonRealisedCalculatedWeeklyClosure]:(0,e.x)("Delivery non realised - weekly closure"),[o.GoodsDeliveryNonRealisedCalculatedPhotoAttached]:(0,e.x)("Delivery non realised - photo attached"),[o.GoodsDeliveryNonRealisedCalculatedRecipientNotified]:(0,e.x)("Delivery non realised - recipient notified"),[o.GoodsDeliveryNonRealisedCalculatedAddressUpdateNeeded]:(0,e.x)("Delivery non realised - address update needed"),[o.GoodsDeliveryNonRealisedCalculatedRecipientClosed]:(0,e.x)("Delivery non realised - recipient closed"),[o.GoodsDeliveryNonRealisedCalculatedRecipientMoved]:(0,e.x)("Delivery non realised - recipient moved"),[o.GoodsDeliveryNonRealisedCalculatedRecipientUnknownAtAddress]:(0,e.x)("Delivery non realised - recipient unknown at address"),[o.GoodsDeliveryNonRealisedCalculatedForceMajeure]:(0,e.x)("Delivery non realised - force majeure"),[o.GoodsDeliveryNonRealisedCalculatedProblemWithGeographicalPosition]:(0,e.x)("Delivery non realised - problem with geographical position"),[o.GoodsDeliveryNonRealisedCalculatedBadWeather]:(0,e.x)("Delivery non realised - bad weather"),[o.GoodsDeliveryNonRealisedCalculatedNewDeliveryAddress]:(0,e.x)("Delivery non realised - new delivery address"),[o.GoodsDeliveryNonRealisedCalculatedNewAppointment]:(0,e.x)("Delivery non realised - new appointment"),[o.GoodsDeliveryNonRealisedCalculatedOpened]:(0,e.x)("Delivery non realised - opened"),[o.GoodsDeliveryNonRealisedCalculatedMechanicalBreakdown]:(0,e.x)("Delivery non realised - mechanical breakdown"),[o.GoodsDeliveryNonRealisedCalculatedCodedDoor]:(0,e.x)("Delivery non realised - coded door"),[o.GoodsDeliveryNonRealisedCalculatedMissingOrDamaged]:(0,e.x)("Delivery non realised - missing or damaged"),[o.GoodsDeliveryNonRealisedCalculatedPartialDistress]:(0,e.x)("Delivery non realised - partial distress"),[o.GoodsDeliveryRefusedCalculatedVariousReasons]:(0,e.x)("Delivery refused - various reasons"),[o.GoodsDeliveryRefusedCalculatedPartiallyMissing]:(0,e.x)("Delivery refused - partially missing"),[o.GoodsDeliveryRefusedCalculatedMissingDocument]:(0,e.x)("Delivery refused - missing document"),[o.GoodsDeliveryRefusedCalculatedNotOrdered]:(0,e.x)("Delivery refused - not ordered"),[o.GoodsDeliveryRefusedCalculatedPostageDue]:(0,e.x)("Delivery refused - postage due"),[o.GoodsDeliveryRefusedCalculatedPilferage]:(0,e.x)("Delivery refused - pilferage"),[o.GoodsDeliveryRefusedCalculatedCashOnDelivery]:(0,e.x)("Delivery refused - cash on delivery"),[o.GoodsDeliveryRefusedCalculatedLateDelivery]:(0,e.x)("Delivery refused - late delivery"),[o.GoodsArrivedAtDeliveryHubCalculatedNonCompliant]:(0,e.x)("Arrived at delivery hub - non compliant"),[o.GoodsArrivedAtDeliveryHubCalculatedDamage]:(0,e.x)("Arrived at delivery hub - damage"),[o.GoodsArrivedAtDeliveryHubCalculatedExcessParcels]:(0,e.x)("Arrived at delivery hub - excess parcels"),[o.GoodsArrivedAtDeliveryHubCalculatedCustomsCleared]:(0,e.x)("Arrived at delivery hub - customs cleared"),[o.GoodsArrivedAtDeliveryHubCalculatedMissingDocument]:(0,e.x)("Arrived at delivery hub - missing document"),[o.GoodsArrivedAtDeliveryHubCalculatedDiverted]:(0,e.x)("Arrived at delivery hub - diverted"),[o.GoodsArrivedAtDeliveryHubCalculatedPartiallyMissing]:(0,e.x)("Arrived at delivery hub - partially missing"),[o.GoodsArrivedAtDeliveryHubCalculatedCompletelyMissing]:(0,e.x)("Arrived at delivery hub - completely missing"),[o.GoodsArrivedAtDeliveryHubCalculatedOpened]:(0,e.x)("Arrived at delivery hub - opened"),[o.GoodsArrivedAtDeliveryHubCalculatedPhotoAttached]:(0,e.x)("Arrived at delivery hub - photo attached"),[o.GoodsArrivedAtDeliveryHubCalculatedScanned]:(0,e.x)("Arrived at delivery hub - scanned"),[o.GoodsArrivedAtDeliveryHubCalculatedVisiblyIncorrectWeight]:(0,e.x)("Arrived at delivery hub - visibly incorrect weight"),[o.GoodsArrivedAtDeliveryHubCalculatedSpecifiedDamages]:(0,e.x)("Arrived at delivery hub - specified damages"),[o.GoodsArrivedAtDeliveryHubCalculatedMissingItemsRegularized]:(0,e.x)("Arrived at delivery hub - missing items regularized"),[o.GoodsArrivedAtDeliveryHubCalculatedMissingOrDamaged]:(0,e.x)("Arrived at delivery hub - missing or damaged"),[o.GoodsArrivedAtDeliveryHubCalculatedLatePickupOrArrival]:(0,e.x)("Arrived at delivery hub - late pickup or arrival"),[o.GoodsArrivedAtDeliveryHubCalculatedVisiblyIncorrectVolume]:(0,e.x)("Arrived at delivery hub - visibly incorrect volume"),[o.GoodsArrivedAtHubCalculatedNonCompliant]:(0,e.x)("Arrived at hub - non compliant"),[o.GoodsArrivedAtHubCalculatedDamage]:(0,e.x)("Arrived at hub - damage"),[o.GoodsArrivedAtHubCalculatedExcessParcels]:(0,e.x)("Arrived at hub - excess parcels"),[o.GoodsArrivedAtHubCalculatedCustomsCleared]:(0,e.x)("Arrived at hub - customs cleared"),[o.GoodsArrivedAtHubCalculatedMissingDocument]:(0,e.x)("Arrived at hub - missing document"),[o.GoodsArrivedAtHubCalculatedDiverted]:(0,e.x)("Arrived at hub - diverted"),[o.GoodsArrivedAtHubCalculatedPartiallyMissing]:(0,e.x)("Arrived at hub - partially missing"),[o.GoodsArrivedAtHubCalculatedCompletelyMissing]:(0,e.x)("Arrived at hub - completely missing"),[o.GoodsArrivedAtHubCalculatedOpened]:(0,e.x)("Arrived at hub - opened"),[o.GoodsArrivedAtHubCalculatedPhotoAttached]:(0,e.x)("Arrived at hub - photo attached"),[o.GoodsArrivedAtHubCalculatedScanned]:(0,e.x)("Arrived at hub - scanned"),[o.GoodsArrivedAtHubCalculatedVisiblyIncorrectWeight]:(0,e.x)("Arrived at hub - visibly incorrect weight"),[o.GoodsArrivedAtHubCalculatedSpecifiedDamages]:(0,e.x)("Arrived at hub - specified damages"),[o.GoodsArrivedAtHubCalculatedMissingItemsRegularized]:(0,e.x)("Arrived at hub - missing items regularized"),[o.GoodsArrivedAtHubCalculatedMissingOrDamaged]:(0,e.x)("Arrived at hub - missing or damaged"),[o.GoodsArrivedAtHubCalculatedLatePickupOrArrival]:(0,e.x)("Arrived at hub - late pickup or arrival"),[o.GoodsArrivedAtHubCalculatedVisiblyIncorrectVolume]:(0,e.x)("Arrived at hub - visibly incorrect volume"),[o.GoodsLeftDeliveryHubCalculatedShipmentCompliant]:(0,e.x)("Left delivery hub - shipment compliant"),[o.GoodsLeftDeliveryHubCalculatedExcessParcels]:(0,e.x)("Left delivery hub - excess parcels"),[o.GoodsLeftDeliveryHubCalculatedCompletelyMissing]:(0,e.x)("Left delivery hub - completely missing"),[o.GoodsLeftDeliveryHubCalculatedPhotoAttached]:(0,e.x)("Left delivery hub - photo attached"),[o.GoodsLeftDeliveryHubCalculatedScanned]:(0,e.x)("Left delivery hub - scanned"),[o.GoodsLeftDeliveryHubCalculatedSpecifiedDamages]:(0,e.x)("Left delivery hub - specified damages"),[o.GoodsLeftDeliveryHubCalculatedMissingOrDamaged]:(0,e.x)("Left delivery hub - missing or damaged"),[o.GoodsLeftDeliveryHubCalculatedPartiallyMissing]:(0,e.x)("Left delivery hub - partially missing"),[o.GoodsLeftHubCalculatedShipmentCompliant]:(0,e.x)("Left hub - shipment compliant"),[o.GoodsLeftHubCalculatedExcessParcels]:(0,e.x)("Left hub - excess parcels"),[o.GoodsLeftHubCalculatedCompletelyMissing]:(0,e.x)("Left hub - completely missing"),[o.GoodsLeftHubCalculatedPhotoAttached]:(0,e.x)("Left hub - photo attached"),[o.GoodsLeftHubCalculatedScanned]:(0,e.x)("Left hub - scanned"),[o.GoodsLeftHubCalculatedSpecifiedDamages]:(0,e.x)("Left hub - specified damages"),[o.GoodsLeftHubCalculatedMissingOrDamaged]:(0,e.x)("Left hub - missing or damaged"),[o.GoodsLeftHubCalculatedPartiallyMissing]:(0,e.x)("Left hub - partially missing"),[o.GoodsLeftHubDeclaredMissingDocument]:(0,e.x)("Left hub - missing document"),[o.GoodsLeftHubDeclaredUnloadingStarted]:(0,e.x)("Left hub - unloading started"),[o.GoodsDeliveryRefusedCalculatedDamage]:(0,e.x)("Delivery refused - damage"),[o.GoodsDeliveryRefusedCalculatedCompletelyMissing]:(0,e.x)("Delivery refused - completely missing"),[o.OrderInTransitCalculated]:(0,e.x)("In transit"),[o.OrderInTransitDeclared]:(0,e.x)("In transit"),[o.OrderReadyForPickupDeclared]:(0,e.x)("Ready for pickup"),[o.OrderReadyForPickupCalculated]:(0,e.x)("Ready for pickup"),[o.HuReadyForPickupDeclared]:(0,e.x)("Ready for pickup"),[o.HuReadyForPickupCalculated]:(0,e.x)("Ready for pickup"),[o.GoodsNotRelevant]:(0,e.x)("Goods not relevant"),[o.GoodsLoadingCompliant]:(0,e.x)("Loading compliant"),[o.GoodsLoadingNonCompliant]:(0,e.x)("Loading non compliant"),[o.GoodsDeliveryCompliant]:(0,e.x)("Delivery compliant"),[o.GoodsDeliveryNonCompliant]:(0,e.x)("Delivery non compliant"),[o.GoodsArrived]:(0,e.x)("Arrived"),[o.GoodsLeftHub]:(0,e.x)("Left hub"),[o.GoodsArrivedAtHub]:(0,e.x)("Arrived at Hub"),[o.GoodsDeliveryHub]:(0,e.x)("Delivery hub"),[o.GoodsArrivedAtDeliveryHub]:(0,e.x)("Arrived at delivery hub"),[o.GoodsLeftDeliveryHub]:(0,e.x)("Left delivery hub"),[o.GoodsDeliveryNonRealised]:(0,e.x)("Delivery non realised"),[o.GoodsInTransit]:(0,e.x)("In transit"),[o.GoodsReadyForPickup]:(0,e.x)("Ready for pickup"),[o.GoodsLoadingNonRealised]:(0,e.x)("Loading non realised"),[o.GoodsDeliveryRefused]:(0,e.x)("Delivery refused"),[o.GoodsLoadingRefused]:(0,e.x)("Loading refused"),[o.GoodsCompleted]:(0,e.x)("Completed"),[o.GoodsCanceled]:(0,e.x)("Canceled")},i=[o.GoodsLoadingCompliantCalculatedCompliant,o.GoodsDeliveryCompliantCalculatedCompliant,o.GoodsLoadingCompliantDeclaredCompliant,o.GoodsDeliveryCompliantDeclaredCompliant,o.OrderReadyForPickupDeclared,o.OrderReadyForPickupCalculated,o.HuReadyForPickupCalculated,o.HuReadyForPickupDeclared],p=[o.GoodsLoadingNonCompliantDeclaredExcessParcels,o.GoodsLoadingNonCompliantDeclaredMissingDocument,o.GoodsLoadingNonCompliantDeclaredOpened,o.GoodsLoadingNonCompliantDeclaredWeightDifference,o.GoodsLoadingNonCompliantDeclaredVolumeDifference,o.GoodsLoadingNonCompliantDeclaredSpecifiedDamages,o.GoodsLoadingNonCompliantDeclaredMissingOrDamaged,o.GoodsLoadingNonRealisedDeclaredNotJustified,o.GoodsLoadingNonRealisedDeclaredShipperAbsent,o.GoodsLoadingNonRealisedDeclaredClosedForHolidays,o.GoodsLoadingNonRealisedDeclaredWeeklyClosure,o.GoodsLoadingNonRealisedDeclaredPartiallyMissing,o.GoodsLoadingNonRealisedDeclaredGoodsUnavailable,o.GoodsLoadingNonRealisedDeclaredPhotoAttached,o.GoodsLoadingNonRealisedDeclaredShipperNotified,o.GoodsLoadingNonRealisedDeclaredAddressUpdateNeeded,o.GoodsLoadingNonRealisedDeclaredCustomsClearanceInProgress,o.GoodsLoadingNonRealisedDeclaredShipperMoved,o.GoodsLoadingNonRealisedDeclaredShipperUnknownAtAddress,o.GoodsLoadingNonRealisedDeclaredForceMajeure,o.GoodsLoadingNonRealisedDeclaredBadWeather,o.GoodsLoadingNonRealisedDeclaredNewPickupAddress,o.GoodsLoadingNonRealisedDeclaredNewAppointment,o.GoodsLoadingNonRealisedDeclaredMechanicalBreakdown,o.GoodsLoadingNonRealisedDeclaredCodedDoor,o.GoodsLoadingNonRealisedDeclaredScanned,o.GoodsLoadingNonRealisedDeclaredUnexpectedWeight,o.GoodsLoadingNonRealisedDeclaredSpecifiedDamages,o.GoodsLoadingNonRealisedDeclaredMissingOrDamaged,o.GoodsLoadingNonRealisedDeclaredUnexpectedVolume,o.GoodsLoadingNonCompliantDeclaredPartiallyMissing,o.GoodsLoadingNonCompliantDeclaredNonCompliant,o.GoodsLoadingNonCompliantCalculatedNonCompliant,o.GoodsLoadingNonCompliantCalculatedPartiallyMissing,o.GoodsLoadingNonCompliantCalculatedExcessParcels,o.GoodsLoadingNonCompliantCalculatedMissingDocument,o.GoodsLoadingNonCompliantCalculatedOpened,o.GoodsLoadingNonCompliantCalculatedWeightDifference,o.GoodsLoadingNonCompliantCalculatedVolumeDifference,o.GoodsLoadingNonCompliantCalculatedSpecifiedDamages,o.GoodsLoadingNonCompliantCalculatedMissingOrDamaged,o.GoodsLoadingNonRealisedCalculatedNotJustified,o.GoodsLoadingNonRealisedCalculatedShipperAbsent,o.GoodsLoadingNonRealisedCalculatedClosedForHolidays,o.GoodsLoadingNonRealisedCalculatedWeeklyClosure,o.GoodsLoadingNonRealisedCalculatedPartiallyMissing,o.GoodsLoadingNonRealisedCalculatedGoodsUnavailable,o.GoodsLoadingNonRealisedCalculatedPhotoAttached,o.GoodsLoadingNonRealisedCalculatedShipperNotified,o.GoodsLoadingNonRealisedCalculatedAddressUpdateNeeded,o.GoodsLoadingNonRealisedCalculatedCustomsClearanceInProgress,o.GoodsLoadingNonRealisedCalculatedShipperMoved,o.GoodsLoadingNonRealisedCalculatedShipperUnknownAtAddress,o.GoodsLoadingNonRealisedCalculatedForceMajeure,o.GoodsLoadingNonRealisedCalculatedBadWeather,o.GoodsLoadingNonRealisedCalculatedNewPickupAddress,o.GoodsLoadingNonRealisedCalculatedNewAppointment,o.GoodsLoadingNonRealisedCalculatedMechanicalBreakdown,o.GoodsLoadingNonRealisedCalculatedCodedDoor,o.GoodsLoadingNonRealisedCalculatedScanned,o.GoodsLoadingNonRealisedCalculatedUnexpectedWeight,o.GoodsLoadingNonRealisedCalculatedSpecifiedDamages,o.GoodsLoadingNonRealisedCalculatedMissingOrDamaged,o.GoodsLoadingNonRealisedCalculatedUnexpectedVolume],f=[o.GoodsLoadingRefusedDeclaredLateCollection,o.GoodsLoadingRefusedDeclaredCustomsClearanceRefused,o.GoodsLoadingRefusedCalculatedNonCompliant,o.GoodsLoadingRefusedCalculatedVariousReasons,o.GoodsLoadingRefusedCalculatedLateCollection,o.GoodsLoadingRefusedCalculatedDamage,o.GoodsLoadingRefusedCalculatedClearanceRefused,o.GoodsLoadingRefusedCalculatedMissingDocument,o.GoodsLoadingRefusedDeclaredMissingDocument,o.GoodsLoadingRefusedDeclaredDamage,o.GoodsLoadingRefusedDeclaredDamage,o.GoodsLoadingRefusedDeclaredVariousReasons,o.GoodsLoadingRefusedDeclaredNonCompliant],N=[o.GoodsDeliveryNonCompliantDeclaredPartiallyMissing,o.GoodsLoadingNonCompliantCalculated,o.GoodsDeliveryNonCompliantDeclaredVariousReservations,o.GoodsDeliveryNonCompliantDeclaredMissingDocument,o.GoodsDeliveryNonCompliantDeclaredUnloadingFinished,o.GoodsDeliveryNonCompliantDeclaredReservationsForMissingParcels,o.GoodsDeliveryNonCompliantDeclaredReceiptNotSigned,o.GoodsDeliveryNonCompliantDeclaredSpecifiedDamages,o.GoodsDeliveryNonCompliantDeclaredMissingOrDamaged,o.GoodsDeliveryNonCompliantDeclaredPilferage,o.GoodsDeliveryNonRealisedDeclaredNotJustified,o.GoodsDeliveryNonRealisedDeclaredClosedForHolidays,o.GoodsDeliveryNonRealisedDeclaredWeeklyClosure,o.GoodsDeliveryNonRealisedDeclaredPhotoAttached,o.GoodsDeliveryNonRealisedDeclaredRecipientNotified,o.GoodsDeliveryNonRealisedDeclaredAddressUpdateNeeded,o.GoodsDeliveryNonRealisedDeclaredRecipientClosed,o.GoodsDeliveryNonRealisedDeclaredRecipientMoved,o.GoodsDeliveryNonRealisedDeclaredRecipientUnknownAtAddress,o.GoodsDeliveryNonRealisedDeclaredForceMajeure,o.GoodsDeliveryNonRealisedDeclaredProblemWithGeographicalPosition,o.GoodsDeliveryNonRealisedDeclaredBadWeather,o.GoodsDeliveryNonRealisedDeclaredNewDeliveryAddress,o.GoodsDeliveryNonRealisedDeclaredNewAppointment,o.GoodsDeliveryNonRealisedDeclaredOpened,o.GoodsDeliveryNonRealisedDeclaredMechanicalBreakdown,o.GoodsDeliveryNonRealisedDeclaredCodedDoor,o.GoodsDeliveryNonRealisedDeclaredMissingOrDamaged,o.GoodsDeliveryNonRealisedDeclaredPartialDistress,o.GoodsDeliveryNonCompliantCalculatedVariousReservations,o.GoodsDeliveryNonCompliantCalculatedMissingDocument,o.GoodsDeliveryNonCompliantCalculatedUnloadingFinished,o.GoodsDeliveryNonCompliantCalculatedReservationsForMissingParcels,o.GoodsDeliveryNonCompliantCalculatedReceiptNotSigned,o.GoodsDeliveryNonCompliantCalculatedSpecifiedDamages,o.GoodsDeliveryNonCompliantCalculatedMissingOrDamaged,o.GoodsDeliveryNonCompliantCalculatedPilferage,o.GoodsDeliveryNonRealisedCalculatedNotJustified,o.GoodsDeliveryNonRealisedCalculatedClosedForHolidays,o.GoodsDeliveryNonRealisedCalculatedWeeklyClosure,o.GoodsDeliveryNonRealisedCalculatedPhotoAttached,o.GoodsDeliveryNonRealisedCalculatedRecipientNotified,o.GoodsDeliveryNonRealisedCalculatedAddressUpdateNeeded,o.GoodsDeliveryNonRealisedCalculatedRecipientClosed,o.GoodsDeliveryNonRealisedCalculatedRecipientMoved,o.GoodsDeliveryNonRealisedCalculatedRecipientUnknownAtAddress,o.GoodsDeliveryNonRealisedCalculatedForceMajeure,o.GoodsDeliveryNonRealisedCalculatedProblemWithGeographicalPosition,o.GoodsDeliveryNonRealisedCalculatedBadWeather,o.GoodsDeliveryNonRealisedCalculatedNewDeliveryAddress,o.GoodsDeliveryNonRealisedCalculatedNewAppointment,o.GoodsDeliveryNonRealisedCalculatedOpened,o.GoodsDeliveryNonRealisedCalculatedMechanicalBreakdown,o.GoodsDeliveryNonRealisedCalculatedCodedDoor,o.GoodsDeliveryNonRealisedCalculatedMissingOrDamaged,o.GoodsDeliveryNonRealisedCalculatedPartialDistress],A=[o.GoodsDeliveryRefusedDeclaredNotJustified,o.GoodsDeliveryRefusedDeclaredVariousReasons,o.GoodsDeliveryRefusedDeclaredPartiallyMissing,o.GoodsDeliveryRefusedDeclaredMissingDocument,o.GoodsDeliveryRefusedDeclaredNotOrdered,o.GoodsDeliveryRefusedDeclaredPostageDue,o.GoodsDeliveryRefusedDeclaredPilferage,o.GoodsDeliveryRefusedDeclaredCashOnDelivery,o.GoodsDeliveryRefusedDeclaredLateDelivery,o.GoodsDeliveryRefusedDeclaredDamage,o.GoodsDeliveryRefusedCalculatedVariousReasons,o.GoodsDeliveryRefusedCalculatedPartiallyMissing,o.GoodsDeliveryRefusedCalculatedMissingDocument,o.GoodsDeliveryRefusedCalculatedNotOrdered,o.GoodsDeliveryRefusedCalculatedPostageDue,o.GoodsDeliveryRefusedCalculatedPilferage,o.GoodsDeliveryRefusedCalculatedCashOnDelivery,o.GoodsDeliveryRefusedCalculatedLateDelivery,o.GoodsDeliveryRefusedCalculatedDamage,o.GoodsDeliveryRefusedDeclaredCompletelyMissing,o.GoodsDeliveryRefusedCalculatedCompletelyMissing],I=[o.GoodsArrivedAtHubDeclaredScanned,o.GoodsArrivedAtHubCalculatedScanned,o.GoodsArrivedAtHubDeclaredCompliant,o.GoodsArrivedAtHubDeclaredNonCompliant,o.GoodsArrivedAtHubDeclaredDamage,o.GoodsArrivedAtHubDeclaredExcessParcels,o.GoodsArrivedAtHubDeclaredCustomsCleared,o.GoodsArrivedAtHubDeclaredMissingDocument,o.GoodsArrivedAtHubDeclaredDiverted,o.GoodsArrivedAtHubDeclaredPartiallyMissing,o.GoodsArrivedAtHubDeclaredCompletelyMissing,o.GoodsArrivedAtHubDeclaredOpened,o.GoodsArrivedAtHubDeclaredPhotoAttached,o.GoodsArrivedAtHubDeclaredVisiblyIncorrectWeight,o.GoodsArrivedAtHubDeclaredSpecifiedDamages,o.GoodsArrivedAtHubDeclaredMissingItemsRegularized,o.GoodsArrivedAtHubDeclaredMissingOrDamaged,o.GoodsArrivedAtHubDeclaredLatePickupOrArrival,o.GoodsArrivedAtHubDeclaredVisiblyIncorrectVolume,o.GoodsLeftHubDeclaredExcessParcels,o.GoodsLeftHubDeclaredShipmentCompliant,o.GoodsLeftHubDeclaredMissingOrDamaged,o.GoodsLeftHubDeclaredPartiallyMissing,o.GoodsLeftHubDeclaredPhotoAttached,o.GoodsLeftHubDeclaredScanned,o.GoodsLeftHubDeclaredSpecifiedDamages,o.GoodsArrivedAtDeliveryHubDeclaredNonCompliant,o.GoodsArrivedAtDeliveryHubDeclaredExcessParcels,o.GoodsLeftDeliveryHubDeclaredShipmentCompliant,o.GoodsLeftDeliveryHubDeclaredCompletelyMissing,o.GoodsLeftHubDeclaredCompletelyMissing,o.GoodsArrivedAtDeliveryHubDeclaredDiverted,o.GoodsArrivedAtHubDeclaredNonCompliant,o.GoodsArrivedAtDeliveryHubCalculatedNonCompliant,o.GoodsArrivedAtDeliveryHubCalculatedDamage,o.GoodsArrivedAtDeliveryHubCalculatedExcessParcels,o.GoodsArrivedAtDeliveryHubCalculatedCustomsCleared,o.GoodsArrivedAtDeliveryHubCalculatedMissingDocument,o.GoodsArrivedAtDeliveryHubCalculatedDiverted,o.GoodsArrivedAtDeliveryHubCalculatedPartiallyMissing,o.GoodsArrivedAtDeliveryHubCalculatedCompletelyMissing,o.GoodsArrivedAtDeliveryHubCalculatedOpened,o.GoodsArrivedAtDeliveryHubCalculatedPhotoAttached,o.GoodsArrivedAtDeliveryHubCalculatedScanned,o.GoodsArrivedAtDeliveryHubCalculatedVisiblyIncorrectWeight,o.GoodsArrivedAtDeliveryHubCalculatedSpecifiedDamages,o.GoodsArrivedAtDeliveryHubCalculatedMissingItemsRegularized,o.GoodsArrivedAtDeliveryHubCalculatedMissingOrDamaged,o.GoodsArrivedAtDeliveryHubCalculatedLatePickupOrArrival,o.GoodsArrivedAtDeliveryHubCalculatedVisiblyIncorrectVolume,o.GoodsArrivedAtHubCalculatedNonCompliant,o.GoodsArrivedAtHubCalculatedDamage,o.GoodsArrivedAtHubCalculatedExcessParcels,o.GoodsArrivedAtHubCalculatedCustomsCleared,o.GoodsArrivedAtHubCalculatedMissingDocument,o.GoodsArrivedAtHubCalculatedDiverted,o.GoodsArrivedAtHubCalculatedPartiallyMissing,o.GoodsArrivedAtHubCalculatedCompletelyMissing,o.GoodsArrivedAtHubCalculatedOpened,o.GoodsArrivedAtHubCalculatedPhotoAttached,o.GoodsArrivedAtHubCalculatedScanned,o.GoodsArrivedAtHubCalculatedVisiblyIncorrectWeight,o.GoodsArrivedAtHubCalculatedSpecifiedDamages,o.GoodsArrivedAtHubCalculatedMissingItemsRegularized,o.GoodsArrivedAtHubCalculatedMissingOrDamaged,o.GoodsArrivedAtHubCalculatedLatePickupOrArrival,o.GoodsArrivedAtHubCalculatedVisiblyIncorrectVolume,o.GoodsLeftDeliveryHubCalculatedShipmentCompliant,o.GoodsLeftDeliveryHubCalculatedExcessParcels,o.GoodsLeftDeliveryHubCalculatedCompletelyMissing,o.GoodsLeftDeliveryHubCalculatedPhotoAttached,o.GoodsLeftDeliveryHubCalculatedScanned,o.GoodsLeftDeliveryHubCalculatedSpecifiedDamages,o.GoodsLeftDeliveryHubCalculatedMissingOrDamaged,o.GoodsLeftDeliveryHubCalculatedPartiallyMissing,o.GoodsLeftHubCalculatedShipmentCompliant,o.GoodsLeftHubCalculatedExcessParcels,o.GoodsLeftHubCalculatedCompletelyMissing,o.GoodsLeftHubCalculatedPhotoAttached,o.GoodsLeftHubCalculatedScanned,o.GoodsLeftHubCalculatedSpecifiedDamages,o.GoodsLeftHubCalculatedMissingOrDamaged,o.GoodsLeftHubCalculatedPartiallyMissing,o.GoodsLeftDeliveryHubDeclaredMissingOrDamaged,o.GoodsLeftDeliveryHubDeclaredSpecifiedDamages,o.GoodsLeftDeliveryHubDeclaredScanned,o.GoodsLeftDeliveryHubDeclaredPhotoAttached,o.GoodsLeftDeliveryHubDeclaredPartiallyMissing,o.GoodsLeftHubDeclaredExcessParcels,o.GoodsLeftDeliveryHubDeclaredExcessParcels,o.GoodsArrivedAtDeliveryHubDeclaredVisiblyIncorrectVolume,o.GoodsArrivedAtDeliveryHubDeclaredLatePickupOrArrival,o.GoodsArrivedAtDeliveryHubDeclaredMissingOrDamaged,o.GoodsArrivedAtDeliveryHubDeclaredMissingItemsRegularized,o.GoodsArrivedAtDeliveryHubDeclaredSpecifiedDamages,o.GoodsArrivedAtDeliveryHubDeclaredVisiblyIncorrectWeight,o.GoodsArrivedAtDeliveryHubDeclaredScanned,o.GoodsArrivedAtDeliveryHubDeclaredPhotoAttached,o.GoodsArrivedAtDeliveryHubDeclaredOpened,o.GoodsArrivedAtDeliveryHubDeclaredCompletelyMissing,o.GoodsArrivedAtDeliveryHubDeclaredPartiallyMissing,o.GoodsArrivedAtDeliveryHubDeclaredMissingDocument,o.GoodsArrivedAtDeliveryHubDeclaredCustomsCleared,o.GoodsArrivedAtDeliveryHubDeclaredDamage,o.GoodsArrivedAtDeliveryHubDeclaredCompliant,o.GoodsArrivedAtDeliveryHubDeclared,o.OrderInTransitCalculated,o.OrderInTransitDeclared,o.GoodsLeftHubDeclaredMissingDocument,o.GoodsLeftHubDeclaredUnloadingStarted],b=[o.GoodsOrderAbandoned],l=[o.GoodsOrderCompleted],R=[o.GoodsEtaDeclared];var v=function(y){return y.Calendar="calendar",y.CheckCircle="check-circle",y.ClipboardList="clipboard-list",y.Delivered="delivered",y.DeliverySite="delivery-site",y.DeliveryRefused="delivery-refused",y.Eta="eta",y.Late="late",y.Loaded="loaded",y.LoadingSite="loading-site",y.NoPosition="no-position",y.NotPaired="not-paired",y.OffSite="off-site",y.OnTime="on-time",y.Paired="paired",y.ParcelAlert="parcel-alert",y.ParcelRefused="parcel-refused",y.ParcelValidated="parcel-validated",y.QuestionMarkCircle="question-mark-circle",y.Towards="towards",y.Truck="truck",y.Tag="tag",y.XCircle="x-circle",y.Inprogress="in-progress",y.MapPin="map-pin",y}(v||{}),E=function(y){return y.Anomaly="ANOMALY",y.Planning="PLANNING",y.Problem="PROBLEM",y.Tracking="TRACKING",y.HideAble="HIDEABLE",y.TrackingGoodsEvent="TRACKED_GOODS_EVENT",y.SummaryEvent="SUMMARY_EVENT",y}(E||{}),h=r(31635),C=r(47817);class M{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Number)],M.prototype,"handlingUnitEvents",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Number)],M.prototype,"notificationEvents",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Number)],M.prototype,"orderEvents",void 0);class F{}(0,h.Cg)([(0,C.deserializeAs)(M),(0,h.Sn)("design:type",M)],F.prototype,"eventCount",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],F.prototype,"id",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Number)],F.prototype,"idDecoded",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],F.prototype,"reference",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],F.prototype,"tourHashid",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Number)],F.prototype,"tourId",void 0);const V=(y={})=>(0,C.Deserialize)(y,F);class j{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],j.prototype,"charteredName",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],j.prototype,"chartering",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],j.prototype,"isCharteredAtTourLevel",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],j.prototype,"ownerName",void 0);const Y=(y={})=>(0,C.Deserialize)(y,j);var a=r(36287),P=r(43134);class u{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],u.prototype,"id",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],u.prototype,"name",void 0);class z{}(0,h.Cg)([(0,C.autoserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],z.prototype,"createdAt",void 0),(0,h.Cg)([(0,C.autoserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],z.prototype,"dateEvent",void 0),(0,h.Cg)([(0,C.autoserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],z.prototype,"inputDate",void 0);class H{}(0,h.Cg)([(0,C.autoserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],H.prototype,"endAt",void 0),(0,h.Cg)([(0,C.autoserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],H.prototype,"startAt",void 0);class x{constructor(){this.ANOMALY=E.Anomaly}isAnomaly(){return this.tags.includes(this.ANOMALY)}}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"id",void 0),(0,h.Cg)([(0,C.deserializeAs)(z),(0,h.Sn)("design:type",z)],x.prototype,"dates",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],x.prototype,"isIssue",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Array)],x.prototype,"tags",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"name",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"platformType",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"type",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",u)],x.prototype,"user",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"comment",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",P.yX)],x.prototype,"position",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",H)],x.prototype,"appointment",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"transportMode",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"label",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"timezone",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],x.prototype,"siteName",void 0);const Q=y=>(0,C.Deserialize)(y,x);class O{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],O.prototype,"readDocument",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],O.prototype,"writeDocument",void 0);var X=r(18306),Z=r(91039);const He=new Map([[a.km9.AppointmentLoadTaken,{color:Z.kp.Cobalt,iconName:v.Calendar,type:Z.Oo.Solid}],[a.km9.AppointmentUnloadTaken,{color:Z.kp.Cobalt,iconName:v.Calendar,type:Z.Oo.Solid}],[a.km9.DriverConfirmed,{color:Z.kp.Cobalt,iconName:v.Paired,type:Z.Oo.Solid}],[a.km9.DriverLeftUnload,{color:Z.kp.Cobalt,iconName:v.OffSite,mapIconName:X.Tb.OffSite,type:Z.Oo.Solid}],[a.km9.ConLoad,{color:Z.kp.Cobalt,iconName:v.Loaded,mapIconName:X.Tb.Loaded,type:Z.Oo.Solid}],[a.km9.ConUnload,{color:Z.kp.Cobalt,iconName:v.Delivered,mapIconName:X.Tb.Delivered,type:Z.Oo.Solid}],[a.km9.ArrLoad,{color:Z.kp.Cobalt,iconName:v.LoadingSite,mapIconName:X.Tb.LoadingSite,type:Z.Oo.Solid}],[a.km9.ArrUnload,{color:Z.kp.Cobalt,iconName:v.DeliverySite,mapIconName:X.Tb.DeliverySite,type:Z.Oo.Solid}],[a.km9.LeftLoadingSite,{color:Z.kp.Cobalt,iconName:v.OffSite,mapIconName:X.Tb.OffSite,type:Z.Oo.Solid}],[a.km9.DrivingToLoad,{color:Z.kp.Cobalt,iconName:v.Towards,mapIconName:X.Tb.Towards,type:Z.Oo.Solid}],[a.km9.DrivingToUnload,{color:Z.kp.Cobalt,iconName:v.Towards,mapIconName:X.Tb.Towards,type:Z.Oo.Solid}],[a.km9.LoadingPostponed,{color:Z.kp.Cobalt,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.LoadingWaitingToBeConfirmed,{color:Z.kp.Cobalt,iconName:v.QuestionMarkCircle,type:Z.Oo.Solid}],[a.km9.LoadingWaitingToBeConfirmedResolved,{color:Z.kp.Cobalt,iconName:v.QuestionMarkCircle,type:Z.Oo.Solid}],[a.km9.OrderAddedToATour,{color:Z.kp.Cobalt,iconName:v.ClipboardList,type:Z.Oo.Solid}],[a.km9.OrderCreated,{color:Z.kp.Cobalt,iconName:v.ClipboardList,type:Z.Oo.Solid}],[a.km9.OrderIsPair,{color:Z.kp.Cobalt,iconName:v.Paired,type:Z.Oo.Solid}],[a.km9.OrderIsUnchartered,{color:Z.kp.Cobalt,iconName:v.Truck,type:Z.Oo.Solid}],[a.km9.OrderIsUnpair,{color:Z.kp.Cobalt,iconName:v.NotPaired,type:Z.Oo.Solid}],[a.km9.OrderPending,{color:Z.kp.Cobalt,iconName:v.Truck,type:Z.Oo.Line}],[a.km9.OrderUnfinished,{color:Z.kp.Cobalt,iconName:v.QuestionMarkCircle,type:Z.Oo.Solid}],[a.km9.TourCharteringRequested,{color:Z.kp.Cobalt,iconName:v.Truck,type:Z.Oo.Solid}],[a.km9.TourChartered,{color:Z.kp.Cobalt,iconName:v.Truck,type:Z.Oo.Solid}],[a.km9.TourUnChartered,{color:Z.kp.Cobalt,iconName:v.Truck,type:Z.Oo.Solid}],[a.km9.TourPaired,{color:Z.kp.Cobalt,iconName:v.Paired,type:Z.Oo.Solid}],[a.km9.TourUnpaired,{color:Z.kp.Cobalt,iconName:v.NotPaired,type:Z.Oo.Solid}],[a.km9.UnloadingPostponed,{color:Z.kp.Cobalt,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.CancelOrder,{color:Z.kp.Red,iconName:v.XCircle,type:Z.Oo.Line}],[a.km9.DelayDrivingTowardSiteLoad,{color:Z.kp.Red,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.DelayDrivingTowardSiteUnload,{color:Z.kp.Red,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.DeliveryRefusedByShipperVariousReason,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.LoadingRefusedByShipperVariousReason,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.NoGpsDrivingToLoad,{color:Z.kp.Red,iconName:v.NoPosition,type:Z.Oo.Solid}],[a.km9.NoGpsDrivingToUnload,{color:Z.kp.Red,iconName:v.NoPosition,type:Z.Oo.Solid}],[a.km9.NoPositionOnSiteLoad,{color:Z.kp.Red,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.NoPositionOnSiteUnload,{color:Z.kp.Red,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.OrderDeliveryRefusedDamage,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderDeliveryRefusedLate,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderDeliveryRefusedPartiallyMissing,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderIsRefused,{color:Z.kp.Red,iconName:v.XCircle,type:Z.Oo.Line}],[a.km9.OrderNotDeliveredAbsent,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredAddressObsolete,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredClosedHolidaysInventory,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredClosingHours,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderPendingWaitingConfirmation,{color:Z.kp.Cobalt,iconName:v.Inprogress,type:Z.Oo.Line}],[a.km9.OrderNotDeliveredEntirelyMissing,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredNewAddress,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredNotice,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredReceiverCantPay,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotLoadedEntirelyMissing,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredMissingReturnable,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredNoAccessToSite,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderNotDeliveredResourceIncident,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.OrderRemovedFromTour,{color:Z.kp.Red,iconName:v.XCircle,type:Z.Oo.Solid}],[a.km9.OrderExternalEtaAdded,{color:Z.kp.Cobalt,iconName:v.Eta,type:Z.Oo.Solid}],[a.km9.RefusedLoad,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.RefusedUnload,{color:Z.kp.Red,iconName:v.ParcelRefused,type:Z.Oo.Solid}],[a.km9.SkipDeliveryPhase,{color:Z.kp.Gray,iconName:v.DeliverySite,type:Z.Oo.Solid}],[a.km9.SkipLoadingPhase,{color:Z.kp.Gray,iconName:v.LoadingSite,type:Z.Oo.Solid}],[a.km9.TourCharteringRefused,{color:Z.kp.Red,iconName:v.XCircle,type:Z.Oo.Solid}],[a.km9.CalculatedEarlyDrivingTowardSiteLoad,{color:Z.kp.Green,iconName:v.OnTime,type:Z.Oo.Solid}],[a.km9.OrderConfirmed,{color:Z.kp.Green,iconName:v.CheckCircle,type:Z.Oo.Line}],[a.km9.TourCharteringConfirmed,{color:Z.kp.Green,iconName:v.CheckCircle,type:Z.Oo.Solid}],[a.km9.CalculatedDelayDrivingTowardSiteLoad,{color:Z.kp.Yellow,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.CalculatedDelayDrivingTowardSiteUnload,{color:Z.kp.Yellow,iconName:v.Late,type:Z.Oo.Solid}],[a.km9.GoodsDeliveredNotConform,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.GoodsLoadedNotConform,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.OrderDeliveredNotConformDamage,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.OrderDeliveredNotConformPartiallyMissing,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.OrderLoadedNotConformPartiallyMissing,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.OrderNotLoadedPartiallyMissing,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.UnloadingWaitingToBeConfirmed,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.UnloadingWaitingToBeConfirmedResolved,{color:Z.kp.Yellow,iconName:v.ParcelAlert,type:Z.Oo.Solid}],[a.km9.TagModified,{color:Z.kp.Cobalt,iconName:v.Tag,type:Z.Oo.Solid}],[a.km9.Created,{color:Z.kp.Shippeo,iconName:v.CheckCircle,type:Z.Oo.Solid}],[a.km9.ArrivedAtTerminal,{color:Z.kp.Shippeo,iconName:v.Towards,type:Z.Oo.Solid}],[a.km9.LeftTerminal,{color:Z.kp.Shippeo,iconName:v.Towards,type:Z.Oo.Solid}]]);class L{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"cargoDescription",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],L.prototype,"client",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"comments",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"consignmentReference",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"contractNumber",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],L.prototype,"discussionComment",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Number)],L.prototype,"documentCount",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],L.prototype,"generatedAt",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"id",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],L.prototype,"nextStopPoint",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"reference",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Array)],L.prototype,"tags",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"transportMode",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],L.prototype,"transportType",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],L.prototype,"tripType",void 0);const Ce=(y={})=>(0,C.Deserialize)(y,L);(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Array)],class ce{}.prototype,"relevantNotifications",void 0);class _e{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],_e.prototype,"type",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],_e.prototype,"inputDate",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],_e.prototype,"delay",void 0);class Me{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],Me.prototype,"attributes",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],Me.prototype,"hasMultiPairing",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],Me.prototype,"isPairedAtTourLevel",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],Me.prototype,"pair",void 0);class Ue{constructor(){this.transportMode=a.TT5.Parcel}static OnDeserialized(Le){if(Le.name){const Ke=Le.name.split(".");Le.name=Ke[Ke.length-1]}}setAppointment(Le){this.appointment=Le}}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],Ue.prototype,"id",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],Ue.prototype,"category",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],Ue.prototype,"name",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],Ue.prototype,"version",void 0),(0,h.Cg)([(0,C.autoserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],Ue.prototype,"occurredOn",void 0),(0,h.Cg)([(0,C.autoserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],Ue.prototype,"recordedOn",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],Ue.prototype,"source",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],Ue.prototype,"platform",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Array)],Ue.prototype,"tags",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],Ue.prototype,"user",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],Ue.prototype,"comment",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",P.yX)],Ue.prototype,"position",void 0);class k{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Array)],k.prototype,"allowedCommands",void 0);const We=(y={})=>(0,C.Deserialize)(y,k);class ve{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],ve.prototype,"allowedEvents",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Array)],ve.prototype,"permissions",void 0);var Re=function(y){return y.BillOfLading="BILL_OF_LADING",y.Booking="BOOKING",y.BreakBulk="BREAK_BULK",y.ClientReference="CLIENT_REFERENCE",y.ConsignmentReference="CONSIGNMENT_REFERENCE",y.Container="CONTAINER",y.ContractNumber="CONTRACT_NUMBER",y.Order="ORDER",y.OrderReferenceValue="ORDER_REFERENCE",y.RoRo="RO_RO",y.SalesOrder="SALES_ORDER",y}(Re||{});class he{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],he.prototype,"type",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],he.prototype,"value",void 0);class oe{}(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],oe.prototype,"start",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],oe.prototype,"end",void 0);class qe{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",oe)],qe.prototype,"actual",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],qe.prototype,"onSite",void 0);class w{}(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],w.prototype,"endAt",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],w.prototype,"startAt",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Array)],w.prototype,"permissions",void 0);class re{}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Number)],re.prototype,"activityTime",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",w)],re.prototype,"appointment",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"appointmentState",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],re.prototype,"arrivedAt",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"country",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",qe)],re.prototype,"dates",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Boolean)],re.prototype,"isSkipped",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],re.prototype,"loadedUnloadedAt",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"name",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"placeId",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"postalCode",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"street",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],re.prototype,"theoreticalDepartureDate",void 0),(0,h.Cg)([(0,C.deserializeAs)(a.h0C),(0,h.Sn)("design:type",Date)],re.prototype,"theoreticalEndAt",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"timezone",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],re.prototype,"town",void 0);class le{constructor(){this.canAddExternalEta={}}}(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",re)],le.prototype,"arrival",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],le.prototype,"canAddExternalEta",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",String)],le.prototype,"currentStatus",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",re)],le.prototype,"departure",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],le.prototype,"newTour",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],le.prototype,"orderActor",void 0),(0,h.Cg)([C.deserialize,(0,h.Sn)("design:type",Object)],le.prototype,"timeline",void 0),(0,h.Cg)([(0,C.autoserializeAs)(a.hNF),(0,h.Sn)("design:type",Array)],le.prototype,"stops",void 0);const Ae=(y={})=>(0,C.Deserialize)(y,le)},78792:(fe,J,r)=>{"use strict";r.d(J,{PV:()=>A,Ei:()=>b,mY:()=>I});var t=r(48891),e=r(63016),o=r(36287),s=r(27691),i=r(47947),p=r(12596),f=r(2233),N=r(66162);let A=(()=>{class l{constructor(){this.apiService=(0,t.WQX)(p.Gf),this.environment=(0,t.WQX)(f.O),this.exportService=(0,t.WQX)(N._T),this.query=v=>(v=v.set("include","address,organization"),this.apiService.query(p.M$.Organizations,{params:v}).pipe((0,i.T)(E=>new p.Qw(E,E.data.map(o.AxT)))))}create(v){return this.apiService.post(p.M$.Organizations,v).pipe((0,i.T)(o.AxT))}exportOrders({organization:v,format:E,limit:h}){return this.exportService.exportOrders({format:E,organization:v,limit:parseInt(h,10)}).pipe((0,i.T)(C=>(0,N.PE)(C)))}get(v){const E=(new s.Nl).set("include","address,organization,agencies,accountOwner");return this.apiService.get(p.M$.Organization.replace(":id",v),{params:E}).pipe((0,i.T)(o.AxT))}getOrganizationOwners(v){if(!v)return(0,e.of)([]);const E=(new s.Nl).set("isDriver","false");return this.apiService.query(`${p.M$.Users}?filter[organization]=${v}`,{params:E}).pipe((0,i.T)(({data:h})=>[...h].filter(C=>C.roles.includes(o.$HO.ClientExploitant)).map(C=>({id:C.id,label:C.username,value:C.id}))))}getSalesforceAccountUrl(v){return`${this.environment.getProperty("SALESFORCE_URL")}/lightning/r/Account/${v}/view`}queryCharterableAgencyOrganization(v,E=new s.Nl){const h=`${p.M$.Agencies}${p.M$.CharterableAgencyLinks}${p.M$.OrganizationAgencies}`;return E=E.set("agencies",v.join()),this.apiService.query(h,{params:E}).pipe((0,i.T)(C=>C.map(o.l4F)))}save(v){return v.id?this.update(v):this.create(v)}update(v){return this.apiService.put(p.M$.Organization.replace(":id",v.id),v).pipe((0,i.T)(o.AxT))}updateOrganizationAsAccountOwner(v){const E={...v};return delete E.id,this.apiService.put(p.M$.OrganizationAccount.replace(":id",v.id),E).pipe((0,i.T)(o.AxT))}static#e=this.\u0275fac=function(E){return new(E||l)};static#t=this.\u0275prov=t.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const I=l=>{const R=l.params.organizationId;return R?(0,t.WQX)(A).get(R):(0,e.of)((0,o.tLX)())},b=l=>l.parent.data.organization},84889:(fe,J,r)=>{"use strict";r.d(J,{gp:()=>A,qA:()=>s,tP:()=>N});var t=r(31635),e=r(47817);class o{static OnDeserialized(h,{hashid:C}){C&&(h.id=C)}hasId(){return!!this.id}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],o.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],o.prototype,"hashid",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],o.prototype,"currency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],o.prototype,"isSelected",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],o.prototype,"line",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],o.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],o.prototype,"price",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],o.prototype,"canPostPrice",void 0);const s=(E={})=>(0,e.Deserialize)(E,o);var i=r(88221),p=r(54657);class f{createAttributes(){return{driver:this.driver??"",trailer:this.trailer??"",vehicle:this.vehicle??""}}isEmpty(){return(0,i.A)(this.driver)&&(0,i.A)(this.trailer)&&(0,i.A)(this.vehicle)}isEquals(h){return(0,p.A)(this,h)}toWS(){return this.createAttributes()}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],f.prototype,"driver",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],f.prototype,"trailer",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],f.prototype,"vehicle",void 0);const N=E=>(0,e.Deserialize)(E,f);var A=function(E){return E.Manual="MANUAL",E.Standard="STANDARD",E}(A||{}),I=r(91167),b=r(36287),l=r(43134);class R{constructor(){this.etaStateRegistry=new Map([["LATE",{displayFilter:!0,label:(0,I.x)("En retard"),value:"late"}],["NONE",{displayFilter:!0,label:(0,I.x)("Aucun"),value:"none"}],["NOT_RELEVANT",{displayFilter:!0,label:(0,I.x)("Non pertinent"),value:"not_relevant"}],["ON_TIME",{displayFilter:!0,label:(0,I.x)("A l'heure"),value:"early"}],["TOLERATED_DELAY",{displayFilter:!0,label:(0,I.x)("Retard tol\xe9rable"),value:"toleratedDelay"}]])}getMode(){return b.vtl[this.mode]||b.vtl.Truck}getType(){return b.qEk[this.type]||b.qEk.Telematic}hasId(){return!!this.id}hasPosition(){return!(0,i.A)(this.position.lat)||!(0,i.A)(this.position.lng)}isDriver(){return this.getType()===b.qEk.MobileDriver}isEmpty(){return(0,i.A)(this.label)&&(0,i.A)(this.telematicUnitId)}isEquals(h){return(0,p.A)(this,h)||this.isEmpty()&&!h}isEtaStateNone(){return this.nextStopPointEtaState===this.etaStateRegistry.get("NONE").value}isEtaStateNotRelevant(){return this.nextStopPointEtaState===this.etaStateRegistry.get("NOT_RELEVANT").value}isLate(){return this.nextStopPointEtaState===this.etaStateRegistry.get("LATE").value}isModeVessel(){return this.getMode()===b.vtl.Vessel}isOnTime(){return this.nextStopPointEtaState===this.etaStateRegistry.get("ON_TIME").value}isPullingTelematic(){return this.getType()===b.qEk.PullingTelematic}isToleratedDelay(){return this.nextStopPointEtaState===this.etaStateRegistry.get("TOLERATED_DELAY").value}toWS(){return{id:this.id,mean:{externalId:this.externalId,label:this.label,telematicUnitId:this.telematicUnitId,type:this.getType()},pullingTelematicProvider:this.pullingTelematicProvider&&{id:this.pullingTelematicProvider.id,type:"id"}}}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"batteryLevel",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"externalId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],R.prototype,"delegators",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],R.prototype,"isActive",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"label",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"lastStop",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"mobileDriver",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"mode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"nextStop",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"nextStopPointEtaState",void 0),(0,t.Cg)([(0,e.deserializeAs)(b.yb4),(0,t.Sn)("design:type",b.yb4)],R.prototype,"organization",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",l.yX)],R.prototype,"position",void 0),(0,t.Cg)([(0,e.deserializeAs)(b.u4t),(0,t.Sn)("design:type",b.u4t)],R.prototype,"pullingTelematicProvider",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"tags",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"telematicUnitId",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"type",void 0)},6134:(fe,J,r)=>{"use strict";r.d(J,{Le:()=>Re,sN:()=>oe,es:()=>re,rV:()=>Ae,pC:()=>X,j1:()=>Ke,Af:()=>ye,M_:()=>Qe,nC:()=>Fe,LE:()=>t,nj:()=>g,hC:()=>Z,Hh:()=>ae,L:()=>Dt,P4:()=>Ie,h8:()=>It,mg:()=>he,le:()=>qe,lW:()=>le,eR:()=>y,Qg:()=>ht,xL:()=>Ve,un:()=>K,Ud:()=>Be,kw:()=>je,Ev:()=>Tt,kW:()=>Lt});var t=function(pe){return pe.BlackSwanEvents="blackSwanEvents",pe.DateTimeFormat="DateTimeFormat",pe.Distance="Distance",pe.FiltersPanel="filtersPanel",pe.FiltersVisibility="filtersVisibility",pe.GlobalMapLabel="globalMapLabel",pe.HomePage="homePage",pe.HomepageDisplay="homepageDisplaySetting2",pe.Lang="lang",pe.MapBookmarks="map.bookmarks",pe.MapBookmarksHome="map.bookmarks.home",pe.Order="order",pe.OrderBookmarks="orders.bookmarks",pe.OrderDetailsLanding="OrderDetailsLanding",pe.OrderHome="order.home",pe.OrdersBookmarksHome="orders.bookmarks.home",pe.OrderTourTableHitsPerPage="orderTourTableHitsPerPage",pe.SiteName="sitename",pe.Temperature="Temperature",pe.Timezone="timezone",pe.ToursBookmarks="tours.bookmarks",pe.ToursBookmarksHome="tours.bookmarks.home",pe.ToursView="ToursView",pe.UnitSystem="MetricSystem",pe.Volume="Volume",pe.Weight="Weight",pe}(t||{}),i=r(91167);r(36287),(0,i.x)("Notifications"),(0,i.x)("Tourn\xe9e"),(0,i.x)("R\xe9f\xe9rence"),(0,i.x)("Chargement"),(0,i.x)("Livraison"),(0,i.x)("Statut"),(0,i.x)("Donneur d'ordres"),(0,i.x)("Affr\xe9t\xe9"),(0,i.x)("Ressource"),(0,i.x)("Marchandise"),(0,i.x)("Tags"),(0,i.x)("Discussion"),(0,i.x)("Documents"),(0,i.x)("R\xe9f\xe9rence client"),(0,i.x)("Actions"),(0,i.x)("R\xe9f\xe9rence d'exp\xe9dition"),(0,i.x)("Bill of lading"),(0,i.x)("Transport Mode"),(0,i.x)("Booking");var O=r(1091),$=r(69483),X=function(pe){return pe.Homepage="homepage",pe.Map="map",pe.Orders="orders",pe.Tours="tours",pe}(X||{}),Z=function(pe){return pe.Name="name",pe.Street="street",pe.Town="town",pe.NameAndTown="nameAndTown",pe}(Z||{});(0,i.x)("Name/Postal code"),(0,i.x)("City/Postal code"),(0,i.x)("Street/Postal code"),(0,i.x)("Name/City/Postal code"),(0,i.x)($.kS.Imperial),(0,i.x)($.kS.Metric),(0,i.x)($.kS.Custom),(0,i.x)("Kilograms (kg) / Tonne (t)"),(0,i.x)("Pounds (lb) / Ton (T)"),(0,i.x)("Orders"),(0,i.x)("Tours"),(0,i.x)("Map"),(0,i.x)("[[OV user preferences]] Homepage"),(0,i.x)($.kS.Imperial),(0,i.x)($.kS.Metric),(0,i.x)($.kS.Custom),(0,i.x)("Kilograms (kg) / Tonne (t)"),(0,i.x)("Pounds (lb) / Ton (T)");class ue{constructor(T,Se){this.data={},this.type=T,this.defaultValue={[T]:Se}}getDefaultValue(){return this.defaultValue[this.type]}getId(){return this.id}getValue(){return this.data[this.type]}hasValue(){return!!this.getValue()}isType(T){return this.type===T}setDefault(T){this.defaultValue[this.type]=T}setId(T){this.id=T}setLabel(T){this.label=T}setToDefault(){Object.assign(this.data,this.defaultValue)}setValue(T){this.data[this.type]=T}transformRequest(){return{data:{...this.data},id:this.id,label:this.label,type:this.type}}}class d{constructor(T,Se,Xe,ne){this.setting=new ue(T),this.setting.setId(Xe),this.setting.setLabel(ne),this.setting.setValue(Se[T])}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}class Re{constructor(T,Se,Xe){this.setting=new ue(t.DateTimeFormat,O.nY.Default),this.setting.setValue(T[t.DateTimeFormat]),this.setting.setId(Se),this.setting.setLabel(Xe)}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const he=()=>new Re(O.nY.Default);class oe{constructor(T,Se,Xe){this.setting=new ue(t.Distance,$.kS.Metric),this.setting.setValue(T[t.Distance]),this.setting.setId(Se),this.setting.setLabel(Xe)}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const qe=()=>new oe($.kS.Metric);var w=function(pe){return pe.CarrierOrResource="CarrierOrResource",pe.LastStop="LastStop",pe.NextStop="NextStop",pe}(w||{});class re{constructor(T,Se,Xe){this.setting=new ue(t.GlobalMapLabel,w.CarrierOrResource),this.setting.setId(Se),this.setting.setLabel(Xe),this.setting.setValue(T[t.GlobalMapLabel])}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const le=()=>new re(w.CarrierOrResource);class Ae{constructor(T,Se,Xe){this.setting=new ue(t.HomePage,X.Orders),this.setting.setId(Se),this.setting.setLabel(Xe),this.setting.setValue(T[t.HomePage])}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const y=()=>new Ae(X.Orders);class Le{constructor(T,Se){this.setting=new ue(t.Lang,Se),this.setting.setValue(T)}getDefaultValue(){return this.setting.getDefaultValue()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}class Ke{constructor(T,Se,Xe){this.setting=new ue(t.UnitSystem,$.kS.Custom),this.setting.setValue(T[t.UnitSystem]),this.setting.setId(Se),this.setting.setLabel(Xe)}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const ht=()=>new Ke($.kS.Metric);var Qe=function(pe){return pe.Attachments="attachments",pe.Goods="goods",pe.Map="map",pe.Overview="overview",pe.Timeline="timeline",pe.Visualization="visualization",pe}(Qe||{});class ye{constructor(T,Se,Xe){this.setting=new ue(t.OrderDetailsLanding,Qe.Overview),this.setting.setId(Se),this.setting.setLabel(Xe),this.setting.setValue(T[t.OrderDetailsLanding]),this.setting.setDefault(Qe.Overview)}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const Ve=()=>new ye(Qe.Timeline);class g{constructor(T,Se,Xe){this.setting=new ue(t.SiteName,Z.Name),this.setting.setId(Se),this.setting.setLabel(Xe),this.setting.setValue(T[t.SiteName])}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const K=()=>new g(Z.Street);class ae{constructor(T,Se,Xe){this.setting=new ue(t.Temperature,$.kS.Metric),this.setting.setValue(T[t.Temperature]),this.setting.setId(Se),this.setting.setLabel(Xe)}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const Be=()=>new ae($.kS.Metric);class et{constructor(T,Se){this.setting=new ue(t.Timezone,Se),this.setting.setValue(T)}getDefaultValue(){return this.setting.getDefaultValue()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}var ft=function(pe){return pe.Orders="tours.orders",pe.Waypoints="tours.waypoints",pe}(ft||{});class Dt{constructor(T,Se,Xe){this.setting=new ue(t.ToursView,ft.Orders),this.setting.setId(Se),this.setting.setLabel(Xe),this.setting.setValue(T[t.ToursView])}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const je=()=>new Dt(ft.Orders);class Ie{constructor(T,Se,Xe){this.setting=new ue(t.Volume,$.kS.Metric),this.setting.setValue(T[t.Volume]),this.setting.setId(Se),this.setting.setLabel(Xe)}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const Tt=()=>new Ie($.kS.Metric);class It{constructor(T,Se,Xe){this.setting=new ue(t.Weight,$.kS.Metric),this.setting.setValue(T[t.Weight]),this.setting.setId(Se),this.setting.setLabel(Xe)}getDefaultValue(){return this.setting.getDefaultValue()}getId(){return this.setting.getId()}getValue(){return this.setting.getValue()}hasValue(){return this.setting.hasValue()}setDefault(T){this.setting.setDefault(T)}setId(T){return this.setting.setId(T)}setLabel(T){return this.setting.setLabel(T)}setToDefault(){this.setting.setToDefault()}setValue(T){this.setting.setValue(T)}transformRequest(){return this.setting.transformRequest()}}const Lt=()=>new It($.kS.Metric);class Fe{static createLangSetting(T,Se){return new Le(T,Se)}static createRemoteSetting(T,Se,Xe,ne){const we={[t.GlobalMapLabel]:()=>new re(Se,Xe,ne),[t.HomePage]:()=>new Ae(Se,Xe,ne),[t.SiteName]:()=>new g(Se,Xe,ne),[t.ToursView]:()=>new Dt(Se,Xe,ne),[t.OrderDetailsLanding]:()=>new ye(Se,Xe,ne),[t.DateTimeFormat]:()=>new Re(Se,Xe,ne),[t.Distance]:()=>new oe(Se,Xe,ne),[t.UnitSystem]:()=>new Ke(Se,Xe,ne),[t.Temperature]:()=>new ae(Se,Xe,ne),[t.Volume]:()=>new Ie(Se,Xe,ne),[t.Weight]:()=>new It(Se,Xe,ne)};return we[T]?we[T]():new d(T,Se,Xe,ne)}static createTimezoneSetting(T,Se){return new et(T,Se)}}},4437:(fe,J,r)=>{"use strict";r.d(J,{s5:()=>A,o_:()=>C,IQ:()=>M});var t=r(63016),e=r(47947),o=r(17178),s=r(88249),i=r(2233),p=r(48891),f=r(27691),N=r(87344);let A=(()=>{class F{constructor(j,Y,a){this.env=j,this.httpClient=Y,this.windowService=a}isApiLoaded$(){return this.windowService.nativeWindow.google?.maps.places?.Autocomplete?(0,t.of)(!0):(this.cache||(this.cache=this.httpClient.jsonp(`https://maps.googleapis.com/maps/api/js?key=${this.env.getProperty("GOOGLE_MAP_KEY")}&libraries=drawing,places`,"callback").pipe((0,e.T)(()=>!0),(0,o.W)(j=>(console.error(j),(0,t.of)(!1))),(0,s.t)(1))),this.cache)}static#e=this.\u0275fac=function(Y){return new(Y||F)(p.KVO(i.O),p.KVO(f.Qq),p.KVO(N.s))};static#t=this.\u0275prov=p.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var I=r(34133),b=r(85710),l=r(41483),R=r(67421),v=r(36441),E=r(30696),h=r(54460);let C=(()=>{class F{constructor(j,Y,a,P,u,z){this.router=j,this.environment=Y,this.windowService=a,this.location=P,this.userSessionService=u,this.authService=z,this.isBackOffice=this.environment.isBackOffice(),this.hasPreviousUrl=!1,this.subscriptions=new b.yU,this.subscriptions.add(this.router.events.pipe((0,l.p)(H=>H instanceof I.ld),(0,e.T)(H=>H),(0,R.J)()).subscribe(H=>{this.hasPreviousUrl=!!H[0].urlAfterRedirects}))}ngOnDestroy(){this.subscriptions.unsubscribe()}cancel(j,Y="../"){this.hasPreviousUrl?this.location.back():this.router.navigate([Y],j)}navigateWithOrganization(j,Y,a,P=!1){j=this.addOrganizationInPath(j,Y),this.navigateDependingOnNewTab(j,a,P)}navigateDependingOnNewTab(j,Y,a=!1){a?this.navigateInNewTab(j,Y):this.router.navigate(j,Y)}navigateTo(j,Y,a,P,u){this.isBackOffice&&(j.unshift(Y),P={...P,relativeTo:null}),this.navigateWithOrganization(j,a,P,u)}redirectToTourDetailsInformationBlock(){const j=this.userSessionService.getUser().language.code,Y=this.authService.getToken(),z=this.getZendeskUrl(Y,"fr"===j?"https://support.shippeo.com/hc/fr/articles/4403315742609-Why-do-I-not-have-access-to-the-Tour-Details-":"https://support.shippeo.com/hc/en-gb/articles/4403315742609-Why-do-I-not-have-access-to-the-Tour-Details-");this.windowService.openNewTab(z)}getZendeskUrl(j,Y){let a=`${this.environment.getZendeskUrl()}?shippeo_jwt=${j}&sso-type=${window.btoa("zendesk")}`;return Y&&(a+=`&redirect_to=${encodeURIComponent(Y)}`),a}navigateInNewTab(j,Y){const a=this.router.serializeUrl(this.router.createUrlTree(j,Y));this.windowService.openNewTab(a)}addOrganizationInPath(j,Y){return Y&&this.isBackOffice?["organizations",Y,"entities",...j]:j}static#e=this.\u0275fac=function(Y){return new(Y||F)(p.KVO(I.Ix),p.KVO(i.O),p.KVO(N.s),p.KVO(h.aZ),p.KVO(E.hG),p.KVO(v.uR))};static#t=this.\u0275prov=p.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})(),M=(()=>{class F{static#e=this.UNKNOWN_VERSION="unknown";constructor(j){this.http=j}getVersion(){return this.cache||(this.cache=this.fetchVersion()),this.cache}fetchVersion(){return this.http.get("version.txt",{responseType:"text"}).pipe((0,o.W)(()=>(0,t.of)(F.UNKNOWN_VERSION)))}static#t=this.\u0275fac=function(Y){return new(Y||F)(p.KVO(f.Qq))};static#i=this.\u0275prov=p.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})()},89335:(fe,J,r)=>{"use strict";r.d(J,{En:()=>I,yf:()=>b,Dj:()=>l.D,uI:()=>V,Ru:()=>Et,aM:()=>Go,fI:()=>u.f,Rt:()=>z.R,SX:()=>H,hc:()=>Ue,f4:()=>ot,AY:()=>Se,IA:()=>xo,H8:()=>Mn,e$:()=>me,Ln:()=>at.L,cp:()=>zn,li:()=>Yt,Ze:()=>kn.Z,nD:()=>Mo,DQ:()=>Mt,Pz:()=>tn,uk:()=>Fo,Mq:()=>Xo,CM:()=>Uo,by:()=>vr.b,zy:()=>si,Qw:()=>pn,fc:()=>wn});var t=r(54460),e=r(44687),o=r(18306),s=r(91039),i=r(48891),p=r(53220);function f(_,ie){if(1&_&&(i.j41(0,"li"),i.qex(1),i.EFF(2),i.bVm(),i.k0s()),2&_){const c=ie.$implicit;i.R7$(2),i.JRh(c)}}function N(_,ie){if(1&_&&(i.j41(0,"ul",8),i.DNE(1,f,3,1,"li",9),i.k0s()),2&_){const c=i.XpG();i.R7$(),i.Y8G("ngForOf",c.items)}}function A(_,ie){1&_&&(i.j41(0,"div",10),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&_&&(i.R7$(),i.JRh(i.bMT(2,1,"No items")))}var I=function(_){return _.Activate="activate",_.Deactivate="Deactivate",_}(I||{});let b=(()=>{class _{constructor(){this.items=[],this.title="",this.content="",this.iconName="lightning-bolt",this.action=I.Activate,this.svgIconType=s.Oo,this.modalType=o.q3,this.buttonTheme=s.Ox,this.themeColorKey=s.kp,this.actions=I}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-activate-deactivate-modal"]],inputs:{onClose:"onClose",onConfirm:"onConfirm",items:"items",title:"title",content:"content",iconName:"iconName",action:"action"},standalone:!0,features:[i.aNF],decls:14,vars:16,consts:[["noItems",""],[3,"iconType","content","title","type","iconName","iconColor"],["slot","custom",1,"w-100"],["class","f-sm mb-7",4,"ngIf","ngIfElse"],[1,"d-flex"],[1,"w-100","me-1",3,"click","btnTheme"],["slot","label"],[1,"w-100","ms-1",3,"click","btnTheme"],[1,"f-sm","mb-7"],[4,"ngFor","ngForOf"],[1,"mb-7","f-sm"]],template:function(D,G){if(1&D){const Te=i.RV6();i.j41(0,"shui-modal",1)(1,"div",2),i.DNE(2,N,2,1,"ul",3)(3,A,3,3,"ng-template",null,0,i.C5r),i.j41(5,"div",4)(6,"shui-button",5),i.bIt("click",function(){return i.eBV(Te),i.Njj(G.onClose())}),i.j41(7,"label",6),i.EFF(8),i.nI1(9,"translate"),i.k0s()(),i.j41(10,"shui-button",7),i.bIt("click",function(){return i.eBV(Te),i.Njj(G.onConfirm())}),i.j41(11,"label",6),i.EFF(12),i.nI1(13,"translate"),i.k0s()()()()()}if(2&D){const Te=i.sdS(4);i.Y8G("iconType",G.svgIconType.Line)("content",G.content)("title",G.title)("type",G.modalType.WithContent)("iconName",G.iconName)("iconColor",G.action===G.actions.Activate?G.themeColorKey.Shippeo:G.themeColorKey.Red),i.R7$(2),i.Y8G("ngIf",G.items.length)("ngIfElse",Te),i.R7$(4),i.Y8G("btnTheme",G.buttonTheme.Secondary),i.R7$(2),i.JRh(i.bMT(9,12,"Close")),i.R7$(2),i.Y8G("btnTheme",G.action===G.actions.Activate?G.buttonTheme.Primary:G.buttonTheme.Danger),i.R7$(2),i.JRh(i.bMT(13,14,"Confirm"))}},dependencies:[o.Qp,t.MD,t.Sq,t.bT,e.LP,p.D9,o.zf],encapsulation:2,changeDetection:0})}return _})();var l=r(50262),R=r(54205),v=r(2233),E=r(36287);const h=_=>({"text-shippeo-300":_});function C(_,ie){if(1&_){const c=i.RV6();i.j41(0,"shui-button",3),i.bIt("click",function(G){i.eBV(c);const Te=i.XpG(2);return i.Njj(Te.openConnectAsModal(G))}),i.j41(1,"label",4),i.EFF(2),i.k0s(),i.nrm(3,"shui-svg-icon",5),i.k0s()}if(2&_){const c=i.XpG(2);i.Y8G("isLinkStyle",!0)("size",c.size),i.R7$(),i.Y8G("ngClass",i.eq3(7,h,c.deactivate)),i.R7$(),i.SpI(" ",c.user.username," "),i.R7$(),i.Y8G("type",c.svgIconType.Line)("size",c.svgIconSize.Xsmall)("color",c.deactivate?"shippeo-300":"shippeo-500")}}function M(_,ie){if(1&_&&i.EFF(0),2&_){const c=i.XpG(2);i.JRh(c.user.username)}}function F(_,ie){if(1&_&&(i.qex(0),i.DNE(1,C,4,9,"shui-button",2)(2,M,1,1,"ng-template",null,0,i.C5r),i.bVm()),2&_){const c=i.sdS(3),D=i.XpG();i.R7$(),i.Y8G("ngIf",D.isLink)("ngIfElse",c)}}let V=(()=>{class _{constructor(c,D){this.modalService=c,this.environment=D,this.deactivate=!1,this.isTableCell=!0,this.size=s.Mp.Base,this.isLink=!0,this.svgIconType=s.Oo,this.svgIconSize=s.D7}openConnectAsModal(c){this.isTableCell&&c.stopPropagation();const D=this.modalService.open(R.D);return D.componentInstance.user=this.user,D.componentInstance.destinationUrl=this.environment.getProperty("FRONT_APP_URL"),D.componentInstance.onClose=()=>D.close(),D}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(o.Bg),i.rXU(v.O))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-connect-as-link"]],inputs:{deactivate:"deactivate",user:"user",isTableCell:"isTableCell",size:"size",isLink:"isLink"},standalone:!0,features:[i.aNF],decls:1,vars:1,consts:[["noLink",""],[4,"ngIf"],["data-qa","btn-connect-as",3,"isLinkStyle","size","click",4,"ngIf","ngIfElse"],["data-qa","btn-connect-as",3,"click","isLinkStyle","size"],["slot","label",1,"me-2","text-shippeo-500","user-select-all",3,"ngClass"],["slot","icon-right","name","arrow-up",1,"invisible",3,"type","size","color"]],template:function(D,G){1&D&&i.DNE(0,F,4,2,"ng-container",1),2&D&&i.Y8G("ngIf",null==G.user?null:G.user.username)},dependencies:[o.tm,o.Qp,t.MD,t.YU,t.bT,o.Ad,o.DM],styles:["shui-button[_ngcontent-%COMP%]:hover   shui-svg-icon[_ngcontent-%COMP%]{visibility:visible!important}"],changeDetection:0})}return _})();var u=r(78487),z=r(43695);let H=(()=>{class _{constructor(c){this.dateRangePickerService=c}transform(c){return this.dateRangePickerService.translateDate(c)}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(z.R,16))};static#t=this.\u0275pipe=i.EJ8({name:"dateRangePickerTranslate",type:_,pure:!0,standalone:!0})}return _})();var x=r(10936),Q=r(91167),O=r(91834),$=r(4437),X=r(76803);const Z=_=>({"text-shippeo-300":_});function He(_,ie){if(1&_){const c=i.RV6();i.j41(0,"shui-button",6),i.bIt("click",function(G){i.eBV(c);const Te=i.XpG(2);return i.Njj(Te.redirectToLink(G))}),i.j41(1,"label",7),i.EFF(2),i.k0s(),i.nrm(3,"shui-svg-icon",8),i.k0s()}if(2&_){const c=i.XpG(2);i.Y8G("isLinkStyle",c.isLink)("size",c.size),i.R7$(),i.Y8G("ngClass",i.eq3(7,Z,c.deactivate)),i.R7$(),i.SpI(" ",c.label," "),i.R7$(),i.Y8G("type",c.svgIconType.Line)("size",c.svgIconSize.Xsmall)("color",c.deactivate?"shippeo-300":"shippeo-500")}}function L(_,ie){if(1&_&&i.EFF(0),2&_){const c=i.XpG(2);i.JRh(c.label)}}function Ce(_,ie){if(1&_){const c=i.RV6();i.qex(0),i.j41(1,"div",4,1),i.bIt("mouseenter",function(){i.eBV(c);const G=i.sdS(2),Te=i.XpG();return i.Njj(Te.openTooltip(G))})("mouseleave",function(){i.eBV(c);const G=i.XpG();return i.Njj(G.closeTooltipDelay())}),i.DNE(3,He,4,9,"shui-button",5)(4,L,1,1,"ng-template",null,2,i.C5r),i.k0s(),i.bVm()}if(2&_){const c=i.sdS(5),D=i.XpG(),G=i.sdS(2);i.R7$(),i.Y8G("ngbTooltip",D.hasCopy?G:void 0),i.R7$(2),i.Y8G("ngIf",D.isLink)("ngIfElse",c)}}function ce(_,ie){if(1&_){const c=i.RV6();i.j41(0,"shui-copy",9),i.bIt("mouseenter",function(){i.eBV(c);const G=i.XpG();return i.Njj(G.hoverTooltip=!0)})("mouseleave",function(){i.eBV(c);const G=i.XpG();return G.hoverTooltip=!1,i.Njj(G.currentTooltip.close())}),i.k0s()}if(2&_){const c=i.XpG();i.Y8G("textToCopy",c.label)}}let me=(()=>{class _{constructor(){this.hasCopy=!1,this.deactivate=!1,this.size=s.Mp.Base,this.isLink=!0,this.hoverTooltip=!1,this.svgIconType=s.Oo,this.svgIconSize=s.D7,this.DELAY_CLOSE_TOOLTIP_IN_MS=150}ngOnDestroy(){clearTimeout(this.timeout)}redirectToLink(c){c.stopPropagation(),this.navigate(c.ctrlKey||c.metaKey)}closeTooltipDelay(){this.timeout=window.setTimeout(()=>{this.currentTooltip&&!this.hoverTooltip&&this.currentTooltip.close()},this.DELAY_CLOSE_TOOLTIP_IN_MS)}openTooltip(c){this.currentTooltip=c,c.open()}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-interactive-link"]],inputs:{hasCopy:"hasCopy",deactivate:"deactivate",label:"label",navigate:"navigate",size:"size",isLink:"isLink"},standalone:!0,features:[i.aNF],decls:3,vars:1,consts:[["tooltipCopyTemplate",""],["t","ngbTooltip"],["noLink",""],[4,"ngIf"],["triggers","manual","placement","bottom","data-qa","link",3,"mouseenter","mouseleave","ngbTooltip"],[3,"isLinkStyle","size","click",4,"ngIf","ngIfElse"],[3,"click","isLinkStyle","size"],["slot","label",1,"me-2","text-shippeo-500","user-select-all",3,"ngClass"],["slot","icon-right","name","arrow-up",1,"invisible",3,"type","size","color"],[3,"mouseenter","mouseleave","textToCopy"]],template:function(D,G){1&D&&i.DNE(0,Ce,6,3,"ng-container",3)(1,ce,1,1,"ng-template",null,0,i.C5r),2&D&&i.Y8G("ngIf",G.label)},dependencies:[o.tm,o.Qp,t.MD,t.YU,t.bT,o.Ad,o.DM,o.c7,o.hd,X.n8,X.md],styles:["shui-button[_ngcontent-%COMP%]:hover   shui-svg-icon[_ngcontent-%COMP%]{visibility:visible!important}"],changeDetection:0})}return _})();var _e=r(42547);let Me=(()=>{class _{constructor(c,D){this.i18nService=c,this.navigationService=D,this.references=[],this.searchControl=new x.MJ(void 0),this.tableActions=[{click:G=>this.navigationService.navigateDependingOnNewTab(["organizations",G.id,"entities"],{},!0),label:this.i18nService.instant((0,Q.x)("View"))}],this.searchTrailingIcon={color:"black",name:"search",size:s.D7.Medium,type:s.Oo.Line},this.tableColumns=[{field:G=>G.id,label:this.i18nService.instant((0,Q.x)("ID"))},{component:{inputs:G=>({isLink:this.navigationService.isBackOffice,label:G.name,navigate:Te=>this.navigationService.navigateDependingOnNewTab(["organizations",G.id,"entities"],{},Te)}),type:me},label:this.i18nService.instant((0,Q.x)("Name"))}]}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(e.W4),i.rXU($.o_))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-reference-side-list"]],inputs:{references:"references",titleList:"titleList"},standalone:!0,features:[i.aNF],decls:9,vars:15,consts:[[1,"my-6"],["type","search",3,"placeholder","formControl","trailingIcon"],[3,"columns","actions","items"]],template:function(D,G){1&D&&(i.j41(0,"div",0)(1,"shui-form-field")(2,"shui-label"),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.nrm(5,"shui-input",1),i.nI1(6,"translate"),i.k0s()(),i.nrm(7,"shui-table",2),i.nI1(8,"search")),2&D&&(i.R7$(3),i.JRh(i.bMT(4,7,G.titleList||"List of my clients for delegation")),i.R7$(2),i.Y8G("placeholder",i.bMT(6,9,"Search"))("formControl",G.searchControl)("trailingIcon",G.searchTrailingIcon),i.R7$(2),i.Y8G("columns",G.tableColumns)("actions",G.tableActions)("items",i.brH(8,11,G.references,"id,name",G.searchControl.value)))},dependencies:[t.MD,o.Or,p.h,p.D9,O.Yc,_e.R,x.X1,x.BC,x.l_,o.Sj,o.LT,o.KS,o.UF],encapsulation:2,changeDetection:0})}return _})();const Ge=()=>[];let Ue=(()=>{class _{constructor(){this.resourceReferences=i.hFB.required(),this.titleList=(0,i.hFB)(),this.isOpen=(0,i.vPA)(!1),(0,i.QZP)(()=>{this.isOpen.set(!!this.resourceReferences())},{allowSignalWrites:!0})}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-delegated-resource-list-sidebar"]],inputs:{resourceReferences:[1,"resourceReferences"],titleList:[1,"titleList"]},standalone:!0,features:[i.aNF],decls:7,vars:6,consts:[["width","570px",3,"isOpenChange","isOpen","hidden"],["slot","title"],["translate","",1,"text-gray-500","f-xs","fw-normal","mb-1"],["data-qa","resource-name",1,"text-gray-900","f-lg","fw-bold"],[3,"references","titleList"]],template:function(D,G){if(1&D&&(i.j41(0,"shui-sidebar",0),i.mxI("isOpenChange",function(yt){return i.DH7(G.isOpen,yt)||(G.isOpen=yt),yt}),i.j41(1,"div",1)(2,"div",2),i.EFF(3,"Resource name"),i.k0s(),i.j41(4,"div",3),i.EFF(5),i.k0s()(),i.nrm(6,"sh-reference-side-list",4),i.k0s()),2&D){let Te,yt;i.R50("isOpen",G.isOpen),i.Y8G("hidden",!G.resourceReferences()),i.R7$(5),i.JRh(null==(Te=G.resourceReferences())?null:Te.name),i.R7$(),i.Y8G("references",(null==(yt=G.resourceReferences())?null:yt.receivers)||i.lJ4(5,Ge))("titleList",G.titleList())}},dependencies:[p.h,p.Mm,o.kc,Me],encapsulation:2,changeDetection:0})}return _})();var d=r(45275),he=(r(43135),r(67233)),et=r(63016),ft=r(71217),Dt=r(85710),je=r(74221),Ie=r(18144);let It=(()=>{class _{transform(c){return function Tt(_){return(0,Ie.C9)()[_]||_}(c)}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275pipe=i.EJ8({name:"ediOutFlowsMessageFormatPropertiesLabel",type:_,pure:!0,standalone:!0})}return _})(),Fe=(()=>{class _{transform(c){return function Lt(_){return(0,Ie.r8)()[_]||_}(c)}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275pipe=i.EJ8({name:"ediOutFlowsParametersDescription",type:_,pure:!0,standalone:!0})}return _})();var pt=r(43134),xt=r(78031),pe=r(39102);function T(_,ie){if(1&_&&(i.j41(0,"sh-form-validation-message",1),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&_){const c=ie.$implicit;i.Y8G("when",c.key),i.R7$(),i.SpI(" ",i.bMT(2,2,c.value)," ")}}let Se=(()=>{class _{constructor(){this.errors=(0,i.hFB)({})}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-dynamic-form-errors"]],inputs:{errors:[1,"errors"]},standalone:!0,features:[i.aNF],decls:4,vars:3,consts:[[3,"for"],[3,"when"]],template:function(D,G){1&D&&(i.j41(0,"sh-form-validation-messages",0),i.Z7z(1,T,3,4,"sh-form-validation-message",1,i.Vm6),i.nI1(3,"keyvalue"),i.k0s()),2&D&&(i.Y8G("for",G.errors()),i.R7$(),i.Dyx(i.bMT(3,1,G.errors())))},dependencies:[t.MD,t.lG,e.LP,p.D9,je.Yl,xt.V,pe.s],encapsulation:2,changeDetection:0})}return _})();const Xe=["*"];function ne(_,ie){1&_&&(i.j41(0,"span"),i.EFF(1,"*"),i.k0s())}function we(_,ie){if(1&_&&(i.nrm(0,"shui-hint",2),i.nI1(1,"translate")),2&_){const c=i.XpG();i.Y8G("helper",i.bMT(1,1,c.parameter().description))}}let ge=(()=>{class _{constructor(){this.control=i.hFB.required(),this.parameter=i.hFB.required()}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-dynamic-form-field"]],inputs:{control:[1,"control"],parameter:[1,"parameter"]},standalone:!0,features:[i.aNF],ngContentSelectors:Xe,decls:9,vars:5,consts:[[1,"row"],[1,"col-12","form-group"],[3,"helper"]],template:function(D,G){if(1&D&&(i.NAR(),i.j41(0,"div",0)(1,"div",1)(2,"shui-form-field")(3,"shui-label"),i.EFF(4),i.nI1(5,"translate"),i.DNE(6,ne,2,0,"span"),i.k0s(),i.SdG(7),i.DNE(8,we,2,3,"shui-hint",2),i.k0s()()()),2&D){let Te;i.R7$(4),i.SpI(" ",i.bMT(5,3,G.parameter().label)," "),i.R7$(2),i.vxM(null!=(Te=G.control().errors)&&Te.required?6:-1),i.R7$(2),i.vxM(G.parameter().description?8:-1)}},dependencies:[t.MD,e.LP,p.D9,x.X1,o.LT,o.KS,o.UF,o.p5],encapsulation:2,changeDetection:0})}return _})();const Ne=_=>({name:"eye-off",type:_}),ke=_=>({name:"eye",type:_});let Ut=(()=>{class _{constructor(c){this.i18nService=c,this.placeholder=this.i18nService.instant((0,Q.x)("Please provide your password")),this.isPasswordVisible=!1,this.svgIconType=s.Oo}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(e.W4))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-input-password"]],inputs:{passwordControl:"passwordControl",placeholder:"placeholder"},standalone:!0,features:[i.aNF],decls:1,vars:8,consts:[[1,"w-100",3,"trailingIconClick","trailingIcon","type","placeholder","formControl"]],template:function(D,G){1&D&&(i.j41(0,"shui-input",0),i.bIt("trailingIconClick",function(){return G.isPasswordVisible=!G.isPasswordVisible}),i.k0s()),2&D&&i.Y8G("trailingIcon",G.isPasswordVisible?i.eq3(4,Ne,G.svgIconType.Solid):i.eq3(6,ke,G.svgIconType.Solid))("type",G.isPasswordVisible?"text":"password")("placeholder",G.placeholder)("formControl",G.passwordControl)},dependencies:[t.MD,o.Sj,e.LP,x.X1,x.BC,x.l_],encapsulation:2,changeDetection:0})}return _})();function te(_,ie){if(1&_&&(i.j41(0,"div",2)(1,"div",4)(2,"shui-form-field")(3,"shui-checkbox",5),i.EFF(4),i.nI1(5,"translate"),i.k0s()()()()),2&_){const c=i.XpG(2).$implicit;i.R7$(3),i.Y8G("formControlName",c.control),i.R7$(),i.SpI(" ",i.bMT(5,2,c.label)," ")}}function lt(_,ie){1&_&&i.eu8(0)}function se(_,ie){if(1&_&&(i.j41(0,"sh-dynamic-form-field",3),i.nrm(1,"shui-input",6),i.DNE(2,lt,1,0,"ng-container",7),i.k0s()),2&_){i.XpG();const c=i.sdS(7),D=i.XpG().$implicit,G=i.XpG(2);i.Y8G("control",G.formGroup().get(D.control))("parameter",D),i.R7$(),i.Y8G("placeholder",D.placeholder||"")("formControlName",D.control),i.R7$(),i.Y8G("ngTemplateOutlet",c)}}function de(_,ie){1&_&&i.eu8(0)}function nt(_,ie){if(1&_&&(i.j41(0,"sh-dynamic-form-field",3),i.nrm(1,"shui-input",8),i.DNE(2,de,1,0,"ng-container",7),i.k0s()),2&_){i.XpG();const c=i.sdS(7),D=i.XpG().$implicit,G=i.XpG(2);i.Y8G("control",G.formGroup().get(D.control))("parameter",D),i.R7$(),i.Y8G("placeholder",D.placeholder||"")("formControlName",D.control),i.R7$(),i.Y8G("ngTemplateOutlet",c)}}function bt(_,ie){1&_&&i.eu8(0)}function At(_,ie){if(1&_&&(i.j41(0,"sh-dynamic-form-field",3),i.nrm(1,"shui-select",9),i.nI1(2,"translate"),i.DNE(3,bt,1,0,"ng-container",7),i.k0s()),2&_){i.XpG();const c=i.sdS(7),D=i.XpG().$implicit,G=i.XpG(2);i.Y8G("control",G.formGroup().get(D.control))("parameter",D),i.R7$(),i.Y8G("items",D.enum)("placeholder",i.bMT(2,6,"Select..."))("formControlName",D.control),i.R7$(2),i.Y8G("ngTemplateOutlet",c)}}function Nt(_,ie){1&_&&i.eu8(0)}function it(_,ie){if(1&_&&(i.j41(0,"sh-dynamic-form-field",3),i.nrm(1,"shui-textarea",5),i.DNE(2,Nt,1,0,"ng-container",7),i.k0s()),2&_){i.XpG();const c=i.sdS(7),D=i.XpG().$implicit,G=i.XpG(2);i.Y8G("control",G.formGroup().get(D.control))("parameter",D),i.R7$(),i.Y8G("formControlName",D.control),i.BMQ("placeholder",D.placeholder),i.R7$(),i.Y8G("ngTemplateOutlet",c)}}function De(_,ie){1&_&&i.eu8(0)}function Oe(_,ie){if(1&_&&(i.j41(0,"sh-dynamic-form-field",3),i.nrm(1,"sh-input-password",10),i.DNE(2,De,1,0,"ng-container",7),i.k0s()),2&_){i.XpG();const c=i.sdS(7),D=i.XpG().$implicit,G=i.XpG(2);i.Y8G("control",G.formGroup().get(D.control))("parameter",D),i.R7$(),i.Y8G("passwordControl",G.formGroup().get(D.control)),i.BMQ("placeholder",D.placeholder),i.R7$(),i.Y8G("ngTemplateOutlet",c)}}function $e(_,ie){if(1&_&&i.nrm(0,"sh-dynamic-form-errors",11),2&_){const c=i.XpG(3).$implicit,D=i.XpG(2);i.Y8G("errors",D.formGroup().get(c.control).errors)}}function rt(_,ie){if(1&_&&i.DNE(0,$e,1,1,"sh-dynamic-form-errors",11),2&_){let c;const D=i.XpG(2).$implicit,G=i.XpG(2);i.vxM(null!=(c=G.formGroup().get(D.control))&&c.touched?0:-1)}}function B(_,ie){if(1&_&&i.DNE(0,te,6,4,"div",2)(1,se,3,5,"sh-dynamic-form-field",3)(2,nt,3,5,"sh-dynamic-form-field",3)(3,At,4,8,"sh-dynamic-form-field",3)(4,it,3,5,"sh-dynamic-form-field",3)(5,Oe,3,5,"sh-dynamic-form-field",3)(6,rt,1,1,"ng-template",null,0,i.C5r),2&_){let c;const D=i.XpG().$implicit,G=i.XpG(2);i.vxM((c=D.type)===G.dynamicControlType.Checkbox?0:c===G.dynamicControlType.Input?1:c===G.dynamicControlType.InputNumber?2:c===G.dynamicControlType.Select?3:c===G.dynamicControlType.Object?4:c===G.dynamicControlType.Password?5:-1)}}function dt(_,ie){if(1&_&&i.DNE(0,B,8,1),2&_){const c=ie.$implicit,D=i.XpG(2);i.vxM(D.formGroup().get(c.control)?0:-1)}}function ut(_,ie){if(1&_&&(i.j41(0,"form",1),i.Z7z(1,dt,1,1,null,null,i.Vm6),i.k0s()),2&_){const c=i.XpG();i.Y8G("formGroup",c.formGroup()),i.R7$(),i.Dyx(ie)}}let ot=(()=>{class _{constructor(c,D){this.ediOutFlowsMessageFormatPropertiesLabel=c,this.ediOutFlowsParametersDescriptionPipe=D,this.parameters=i.hFB.required(),this.formGroup=i.hFB.required(),this.parametersValues=(0,i.hFB)(),this.templateParameters$=(0,et.of)([]),this.dynamicControlType=pt.Rj,this.templateParametersSubject=new ft.t([]),this.subscriptions=new Dt.yU,this.templateParameters$=this.templateParametersSubject.asObservable(),(0,i.QZP)(()=>{this.parameters()&&(this.templateParametersSubject.next([]),this.initForm(),this.initParameters())})}ngOnDestroy(){this.subscriptions.unsubscribe()}initForm(){for(const[c,D]of Object.entries(this.parameters()?.properties||{}))if(D.type===pt.Ut.Object?this.formGroup().addControl(c,new x.MJ(D.default,this.validators(c,D))):D.type===pt.Ut.Integer?this.formGroup().addControl(c,new x.MJ(+D.default,this.validators(c,D))):this.formGroup().addControl(c,new x.MJ(D.default,this.validators(c,D))),this.parametersValues()[c]&&this.formGroup().controls[c]){const G=this.parametersValues()[c];this.formGroup().controls[c].setValue(G===Object(G)?JSON.stringify(G):G)}this.addDependenciesFields()}initParameters(){this.templateParametersSubject.next(Object.entries(this.parameters()?.properties||{}).map(([c,D])=>({control:c,description:D.description?this.ediOutFlowsParametersDescriptionPipe.transform(D.description):"",enum:D.enum?.map(G=>({label:G,value:G}))||[],label:this.ediOutFlowsMessageFormatPropertiesLabel.transform(c),placeholder:"string"!==D.example?JSON.stringify(D.example):D.example,type:this.inputType(D)})))}validators(c,D){const G=[];return this.parameters().required?.includes(c)&&G.push(je.Ne.required),D.format===pt.Rk.Uri&&G.push(je.Ne.httpUrl),D.minimum&&G.push(je.Ne.min(D.minimum)),D.maximum&&G.push(je.Ne.max(D.maximum)),D.type===pt.Ut.Object&&G.push(je.Ne.jsonValidator()),x.k0.compose(G)}inputType(c){return c.enum?.length?pt.Rj.Select:c.format===pt.Rk.Password?pt.Rj.Password:c.type===pt.Ut.String?pt.Rj.Input:c.type===pt.Ut.Boolean?pt.Rj.Checkbox:c.type===pt.Ut.Integer?pt.Rj.InputNumber:c.type===pt.Ut.Object?pt.Rj.Object:pt.Rj.Input}addDependenciesFields(){Object.entries(this.parameters()?.properties||{}).filter(([c,D])=>D.properties?.dependencies.items.example).forEach(([c,D])=>{D.properties.dependencies.items.example.filter(G=>G.action===pt.iD.Disable).forEach(G=>{const Te=this.formGroup().controls[G.attribute];Te&&Te.value===G.value&&this.formGroup().controls[c].disable(),this.subscriptions.add(this.formGroup().controls[G.attribute].valueChanges.subscribe(yt=>{yt===G.value?this.formGroup().controls[c].disable():this.formGroup().controls[c].enable()}))})})}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(It),i.rXU(Fe))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-dynamic-form"]],inputs:{parameters:[1,"parameters"],formGroup:[1,"formGroup"],parametersValues:[1,"parametersValues"]},standalone:!0,features:[i.Jv_([It,Fe]),i.aNF],decls:2,vars:3,consts:[["dynamicErrors",""],[3,"formGroup"],[1,"row","mb-2"],[3,"control","parameter"],[1,"col-6"],[3,"formControlName"],[3,"placeholder","formControlName"],[4,"ngTemplateOutlet"],["type","number",3,"placeholder","formControlName"],[3,"items","placeholder","formControlName"],[3,"passwordControl"],[3,"errors"]],template:function(D,G){if(1&D&&(i.DNE(0,ut,3,1,"form",1),i.nI1(1,"async")),2&D){let Te;i.vxM((Te=i.bMT(1,1,G.templateParameters$))?0:-1,Te)}},dependencies:[t.MD,t.T3,t.Jj,e.LP,p.D9,x.X1,x.qT,x.BC,x.cb,x.j4,x.JD,o.Sj,o.wB,o.PY,o.QC,Se,Ut,ge,o.KS],encapsulation:2,changeDetection:0})}return _})();var gt=r(30696),kt=r(5062);const Ri=_=>({"all-borders":_});function pi(_,ie){1&_&&(i.j41(0,"div",2),i.nrm(1,"img",4),i.k0s())}function po(_,ie){if(1&_&&(i.j41(0,"div",0),i.DNE(1,pi,2,0,"div",2),i.j41(2,"span",3),i.EFF(3),i.nI1(4,"estimatedTimeBadgeLabel"),i.k0s()()),2&_){const c=i.XpG();i.R7$(),i.vxM(c.source()!==c.etaSource.ExternalDeclared?1:-1),i.R7$(),i.Y8G("ngClass",i.eq3(5,Ri,c.source()===c.etaSource.ExternalDeclared)),i.R7$(),i.SpI(" ",i.bMT(4,3,c.type())," ")}}function Wt(_,ie){if(1&_&&(i.j41(0,"span",1),i.EFF(1),i.nI1(2,"estimatedTimeBadgeLabel"),i.k0s()),2&_){const c=i.XpG();i.R7$(),i.JRh(i.i5U(2,1,c.type(),c.isExternal()))}}let q=(()=>{class _{constructor(){this.source=(0,i.hFB)(E.Xjg),this.provider=(0,i.hFB)(E.QDH.Carrier),this.type=(0,i.hFB)(E.KMV.Arrival),this.isExternal=(0,i.hFB)(!1),this.etaSource=E.Xjg,this.dateProviderType=E.QDH}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-estimated-time-badge"]],inputs:{source:[1,"source"],provider:[1,"provider"],type:[1,"type"],isExternal:[1,"isExternal"]},standalone:!0,features:[i.aNF],decls:2,vars:1,consts:[[1,"d-flex","tag"],[1,"label","d-block","fw-medium","bg-white","border","rounded-1","px-1","text-gray-500","border-gray-600"],[1,"d-flex","justify-content-center","p-1","bg-cobalt-800","tag--badge"],[1,"fw-medium","px-1","tag--label","label","text-gray-500",3,"ngClass"],["role","presentation","src","/assets/logos/shippeo-monochrome-standalone.svg"]],template:function(D,G){if(1&D&&i.DNE(0,po,5,7,"div",0)(1,Wt,3,4,"span",1),2&D){let Te;i.vxM((Te=G.provider())===G.dateProviderType.Shippeo?0:Te===G.dateProviderType.Carrier?1:-1)}},dependencies:[t.MD,t.YU,O.tV,e.LP],styles:["[_nghost-%COMP%]{display:block}.label[_ngcontent-%COMP%]{font-size:.75rem;line-height:.875rem}.tag[_ngcontent-%COMP%]{height:16px}.tag--badge[_ngcontent-%COMP%]{height:16px;width:16px;border-bottom-left-radius:4px;border-top-left-radius:4px}.tag--label[_ngcontent-%COMP%]{border-bottom-right-radius:4px;border-top-right-radius:4px;border:solid 1px;border-left:none}.tag--label.all-borders[_ngcontent-%COMP%]{border-left:solid 1px;border-radius:4px}"],changeDetection:0})}return _})();const uo=_=>({type:_}),hn=_=>({languageCode:_});let go=(()=>{class _{constructor(){this.delayInDays=(0,i.hFB)(),this.type=(0,i.hFB)(),this.i18nService=(0,i.WQX)(e.W4)}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-estimated-time-delay"]],inputs:{delayInDays:[1,"delayInDays"],type:[1,"type"]},standalone:!0,features:[i.aNF],decls:5,vars:14,consts:[[1,"badge","d-block","rounded","f-2xs","text-truncate","px-1",3,"ngClass"]],template:function(D,G){1&D&&(i.j41(0,"span",0),i.nI1(1,"estimatedTimeDelayClass"),i.EFF(2),i.nI1(3,"formatEstimatedTimeDelay"),i.nI1(4,"translate"),i.k0s()),2&D&&(i.Y8G("ngClass",i.i5U(1,2,G.delayInDays(),i.eq3(10,uo,G.type()))),i.R7$(2),i.JRh(i.bMT(4,8,i.i5U(3,5,G.delayInDays(),i.eq3(12,hn,G.i18nService.language().code)))))},dependencies:[O.Lt,O.CY,e.LP,p.D9,t.YU],styles:["[_nghost-%COMP%]{display:inline-block;overflow:hidden}"],changeDetection:0})}return _})();var ee=r(77209),ji=r(99332);function fn(_,ie){if(1&_&&(i.j41(0,"span",5),i.nI1(1,"roadEtaClass"),i.EFF(2),i.nI1(3,"roadEtaLabel"),i.nI1(4,"translate"),i.k0s()),2&_){const c=i.XpG(2);i.Y8G("ngClass",i.bMT(1,2,c.etaStatus)),i.R7$(2),i.SpI(" ",c.source===c.etaSource.InternalLeadTime?i.bMT(4,6,i.bMT(3,4,c.etaStatus)):c.delay," ")}}function mo(_,ie){if(1&_&&i.nrm(0,"sh-estimated-time-delay",7),2&_){const c=i.XpG(3);i.Y8G("delayInDays",c.delayInDays)}}function oi(_,ie){if(1&_&&i.DNE(0,mo,1,1,"sh-estimated-time-delay",7),2&_){const c=i.XpG(2);i.vxM(null!=c.delayInDays?0:-1)}}function _o(_,ie){if(1&_&&(i.j41(0,"span",6),i.EFF(1),i.nI1(2,"translate"),i.nI1(3,"convertUnitPreference"),i.k0s()),2&_){const c=i.XpG(2);i.R7$(),i.Lme("",i.bMT(2,2,"at")," ",i.i5U(3,4,c.remainingDistance,"m")()," ")}}function ur(_,ie){if(1&_&&(i.j41(0,"div",0)(1,"div",2),i.nrm(2,"sh-estimated-time-badge",3)(3,"sh-i18n-date",4),i.k0s(),i.DNE(4,fn,5,8,"span",5)(5,oi,1,1)(6,_o,4,7,"span",6),i.k0s()),2&_){const c=i.XpG();i.R7$(2),i.Y8G("isExternal",c.isExternal)("provider",c.provider)("type",c.type)("source",c.source),i.R7$(),i.Y8G("date",c.date)("displayTimezone",c.precision!==c.etaPrecision.Day&&!!c.timezone&&c.displayCountryCode)("fontSize",c.fontSize.Xsmall)("fontWeight",c.fontWeight.Medium500)("format",c.precision===c.etaPrecision.Day?c.currentDateFormat:c.currentDateTimeFormat)("languageCode",c.languageCode)("textColor",c.textColor)("timezone",c.timezone),i.R7$(),i.vxM((c.delay||c.source===c.etaSource.InternalLeadTime)&&c.etaStatus?4:5),i.R7$(2),i.vxM(c.remainingDistance?6:-1)}}function ho(_,ie){1&_&&(i.j41(0,"div",1)(1,"span",8),i.EFF(2,"Not available"),i.k0s()())}let $i=(()=>{class _{constructor(c){this.i18nService=c,this.displayCountryCode=!0,this.provider=E.QDH.Carrier,this.type=E.KMV.Arrival,this.isExternal=!1,this.precision=E.Qt3.Hour,this.currentDateTimeFormat=this.i18nService.getDateTimeFormat(),this.currentDateFormat=this.i18nService.getDateFormat(),this.fontSize=s.Z4,this.fontWeight=s.IT,this.languageCode=this.i18nService.getCurrentLanguage().getValue().code,this.svgIconSize=s.D7,this.svgIconType=s.Oo,this.etaSource=E.Xjg,this.etaPrecision=E.Qt3,this.textColor=`${s.kp.Gray}-${s.aJ.V500}`}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(e.W4))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-estimated-time"]],inputs:{date:"date",displayCountryCode:"displayCountryCode",provider:"provider",timezone:"timezone",type:"type",delay:"delay",delayInDays:"delayInDays",etaStatus:"etaStatus",remainingDistance:"remainingDistance",isExternal:"isExternal",source:"source",precision:"precision"},standalone:!0,features:[i.aNF],decls:2,vars:1,consts:[[1,"date-container","d-flex","align-items-center","flex-wrap"],[1,"d-flex","align-items-center"],[1,"badge-and-date","d-flex","align-items-center","flex-shrink-0"],[3,"isExternal","provider","type","source"],[1,"ms-1","flex-shrink-0",3,"date","displayTimezone","fontSize","fontWeight","format","languageCode","textColor","timezone"],[1,"badge","rounded","text-white",3,"ngClass"],[1,"f-xs","ms-1","text-gray-500"],[1,"delay",3,"delayInDays"],["translate","",1,"f-xs","text-gray-800","bg-gray-100","border","border-gray-100","rounded-1","px-1"]],template:function(D,G){1&D&&i.DNE(0,ur,7,14,"div",0)(1,ho,3,0,"div",1),2&D&&i.vxM(G.date?0:1)},dependencies:[t.MD,t.YU,kt.n,ee.g,q,go,e.LP,p.Mm,p.D9,O.x1,gt.eR,ji.B,O.$h],styles:["[_nghost-%COMP%]{display:block}.date-container[_ngcontent-%COMP%]{justify-content:center}.badge[_ngcontent-%COMP%], .delay[_ngcontent-%COMP%]{margin-left:.25rem}.text-start[_nghost-%COMP%]   .date-container[_ngcontent-%COMP%], .text-start   [_nghost-%COMP%]   .date-container[_ngcontent-%COMP%]{justify-content:start}.text-start[_nghost-%COMP%]   .badge[_ngcontent-%COMP%], .text-start   [_nghost-%COMP%]   .badge[_ngcontent-%COMP%], .text-start[_nghost-%COMP%]   .delay[_ngcontent-%COMP%], .text-start   [_nghost-%COMP%]   .delay[_ngcontent-%COMP%]{margin-left:0}.text-start[_nghost-%COMP%]   .badge-and-date[_ngcontent-%COMP%], .text-start   [_nghost-%COMP%]   .badge-and-date[_ngcontent-%COMP%]{margin-right:.25rem}.text-end[_nghost-%COMP%]   .date-container[_ngcontent-%COMP%], .text-end   [_nghost-%COMP%]   .date-container[_ngcontent-%COMP%]{justify-content:end}.text-end[_nghost-%COMP%]   .badge[_ngcontent-%COMP%], .text-end   [_nghost-%COMP%]   .badge[_ngcontent-%COMP%], .text-end[_nghost-%COMP%]   .delay[_ngcontent-%COMP%], .text-end   [_nghost-%COMP%]   .delay[_ngcontent-%COMP%]{margin-left:.25rem}"],changeDetection:0})}return _})();const Si={[E.Xjg.External]:(0,Q.x)("[[eta source label]] External ETA"),[E.Xjg.ExternalDeclared]:(0,Q.x)("[[eta source label]] External ETA"),[E.Xjg.Internal]:(0,Q.x)("[[eta source label]] Shippeo ETA"),[E.Xjg.InternalLeadTime]:(0,Q.x)("[[eta source label]] Shippeo ETA")},Gi={[E.Xjg.External]:(0,Q.x)("[[eta source label]] External ETD"),[E.Xjg.ExternalDeclared]:(0,Q.x)("[[eta source label]] External ETD"),[E.Xjg.Internal]:(0,Q.x)("[[eta source label]] Shippeo ETD"),[E.Xjg.InternalLeadTime]:(0,Q.x)("[[eta source label]] Shippeo ETD")};let yn=(()=>{class _{transform(c,D){return function wt(_,ie){return ie===E.KMV.Depart?Gi[_]||_:Si[_]||_}(c,D)}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275pipe=i.EJ8({name:"etaDetailEtaLabel",type:_,pure:!0,standalone:!0})}return _})();var Ki=r(28701),Dn=r(59614);let fo=(()=>{class _{transform(c,D,G){return function Oi(_,ie,c){switch(_){case E.EDo.CalculationInProgress:return{description:(0,Q.x)("The calculation of an ETA can take up to three minutes."),title:(0,Q.x)("Calculation in progress")};case E.EDo.FirstEtaCalculationInProgress:return{description:(0,Q.x)("The paired resource has sent a position, ETA calculation in progress."),title:(0,Q.x)("Calculation in progress")};case E.EDo.NoPositionReceived:return{description:(0,Q.x)("A position is needed to calculate and display an ETA. If the paired resource has sent a recent position, the calculation of the ETA is in progress."),title:(0,Q.x)("No position received yet")};case E.EDo.IsSkipped:if(!c){let D=(0,Q.x)("The loading/delivery phase is skipped");return ie&&(D=(0,Q.x)(ie===E.k$c.Loading?"The loading phase is skipped":"The delivery phase is skipped")),{title:D,description:(0,Q.x)("Shippeo has stopped automatically triggering events for this phase because the expected time window has ended. The ETA is therefore no longer calculated.")}}break;case E.EDo.IsDeprecated:if(!c)return{description:"A recent position is needed to calculate and display an ETA",title:"No recent position"}}}(c,D,G)}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275pipe=i.EJ8({name:"etaIssue",type:_,pure:!0,standalone:!0})}return _})();function yo(_,ie){if(1&_&&(i.j41(0,"shui-info-block",0)(1,"div",1)(2,"span",2),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"span",3),i.EFF(6),i.nI1(7,"translate"),i.k0s()()()),2&_){const c=ie;i.R7$(3),i.JRh(i.bMT(4,2,c.title)),i.R7$(3),i.JRh(i.bMT(7,4,c.description))}}let ui=(()=>{class _{constructor(){this.estimatedTime=i.hFB.required()}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-eta-issue"]],inputs:{estimatedTime:[1,"estimatedTime"]},standalone:!0,features:[i.aNF],decls:2,vars:5,consts:[["color","gray",1,"my-2"],[1,"d-flex","flex-column"],["data-qa","title"],["data-qa","description"]],template:function(D,G){if(1&D&&(i.DNE(0,yo,8,6,"shui-info-block",0),i.nI1(1,"etaIssue")),2&D){let Te;i.vxM((Te=i.brH(1,1,G.estimatedTime().etaReason,G.estimatedTime().activity,G.estimatedTime().isExternal))?0:-1,Te)}},dependencies:[e.LP,p.D9,fo,o.WN,o.fT],encapsulation:2,changeDetection:0})}return _})();var Do=r(69832),Ai=r(1091);function vn(_,ie){if(1&_){const c=i.RV6();i.j41(0,"shui-button",2),i.bIt("click",function(){i.eBV(c);const G=i.XpG();return i.Njj(G.formIsVisible=!0)}),i.j41(1,"span",3),i.EFF(2),i.k0s(),i.nrm(3,"shui-svg-icon",4),i.k0s()}if(2&_){const c=i.XpG();i.Y8G("isLinkStyle",!0),i.R7$(2),i.JRh(c.title()),i.R7$(),i.Y8G("type",c.buttonIconType())("name",c.buttonIcon())}}function vo(_,ie){if(1&_){const c=i.RV6();i.j41(0,"div",1)(1,"div",5),i.EFF(2),i.j41(3,"shui-svg-icon",6),i.bIt("click",function(){i.eBV(c);const G=i.XpG();return i.Njj(G.formIsVisible=!1)}),i.k0s()(),i.j41(4,"div",7)(5,"div",8)(6,"shui-form-field")(7,"shui-label"),i.EFF(8),i.nI1(9,"translate"),i.k0s(),i.nrm(10,"shui-datepicker",9),i.k0s()(),i.j41(11,"div",8)(12,"shui-form-field")(13,"shui-label"),i.EFF(14),i.nI1(15,"translate"),i.k0s(),i.nrm(16,"shui-timepicker",10),i.k0s()()(),i.j41(17,"div",11)(18,"shui-button",12),i.bIt("click",function(){i.eBV(c);const G=i.XpG();return i.Njj(G.formIsVisible=!1)}),i.j41(19,"span",3),i.EFF(20),i.nI1(21,"translate"),i.k0s()(),i.j41(22,"shui-button",13),i.bIt("click",function(){i.eBV(c);const G=i.XpG();return i.Njj(G.saveEta())}),i.j41(23,"span",3),i.EFF(24),i.nI1(25,"translate"),i.k0s()()()()}if(2&_){const c=i.XpG();i.Y8G("formGroup",c.formEta),i.R7$(2),i.SpI(" ",c.title()," "),i.R7$(),i.Y8G("type",c.svgIconType.Line),i.R7$(5),i.JRh(i.bMT(9,14,"Date")),i.R7$(2),i.Y8G("format",c.dateTimeFormat)("locale",c.userLocale),i.R7$(4),i.JRh(i.bMT(15,16,"Hour")),i.R7$(4),i.Y8G("btnTheme",c.buttonTheme.Ghost)("size",c.buttonSize.SM),i.R7$(2),i.JRh(i.bMT(21,18,"Cancel")),i.R7$(2),i.Y8G("btnTheme",c.buttonTheme.Secondary)("size",c.buttonSize.SM)("disabled",c.formEta.invalid),i.R7$(2),i.JRh(i.bMT(25,20,"Validate"))}}let qt=(()=>{class _{constructor(c){this.i18nService=c,this.etaChanged=new i.bkB,this.eta=(0,i.hFB)(),this.title=(0,i.hFB)(),this.buttonIcon=(0,i.hFB)(),this.timezone=(0,i.hFB)(""),this.buttonIconType=(0,i.hFB)(s.Oo.Solid),this.formIsVisible=!1,this.buttonTheme=s.Ox,this.buttonSize=s.Mp,this.svgIconType=s.Oo,this.dateTimeFormat=this.i18nService.getDateFormat(),this.userLocale=(0,Ai.JK)(this.i18nService.getCurrentLanguage().getValue().code)}ngOnInit(){let c,D;this.eta()&&(c=new Date((0,Ai.Yq)(this.eta().date,{format:o.nY.Long,timezone:this.timezone()})),D=(0,Ai.Yq)(new Date(this.eta().date),{format:o.nY.TimeShort,timezone:this.timezone()})),this.formEta=new x.gE({date:new x.MJ(c,je.Ne.required),hour:new x.MJ({label:D,value:D},je.Ne.required)})}saveEta(){const c=this.formEta.controls.hour.value.value.split(":"),D=(0,Do.L_)(this.formEta.controls.date.value,this.timezone());D.setHours(+c[0]),D.setMinutes(+c[1]),this.etaChanged.emit({eta:(0,Do.GP)(D,"yyyy-MM-dd'T'HH:mm:ssxxx",{timeZone:this.timezone()})})}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(e.W4))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-eta-manual-form"]],inputs:{eta:[1,"eta"],title:[1,"title"],buttonIcon:[1,"buttonIcon"],timezone:[1,"timezone"],buttonIconType:[1,"buttonIconType"]},outputs:{etaChanged:"etaChanged"},standalone:!0,features:[i.aNF],decls:2,vars:1,consts:[["data-qa","toggle-form-btn",3,"isLinkStyle"],[1,"p-3","mt-3","bg-shippeo-50","rounded",3,"formGroup"],["data-qa","toggle-form-btn",3,"click","isLinkStyle"],["slot","label"],["slot","icon-right",3,"type","name"],[1,"d-flex","justify-content-between","mb-3","f-sm","fw-medium"],["name","close","color","gray-400",3,"click","type"],[1,"row"],[1,"col"],["formControlName","date",3,"format","locale"],["formControlName","hour"],[1,"d-flex","justify-content-between","mt-3"],[3,"click","btnTheme","size"],["data-qa","save-btn",3,"click","btnTheme","size","disabled"]],template:function(D,G){1&D&&i.DNE(0,vn,4,4,"shui-button",0)(1,vo,26,22,"div",1),2&D&&i.vxM(G.formIsVisible?1:0)},dependencies:[o.Qp,o.Ox,o.KS,e.LP,p.D9,o.UF,x.X1,x.BC,x.cb,x.j4,x.JD,o.Ad,o.DM,o.nV],encapsulation:2,changeDetection:0})}return _})();var Xi=r(97439);const ri=(_,ie,c)=>({format:_,languageCode:ie,timezone:c});function Cn(_,ie){if(1&_&&(i.j41(0,"div",6)(1,"span"),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"span"),i.EFF(5),i.nI1(6,"formatDateTime"),i.k0s()()),2&_){const c=i.XpG().$implicit,D=i.XpG();i.R7$(2),i.JRh(i.bMT(3,2,"[[eta popover]] Received")),i.R7$(3),i.JRh(i.i5U(6,4,c.receptionDate,i.sMw(7,ri,D.dateTimeFormat,D.languageCode,D.timezone())))}}function En(_,ie){if(1&_&&(i.nrm(0,"shui-chip",10),i.nI1(1,"translate"),i.nrm(2,"shui-svg-icon",11),i.nI1(3,"translate")),2&_){const c=i.XpG(2).$implicit,D=i.XpG();i.Y8G("label",i.bMT(1,4,c.source===D.etaSource.InternalLeadTime?"Estimation":"Live")),i.R7$(2),i.Y8G("size",D.svgIconSize.Small)("type",D.svgIconType.Solid)("ngbTooltip",i.bMT(3,6,c.source===D.etaSource.InternalLeadTime?"Based on historical data":"Calculated with GPS positions"))}}function Ji(_,ie){if(1&_&&(i.j41(0,"div",6)(1,"span",9),i.EFF(2),i.nI1(3,"translate"),i.DNE(4,En,4,8),i.k0s(),i.j41(5,"span"),i.EFF(6),i.nI1(7,"formatDateTime"),i.k0s()()),2&_){const c=i.XpG().$implicit,D=i.XpG();i.R7$(2),i.SpI(" ",i.bMT(3,3,"[[eta popover]] Calculated")," "),i.R7$(2),i.vxM(c.source!==D.etaSource.External?4:-1),i.R7$(2),i.JRh(i.i5U(7,5,c.lastCalculationAt,i.sMw(8,ri,D.dateTimeFormat,D.languageCode,D.timezone())))}}function Co(_,ie){if(1&_&&(i.j41(0,"div",6)(1,"span",12),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.j41(4,"span"),i.EFF(5),i.nI1(6,"convertUnitPreference"),i.k0s()()),2&_){const c=i.XpG().$implicit;i.R7$(2),i.SpI(" ",i.bMT(3,2,"[[eta popover]] Remaining distance")," "),i.R7$(3),i.JRh(i.i5U(6,4,c.remainingDistance,"km")())}}function Qi(_,ie){if(1&_&&i.nrm(0,"sh-eta-issue",7),2&_){const c=i.XpG().$implicit;i.Y8G("estimatedTime",c)}}function Zi(_,ie){if(1&_){const c=i.RV6();i.j41(0,"sh-eta-manual-form",14),i.nI1(1,"translate"),i.bIt("etaChanged",function(G){i.eBV(c);const Te=i.XpG(3);return i.Njj(Te.etaChanged.emit(G))}),i.k0s()}if(2&_){const c=i.XpG(2).$implicit,D=i.XpG();i.Y8G("eta",c)("timezone",D.timezone())("title",i.bMT(1,3,"Update the external ETA"))}}function Tn(_,ie){if(1&_&&i.DNE(0,Zi,2,5,"sh-eta-manual-form",13),2&_){const c=i.XpG(2);i.Y8G("ngxPermissionsOnly",c.permissionName.ExternalEta)}}function ei(_,ie){if(1&_&&(i.j41(0,"div",1)(1,"div",3)(2,"span",4),i.EFF(3),i.nI1(4,"etaDetailEtaLabel"),i.nI1(5,"translate"),i.k0s(),i.nrm(6,"sh-estimated-time",5),i.k0s(),i.DNE(7,Cn,7,11,"div",6)(8,Ji,8,12,"div",6)(9,Co,7,7,"div",6)(10,Qi,1,1,"sh-eta-issue",7)(11,Tn,1,1,"sh-eta-manual-form",8),i.k0s()),2&_){let c;const D=ie.$implicit,G=i.XpG();i.R7$(3),i.SpI(" ",i.bMT(5,18,i.i5U(4,15,D.source,D.type))," "),i.R7$(3),i.Y8G("date",D.date)("delay",D.delay)("etaStatus",D.etaStatus)("isExternal",D.isExternal)("provider",D.isExternal?G.dateProviderType.Carrier:G.dateProviderType.Shippeo)("source",D.source)("timezone",G.timezone())("type",null!==(c=D.type)&&void 0!==c?c:G.estimatedTimeType.Arrival)("precision",D.precision),i.R7$(),i.vxM(D.receptionDate?7:-1),i.R7$(),i.vxM(D.lastCalculationAt?8:-1),i.R7$(),i.vxM(D.remainingDistance?9:-1),i.R7$(),i.vxM(D.etaReason?10:-1),i.R7$(),i.vxM(G.canAddExternalEta()&&D.source===G.etaSource.External&&D.type!==G.estimatedTimeType.Depart?11:-1)}}function gi(_,ie){if(1&_){const c=i.RV6();i.j41(0,"sh-eta-manual-form",16),i.nI1(1,"translate"),i.bIt("etaChanged",function(G){i.eBV(c);const Te=i.XpG(2);return i.Njj(Te.etaChanged.emit(G))}),i.k0s()}if(2&_){const c=i.XpG(2);i.Y8G("timezone",c.timezone())("title",i.bMT(1,2,"Add an external ETA"))}}function qi(_,ie){if(1&_&&i.DNE(0,gi,2,4,"sh-eta-manual-form",15),2&_){const c=i.XpG();i.Y8G("ngxPermissionsOnly",c.permissionName.ExternalEta)}}let Ui=(()=>{class _{constructor(c){this.i18nService=c,this.etaChanged=new i.bkB,this.canAddExternalEta=(0,i.hFB)(),this.estimatedTimeList=(0,i.hFB)([]),this.timezone=(0,i.hFB)(""),this.dateProviderType=E.QDH,this.estimatedTimeType=E.KMV,this.dateTimeFormat=this.i18nService.getDateTimeFormat(),this.svgIconSize=s.D7,this.svgIconType=s.Oo,this.etaSource=E.Xjg,this.permissionName=Dn.$z,this.languageCode=this.i18nService.getCurrentLanguage().getValue().code,this.estimatedTimeListWithDelay=(0,i.EWP)(()=>this.estimatedTimeList().map(D=>({...D,delay:this.setEtaDelay(D)}))),this.canAddNewExternalEta=(0,i.EWP)(()=>!this.estimatedTimeList().some(D=>D.source===E.Xjg.External&&D.type!==E.KMV.Depart))}setEtaDelay(c){if(c.estimatedAt)return"0:00"!==c?.getHumanizedDuration()?c.getHumanizedDuration():void 0}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(e.W4))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-eta-detail-eta-popover"]],inputs:{canAddExternalEta:[1,"canAddExternalEta"],estimatedTimeList:[1,"estimatedTimeList"],timezone:[1,"timezone"]},outputs:{etaChanged:"etaChanged"},standalone:!0,features:[i.aNF],decls:4,vars:1,consts:[[1,"px-4"],[1,"mb-3"],["buttonIcon","plus-circle",1,"mb-2",3,"timezone","title"],[1,"d-flex","align-items-center","w-100","justify-content-between","g-3"],[1,"f-xs","fw-medium","flex-grow-1","text-gray-700"],[3,"date","delay","etaStatus","isExternal","provider","source","timezone","type","precision"],[1,"d-flex","align-items-center","w-100","justify-content-between","g-3","mt-1","f-xs","text-gray-400"],[3,"estimatedTime"],["buttonIcon","pencil-alt",1,"mt-1",3,"eta","timezone","title"],[1,"d-flex","g-1","align-items-center"],["color","shippeo",3,"label"],["name","information-circle","color","shippeo-400","container","body",3,"size","type","ngbTooltip"],[1,"flex-grow-1"],["class","mt-1","buttonIcon","pencil-alt",3,"eta","timezone","title","etaChanged",4,"ngxPermissionsOnly"],["buttonIcon","pencil-alt",1,"mt-1",3,"etaChanged","eta","timezone","title"],["class","mb-2","buttonIcon","plus-circle",3,"timezone","title","etaChanged",4,"ngxPermissionsOnly"],["buttonIcon","plus-circle",1,"mb-2",3,"etaChanged","timezone","title"]],template:function(D,G){1&D&&(i.j41(0,"div",0),i.Z7z(1,ei,12,20,"div",1,i.Vm6),i.DNE(3,qi,1,1,"sh-eta-manual-form",2),i.k0s()),2&D&&(i.R7$(),i.Dyx(G.estimatedTimeListWithDelay()),i.R7$(2),i.vxM(G.canAddExternalEta()&&G.canAddNewExternalEta()?3:-1))},dependencies:[o.wu,t.MD,$i,yn,ui,qt,e.LP,p.D9,X.n8,X.md,Ki.Ov,Ki.f6,O.Yc,Xi.f,o.Ad,o.DM,gt.eR,ji.B],encapsulation:2,changeDetection:0})}return _})();var Rt=r(85823);function Eo(_,ie){if(1&_){const c=i.RV6();i.j41(0,"shui-button",3),i.bIt("click",function(G){i.eBV(c);const Te=i.XpG();return i.Njj(Te.previousTimezone(G))}),i.nrm(1,"shui-svg-icon",4),i.k0s()}if(2&_){const c=i.XpG();i.Y8G("disabled",0===c.currentIndex())("isLinkStyle",!0),i.R7$(),i.Y8G("size",c.svgIconSize.Small)}}function Ct(_,ie){if(1&_){const c=i.RV6();i.j41(0,"shui-button",5),i.bIt("click",function(G){i.eBV(c);const Te=i.XpG();return i.Njj(Te.nextTimezone(G))}),i.nrm(1,"shui-svg-icon",6),i.k0s()}if(2&_){const c=i.XpG();i.Y8G("disabled",c.currentIndex()===c.timezoneList().length-1)("isLinkStyle",!0),i.R7$(),i.Y8G("size",c.svgIconSize.Small)}}let Rn=(()=>{class _{constructor(){this.currentTimezone=i.geq.required(),this.timezoneList=i.hFB.required({transform:c=>[...new Set(c)]}),this.currentIndex=(0,i.EWP)(()=>this.timezoneList().indexOf(this.currentTimezone())),this.currentTimezoneLabel=(0,i.EWP)(()=>(0,Ai.Pt)(new Date(Date.now()),{timezone:this.currentTimezone(),timezoneFormat:Ai.rl.Parenthesis})),this.svgIconSize=s.D7,(0,i.QZP)(()=>{const c=this.currentTimezone(),D=this.timezoneList();(!c||!D.includes(c))&&this.currentTimezone.set(D.at(0))},{allowSignalWrites:!0})}nextTimezone(c){c.stopPropagation(),this.currentIndex()<this.timezoneList().length-1&&this.currentTimezone.set(this.timezoneList().at(this.currentIndex()+1))}previousTimezone(c){c.stopPropagation(),this.currentIndex()>0&&this.currentTimezone.set(this.timezoneList().at(this.currentIndex()-1))}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-timezone-selection"]],inputs:{currentTimezone:[1,"currentTimezone"],timezoneList:[1,"timezoneList"]},outputs:{currentTimezone:"currentTimezoneChange"},standalone:!0,features:[i.aNF],decls:5,vars:6,consts:[["data-qa","previous-timezone",3,"disabled","isLinkStyle"],["data-qa","current-timezone",1,"flex-grow-1","text-center","text-gray-400"],["data-qa","next-timezone",3,"disabled","isLinkStyle"],["data-qa","previous-timezone",3,"click","disabled","isLinkStyle"],["name","chevron-left","role","button","slot","icon-left",3,"size"],["data-qa","next-timezone",3,"click","disabled","isLinkStyle"],["name","chevron-right","role","button","slot","icon-left",3,"size"]],template:function(D,G){1&D&&(i.DNE(0,Eo,2,3,"shui-button",0),i.j41(1,"span",1),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.DNE(4,Ct,2,3,"shui-button",2)),2&D&&(i.vxM(G.timezoneList().length>1?0:-1),i.R7$(2),i.Lme("",i.bMT(3,4,"ZONE")," ",G.currentTimezoneLabel(),""),i.R7$(2),i.vxM(G.timezoneList().length>1?4:-1))},dependencies:[o.Qp,e.LP,p.D9,o.Ad,o.DM],styles:["[_nghost-%COMP%]{display:flex;padding:var(--spacer-2);border-top:1px solid var(--bs-gray-200);background-color:var(--bs-gray-50);--arrow-color: var(--bs-gray-500)}shui-button[_ngcontent-%COMP%]{--button-primary-link-color: var(--arrow-color);--button-primary-link-hover-color: var(--arrow-color);--button-primary-link-active-color: var(--arrow-color);--button-primary-link-disabled-color: var(--arrow-color)}"],changeDetection:0})}return _})();const To=(_,ie)=>({format:_,timezone:ie});function Sn(_,ie){if(1&_){const c=i.RV6();i.j41(0,"sh-timezone-selection",7),i.mxI("currentTimezoneChange",function(G){i.eBV(c);const Te=i.XpG();return i.DH7(Te.timezoneSelected,G)||(Te.timezoneSelected=G),i.Njj(G)}),i.k0s()}if(2&_){const c=i.XpG();i.R50("currentTimezone",c.timezoneSelected),i.Y8G("timezoneList",c.timezoneList())}}let en=(()=>{class _{constructor(){this.etaChanged=(0,i.CGW)(),this.estimatedTimeList=(0,i.hFB)([]),this.canAddExternalEta=(0,i.hFB)(),this.plannedLabel=(0,i.hFB)((0,Q.x)("Planned date")),this.plannedDate=(0,i.hFB)(),this.timezoneList=(0,i.EWP)(()=>[...(0,Rt.A)(this.estimatedTimeList().map(({timezone:c})=>c)),this.i18nService.timezone()]),this.timezoneSelected=(0,i.vPA)(""),this.i18nService=(0,i.WQX)(e.W4)}static#e=this.className="eta-list-popover";get className(){return _.className}static#t=this.\u0275fac=function(D){return new(D||_)};static#i=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-eta-detail-popover"]],hostVars:2,hostBindings:function(D,G){2&D&&i.HbH(G.className)},inputs:{estimatedTimeList:[1,"estimatedTimeList"],canAddExternalEta:[1,"canAddExternalEta"],plannedLabel:[1,"plannedLabel"],plannedDate:[1,"plannedDate"]},outputs:{etaChanged:"etaChanged"},standalone:!0,features:[i.aNF],decls:12,vars:14,consts:[[1,"eta-detail-popover","text-start"],[1,"d-flex","align-items-start","w-100","px-4","pt-4","mb-1"],[1,"f-xs","fw-medium","align-items-center","flex-grow-1","text-gray-500"],[1,"d-inline-flex","flex-md-shrink-0","ms-4"],[1,"d-flex","align-items-center","f-xs","fw-medium","text-gray-400"],[3,"etaChanged","canAddExternalEta","estimatedTimeList","timezone"],[1,"mt-1",3,"currentTimezone","timezoneList"],[1,"mt-1",3,"currentTimezoneChange","currentTimezone","timezoneList"]],template:function(D,G){1&D&&(i.j41(0,"div",0)(1,"div",1)(2,"span",2),i.EFF(3),i.nI1(4,"translate"),i.k0s(),i.j41(5,"div",3)(6,"span",4)(7,"span"),i.EFF(8),i.nI1(9,"formatDateTime"),i.k0s()()()(),i.j41(10,"sh-eta-detail-eta-popover",5),i.bIt("etaChanged",function(yt){return G.etaChanged.emit(yt)}),i.k0s(),i.DNE(11,Sn,1,2,"sh-timezone-selection",6),i.k0s()),2&D&&(i.R7$(3),i.SpI(" ",i.bMT(4,6,G.plannedLabel())," "),i.R7$(5),i.JRh(i.i5U(9,8,G.plannedDate(),i.l_i(11,To,G.i18nService.dateTimeFormat(),G.timezoneSelected()))),i.R7$(2),i.Y8G("canAddExternalEta",G.canAddExternalEta())("estimatedTimeList",G.estimatedTimeList())("timezone",G.timezoneSelected()),i.R7$(),i.vxM(G.timezoneList().length?11:-1))},dependencies:[e.LP,p.D9,Ui,Rn,O.Yc,Xi.f],styles:[".eta-detail-popover[_ngcontent-%COMP%]{min-width:360px;max-width:520px}"],changeDetection:0})}return _})();var Fi=r(30593),mt=r(47947);r(41483),r(88249);let Mn=(()=>{class _{static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275dir=i.FsC({type:_,selectors:[["","shInfoCardTooltip",""]],standalone:!0})}return _})();const bo=[[["","shInfoCardTooltip",""]]],Ni=["[shInfoCardTooltip]"];function Gn(_,ie){1&_&&i.SdG(0)}function Po(_,ie){if(1&_&&(i.nrm(0,"shui-svg-icon",4),i.DNE(1,Gn,1,0,"ng-template",null,0,i.C5r)),2&_){const c=i.sdS(2),D=i.XpG();i.Y8G("size",D.svgIconSize.Small)("type",D.svgIconType.Solid)("ngbTooltip",c)}}let xo=(()=>{class _{constructor(){this.svgIconSize=s.D7,this.svgIconType=s.Oo}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-info-card"]],contentQueries:function(D,G,Te){if(1&D&&i.wni(Te,Mn,5),2&D){let yt;i.mGM(yt=i.lsd())&&(G.infoTooltipRef=yt.first)}},inputs:{label:"label",value:"value"},standalone:!0,features:[i.aNF],ngContentSelectors:Ni,decls:7,vars:5,consts:[["infoTooltip",""],[1,"d-flex","align-items-center","mb-1"],[1,"label","text-gray-500","fw-normal"],["data-qa","value",1,"text-gray-700","f-sm","fw-medium"],["container","body","name","information-circle","color","gray-500",1,"ms-1",3,"size","type","ngbTooltip"]],template:function(D,G){1&D&&(i.NAR(bo),i.j41(0,"div",1)(1,"span",2),i.EFF(2),i.nI1(3,"translate"),i.k0s(),i.DNE(4,Po,3,3),i.k0s(),i.j41(5,"div",3),i.EFF(6),i.k0s()),2&D&&(i.R7$(2),i.JRh(i.bMT(3,3,G.label)),i.R7$(2),i.vxM(G.infoTooltipRef?4:-1),i.R7$(2),i.JRh(G.value||"-"))},dependencies:[e.LP,p.D9,X.n8,X.md,o.Ad,o.DM],styles:["[_nghost-%COMP%]{--info-card-label-font-size: var(--font-size-xs);--info-card-padding: var(--spacer-4);display:block;padding:var(--info-card-padding)}.label[_ngcontent-%COMP%]{font-size:var(--info-card-label-font-size)}"],changeDetection:0})}return _})();var at=r(19339);function vt(_,ie){if(1&_){const c=i.RV6();i.qex(0),i.j41(1,"shui-button",2),i.bIt("click",function(G){i.eBV(c);const Te=i.XpG();return i.Njj(Te.openSideBar(G))}),i.j41(2,"label",3),i.EFF(3),i.j41(4,"span",4),i.EFF(5),i.k0s()()(),i.bVm()}if(2&_){const c=i.XpG();i.R7$(),i.Y8G("isLinkStyle",!0),i.R7$(2),i.SpI(" ",c.limitedText," "),i.R7$(2),i.SpI(" +",c.remainingSeparatedTextCount,"")}}function Un(_,ie){if(1&_&&i.nrm(0,"sh-interactive-link",5),2&_){const c=i.XpG();i.Y8G("label",c.text)("navigate",c.navigate)("isLink",c.isLink)}}let zn=(()=>{class _{constructor(){this.maxLength=25,this.separator=", ",this.isLink=!0}ngOnChanges({text:c,maxLength:D}){c&&c.currentValue&&D&&"number"==typeof D.currentValue&&this.handleText()}ngOnInit(){this.text&&this.handleText()}openSideBar(c){c.stopPropagation(),this.openDetails()}handleText(){this.shouldDisplayInSideBar=this.text.split(this.separator).length>1,this.shouldDisplayInSideBar&&this.setListDisplay()}setListDisplay(){const c=this.text.substr(this.maxLength);this.remainingSeparatedTextCount=c.split(this.separator).length,this.limitedText=this.text.substr(0,this.text.indexOf(this.separator))}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-list-details"]],inputs:{maxLength:"maxLength",separator:"separator",text:"text",navigate:"navigate",openDetails:"openDetails",isLink:"isLink"},standalone:!0,features:[i.OA$,i.aNF],decls:3,vars:2,consts:[["textBlock",""],[4,"ngIf","ngIfElse"],["data-qa","open-sidebar",3,"click","isLinkStyle"],["slot","label"],[1,"text-shippeo-500"],[3,"label","navigate","isLink"]],template:function(D,G){if(1&D&&i.DNE(0,vt,6,3,"ng-container",1)(1,Un,1,3,"ng-template",null,0,i.C5r),2&D){const Te=i.sdS(2);i.Y8G("ngIf",G.shouldDisplayInSideBar)("ngIfElse",Te)}},dependencies:[t.MD,t.bT,o.tm,o.Qp,me],encapsulation:2,changeDetection:0})}return _})(),Yt=(()=>{class _{static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275mod=i.$C({type:_});static#i=this.\u0275inj=i.G2t({imports:[t.MD,o.wu,e.LP]})}return _})();var kn=r(72519);const Et=500,Mo=13,Mt=8,Go=2,Uo=1,wn=()=>new google.maps.LatLng(0,0);let Fo=(()=>{class _{constructor(c){this.i18nService=c,this.closeMapMarkerId$=new i.bkB,this.openMapMarkerId$=new i.bkB,this.MAX_TOLERANCE=.01,this.MAX_ZOOM=13,this.MIN_TOLERANCE=0,this.MIN_ZOOM=8}closeMarker(c,D){const G=this.getMarkerId(c,D);this.closeMapMarkerId$.emit(G)}createMarkerFromEventPosition(c,D,G,Te,yt){return{id:this.getMarkerId(o.hN.Event,c),label:`\n              <span class="f-xs text-gray-700 letter-spacing-sm">${Te}</span><br>\n              <span class="f-sm text-gray-900 fw-medium">${this.i18nService.instant(D)}</span>\n              `,markerType:o.hN.Event,pinColor:s.kp.Cobalt,pinColorType:o.SK.Dark,pinIcon:yt,position:{lat:G.lat,lng:G.lng},zIndex:"100000"}}createMarkerFromGeoJson(c){return{isCircle:c.isCircleGeoFencingType(),isPolygon:c.isPolygonGeoFencingType(),options:c.isCircleGeoFencingType()?{center:{lat:c.getLat(),lng:c.getLng()},radius:+c.getRadius()}:{paths:c.getPolygonGeometry().map(D=>({lat:D[1],lng:D[0]}))}}}createMarkerFromHistoricalPositionList(c,D){return c.map((G,Te)=>({id:this.getMarkerId(o.hN.Historical,Te.toString()),label:`\n              <span class="f-xs text-gray-700 letter-spacing-sm">\n                ${D(G.date)}\n              </span>\n              `,markerType:o.hN.Historical,pinColor:s.kp.Shippeo,position:{lat:G.lat,lng:G.lng}}))}createMarkerFromResource(c,D,G){return{data:D,id:this.getMarkerId(o.hN.Transport,c),isCurrent:!0,markerType:o.hN.Transport,pinColor:s.kp.Shippeo,pinColorType:o.SK.Default,pinIcon:G,position:{lat:D.lat,lng:D.lng}}}createMarkerFromStopPoint(c,D,G,Te,yt,ir,nr=!0){const Xt=this.getMarkerStyleFromStatus(Te);return{data:c,id:this.getMarkerId(o.hN.StopPoint,D),infoColor:Xt.infoColor,infoIcon:nr?Xt.infoIcon:void 0,label:G,labelColor:Xt.color,labelColorType:Xt.colorType?Xt.colorType:o.SK.Default,markerType:o.hN.StopPoint,pinColor:Xt.color,pinColorType:Xt.colorType?Xt.colorType:o.SK.Default,pinLabel:(ir+1).toString(),position:{lat:yt.lat,lng:yt.lng}}}getMarkerId(c,D){return`${c}-${D}`}getMarkerStyleFromStatus(c){return{[E.xJJ.None]:{color:s.kp.Gray,colorType:o.SK.Dark},[E.xJJ.NotStarted]:{color:s.kp.Gray,colorType:o.SK.Dark},[E.xJJ.NoIssue]:{color:s.kp.Shippeo,infoColor:s.kp.Shippeo,infoIcon:o.En.Check},[E.xJJ.OnTime]:{color:s.kp.Green},[E.xJJ.Warning]:{color:s.kp.Yellow,infoColor:s.kp.Yellow,infoIcon:o.En.Warning},[E.xJJ.Risky]:{color:s.kp.Red,infoColor:s.kp.Red,infoIcon:o.En.Warning},[E.xJJ.Skipped]:{color:s.kp.Gray,infoColor:s.kp.Gray,infoIcon:o.En.Cross},[E.xJJ.RiskyDelay]:{color:s.kp.Red,colorType:o.SK.Light},[E.xJJ.TolerableDelay]:{color:s.kp.Yellow,infoColor:s.kp.Yellow,infoIcon:o.En.Warning},[E.xJJ.Early]:{color:s.kp.Gray},[E.xJJ.ToleratedDelay]:{color:s.kp.Gray}}[c]||{color:s.kp.Gray}}getToleranceFromZoom(c){let D=(c-this.MIN_ZOOM)/(this.MAX_ZOOM-this.MIN_ZOOM);return D<0&&(D=0),D>1&&(D=1),this.MAX_TOLERANCE+D*(this.MIN_TOLERANCE-this.MAX_TOLERANCE)}openMarker(c,D){const G=this.getMarkerId(c,D);this.openMapMarkerId$.emit(G)}static#e=this.\u0275fac=function(D){return new(D||_)(i.KVO(e.W4))};static#t=this.\u0275prov=i.jDH({token:_,factory:_.\u0275fac})}return _})();var tn=function(_){return _.LeftBottom="LEFT_BOTTOM",_.RightTop="RIGHT_TOP",_.TopCenter="TOP_CENTER",_.TopLeft="TOP_LEFT",_}(tn||{}),ai=r(95607),Vn=r(95434),Bn=r(94286),Ft=r(4395),Hn=r(88221);let zo=(()=>{class _{constructor(c){this.userSessionService=c,this.colorVariant=s.aJ}transform(c){const D=this.userSessionService.getUser()?.organization.getPreference(E.a4k.ToleratedDelay),G=this.userSessionService.getUser()?.organization.getPreference(E.a4k.RiskyDelay);return this.toleratedDelayValue=parseFloat(D?.value),this.riskyDelayValue=parseFloat(G?.value),this.getMilestoneDelayColor(c)}getMilestoneDelayColor(c){const D=[E.OL1.ParcelLoading,E.OL1.ParcelDelivery,E.OL1.ParcelDeliveryHub,E.OL1.ParcelHub].includes(c.dateSlug);if(c.dateSlug!==E.OL1.Arrived&&!D)return this.getThemeColor(s.kp.Gray,this.colorVariant.V500);if(c.plannedDate&&c.date){if(this.isRiskyDelay(c.plannedDate,c.date))return this.getThemeColor(s.kp.Red,this.colorVariant.V600);if(this.isToleratedDelay(c.plannedDate,c.date))return this.getThemeColor(s.kp.Yellow,this.colorVariant.V600);if(this.isOnTime(c.plannedDate,c.date))return this.getThemeColor(s.kp.Green,this.colorVariant.V600)}return this.getThemeColor(s.kp.Cobalt,this.colorVariant.V600)}isRiskyDelay(c,D){const G=this.getRiskyOrTolerableDelay(c,D,this.riskyDelayValue);return G?!(0,ai.d)(G,D):(0,ai.d)(D,c)}isToleratedDelay(c,D){const G=this.getRiskyOrTolerableDelay(c,D,this.toleratedDelayValue);return G?(0,Vn.Y)(G,D):(0,ai.d)(D,c)}isOnTime(c,D){if(!D)return!1;if((0,Hn.A)(this.toleratedDelayValue)){const G=this.addOrSubtractTime(this.riskyDelayValue,c);return!(0,ai.d)(D,G)}if(this.toleratedDelayValue&&0!==Math.abs(this.toleratedDelayValue)){const G=this.addOrSubtractTime(this.toleratedDelayValue,c);return!(0,ai.d)(D,G)}return!(0,ai.d)(D,c)}getRiskyOrTolerableDelay(c,D,G){if(D&&!(0,Hn.A)(G)&&0!==Math.abs(G)&&!isNaN(G))return this.addOrSubtractTime(G,c)}addOrSubtractTime(c,D){return c<0?(0,Bn.Y)(D,Math.abs(c)):(0,Ft.z)(D,c)}getThemeColor(c,D){return`${c}-${D}`}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(gt.hG,16))};static#t=this.\u0275pipe=i.EJ8({name:"milestoneColorDelay",type:_,pure:!0,standalone:!0})}return _})();var _r=r(909);const ko=["popoverAnchor"],hr=(_,ie,c,D)=>[_,ie,c,D],Wn=_=>({"border-bottom border-gray-100 mb-1":_});function wo(_,ie){if(1&_&&(i.j41(0,"div",2,1),i.nI1(2,"async"),i.nrm(3,"sh-estimated-time",3),i.k0s()),2&_){let c;const D=ie,G=i.XpG(),Te=i.sdS(3);i.Y8G("autoClose",!1)("ngbPopover",Te)("placement",i.ziG(16,hr,G.placement.BottomLeft,G.placement.BottomRight,G.placement.TopRight,G.placement.TopLeft))("disablePopover",i.bMT(2,14,G.displayNewEtaPopover$)?!G.etaList.length:G.etaList.length<=1),i.R7$(3),i.Y8G("date",D.date)("delay",D.delay)("etaStatus",D.etaStatus)("isExternal",D.isExternal)("provider",D.isExternal?G.dateProviderType.Carrier:G.dateProviderType.Shippeo)("remainingDistance",D.remainingDistance)("source",D.source)("timezone",D.timezone)("type",null!==(c=D.type)&&void 0!==c?c:G.estimatedTimeType.Arrival)("precision",D.precision)}}function Yn(_,ie){if(1&_&&i.nrm(0,"sh-eta-detail-popover",4),2&_){const c=i.XpG(2);i.Y8G("estimatedTimeList",c.etaList)("plannedDate",c.etaList[0].theoreticalAt)}}function Vo(_,ie){if(1&_&&i.nrm(0,"sh-estimated-time",7),2&_){let c;const D=i.XpG().$implicit,G=i.XpG(3);i.Y8G("date",D.date)("delay",D.delay)("etaStatus",D.etaStatus)("isExternal",D.isExternal)("provider",D.isExternal?G.dateProviderType.Carrier:G.dateProviderType.Shippeo)("timezone",D.timezone)("type",null!==(c=D.type)&&void 0!==c?c:G.estimatedTimeType.Arrival)}}function Bo(_,ie){if(1&_&&(i.j41(0,"div",6),i.DNE(1,Vo,1,7,"sh-estimated-time",7),i.k0s()),2&_){const c=ie.$index;i.Y8G("ngClass",i.eq3(2,Wn,c!==ie.$count-1)),i.R7$(),i.vxM(0!==c?1:-1)}}function Ho(_,ie){if(1&_&&(i.j41(0,"div",5),i.Z7z(1,Bo,2,4,"div",6,i.Vm6),i.nI1(3,"async"),i.k0s()),2&_){const c=i.XpG(2);i.R7$(),i.Dyx(i.bMT(3,0,c.etaList$))}}function Wo(_,ie){if(1&_&&(i.DNE(0,Yn,1,2,"sh-eta-detail-popover",4),i.nI1(1,"async"),i.DNE(2,Ho,4,2,"div",5)),2&_){const c=i.XpG();i.vxM(i.bMT(1,1,c.displayNewEtaPopover$)?0:2)}}let jn=(()=>{class _{constructor(c,D){this.userSessionService=c,this.featureFlagService=D,this.plannedDate=(0,i.hFB)(),this.dateProviderType=E.QDH,this.placement=s.W,this.estimatedTimeType=E.KMV,this.displayNewEtaPopover$=this.featureFlagService.getFlag(he.TO.EtaPopover),this.isExternalEtaFirst=!1,this.etaListSubject=new ft.t([]),this.subscriptions=new Dt.yU,this.sortEta=(G,Te)=>this.isExternalEtaFirst?G.isExternal?-1:1:G.isExternal?1:-1}ngAfterViewInit(){this.subscriptions.add(this.popoverAnchorList.changes.pipe((0,Fi.Z)(void 0)).subscribe(()=>{this.popoverAnchorList.forEach(c=>this.handlePopover(c.nativeElement))}))}ngOnDestroy(){this.subscriptions.unsubscribe()}get etaList(){return this.etaListSubject.getValue()}set etaList(c){this.etaListSubject.next(c)}ngOnInit(){this.isExternalEtaFirst=this.userSessionService.getUserSession()?.getOrganizationFeatureNames().includes(E.NvA.ExternalEta)??!0,this.etaList$=this.etaListSubject.pipe((0,mt.T)(c=>Array.isArray(c)?[...c].sort(this.sortEta):[])),this.orderEta$=this.etaList$.pipe((0,mt.T)(c=>c[0]?{...c[0],delay:"0:00"!==c[0]?.getHumanizedDuration()?c[0].getHumanizedDuration():void 0}:void 0))}handlePopover(c){this.etaList.length&&(this.subscriptions.add(d.e5.addClosePopoverListener(c,en.className,()=>{this.popover?.close()})),this.subscriptions.add((0,_r.R)(c,"mouseenter").subscribe(()=>this.popover?.open())))}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(gt.hG),i.rXU(he.y9))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-order-eta-list"]],viewQuery:function(D,G){if(1&D&&(i.GBs(X.ZM,5),i.GBs(ko,5)),2&D){let Te;i.mGM(Te=i.lsd())&&(G.popover=Te.first),i.mGM(Te=i.lsd())&&(G.popoverAnchorList=Te)}},inputs:{plannedDate:[1,"plannedDate"],etaList:"etaList"},standalone:!0,features:[i.aNF],decls:4,vars:3,consts:[["popContent",""],["popoverAnchor",""],["triggers","manual",3,"autoClose","ngbPopover","placement","disablePopover"],[3,"date","delay","etaStatus","isExternal","provider","remainingDistance","source","timezone","type","precision"],[3,"estimatedTimeList","plannedDate"],[1,"border","border-gray-200","rounded-1","p-2","eta-list-popover"],[1,"d-flex","flex-column",3,"ngClass"],[3,"date","delay","etaStatus","isExternal","provider","timezone","type"]],template:function(D,G){if(1&D&&(i.DNE(0,wo,4,21,"div",2),i.nI1(1,"async"),i.DNE(2,Wo,3,3,"ng-template",null,0,i.C5r)),2&D){let Te;i.vxM((Te=i.bMT(1,1,G.orderEta$))?0:-1,Te)}},dependencies:[t.MD,t.YU,t.Jj,$i,en,e.LP,X.zr,X.ZM,o.Ad],styles:["[_nghost-%COMP%]     .popover-body{padding:0}"],changeDetection:0})}return _})();const Yo=(_,ie,c)=>({"text-gray-600":_,"fw-bold text-shippeo-500":ie,"cursor-pointer":c});function jo(_,ie){if(1&_&&(i.j41(0,"span"),i.nrm(1,"shui-svg-icon",7),i.k0s()),2&_){const c=i.XpG(2);i.R7$(),i.Y8G("color",c.appointmentIcon.color)("name",c.appointmentIcon.name)("size",c.appointmentIcon.size)("type",c.appointmentIcon.type)}}function fr(_,ie){if(1&_){const c=i.RV6();i.j41(0,"span",5),i.bIt("click",function(){i.eBV(c);const G=i.XpG();return i.Njj(G.isAppointmentTaken()?G.appointmentChanged.emit():"")}),i.nrm(1,"sh-i18n-date",6),i.nI1(2,"milestoneColorDelay"),i.DNE(3,jo,2,4,"span"),i.k0s()}if(2&_){const c=i.XpG();i.Y8G("ngClass",i.sMw(15,Yo,!c.milestone().dateSlug,c.milestone().dateSlug===c.mileStoneDateSlug.Appointment,c.isAppointmentTaken())),i.R7$(),i.Y8G("dateEnd",c.milestone().dateEnd)("date",c.milestone().date)("delayColor",i.bMT(2,13,c.milestone()))("displayTimezone",!0)("fontSize",c.fontSize.Xsmall)("fontWeight",c.milestone().dateSlug===c.mileStoneDateSlug.Appointment?c.fontWeight.Bold700:c.fontWeight.Medium500)("format",c.currentDateTimeFormat)("languageCode",c.currentLanguageCode)("targetDate",c.targetDate)("textColor",c.milestone().dateSlug===c.mileStoneDateSlug.Appointment?"shippeo-500":"gray-600")("timezone",c.milestone().timezone),i.R7$(2),i.vxM(c.isAppointmentTaken()?3:-1)}}function $o(_,ie){if(1&_&&i.nrm(0,"sh-order-eta-list",3),2&_){const c=i.XpG();i.Y8G("etaList",c.milestone().estimatedTimeList)}}function Ko(_,ie){1&_&&(i.j41(0,"span",4),i.EFF(1),i.nI1(2,"translate"),i.k0s()),2&_&&(i.R7$(),i.SpI(" ",i.bMT(2,1,"Not provided")," "))}let Xo=(()=>{class _{constructor(c){this.i18nService=c,this.appointmentChanged=new i.bkB,this.milestoneList=(0,i.hFB)([]),this.milestone=(0,i.hFB)(void 0),this.isAppointmentTaken=(0,i.vPA)(!1),this.appointmentState=E.FvM,this.btnTheme=s.Ox.Secondary,this.currentDateTimeFormat=this.i18nService.getDateTimeFormat(),this.currentLanguageCode=this.i18nService.getCurrentLanguage().getValue().code,this.fontSize=s.Z4,this.fontWeight=s.IT,this.mileStoneDateSlug=E.OL1,this.appointmentIcon={color:"cobalt-500",name:"pencil-alt",size:s.D7.SMedium,type:s.Oo.Solid},(0,i.QZP)(()=>{const D=this.milestone();this.isAppointmentTaken.set(D?.appointmentState===this.appointmentState.IsTaken&&D?.dateSlug===this.mileStoneDateSlug.Appointment)},{allowSignalWrites:!0})}static#e=this.\u0275fac=function(D){return new(D||_)(i.rXU(e.W4))};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-order-milestone"]],inputs:{targetDate:"targetDate",milestoneList:[1,"milestoneList"],milestone:[1,"milestone"]},outputs:{appointmentChanged:"appointmentChanged"},standalone:!0,features:[i.aNF],decls:7,vars:8,consts:[[1,"f-xs","fw-medium","align-items-center","flex-grow-1","padding-fix"],[1,"d-inline-flex","flex-md-shrink-0","ms-4"],[1,"d-flex","align-items-center","f-xs","fw-medium","text-gray-600","padding-fix",3,"ngClass"],[3,"etaList"],[1,"f-xs","fw-bold","text-red-500","padding-fix"],[1,"d-flex","align-items-center","f-xs","fw-medium","text-gray-600","padding-fix",3,"click","ngClass"],[3,"dateEnd","date","delayColor","displayTimezone","fontSize","fontWeight","format","languageCode","targetDate","textColor","timezone"],[1,"ms-1",3,"color","name","size","type"]],template:function(D,G){1&D&&(i.j41(0,"span",0),i.EFF(1),i.nI1(2,"translate"),i.k0s(),i.j41(3,"div",1),i.DNE(4,fr,4,19,"span",2)(5,$o,1,1,"sh-order-eta-list",3)(6,Ko,3,3,"span",4),i.k0s()),2&D&&(i.AVh("text-gray-600",!G.milestone().dateSlug),i.R7$(),i.SpI(" ",i.bMT(2,6,G.milestone().label),"\n"),i.R7$(3),i.vxM(G.milestone().date?4:-1),i.R7$(),i.vxM(G.milestone().isEstimation?5:-1),i.R7$(),i.vxM(G.milestone().date||G.milestone().isEstimation?-1:6))},dependencies:[t.MD,t.YU,e.LP,p.D9,O.Yc,jn,o.Ad,o.DM,kt.n,ee.g,zo],styles:["[_nghost-%COMP%]{display:flex;align-items:flex-start;width:100%}.padding-fix[_ngcontent-%COMP%]{padding-top:.125rem}"],changeDetection:0})}return _})();var vr=r(60302);r(87708),r(12596);const yi=["*"];function Vi(_,ie){1&_&&i.SdG(0)}let si=(()=>{class _{constructor(){this.placement=s.W,this.svgIconSize=s.D7,this.svgIconType=s.Oo}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-rollover"]],standalone:!0,features:[i.aNF],ngContentSelectors:yi,decls:3,vars:4,consts:[["popContent",""],["color","yellow-500","name","exclamation-circle","triggers","hover","data-qa","icon",3,"ngbPopover","placement","size","type"]],template:function(D,G){if(1&D&&(i.NAR(),i.nrm(0,"shui-svg-icon",1),i.DNE(1,Vi,1,0,"ng-template",null,0,i.C5r)),2&D){const Te=i.sdS(2);i.Y8G("ngbPopover",Te)("placement",G.placement.RightTop)("size",G.svgIconSize.Xsmall)("type",G.svgIconType.Solid)}},dependencies:[X.zr,X.ZM,o.Ad,o.DM],styles:["[_nghost-%COMP%]{display:inline-block;width:16px;height:16px;border-radius:50%;background-color:transparent}[_nghost-%COMP%]:hover{background-color:var(--bs-shippeo-200)}"],changeDetection:0})}return _})();r(71332),(0,Q.x)("added"),(0,Q.x)("removed");const tr=(_,ie)=>[_,ie];function ln(_,ie){if(1&_&&i.nrm(0,"shui-svg-icon",2),2&_){let c;const D=i.XpG(),G=i.XpG();i.Y8G("name",ie)("color",D.color)("type",null!==(c=D.type)&&void 0!==c?c:G.svgIconType.Solid)("size",G.svgIconSize.Xsmall)}}function eo(_,ie){if(1&_&&(i.j41(0,"span",3),i.EFF(1),i.k0s()),2&_){const c=i.XpG();i.Y8G("ngClass","text-"+c.color),i.R7$(),i.JRh(c.number)}}function dn(_,ie){if(1&_&&i.nrm(0,"shui-svg-icon",6),2&_){let c;const D=i.XpG(2),G=i.XpG();i.Y8G("name",D.subIcon)("color",D.color)("type",null!==(c=D.type)&&void 0!==c?c:G.svgIconType.Solid)("size",G.svgIconSize.XXsmall)}}function jt(_,ie){if(1&_&&(i.j41(0,"span",7),i.EFF(1),i.k0s()),2&_){const c=i.XpG(2);i.Y8G("ngClass","text-"+c.color),i.R7$(),i.JRh(c.subIconNumber)}}function to(_,ie){if(1&_&&(i.j41(0,"div",4),i.DNE(1,dn,1,4,"shui-svg-icon",6)(2,jt,2,2,"span",7),i.k0s()),2&_){const c=i.XpG();i.Y8G("ngClass",i.l_i(3,tr,"bg-"+c.bgColor,"border-"+c.borderColor)),i.R7$(),i.vxM(c.subIcon?1:-1),i.R7$(),i.vxM(c.subIconNumber?2:-1)}}function io(_,ie){if(1&_&&i.nrm(0,"shui-svg-icon",5),2&_){const c=i.XpG(),D=i.XpG();i.Y8G("color",c.bgColor)("size",D.svgIconSize.Xsmall)("type",D.svgIconType.Solid)}}function vi(_,ie){if(1&_&&(i.j41(0,"div",1),i.DNE(1,ln,1,4,"shui-svg-icon",2)(2,eo,2,2,"span",3)(3,to,3,6,"div",4),i.k0s(),i.DNE(4,io,1,3,"shui-svg-icon",5)),2&_){let c;const D=ie,G=i.XpG();i.Y8G("ngClass",G.badgeClasses()),i.R7$(),i.vxM((c=D.icon)?1:2,c),i.R7$(2),i.vxM(D.subIcon||D.subIconNumber?3:-1),i.R7$(),i.vxM(D.moving?4:-1)}}function Hi(_,ie){if(1&_&&i.nrm(0,"div",0),2&_){const c=i.XpG();i.Y8G("ngClass",c.pathClasses())}}let Ci=(()=>{class _{constructor(){this.badge=(0,i.hFB)(void 0,{transform:c=>c&&this.applyBadgeDefaults(c)}),this.path=(0,i.hFB)(void 0,{transform:c=>c&&this.applyPathDefaults(c)}),this.badgeClasses=(0,i.EWP)(()=>{const c=this.badge();return c?[`bg-${c.bgColor}`,`border-${c.borderColor}`,c.rounded?"rounded-circle":"box-shadow-md",c.diamond?"diamond":""]:[]}),this.pathClasses=(0,i.EWP)(()=>{const c=this.path();return c?[`bg-${c.bgColor}`,...c.borderColor?["border-end","border-start",`border-${c.borderColor}`]:[]]:[]}),this.svgIconType=s.Oo,this.svgIconSize=s.D7}applyBadgeDefaults(c){return{bgColor:"white",borderColor:"shippeo-500",color:"shippeo-500",type:s.Oo.Solid,...c}}applyPathDefaults(c){return{bgColor:"gray-300",borderColor:"gray-300",...c}}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-vertical-timeline-item-path"]],inputs:{badge:[1,"badge"],path:[1,"path"]},standalone:!0,features:[i.aNF],decls:2,vars:2,consts:[[1,"line",3,"ngClass"],[1,"timeline-badge","d-flex","justify-content-center","align-items-center","flex-grow-0","flex-shrink-0","fw-medium","position-relative","border",3,"ngClass"],["data-qa","badge-icon",3,"name","color","type","size"],["data-qa","badge-number",1,"f-xs",3,"ngClass"],[1,"sub-icon","d-flex","justify-content-center","align-items-center","rounded-circle","border","fw-medium",3,"ngClass"],["name","location-bottom","data-qa","moving-badge",3,"color","size","type"],["data-qa","sub-badge",3,"name","color","type","size"],[1,"f-2xs",3,"ngClass"]],template:function(D,G){if(1&D&&i.DNE(0,vi,5,4)(1,Hi,1,1,"div",0),2&D){let Te;i.vxM((Te=G.badge())?0:-1,Te),i.R7$(),i.vxM(G.path()?1:-1)}},dependencies:[t.MD,t.YU,o.Ad,o.DM],styles:["[_nghost-%COMP%]{--line-width: 4px;--badge-size: 20px;--diamond-badge-size: 10px;--rounded-badge-size: 16px;--sub-badge-size: 16px;--sub-badge-top: 12px;--sub-badge-right: -6px;display:flex;flex-direction:column;align-items:center;flex-shrink:0;min-width:var(--badge-size)}.timeline-badge[_ngcontent-%COMP%]{width:var(--badge-size);height:var(--badge-size);border-radius:6px;z-index:2}.timeline-badge.diamond[_ngcontent-%COMP%]{width:var(--diamond-badge-size);height:var(--diamond-badge-size);border-radius:2px;transform:rotate(45deg)}.timeline-badge.rounded-circle[_ngcontent-%COMP%]{width:var(--rounded-badge-size);height:var(--rounded-badge-size);box-sizing:content-box;border-width:4px!important}.sub-icon[_ngcontent-%COMP%]{position:absolute;top:var(--sub-badge-top);right:var(--sub-badge-right);width:var(--sub-badge-size);height:var(--sub-badge-size);z-index:5}.line[_ngcontent-%COMP%]{width:var(--line-width);height:100%;z-index:1}"],changeDetection:0})}return _})();const Bt=["*",[["","collapse",""]],[["","leg",""]]],cn=["*","[collapse]","[leg]"];function no(_,ie){if(1&_&&(i.j41(0,"div",5),i.nrm(1,"sh-vertical-timeline-item-path",1),i.j41(2,"div",6),i.SdG(3,2),i.k0s()()),2&_){const c=ie;i.R7$(),i.Y8G("path",c.path)("badge",c.badge)}}let pn=(()=>{class _{constructor(){this.isCollapsed=(0,i.hFB)(!1),this.item=i.hFB.required()}static#e=this.\u0275fac=function(D){return new(D||_)};static#t=this.\u0275cmp=i.VBU({type:_,selectors:[["sh-vertical-timeline-item"]],inputs:{isCollapsed:[1,"isCollapsed"],item:[1,"item"]},standalone:!0,features:[i.aNF],ngContentSelectors:cn,decls:8,vars:5,consts:[["data-qa","main",1,"d-flex","mx-0"],[1,"me-4",3,"path","badge"],[1,"flex-grow-1","mb-3",3,"isCollapsed","isHeaderClickable"],["slot","content"],[1,"border-top","border-gray-100","mx-4","mb-2"],["data-qa","leg",1,"d-flex","mx-0"],[1,"flex-grow-1"]],template:function(D,G){if(1&D&&(i.NAR(Bt),i.j41(0,"div",0),i.nrm(1,"sh-vertical-timeline-item-path",1),i.j41(2,"shui-collapse",2),i.SdG(3,0,["slot","header"]),i.j41(4,"div",3),i.nrm(5,"div",4),i.SdG(6,1),i.k0s()()(),i.DNE(7,no,4,2,"div",5)),2&D){let Te;i.R7$(),i.Y8G("path",G.item().path)("badge",G.item().badge),i.R7$(),i.Y8G("isCollapsed",G.isCollapsed())("isHeaderClickable",!1),i.R7$(5),i.vxM((Te=G.item().leg)?7:-1,Te)}},dependencies:[t.MD,o.$B,Ci],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}shui-collapse[_ngcontent-%COMP%]{--collapse-content-border-top: none;--collapse-content-margin: 0;--collapse-content-padding: 0;--collapse-expanded-header-padding: var(--spacer-3) var(--spacer-4) var(--spacer-4) var(--spacer-4)}"],changeDetection:0})}return _})()},50262:(fe,J,r)=>{"use strict";r.d(J,{D:()=>F});var t=r(56551),e=r(54460),o=r(91167),s=r(53220),i=r(15651),p=r(44687),f=r(18306),N=r(34133),A=r(41483),I=r(30593),b=r(47947),l=r(4437),R=r(48891);let v=(()=>{class V{constructor(Y,a,P,u){this.router=Y,this.route=a,this.i18nService=P,this.navigationService=u,this.items$=this.router.events.pipe((0,A.p)(z=>z instanceof N.wF),(0,I.Z)(void 0),(0,b.T)(()=>this.buildBreadCrumb(this.route.root)))}buildBreadCrumb(Y,a="",P=[],u){const z=[...P],x=`${a}/${Y.snapshot.url.map(X=>X.path).join("/")}`.replace("//","/"),Q=Y.routeConfig&&Y.routeConfig.data&&Y.routeConfig.data.breadcrumb,O={...u,...Y.snapshot.params,...Y.snapshot.queryParams};if(Q){let X=this.i18nService.instant(Q.label);Q.labelFromProperty?.length&&Q.labelFromProperty.split(".").forEach((He,L)=>{X=0===L?Y.snapshot.data[He]:X?.[He]});let Z={customActions:this.setCustomActions(Q.customActions,O),hideLast:Q.hideLast,label:X||"",path:x};if(Q.editPath){const He=!this.navigationService.isBackOffice&&Q.editPathFrontoffice?Q.editPathFrontoffice:Q.editPath;Z={...Z,editPath:this.setCustomPath(He,O),editTooltip:this.i18nService.instant(Q.editTooltip)}}z.push(Z)}if(Y.firstChild)return this.buildBreadCrumb(Y.firstChild,x,z,O);const $=z.findIndex(({hideLast:X})=>!!X);return $===z.length-1&&z.splice($),z}setCustomActions(Y,a){return Y?.map(P=>({...P,click:()=>this.navigationService.navigateDependingOnNewTab([this.setCustomPath(P.path,a)],{},!0),path:this.setCustomPath(P.path,a),tooltip:this.i18nService.instant(P.tooltip)}))??[]}setCustomPath(Y,a){return Y.replaceAll(":","").split("/").map(P=>a[P]||P).join("/")}static#e=this.\u0275fac=function(a){return new(a||V)(R.KVO(N.Ix),R.KVO(N.nX),R.KVO(p.W4),R.KVO(l.o_))};static#t=this.\u0275prov=R.jDH({token:V,factory:V.\u0275fac})}return V})();const E=["*"],h=(V,j)=>({"breadcrumb-content":V,"without-padding":j});function C(V,j){if(1&V){const Y=R.RV6();R.j41(0,"shui-breadcrumb",4),R.nI1(1,"translate"),R.bIt("copyUrl",function(){R.eBV(Y);const P=R.XpG(2);return R.Njj(P.copyUrl())}),R.k0s()}if(2&V){const Y=R.XpG().ngIf;R.Y8G("breadcrumbs",Y)("copyUrlTooltip",R.bMT(1,2,"Copy URL"))}}function M(V,j){if(1&V&&(R.qex(0),R.DNE(1,C,2,4,"shui-breadcrumb",2),R.j41(2,"div",3),R.SdG(3),R.k0s(),R.bVm()),2&V){const Y=j.ngIf,a=R.XpG();R.R7$(),R.Y8G("ngIf",Y.length),R.R7$(),R.Y8G("id",a.scrollContainerId)("ngClass",R.l_i(3,h,Y.length,!(null==a.breadcrumbService.lastRouteSnapshotData||!a.breadcrumbService.lastRouteSnapshotData.removePaddingContainer)))}}let F=(()=>{class V{constructor(Y,a,P){this.breadcrumbService=Y,this.toastService=a,this.i18nService=P,this.scrollContainerId=i.c}copyUrl(){this.toastService.success(this.i18nService.instant((0,o.x)("URL copied")),this.i18nService.instant((0,o.x)("The URL has been copied into clipboard")))}static#e=this.\u0275fac=function(a){return new(a||V)(R.rXU(v),R.rXU(f.fw),R.rXU(p.W4))};static#t=this.\u0275cmp=R.VBU({type:V,selectors:[["sh-breadcrumb-layout"]],standalone:!0,features:[R.Jv_([v]),R.aNF],ngContentSelectors:E,decls:3,vars:3,consts:[[1,"breadcrumb-container","w-100","h-100","d-flex","flex-column"],[4,"ngIf"],[3,"breadcrumbs","copyUrlTooltip","copyUrl",4,"ngIf"],["cdkScrollable","",1,"default-content",3,"id","ngClass"],[3,"copyUrl","breadcrumbs","copyUrlTooltip"]],template:function(a,P){1&a&&(R.NAR(),R.j41(0,"div",0),R.DNE(1,M,4,6,"ng-container",1),R.nI1(2,"async"),R.k0s()),2&a&&(R.R7$(),R.Y8G("ngIf",R.bMT(2,1,P.breadcrumbService.items$)))},dependencies:[t.uv,e.MD,e.YU,e.bT,e.Jj,f.Dg,f.MB,s.h,s.D9],styles:[".breadcrumb-container[_ngcontent-%COMP%]   shui-breadcrumb[_ngcontent-%COMP%]{z-index:1}.breadcrumb-container[_ngcontent-%COMP%]   .default-content[_ngcontent-%COMP%]{overflow-y:auto;height:inherit}.breadcrumb-container[_ngcontent-%COMP%]   .default-content[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:8px}.breadcrumb-container[_ngcontent-%COMP%]   .default-content[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb{background-color:#bdc3c7;border-radius:10px;box-shadow:inset 0 0 6px #0003}.breadcrumb-container[_ngcontent-%COMP%]   .default-content[_ngcontent-%COMP%]:not(.without-padding){padding:1.25rem 1.5rem .75rem}.breadcrumb-container[_ngcontent-%COMP%]   .breadcrumb-content[_ngcontent-%COMP%]{height:calc(100vh - 52px)}"],changeDetection:0})}return V})()},78487:(fe,J,r)=>{"use strict";r.d(J,{f:()=>l});var t=r(54460),e=r(48891),o=r(10936),s=r(76803),i=r(44687),p=r(18306),f=r(91834),N=r(91039),A=r(43695),I=r(53220);function b(R,v){if(1&R){const E=e.RV6();e.j41(0,"div",3)(1,"shui-date-time-range-picker",4),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nI1(4,"translate"),e.bIt("selectTimeChange",function(C){e.eBV(E);const M=e.XpG();return e.Njj(M.selectTime=C)}),e.k0s(),e.j41(5,"div",5)(6,"shui-button",6),e.bIt("click",function(){e.eBV(E);const C=e.XpG();return e.Njj(C.popover.close())}),e.j41(7,"label",7),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div")(11,"shui-button",8),e.bIt("click",function(){e.eBV(E);const C=e.XpG();return e.Njj(C.resetDateRange())}),e.j41(12,"label",7),e.EFF(13),e.nI1(14,"translate"),e.k0s()(),e.j41(15,"shui-button",9),e.bIt("click",function(){e.eBV(E);const C=e.XpG();return e.Njj(C.applyDateRange())}),e.j41(16,"label",7),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()()()}if(2&R){const E=e.XpG();e.R7$(),e.Y8G("endLabel",e.bMT(2,19,"End"))("formControl",E.dateControl)("max",E.max())("maxRangeDays",E.maxRangeDays())("min",E.min())("selectTime",E.selectTime)("selectTimeView",E.selectTimeView())("startLabel",e.bMT(3,21,"Start"))("switchLabel",e.bMT(4,23,"Select time")),e.R7$(5),e.Y8G("isLinkStyle",!0)("size",E.buttonSize.SM),e.R7$(2),e.JRh(e.bMT(9,25,"Cancel")),e.R7$(3),e.Y8G("btnTheme",E.buttonTheme.Secondary)("size",E.buttonSize.SM),e.R7$(2),e.JRh(e.bMT(14,27,"Reset")),e.R7$(2),e.Y8G("disabled",!(null!=E.dateControl.value&&E.dateControl.value.start))("btnTheme",E.buttonTheme.Primary)("size",E.buttonSize.SM),e.R7$(2),e.JRh(e.bMT(18,29,"Apply"))}}let l=(()=>{class R{constructor(E,h,C){this.fb=E,this.changeDetectorRef=h,this.dateRangePickerService=C,this.applyDate=new e.bkB,this.selectTimeView=(0,e.hFB)(!0),this.initialValues=(0,e.hFB)(),this.max=(0,e.hFB)(void 0),this.maxRangeDays=(0,e.hFB)(),this.min=(0,e.hFB)(void 0),this.dateIsReset=(0,e.hFB)(!1),this.dateControl=this.fb.control({end:void 0,start:void 0}),this.dateDisplayControl=this.fb.control(""),this.selectTime=!1,this.dateIcon={color:"shippeo-500",name:"calendar",type:N.Oo.Solid},this.buttonSize=N.Mp,this.buttonTheme=N.Ox,(0,e.QZP)(()=>{this.dateIsReset()&&this.resetDateRange()})}ngOnInit(){this.initialValues()&&(this.dateControl.setValue({...this.initialValues()}),this.applyDateRange())}openDatePicker(){this.popover.open()}applyDateRange(){this.setInputDate(),this.applyDate.emit(this.dateControl.value),this.popover?.close()}resetDateRange(){this.selectTime=!1,this.changeDetectorRef.markForCheck(),this.dateControl.setValue({end:void 0,start:void 0}),this.dateDisplayControl.reset(),this.applyDate.emit(this.dateControl.value)}setInputDate(){this.dateDisplayControl.setValue(this.dateRangePickerService.translateDate(this.dateControl.value))}static#e=this.\u0275fac=function(h){return new(h||R)(e.rXU(o.ok),e.rXU(e.gRc),e.rXU(A.R))};static#t=this.\u0275cmp=e.VBU({type:R,selectors:[["sh-date-range-picker"]],viewQuery:function(h,C){if(1&h&&e.GBs(s.ZM,5),2&h){let M;e.mGM(M=e.lsd())&&(C.popover=M.first)}},inputs:{selectTimeView:[1,"selectTimeView"],initialValues:[1,"initialValues"],max:[1,"max"],maxRangeDays:[1,"maxRangeDays"],min:[1,"min"],dateIsReset:[1,"dateIsReset"]},outputs:{applyDate:"applyDate"},standalone:!0,features:[e.Jv_([A.R]),e.aNF],decls:4,vars:3,consts:[["popoverContent",""],["placement","bottom auto","autoClose","outside","triggers","manual",3,"click","ngbPopover"],[1,"w-100","readonly",3,"formControl","trailingIcon"],[1,"datepicker-container","pt-2"],[3,"selectTimeChange","endLabel","formControl","max","maxRangeDays","min","selectTime","selectTimeView","startLabel","switchLabel"],[1,"d-flex","align-items-center","justify-content-between","bg-shippeo-50","py-3","px-6","border-gray-200"],["data-qa","cancel",3,"click","isLinkStyle","size"],["slot","label"],["data-qa","reset",1,"me-4",3,"click","btnTheme","size"],["data-qa","apply",3,"click","disabled","btnTheme","size"]],template:function(h,C){if(1&h){const M=e.RV6();e.j41(0,"div",1),e.bIt("click",function(){return e.eBV(M),e.Njj(C.openDatePicker())}),e.nrm(1,"shui-input",2),e.k0s(),e.DNE(2,b,19,31,"ng-template",null,0,e.C5r)}if(2&h){const M=e.sdS(3);e.Y8G("ngbPopover",M),e.R7$(),e.Y8G("formControl",C.dateDisplayControl)("trailingIcon",C.dateIcon)}},dependencies:[t.MD,o.X1,o.BC,o.l_,i.LP,I.D9,p.Gv,p.Sj,p.Qp,s.zr,s.ZM,f.Yc,p.Ad],styles:[".datepicker-container[_ngcontent-%COMP%]{width:625px}  .popover-body{padding:0}.readonly[_ngcontent-%COMP%]{pointer-events:none}"],changeDetection:0})}return R})()},43695:(fe,J,r)=>{"use strict";r.d(J,{R:()=>f});var t=r(48891),e=r(91167),o=r(68149),s=r(44687),i=r(18306),p=r(91834);let f=(()=>{class N{constructor(){this.formatDateTimePipe=(0,t.WQX)(p.f2),this.i18nService=(0,t.WQX)(s.W4),this.languageCode=this.i18nService.getCurrentLanguage().getValue().code}translateDate(I){const{start:b,end:l}=I;return l&&!(0,o.n)(b,l)?this.i18nService.instant((0,e.x)("From: {start} to {end}"),{end:this.formatDate(l),start:this.formatDate(b)}):b?this.i18nService.instant((0,e.x)("From: {start}"),{start:this.formatDate(b)}):""}formatDate(I){return this.formatDateTimePipe.transform(I,{format:i.nY.LocaleDateTimeMedium,languageCode:this.languageCode})}static#e=this.\u0275fac=function(b){return new(b||N)};static#t=this.\u0275prov=t.jDH({token:N,factory:N.\u0275fac})}return N})()},19339:(fe,J,r)=>{"use strict";r.d(J,{L:()=>b});var t=r(54460),e=r(48891),o=r(44687),s=r(91834),i=r(53220),p=r(79385);function f(l,R){if(1&l&&(e.nrm(0,"div",3),e.nI1(1,"bypassHtml")),2&l){const v=e.XpG();e.Y8G("innerHTML",e.bMT(1,1,v),e.npT)}}function N(l,R){if(1&l&&(e.j41(0,"div",4),e.EFF(1),e.k0s()),2&l){const v=e.XpG();e.R7$(),e.JRh(v)}}function A(l,R){if(1&l&&e.DNE(0,f,2,3,"div",3)(1,N,2,1,"div",4),2&l){const v=e.XpG();e.vxM(v.isHtmlData()?0:1)}}function I(l,R){1&l&&(e.j41(0,"div",2),e.EFF(1,"Not set"),e.k0s())}let b=(()=>{class l{constructor(){this.label=e.hFB.required(),this.isHtmlData=(0,e.hFB)(!1),this.data=(0,e.hFB)()}static#e=this.\u0275fac=function(E){return new(E||l)};static#t=this.\u0275cmp=e.VBU({type:l,selectors:[["sh-label-value"]],inputs:{label:[1,"label"],isHtmlData:[1,"isHtmlData"],data:[1,"data"]},standalone:!0,features:[e.aNF],decls:5,vars:2,consts:[[1,"mb-4"],[1,"text-gray-700","f-sm","fw-bold"],["translate","",1,"text-gray-400","f-sm"],[3,"innerHTML"],["data-qa","data-value",1,"text-gray-500","f-sm"]],template:function(E,h){if(1&E&&(e.j41(0,"div",0)(1,"div",1),e.EFF(2),e.k0s(),e.DNE(3,A,2,1)(4,I,2,0,"div",2),e.k0s()),2&E){let C;e.R7$(2),e.JRh(h.label()),e.R7$(),e.vxM((C=h.data())?3:4,C)}},dependencies:[t.MD,o.LP,i.Mm,s.Yc,p.o],encapsulation:2,changeDetection:0})}return l})()},72519:(fe,J,r)=>{"use strict";r.d(J,{Z:()=>s});var t=r(48891),e=r(2233);function o(i,p){1&i&&t.nrm(0,"img",0),2&i&&t.Y8G("src",p,t.B4B)}let s=(()=>{class i{constructor(f){this.environment=f,this.longFormat=(0,t.hFB)(!1),this.logoUrl=(0,t.EWP)(()=>this.longFormat()?this.environment.getProperty("LOGO_LONG_FORMAT_URL"):this.environment.getLogoUrl())}static#e=this.\u0275fac=function(N){return new(N||i)(t.rXU(e.O))};static#t=this.\u0275cmp=t.VBU({type:i,selectors:[["sh-logo"]],inputs:{longFormat:[1,"longFormat"]},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[["alt","logo",3,"src"]],template:function(N,A){if(1&N&&t.DNE(0,o,1,1,"img",0),2&N){let I;t.vxM((I=A.logoUrl())?0:-1,I)}},styles:["[_nghost-%COMP%]{display:block}img[_ngcontent-%COMP%]{max-width:100%}"],changeDetection:0})}return i})()},60302:(fe,J,r)=>{"use strict";r.d(J,{b:()=>E});var t=r(54460),e=r(76564),o=r(47947),s=r(2233),i=r(44687),p=function(h){return h.Critical="critical",h.Maintenance="maintenance",h.Major="major",h.Minor="minor",h.None="none",h}(p||{}),f=function(h){return h.AllSystemsOperational="All Systems Operational",h.DegradedSystemService="Degraded System Service",h.MajorSystemOutage="Major System Outagee",h.MinorServiceOutage="Minor Service Outage",h.PartiallyDegradedService="Partially Degraded Service",h.PartialSystemOutage="Partial System Outage",h.ServiceUnderMaintenance="Service Under Maintenance",h}(f||{}),N=r(48891);let A=(()=>{class h{constructor(){this.color={[p.Critical]:"red-600",[p.Maintenance]:"cobalt-700",[p.Major]:"orange-500",[p.Minor]:"yellow-500",[p.None]:"green-500"}}transform(M){return this.color[M]}static#e=this.\u0275fac=function(F){return new(F||h)};static#t=this.\u0275pipe=N.EJ8({name:"platformStatusColor",type:h,pure:!0,standalone:!0})}return h})();var I=r(91167);let b=(()=>{class h{constructor(){this.label={[f.AllSystemsOperational]:(0,I.x)("All Systems Operational"),[f.DegradedSystemService]:(0,I.x)("Degraded System Service"),[f.MajorSystemOutage]:(0,I.x)("Major System Outage"),[f.MinorServiceOutage]:(0,I.x)("Minor Service Outage"),[f.PartialSystemOutage]:(0,I.x)("Partial System Outage"),[f.PartiallyDegradedService]:(0,I.x)("Partially Degraded Service"),[f.ServiceUnderMaintenance]:(0,I.x)("Service Under Maintenance")}}transform(M){return this.label[M]}static#e=this.\u0275fac=function(F){return new(F||h)};static#t=this.\u0275pipe=N.EJ8({name:"platformStatusLabel",type:h,pure:!0,standalone:!0})}return h})();var l=r(27691),R=r(53220);function v(h,C){if(1&h&&(N.j41(0,"a",0),N.nrm(1,"span",1),N.j41(2,"span",2),N.EFF(3),N.nI1(4,"platformStatusLabel"),N.nI1(5,"translate"),N.nI1(6,"uppercase"),N.k0s()()),2&h){const M=C;N.Y8G("href",M.url,N.B4B),N.R7$(),N.HbH(M.indicatorClasses),N.R7$(2),N.JRh(N.bMT(6,8,N.bMT(5,6,N.bMT(4,4,M.description))))}}let E=(()=>{class h{constructor(M,F,V){this.env=M,this.http=F,this.platformStatusColorPipe=V}ngOnInit(){const M=this.env.getProperty("STATUS_PAGE_URL");this.status$=(M?this.http.get(M):e.w).pipe((0,o.T)(({page:F,status:V})=>({description:V.description,indicatorClasses:[`bg-${this.platformStatusColorPipe.transform(V.indicator)}`],url:F.url})))}static#e=this.\u0275fac=function(F){return new(F||h)(N.rXU(s.O),N.rXU(l.Qq),N.rXU(A))};static#t=this.\u0275cmp=N.VBU({type:h,selectors:[["sh-platform-status"]],standalone:!0,features:[N.Jv_([A]),N.aNF],decls:2,vars:3,consts:[["target","_blank","data-qa","link",1,"d-flex","align-items-center",3,"href"],["data-qa","indicator",1,"indicator","rounded-circle","me-1"],["data-qa","label",1,"f-xs","text-gray-500"]],template:function(F,V){if(1&F&&(N.DNE(0,v,7,10,"a",0),N.nI1(1,"async")),2&F){let j;N.vxM((j=N.bMT(1,1,V.status$))?0:-1,j)}},dependencies:[t.MD,t.Jj,t.Pc,i.LP,R.D9,b],styles:["[_nghost-%COMP%]{display:block}.indicator[_ngcontent-%COMP%]{width:.625rem;height:.625rem}"],changeDetection:0})}return h})()},53784:(fe,J,r)=>{"use strict";r.d(J,{s_:()=>o,Gt:()=>s.G,b8:()=>i});var t=r(76803),e=r(48891);let o=(()=>{class p{constructor(N,A,I){this.el=N,this.renderer=A,this.view=I}ngAfterViewInit(){this.renderer.addClass(this.el.nativeElement,"text-truncate");try{this.view.injector.get(t.md).disableTooltip=this.el.nativeElement.offsetWidth>=this.el.nativeElement.scrollWidth}catch{console.error("You try to use the AutoTooltipDirective without ngbTooltip")}}static#e=this.\u0275fac=function(A){return new(A||p)(e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b))};static#t=this.\u0275dir=e.FsC({type:p,selectors:[["","shAutoTooltip",""]],standalone:!0})}return p})();var s=r(70484);let i=(()=>{class p{static#e=this.\u0275fac=function(A){return new(A||p)};static#t=this.\u0275mod=e.$C({type:p});static#i=this.\u0275inj=e.G2t({})}return p})()},70484:(fe,J,r)=>{"use strict";r.d(J,{G:()=>p});var t=r(48891),e=r(85710),o=r(99127),s=r(4437);let p=(()=>{class N{constructor(I,b,l){this.element=I,this.googleMapsService=b,this.ngZone=l,this.placeChange=new t.bkB,this.subscriptions=new e.yU,this.getAddressComponentByPlace=R=>{const v={};return R.address_components&&R.address_components.forEach(E=>{E.types.forEach(h=>{v[h]=E.long_name})}),{...v,formattedAddress:R.formatted_address,postalCode:v.postal_code,postalTown:v.postal_town,streetNumber:v.street_number}},this.resolvePlace=()=>{const R=this.element.nativeElement.querySelector("input");if(!R)return void console.error("Unable to locate a input element");const v=new google.maps.places.Autocomplete(R);R.addEventListener("keydown",f);const E=(0,o.h)(h=>v.addListener("place_changed",h),(h,C)=>{google.maps.event.removeListener(C)});this.subscriptions.add(E.subscribe(()=>{this.ngZone.run(()=>{const h=v.getPlace();h.address_components&&this.placeChange.emit({address:this.getAddressComponentByPlace(h),location:{lat:h.geometry.location.lat(),lng:h.geometry.location.lng()}})})}))}}ngOnDestroy(){this.subscriptions.unsubscribe()}ngAfterViewInit(){this.subscriptions.add(this.googleMapsService.isApiLoaded$().subscribe(()=>this.resolvePlace()))}static#e=this.\u0275fac=function(b){return new(b||N)(t.rXU(t.aKT),t.rXU(s.s5),t.rXU(t.SKi))};static#t=this.\u0275dir=t.FsC({type:N,selectors:[["","shMapAutocomplete",""]],outputs:{placeChange:"placeChange"},standalone:!0})}return N})();function f(N){if("Enter"===N.code){const I=new Event("keydown");I.code="ArrowDown",I.key="ArrowDown",I.keyCode=40,google.maps.event.trigger(this,"keydown",I)}}},43134:(fe,J,r)=>{"use strict";r.d(J,{Rk:()=>s,UW:()=>t,Wf:()=>I,CE:()=>b,Rj:()=>o,iD:()=>e,sR:()=>A,wH:()=>i,bG:()=>N,Nw:()=>f,yX:()=>E,Ut:()=>C,Gb:()=>V,Bq:()=>F,AN:()=>h,nh:()=>a});var t=function(P){return P.Fr="fr",P.De="de",P.Nl="nl",P.En="en",P.Es="es",P.It="it",P.Pl="pl",P.Pt="pt",P.PtBr="pt_BR",P}(t||{}),e=function(P){return P.Disable="disabled",P}(e||{}),o=function(P){return P.Checkbox="CHECKBOX",P.Input="INPUT",P.InputNumber="INTEGER",P.Select="SELECT",P.Object="TEXTAREA",P.Password="PASSWORD",P}(o||{}),s=function(P){return P.Uri="uri",P.Password="password",P}(s||{}),i=function(P){return P.Default="DEFAULT",P.Destination="DESTINATION",P.Origin="ORIGIN",P.PinRed="PIN_RED",P.PinRedActive="PIN_RED_ACTIVE",P.PinGreen="PIN_GREEN",P.PinGreenActive="PIN_GREEN_ACTIVE",P.PinBlue="PIN_BLUE",P.PinBlueActive="PIN_BLUE_ACTIVE",P.Position="POSITION",P.PositionActive="POSITION_ACTIVE",P.PositionDarken="POSITION_DARKEN",P}(i||{}),p=function(P){return P.Default="assets/icons/map/marker.svg",P.Destination="assets/icons/map/arrival.png",P.Origin="assets/icons/map/departure.png",P.PinRed="assets/icons/map/marker-red.svg",P.PinGreenActive="assets/icons/map/marker-green-active.svg",P.PinGreen="assets/icons/map/marker-green.svg",P.PinRedActive="assets/icons/map/marker-red-active.svg",P.PinBlue="assets/icons/map/marker-blue.svg",P.PinBlueActive="assets/icons/map/marker-blue-active.svg",P.Position="assets/icons/map/position-marker.svg",P.PositionActive="assets/icons/map/position-active-marker.svg",P.PositionDarken="assets/icons/map/position-darken-marker.svg",P}(p||{}),f=function(P){return P.Historic="HISTORIC",P.CircleGeoFencing="CIRCLE_GEO_FECNING",P.PolygonGeoFencing="POLYGON_GEO_FENCING",P}(f||{}),N=function(P){return P.Hybrid="hybrid",P.RoadMap="roadmap",P.Satellite="satellite",P.Terrain="terrain",P}(N||{});class A{constructor(u,z){this.scaledSize=z,this.url=u}static createMapIcon(u){return{[i.Default]:new A(p.Default,{height:40,width:27}),[i.PinGreen]:new A(p.PinGreen,{height:40,width:40}),[i.PinGreenActive]:new A(p.PinGreenActive,{height:40,width:40}),[i.PinRed]:new A(p.PinRed,{height:40,width:40}),[i.PinRedActive]:new A(p.PinRedActive,{height:40,width:40}),[i.PinBlue]:new A(p.PinBlue,{height:40,width:40}),[i.PinBlueActive]:new A(p.PinBlueActive,{height:40,width:40}),[i.Destination]:new A(p.Destination,{height:37,width:20}),[i.Origin]:new A(p.Origin,{height:37,width:20}),[i.Position]:new A(p.Position,{height:20,width:20}),[i.PositionActive]:new A(p.PositionActive,{height:30,width:30}),[i.PositionDarken]:new A(p.PositionDarken,{height:20,width:20})}[u]}}const I=1,b=10;var l=r(31635),R=r(47817),v=r(36287);class E{constructor(){this.batteryLevel=0,this.icon=A.createMapIcon(i.Position),this.id="",this.speed=0}static transformRequest(){return E}isEqual(u){return this.id===u}setIconActive(){this.icon=A.createMapIcon(i.PositionActive)}setIconDefault(){this.icon=A.createMapIcon(i.Position)}setIconDarken(){this.icon=A.createMapIcon(i.PositionDarken)}}(0,l.Cg)([R.deserialize,(0,l.Sn)("design:type",Object)],E.prototype,"batteryLevel",void 0),(0,l.Cg)([(0,R.deserializeAs)(A),(0,l.Sn)("design:type",Object)],E.prototype,"icon",void 0),(0,l.Cg)([R.deserialize,(0,l.Sn)("design:type",Object)],E.prototype,"id",void 0),(0,l.Cg)([R.deserialize,(0,l.Sn)("design:type",Number)],E.prototype,"lat",void 0),(0,l.Cg)([R.deserialize,(0,l.Sn)("design:type",Number)],E.prototype,"lng",void 0),(0,l.Cg)([(0,R.deserializeAs)(v.h0C),(0,l.Sn)("design:type",Date)],E.prototype,"realDate",void 0),(0,l.Cg)([(0,R.deserializeAs)(v.h0C),(0,l.Sn)("design:type",Date)],E.prototype,"serverDate",void 0),(0,l.Cg)([(0,R.deserializeAs)(v.h0C),(0,l.Sn)("design:type",Date)],E.prototype,"date",void 0),(0,l.Cg)([R.deserialize,(0,l.Sn)("design:type",Object)],E.prototype,"speed",void 0);const h=(P={})=>(0,R.Deserialize)(P,E);var C=function(P){return P.String="string",P.Integer="integer",P.Array="array",P.Object="object",P.Boolean="boolean",P}(C||{}),M=r(91167),F=function(P){return P.Active="ACTIVATED",P.Inactive="DEACTIVATED",P.All="ALL",P}(F||{});const V=[{label:(0,M.x)("Inactive"),value:F.Inactive},{label:(0,M.x)("Active"),value:F.Active}];var j=function(P){return P.Center="center",P.Left="left",P}(j||{});let Y=(()=>{class P{static#e=this.DEFAULT_PRIMARY_COLOR="var(--bs-cobalt-800)";static#t=this.DEFAULT_SECONDARY_COLOR="var(--bs-gray-300)";static#i=this.DEFAULT_BORDER_WIDTH="var(--button-border-width)";static#n=this.DEFAULT_SHADOW="var(--box-shadow-sm)";constructor(z){this.logoAlignment=z.logoAlignment||j.Center,this.logoUrl=z.logo_url,this.primaryColor=z.primary_color||P.DEFAULT_PRIMARY_COLOR,this.secondaryColor=z.secondary_color||P.DEFAULT_SECONDARY_COLOR,this.borderWidth=z.border_width||P.DEFAULT_BORDER_WIDTH,this.shadow=z.shadow||P.DEFAULT_SHADOW}static#o=this.create=(z={})=>new P(z)}return P})();const a=P=>Y.create({border_width:"2px",logoAlignment:j.Left,logo_url:P,primary_color:"#fefefe",secondary_color:"#468293",shadow:"0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06)"})},91834:(fe,J,r)=>{"use strict";r.d(J,{cU:()=>o,tV:()=>f,Lt:()=>A,r7:()=>b,hN:()=>l.h,SX:()=>R,w4:()=>v.w,iB:()=>E.i,f2:()=>h.f,CY:()=>V,P2:()=>j,HB:()=>a,Wt:()=>x,hx:()=>Z.h,NC:()=>He,qu:()=>_e,KW:()=>We.K,Uh:()=>d,Yc:()=>je,FR:()=>Le,FC:()=>Ie,IX:()=>It,fG:()=>Lt,x1:()=>Fe,$h:()=>pt,YZ:()=>xt,XF:()=>ne,Up:()=>Ve,h6:()=>we,yJ:()=>g.y,fQ:()=>K.f,pG:()=>ft,ff:()=>Q,Lr:()=>Ce,Sf:()=>ue});var t=r(69483),e=r(48891);let o=(()=>{class te{transform(se,de,nt){return t.ID.convertFromUnitLabels(se,de,nt)}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"convertUnit",type:te,pure:!0})}return te})();var s=r(91167),i=r(36287);let f=(()=>{class te{transform(se,de=!1){return((te,lt)=>({[i.KMV.Arrival]:(0,s.x)("ETA"),[i.KMV.Depart]:(0,s.x)(lt?"External ETD":"ETD"),[i.KMV.Unload]:(0,s.x)("ETU")}[te]))(se,de)}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"estimatedTimeBadgeLabel",type:te,pure:!0,standalone:!0})}return te})();var N=function(te){return te.Badge="badge",te.Basic="basic",te}(N||{});let A=(()=>{class te{constructor(){this.minLateDay=4,this.minWarnDay=0,this.delayClass={[i.Eys.None]:{badge:[],basic:[]},[i.Eys.RiskyDelay]:{badge:["fw-normal","bg-red-500","text-white"],basic:["fw-bold","bg-cobalt-100","text-cobalt-600"]},[i.Eys.OnTime]:{badge:["fw-normal","bg-green-500","text-white"],basic:["fw-bold","bg-cobalt-100","text-cobalt-600"]},[i.Eys.ToleratedDelay]:{badge:["fw-normal","bg-yellow-300","text-yellow-700"],basic:["fw-bold","bg-cobalt-100","text-cobalt-600"]}}}transform(se,de={}){return se>=(de?.minLateDay??this.minLateDay)?this.delayClass[i.Eys.RiskyDelay][de.type??N.Badge]:se>(de?.minWarnDay??this.minWarnDay)?this.delayClass[i.Eys.ToleratedDelay][de.type??N.Badge]:this.delayClass[i.Eys.OnTime][de.type??N.Badge]}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"estimatedTimeDelayClass",type:te,pure:!0,standalone:!0})}return te})(),b=(()=>{class te{transform(se,de){const nt=(0,i.c9V)(se,de);return nt.actionLabel??nt.label}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"eventActionLabel",type:te,pure:!0,standalone:!0})}return te})();var l=r(54646);let R=(()=>{class te{constructor(){this.labels={[i.B$E.Administration]:(0,s.x)("Administration"),[i.B$E.AnalyticsExport]:(0,s.x)("Analytics Export"),[i.B$E.CarbonVisibility]:(0,s.x)("Carbon Visibility"),[i.B$E.Insights]:(0,s.x)("Order and Operations Management"),[i.B$E.OrderAndOperationsManagement]:(0,s.x)("Order management")}}transform(se){return this.labels[se]||se}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"featureGroupLabel",type:te,pure:!0,standalone:!0})}return te})();var v=r(69111),E=r(76577),h=r(97439),C=r(75092),M=r(1091);let F=(()=>{class te{transform(se,de){return(0,M.mo)(se,de)}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"formatDistanceToNow",type:te,pure:!0})}return te})(),V=(()=>{class te{transform(se,de={}){const nt=se>0?"+":"-",bt=(0,M.JK)(de.languageCode??M.JA.English);return 0!==se?`${nt}${Math.abs(se)}${bt.shortDayLabel}`:(0,s.x)("On time")}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"formatEstimatedTimeDelay",type:te,pure:!0,standalone:!0})}return te})(),j=(()=>{class te{transform(se){return se.replace(/<span\b[^>]*class="variable"[^>]*><span contenteditable="false">([\s\S]*?)<\/span>/gm,"{{$1}}").replace(/(<([^>]+)>)/gi,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"formatHtmlToString",type:te,pure:!0})}return te})();const Y=te=>{if(!te)return"";let lt=te.replace(/_/g," ");return lt=lt.charAt(0).toUpperCase()+lt.slice(1),lt};let a=(()=>{class te{transform(se){return Y(se)}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"formatMilestoneUpdateLabel",type:te,pure:!0,standalone:!0})}return te})();var P=r(27005),u=r(47203),z=r(94168),H=r(91039);let x=(()=>{class te{transform(se){const de=se.toLowerCase();return z._S.includes(de)?{color:H.kp.Cobalt,iconName:z.Tx.ParcelValidated,type:H.Oo.Solid}:z.MY.includes(de)||z.Vp.includes(de)?{color:H.kp.Yellow,iconName:z.Tx.ParcelAlert,type:H.Oo.Solid}:z.N3.includes(de)||z.Hz.includes(de)?{color:H.kp.Red,iconName:z.Tx.ParcelRefused,type:H.Oo.Solid}:z.pt.includes(de)?{color:H.kp.Cobalt,iconName:z.Tx.MapPin,type:H.Oo.Solid}:z.aA.includes(de)?{color:H.kp.Red,iconName:z.Tx.XCircle,type:H.Oo.Solid}:z.fb.includes(de)?{color:H.kp.Green,iconName:z.Tx.CheckCircle,type:H.Oo.Solid}:z.fb.includes(de)?{color:H.kp.Shippeo,iconName:z.Tx.CheckCircle,type:H.Oo.Solid}:z.xk.includes(de)?{color:H.kp.Shippeo,iconName:z.Tx.Eta,type:H.Oo.Solid}:void 0}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"goodsStatusIcon",type:te,pure:!0,standalone:!0})}return te})();const Q=te=>te?z.j8[te]??te:(0,s.x)("Unknown status");let $=(()=>{class te{transform(se=[],de,nt){const bt=se.reduce((At,Nt)=>{const it=Nt[de];if(!("string"==typeof it||it instanceof Date))return At;const De=(0,M.Yq)(new Date(it),nt);return At.set(De,[...At.get(De)??[],Nt])},new Map);return Array.from(bt,([At,Nt])=>({key:At,value:Nt}))}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"groupByDate",type:te,pure:!0})}return te})();var X=r(84490),Z=r(27814);let He=(()=>{class te{transform(se,de="items",nt=1){if(se&&nt>0)return 0===se.length?"":se.length<=nt?se.slice(0,nt).toString():`${se.length} ${de}`}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"ngxLimitItemsToDisplay",type:te,pure:!0})}return te})();const L={[i.jYY.Done]:(0,s.x)("[[OV milestone status]] Actual"),[i.jYY.Estimated]:(0,s.x)("[[OV milestone status]] Estimated"),[i.jYY.Expected]:(0,s.x)("[[OV milestone status]] Pending"),[i.jYY.Scheduled]:(0,s.x)("[[OV milestone status]] Scheduled")};function Ce(te){const lt=L[te];return lt||console.warn(`Unable to retrieve label for milestone status ${te}`),lt??te}var me=r(20107);let _e=(()=>{class te{constructor(){this.labels={[me.aF.ORDER_MANAGEMENT]:(0,s.x)("Order management"),[me.aF.TRACKING_OCEAN]:(0,s.x)("Tracking ocean"),[me.aF.TRACKING_ROAD]:(0,s.x)("Tracking road")}}transform(se){return this.labels[se]||se}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"notificationCategoryLabel",type:te,pure:!0})}return te})(),Me=(()=>{class te{transform(se){const de=me.f.find(nt=>se.notificationTemplateId===nt.templateId);return Object.assign(se,{description:de?.description||se.description,name:de?.name||se.name}),se}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"notificationNameAndDescription",type:te,pure:!0})}return te})();const Ge={color:"red-600",name:"exclamation-circle",type:H.Oo.Line},Ue={color:"red-600",name:"x-circle",type:H.Oo.Line},ze={color:"green-600",name:"check-circle",type:H.Oo.Line};let k=(()=>{class te{transform(se){const de=i.XxY.notConform.includes(se);return i.XxY.refusedOrNotRealised.includes(se)?Ue:de?Ge:ze}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"orderDetailEventIcon",type:te,pure:!0})}return te})();var We=r(16832),ve=function(te){return te.Compliant="compliant",te.NonCompliant="non_compliant",te.NonRealised="non_realised",te.Refused="refused",te.Arrived="arrived",te.Left="left",te}(ve||{});const S={[i.lkQ.Loading]:{[ve.Compliant]:(0,s.x)("[[RV milestone update]] Loading compliant"),[ve.NonCompliant]:(0,s.x)("[[RV milestone update]] Loading non compliant"),[ve.NonRealised]:(0,s.x)("[[RV milestone update]] Loading non realised"),[ve.Refused]:(0,s.x)("[[RV milestone update]] Loading refused")},[i.lkQ.Delivery]:{[ve.Compliant]:(0,s.x)("[[RV milestone update]] Delivery compliant"),[ve.NonCompliant]:(0,s.x)("[[RV milestone update]] Delivery non compliant"),[ve.NonRealised]:(0,s.x)("[[RV milestone update]] Delivery non realised"),[ve.Refused]:(0,s.x)("[[RV milestone update]] Delivery refused")},[i.lkQ.Hub]:{[ve.Arrived]:(0,s.x)("[[RV milestone update]] Arrived at hub"),[ve.Left]:(0,s.x)("[[RV milestone update]] Left hub")}},ue=(te,lt)=>S[lt][te]??Y(te);let d=(()=>{class te{transform(se,de){return ue(se,de)}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"parcelMilestoneStatus",type:te,pure:!0,standalone:!0})}return te})();var Re=r(81956),he=r(89699),oe=r(79385),qe=r(66906);let w=(()=>{class te{transform(se){return se?.split(" ")?.map(nt=>nt.charAt(0)).splice(0,2).join("").toUpperCase()}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"initial",type:te,pure:!0})}return te})();var re=r(47915);let le=(()=>{class te{transform(se){return se.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(de=>de.toLowerCase()).join("-")}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"kebabCase",type:te,pure:!0})}return te})();var Ae=r(16336);let y=(()=>{class te{constructor(){this.labels={DESTINATION_INLAND_LOCATION:(0,s.x)("[[ order debug ocean ]] Inland destination"),DISCHARGE:(0,s.x)("[[ order debug ocean ]] Port of discharge"),LOADING:(0,s.x)("[[ order debug ocean ]] Port of loading"),ORIGIN_INLAND_LOCATION:(0,s.x)("[[ order debug ocean ]] Inland origin"),TRANSHIPMENT:(0,s.x)("[[ order debug ocean ]] Port of transhipment")}}transform(se){return this.labels[se]||se}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"placeTypeLabel",type:te,pure:!0})}return te})(),Le=(()=>{class te{transform(se){return se?i.Ubi[se]??i.Ubi[i.f_e.Unknown]:i.Ubi[i.f_e.Unknown]}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"platformTypeOption",type:te,pure:!0})}return te})(),Ke=(()=>{class te{transform(se){const de=(0,i.c9V)(se.type);return se[de.preferredDate]?new Date(se[de.preferredDate]):void 0}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"preferedOrderEventDate",type:te,pure:!0})}return te})();var ht=r(16215);let Qe=(()=>{class te{constructor(){this.icon={[i.vtl.Container]:"cube",[i.vtl.Train]:"train",[i.vtl.Plane]:"plane",[i.vtl.Truck]:"truck",[i.vtl.Vessel]:"vessel",[i.vtl.Van]:"van",[i.vtl.Mobile]:"mobile"}}transform(se){return this.icon[se]}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"resourceTypeIcon",type:te,pure:!0})}return te})();var ye=r(42547);let Ve=(()=>{class te{constructor(){this.regex=new RegExp("{{.*?}}","g"),this.defaultVariableCounter=20,this.defaultDatetimeVariableCounter=10}transform(se,de=[],nt=this.defaultVariableCounter,bt=this.defaultDatetimeVariableCounter){let At=0;const Nt=se.match(this.regex);if(Array.isArray(Nt)&&Nt.length)for(const it of Nt){const De=de.find(Oe=>Oe.value===it.replace("{{","").replace("}}",""));De&&(At+=De.primitiveType===me.ng.DateTime?bt:nt,se=se.replace(it,""))}return At+se.length}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"gsmCounter",type:te,pure:!0})}return te})();var g=r(9956),K=r(58845),ae=r(94920),Be=r(89005),et=r(44687);let ft=(()=>{class te{constructor(se){this.i18nService=se,this.groupAndLabel=(0,me.Zj)()}transform(se){const de=this.groupAndLabel[se];return this.groupAndLabel[se]?de.group?{group:this.i18nService.instant(de.group)||se,label:this.i18nService.instant(de.label)||se,value:se}:{label:this.i18nService.instant(de.label)||se,value:se}:{group:se,label:se,value:se}}static#e=this.\u0275fac=function(de){return new(de||te)(e.rXU(et.W4,16))};static#t=this.\u0275pipe=e.EJ8({name:"triggerEventLabel",type:te,pure:!0})}return te})();const Dt=[he.x,oe.o,o,E.i,h.f,C.l,F,j,P.l,u.t,$,qe.l,Z.h,v.w,w,re.Q,le,He,Ae.$,_e,Me,ht.K,Ve,ft,ae.q,Be.a,y,ye.R,g.y,K.f,Qe,We.K,k,Le,Ke,X.x,l.h];let je=(()=>{class te{static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275mod=e.$C({type:te});static#i=this.\u0275inj=e.G2t({providers:[...Dt],imports:[Re.d]})}return te})(),Ie=(()=>{class te{transform(se){return i.Ubi[se]?.label??i.Ubi[i.f_e.Unknown].label}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"platformTypeTooltipLabel",type:te,pure:!0,standalone:!0})}return te})();var Tt=r(2233);let It=(()=>{class te{constructor(se){this.env=se}transform({lat:se,lng:de}){return this.env.getProperty("MAP_URL")&&`${this.env.getProperty("MAP_URL")}${se},${de}`}static#e=this.\u0275fac=function(de){return new(de||te)(e.rXU(Tt.O,16))};static#t=this.\u0275pipe=e.EJ8({name:"positionMapLink",type:te,pure:!0,standalone:!0})}return te})(),Lt=(()=>{class te{transform(se){let de=se;if("string"==typeof se&&"{"===Array.from(se)[0])try{de=JSON.parse(se)}catch{return se}return Array.isArray(de)||"object"==typeof de?JSON.stringify(de,void 0,4).replace(/ /g," ").replace(/\n/g,"<br/>"):de}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"prettyJson",type:te,pure:!0,standalone:!0})}return te})(),Fe=(()=>{class te{constructor(){this.etaState={[i.Eys.None]:"",[i.Eys.OnTime]:`bg-${H.kp.Green}-500`,[i.Eys.RiskyDelay]:`bg-${H.kp.Red}-500`,[i.Eys.ToleratedDelay]:`bg-${H.kp.Yellow}-500`}}transform(se){return this.etaState[se]||""}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"roadEtaClass",type:te,pure:!0,standalone:!0})}return te})(),pt=(()=>{class te{constructor(){this.etaState={[i.Eys.None]:"",[i.Eys.OnTime]:(0,s.x)("On time"),[i.Eys.RiskyDelay]:(0,s.x)("Late"),[i.Eys.ToleratedDelay]:(0,s.x)("At risk")}}transform(se){return this.etaState[se]||se}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"roadEtaLabel",type:te,pure:!0,standalone:!0})}return te})(),xt=(()=>{class te{transform(se,de){return[...se].sort((nt,bt)=>nt[de]<bt[de]?-1:1)}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"sort",type:te,pure:!0,standalone:!0})}return te})();r(36441);const Se={[i.lkQ.Loading]:(0,s.x)("Loading"),[i.lkQ.Delivery]:(0,s.x)("Delivery"),[i.lkQ.DeliveryHub]:(0,s.x)("Delivery hub"),[i.lkQ.Hub]:(0,s.x)("Hub"),[i.lkQ.Terminal]:(0,s.x)("Terminal")};let ne=(()=>{class te{transform(se){return function Xe(te){const lt=Se[te];return lt||console.warn(`Unable to retrieve label for stop type ${te}`),lt??te}(se)}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"stopTypeLabel",type:te,pure:!0,standalone:!0})}return te})(),we=(()=>{class te{constructor(){this.labels={CONTAINER_AVAILABLE_FOR_DELIVERY:(0,s.x)("Available for Delivery"),CONTAINER_CARRIER_RELEASE:(0,s.x)("Released by Carrier"),CONTAINER_CUSTOMS_HOLD:(0,s.x)("On Hold by Customs"),CONTAINER_CUSTOMS_RELEASE:(0,s.x)("Cleared by Customs"),CONTAINER_CUSTOMS_UNRELEASED:(0,s.x)("Not Yet Cleared by Customs"),CONTAINER_FREE_TIME_EXPIRED:(0,s.x)("Free Storage Period Ended"),CONTAINER_FREE_TIME_TO_EXPIRE:(0,s.x)("Free Storage Period expected to end on"),CONTAINER_OCEAN_CHARGES_PAID:(0,s.x)("Ocean Freight Charges Paid"),CONTAINER_US_CUSTOMS_IN_BOND:(0,s.x)("In Bond Under US Customs"),DESTINATION_INLAND_LOCATION:(0,s.x)("INLAND DESTINATION"),DISCHARGE:(0,s.x)("DISCHARGE"),LOADING:(0,s.x)("LOADING"),ORIGIN_INLAND_LOCATION:(0,s.x)("INLAND ORIGIN"),TRANSHIPMENT:(0,s.x)("TRANSHIPMENT")}}transform(se){return this.labels[se]||se}static#e=this.\u0275fac=function(de){return new(de||te)};static#t=this.\u0275pipe=e.EJ8({name:"suggestedValueLabel",type:te,pure:!0})}return te})();r(98323)},89699:(fe,J,r)=>{"use strict";r.d(J,{x:()=>e});var t=r(48891);let e=(()=>{class o{transform(i,p){return i.map(f=>Array.isArray(p)?p.map(N=>f[N]).join(" - "):f[p]).join(", ")}static#e=this.\u0275fac=function(p){return new(p||o)};static#t=this.\u0275pipe=t.EJ8({name:"arrayPropertyJoin",type:o,pure:!0})}return o})()},79385:(fe,J,r)=>{"use strict";r.d(J,{o:()=>o});var t=r(48891),e=r(86388);let o=(()=>{class s{constructor(p){this.sanitizer=p}transform(p){return this.sanitizer.bypassSecurityTrustHtml(p)}static#e=this.\u0275fac=function(f){return new(f||s)(t.rXU(e.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"bypassHtml",type:s,pure:!0})}return s})()},54646:(fe,J,r)=>{"use strict";r.d(J,{h:()=>o});var t=r(36287),e=r(48891);let o=(()=>{class s{transform(p,f){return(0,t.c9V)(p||"",f).label}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"eventLabel",type:s,pure:!0})}return s})()},69111:(fe,J,r)=>{"use strict";r.d(J,{w:()=>s});var t=r(43134),e=r(91039),o=r(48891);let s=(()=>{class i{constructor(){this.icon={[t.UW.Fr]:{name:"fr",size:e.D7.Small,type:e.Oo.Flag},[t.UW.De]:{name:"de",size:e.D7.Small,type:e.Oo.Flag},[t.UW.Nl]:{name:"nl",size:e.D7.Small,type:e.Oo.Flag},[t.UW.En]:{name:"en",size:e.D7.Small,type:e.Oo.Flag},[t.UW.Es]:{name:"es",size:e.D7.Small,type:e.Oo.Flag},[t.UW.It]:{name:"it",size:e.D7.Small,type:e.Oo.Flag},[t.UW.Pl]:{name:"pl",size:e.D7.Small,type:e.Oo.Flag},[t.UW.Pt]:{name:"pt",size:e.D7.Small,type:e.Oo.Flag},[t.UW.PtBr]:{name:"br",size:e.D7.Small,type:e.Oo.Flag}}}transform(f){return this.icon[f]||void 0}static#e=this.\u0275fac=function(N){return new(N||i)};static#t=this.\u0275pipe=o.EJ8({name:"flagIcon",type:i,pure:!0})}return i})()},76577:(fe,J,r)=>{"use strict";r.d(J,{i:()=>o});var t=r(6134),e=r(48891);let o=(()=>{class s{transform(p,f){if(!p)return"";const N=f?f.getValue()??f.getDefaultValue():t.hC.Name,{name:A,postalCode:I,town:b,street:l}=p;let R="";switch(N){case t.hC.Name:R=A?`${A}${I?` (${I})`:""}`:"";break;case t.hC.Town:R=b?`${b}${I?` (${I})`:""}`:"";break;case t.hC.Street:R=l?`${l}${I?` (${I})`:""}`:"";break;case t.hC.NameAndTown:R=A&&b?`${A}, ${b}${I?` (${I})`:""}`:A||b||"";break;default:R=A?`${A}${I?` (${I})`:""}`:""}return R}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"formatAddress",type:s,pure:!0})}return s})()},97439:(fe,J,r)=>{"use strict";r.d(J,{f:()=>o});var t=r(1091),e=r(48891);let o=(()=>{class s{transform(p,f){return(0,t.Yq)(p,f)}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"formatDateTime",type:s,pure:!0})}return s})()},75092:(fe,J,r)=>{"use strict";r.d(J,{l:()=>o});var t=r(1091),e=r(48891);let o=(()=>{class s{transform(p,f,N){return(0,t.Zk)(p,f,N)}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"formatDelay",type:s,pure:!0})}return s})()},27005:(fe,J,r)=>{"use strict";r.d(J,{l:()=>o});var t=r(1091),e=r(48891);let o=(()=>{class s{transform(p,f,N){return(0,t.pL)(p,f,N)}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"formatTimeSlot",type:s,pure:!0})}return s})()},47203:(fe,J,r)=>{"use strict";r.d(J,{t:()=>o});var t=r(1091),e=r(48891);let o=(()=>{class s{transform(p,f){return(0,t.Pt)(p,f)}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"formatTimeZone",type:s,pure:!0})}return s})()},66906:(fe,J,r)=>{"use strict";r.d(J,{l:()=>e});var t=r(48891);let e=(()=>{class o{transform(i,p){const f=i.reduce((N,A)=>({...N,[A[p]]:[...N[A[p]]||[],A]}),{});return Object.keys(f).map(N=>({key:N,value:f[N]}))}static#e=this.\u0275fac=function(p){return new(p||o)};static#t=this.\u0275pipe=t.EJ8({name:"groupBy",type:o,pure:!0})}return o})()},84490:(fe,J,r)=>{"use strict";r.d(J,{x:()=>I});var t=r(36287),e=r(91039),o=r(48891);const s={color:"green-400",name:"check",type:e.Oo.Solid},i={color:"orange-400",name:"exclamation",type:e.Oo.Solid},p={color:"red-400",name:"x-circle",type:e.Oo.Solid},f={color:"shippeo-400",name:"map-pin",type:e.Oo.Solid},N={color:"green-400",name:"check-circle",type:e.Oo.Solid},A={color:"red-400",name:"x-circle",type:e.Oo.Solid};let I=(()=>{class b{transform({name:R,isIssue:v}){return v?A:[t.fNC.CompliantDeclared,t.fNC.DeliveryCompliantDeclared].includes(R)?s:[t.fNC.NonCompliantDeclared,t.fNC.NonRealisedDeclared,t.fNC.DeliveryNonCompliantDeclared,t.fNC.DeliveryNonRealisedDeclared].includes(R)?i:[t.fNC.RefusedDeclared,t.fNC.DeliveryRefusedDeclared].includes(R)?p:[t.fNC.ArrivedAtHubDeclared,t.fNC.ArrivedAtDeliveryHubDeclared,t.fNC.LeftDeliveryHubDeclared,t.fNC.LeftHubDeclared].includes(R)?f:N}static#e=this.\u0275fac=function(v){return new(v||b)};static#t=this.\u0275pipe=o.EJ8({name:"handlingUnitEventIcon",type:b,pure:!0})}return b})()},27814:(fe,J,r)=>{"use strict";r.d(J,{h:()=>p});var t=r(91167),e=r(67886),o=r(44687),s=r(48891);let p=(()=>{class f{constructor(A){this.i18nService=A}transform(A){if(Number.isInteger(A))return(0,e.O)(A,{spacer:"\xa0",symbols:{B:this.i18nService.instant((0,t.x)("B")),EB:this.i18nService.instant((0,t.x)("EB")),GB:this.i18nService.instant((0,t.x)("GB")),KB:this.i18nService.instant((0,t.x)("kB")),MB:this.i18nService.instant((0,t.x)("MB")),PB:this.i18nService.instant((0,t.x)("PB")),TB:this.i18nService.instant((0,t.x)("TB")),YB:this.i18nService.instant((0,t.x)("YB")),ZB:this.i18nService.instant((0,t.x)("ZB"))}})}static#e=this.\u0275fac=function(I){return new(I||f)(s.rXU(o.W4,16))};static#t=this.\u0275pipe=s.EJ8({name:"humanizeBytes",type:f,pure:!0})}return f})()},47915:(fe,J,r)=>{"use strict";r.d(J,{Q:()=>e});var t=r(48891);let e=(()=>{class o{transform(i,p){return Array.isArray(i)?i.join(p):i}static#e=this.\u0275fac=function(p){return new(p||o)};static#t=this.\u0275pipe=t.EJ8({name:"joinArray",type:o,pure:!0})}return o})()},16336:(fe,J,r)=>{"use strict";r.d(J,{$:()=>e});var t=r(48891);let e=(()=>{class o{transform(i,p){return i&&i.length>p?`${i.substr(0,p)}...`:i}static#e=this.\u0275fac=function(p){return new(p||o)};static#t=this.\u0275pipe=t.EJ8({name:"limitToWithDots",type:o,pure:!0})}return o})()},16832:(fe,J,r)=>{"use strict";r.d(J,{K:()=>s});var t=r(36287),e=r(94168),o=r(48891);let s=(()=>{class i{transform(f,N=t.TT5.Road){if(N===t.TT5.Road)return e.Wt.get(f)??void 0}static#e=this.\u0275fac=function(N){return new(N||i)};static#t=this.\u0275pipe=o.EJ8({name:"orderEventIcon",type:i,pure:!0})}return i})()},16215:(fe,J,r)=>{"use strict";r.d(J,{K:()=>s});var t=r(91167),e=r(94168),o=r(48891);let s=(()=>{class i{constructor(){this.label={[e.ss.BillOfLading]:(0,t.x)("Bill of Lading"),[e.ss.Booking]:(0,t.x)("Booking"),[e.ss.BreakBulk]:(0,t.x)("[[OV reference]] Breakbulk"),[e.ss.ClientReference]:(0,t.x)("Client reference"),[e.ss.ConsignmentReference]:(0,t.x)("Consignment reference"),[e.ss.Container]:(0,t.x)("Container"),[e.ss.ContractNumber]:(0,t.x)("Contract number"),[e.ss.Order]:(0,t.x)("Order"),[e.ss.OrderReferenceValue]:(0,t.x)("Order reference"),[e.ss.RoRo]:(0,t.x)("[[OV reference]] RoRo"),[e.ss.SalesOrder]:(0,t.x)("Sales Order")}}transform(f){return this.label[f]||(0,t.x)("External id")}static#e=this.\u0275fac=function(N){return new(N||i)};static#t=this.\u0275pipe=o.EJ8({name:"additionalReferenceType",type:i,pure:!0})}return i})()},42547:(fe,J,r)=>{"use strict";r.d(J,{R:()=>e});var t=r(48891);let e=(()=>{class o{transform(i,p,f){return f?(i||[]).filter(N=>p.split(",").some(A=>new RegExp(f,"i").test(N[A]))):i}static#e=this.\u0275fac=function(p){return new(p||o)};static#t=this.\u0275pipe=t.EJ8({name:"search",type:o,pure:!0})}return o})()},9956:(fe,J,r)=>{"use strict";r.d(J,{y:()=>s});var t=r(36287),e=r(91039),o=r(48891);let s=(()=>{class i{transform(f){return f===t.B9_.Active?e.kp.Green:f===t.B9_.Idle?e.kp.Cobalt:f===t.B9_.Down?e.kp.Red:f===t.B9_.Risky?e.kp.Yellow:f===t.B9_.Updating?e.kp.Orange:e.kp.Gray}static#e=this.\u0275fac=function(N){return new(N||i)};static#t=this.\u0275pipe=o.EJ8({name:"telematicColorStatus",type:i,pure:!0})}return i})()},58845:(fe,J,r)=>{"use strict";r.d(J,{f:()=>s});var t=r(91167),e=r(36287),o=r(48891);let s=(()=>{class i{constructor(){this.labels={[e.B9_.Active]:(0,t.x)("Active"),[e.B9_.Down]:(0,t.x)("Down"),[e.B9_.Idle]:(0,t.x)("Off duty"),[e.B9_.Risky]:(0,t.x)("At risk"),[e.B9_.Inactive]:(0,t.x)("Inactive"),[e.B9_.Updating]:(0,t.x)("Updating")}}transform(f){return this.labels[f]||f}static#e=this.\u0275fac=function(N){return new(N||i)};static#t=this.\u0275pipe=o.EJ8({name:"telematicLabelStatus",type:i,pure:!0})}return i})()},94920:(fe,J,r)=>{"use strict";r.d(J,{q:()=>o});var t=r(91167),e=r(48891);let o=(()=>{class s{constructor(){this.labels={DISPATCHED_EVENT:(0,t.x)("dispatched events"),HANDLING_UNIT_EVENT:(0,t.x)("handling unit events"),NOTIFICATION_EVENT:(0,t.x)("notification events"),ORDER_EVENT:(0,t.x)("order events"),SOLUTION_EVENT:(0,t.x)("solution events")}}transform(p){return this.labels[p]||p}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"timelineEventLabel",type:s,pure:!0})}return s})()},89005:(fe,J,r)=>{"use strict";r.d(J,{a:()=>o});var t=r(91167),e=r(48891);let o=(()=>{class s{constructor(){this.labels={CHARTERING:(0,t.x)("Chartering"),PAIRING:(0,t.x)("Pairing"),SUMMARY_EVENT:(0,t.x)("Summary event"),THEORETICAL:(0,t.x)("Theoretical"),TRACKED_CONTAINER_EVENT:(0,t.x)("Tracked container event"),WHY:(0,t.x)("Why")}}transform(p){return this.labels[p]||p}static#e=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275pipe=e.EJ8({name:"timelineTagCategoriesLabel",type:s,pure:!0})}return s})()},45275:(fe,J,r)=>{"use strict";r.d(J,{Uc:()=>z,D9:()=>I,iy:()=>H,er:()=>j,qH:()=>u,e5:()=>F,Oo:()=>Y,Hl:()=>t,Jc:()=>e});const t=(x="")=>x?.replace(/\s/g,"");function e(x,Q){if(x)throw new Error(`${Q} has already been loaded. Import Core modules in the AppModule only.`)}var o=r(93e3),s=r(76627),i=r(82040),p=r(66590),f=r(30593),N=r(37610),A=r(47947);function I(x,Q,O){return $=>{const X=(0,o.O)(x).pipe((0,i.M)(()=>Q()),(0,p.u)(!0),(0,f.Z)(!1));return(0,s.z)([$,X]).pipe((0,N.s)(1),(0,A.T)(([Z,He])=>(He&&O(),Z)))}}var b=r(76564),l=r(18447),R=r(909),v=r(88627),E=r(5424),h=r(22867),C=r(41483);const F=new((()=>{class x{static#e=this.MOUSEMOVE_DEBOUNCE_MS=50;addClosePopoverListener(O,$,X){if(!window.matchMedia("(hover: hover) and (pointer: fine)").matches)return b.w.subscribe();const He=new l.B,L=(0,R.R)(document.body,"mousemove").pipe((0,v.B)(x.MOUSEMOVE_DEBOUNCE_MS),(0,E.Q)(He));return(0,R.R)(O,"mouseleave").pipe((0,h.n)(()=>L),(0,C.p)(ce=>!document.querySelector(`.${$}`)?.contains(ce.target))).subscribe(()=>(He.next(),void X()))}}return x})());var V=r(85100);const j=x=>decodeURI(x).match("page\\[number]=(\\d+)")[1],Y=x=>x.normalize("NFD").replace(/[\u0300-\u036f]/g,""),u=x=>{if(!x)return x;let Q;try{Q=(0,V.L)(x)}catch{return x}return Q.isValid()?Q.formatInternational():x},z=x=>window.location.href=x,H=(x,Q)=>Q},92993:(fe,J,r)=>{"use strict";r.d(J,{w:()=>N,D:()=>A});var t=r(48891),e=r(27691),o=r(63016),s=r(47947),i=r(12596),p=r(30456),f=r(36287);let N=(()=>{class I{constructor(){this.apiService=(0,t.WQX)(i.Gf),this.downloadService=(0,t.WQX)(p.s)}create(l){let R=i.M$.Tag;return l.organization?.id&&(R+=`?organization=${l.organization.id}`),delete l.organization,this.apiService.post(R,l.transformRequest()).pipe((0,s.T)(f.L0f))}createNew(){return(0,o.of)((0,f.Mo0)())}delete(l){return this.apiService.delete(`${i.M$.Tag}/${l}`)}export(l){return this.downloadService.getCsv(i.M$.Tag,`export.${l.filename}.tags`,{"filter[organization]":l.id})}get(l){const R=(new e.Nl).set("include","organization");return this.apiService.get(`${i.M$.Tag}/${l}`,{params:R}).pipe((0,s.T)(f.L0f))}query(l){return this.apiService.query(i.M$.Tag,{params:l}).pipe((0,s.T)(R=>new i.Qw(R,R.data.map(f.L0f))))}save(l){return l.id?this.update(l):this.create(l)}update(l){return this.apiService.put(`${i.M$.Tag}/${l.id}`,l.transformRequest()).pipe((0,s.T)(R=>R),(0,s.T)(f.L0f))}static#e=this.\u0275fac=function(R){return new(R||I)};static#t=this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();const A=I=>{const b=(0,t.WQX)(N);return I.params.tagId?b.get(I.params.tagId):b.createNew()}},43135:(fe,J,r)=>{"use strict";r.d(J,{eX:()=>I,K:()=>ve,j4:()=>Qe});var t=r(54460),e=r(48891),o=r(76803),s=r(18306),i=r(91834),p=r(91039),f=r(71332),N=r(16336);const A=(ye,Ve)=>[ye,Ve];let I=(()=>{class ye{constructor(){this.rounded=(0,e.hFB)(!1),this.selected=(0,e.hFB)(!1),this.tag=e.hFB.required(),this.svgIconSize=p.D7,this.svgIconType=p.Oo}static#e=this.\u0275fac=function(K){return new(K||ye)};static#t=this.\u0275cmp=e.VBU({type:ye,selectors:[["sh-tag"]],inputs:{rounded:[1,"rounded"],selected:[1,"selected"],tag:[1,"tag"]},standalone:!0,features:[e.aNF],decls:9,vars:22,consts:[[1,"tag","d-flex","align-items-center","justify-content-center","g-1",3,"ngbTooltip","ngClass"],[1,"icon",3,"name","size","type"],[1,"label","f-xs","fw-medium"]],template:function(K,ae){1&K&&(e.j41(0,"div",0),e.nI1(1,"tagLabel"),e.nI1(2,"tagColor"),e.nrm(3,"shui-svg-icon",1),e.nI1(4,"tagIcon"),e.j41(5,"span",2),e.EFF(6),e.nI1(7,"tagLabel"),e.nI1(8,"limitToWithDots"),e.k0s()()),2&K&&(e.AVh("rounded-circle",ae.rounded()),e.Y8G("ngbTooltip",e.bMT(1,8,ae.tag()))("ngClass",e.l_i(19,A,"tag-"+e.bMT(2,10,ae.tag()),ae.selected()?"selected":"")),e.R7$(3),e.Y8G("name",e.bMT(4,12,ae.tag()))("size",ae.svgIconSize.Small)("type",ae.svgIconType.Solid),e.R7$(3),e.JRh(e.i5U(8,16,e.bMT(7,14,ae.tag()),25)))},dependencies:[t.YU,o.n8,o.md,i.Yc,N.$,s.Ad,s.DM,f.MI,f.L,f.EU],styles:["[_nghost-%COMP%]{display:inline-block}.tag[_ngcontent-%COMP%]{padding:2px var(--spacer-2) 2px var(--spacer-1);border:1px solid transparent;border-radius:var(--border-radius-xs)}.icon[_ngcontent-%COMP%]{padding-bottom:2px}.tag-purple[_ngcontent-%COMP%]{background-color:#ede9fe}.tag-purple[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#8b5cf6!important}.tag-purple[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#5b21b6}.tag-purple.selected[_ngcontent-%COMP%]{border-color:#5b21b6}.tag-blue[_ngcontent-%COMP%]{background-color:#dbeafe}.tag-blue[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#3b82f6!important}.tag-blue[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#1e40af}.tag-blue.selected[_ngcontent-%COMP%]{border-color:#1e40af}.tag-light-blue[_ngcontent-%COMP%]{background-color:#e0f2fe}.tag-light-blue[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#0ea5e9!important}.tag-light-blue[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#075985}.tag-light-blue.selected[_ngcontent-%COMP%]{border-color:#075985}.tag-cyan[_ngcontent-%COMP%]{background-color:#cffafe}.tag-cyan[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#06b6d4!important}.tag-cyan[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#155e75}.tag-cyan.selected[_ngcontent-%COMP%]{border-color:#155e75}.tag-teal[_ngcontent-%COMP%]{background-color:#ccfbf1}.tag-teal[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#14b8a6!important}.tag-teal[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#115e59}.tag-teal.selected[_ngcontent-%COMP%]{border-color:#115e59}.tag-red[_ngcontent-%COMP%]{background-color:#fee2e2}.tag-red[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#ef4444!important}.tag-red[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#991b1b}.tag-red.selected[_ngcontent-%COMP%]{border-color:#991b1b}.tag-orange[_ngcontent-%COMP%]{background-color:#ffedd5}.tag-orange[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#f97316!important}.tag-orange[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#9a3412}.tag-orange.selected[_ngcontent-%COMP%]{border-color:#9a3412}.tag-yellow[_ngcontent-%COMP%]{background-color:#fef3c7}.tag-yellow[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#f59e0b!important}.tag-yellow[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#92400e}.tag-yellow.selected[_ngcontent-%COMP%]{border-color:#92400e}.tag-green[_ngcontent-%COMP%]{background-color:#d1fae5}.tag-green[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#10b981!important}.tag-green[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#065f46}.tag-green.selected[_ngcontent-%COMP%]{border-color:#065f46}.tag-cobalt[_ngcontent-%COMP%]{background-color:#e8f3fc}.tag-cobalt[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#3190e8!important}.tag-cobalt[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#0d4273}.tag-cobalt.selected[_ngcontent-%COMP%]{border-color:#0d4273}.tag-shippeo[_ngcontent-%COMP%]{background-color:#e9effc}.tag-shippeo[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#3873e1!important}.tag-shippeo[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#11326f}.tag-shippeo.selected[_ngcontent-%COMP%]{border-color:#11326f}.tag-gray[_ngcontent-%COMP%]{background-color:#f3f4f6}.tag-gray[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#6b7280!important}.tag-gray[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#1f2937}.tag-gray.selected[_ngcontent-%COMP%]{border-color:#1f2937}"],changeDetection:0})}return ye})();var b=r(10936),l=r(36287);function R(ye,Ve){if(1&ye){const g=e.RV6();e.j41(0,"sh-tag",1),e.bIt("click",function(){const ae=e.eBV(g).$implicit,Be=e.XpG();return e.Njj(Be.onSelected(ae.color))}),e.k0s()}if(2&ye){const g=Ve.$implicit,K=e.XpG();e.Y8G("tag",g)("selected",g.color===K.color)}}let v=(()=>{class ye{constructor(){this.tags=["gray","purple","blue","light-blue","cyan","teal","green","red","orange","yellow"].map(g=>(0,l.L0f)({color:g,label:"S"})),this.disabled=!1,this.touched=!1}onSelected(g){this.markAsTouched(),this.disabled||(this.color=g,this.onChange(g))}registerOnChange(g){this.onChange=g}registerOnTouched(g){this.onTouched=g}setDisabledState(g){this.disabled=g}writeValue(g){this.color=g}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}static#e=this.\u0275fac=function(K){return new(K||ye)};static#t=this.\u0275cmp=e.VBU({type:ye,selectors:[["sh-tag-color-picker"]],standalone:!0,features:[e.Jv_([{multi:!0,provide:b.kq,useExisting:(0,e.Rfq)(()=>ye)}]),e.aNF],decls:2,vars:0,consts:[["role","button",3,"tag","selected"],["role","button",3,"click","tag","selected"]],template:function(K,ae){1&K&&e.Z7z(0,R,1,2,"sh-tag",0,e.Vm6),2&K&&e.Dyx(ae.tags)},dependencies:[I],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;gap:var(--spacer-1)}"],changeDetection:0})}return ye})();var E=r(27691),h=r(76082),C=r(34133),M=r(85710),F=r(63016),V=r(93e3),j=r(47947),Y=r(17178),a=r(22867),P=r(1703),u=r(91167),z=r(28701),H=r(43126),x=r(74221),Q=r(12596),O=r(44687),$=r(78792),X=r(4437),Z=r(92993),He=r(78031),L=r(39102),Ce=r(53220),ce=r(58170);const me=["confirmModal"];function _e(ye,Ve){if(1&ye&&(e.nrm(0,"shui-modal",27),e.nI1(1,"translate"),e.nI1(2,"translate"),e.nI1(3,"translate")),2&ye){const g=Ve.$implicit,K=e.XpG();e.Y8G("buttonLabel",e.bMT(1,9,"Continue"))("content",K.confirmMessage)("modal",g)("leftButtonLabel",e.bMT(2,11,"Cancel"))("title",e.bMT(3,13,"Warning"))("buttonTheme",K.buttonTheme.Primary)("iconType",K.iconType.Solid)("type",K.modalType.Confirmation)("iconColor",K.themeColorKey.Shippeo)}}function Me(ye,Ve){if(1&ye&&(e.j41(0,"shui-info-block",28),e.nrm(1,"sh-reference",30),e.k0s()),2&ye){const g=e.XpG(2),K=e.XpG();e.Y8G("iconSize",K.iconSize.Medium)("iconType",K.iconType.Solid),e.R7$(),e.Y8G("baseModel",g)}}function Ge(ye,Ve){1&ye&&e.DNE(0,Me,2,3,"shui-info-block",29),2&ye&&e.Y8G("ngxPermissionsOnly","isAppBackOffice")}function Ue(ye,Ve){1&ye&&e.DNE(0,Ge,1,1,"shui-info-block",28),2&ye&&e.vxM(Ve.id?0:-1)}function ze(ye,Ve){if(1&ye&&(e.j41(0,"div",5)(1,"div",31)(2,"shui-form-field")(3,"shui-label"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"shui-autocomplete",32),e.nI1(7,"translate"),e.nrm(8,"shui-hint"),e.k0s()()()),2&ye){const g=e.XpG();e.R7$(4),e.JRh(e.bMT(5,4,"Organization")),e.R7$(2),e.Y8G("noResultsMessage",e.bMT(7,6,"Not in the list"))("placeholder","")("searchFunction",g.searchOrganizations)}}function k(ye,Ve){if(1&ye&&(e.j41(0,"sh-form-validation-messages",8)(1,"sh-form-validation-message",33)(2,"span"),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&ye){const g=e.XpG();e.Y8G("for",g.form.controls.labelPermission.errors),e.R7$(3),e.JRh(e.bMT(4,2,"This tag label already exists within the organization"))}}function We(ye,Ve){1&ye&&(e.j41(0,"div",5)(1,"div",9)(2,"div",34),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"sh-tag",35),e.k0s()()),2&ye&&(e.R7$(3),e.JRh(e.bMT(4,2,"Preview")),e.R7$(2),e.Y8G("tag",Ve))}let ve=(()=>{class ye{constructor(){this.confirmModal=(0,e.ebz)("confirmModal"),this.existingTag=(0,e.vPA)(void 0),this.previewTag=(0,e.EWP)(()=>{const g=this.formValue();if(g?.labelPermission.label&&g.color)return(0,l.L0f)({color:g.color,label:g.labelPermission.label,permission:g.labelPermission.permission})}),this.confirmMessage=(0,u.x)("You're about to change the tag permission from shared to private. Users from other organizations will not be able to view the tag once you confirm this modification."),this.buttonTheme=p.Ox,this.fontSize=p.Z4,this.formLayoutPosition=s.Kt,this.iconPosition=p.fE,this.iconSize=p.D7,this.iconType=p.Oo,this.modalType=s.q3,this.radioGroupedPosition=s.hY,this.radioVariant=s.hC,this.tagPermission=l.kt9,this.themeColorKey=p.kp,this.isCreationMode=!1,this.subscriptions=new M.yU,this.waitTimeInMs=200,this.apiService=(0,e.WQX)(Q.Gf),this.fb=(0,e.WQX)(b.Qk),this.modalService=(0,e.WQX)(s.Bg),this.navigationService=(0,e.WQX)(X.o_),this.organizationService=(0,e.WQX)($.PV),this.pageTitleStrategy=(0,e.WQX)(H.fF,{optional:!0}),this.route=(0,e.WQX)(C.nX),this.router=(0,e.WQX)(C.Ix),this.tagService=(0,e.WQX)(Z.w),this.searchOrganizations=(g,K)=>{const ae=(new E.Nl).set("page[number]",K??0).set("search",g).set("type","organization");return this.organizationService.query(ae).pipe((0,j.T)(Be=>({items:Be.map(et=>({id:et.id,label:et.name,value:et})),meta:{pageSize:20,totalItems:Be.totalItems,totalPages:Be.totalPages}})))},this.searchOrganizations=this.searchOrganizations.bind(this),this.form=this.fb.group({color:this.fb.control("gray",x.Ne.required),labelPermission:this.fb.group({label:this.fb.control("",x.Ne.required),permission:this.fb.control(l.kt9.Private,x.Ne.required)},{asyncValidators:this.validateTagLabelPermission()}),organization:this.fb.control(void 0,x.Ne.required)}),this.formValue=(0,h.ot)(this.form.valueChanges.pipe((0,j.T)(()=>this.form.getRawValue())),{initialValue:this.form.getRawValue()})}ngOnDestroy(){this.subscriptions.unsubscribe()}ngOnInit(){const g=this.route.snapshot.data.tag;if(this.pageTitleStrategy?.updateTitle(this.router.routerState.snapshot,g.label),this.existingTag.set(g),this.isCreationMode=!g.id,g.organization){const K={id:g.organization.id,label:g.organization.name,value:g.organization};K.id&&this.form.controls.organization.disable(),this.form.reset({organization:K,color:g.color,labelPermission:{label:g.label,permission:g.permission}})}}cancel(){this.navigationService.cancel()}onSaveTag(){if(!this.form.valid)return;let g;const K=this.existingTag()?.permission,ae=this.form.controls.labelPermission.controls.permission.value;[K,ae].includes(l.kt9.Private)&&K!==ae&&!this.isCreationMode?(K===l.kt9.Private&&(this.confirmMessage=(0,u.x)("You're about to change the tag permission from private to shared. Users from other organizations will be able to view the tag once you confirm this modification.")),this.modalService.open(this.confirmModal()).result.then(et=>{et===s.Gj.Default&&(g=this.tagService.save(this.prepareSaveTag()).subscribe(()=>this.navigationService.cancel({relativeTo:this.route})))})):g=this.tagService.save(this.prepareSaveTag()).subscribe(()=>this.navigationService.cancel({relativeTo:this.route})),this.subscriptions.add(g)}isLabelAlreadyExists(g){return this.apiService.head(g).pipe((0,j.T)(()=>!0),(0,Y.W)(()=>(0,F.of)(!1)))}prepareSaveTag(){return(0,l.L0f)(Object.assign(this.existingTag()??{},{color:this.form.controls.color.value,label:this.form.controls.labelPermission.value.label,organization:this.form.controls.organization.value?.value,permission:this.form.controls.labelPermission.value.permission}))}validateTagLabelPermission(){return g=>{if(g.pristine||!g.value?.label||!g.value?.permission||!this.form.controls.organization.value)return(0,F.of)(null);const K=Q.M$.OrganizationTagCheck.replace(":id",this.form.controls.organization.value.id).replace(":tagName",g.value.label).replace(":permission",g.value.permission);return(0,V.O)(this.waitTimeInMs).pipe((0,a.n)(()=>this.isLabelAlreadyExists(K)),(0,j.T)(ae=>ae?{tagExist:!0}:null),(0,P.$)())}}static#e=this.\u0275fac=function(K){return new(K||ye)};static#t=this.\u0275cmp=e.VBU({type:ye,selectors:[["sh-tag-form"]],viewQuery:function(K,ae){1&K&&e.wEZ(ae.confirmModal,me,5),2&K&&e.NyB()},standalone:!0,features:[e.aNF],decls:62,vars:72,consts:[["confirmModal",""],[3,"hasHeader","hasFooter","position"],["slot","body",3,"formGroup"],[1,"text-gray-900","fw-medium","text-lg","mb-6"],["class","row",4,"ngxPermissionsOnly"],[1,"row"],["formGroupName","labelPermission",1,"col-md-6","form-group"],["formControlName","label","data-qa","label",3,"placeholder"],[3,"for"],[1,"col-md-12","form-group"],["formControlName","color"],["formGroupName","labelPermission",1,"col-md-12","form-group"],[1,"form-control-label","text-gray-700","fw-medium","f-sm"],[1,"px-2","py-3","border-top","border-start","border-end","border-bottom","rounded-top"],["formControlName","permission","data-qa","private",3,"currentRadioPosition","currentRadioVariant","value"],["icon","lock-closed","fontColor","gray-700","iconColor","gray-400",1,"ms-1","fw-medium",3,"label","fontSize","iconSize","iconType","iconPosition"],["slot","sub-label"],[1,"px-2","py-3","border-start","border-end","border-bottom"],["formControlName","permission","data-qa","sharedViewOnly",3,"currentRadioPosition","currentRadioVariant","value"],["icon","user-group","fontColor","gray-700","iconColor","gray-400",1,"ms-1","fw-medium",3,"label","iconSize","iconType","fontSize","iconPosition"],[1,"px-2","py-3","border-start","border-end","border-bottom","rounded-bottom"],["formControlName","permission","data-qa","sharedViewAndAssign",3,"currentRadioPosition","currentRadioVariant","value"],["icon","user-group","fontColor","gray-700","iconColor","gray-400",1,"ms-1","fw-medium",3,"label","fontSize","iconSize","iconType","iconPosition"],["slot","footer",1,"form-layout-footer","d-flex","align-items-center","justify-content-between"],["data-qa","cancel",3,"click","btnTheme"],["slot","label"],["data-qa","save",3,"click","disabled"],["iconName","lock-closed",3,"buttonLabel","content","modal","leftButtonLabel","title","buttonTheme","iconType","type","iconColor"],["iconName","information-circle",1,"mb-6",3,"iconSize","iconType"],["class","mb-6","iconName","information-circle",3,"iconSize","iconType",4,"ngxPermissionsOnly"],[3,"baseModel"],[1,"col-md-6","form-group"],["formControlName","organization","data-qa","organization",1,"w-100",3,"noResultsMessage","placeholder","searchFunction"],["when","tagExist"],[1,"mb-2","text-gray-700","fw-medium","f-sm"],[3,"tag"]],template:function(K,ae){if(1&K){const Be=e.RV6();e.DNE(0,_e,4,15,"ng-template",null,0,e.C5r),e.j41(2,"shui-form-layout",1)(3,"form",2),e.DNE(4,Ue,1,1),e.j41(5,"h3",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,ze,9,8,"div",4),e.j41(9,"div",5)(10,"div",6)(11,"shui-form-field")(12,"shui-label"),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"shui-input",7),e.nI1(16,"translate"),e.DNE(17,k,5,4,"sh-form-validation-messages",8),e.nI1(18,"async"),e.k0s()()(),e.j41(19,"div",5)(20,"div",9)(21,"shui-form-field")(22,"shui-label"),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.nrm(25,"sh-tag-color-picker",10),e.k0s()()(),e.j41(26,"div",5)(27,"div",11)(28,"label",12),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.j41(31,"div",13)(32,"shui-radio",14),e.nrm(33,"shui-icon-label",15),e.nI1(34,"translate"),e.j41(35,"span",16),e.EFF(36),e.nI1(37,"translate"),e.k0s()()(),e.j41(38,"div",17)(39,"shui-radio",18),e.nrm(40,"shui-icon-label",19),e.nI1(41,"translate"),e.j41(42,"span",16),e.EFF(43),e.nI1(44,"translate"),e.k0s()()(),e.j41(45,"div",20)(46,"shui-radio",21),e.nrm(47,"shui-icon-label",22),e.nI1(48,"translate"),e.j41(49,"span",16),e.EFF(50),e.nI1(51,"translate"),e.k0s()()()()(),e.DNE(52,We,6,4,"div",5),e.k0s(),e.j41(53,"div",23)(54,"shui-button",24),e.bIt("click",function(){return e.eBV(Be),e.Njj(ae.cancel())}),e.j41(55,"label",25),e.EFF(56),e.nI1(57,"translate"),e.k0s()(),e.j41(58,"shui-button",26),e.bIt("click",function(){return e.eBV(Be),e.Njj(ae.onSaveTag())}),e.j41(59,"label",25),e.EFF(60),e.nI1(61,"translate"),e.k0s()()()()}if(2&K){let Be,et;e.R7$(2),e.Y8G("hasHeader",!1)("hasFooter",!0)("position",ae.formLayoutPosition.Center),e.R7$(),e.Y8G("formGroup",ae.form),e.R7$(),e.vxM((Be=ae.existingTag())?4:-1,Be),e.R7$(2),e.JRh(e.bMT(7,44,"Information")),e.R7$(2),e.Y8G("ngxPermissionsOnly","isAppBackOffice"),e.R7$(5),e.JRh(e.bMT(14,46,"Type your label")),e.R7$(2),e.Y8G("placeholder",e.bMT(16,48,"label")),e.R7$(2),e.vxM(e.bMT(18,50,ae.form.controls.labelPermission.statusChanges)?17:-1),e.R7$(6),e.JRh(e.bMT(24,52,"Select a color")),e.R7$(6),e.SpI(" ",e.bMT(30,54,"Choose among the 3 levels of tag permissions")," "),e.R7$(3),e.Y8G("currentRadioPosition",ae.radioGroupedPosition.Left)("currentRadioVariant",ae.radioVariant.Default)("value",ae.tagPermission.Private),e.R7$(),e.Y8G("label",e.bMT(34,56,"Private"))("fontSize",ae.fontSize.Small)("iconSize",ae.iconSize.SMedium)("iconType",ae.iconType.Solid)("iconPosition",ae.iconPosition.LEFT),e.R7$(3),e.SpI(" ",e.bMT(37,58,"Only my organization can view and assign this tag."),""),e.R7$(3),e.Y8G("currentRadioPosition",ae.radioGroupedPosition.Left)("currentRadioVariant",ae.radioVariant.Default)("value",ae.tagPermission.SharedViewOnly),e.R7$(),e.Y8G("label",e.bMT(41,60,"Shared - View only"))("iconSize",ae.iconSize.SMedium)("iconType",ae.iconType.Solid)("fontSize",ae.fontSize.Small)("iconPosition",ae.iconPosition.LEFT),e.R7$(3),e.JRh(e.bMT(44,62,"Any shipper or carrier from different organizations seeing my transport order can view the tag.")),e.R7$(3),e.Y8G("currentRadioPosition",ae.radioGroupedPosition.Left)("currentRadioVariant",ae.radioVariant.Default)("value",ae.tagPermission.SharedViewAndAssign),e.R7$(),e.Y8G("label",e.bMT(48,64,"Shared - View & Assign"))("fontSize",ae.fontSize.Small)("iconSize",ae.iconSize.SMedium)("iconType",ae.iconType.Solid)("iconPosition",ae.iconPosition.LEFT),e.R7$(3),e.JRh(e.bMT(51,66,"Any shipper or carrier from different organizations seeing my transport order can view and assign or remove the tag.")),e.R7$(2),e.vxM((et=ae.previewTag())?52:-1,et),e.R7$(2),e.Y8G("btnTheme",ae.buttonTheme.Secondary),e.R7$(2),e.JRh(e.bMT(57,68,"Cancel")),e.R7$(2),e.Y8G("disabled",!ae.form.valid),e.R7$(2),e.JRh(e.bMT(61,70,"Save"))}},dependencies:[t.Jj,s.sH,s.Qp,s.KS,s.Oy,x.Yl,He.V,L.s,s.p5,O.LP,Ce.D9,s.P1,s.fT,s.Sj,s.UF,s.Q_,s.zf,z.Ov,z.f6,s.v2,b.X1,b.qT,b.BC,b.cb,b.j4,b.JD,b.$R,x.AS,ce.t,v,I],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return ye})();r(97439);let Qe=(()=>{class ye{constructor(){this.tag=e.hFB.required(),this.fontSize=p.Z4,this.iconPosition=p.fE,this.svgIconSize=p.D7,this.svgIconType=p.Oo}static#e=this.\u0275fac=function(K){return new(K||ye)};static#t=this.\u0275cmp=e.VBU({type:ye,selectors:[["sh-tag-permission"]],inputs:{tag:[1,"tag"]},standalone:!0,features:[e.aNF],decls:4,vars:12,consts:[["fontColor","gray-700","iconColor","gray-700",1,"ms-1",3,"icon","label","fontSize","iconSize","iconType","iconPosition"]],template:function(K,ae){1&K&&(e.nrm(0,"shui-icon-label",0),e.nI1(1,"tagIcon"),e.nI1(2,"tagPermissionLabel"),e.nI1(3,"translate")),2&K&&e.Y8G("icon",e.bMT(1,6,ae.tag()))("label",e.bMT(3,10,e.bMT(2,8,ae.tag())))("fontSize",ae.fontSize.Xsmall)("iconSize",ae.svgIconSize.Xsmall)("iconType",ae.svgIconType.Solid)("iconPosition",ae.iconPosition.LEFT)},dependencies:[O.LP,Ce.D9,s.qD,s.P1,f.MI,f.sq],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return ye})()},71332:(fe,J,r)=>{"use strict";r.d(J,{EU:()=>v,MI:()=>h,L:()=>M,sq:()=>V});var t=r(18306),e=r(91167),s=(r(53503),r(36287));r(98323);const f={blackswan:(0,e.x)("Redsea"),hurricaneMilton:(0,e.x)("Hurricane Milton"),montrealCongestion:(0,e.x)("Montreal Congestion"),test:(0,e.x)("Test BSE"),usPortStrike:(0,e.x)("US Port Strike"),weatherEvent:(0,e.x)("Typhoon in Japan"),wildfireEvent:(0,e.x)("Wildfires in Australia")},N=Object.values(f),I=({label:j})=>N.includes(j);(0,e.x)("You have containers being rerouted due to the <strong>Red sea incident</strong>."),(0,e.x)("[[OV black swan event]] All orders related to the Black Swan Event test."),(0,e.x)('[[OV black swan event]] Japan has issued its highest level alert because hit by a strong typhoon. U.S. companies that source goods from Japan should expect shipment delays between 1 to 3 weeks. More than 50 key supplier factories for the electronics, automotive, semiconductor, and medical equipment industries have already shut down. Read more <a href="https://www.thescxchange.com/articles/10803-us-companies-could-see-delivery-delays-as-typhoon-shanshan-hits-japan" class="text-shippeo-500" target="_blank">here.</a>'),(0,e.x)("[[OV black swan event]] Major companies like automaker Toyota have closed factories due to a rare emergency warning for the slow-moving storm, saying it was expected to bring damaging flooding and landslides to the country\u2019s southernmost main island, with record rainfall expected."),(0,e.x)("[[OV black swan event]] Firefighters have been battling a major bushfire that started last Thursday in the region of Melbourne, and is not yet under control."),(0,e.x)("[[OV black swan event]] Firefighters have been battling a major bushfire that started last Thursday in the region of Melbourne, and is not yet under control."),(0,e.x)("[[OV black swan event]] Red-sea is avoided by the Shipping Lines due to risks of Huthi attacks."),(0,e.x)("[[OV black swan event]] Red-sea is avoided by the Shipping Lines due to risks of Huthi attacks."),(0,e.x)("[[OV black swan event]] Port strikes have shut down operations across the US East and Gulf Coasts, with dockworkers walking out indefinitely. This could affect your shipments and cause delays. We're actively monitoring the situation."),(0,e.x)("[[OV black swan event]] Members of the International Longshoremen Association (ILA) went on strike from 1st of October paralyzing container ports on the US East and Gulf Coasts."),(0,e.x)("[[OV black swan event]] Dangerous storm surge in Tampa Bay and setting the stage for potential mass evacuations less than two weeks after a catastrophic Hurricane Helene swamped the coastline."),(0,e.x)("[[OV black swan event]] Dangerous storm surge in Tampa Bay and setting the stage for potential mass evacuations less than two weeks after a catastrophic Hurricane Helene swamped the coastline."),(0,e.x)("[[OV black swan event]] The Port of Montreal is warning shippers about the risk of delays and a growing container backlog due to dockworkers refusing overtime work."),(0,e.x)("[[OV black swan event]] The port said in a statement Wednesday the delays would hit Montreal\u2019s four main terminals for international container services, along with other related facilities.");var l=r(48891);let v=(()=>{class j{transform(a){return(j=>I(j)?t.zH.Orange:j.color)(a)}static#e=this.\u0275fac=function(P){return new(P||j)};static#t=this.\u0275pipe=l.EJ8({name:"tagColor",type:j,pure:!0,standalone:!0})}return j})(),h=(()=>{class j{transform(a){return(j=>I(j)?"fire":j.permission===s.kt9.Private?"lock-closed":"user-group")(a)}static#e=this.\u0275fac=function(P){return new(P||j)};static#t=this.\u0275pipe=l.EJ8({name:"tagIcon",type:j,pure:!0,standalone:!0})}return j})();var C=r(44687);let M=(()=>{class j{constructor(){this.i18nService=(0,l.WQX)(C.W4)}transform(a){return I(a)?this.i18nService.instant(a.label):a.label}static#e=this.\u0275fac=function(P){return new(P||j)};static#t=this.\u0275pipe=l.EJ8({name:"tagLabel",type:j,pure:!0,standalone:!0})}return j})(),V=(()=>{class j{transform(a){return(j=>(0,e.x)(j.permission===s.kt9.Private?"Private":j.permission===s.kt9.SharedViewAndAssign?"Shared - View and assign":"Shared - View only"))(a)}static#e=this.\u0275fac=function(P){return new(P||j)};static#t=this.\u0275pipe=l.EJ8({name:"tagPermissionLabel",type:j,pure:!0,standalone:!0})}return j})()},33621:(fe,J,r)=>{"use strict";r.d(J,{Zf:()=>Q});var t=r(31635),e=r(47817),o=r(96704);r(84889);class i{constructor(){this.attributes=[]}update(X){return Object.assign(this,X)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],i.prototype,"actor",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],i.prototype,"agency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],i.prototype,"attributes",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],i.prototype,"chartered",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],i.prototype,"chartering",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],i.prototype,"createdAtTimestamp",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],i.prototype,"discussionComment",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],i.prototype,"documentCount",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],i.prototype,"generatedAt",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],i.prototype,"goods",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],i.prototype,"goodsRealQuantitiesStatus",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],i.prototype,"hasMultipairing",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],i.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],i.prototype,"isCharteredAtTourLevel",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],i.prototype,"isPairedAtTourLevel",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],i.prototype,"objectID",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],i.prototype,"orderActor",void 0),(0,t.Cg)([(0,e.deserializeAs)(o.rD),(0,t.Sn)("design:type",Array)],i.prototype,"orders",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],i.prototype,"owner",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],i.prototype,"pair",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],i.prototype,"reference",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],i.prototype,"startTimestamp",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],i.prototype,"status",void 0);class f{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],f.prototype,"agency",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],f.prototype,"permissions",void 0);class N{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],N.prototype,"isCharteredAtTourLevel",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],N.prototype,"owner",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",f)],N.prototype,"chartering",void 0);class I{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],I.prototype,"discussionComment",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],I.prototype,"documentCount",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],I.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],I.prototype,"reference",void 0);class R{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],R.prototype,"type",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],R.prototype,"priority",void 0);(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],class v{constructor(){this.incidents=[]}}.prototype,"incidents",void 0);var h=r(36287);class C{constructor(){this.tags=[]}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],C.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],C.prototype,"reference",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],C.prototype,"tags",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],C.prototype,"departure",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],C.prototype,"arrival",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],C.prototype,"transportMode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],C.prototype,"maritime",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],C.prototype,"canAddExternalEta",void 0);(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],class M{constructor(){this.orders=[]}}.prototype,"orders",void 0);var V=r(91181),j=function($){return $.Loading="LOADING",$.Unloading="UNLOADING",$}(j||{});class Y{}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Number)],Y.prototype,"priority",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],Y.prototype,"type",void 0);class a{constructor(){this.incidents=[]}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],a.prototype,"activity",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],a.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],a.prototype,"incidents",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],a.prototype,"reference",void 0);class P{constructor(){this.orders=[]}hasActivityLoading(){return this.orders.some(X=>X.activity===j.Loading)}hasActivityDelivery(){return this.orders.some(X=>X.activity===j.Unloading)}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],P.prototype,"completionState",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],P.prototype,"country",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],P.prototype,"hasRelevantNotification",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],P.prototype,"id",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],P.prototype,"isDriving",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],P.prototype,"isNextStop",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],P.prototype,"isNotStarted",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],P.prototype,"isSkipped",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],P.prototype,"name",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],P.prototype,"postalCode",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],P.prototype,"onSite",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Array)],P.prototype,"orders",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],P.prototype,"ownership",void 0),(0,t.Cg)([(0,e.deserializeAs)(h.h0C),(0,t.Sn)("design:type",Date)],P.prototype,"scheduledEndDate",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],P.prototype,"street",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],P.prototype,"timezone",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],P.prototype,"town",void 0);class u{constructor(){this.stopPoints=[]}}(0,t.Cg)([(0,e.deserializeAs)(P),(0,t.Sn)("design:type",Array)],u.prototype,"stopPoints",void 0);class z{constructor(){this.itineraries=[]}}(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],z.prototype,"agency",void 0),(0,t.Cg)([(0,e.deserializeAs)(u),(0,t.Sn)("design:type",Array)],z.prototype,"itineraries",void 0);class H{constructor(){this.chartered=[]}getRecentNextStopPoint(){return(this.chartered||[]).map(X=>X.itineraries.map(Z=>Z.stopPoints.find(He=>He.isNextStop))).flat().filter(X=>!!X).sort((X,Z)=>(0,V.b)(X.scheduledEndDate||0,Z.scheduledEndDate||0))[0]}getStopPoints(){return this.chartered?.flatMap(X=>X.itineraries.flatMap(Z=>Z.stopPoints))||[]}getIncidents(){return this.getStopPoints().flatMap(X=>X.orders.flatMap(Z=>Z.incidents)).filter(X=>!!X).sort((X,Z)=>X.priority-Z.priority).reduce((X,Z)=>(X.find(({type:L})=>Z.type===L)||X.push(Z),X),[])}}(0,t.Cg)([(0,e.deserializeAs)(z),(0,t.Sn)("design:type",Array)],H.prototype,"chartered",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],H.prototype,"hasMultipairing",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],H.prototype,"isArchived",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Boolean)],H.prototype,"isPairedAtTourLevel",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",Object)],H.prototype,"pair",void 0),(0,t.Cg)([e.deserialize,(0,t.Sn)("design:type",String)],H.prototype,"status",void 0);const Q={CANCELLED:"CANCELLED",FINISHED:"FINISHED",IN_PROGRESS:"IN_PROGRESS",NOT_STARTED:"NOT_STARTED",SKIPPED:"SKIPPED",UNCOMPLETED:"UNCOMPLETED",UNKNOW:"UNKNOW"}},67233:(fe,J,r)=>{"use strict";r.d(J,{qy:()=>R,TO:()=>X,y9:()=>_e,u5:()=>H,f_:()=>x,M7:()=>$,sT:()=>S.s,M:()=>d,D9:()=>Ge,Q$:()=>Me});var t=r(48891),e=r(70093),o=r(2233),s=r(4437),i=r(85710),p=r(47947),f=r(41483),N=r(71217);let A=(()=>{class oe{constructor(){this.loadScript$=new N.t([])}getLoadScript$(){return this.loadScript$}loadScriptList(w){const re=this.loadScript$.getValue().filter(le=>!w.some(({scriptName:Ae})=>le.scriptName===Ae));this.loadScript$.next([...re,...w])}loadScript(w,re=!1){const le=this.loadScript$.getValue().filter(Ae=>Ae.scriptName!==w);this.loadScript$.next([...le,{scriptName:w,triggerManually:re,shouldLoad:!0}])}removeScript(w,re=!1){const le=this.loadScript$.getValue().filter(Ae=>Ae.scriptName!==w);this.loadScript$.next([...le,{scriptName:w,triggerManually:re,shouldLoad:!1}])}static#e=this.\u0275fac=function(re){return new(re||oe)};static#t=this.\u0275prov=t.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),b=(()=>{class oe{constructor(){this.loadScriptAtInit=!1,this.triggerManually=!1,this.isInstalled=!1,this.isLoaded=!1,this.subscriptions=new i.yU,this.trackerStateService=(0,t.WQX)(A),this.loadScript$=this.trackerStateService.getLoadScript$()}ngOnDestroy(){this.subscriptions.unsubscribe()}init(w,re,le=!1){this.key=w,this.loadScriptAtInit=re,this.triggerManually=le,this.subscriptions.add(this.loadScript$.pipe((0,p.T)(Ae=>Ae.find(y=>y.scriptName===this.getScriptName()&&(!this.triggerManually||this.triggerManually&&y.triggerManually))),(0,f.p)(Ae=>!!Ae)).subscribe(({shouldLoad:Ae})=>{Ae&&!this.isInstalled?this.loadScript():!Ae&&this.isInstalled&&this.removeScript()})),this.loadScriptAtInit&&this.trackerStateService.loadScript(this.getScriptName())}loadScript(){this.beforeInstall(),this.script=this.install(),this.isInstalled=!0,this.script?(this.script.addEventListener("error",()=>{console.error(`Failed to load script: ${this.getScriptName()}`)}),this.script.addEventListener("load",()=>this.setAsLoaded())):this.setAsLoaded()}removeScript(){const w=document.getElementsByTagName("head")[0];w&&this.script&&w.removeChild(this.script),this.isInstalled=!1,this.isLoaded=!1}install(){if(!this.src)return;const w=document.createElement("script");return w.async=!0,w.src=this.src,document.getElementsByTagName("head")[0].appendChild(w),w}beforeInstall(){}postInstall(){}setAsLoaded(){this.isLoaded=!0,this.postInstall()}static#e=this.\u0275fac=function(re){return new(re||oe)};static#t=this.\u0275prov=t.jDH({token:oe,factory:oe.\u0275fac})}return oe})();class l{}let R=(()=>{class oe extends b{constructor(){super(...arguments),this.tick=new l,this.environment=(0,t.WQX)(o.O),this.versionService=(0,t.WQX)(s.IQ)}static setup(w,re=!0){return[oe,{key:w,loadScriptAtInit:re}]}init(w,re,le){super.init(w,re,le)}notify(w,re,le){this.isLoaded&&(le&&e.setUser(le),e.notify(w,{app:re}))}getScriptName(){return"Atatus"}beginTransaction(w,re){e&&e.beginTransaction(w),this.tick[w]=re&&{waitForTicks:re}||{}}addTickForTransaction(w,re){this.tick[w]&&(this.tick[w][re]||(this.tick[w][re]=0),this.tick[w][re]+=1)}removeTickForTransaction(w,re){if(this.tick[w]&&this.tick[w][re]>0){this.tick[w][re]-=1;const le=Object.keys(this.tick[w]).reduce((Ae,y)=>("waitForTicks"!==y&&0===this.tick[w][y]&&(Ae+=1),Ae),0);this.tick[w].waitForTicks&&this.tick[w].waitForTicks===le&&this.endTransaction(w)}}endTransaction(w){e&&e.endTransaction(w),delete this.tick[w]}failTransaction(w){e&&this.tick[w]&&(e.failTransaction(w),delete this.tick[w])}install(){this.subscriptions.add(this.versionService.getVersion().subscribe(w=>{e.config(this.key).setTags([this.environment.getProperty("APP_NAME"),this.environment.getProperty("PLATFORM"),w]).setVersion(w).install()}))}static#e=this.\u0275fac=(()=>{let w;return function(le){return(w||(w=t.xGo(oe)))(le||oe)}})();static#t=this.\u0275prov=t.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();var E=r(44687),h=r(1091),M=function(oe){return oe.CreateImport="/create/import",oe.CreateManualOrder="/create/manual-order",oe.InsightsCompliance="/insights/compliance",oe.InsightsPerformance="/insights/performance",oe}(M||{}),F=function(oe){return oe.ImportUpload="import/upload",oe.InsightsCompliance="insights/compliance",oe.InsightsPerformance="insights/performance",oe.OrdersCreate="orders/create",oe}(F||{}),V=r(36287),j=r(34133),Y=r(30593),a=r(30696),P=r(87344);const u=[{pageMapName:"homepage",pageMapType:"homepage",pageName:"/homepage"},{pageMapName:"preferences",pageMapType:"preferences",pageName:/preferences/},{pageMapName:"admin",pageMapType:"admin",pageName:/admin/},{pageMapName:"organization",pageMapType:"organization",pageName:/organization/},{pageMapName:"telematic-resource",pageMapType:"telematic-resource",pageName:/telematic-resource/},{pageMapName:"connection-type",pageMapType:"connection-type",pageName:/connection-type/},{pageMapName:"edi-connection",pageMapType:"edi-connection",pageName:/edi-connection/},{pageMapName:"onboarding-setup-completed",pageMapType:"onboarding-setup-completed",pageName:/onboarding-setup-completed/},{pageMapName:"telematic-connection",pageMapType:"telematic-connection",pageName:/telematic-connection/},{pageMapName:"setup-confirmation",pageMapType:"setup-confirmation",pageName:/setup-confirmation/},{pageMapName:"summary-telematic-pulling",pageMapType:"summary-telematic-pulling",pageName:/summary-telematic-pulling/},{pageMapName:"summary-telematic-unknown",pageMapType:"summary-telematic-unknown",pageName:/summary-telematic-unknown/},{pageMapName:"summary-edi",pageMapType:"summary-edi",pageName:/summary-edi/},{pageMapName:"smartphone-connection",pageMapType:"smartphone-connection",pageName:/smartphone-connection/},{pageMapName:"tour details",pageMapType:"tours",pageName:/tours\/\w+\/details/},{pageMapName:"ocean details",pageMapType:"orders",pageName:/ocean\/\w+\/details/},{pageMapName:"road details",pageMapType:"orders",pageName:/road\/\w+\/details/},{pageMapName:"compliance",pageMapType:"insights",pageName:"/insights/compliance"},{pageMapName:"performance",pageMapType:"insights",pageName:"/insights/performance"},{pageMapName:"performance-portal",pageMapType:"insights",pageName:"/insights/performance-portal"},{pageMapName:"public-link-access",pageMapType:"insights",pageName:"/insights/public-link-access"},{pageMapName:"notifications",pageMapType:"insights",pageName:"/insights/notifications"},{pageMapName:"delay-causes-analysis",pageMapType:"insights",pageName:"/insights/delay-causes-analysis"},{pageMapName:"delay-causes-workflow-usage",pageMapType:"insights",pageName:"/insights/delay-causes-workflow-usage"},{pageMapName:"why-tracking-analyzer",pageMapType:"insights",pageName:"/insights/why-tracking-analyzer"},{pageMapName:"ocean-milestone-completeness",pageMapType:"insights",pageName:"/insights/ocean-milestone-completeness"},{pageMapName:"ocean-lane-insights",pageMapType:"insights",pageName:"/insights/ocean-lane-insights"},{pageMapName:"ocean-demurrage-detention",pageMapType:"insights",pageName:"/insights/ocean-demurrage-detention"},{pageMapName:"ocean-real-time-demurrage-detention",pageMapType:"insights",pageName:"/insights/ocean-real-time-demurrage-detention"},{pageMapName:"ocean-port",pageMapType:"insights",pageName:"/insights/ocean-port"},{pageMapName:"ocean-csv-export",pageMapType:"insights",pageName:"/insights/ocean-csv-export"},{pageMapName:"status-completeness",pageMapType:"insights",pageName:"/insights/status-completeness"},{pageMapName:"otif",pageMapType:"insights",pageName:"/insights/otif"},{pageMapName:"carbon",pageMapType:"insights",pageName:"/carbon-visibility/carbon"},{pageMapName:"carbon-data-road-detailed",pageMapType:"insights",pageName:"/carbon-visibility/carbon-data-road-detailed"},{pageMapName:"carbon-data-road-completeness",pageMapType:"insights",pageName:"/carbon-visibility/carbon-data-road-completeness"},{pageMapName:"carbon-data-ocean-completeness",pageMapType:"insights",pageName:"/carbon-visibility/carbon-data-ocean-completeness"},{pageMapName:"carbon-data-ocean-detailed",pageMapType:"insights",pageName:"/carbon-visibility/carbon-data-ocean-detailed"}],z=[{pageMapName:"bo-homepage",pageMapType:"bo-homepage",pageName:"/home"},{pageMapName:"bo-organizations",pageMapType:"bo-organizations",pageName:"/organizations"},{pageMapName:"bo-organizations",pageMapType:"bo-organizations",pageName:"/organizations/new"},{pageMapName:"bo-organizations-id-agencies",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/agencies"},{pageMapName:"bo-organizations-id-users",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/users"},{pageMapName:"bo-organizations-id-users-edit",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/users/:id/edit"},{pageMapName:"bo-organizations-id-users-duplicate",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/users/:id/duplicate"},{pageMapName:"bo-organizations-id-users-conection-log",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/users/:id/log"},{pageMapName:"bo-organizations-id-mobile-fleet",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/driver-fleet/own-fleet"},{pageMapName:"bo-organizations-id-mobile-resource-edit",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/driver-fleet/:id/edit"},{pageMapName:"bo-organizations-id-telematic-fleet",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/telematic-fleet/own-fleet"},{pageMapName:"bo-organizations-id-telematic-fleet-positions",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/telematic-fleet/:id/positions"},{pageMapName:"bo-organizations-id-telematics",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/telematics"},{pageMapName:"bo-organizations-id-telematics-edit",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/telematics/:id/edit"},{pageMapName:"bo-organizations-id-places",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/places"},{pageMapName:"bo-organizations-id-places-edit",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/places/:id/edit"},{pageMapName:"bo-organizations-id-tags",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/tags"},{pageMapName:"bo-organizations-id-user-profile",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/user-profile"},{pageMapName:"bo-organizations-id-geo-fences",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/geo-fences"},{pageMapName:"bo-organizations-id-imports",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/import-table"},{pageMapName:"bo-organizations-id-packing-qualifier",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/packing-qualifier"},{pageMapName:"bo-organizations-id-quality-newsletter",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/newsletter-configurations"},{pageMapName:"bo-organizations-id-notifications",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/notifications"},{pageMapName:"bo-organizations-id-orders",pageMapType:"bo-organizations",pageName:"/organizations/:id/entities/orders"},{pageMapName:"bo-agencies",pageMapType:"bo-agencies",pageName:"/agencies"},{pageMapName:"bo-agencies",pageMapType:"bo-agencies",pageName:"/agencies"},{pageMapName:"bo-agencies-new",pageMapType:"bo-agencies",pageName:"/agencies/new"},{pageMapName:"bo-users",pageMapType:"bo-users",pageName:"/users"},{pageMapName:"bo-users-new",pageMapType:"bo-users",pageName:"/users/new"},{pageMapName:"bo-mobile-resources",pageMapType:"bo-mobile-resources",pageName:"/drivers"},{pageMapName:"bo-mobile-resources-new",pageMapType:"bo-mobile-resources",pageName:"/drivers/new"},{pageMapName:"bo-telematic-resources",pageMapType:"bo-telematic-resources",pageName:"/resources"},{pageMapName:"bo-telematic-resources-new",pageMapType:"bo-telematic-resources",pageName:"/resources/new"},{pageMapName:"bo-telematics",pageMapType:"bo-telematics",pageName:"/telematics"},{pageMapName:"bo-telematics-new",pageMapType:"bo-telematics",pageName:"/telematics/new"},{pageMapName:"bo-places",pageMapType:"bo-places",pageName:"/places"},{pageMapName:"bo-places-new",pageMapType:"bo-places",pageName:"/places/new"},{pageMapName:"bo-tags",pageMapType:"bo-tags",pageName:"/tags"},{pageMapName:"bo-tags-new",pageMapType:"bo-tags",pageName:"/tags/new"},{pageMapName:"bo-notifications",pageMapType:"bo-notifications",pageName:"/notifications"},{pageMapName:"bo-notifications-edit",pageMapType:"bo-notifications",pageName:"/notifications/:id/edit"},{pageMapName:"bo-order-debug",pageMapType:"bo-order-debug",pageName:"/order-debug"},{pageMapName:"bo-automation-create",pageMapType:"bo-automation-create",pageName:"/automation/create"},{pageMapName:"bo-packing-qualifier",pageMapType:"bo-packing-qualifier",pageName:"/packing-qualifier"},{pageMapName:"bo-packing-qualifier/new",pageMapType:"bo-packing-qualifier",pageName:"/packing-qualifier/new"},{pageMapName:"bo-packing-qualifier-edit",pageMapType:"bo-packing-qualifier",pageName:"/packing-qualifier/:id/edit"},{pageMapName:"bo-login",pageMapType:"bo-login",pageName:"/auth/login"}];let H=(()=>{class oe extends b{constructor(){super(...arguments),this.environment=(0,t.WQX)(o.O),this.router=(0,t.WQX)(j.Ix),this.userSessionService=(0,t.WQX)(a.hG),this.windowService=(0,t.WQX)(P.s)}static setup(w,re=!0){return[oe,{key:w,loadScriptAtInit:re}]}init(w,re,le){super.init(w,re,le)}sendEvent(w,re={},le=!1){const Ae={...re,event:w};this.isInstalled&&(!le||!this.dataLayer.find(y=>y.event===w&&Object.values(V.oQf).every(Le=>y[Le]===re[Le])))&&this.dataLayer.push(Ae)}getScriptName(){return"google_analytics"}install(){this.windowService.nativeWindow.dataLayer.push({event:"gtm.js","gtm.start":(new Date).getTime()});const w=document.getElementsByTagName("script")[0],re=document.createElement("script"),le=document.getElementsByTagName("head")[0],Ae=document.getElementsByTagName("body")[0];re.setAttribute("id","GA4scriptElement"),re.async=!0,re.src="https://www.googletagmanager.com/gtm.js?id="+this.key;const y=`<iframe src="https://www.googletagmanager.com/ns.html?id=${this.key}"\n    height="0" width="0" style="display:none;visibility:hidden"></iframe>`,Le=document.createElement("noscript");return Le.innerHTML=y,this.windowService.nativeWindow.document.getElementById("GA4scriptElement")||(le.insertBefore(re,w),Ae.appendChild(Le)),re}postInstall(){this.subscriptions.add(this.listenRouter())}beforeInstall(){this.windowService.nativeWindow.dataLayer=this.dataLayer,this.dataLayer.push({event:V.lB_.Global,"gtm.start":(new Date).getTime()}),this.src="https://www.googletagmanager.com/gtm.js?id="+this.key}get dataLayer(){return this.windowService.nativeWindow.dataLayer??[]}getPageAndSend(){const w=this.userSessionService.hasUserSession()?this.userSessionService.getUser():void 0,re=this.getPageNameAndType();if(!re)return;const le={...re,page_path:this.getPagePath(),user_id:w?.id,user_language:w?.language?.code,user_organization:w?.organization?.name,user_organization_id:w?.organization?.id,user_principal_agency:w?.getAgencies()[0]?.name,user_profile_name:w?.userProfile?.name,user_profile_type:w?.userProfile?.type?.toLowerCase()?.replaceAll("_"," ")},Ae=this.dataLayer.at(-1);(void 0===Ae?.page_path||void 0===le.page_path||Ae.page_path!==le.page_path)&&this.sendEvent(V.lB_.PageView,le)}getPagePath(){const w=this.environment.isBackOffice()?this.router.url.split("?")[0]:this.router.url.replace("/legacy#!/app/",""),re={[F.ImportUpload]:M.CreateImport,[F.InsightsCompliance]:M.InsightsCompliance,[F.InsightsPerformance]:M.InsightsPerformance,[F.OrdersCreate]:M.CreateManualOrder};return Object.keys(re).includes(w)?re[w]:w}getPageNameAndType(){let w;const re=this.environment.isBackOffice()?this.router.url.split("?")[0]:this.router.url.replace("/legacy#!/app/","");if(w=this.environment.isBackOffice()?z.find(le=>{if("string"==typeof le.pageName){const Ae=le.pageName.replaceAll(":id",".+").concat("$");if(new RegExp(Ae,"g").test(re))return le.pageName}}):u.find(le=>le.pageName instanceof RegExp?re.match(le.pageName):re===le.pageName),w)return{page_title:w.pageMapName,page_type:w.pageMapType};console.warn(`googleAnalytics4Service: no matching page mapping for "${re}"`)}listenRouter(){return this.router.events.pipe((0,f.p)(w=>w instanceof j.wF),(0,Y.Z)(void 0)).subscribe(()=>this.getPageAndSend())}static#e=this.\u0275fac=(()=>{let w;return function(le){return(w||(w=t.xGo(oe)))(le||oe)}})();static#t=this.\u0275prov=t.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),x=(()=>{class oe{constructor(w){this.googleAnalyticsTrackerService=w,this.appAnalyticsParams={}}clickEvent(w){w.stopPropagation(),this.appAnalytics&&this.googleAnalyticsTrackerService.sendEvent(this.appAnalytics,this.appAnalyticsParams)}static#e=this.\u0275fac=function(re){return new(re||oe)(t.rXU(H))};static#t=this.\u0275dir=t.FsC({type:oe,selectors:[["","appAnalytics",""]],hostBindings:function(re,le){1&re&&t.bIt("click",function(y){return le.clickEvent(y)})},inputs:{appAnalytics:"appAnalytics",appAnalyticsParams:"appAnalyticsParams"},standalone:!0})}return oe})();var Q=r(22867),O=r(54597);let $=(()=>{class oe extends b{constructor(){super(...arguments),this.supportedLanguageCodes=["en","fr","es","pt","it","de","jp","zh","sk"],this.i18nService=(0,t.WQX)(E.W4),this.userService=(0,t.WQX)(a.DL),this.userSessionService=(0,t.WQX)(a.hG),this.windowService=(0,t.WQX)(P.s)}static#e=this.jimoProjectId="JIMO_PROJECT_ID";static setup(w,re=!1){return[oe,{key:w,loadScriptAtInit:re}]}init(w,re,le){this.windowService.nativeWindow.jimo=[],this.windowService.nativeWindow[oe.jimoProjectId]=w,this.windowService.nativeWindow.JIMO_MANUAL_INIT=!0,w&&super.init(w,re,le)}getScriptName(){return"Jimo"}get jimoAPI(){return this.windowService.nativeWindow.jimo}beforeInstall(){this.src="//undercity.usejimo.com/jimo-invader.js"}postInstall(){this.setLanguage(),this.subscriptions.add(this.userSessionService.onLoaded().pipe((0,Q.n)(w=>this.getConnectionStats(w.getUser().id).pipe((0,p.T)(re=>({connectionStats:re,userSession:w}))))).subscribe(({connectionStats:w,userSession:re})=>this.initializeVariables(re.getUser(),w)))}getConnectionStats(w){return this.userService.getBrowserConnectionLogs(w).pipe((0,p.T)(re=>({isFirstConnection:1===re.length,lastConnectionDate:re[1]?(0,O.GP)(new Date(re[1].connectionDate),h.nY.Date):void 0,totalNumberConnections:re.totalItems})))}initializeVariables(w,re){this.setUser({accountOwner:w.isAccountOwner,browserHeight:this.windowService.nativeWindow.innerHeight,browserWidth:this.windowService.nativeWindow.innerWidth,cellphone:w.cellphone,connectionStatsIsFirstConnection:re.isFirstConnection,connectionStatsLastConnectionDate:re.lastConnectionDate,connectionStatsTotalNumberConnections:re.totalNumberConnections,countryCode:w.countryCode||"",email:w.email,firstname:w.firstname,id:w.id,lang:w.language.code,lastname:w.lastname,organizationId:w.organization.id,organizationName:w.organization.name,phone:w.phone,segment:this.hashIdIntoNumber(w.id),timezone:w.timezone.code,userProfileId:w.userProfile.id,userProfileIsReadOnly:w.userProfile.isReadOnly,userProfileName:w.userProfile.name,userProfileType:w.userProfile.type,username:w.username})}hashIdIntoNumber(w){let Ae=0;for(let y=0;y<w.length;y++)Ae=31*Ae+w.charCodeAt(y);return Math.abs(Ae%12)+1}setLanguage(){this.subscriptions.add(this.i18nService.getCurrentLanguage().pipe((0,p.T)(({code:w})=>this.supportedLanguageCodes.includes(w)?w:"en")).subscribe(w=>this.jimoAPI.push(["set","core:language",[w]])))}setUser(w){this.jimoAPI.push(["do","identify",[w.id,()=>{this.jimoAPI.push(["set","user:id",[w.id]]),this.jimoAPI.push(["set","user:email",[w.email]]),this.jimoAPI.push(["set","user:name",[w.firstname+" "+w.lastname]]),this.jimoAPI.push(["set","user:attributes",[w]])}]]),this.key&&this.windowService.nativeWindow.jimoInit()}static#t=this.\u0275fac=(()=>{let w;return function(le){return(w||(w=t.xGo(oe)))(le||oe)}})();static#i=this.\u0275prov=t.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();var X=function(oe){return oe.AdminRoles="NSA-2698",oe.AlgoliaSuperAdmin="ALGOLIA-89",oe.BlackSwanEvents="OV-1966",oe.BoGeofencingMode="RV-474",oe.BoOrderListNewTable="techfront-687",oe.CompanyEdiStepper="NSA-2328",oe.DisplayAllToursBookmark="TECHFRONT-698",oe.DisplayTelematicStatus="NSA-2154",oe.EtaPopover="RV-1457",oe.ExportDelegateFleetFrontOffice="NSA-2543",oe.FleetUpdateTelematicBo="NSA-2282",oe.FleetUpdateTelematicFo="NSA-2544",oe.HideItemOnBackOfficeMenu="NSA-1861",oe.HideUnusedOrderAlgoliaFilters="RV-1237",oe.HideUnusedTourAlgoliaFilters="RV-1269",oe.MobileOrderList="techfront-614",oe.ModalEdiFromScratch="NSA-3303",oe.NewOrderListPage="TECHFRONT-304",oe.NewToursListPage="techfront-622",oe.RemainingStops="RV-1949",oe.OacMobileApp="RV-2040",oe.OceanCargoSummary="OV-896-cargo-summary",oe.OceanCompletedTracking="OV-1824",oe.OceanDateInconsistencies="OV-1688",oe.OceanDeliveredMilestone="OV-1681",oe.OceanExport="NSA-2320",oe.OceanHomepageJimoDiscover="OV-1590",oe.OceanHomepageResetButton="OV-1591",oe.OceanExportLegacy="NSA-2420",oe.OceanNewDatePopover="OV-1923",oe.OceanPartialOTC="OV-1612",oe.OceanRoRo="OV-1936",oe.OceanTimelineMultipleInlands="OV-2128",oe.ReplayEvents="NSA-2989",oe.RoadExport="NSA-2209",oe.SalesDemoTechFront155="techfront-155-add-mock-means-on-the-global-map-for-sales-demo",oe.SetOrganizationPortfolios="NSA-2505",oe.ShippeoNotificationMenu="nsa-1135-q-2-create-new-section-shippeo-notification-on-the-bo",oe.SsoLoginBO="NSA-2010-bo",oe.SsoLoginFO="NSA-2010-fo",oe.SsoCheckLoginHint="nsa-2709",oe.TechFront441NewFilters="techfront-441-update-orders-legacy-page",oe.TelematicCredentials="ithb-428-check-credentials-user-launch-darkly-flag",oe.UpdateDelegatedFleetBo="NSA-2509",oe.UpdateDelegatedFleetFo="nsa-2674-afu-delegated-fleet",oe.ZendeskWidgetChat="TECHFRONT-722",oe}(X||{}),Z=r(18447),He=r(76627),L=r(66645),Ce=r(1703),ce=r(33325),me=r(52610);let _e=(()=>{class oe extends b{constructor(){super(...arguments),this.isReady$=new N.t(!1),this.isUserContextReady$=new N.t(!1),this.refresh$=new Z.B,this.flagUserPreference$=new N.t(new Map),this.flagUserPreference=new Map,this.environment=(0,t.WQX)(o.O),this.userSessionService=(0,t.WQX)(a.hG)}static setup(w,re=!0){return[oe,{key:w,loadScriptAtInit:re}]}ngOnDestroy(){this.isReady$.complete(),this.isUserContextReady$.complete(),this.refresh$.complete(),this.subscriptions.unsubscribe()}getFlagUserPreference(w){return this.flagUserPreference.get(w)??!0}getFlagUserPreference$(w){return this.flagUserPreference$.pipe((0,p.T)(()=>this.getFlagUserPreference(w)))}setFlagUserPreference(w,re){this.flagUserPreference.set(w,re),this.flagUserPreference$.next(this.flagUserPreference)}getFlag(w,re){return(0,He.z)([this.isReady$,this.isUserContextReady$]).pipe((0,f.p)(([le,Ae])=>le&&Ae),(0,Q.n)(()=>this.refresh$.pipe((0,Y.Z)(void 0))),(0,p.T)(()=>this.client.variation(w,re)),(0,L.F)())}getFlagSnapshot(w,re){return(0,He.z)([this.isReady$,this.isUserContextReady$]).pipe((0,f.p)(([le,Ae])=>le&&Ae),(0,p.T)(()=>this.client.variation(w,re)),(0,Ce.$)())}getFlagWithoutContextSnapshot(w,re){return this.isReady$.pipe((0,f.p)(le=>le),(0,p.T)(()=>this.client.variation(w,re)),(0,Ce.$)())}getScriptName(){return"launch_darkly"}updateMergeContext(w){return this.isReady$.pipe((0,f.p)(re=>re),(0,Q.n)(()=>(0,ce.H)(this.client.identify({...this.client.getContext(),...w}))))}resetContext(){return(0,ce.H)(this.client.identify(this.userContext))}beforeInstall(){this.src="https://unpkg.com/launchdarkly-js-client-sdk@3"}postInstall(){const w=this.environment.getProperty("LAUNCHDARKLY_API_URL"),re={baseUrl:w,allAttributesPrivate:!0,bootstrap:"localStorage",eventsUrl:w,sendEventsOnlyForVariation:!0,streamUrl:w};this.userContext={anonymous:!0,kind:"shippeo"},this.client=(0,me.n_)(this.environment.getProperty("LAUNCHDARKLY_CLIENT"),this.userContext,re),this.client.on("ready",()=>this.isReady$.next(!0)),this.client.on("change",()=>this.refresh$.next()),this.subscriptions.add(this.userSessionService.onLoaded().subscribe(le=>{const Ae=le.getUser();this.userContext={...this.userContext,email:Ae.email,firstName:Ae.firstname,key:Ae.id,lastName:Ae.lastname,name:Ae.username,organizationId:Ae.getOrganizationId()},this.client.identify(this.userContext).then(()=>this.isUserContextReady$.next(!0))}))}static#e=this.\u0275fac=(()=>{let w;return function(le){return(w||(w=t.xGo(oe)))(le||oe)}})();static#t=this.\u0275prov=t.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();const Me=oe=>()=>{const qe=(0,t.WQX)(j.Ix);return(0,t.WQX)(_e).getFlag(oe,!1).pipe((0,p.T)(re=>!!re||qe.createUrlTree(["/"])))},Ge=()=>(0,t.WQX)(_e).resetContext().pipe((0,p.T)(()=>!0));r(7046),r(12596);var S=r(70847),ue=r(24927);let d=(()=>{class oe extends b{constructor(){super(...arguments),this.googleAnalyticsTracker=(0,t.WQX)(H)}static setup(){return[oe,{key:"",loadScriptAtInit:!0}]}init(w,re,le){this.setupWebVitals(),super.init(w,re,le)}getScriptName(){return"Web-Vitals"}sendReport(w){this.googleAnalyticsTracker.sendEvent(V.lB_.WebVitals,{[V.oQf.WebVitalsName]:w.name,[V.oQf.WebVitalsObject]:w,[V.oQf.WebVitalsValue]:w.value})}setupWebVitals(){(0,ue.IN)(w=>this.sendReport(w)),(0,ue.zB)(w=>this.sendReport(w)),(0,ue.lt)(w=>this.sendReport(w)),(0,ue.rH)(w=>this.sendReport(w)),(0,ue.fK)(w=>this.sendReport(w)),(0,ue.Ck)(w=>this.sendReport(w))}static#e=this.\u0275fac=(()=>{let w;return function(le){return(w||(w=t.xGo(oe)))(le||oe)}})();static#t=this.\u0275prov=t.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();r(59536)},70847:(fe,J,r)=>{"use strict";r.d(J,{s:()=>s});var t=r(48891);function e(i,p){return i.reduce((f,[N,A])=>{const I=p.get(N);return I.init(A.key,A.loadScriptAtInit,A.triggerManually),[...f,I]},[])}var o=r(59536);let s=(()=>{class i{static forRoot(f){return{ngModule:i,providers:[{provide:o.R,useValue:f},{deps:[o.R,t.zZn],provide:o.l2,useFactory:e}]}}constructor(f){}static#e=this.\u0275fac=function(N){return new(N||i)(t.KVO(o.l2,8))};static#t=this.\u0275mod=t.$C({type:i});static#i=this.\u0275inj=t.G2t({})}return i})()},59536:(fe,J,r)=>{"use strict";r.d(J,{R:()=>o,l2:()=>s});var t=r(48891);const o=new t.nKC("Tracker"),s=new t.nKC("Injecting the Providers so it gets created eagerly")},69483:(fe,J,r)=>{"use strict";r.d(J,{iL:()=>Q,k7:()=>e,QN:()=>$,Kx:()=>N,tW:()=>l,VK:()=>h,XF:()=>C,H3:()=>V,AT:()=>j,kS:()=>o,_r:()=>s,ni:()=>i,ID:()=>me,rb:()=>F,VV:()=>a});var t=r(91167),e=function(_e){return _e.Centimeter="cm",_e.Meter="m",_e.Kilometer="km",_e.Inch="in",_e.Foot="ft",_e.Yard="yd",_e.Mile="mi",_e}(e||{}),o=function(_e){return _e.Imperial="Imperial",_e.Metric="Metric",_e.Custom="Custom",_e}(o||{}),s=function(_e){return _e.Imperial="Imperial",_e.Metric="Metrics",_e.Custom="Custom",_e}(s||{}),i=function(_e){return _e.Distance="distance",_e.Temperature="temperature",_e.Volume="volume",_e.Weight="weight",_e}(i||{});const p={factor:.01,label:e.Centimeter,name:(0,t.x)("Centimeters"),system:o.Metric,type:i.Distance},f={factor:1,label:e.Meter,name:(0,t.x)("Meters"),system:o.Metric,type:i.Distance},N={factor:1e3,label:e.Kilometer,name:(0,t.x)("Kilometers"),system:o.Metric,type:i.Distance},A={factor:.0254,label:e.Inch,name:(0,t.x)("Inches"),system:o.Imperial,type:i.Distance},I={factor:.3048,label:e.Foot,name:(0,t.x)("Feet"),system:o.Imperial,type:i.Distance},b={factor:.9144,label:e.Yard,name:(0,t.x)("Yards"),system:o.Imperial,type:i.Distance},l={factor:1609.34,label:e.Mile,name:(0,t.x)("Miles"),system:o.Imperial,type:i.Distance},R=[p,f,N,f,A,I,b,l];var v=function(_e){return _e.Celsius="C",_e.Fahrenheit="F",_e}(v||{});const h={factor:9,label:v.Celsius,name:"Celsius",system:o.Metric,type:i.Temperature},C={factor:5,label:v.Fahrenheit,name:"Fahrenheit",system:o.Imperial,type:i.Temperature},M=[h,C];var F=function(_e){return _e.CubicMeter="m\xb3",_e.CubicYard="cu yd",_e}(F||{});const V={factor:1,label:F.CubicMeter,name:(0,t.x)("Cubic meters"),system:o.Metric,type:i.Volume},j={factor:.764555,label:F.CubicYard,name:(0,t.x)("Cubic yards"),system:o.Imperial,type:i.Volume},Y=[V,j];var a=function(_e){return _e.Kilogram="kg",_e.Tonne="t",_e.Pound="lb",_e.Ton="T",_e}(a||{});const P={factor:1,label:a.Kilogram,name:(0,t.x)("Kilograms"),system:o.Metric,type:i.Weight},u={factor:1e3,label:a.Tonne,name:(0,t.x)("Tonnes"),system:o.Metric,type:i.Weight},z={factor:.453592,label:a.Pound,name:(0,t.x)("Pounds"),system:o.Imperial,type:i.Weight},H={factor:907.185,label:a.Ton,name:(0,t.x)("Tons"),system:o.Imperial,type:i.Weight},x=[P,u,z,H],Q=[{imperial:A,metric:p},{imperial:I,metric:f},{imperial:l,metric:N},{imperial:C,metric:h},{imperial:j,metric:V},{imperial:z,metric:P},{imperial:H,metric:u}],O=[...R,...Y,...x],$=[...R,...M,...Y,...x];class me{static getGreaterUnit(Me,Ge){return Ge===f&&Me>1e3?N:Ge===P&&Me>1e3?u:Ge===z&&Me>907.19?H:Ge===I&&Me>1609.34||Ge===b&&Me>1609.34?l:Ge}static convertFromUnitLabels(Me,Ge,Ue){const ze=[v.Celsius.toString(),v.Fahrenheit.toString()].includes(Ge),k=ze?M:O,We=k.find(({label:ue})=>ue===Ge),ve=k.find(({label:ue})=>ue===Ue),S="string"==typeof Me?parseFloat(Me):Me;try{return ze?me.convertTemperature(S,We,ve):me.convert(S,We,ve)}catch(ue){return console.error(ue),NaN}}static convert(Me,Ge,Ue){return me.validateConversion(Me,Ge,Ue),Me*Ge.factor/Ue.factor}static convertTemperature(Me,Ge,Ue){if(me.validateConversion(Me,Ge,Ue),Ge.type!==i.Temperature)throw Error("Unit is not a temperature unit");return Ge.label===v.Celsius?Me*Ge.factor/Ue.factor+32:(Me-32)*Ge.factor/Ue.factor}static validateConversion(Me,Ge,Ue){if("number"!=typeof Me)throw Error("Value is not a number");if(Ge?.type!==Ue?.type)throw Error("The two units have not the same type");if(!Ge?.factor||!Ue?.factor)throw Error("Unit has no factor")}}},39120:(fe,J,r)=>{"use strict";r.d(J,{z:()=>t,_:()=>o});class t{constructor(i){this.appVersion=i.appVersion,this.browser=`${i.browserName}  ${i.browserVersion}`,this.browserName=i.browserName,this.browserVersion=i.browserVersion,this.connectionDate=new Date(i.connectionDate),this.device=i.model,this.deviceUuid=i.uuid,this.id=i.id,this.ipAddress=i.ipAddress,this.model=i.model,this.os=`${i.osName}  ${i.osVersion}`,this.osName=i.osName,this.osVersion=i.osVersion,this.uuid=i.uuid}static create(i){return new t(i)}}var e=r(6134);class o{constructor(i,p){this.user=i,this.settings=p}static createUserSession(i,p){return new o(i,p)}getActiveFeatures(){return this.user.hasAgencies()?[...this.user.getActiveFeatures(),...this.user.getAgenciesFeatures()]:[...this.user.getActiveFeatures()]}getAddressSetting(){return this.settings.find(i=>i instanceof e.nj)}getDateTimeFormatSetting(){return this.settings.find(i=>i instanceof e.Le)}getMetricSetting(){return this.settings.find(i=>i instanceof e.j1)}getWeightSetting(){return this.settings.find(i=>i instanceof e.h8)}getTemperatureSetting(){return this.settings.find(i=>i instanceof e.Hh)}getDistanceSetting(){return this.settings.find(i=>i instanceof e.sN)}getVolumeSetting(){return this.settings.find(i=>i instanceof e.P4)}getGlobalMapPageSetting(){return this.settings.find(i=>i instanceof e.es)}getHomePageSetting(){return this.settings.find(i=>i instanceof e.rV)}getOrderDetailsLandingSetting(){const i=this.settings.find(p=>p instanceof e.Af);return i.getValue()===e.M_.Map&&i.setValue(i.getDefaultValue()),i}getOrganization(){return this.user.organization}getOrganizationFeatureNames(){return this.user.getOrganizationFeatureNames()}getOrganizationId(){return this.user.organization.id}getRoleName(){return this.user.getRoleName()}getToursPageSetting(){return this.settings.find(i=>i instanceof e.L)}getToursPageSettingUrl(){return(this.getToursPageSetting().getValue()??"tours.orders").replace(".","/")}getUser(){return this.user}getUserLang(){return this.user.language}}},87593:(fe,J,r)=>{var t={"./flag/br.svg":11266,"./flag/de.svg":4319,"./flag/en.svg":94427,"./flag/es.svg":23470,"./flag/fr.svg":34758,"./flag/it.svg":78845,"./flag/nl.svg":84584,"./flag/pl.svg":14138,"./flag/pt.svg":15794,"./flag/sprite-flag.dbb73032960e3aa1f108c2fe64c555ec.svg":38258,"./line/adjustments-vertical.svg":93513,"./line/anchor.svg":52829,"./line/arrow-right.svg":77080,"./line/arrow-up-down.svg":26690,"./line/arrow-up.svg":48405,"./line/arrow-uturn-left.svg":78856,"./line/arrows-pointing-in.svg":68401,"./line/arrows-pointing-out.svg":57216,"./line/bell.svg":14081,"./line/briefcase.svg":49886,"./line/building-office.svg":51563,"./line/calendar-days.svg":94080,"./line/calendar.svg":92800,"./line/chat-bubble-bottom-center-text.svg":30527,"./line/chat-bubble-left-right.svg":65626,"./line/chat-bubble-left.svg":12283,"./line/chat.svg":71360,"./line/check-circle.svg":50711,"./line/check.svg":30090,"./line/chevron-code.svg":47755,"./line/chevron-left.svg":24127,"./line/chevron-right.svg":97530,"./line/clipboard-copy.svg":49226,"./line/clipboard-list.svg":2997,"./line/clock.svg":13552,"./line/close.svg":27654,"./line/cloud-arrow-down.svg":53418,"./line/cloud-arrow-up.svg":30937,"./line/compliance.svg":92347,"./line/container.svg":95975,"./line/credit-card.svg":2080,"./line/cube-transparent.svg":59012,"./line/cube.svg":72921,"./line/currency-euro.svg":44867,"./line/cursor-click.svg":75343,"./line/dashboard.svg":55258,"./line/database.svg":85377,"./line/delay-perf.svg":5845,"./line/delay-usage.svg":10201,"./line/device-mobile.svg":64419,"./line/document-download.svg":70454,"./line/document-duplicate.svg":66185,"./line/document-search.svg":44734,"./line/dots-vertical.svg":27761,"./line/double-vertical-dots.svg":93217,"./line/duplicate.svg":81533,"./line/exclamation-circle.svg":61818,"./line/exclamation.svg":63501,"./line/external-link.svg":59280,"./line/eye.svg":77445,"./line/fire.svg":30110,"./line/flag.svg":46288,"./line/fridge.svg":59705,"./line/globe-alt.svg":58195,"./line/hand.svg":62177,"./line/hashtag.svg":62166,"./line/help.svg":26843,"./line/hierarchy.svg":47595,"./line/home.svg":83915,"./line/import.svg":29169,"./line/in-progress.svg":50077,"./line/information-circle.svg":66029,"./line/language.svg":46460,"./line/lightning-bolt.svg":58092,"./line/link.svg":21938,"./line/load-timeout.svg":45956,"./line/location-map.svg":42426,"./line/logout.svg":85016,"./line/mail.svg":24663,"./line/map-pin.svg":1474,"./line/map-union.svg":10786,"./line/menu.svg":73323,"./line/microphone.svg":42390,"./line/not-paired.svg":69729,"./line/not-started.svg":45193,"./line/orders.svg":36877,"./line/organization.svg":71563,"./line/outsize.svg":42057,"./line/package.svg":9402,"./line/pallet.svg":89080,"./line/paper-clip.svg":94075,"./line/parcel.svg":29877,"./line/pause-circle.svg":14853,"./line/pencil-alt.svg":4155,"./line/pencil.svg":53318,"./line/performance.svg":63672,"./line/plane.svg":89568,"./line/play-circle.svg":30173,"./line/plus-circle copy.svg":182,"./line/plus-circle.svg":76443,"./line/plus.svg":47070,"./line/rectangle-stack.svg":36954,"./line/refresh.svg":79743,"./line/return-packing.svg":11378,"./line/rss.svg":4398,"./line/search.svg":58410,"./line/selector.svg":21625,"./line/settings.svg":61449,"./line/share.svg":63807,"./line/shield-check.svg":1766,"./line/sidebar-arrow-left.svg":7380,"./line/sidebar-arrow-right.svg":53371,"./line/sprite-line.dbb73032960e3aa1f108c2fe64c555ec.svg":66170,"./line/star.svg":57546,"./line/status-online.svg":1728,"./line/table-cells.svg":31398,"./line/tag.svg":33690,"./line/template.svg":93552,"./line/timeline.svg":27007,"./line/tours.svg":83,"./line/train.svg":76964,"./line/trash.svg":63780,"./line/truck.svg":18475,"./line/unknow.svg":60606,"./line/user-circle.svg":62568,"./line/user-group.svg":9525,"./line/user-outline.svg":28926,"./line/users.svg":70402,"./line/van.svg":157,"./line/variable.svg":43302,"./line/vessel.svg":67500,"./line/x-circle.svg":1963,"./solid/archive.svg":87173,"./solid/arrow-circle-right.svg":40376,"./solid/arrow-down-on-square.svg":35879,"./solid/arrow-up-on-square.svg":78420,"./solid/arrows-expand.svg":88592,"./solid/arrows-pointing-in.svg":18354,"./solid/awaiting-pairing.svg":18688,"./solid/barge.svg":43624,"./solid/bars-2.svg":15038,"./solid/bell.svg":83786,"./solid/boat-sea.svg":7061,"./solid/building-office.svg":326,"./solid/calendar.svg":28191,"./solid/chat-bubble-left-right.svg":69529,"./solid/chat.svg":61923,"./solid/check-circle.svg":42320,"./solid/check.svg":86163,"./solid/chevron-code.svg":90724,"./solid/chevron-down.svg":15903,"./solid/chevron-left.svg":88608,"./solid/chevron-right.svg":38511,"./solid/chevron-up.svg":28912,"./solid/clipboard-list.svg":42558,"./solid/cog.svg":18022,"./solid/container-crane.svg":75194,"./solid/cube-transparent.svg":8843,"./solid/database.svg":83326,"./solid/delay-towards.svg":99721,"./solid/delivered.svg":28527,"./solid/delivery-refused.svg":29730,"./solid/delivery-site.svg":82295,"./solid/device-mobile.svg":58950,"./solid/document-duplicate.svg":39562,"./solid/dot.svg":35598,"./solid/duplicate.svg":78344,"./solid/edi.svg":78759,"./solid/eta.svg":59231,"./solid/exclamation-circle.svg":50837,"./solid/exclamation-triangle.svg":31937,"./solid/exclamation.svg":15240,"./solid/export-insights.svg":17495,"./solid/eye-off.svg":27980,"./solid/eye.svg":94632,"./solid/filter.svg":81579,"./solid/fire.svg":17745,"./solid/flag.svg":42691,"./solid/globe.svg":18452,"./solid/ground.svg":54600,"./solid/home.svg":79452,"./solid/hourglass.svg":58221,"./solid/information-circle.svg":71142,"./solid/is-typing.svg":85071,"./solid/is-typing.svg.svg":85071,"./solid/lane-insight.svg":33956,"./solid/late.svg":69049,"./solid/leaf.svg":58177,"./solid/loaded.svg":54218,"./solid/loading-refused.svg":75796,"./solid/loading-site.svg":78117,"./solid/location-bottom.svg":58120,"./solid/location-left.svg":59418,"./solid/location-right.svg":78033,"./solid/location-top.svg":29682,"./solid/lock-closed.svg":65961,"./solid/locked-container.svg":73641,"./solid/locked-time.svg":75423,"./solid/mail.svg":67664,"./solid/map-pin.svg":46047,"./solid/map.svg":88965,"./solid/maximise.svg":46632,"./solid/minus-circle.svg":62308,"./solid/minus.svg":93703,"./solid/no-position.svg":36144,"./solid/not-paired.svg":26842,"./solid/off-site.svg":73376,"./solid/on-time.svg":98828,"./solid/paired.svg":76434,"./solid/parcel-alert.svg":13611,"./solid/parcel-clock.svg":8335,"./solid/parcel-refused.svg":56009,"./solid/parcel-validated.svg":15519,"./solid/pencil-alt.svg":51096,"./solid/pencil.svg":63290,"./solid/pending-pairing.svg":57025,"./solid/plane.svg":57373,"./solid/plus-circle.svg":94182,"./solid/plus.svg":11721,"./solid/question-mark-circle.svg":57214,"./solid/ruler.svg":15419,"./solid/search.svg":12101,"./solid/share.svg":42762,"./solid/shield-check.svg":28529,"./solid/smart-tracking.svg":45982,"./solid/sprite-solid.dbb73032960e3aa1f108c2fe64c555ec.svg":19550,"./solid/star.svg":70841,"./solid/tag.svg":61783,"./solid/towards.svg":82671,"./solid/train.svg":19709,"./solid/truck.svg":2398,"./solid/upload.svg":37366,"./solid/user-circle.svg":71857,"./solid/user-group.svg":64894,"./solid/user.svg":15428,"./solid/users.svg":66223,"./solid/van.svg":82024,"./solid/vessel-check.svg":7188,"./solid/vessel-time.svg":38583,"./solid/vessel.svg":99379,"./solid/weight.svg":67185,"./solid/x-circle.svg":45812,"./solid/x.svg":32631};function e(s){var i=o(s);return r(i)}function o(s){if(!r.o(t,s)){var i=new Error("Cannot find module '"+s+"'");throw i.code="MODULE_NOT_FOUND",i}return t[s]}e.keys=function(){return Object.keys(t)},e.resolve=o,fe.exports=e,e.id=87593},92130:()=>{}},fe=>{fe.O(0,[4121],()=>fe(fe.s=67607)),fe.O()}]);