webpackJsonp([0],[function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(404),o=i(r),u=n(1272),a=i(u),c=angular.module("common.utils.component",[o["default"]]);c.service("component",a["default"]),t.module=c,t["default"]="common.utils.component"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ACCOUNT_ACTIVATED:"activated",ACTION:"action",ACTIVATION_ID:"activationId",ADDRESS_KEY:"key",ASSIGNED_SHIPMENT:"assignedShipment",ASSIGNEE_NAME:"assigneeName",B2L_SHIPMENT:"b2lShipment",RB_SHIPMENT:"rbShipment",MODULE_KEY:"moduleKey",BUSINESS_TRANSACTION_ID:"btid",COLLECTION:"collection",CONTACT_FROM_COUNTRY:"fromCountry",CONTACT_FROM_KEY:"fromContactKey",CONTACT_INFO_COLLECTION:"collection",CONTACT_INFO_KEY:"key",CONTACT_INFO_MODE:"mode",CONTACT_INFO_UNSAVED_SECTIONS:"unsaved_sections",CONTACT_TO_COUNTRY:"toCountry",CONTACT_TO_KEY:"toContactKey",COPIED_SHIPMENT_ID:"copiedShipmentId",COUNTRY_CODE:"countryCode",CTE_OPTION:"cteOption",DASHBOARD_PICKUP:"dashboardPickup",ERROR:"error",EXTERNAL_ACCESS_LINK_KEY:"linkKey",EXTERNAL_ACCESS_LINK_TYPE:"linkType",IS_ONE_CLICK_SHIPMENT:"isOneClickShipment",IS_GST_DATA_ENABLED:"isGstDataEnabled",IS_STANDALONE_RETURN:"isStandAloneReturn",SHIPMENT_TYPE_FILTER:"shipmentTypeFilter",LOGOUT:"logout",MAILING_LIST_ID:"mailingListId",MODAL_MESSAGE_ID:"messageId",NEED_APPROVAL:"needApproval",PICKUP_ID:"pickupId",PROCEED_TO_ASSIGN:"proceedToAssign",DECLINE_SHIPMENT:"declineShipment",RETURN_SHIPMENT_ID:"returnShipmentId",FROM_EXTERNAL_PAYMENT:"fromExternalPayment",SCENARIO:"scenario",SECTION:"section",SHIPMENT_ID:"shipmentId",SHIPMENT_STATUS_CHECKOUT_ID:"hostedCheckoutId",SHIPMENT_STATUS_MESSAGE:"msg",STATUS:"status",STATUS_FILTERS:"statusFilters",TEMPORARY_ID:"temporaryId",TOKEN:"token",WCM_MODE:"wcmmode",SHIPMENT_FROM_DASHBOARD:"shipmentFromDashboard",SHIPMENT_IS_GLOBAL_MAIL:"shipmentIsGlobalMail",IS_RECEIVER_CONTACT_GLOBAL_MAIL_DUPLICATE:"isReceiverContactGlobalMailDuplicate",EDIT_GLOBAL_MAIL_CONTACT:"editGlobalMail",PICKUP_BOOKING_FAILURE_KEY:"pickupBookingFailureKey",COMPLETE_SHIPMENT_ACTION:"completeAction",SSO:"sso",SSO_ID:"ssoId",SSO_CODE:"code",SSO_STATE:"state",SSO_ERROR:"ssoError",LINK:"link",ORIGINATOR:"originator",AUTO_REDIRECT:"autoredirect",SEARCH_TERM:"searchTerm",IS_QUICK_LINK:"isQuickLink",IS_SHIPMENT_EDIT_MODE:"isShipmentEditMode",UUID:"uuid"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1153),o=i(r),u=n(1154),a=i(u),c=n(1155),s=i(c),l=n(1156),d=i(l),f=n(1157),p=i(f),m=n(1158),_=i(m),g=n(1160),E=i(g),S=n(1161),C=i(S),h=n(1162),I=i(h),A=n(1164),v=i(A),N=n(1166),T=i(N),M=n(1167),y=i(M),D=n(1168),O=i(D),P=n(1169),b=i(P),R=n(1171),L=i(R),G=n(1172),U=i(G),F=n(1173),w=i(F),k=n(1175),j=i(k),V=n(1176),B=i(V),$=n(1177),x=i($),H=n(1178),Y=i(H),K=n(1179),W=i(K),q=n(1180),z=i(q),X=n(1181),Q=i(X),Z=n(1182),J=i(Z),ee=n(1183),te=i(ee),ne=n(1184),ie=i(ne),re=n(1185),oe=i(re),ue=n(1186),ae=i(ue),ce=n(1187),se=i(ce),le=n(1188),de=i(le),fe=n(1189),pe=i(fe),me=n(901),_e=i(me),ge=n(1190),Ee=i(ge),Se=n(1191),Ce=i(Se),he=n(1192),Ie=i(he),Ae=n(1193),ve=i(Ae),Ne=n(1194),Te=i(Ne),Me=n(1195),ye=i(Me),De=n(1196),Oe=i(De),Pe=n(1197),be=i(Pe),Re=n(1198),Le=i(Re),Ge=n(1199),Ue=i(Ge),Fe=n(1201),we=i(Fe),ke=n(1202),je=i(ke),Ve=n(1203),Be=i(Ve),$e=n(1204),xe=i($e),He=n(1205),Ye=i(He),Ke=n(1206),We=i(Ke),qe=n(1208),ze=i(qe),Xe=n(1209),Qe=i(Xe),Ze=n(1210),Je=i(Ze),et=n(1211),tt=i(et),nt=n(1212),it=i(nt),rt=n(1213),ot=i(rt),ut=n(1214),at=i(ut),ct=n(1215),st=i(ct),lt=n(1216),dt=i(lt),ft=n(1217),pt=i(ft),mt=n(1218),_t=i(mt),gt=n(1222),Et=i(gt),St=n(1223),Ct=i(St),ht=n(1224),It=i(ht),At=n(1225),vt=i(At),Nt=n(1226),Tt=i(Nt),Mt=n(1227),yt=i(Mt),Dt=n(1229),Ot=i(Dt),Pt=n(1230),bt=i(Pt),Rt=n(1231),Lt=i(Rt),Gt=n(1232),Ut=i(Gt),Ft=n(1234),wt=i(Ft),kt=n(1235),jt=i(kt),Vt=n(1236),Bt=i(Vt),$t=n(1237),xt=i($t),Ht=n(1238),Yt=i(Ht),Kt=n(1239),Wt=i(Kt),qt=n(1240),zt=i(qt),Xt=n(1241),Qt=i(Xt),Zt=n(1242),Jt=i(Zt),en=n(1243),tn=i(en),nn=n(1244),rn=i(nn),on=n(1245),un=i(on),an=n(1246),cn=i(an),sn=n(1247),ln=i(sn),dn=n(1248),fn=i(dn),pn=n(1249),mn=i(pn),_n=n(1250),gn=i(_n),En=n(1251),Sn=i(En),Cn=n(1252),hn=i(Cn),In=n(1253),An=i(In),vn=n(1254),Nn=i(vn),Tn=n(1255),Mn=i(Tn),yn=n(1256),Dn=i(yn),On=n(1257),Pn=i(On),bn=n(1258),Rn=i(bn),Ln=n(1260),Gn=i(Ln),Un=n(1261),Fn=i(Un),wn=n(1262),kn=i(wn),jn=n(1263),Vn=i(jn),Bn=n(1264),$n=i(Bn),xn=n(1265),Hn=i(xn),Yn=n(1266),Kn=i(Yn),Wn=n(1267),qn=i(Wn),zn=n(454),Xn=i(zn),Qn=n(404),Zn=i(Qn),Jn=n(0),ei=i(Jn),ti=n(10),ni=i(ti),ii=n(1278),ri=i(ii),oi=n(139),ui=i(oi),ai=n(1293),ci=i(ai),si=n(1321),li=i(si),di=n(1324),fi=i(di),pi=n(1327),mi=i(pi),_i=n(1329),gi=i(_i),Ei=n(82),Si=i(Ei),Ci=n(33),hi=i(Ci),Ii=n(933),Ai=i(Ii),vi=angular.module("common.utils",["ngStorage",Si["default"],Be["default"],hi["default"],ci["default"],mi["default"],ni["default"],Xn["default"],ri["default"],ui["default"],li["default"],fi["default"],gi["default"],qn["default"],ei["default"],Zn["default"],Ai["default"]]);t.module=vi,t["default"]="common.utils",vi.directive(o["default"].NG_NAME,o["default"]).directive(a["default"].NG_NAME,a["default"]).directive(s["default"].NG_NAME,s["default"]).directive(d["default"].NG_NAME,d["default"]).directive(p["default"].NG_NAME,p["default"]).directive(_["default"].NG_NAME,_["default"]).directive(E["default"].NG_NAME,E["default"]).directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]).directive(v["default"].NG_NAME,v["default"]).directive(T["default"].NG_NAME,T["default"]).directive(y["default"].NG_NAME,y["default"]).directive(O["default"].NG_NAME,O["default"]).directive(b["default"].NG_NAME,b["default"]).directive(L["default"].NG_NAME,L["default"]).directive(U["default"].NG_NAME,U["default"]).directive(Ue["default"].NG_NAME,Ue["default"]).directive(we["default"].NG_NAME,we["default"]).directive(yt["default"].NG_NAME,yt["default"]).directive(je["default"].NG_NAME,je["default"]).directive(ot["default"].NG_NAME,ot["default"]).directive(bt["default"].NG_NAME,bt["default"]).directive(jt["default"].NG_NAME,jt["default"]).directive(Bt["default"].NG_NAME,Bt["default"]).directive(xt["default"].NG_NAME,xt["default"]).directive(Wt["default"].NG_NAME,Wt["default"]).directive(Qt["default"].NG_NAME,Qt["default"]).directive(Jt["default"].NG_NAME,Jt["default"]).directive(mn["default"].NG_NAME,mn["default"]).directive(An["default"].NG_NAME,An["default"]).directive(Lt["default"].NG_NAME,Lt["default"]).directive(Ut["default"].NG_NAME,Ut["default"]).directive(Nn["default"].NG_NAME,Nn["default"]).directive(Mn["default"].NG_NAME,Mn["default"]).service(Tt["default"].NG_NAME,Tt["default"]).service(w["default"].NG_NAME,w["default"]).service(j["default"].NG_NAME,j["default"]).service(B["default"].NG_NAME,B["default"]).service(x["default"].NG_NAME,x["default"]).service(Y["default"].NG_NAME,Y["default"]).service(W["default"].NG_NAME,W["default"]).service(z["default"].NG_NAME,z["default"]).service(Q["default"].NG_NAME,Q["default"]).service(J["default"].NG_NAME,J["default"]).service(te["default"].NG_NAME,te["default"]).service(ie["default"].NG_NAME,ie["default"]).service(oe["default"].NG_NAME,oe["default"]).service(ae["default"].NG_NAME,ae["default"]).service(se["default"].NG_NAME,se["default"]).service(de["default"].NG_NAME,de["default"]).service(pe["default"].NG_NAME,pe["default"]).service(_e["default"].NG_NAME,_e["default"]).service(Ee["default"].NG_NAME,Ee["default"]).service(Ce["default"].NG_NAME,Ce["default"]).service(Ie["default"].NG_NAME,Ie["default"]).service(ve["default"].NG_NAME,ve["default"]).service(Te["default"].NG_NAME,Te["default"]).service(ye["default"].NG_NAME,ye["default"]).service(Oe["default"].NG_NAME,Oe["default"]).service(be["default"].NG_NAME,be["default"]).service(xe["default"].NG_NAME,xe["default"]).service(Ye["default"].NG_NAME,Ye["default"]).service(We["default"].NG_NAME,We["default"]).service(ze["default"].NG_NAME,ze["default"]).service(Qe["default"].NG_NAME,Qe["default"]).service(Je["default"].NG_NAME,Je["default"]).service(tt["default"].NG_NAME,tt["default"]).service(it["default"].NG_NAME,it["default"]).service(st["default"].NG_NAME,st["default"]).service(dt["default"].NG_NAME,dt["default"]).provider(at["default"].NG_NAME,at["default"]).service(pt["default"].NG_NAME,pt["default"]).service(_t["default"].NG_NAME,_t["default"]).service(Et["default"].NG_NAME,Et["default"]).service(Ct["default"].NG_NAME,Ct["default"]).service(It["default"].NG_NAME,It["default"]).service(vt["default"].NG_NAME,vt["default"]).service(Ot["default"].NG_NAME,Ot["default"]).service(wt["default"].NG_NAME,wt["default"]).service(Yt["default"].NG_NAME,Yt["default"]).service(zt["default"].NG_NAME,zt["default"]).service(tn["default"].NG_NAME,tn["default"]).service(rn["default"].NG_NAME,rn["default"]).service(un["default"].NG_NAME,un["default"]).service(cn["default"].NG_NAME,cn["default"]).service(ln["default"].NG_NAME,ln["default"]).service(fn["default"].NG_NAME,fn["default"]).service(gn["default"].NG_NAME,gn["default"]).service(Sn["default"].NG_NAME,Sn["default"]).service(hn["default"].NG_NAME,hn["default"]).service(Dn["default"].NG_NAME,Dn["default"]).service(Pn["default"].NG_NAME,Pn["default"]).service(Rn["default"].NG_NAME,Rn["default"]).service(Gn["default"].NG_NAME,Gn["default"]).service(Fn["default"].NG_NAME,Fn["default"]).service(kn["default"].NG_NAME,kn["default"]).service(Vn["default"].NG_NAME,Vn["default"]).service($n["default"].NG_NAME,$n["default"]).service(Hn["default"].NG_NAME,Hn["default"]).service(Kn["default"].NG_NAME,Kn["default"]).config(Le["default"])},,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ANDORRA:"AD",BRAZIL:"BR",CHINA:"CN",GERMANY:"DE",GREAT_BRITAIN:"GB",INDIA:"IN",ITALY:"IT",ISRAEL:"IL",UKRAINE:"UA",UNITED_STATES:"US"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DHL_ACCOUNT:"DHL_ACCOUNT",ALTERNATE_DHLACCOUNT:"ALTERNATE_DHLACCOUNT",ONLINE_PAYMENT:"ONLINE_PAYMENT",CASH:"CASH",RECEIVER_WILL_PAY:"RECEIVER_WILL_PAY"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={CANCELLED:0,OK:200,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,REQUEST_TIMEOUT:408,CONFLICT:409,PRECONDITION_FAILED:412,PAYLOAD_TOO_LARGE:413,EXPECTATION_FAILED:417,UNPROCESSABLE_ENTITY:422,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,NOT_ENOUGH_DATA:513}},function(e,t,n){"use strict";t.__esModule=!0;var i=angular.injector(["ng"]).get("$window"),r={addModule:function(){function e(e){i.bootModules=i.bootModules||[],i.bootModules.includes(e)||i.bootModules.push(e)}return e}()};t["default"]=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(e){return e.loadTemplate("/ng-template/shipment/print-complete.html")}function i(e,t,n){var i=t.initInvoiceState(e);return n.applySpinner(i)}function r(e){return e.loadTemplate("components/shipment/edit-invalid-uploaded-line-items.html")}function o(e,t){return e.get("shipment-type-references.html")||t.loadNgTemplates("/ng-template/shipment/assign-basic-templates.html","shipment-lazy-load")}n.$inject=["lazyLoadService"],i.$inject=["models","enhancedInvoiceStateService","spinnerService"],r.$inject=["lazyLoadService"],o.$inject=["$templateCache","lazyLoadService"],e.when("","/").otherwise("/"),t.state(_.SHIPMENT,{"abstract":!0,templateUrl:"shipment-abstract.html"}).state(_.CREATE_SHIPMENT,{url:"/?"+Object.keys(m).join("&"),params:{internalNavigation:!1},resolve:{triggerTrustEvInitialization:function(){function e(e){e.preloadTrustEv()}return e.$inject=["trustEvService"],e}(),whoAmI:function(){function e(e){return e.whoAmI()}return e.$inject=["userService"],e}(),isNfeEntryOnly:function(){function e(e,t){return!!e.identityType&&t.isNfeEntryOnly()}return e.$inject=["whoAmI","nfeEntryOnlyService"],e}()},views:{"":{templateProvider:function(){function e(e,t,n){var i=n?p.NFE_ENTRY_ONLY:p[t.personaType]||p.GUEST;return e.fromUrl(i)}return e.$inject=["$templateFactory","whoAmI","isNfeEntryOnly"],e}()}}}).state(_.SHIPMENT_STATUS,{url:"/status",templateUrl:"components/shipment/status/shipment-status.html"}).state(_.SHIPMENT_PRINT,{url:"/print",templateUrl:"/ng-template/shipment-print.html",resolve:{printCompleteTemplates:n}}).state(_.SHIPMENT_COMPLETE,{url:"/complete",templateUrl:"/ng-template/shipment-complete.html",resolve:{printCompleteTemplates:n,customClearanceTemplate:function(){function e(e,t){return e.get("speedup-custom-clearance-layout.html")||t.loadTemplate("/ng-template/shipment/speedup-custom-clearance.html")}return e.$inject=["$templateCache","lazyLoadService"],e}()}}).state(_.ASSIGN_SHIPMENT,{url:"/assign-shipment",params:{isShipmentValid:!1,isReturnLabel:!1},templateUrl:"components/shipment/assign-shipment.html",controller:l["default"],controllerAs:"assignStateCtrl",resolve:{referenceAndQuotationTemplate:o}}).state(_.EDIT_INVALID_UPLOADED_LINE_ITEMS,{url:"/edit-invalid-uploaded-line-items",params:{isReturnLabel:!1},templateUrl:"components/shipment/edit-invalid-uploaded-line-items.html",controller:c["default"],controllerAs:"editInvalidUploadedLineItemsStateCtrl",resolve:{editInvalidUploadedLineItemsTemplate:r}}).state(_.ENHANCED_INVOICE,{url:"/enhanced-invoice",templateUrl:"components/shipment/enhanced-invoice.html",resolve:{models:function(){function e(e){return e.resolveMasterModels()}return e.$inject=["enhancedInvoiceStateService"],e}(),enhancedInvoiceInit:i},controller:u["default"],controllerAs:"enhancedInvoiceStateCtrl"}).state(_.RETURN_LABEL_ENHANCED_INVOICE,{url:"/return-label-enhanced-invoice",templateUrl:"components/shipment/enhanced-invoice.html",resolve:{models:function(){function e(e){return e.resolveReturnLabelModels()}return e.$inject=["enhancedInvoiceStateService"],e}(),enhancedInvoiceInit:i},controller:u["default"],controllerAs:"enhancedInvoiceStateCtrl"}).state(_.RATE_AND_QUOTE,{url:"/rate-and-quote?"+Object.keys(m).join("&"),resolve:{processRnqAccess:function(){function e(e,t){e.getCoreRestriction(f["default"].ALLOW_ACCESS_RQ_TOOL)||t.redirectToHome()}return e.$inject=["userService","navigationService"],e}()},template:'
'}).state(_.RETURN_LABEL,{url:"/return-label?shipmentId",template:'
'}).state(_.SELF_SERVICE_BOOKING,{url:"/drop-off-self-service-booking",templateUrl:"/ng-template/shipment/self-service-booking.html"}).state(_.MAILING_LIST_SHIPMENT_RESULTS,{url:"/mailing-list-shipment-results",templateUrl:"/ng-template/shipment/mailing-list.html"})}r.$inject=["$urlRouterProvider","$stateProvider"],t.__esModule=!0,t.states=undefined,t["default"]=r;var o=n(1219),u=i(o),a=n(1220),c=i(a),s=n(1221),l=i(s),d=n(43),f=i(d),p={NOVICE:"components/shipment/novice.html",GUEST:"components/shipment/novice.html",EXPERT:"components/shipment/expert.html",NFE_ENTRY_ONLY:"/ng-template/shipment/nfe-entry-only.html"},m={fromAddressLine:"",fromCountry:"",fromCity:"",fromPostalCode:"",fromDivision:"",fromSuburb:"",fromContactKey:"",toAddressLine:"",toCountry:"",toCity:"",toPostalCode:"",toDivision:"",toSuburb:"",toContactKey:""},_=t.states={SHIPMENT:"shipment",CREATE_SHIPMENT:"shipment.create-shipment",SHIPMENT_STATUS:"shipment.status",SHIPMENT_PRINT:"shipment.print",SHIPMENT_COMPLETE:"shipment.complete",ASSIGN_SHIPMENT:"shipment.assign-shipment",ENHANCED_INVOICE:"shipment.enhanced-invoice",RETURN_LABEL_ENHANCED_INVOICE:"shipment.return-label-enhanced-invoice",EDIT_INVALID_UPLOADED_LINE_ITEMS:"shipment.edit-invalid-uploaded-line-items",RATE_AND_QUOTE:"rate-and-quote",SELF_SERVICE_BOOKING:"drop-off-self-service-booking",RETURN_LABEL:"return-label",MAILING_LIST_SHIPMENT_RESULTS:"mailing-list-shipment-results"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DOCUMENT:"DOCUMENT",PACKAGE:"PACKAGE",BOTH:"BOTH",PACKAGE_NON_DUTIABLE:"PACKAGE_NON_DUTIABLE"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1273),a=i(u),c=n(1274),s=i(c),l=n(1275),d=i(l),f=n(1276),p=i(f),m=n(1277),_=i(m),g=angular.module("common.utils.navigation",[o["default"]||"common.utils"]);g.service(a["default"].NG_NAME,a["default"]).service(p["default"].NG_NAME,p["default"]).service(_["default"].NG_NAME,_["default"]).service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]),t.module=g,t["default"]="common.utils.navigation"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(){i(this,e),this.registered=!1}return e.prototype.addPartToShipmentModel=function(){function e(e){!this.registered&&e&&(e.addPartModel(this),this.registered=!0)}return e}(),e.prototype.getDataPart=function(){function e(){throw new Error("ShipmentPartModel#getDataPart should be implemented in child")}return e}(),e.prototype.initDataPart=function(){function e(){throw new Error("ShipmentPartModel#initDataPart should be implemented in child")}return e}(),e.prototype.clearDataPart=function(){function e(){this.initDataPart({})}return e}(),e}();t["default"]=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ASSIGNED_PENDING_SHIPPER_ACTION:"ASSIGNED_PENDING_SHIPPER_ACTION",ASSIGNED_INCOMPLETE:"ASSIGNED_INCOMPLETE",PICKED_UP:"PICKED_UP",SHIPPING_TODAY:"SHIPPING_TODAY",FUTURE_SHIPMENT:"FUTURE_SHIPMENT",READY_TO_PRINT:"READY_TO_PRINT",READY_TO_SEND_QR_CODE:"READY_TO_SEND_QR_CODE",SAVED_BY_ME:"SAVED_BY_ME",PENDING_MY_APPROVAL:"PENDING_MY_APPROVAL",PENDING_ADMIN_APPROVAL:"PENDING_ADMIN_APPROVAL",ASSIGNED_TO_ME:"ASSIGNED_TO_ME",PENDING_REQUESTOR_APPROVAL:"PENDING_REQUESTOR_APPROVAL",PENDING_ASSIGNEE_ACTION:"PENDING_ASSIGNEE_ACTION",DECLINED_BY_SHIPPER:"DECLINED_BY_SHIPPER",IN_TRANSIT:"IN_TRANSIT",DELIVERED:"DELIVERED",NOT_DELIVERED:"NOT_DELIVERED",CANCELLED:"CANCELLED",APPROVED:"APPROVED",EDIT_REQUESTED:"EDIT_REQUESTED",INCOMPLETE:"INCOMPLETE",MANIFESTED:"MANIFESTED",MIGRATED:"MIGRATED",PARTIAL_DELIVERY:"PARTIAL_DELIVERY",RETURNED_TO_SHIPPER:"RETURNED_TO_SHIPPER",DESTROYED_DISPOSAL:"DESTROYED_DISPOSAL"}},function(e,t,n){"use strict";t.__esModule=!0;var i,r={STATUS_FILTERS_GROUP:"statusFilters",ACCOUNTS_FILTERS_GROUP:"accountFilters",USERS_FILTERS_GROUP:"userFilters",DATE_RANGE_FILTER:"dateFilter",FAVORITES_FILTER:"favoritesOnly",VISIBILITY_FILTER:"shipmentVisibility",SHIPMENT_TYPE_FILTER:"myShipmentViewMode"},o=(i={},i[r.STATUS_FILTERS_GROUP]=null,i[r.ACCOUNTS_FILTERS_GROUP]=null,i[r.USERS_FILTERS_GROUP]=null,i[r.FAVORITES_FILTER]=!1,i[r.DATE_RANGE_FILTER]={type:"ALL",range:null},i);t["default"]=r,t.DEFAULTS=o},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={CURRENT_GROUP:"ewfCorpGroup",PROVIEW_LOGOUT_URL:"proviewLogoutUrl",ESECURE_LOGOUT_URL:"esecureLogoutUrl",USER_LANGUAGE:"userLanguage",DEFAULT_COUNTRY:"defaultCountry",IS_DEFAULT_USER_PREFIX:"ewfIsDefaultRegular",SESSION_DATA:"ewfSessionData",WCM_MODE:"wcmmode",REQUESTED_URL_COOKIE_NAME:"requestedUrl",RATE_DATA:"ewfCallRateData",RATE_DATA_ACCOUNT:"ewfClAcc",RATE_DATA_EMAIL:"ewfClEma",SHIPMENTS_DOCUMENTS_REQUEST_COOKIE:"ewfShipmentDocumentsRequest",TRUST_EV_SESSION_ID:"ewfFraudPreventionId",VIEWED_IMPORTANT_INFO_ITEMS:"viewedImportantInfoItems",DESKTOP:"desktop",CAPTCHA_DATA:"ewf-captcha-data"}},,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return e||null}function u(e){return e&&e.length?e.filter(function(e){return e.identifierType&&e.identifierValue&&a(e)&&c(e)}).map(function(e){return{identifierType:e.identifierType,identifierValue:e.identifierValue}}):[]}function a(e){return!(e.identifierType===_["default"].USCI)||e.isUsciAvailable}function c(e){return!(e.identifierType===_["default"].CRN)||e.isCrnAvailable}t.__esModule=!0,t.DEFAULT_CONTACT_KEY=t.getValidPersonalInformation=undefined;var s=n(405),l=n(63),d=i(l),f=n(49),p=i(f),m=n(412),_=i(m),g="00",E={city:"",citySuburbName:"",addrLine1:"",addrLine2:"",addrLine3:"",countryDivisionName:"",countryDivisionCode:"",countryDivisionTypeCode:undefined,zipOrPostCode:"",countryCode:null,countryName:"",residentialAddress:!1,placeId:"",streetNumber:"",cityCode:""},S={vatTaxId:"",eoriNumber:""},C={selectedPickupLocation:"",instructionsForCourier:""},h={currency:"",referencesForShipments:[]},I={selectedMailingLists:[]},A={smsNotifications:"",emailNotifications:""},v={key:"",alternateAccountNumber:"",alternateAccountNickname:"",type:""},N={sharedInfo:"",emailMessage:""},T={key:g,email:"",name:"",company:"",nickname:"",taxDetails:angular.copy(S),addressDetails:angular.copy(E),phoneDetails:(0,s.createEmptyPhoneDetails)(),phoneDetails2:null,cnpjOrCPFTaxID:"",isCnpjOrCPFTaxIDValid:null,ieTaxId:"",cnpjOrCPFTaxType:null,associatePaymentOptionsWithCustomer:!1,additionalNotes:"",profileContact:!1,isContactChanged:!1,collectionType:null,businessContactType:p["default"].PRIVATE,pickupSetting:angular.copy(C),personalIdentifiableInformation:[],mailingListSetting:angular.copy(I),notifications:angular.copy(A),paymentSetting:angular.copy(v),shareSetting:angular.copy(N),shippingSetting:angular.copy(h)},M=d["default"].RESIDENTIAL,y=function(){function e(){r(this,e),this.clear()}return e.prototype.clear=function(){function e(e){var t=this.getCleanedCountry(e);Object.assign(this,angular.copy(T)),Object.assign(this.addressDetails,t),delete this.selectedCorrectAddress}return e}(),e.prototype.clearAddressDetails=function(){function e(e){var t=this.getCleanedCountry(e);Object.assign(this.addressDetails,angular.copy(E)),Object.assign(this.phoneDetails,(0,s.createEmptyPhoneDetails)()),Object.assign(this.pickupSetting,angular.copy(C)),Object.assign(this.mailingListSetting,angular.copy(I)),Object.assign(this.notifications,angular.copy(A)),Object.assign(this.paymentSetting,angular.copy(v)),Object.assign(this.shareSetting,angular.copy(N)),Object.assign(this.shippingSetting,angular.copy(h)),Object.assign(this.addressDetails,t)}return e}(),e.prototype.getCleanedCountry=function(){function e(e){var t={};return e&&(t.countryCode=this.addressDetails.countryCode,t.countryName=this.addressDetails.countryName),t}return e}(),e.prototype.copy=function(){function e(e){var t=this;this.clear(),Object.assign(this,angular.copy(e));var n=["addressDetails","phoneDetails","pickupSetting","mailingListSetting","notifications","paymentSetting","shareSetting","shippingSetting"];this.key=e.addressDetails.key||e.key,this.addressDetails={},this.phoneDetails={},n.forEach(function(n){Object.assign(t[n],e[n]||{})}),e.phoneDetails2&&(this.phoneDetails2={},Object.assign(this.phoneDetails2,e.phoneDetails2))}return e}(),e.prototype.setFromAddressBook=function(){function e(e){function t(e,t){return e[t]||{}}this.additionalNotes=e.additionalNotes,this.key=e.key,this.email=e.email,this.name=e.contactName,this.company=e.companyName,this.businessContactType=e.businessContactType,this.nickname=e.nickName,this.cnpjOrCPFTaxID=e.cnpjOrCPFTaxID,this.isCnpjOrCPFTaxIDValid=o(!!e.cnpjOrCPFTaxID),this.ieTaxId=e.ieTaxId,this.cnpjOrCPFTaxType=e.cnpjOrCPFTaxType,this.taxDetails={vatTaxId:e.vatOrTaxId,eoriNumber:e.eoriNumber,goodsAndServicesTaxId:e.goodsAndServicesTaxId,gstinType:e.gstinType,iecTaxId:e.iecTaxId,ein:e.ein},this.addressDetails={city:e.city,addrLine1:e.address,addrLine2:e.address2||"",addrLine3:e.address3||"",countryDivisionName:e.countryDivisionName,countryDivisionCode:e.countryDivisionCode,countryDivisionTypeCode:e.countryDivisionTypeCode,zipOrPostCode:e.zipOrPostCode,countryCode:e.countryCode,countryName:e.country,residentialAddress:this.isResidentialAddress(e),placeId:e.placeId,citySuburbName:e.citySuburbName,streetNumber:e.streetNumber},this.pickupSetting=function(e){return{selectedPickupLocation:e&&e.selectedPickupLocation||"",instructionsForCourier:e&&e.instructionsForCourier||""}}(e.pickupSetting),this.phoneDetails=(0,s.createPhoneDetails)(e.phoneDetails),this.phoneDetails2=(0,s.createPhoneDetails)(e.phoneDetails2),this.profileContact=e.profileContact,this.collectionType=o(e.collection),this.isContactChanged=this.isABContactDetailsChanged(e),this.personalIdentifiableInformation=function(e){return e.personalIdentifiableInformation||[]}(e),this.mailingListSetting=t(e,"mailingListSetting"),this.notifications=t(e,"notifications"),this.paymentSetting=t(e,"paymentSetting"),this.shareSetting=t(e,"shareSetting"),this.shippingSetting=t(e,"shippingSetting")}return e}(),e.prototype.isABContactDetailsChanged=function(){function e(e){return e.isContactChanged||!1}return e}(),e.prototype.isResidentialAddress=function(){function e(e){return angular.isDefined(e.residentialAddress)?e.residentialAddress:e.addressType===M}return e}(),e.prototype.getForAddressBook=function(){function e(){var e={key:this.key||g,contactDetails:{addressDetails:{},phoneDetails:{},taxDetails:{},personalIdentifiableInformation:[]},profileContact:this.profileContact,pickupSetting:this.pickupSetting,mailingListSetting:this.mailingListSetting,notifications:this.notifications,paymentSetting:this.paymentSetting,shareSetting:this.shareSetting,shippingSetting:this.shippingSetting},t=this.nickname,n=this.name,i=this.company,r=this.businessContactType,u=this.email,a=this.taxDetails,c=this.phoneDetails,l=this.phoneDetails2,d=this.addressDetails,f=this.ieTaxId,p=this.cnpjOrCPFTaxID,m=this.cnpjOrCPFTaxType,_=this.additionalNotes,E=this.personalIdentifiableInformation;return Object.assign(e.contactDetails,{additionalNotes:_,nickname:t,name:n,company:i,businessContactType:r,email:u,taxDetails:{ieTaxId:f,cnpjOrCPFTaxID:p,cnpjOrCPFTaxType:m,vatTaxId:a.isVatTaxIdAvailable&&a.vatTaxId||null,eoriNumber:a.eoriNumber,goodsAndServicesTaxId:a.goodsAndServicesTaxId,gstinType:a.gstinType,iecTaxId:o(a.iecTaxId),ein:o(a.ein)},addressDetails:{addrLine1:d.addrLine1,addrLine2:d.addrLine2,addrLine3:d.addrLine3,zipOrPostCode:d.zipOrPostCode,city:d.city,countryDivisionName:d.countryDivisionName,countryDivisionCode:this.getCountryDivision(),countryDivisionTypeCode:d.countryDivisionTypeCode,residentialAddress:!!d.residentialAddress,countryCode:d.countryCode,citySuburbName:d.citySuburbName,streetNumber:d.streetNumber},phoneDetails:(0,s.createPhoneDetails)(c),phoneDetails2:(0,s.createPhoneDetails)(l),personalIdentifiableInformation:this.getPersonalIdentifiableInformation(E)}),e}return e}(),e.prototype.getPersonalIdentifiableInformation=function(){function e(e){return u(e)}return e}(),e.prototype.joinNonEmptyFields=function(){function e(){var e=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],t=arguments.length<=1||arguments[1]===undefined?"":arguments[1];return e.filter(function(e){return!!e}).join(t)}return e}(),e.prototype.getFormattedContact=function(){function e(){var e=this.joinNonEmptyFields([this.addressDetails.addrLine1,this.addressDetails.city,this.addressDetails.countryDivisionName],", "),t=this.joinNonEmptyFields([this.addressDetails.zipOrPostCode,this.addressDetails.countryName],", "),n=this.joinNonEmptyFields([e,t]," ");return""+this.name+(n&&" ("+n+")")}return e}(),e.prototype.getCountryDivision=function(){function e(){var e=this.addressDetails,t=e.countryDivisionCode,n=e.countryDivisionName;return t||(n||"").slice(0,2)}return e}(),e.prototype.transliterate=function(){function e(){var e=this.addressDetails,t=e.englishAddress;e.invalidHouseNumber=!t.house,e.addrLine1=t.addressLine1,e.addrLine2=t.addressLine2,e.addrLine3=t.addressLine3,e.city=t.city,e.zipOrPostCode=t.postalCode,e.countryDivisionName=t.state,e.countryDivisionCode=t.stateCode,this.formDataChanged=!0}return e}(),e.prototype.clearCityInfo=function(){function e(){this.addressDetails.city="",this.addressDetails.zipOrPostCode=""}return e}(),e.prototype.clearCountryDivisionInfo=function(){function e(){this.addressDetails.countryDivisionCode="",this.addressDetails.countryDivisionName=""}return e}(),e.prototype.setCity=function(){function e(e){this.addressDetails.city=e}return e}(),e.prototype.setZipOrPostCode=function(){function e(e){this.addressDetails.zipOrPostCode=e}return e}(),e.prototype.setAssociatePaymentOptionsWithCustomer=function(){function e(e){this.associatePaymentOptionsWithCustomer=e}return e}(),e}();t["default"]=y,t.getValidPersonalInformation=u,t.DEFAULT_CONTACT_KEY=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(){var t=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];i(this,e),this.setOptions(t)}return e.prototype.getMessage=function(){function e(){return this.options.msg||this.msg||""}return e}(),e.prototype.setMessage=function(){function e(e){this.msg=e||""}return e}(),e.prototype.getMessageParams=function(){function e(){return this.messageParams||{}}return e}(),e.prototype.setMessageParams=function(){function e(e){this.messageParams=e}return e}(),e.prototype.removeMessage=function(){function e(){delete this.msg}return e}(),e.prototype.setCSSClass=function(){function e(e){this.cssClass=e}return e}(),e.prototype.getCSSClass=function(){function e(){return this.cssClass||""}return e}(),e.prototype.setOptions=function(){function e(e){angular.isObject(this.options)||(this.options={}),Object.assign(this.options,e)}return e}(),e.prototype.getOptions=function(){function e(){return this.options}return e}(),e.prototype.setValidatorName=function(){function e(e){this.validatorName=e}return e}(),e.prototype.getValidatorName=function(){function e(){return this.validatorName}return e}(),e.prototype.setCountryCode=function(){function e(e){this.countryCode=e}return e}(),e.prototype.validate=function(){function e(){throw new Error("BaseValidator#validate should be implemented in child.")}return e}(),e}();t["default"]=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={LOGIN_ATTEMPT:"LoginAttempt",USER_NAME:"Username",DROP_OFF_TEASER_DO_NOT_SHOW_AGAIN:"DropOffTeaserDoNotShowAgain",IS_CORP_NAV_DISPLAYED:"IsCorpNavDisplayed",HOME_ALERT_MESSAGE_KEY:"HomeAlertMessage",HOME_ALERT_TYPE_KEY:"HomeAlertType",LOGIN_NEXT_FORM_MESSAGE:"login.next_form_title",LOGIN_REMEMBER_ME_OPTION:"dhlRememberMeAs",TRUST_EV_LOCAL_STORAGE_KEY:"showTrustEvErrorMessage",LOGGED_IN_AT_LEAST_ONCE:"LoggedInAtLeastOnce",ADDRESS_REMEMBERED:"addressRemembered",ADDRESS_DETAILS:"addressDetails",ADDRESSBOOK_ACTION_PARAM_NAME:"showAlert",ADDRESSBOOK_COLLECTION_PARAM_NAME:"currentCollection",HIDE_DASHBOARD_NOTIFICATION_KEY:"hideDashboardNotification",INDUSTRIAL_DASHBOARD_EXPANDED_KEY:"industrialDashboardExpanded",SHOW_DASHBOARD_MODAL:"showDashboardModal",DONT_SHOW_AGAIN_INR_ALERT_KEY:"DontShowInrAlert",DISMISSED_LANE_ALERT:"dismissedLaneAlerts",RATE_AND_QUOTE_MODEL_DATA:"rnqModelData",RATE_AND_QUOTE_LOCATION:"rnqLocation",LINE_ITEMS_UPLOAD_CONFIG:"LineItemUploadConfig",LOGIN_COUNTRY:"LoginCountry"};t.LOCAL_STORAGE_PREFIX="ewf"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(915),a=i(u),c=n(934),s=i(c),l=n(99),d=i(l),f=n(935),p=i(f),m=n(415),_=i(m),g=n(1762),E=i(g),S=n(1763),C=i(S),h=n(1764),I=i(h),A=n(1765),v=i(A),N=n(1766),T=i(N),M=n(1767),y=i(M),D=n(1768),O=i(D),P=n(1769),b=i(P),R=n(1770),L=i(R),G=n(1771),U=i(G),F=n(1779),w=i(F),k=n(941),j=i(k),V=n(1780),B=i(V),$=n(1781),x=i($),H=n(1782),Y=i(H),K=n(1783),W=i(K),q=angular.module("shipment.services",[o["default"]||"common.utils",a["default"],s["default"],d["default"],p["default"],_["default"]]);q.service(E["default"].NG_NAME,E["default"]).service(C["default"].NG_NAME,C["default"]).service(I["default"].NG_NAME,I["default"]).service(v["default"].NG_NAME,v["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).service(w["default"].NG_NAME,w["default"]).service(j["default"].NG_NAME,j["default"]).service(B["default"].NG_NAME,B["default"]).service(x["default"].NG_NAME,x["default"]).service(Y["default"].NG_NAME,Y["default"]).service(W["default"].NG_NAME,W["default"]).factory(U["default"].NG_NAME,U["default"]),t.module=q,t["default"]="shipment.services"},function(e,t,n){"use strict";t.__esModule=!0;t.MIN_PAGE_SIZE=10,t.MAX_PAGE_SIZE=9999},,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={LOGIN_PAGE:"auth/login.html",SSO_LOGIN_PAGE:"auth/sso-login.html",LOGOUT_PAGE:"auth/login.html##logout",HOME_TEMPLATE_LOGOUT_PAGE:"auth/logout.html",ACCOUNT_ACTIVATED_PAGE:"auth/login.html##activated",RESET_PASSWORD_PAGE:"auth/reset-password.html",LINK_ERROR_PAGE:"auth/link-error.html",NOT_FOUND_PAGE:"errors/404.html",SSO_ERROR_PAGE:"errors/sso-error.html",SHIPMENT_PAGE:"shipment.html",RATE_AND_QUOTE_PAGE:"shipment.html#/rate-and-quote",RETURN_LABEL_PAGE:"shipment.html#/return-label",MANAGE_SHIPMENTS_PAGE:"manage-shipments.html",MANAGE_SHIPMENTS_DETAILS_PAGE:"manage-shipment-details.html#/manageShipmentDetails",SHIPMENT_PRINT_PAGE:"shipment.html#/print",SHIPMENT_COMPLETE_PAGE:"shipment.html#/complete",ASSIGN_SHIPMENT_PAGE:"shipment.html#/assign-shipment",DROP_OFF_SSB:"shipment.html#/drop-off-self-service-booking",HOME_PAGE:"home.html",HOME_FAVORITE_SHIPMENTS_PAGE:"home.html#/createFromFavoriteTab",HOME_PAST_SHIPMENTS_PAGE:"home.html#/createFromPastTab",SHIPMENT_SETTINGS:"shipment-settings.html",MANAGE_DHL_ACCOUNTS_PAGE:"shipment-settings.html#/dhl-accounts",MANAGE_SHIPMENT_DEFAULTS:"shipment-settings.html#/manage-defaults",AUTHORIZED_ACCOUNT_USAGE_PAGE:"shipment-settings.html#/authorized-account-usage",CUSTOMS_ENROLLMENT_PAGE:"shipment-settings.html#/digital-customs-invoices",CUSTOMS_INVOICE_TEMPLATES:"shipment-settings.html#/customs-invoice-templates",USER_PROFILE_PAGE:"user-profile.html",HELP_CENTER_PAGE:"help-center.html",PROFILE_DETAILS:"/profile-details.html",QUICK_LINKS_PAGE:"profile-details.html#/manage-my-dhl?section=quickLinks",DASHBOARD_TYPE_PAGE:"profile-details.html#/manage-my-dhl?section=manageDashboard",SHIPMENT_PROCESS_PAGE:"profile-details.html#/manage-my-dhl?section=selectShipmentProcess",PASSWORD_EXPIRED_PAGE:"auth/password-expired.html",CHANGE_EXPIRED_PASSWORD_PAGE:"auth/change-expired-password.html",NEW_CONTACT_PAGE:"new-contact.html",VIEW_CONTACT_PAGE:"view-contact.html",DECLINE_ASSIGNED_SHIPMENT:"shipment/decline-assigned-shipment.html",ASSIGNED_SHIPMENT_STATUS:"shipment/assigned-shipment-status.html",TRACKING_PAGE:"tracking.html",TRACKING_RESULTS_PAGE:"tracking.html#/results",BILLING:"billing.html#/billing",ESECURE:"esecure.html",PROVIEW:"user-profile.html",MANAGE_PICKUPS_ROOT:"manage-pickups.html",MANAGE_PICKUPS_PAGE:"manage-pickups.html#/my-pickups",MANAGE_PICKUPS_EDIT_PAGE:"manage-pickups.html#/my-pickups-edit",MANAGE_PICKUPS_DETAILS_PAGE:"manage-pickups.html#/my-pickups-details",PICKUP_PAGE:"schedule-pickup.html",SCHEDULE_PICKUP:"schedule-pickup.html#/schedule-pickup",SCHEDULE_PICKUP_HASH:"#/schedule-pickup",ADDRESS_BOOK:"address-book.html",ADDRESS_BOOK_IMPORT:"address-book-import.html",CORPORATE_USERS:"corporate.html#/user-management",CORPORATE_EXTERNAL_MODULES:"corporate.html#/external-modules",SEARCH:"search.html#",B2L:"b2l.html",SHIPMENT_IMPORT:"shipment-import.html",REPORTING:"reporting.html",REPORTING_VIEW:"reporting.html#/listing/{key}/view",FILE_DOWNLOAD:"file.html",TENANT_LOGIN:"auth/tenant-login.html"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={showInformationHintTimeout:4e3,spinnerTimeout:300,manageMyShipmentsDebounceTimeout:1e3,fetchProductsDebounceTimeout:1e3,defaultDebounceTimeout:500,sectionLoaderDelay:3e3,pageLoadedEvent:"onPageLoaded",currencyConversionTimeout:500}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1898),o=i(r),u=n(1899),a=i(u),c="profile.shipmentSettings.shipmentDefaults.resources",s=angular.module(c,[]);s.service(o["default"].NG_NAME,o["default"]).service(a["default"].NG_NAME,a["default"]),t.module=s,t["default"]=c},,,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={SHIPPER:"SHIPPER",PAYER:"PAYER"};t.GCDB_STATUS={REGULAR:"REGULAR",OCCASIONAL:"OCCASIONAL",CASH:"CASH",FREE_OF_CHARGE:"FREE_OF_CHARGE",TRANSPORT_COLLECT:"TRANSPORT_COLLECT"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1490),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("profile.contact.resources",[]);o.service(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="profile.contact.resources"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(193),o=i(r),u=n(52),a=i(u),c=n(424),s=i(c),l=n(41),d=i(l),f=n(503),p=i(f),m=n(2174),_=i(m),g=n(2175),E=i(g),S=n(2176),C=i(S),h=n(2177),I=i(h),A=n(2178),v=i(A),N=n(2179),T=i(N),M=n(2180),y=i(M),D=n(2181),O=i(D),P=n(2182),b=i(P),R=n(2183),L=i(R),G=n(2185),U=i(G),F=n(2187),w=i(F),k=angular.module("shipment.payment",[o["default"],d["default"]||"shipment.type",a["default"]||"shipment.address",s["default"]||"addressBook.globalIncoterms",p["default"]]);k.service(_["default"].NG_NAME,_["default"]).service(E["default"].NG_NAME,E["default"]).service(C["default"].NG_NAME,C["default"]).service(I["default"].NG_NAME,I["default"]).service(v["default"].NG_NAME,v["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).factory(w["default"].NG_NAME,w["default"]).service(L["default"].NG_NAME,L["default"]).service(U["default"].NG_NAME,U["default"]).service(b["default"].NG_NAME,b["default"]),t.module=k,t["default"]="shipment.payment"},,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1360),o=i(r),u=n(1370),a=i(u),c=n(1372),s=i(c),l=n(1375),d=i(l),f=n(1378),p=i(f),m=n(1387),_=i(m),g=n(1390),E=i(g),S=n(1393),C=i(S),h=n(1719),I=i(h),A=n(1723),v=i(A),N=n(1727),T=i(N),M=n(2),y=i(M),D=n(409),O=i(D),P=n(1730),b=i(P),R=n(1731),L=i(R),G=n(1732),U=i(G),F=n(1733),w=i(F),k=n(1734),j=i(k),V=n(1735),B=i(V),$=n(1736),x=i($),H=n(1737),Y=i(H),K=n(1738),W=i(K),q=n(1739),z=i(q),X=n(1741),Q=i(X),Z=angular.module("common.configuration",[y["default"]||"common.utils",O["default"],o["default"],a["default"],s["default"],d["default"],p["default"],_["default"],E["default"],C["default"],I["default"],v["default"],T["default"]]);Z.constant(B["default"].NG_NAME,B["default"]).run(j["default"]).directive(z["default"].NG_NAME,z["default"]).service(w["default"].NG_NAME,w["default"]).service(Q["default"].NG_NAME,Q["default"]).service(Y["default"].NG_NAME,Y["default"]).service(x["default"].NG_NAME,x["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).service(W["default"].NG_NAME,W["default"]).service(U["default"].NG_NAME,U["default"]),t.module=Z,t["default"]="common.configuration"},,,function(e,t,n){"use strict";t.__esModule=!0;var i={SHIP_BOTH:"SHIP_BOTH",SHIP_FROM:"SHIP_FROM",SHIP_TO:"SHIP_TO"};t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(69),o=i(r),u=n(1524),a=i(u),c=angular.module("shipment.flow",[o["default"]]);c.service(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="shipment.flow"},,function(e,t,n){"use strict";t.__esModule=!0;var i={KG:"KG",LB:"LB",BU:"BU",CM:"CM",IN:"IN"};t["default"]={METRIC:"METRIC",IMPERIAL:"IMPERIAL"},t.UNITS=i},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ASC:"ASC",DESC:"DESC"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1912),o=i(r),u=n(475),a=i(u),c=n(953),s=i(c),l=n(2019),d=i(l),f=n(963),p=i(f),m=n(128),_=i(m),g=n(20),E=i(g),S=n(37),C=i(S),h=n(107),I=i(h),A=n(497),v=i(A),N=n(499),T=i(N),M=n(415),y=i(M),D=n(106),O=i(D),P=n(974),b=i(P),R=n(975),L=i(R),G=n(2097),U=i(G),F=n(2098),w=i(F),k=n(2099),j=i(k),V=n(494),B=i(V),$=n(2100),x=i($),H=n(2101),Y=i(H),K=n(2102),W=i(K),q=n(2103),z=i(q),X=n(2104),Q=i(X),Z=n(2105),J=i(Z),ee=n(2106),te=i(ee),ne=n(2107),ie=i(ne),re=n(2109),oe=i(re),ue=n(2110),ae=i(ue),ce=n(2111),se=i(ce),le=n(2112),de=i(le),fe=n(2113),pe=i(fe),me=angular.module("shipment.type",[o["default"],a["default"],s["default"],d["default"],p["default"],E["default"],C["default"],_["default"],I["default"],v["default"],T["default"],y["default"]]);me.directive(x["default"].NG_NAME,x["default"]).directive(Y["default"].NG_NAME,Y["default"]).directive(J["default"].NG_NAME,J["default"]).directive(te["default"].NG_NAME,te["default"]).directive(ie["default"].NG_NAME,ie["default"]).directive(oe["default"].NG_NAME,oe["default"]).directive(pe["default"].NG_NAME,pe["default"]).directive(ae["default"].NG_NAME,ae["default"]).directive(se["default"].NG_NAME,se["default"]).directive(de["default"].NG_NAME,de["default"]).directive(W["default"].NG_NAME,W["default"]).directive(z["default"].NG_NAME,z["default"]).directive(Q["default"].NG_NAME,Q["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).service(B["default"].NG_NAME,B["default"]).service(U["default"].NG_NAME,U["default"]).service(w["default"].NG_NAME,w["default"]).service(j["default"].NG_NAME,j["default"]),t.module=me,t["default"]="shipment.type"},,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ALLOW_ACCESS_RQ_TOOL:"rqToolAllowAccess",ALLOW_ACCOUNTS:"accountEnabled",ALLOW_SCHEDULE_PICKUP:"schedulePickup",DELIVERY_TO_SERVICE_POINT_ENABLED:"deliveryToServicePointEnabled",DISPLAY_SHIPMENT_PRICING:"displayPricingInShipment",DISPLAY_SHIPMENT_SURCHARGES:"displaySurchargesInShipment",GLOBAL_MAIL_IN_SHIP_TO_ONLY:"globalMailInShipToOnly",INSURANCE_SERVICE_ENABLED:"insuranceServiceEnabled",PLT_ENABLED:"pltEnabled",PLT_ENROLMENT_TYPE:"pltEnrolmentType",PLT_IS_MANDATORY:"pltIsMandatory",REWARD_ENABLED:"rewardEnabled",RQ_TOOL_ALLOW_ACCESS:"rqToolAllowAccess",CAN_CREATE_DOCUMENTS:"canCreateDocuments"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1911),o=i(r),u=n(422),a=i(u),c=n(2),s=i(c),l=n(934),d=i(l),f=n(2120),p=i(f),m=angular.module("shipment.address-contact",["ui.router",o["default"],a["default"],d["default"],s["default"]]);m.directive(p["default"].NG_NAME,p["default"]),t.module=m,t["default"]="shipment.address-contact"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={CREDIT_STOP:"creditStop",OFAC_ALLOWED:"ofacAllowed",ITAR_APPROVED:"itarApproved",BIS_APPROVED:"bisApproved",ACCOUNT_TYPE:"accountType",GLOBAL_MAIL_ALLOWED:"globalMailAllowed",ONLINE_ALLOWED:"onlineAllowed",ONLINE_ONLY:"onlineOnly"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DELIVERY_SIGNATURE:"SA",DISCOUNT:"STDIS",DUTIABLE:"DD",DUTIES_AND_TAXES:"STTXA",EXTENDED_LIABILITY:"IB",FUEL_SURCHARGE:"FF",INSURANCE:"II",EXCEPTED_QUANTITIES:"HH",PAPERLESS_TRADE:"WY",DRY_ICE:"HC",DANGEROUS_GOODS:"HE",PREMIUM_09_00_DELIVERY:"YI",PREMIUM_10_30_DELIVERY:"YJ",PREMIUM_12_00_DELIVERY:"YK",REMOTE_AREA_DELIVERY:"OO",SATURDAY_DELIVERY:"AA",TRANSPORTATION_CHARGE:"SPRQT",RESIDENTIAL_ADDRESS:"TK"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DHL:"DHL",CUSTOM:"CUSTOM",USER_PROFILE:"USER_PROFILE"}},function(e,t,n){"use strict";t.__esModule=!0;var i={COMPANY:"CAB",GROUP:"GAB",GROUP_RESTRICTED_SHIP_FROM:"GRAB_SHIP_FROM",GROUP_RESTRICTED_SHIP_TO:"GRAB_SHIP_TO",CUSTOM_RESTRICTED_SHIP_FROM:"CRAB_SHIP_FROM",CUSTOM_RESTRICTED_SHIP_TO:"CRAB_SHIP_TO",PRIVATE:"PAB",GLOBAL_MAIL:"GLOBAL_MAIL",ALL:"ALL"};t["default"]=i},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={BUSINESS:"BU",PRIVATE:"PR"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={PAYMENT_DETAILS:"payment-details",PACKAGE_ITEMS:"package-items",CUSTOMS_DECLARATION:"customs-declaration",SHIPMENT_TYPE:"shipment-type"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={AVAILABLE:"AVAILABLE",NOT_EDITABLE:"NOT_EDITABLE",HIDDEN:"HIDDEN"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1904),o=i(r),u=n(25),a=i(u),c=n(30),s=i(c),l=n(0),d=i(l),f=n(234),p=i(f),m=n(31),_=i(m),g=n(501),E=i(g),S=n(978),C=i(S),h=n(2157),I=i(h),A=n(2158),v=i(A),N=n(2160),T=i(N),M=n(2161),y=i(M),D=n(2162),O=i(D),P=n(2163),b=i(P),R=n(2165),L=i(R),G=n(2166),U=i(G),F=n(2167),w=i(F),k=n(2168),j=i(k),V=n(2169),B=i(V),$=n(2170),x=i($),H=n(87),Y=i(H),K=angular.module("shipment.address",[o["default"],a["default"],s["default"],d["default"],p["default"],_["default"]||"shipment.payment",E["default"],C["default"]]);K.directive(I["default"].NG_NAME,I["default"]).directive(v["default"].NG_NAME,v["default"]).directive(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).service(U["default"].NG_NAME,U["default"]).service(w["default"].NG_NAME,w["default"]).service(j["default"].NG_NAME,j["default"]).service(B["default"].NG_NAME,B["default"]).service(x["default"].NG_NAME,x["default"]).factory(Y["default"].NG_NAME,Y["default"]),t.module=K,t["default"]="shipment.address"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(2036),a=i(u),c=n(2037),s=i(c),l=n(966),d=i(l),f=n(2038),p=i(f),m=angular.module("shipment.printPreview",[o["default"]]);m.directive(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]).service(p["default"].NG_NAME,p["default"]),t.module=m,t["default"]="shipment.printPreview"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(967),o=i(r),u=n(492),a=i(u),c=n(2),s=i(c),l=n(53),d=i(l),f=n(20),p=i(f),m=n(493),_=i(m),g=n(935),E=i(g),S=n(922),C=i(S),h=n(2049),I=i(h),A=n(2052),v=i(A),N=n(2054),T=i(N),M=n(2055),y=i(M),D=n(2056),O=i(D),P=n(2057),b=i(P),R=n(2058),L=i(R),G=n(2059),U=i(G),F=n(2060),w=i(F),k=n(2061),j=i(k),V=n(2062),B=i(V),$=n(2063),x=i($),H=n(972),Y=i(H),K=n(2064),W=i(K),q=n(421),z=i(q),X=n(2065),Q=i(X),Z=n(2066),J=i(Z),ee=n(2067),te=i(ee),ne=angular.module("shipment.print",[o["default"],a["default"],_["default"],d["default"],s["default"],p["default"],E["default"],C["default"]]);ne.directive(I["default"].NG_NAME,I["default"]).directive(B["default"].NG_NAME,B["default"]).directive(j["default"].NG_NAME,j["default"]).directive(v["default"].NG_NAME,v["default"]).directive(te["default"].NG_NAME,te["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(U["default"].NG_NAME,U["default"]).service(w["default"].NG_NAME,w["default"]).service(x["default"].NG_NAME,x["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).service(Y["default"].NG_NAME,Y["default"]).service(W["default"].NG_NAME,W["default"]).service(J["default"].NG_NAME,J["default"]).service(Q["default"].NG_NAME,Q["default"]).service(z["default"].NG_NAME,z["default"]),t.module=ne,t["default"]="shipment.print"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ITAR:"ITAR",BIS:"BIS",NO:"NO"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={QUOTATION:"QUOTATION",TRANSPORTATION:"TRANSPORTATION",DUTIES:"DUTIES",TAXES:"TAXES"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={AFTER_PRINTED:"AFTER_PRINTED",NEVER_ASK:"NEVER_ASK",NONE:"NONE",SAME_TIME:"SAME_TIME"};t.RETURN_INSTRUCTIONS_TYPES={SEND_PDF:"SEND_PDF",SEND_QR:"SEND_QR",PRINT_LABEL:"PRINT_LABEL"}},,function(e,t,n){"use strict";t.__esModule=!0;t.HIDDEN_PRICE_VALUE_MASK="--.--",t.HIDDEN_DATE_VALUE_MASK="******"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={SUCCESS:"alert_success",INFO:"alert_info",WARNING:"alert_warning",ERROR:"alert_error"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DANFE_KEY:"DANFE_KEY",IMPORT_NF:"IMPORT_NF",MANUAL_DOC:"MANUAL_DOC",MANUAL_NON_DOC_EXEMPT:"MANUAL_NON_DOC_EXEMPT",MANUAL_NON_DOC_NOT_EXEMPT:"MANUAL_NON_DOC_NOT_EXEMPT",NOT_BRAZIL:"NOT_BRAZIL"};t.KEYS_MAX_AMOUNT=99,t.MAX_NFE_FILES_NUMBER=99,t.IMPORT_TO_CITY="Exterior",t.IMPORT_TO_POST_ZIP_CODE="999999"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={CREATE:"CREATE_CUSTOMS_INVOICE",USE:"USE_MY_OWN_CUSTOMS_INVOICE"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={RESIDENTIAL:"RESIDENTIAL",BUSINESS:"BUSINESS"}},function(e,t,n){"use strict";t.__esModule=!0;var i=t.DOCUMENT_TYPES={LABEL:"LABEL",ARCHIVE:"ARCHIVE",RECEIPT:"RECEIPT",CUSTOMS_INVOICE:"CUSTOMS_INVOICE",CSBV_CUSTOMS_INVOICE:"CSBV_CUSTOMS_INVOICE",INDEMNITY_LETTER:"INDEMNITY_LETTER",PDS:"PDS",ANTI_DRUG_LETTER:"ANTI_DRUG_LETTER",ADDRESS_LABEL_STICKER:"ADDRESS_LABEL_STICKER",LITHIUM_BATTERIES:"LITHIUM_BATTERIES",CERTIFICATE_OF_ORIGIN:"CERTIFICATE_OF_ORIGIN",RETURN_INSTRUCTIONS:"RETURN_INSTRUCTIONS",VAT_RECEIPT:"VAT_RECEIPT",CUSTOM_RETURN_INSTRUCTIONS:"CUSTOM_RETURN_INSTRUCTIONS",PICKUP_INSTRUCTIONS:"PICKUP_INSTRUCTIONS"};t.WAYBILL_DOCUMENT_TYPES=[i.LABEL,i.ARCHIVE],t.ADDITIONAL_DOCUMENT_TYPES=[i.INDEMNITY_LETTER,i.PDS,i.ANTI_DRUG_LETTER,i.ADDRESS_LABEL_STICKER,i.LITHIUM_BATTERIES,i.CERTIFICATE_OF_ORIGIN,i.RETURN_INSTRUCTIONS,i.VAT_RECEIPT,i.CUSTOM_RETURN_INSTRUCTIONS],t.PRIMARY_DOCUMENT_TYPES=[i.LABEL,i.ARCHIVE,i.RECEIPT,i.CUSTOMS_INVOICE],t.BULK_MANDATORY_DOCUMENT_TYPES=[i.LABEL,i.ARCHIVE,i.INDEMNITY_LETTER]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(33),o=i(r),u=n(0),a=i(u),c=n(537),s=i(c),l=n(2256),d=i(l),f=n(2257),p=i(f),m=n(2258),_=i(m),g=n(2259),E=i(g),S=n(2260),C=i(S),h=n(2261),I=i(h),A=n(2263),v=i(A),N=n(2264),T=i(N),M=n(2265),y=i(M),D=angular.module("shipment-locator",[a["default"],o["default"],s["default"]]);D.directive(d["default"].NG_NAME,d["default"]).directive(p["default"].NG_NAME,p["default"]).directive(_["default"].NG_NAME,_["default"]).directive(T["default"].NG_NAME,T["default"]).directive(y["default"].NG_NAME,y["default"]).service(E["default"].NG_NAME,E["default"]).service(C["default"].NG_NAME,C["default"]).service(I["default"].NG_NAME,I["default"]).service(v["default"].NG_NAME,v["default"]),t.module=D,t["default"]="shipment-locator"},,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={CORPORATE_ADMIN:"CORPORATE_ADMIN",GROUP_ADMIN:"GROUP_ADMIN",END_USER:"END_USER"};t.CQ_CORPORATE_GROUP_NAME_MAPPING={CORPORATE_ADMIN:"corporate-admin",GROUP_ADMIN:"group-admin",END_USER:"end-user"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1296),o=i(r),u=n(1298),a=i(u),c=n(910),s=i(c),l=n(1299),d=i(l),f=angular.module("common.widgets.modal",["ui.bootstrap"]);f.directive(o["default"].NG_NAME,o["default"]).directive(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]),t.module=f,t["default"]="common.widgets.modal"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1815),a=i(u),c=angular.module("manageShipments.resource",[o["default"]]);c.service(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="manageShipments.resource"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={COMPLETED:"COMPLETED",SUBMITTED:"SUBMITTED",UN_SUBMITTED:"UN_SUBMITTED",READY_TO_SHIP:"READY_TO_SHIP",IN_TRANSIT:"IN_TRANSIT",DELIVERED:"DELIVERED",CANCELLED:"CANCELLED",PICKED_UP:"PICKED_UP",IMPORTED:"IMPORTED",MIGRATED:"MIGRATED",OTHER:"OTHER"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(945),o=i(r),u=n(1866),a=i(u),c=n(1867),s=i(c),l=n(1868),d=i(l),f=angular.module("authorization.common",[o["default"]]);f.service(a["default"].NG_NAME,a["default"]).service(d["default"].NG_NAME,d["default"]).factory(s["default"].NG_NAME,s["default"]),t.module=f,t["default"]="authorization.common"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={NO_READ_LABEL:"88,89",ALL_POSSIBILITIES:"80,88,89",WALK_CARDS_POSSIBILITIES:"82,88,72,73,74,75,76"};t.PPC_SCENARIOS={WCC_DROP_OFF_LOCATION:"WCC_DROP_OFF_LOCATION",WCC_COMPLETE_PAGE_QR_CODE:"WCC_COMPLETE_PAGE_QR_CODE",WCC_COMPLETE_PAGE_PRINT_LABEL:"WCC_COMPLETE_PAGE_PRINT_LABEL",WCC_BARCODE_AND_COMPLETE_AT_SERVICE_POINT:"WCC_BARCODE_AND_COMPLETE_AT_SERVICE_POINT",LOCATOR_SHIPMENT_SETTINGS_DEFAULT:"LOCATOR_SHIPMENT_SETTINGS_DEFAULT",LABEL_FREE_SHIPMENT_ACCOUNT_QR_CODE:"LABEL_FREE_SHIPMENT_ACCOUNT_QR_CODE",REGULAR_SHIPMENT_ACCOUNT_PRINT_LABEL:"REGULAR_SHIPMENT_ACCOUNT_PRINT_LABEL",LABEL_FREE_SHIPMENT_ONLINE_QR_CODE:"LABEL_FREE_SHIPMENT_ONLINE_QR_CODE",REGULAR_SHIPMENT_ONLINE_PRINT_LABEL:"REGULAR_SHIPMENT_ONLINE_PRINT_LABEL",PRINT_LABEL:"PRINT_LABEL",QR_CODE:"QR_CODE",REGULAR_SHIPMENT_PICKUP:"REGULAR_SHIPMENT_PICKUP",WCC_BARCODE_SHIPMENT_DROPOFF_LINK:"WCC_BARCODE_SHIPMENT_DROPOFF_LINK",DELIVERY_TO_SERVICE_POINT:"DELIVERY_TO_SERVICE_POINT"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(7),o=i(r),u=n(474),a=i(u),c=n(987),s=i(c),l=n(422),d=i(l),f=n(988),p=i(f),m=n(120),_=i(m),g=n(2313),E=i(g),S=n(2315),C=i(S),h=n(2316),I=i(h),A=angular.module("addressBook",[a["default"],s["default"],d["default"],p["default"],_["default"]]);A.directive(E["default"].NG_NAME,E["default"]).directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]),t.module=A,t["default"]="addressBook",o["default"].addModule("addressBook")},,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2538),o=i(r),u=n(2539),a=i(u),c=n(2540),s=i(c),l=n(134),d=i(l),f=n(324),p=i(f),m=n(82),_=i(m),g=angular.module("shipment.packages",[_["default"],p["default"]]);g.service("packageDetailsModel",d["default"]).service(o["default"].NG_NAME,o["default"]).service(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]),t.module=g,t["default"]="shipment.packages"},,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1337),o=i(r),u=n(1338),a=i(u),c=n(1339),s=i(c),l=n(1340),d=i(l),f=n(1341),p=i(f),m=n(1342),_=i(m),g=n(1343),E=i(g),S=n(1344),C=i(S),h=n(1345),I=i(h),A=n(1346),v=i(A),N=n(1347),T=i(N),M=n(1348),y=i(M),D=n(1349),O=i(D),P=n(1350),b=i(P),R=n(1351),L=i(R),G=n(1352),U=i(G),F=n(1353),w=i(F),k=n(1354),j=i(k),V=n(1355),B=i(V),$=n(1357),x=i($),H=n(1358),Y=i(H),K=n(1359),W=i(K),q=angular.module("common.filters",["ngSanitize"]);q.filter("calculateTotal",o["default"]).filter("convertUomToOpposite",a["default"]).filter("countryName",s["default"]).filter("decimalFormat",d["default"]).filter("decimalParse",p["default"]).filter("decimalSeparator",_["default"]).filter("decimalTrunc",E["default"]).filter("fileSize",C["default"]).filter("highlightSearch",I["default"]).filter("joinBy",v["default"]).filter("phoneNumber",T["default"]).filter("replace",y["default"]).filter("truncateText",O["default"]).filter("time",b["default"]).filter("localeDate",L["default"]).filter("uom",U["default"]).filter("restrictionMessage",w["default"]).filter("softLimits",j["default"]).filter("defaultShipmentReference",B["default"]).filter("numberRound",x["default"]).filter("cutMiddle",Y["default"]).service(W["default"].NG_NAME,W["default"]),t.module=q,t["default"]="common.filters"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(916),o=i(r),u=n(1665),a=i(u),c=n(1683),s=i(c),l=n(1684),d=i(l),f=n(1685),p=i(f),m=n(1686),_=i(m),g=n(1687),E=i(g),S=n(1688),C=i(S),h=n(1689),I=i(h),A=n(1690),v=i(A),N=n(1691),T=i(N),M=n(1692),y=i(M),D=n(1693),O=i(D),P=n(1694),b=i(P),R=n(1695),L=i(R),G=n(1696),U=i(G),F=n(1697),w=i(F),k=n(1698),j=i(k),V=n(1699),B=i(V),$=n(1700),x=i($),H=n(1701),Y=i(H),K=n(1702),W=i(K),q=n(930),z=i(q),X=n(1703),Q=i(X),Z=n(1704),J=i(Z),ee=n(1705),te=i(ee),ne=n(1706),ie=i(ne),re=n(1707),oe=i(re),ue=n(1708),ae=i(ue),ce=n(1709),se=i(ce),le=n(1710),de=i(le),fe=angular.module("common.validation",[o["default"]||"common.form.input"]);fe.directive(Y["default"].NG_NAME,Y["default"]).directive(d["default"].NG_NAME,d["default"]).directive(p["default"].NG_NAME,p["default"]).directive(C["default"].NG_NAME,C["default"]).directive(B["default"].NG_NAME,B["default"]).directive(j["default"].NG_NAME,j["default"]).directive(x["default"].NG_NAME,x["default"]).directive(_["default"].NG_NAME,_["default"]).directive(I["default"].NG_NAME,I["default"]).directive(E["default"].NG_NAME,E["default"]).directive(v["default"].NG_NAME,v["default"]).directive(T["default"].NG_NAME,T["default"]).directive(y["default"].NG_NAME,y["default"]).directive(O["default"].NG_NAME,O["default"]).directive(b["default"].NG_NAME,b["default"]).directive(L["default"].NG_NAME,L["default"]).directive(Q["default"].NG_NAME,Q["default"]).directive(U["default"].NG_NAME,U["default"]).directive(w["default"].NG_NAME,w["default"]).directive(J["default"].NG_NAME,J["default"]).directive(te["default"].NG_NAME,te["default"]).directive(se["default"].NG_NAME,se["default"]).directive(de["default"].NG_NAME,de["default"]).directive(ie["default"].NG_NAME,ie["default"]).service("assigneeEmailValidator",z["default"]).service(a["default"].NG_NAME,a["default"]).service(W["default"].NG_NAME,W["default"]).service(oe["default"].NG_NAME,oe["default"]).service(ae["default"].NG_NAME,ae["default"]).provider("validationMessages",s["default"]),t.module=fe,t["default"]="common.validation"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={SHIPPER:"SP",RECEIVER:"RV",BUYER:"BY",ANY:"ANY"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={COMPANY:"COMPANY",GROUP:"GROUP",USER:"USER"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(957),a=i(u),c=n(480),s=i(c),l=n(419),d=i(l),f=n(484),p=i(f),m=n(485),_=i(m),g=n(2004),E=i(g),S=n(420),C=i(S),h=n(2006),I=i(h),A=n(2008),v=i(A),N=n(2009),T=i(N),M=n(2010),y=i(M),D=n(2011),O=i(D),P=angular.module("customsInvoiceUpload",[o["default"],a["default"],s["default"],d["default"],p["default"],_["default"]]);P.directive(E["default"].NG_NAME,E["default"]).service(C["default"].NG_NAME,C["default"]).service(I["default"].NG_NAME,I["default"]).service(T["default"].NG_NAME,T["default"]).service(v["default"].NG_NAME,v["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]),t.module=P,t["default"]="customsInvoiceUpload"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(){return o}function o(){function e(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return{countryCode:e.countryCode||undefined,countryName:e.countryName,countryDivisionName:e.countryDivisionName,countryDivisionCode:e.countryDivisionCode,countryDivisionTypeCode:e.countryDivisionTypeCode,cityName:e.city,citySuburbName:e.citySuburbName||undefined,postCode:e.zipOrPostCode,addressLine1:e.addrLine1,addressLine2:e.addrLine2,addressLine3:e.addrLine3,addressType:e.residentialAddress?w:k,serviceAreaCode:e.serviceAreaCode,facilityId:e.facilityId,streetNumber:e.streetNumber,cityCode:e.cityCode}}function t(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=e.returnShipment,o=t===undefined?e:t,u=e.returnShipping,a=u?o:e;n(a),i(a),F.model.mailingList=a.mailingList,F.model.rpaShipment=a.rpa,F.initialData={toContact:Object.assign({},F.model.toContact),fromContact:Object.assign({},F.model.fromContact)},F.model.isGlobalMailShipment=a.globalMailShipment,r(a)}function n(e){F.model.fromContact.copy(o(e.fromCustomer,e.fromContactKey)),F.model.fromContact.addressRevalidationNeeded=!0,F.model.fromContact.associatePaymentOptionsWithCustomer=e.fromCustomer&&e.fromCustomer.associatePaymentOptionsWithCustomer}function i(e){F.model.toContact.copy(o(e.toCustomer,e.toContactKey)),F.model.toContact.addressRevalidationNeeded=!0,F.model.toContact.associatePaymentOptionsWithCustomer=e.toCustomer&&e.toCustomer.associatePaymentOptionsWithCustomer,F.model.toContact.businessModel=e.businessModel,F.model.toContact.additionalNotes=e.additionalNotes}function r(e){var t=e.deliveryServicePointId;F.model.isDeliveryToServicePointSelected=!!t,F.model.deliveryToServicePoint=t?{servicePointId:t}:null}function o(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=arguments[1],n=e.taxDetails,i=n===undefined?{}:n;return{name:e.name,email:e.email,company:e.company,addressDetails:c(e.address),key:t,phoneDetails:(0,a.createPhoneDetails)(e.phoneDetails),phoneDetails2:(0,a.createPhoneDetails)(e.phoneDetails2),cnpjOrCPFTaxType:i.cnpjOrCPFTaxType,cnpjOrCPFTaxID:i.cnpjOrCPFTaxID,isCnpjOrCPFTaxIDValid:S(!!i.cnpjOrCPFTaxID),ieTaxId:i.ieTaxId,taxDetails:{vatTaxId:i.vatTaxId,eoriNumber:i.eoriNumber,goodsAndServicesTaxId:i.goodsAndServicesTaxId,gstinType:i.gstinType,iecTaxId:i.iecTaxId,ein:i.ein},businessContactType:e.businessContactType||E["default"].PRIVATE,personalIdentifiableInformation:e.personalIdentifiableInformation||[]}}function c(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return{countryCode:e.countryCode,city:e.cityName,citySuburbName:e.citySuburbName,countryDivisionName:e.countryDivisionName,countryDivisionCode:e.countryDivisionCode,countryDivisionTypeCode:e.countryDivisionTypeCode,zipOrPostCode:e.postCode,addrLine1:e.addressLine1,addrLine2:e.addressLine2,addrLine3:e.addressLine3,serviceAreaCode:e.serviceAreaCode,facilityId:e.facilityId,streetNumber:e.streetNumber,cityCode:e.cityCode,residentialAddress:e.addressType===w}}function s(){return{additionalNotes:F.model.toContact.additionalNotes,fromContactKey:m(F.model.fromContact),fromCustomer:g(F.model.fromContact),toContactKey:m(F.model.toContact),toCustomer:g(F.model.toContact),businessModel:F.model.toContact.businessModel,globalMailShipment:F.model.isGlobalMailShipment,deliveryServicePointId:f()}}function f(){return F.model.isDeliveryToServicePointSelected&&F.model.deliveryToServicePoint?F.model.deliveryToServicePoint.servicePointId:null}function m(e){return(!e.isContactChanged||F.model.isGlobalMailShipment)&&e.key||l.DEFAULT_CONTACT_KEY}function g(e){return{name:e.name,email:S(e.email),company:e.company||"",address:h(e.addressDetails),phoneDetails:(0,a.createPhoneDetails)(e.phoneDetails),phoneDetails2:(0,a.createPhoneDetails)(e.phoneDetails2),taxDetails:{vatTaxId:e.taxDetails.isVatTaxIdAvailable&&e.taxDetails.vatTaxId||"",eoriNumber:e.taxDetails.eoriNumber,goodsAndServicesTaxId:e.taxDetails.goodsAndServicesTaxId,gstinType:e.taxDetails.gstinType,cnpjOrCPFTaxType:e.cnpjOrCPFTaxType,cnpjOrCPFTaxID:e.cnpjOrCPFTaxID,ieTaxId:S(e.ieTaxId),iecTaxId:S(e.taxDetails.iecTaxId),ein:S(e.taxDetails.ein)},associatePaymentOptionsWithCustomer:e.associatePaymentOptionsWithCustomer,businessContactType:e.businessContactType||E["default"].PRIVATE,personalIdentifiableInformation:C(e.personalIdentifiableInformation)}}function S(e){return e||null}function C(e){return(0,l.getValidPersonalInformation)(e)}function h(t){return new e(t)}function I(){return{from:F.model.fromContact.addressDetails.countryName,to:F.model.toContact.addressDetails.countryName}}function A(){return(F.model.mailingList||{}).contacts}function v(){return F.model.mailingListCountries}function N(){return F.model.fromContact.addressDetails.countryCode}function T(){return F.model.toContact.addressDetails.countryCode}function M(){return{fromContactKey:F.model.fromContact.key,toContactKey:F.model.toContact.key}}function y(){return D(F.model.fromContact)}function D(e){return Object.assign({contactName:e.name,companyName:e.company},e.addressDetails)}function O(){return F.model.fromContact}function P(){return F.model.toContact}function b(){return u({},R(),L())}function R(){var e=F.model.fromContact.addressDetails;return{fromCountry:e.countryCode,fromCity:e.city,fromPostalCode:e.zipOrPostCode,fromServiceAreaCode:e.serviceAreaCode,fromCountryDivisionCode:e.countryDivisionCode,fromCitySuburbName:e.citySuburbName||undefined}}function L(){var e=F.model.toContact.addressDetails;return{toCountry:e.countryCode,toCity:e.city,toPostalCode:e.zipOrPostCode,toServiceAreaCode:e.serviceAreaCode,toCountryDivisionCode:e.countryDivisionCode,toCitySuburbName:e.citySuburbName||undefined}}function G(){return N()===_["default"].BRAZIL}function U(){return T()===_["default"].BRAZIL}var F=this,w=p["default"].RESIDENTIAL,k=p["default"].BUSINESS;Object.assign(F,{model:{fromContact:new d["default"],toContact:new d["default"],additionalNotes:"",isFromToCountryChanged:!1},initDataPart:t,getDataPart:s,getShipmentCountry:N,getDestinationCountry:T,getShipperReceiverCountries:I,getMailingListContacts:A,getMailingListCountries:v,getAddressDetails:c,getContactDataAddressDetails:h,getContactFields:o,getToFromAddress:b,getPersonalIdentifiableInformation:C,getContactsKeys:M,getFormattedShipperAddress:y,getShipperAddress:O,getReceiverAddress:P,getContactAddressFrom:R,getContactAddressTo:L,isShipperFromBrazil:G,isReceiverFromBrazil:U})}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t0,documentDescription:t.documentDescription,additionalDocumentDescription:t.additionalDocumentDescription,predefinedDocumentDescription:t.predefinedDocumentDescription,serviceType:t.serviceType,customsInvoice:t.customsInvoice,dutiable:t.dutiable,isGlobalMilitary:t.globalMilitary,isLineItemMandatory:t.lineItemMandatory}),xe.itemAttributes.currentCurrency=e.isB2lShipment()?null:t.shipmentCurrency,xe.itemAttributes.totalDeclaredValue=xe.itemAttributes.restoredDeclaredValue=t.totalDeclaredValue,xe.itemAttributes.isDeclaredValueVisible=!!t.totalDeclaredValue,xe.packageDescription=a()?xe.documentDescription:"",xe.isShipmentPurposeVisible=!(!t.customsInvoice||!t.customsInvoice.reasonForExport),O(t,t.fromCustomer?t.fromCustomer.address.countryCode:null),D()}function D(){var n=e.isRestoredShipment()&&s()&&!!xe.itemAttributes.productList.length;t.setLineItemsShowed(n)}function O(n,r){var o=n.customsInvoice,u=n.assignShipment;xe.isItemsDetailChecked=o&&o.providedByUser,e.clearUploadedItemsForAssignee(xe.customsInvoice,u),t.setCustomsInvoiceData({invoice:o,model:xe.itemAttributes,fromCountry:r}),b(o),P(o)&&(xe.enhancedInvoice.template.references=angular.copy(o.references),xe.isInvoiceNumberIncluded=!!o.references.invoiceNumber),t.restoreCustomsInvoiceItemDetailType(o,xe),e.mapEnhancedInvoiceDeclarations(xe),o&&o.enhanced&&(xe.documentDescription=xe.documentDescription||xe.getDocumentDescription(),xe.preloadedEnhancedInvoice=!0,i.setEnhancedInvoiceData(xe.enhancedInvoice,o,r),N(!0))}function P(e){return e&&!e.enhanced&&e.references&&(e.references.invoiceNumber||e.references.remarks)}function b(e){R(xe.enhancedInvoice,e),G(e);var t=xe.enhancedInvoice.template.references;t.invoiceNumber=t.invoiceNumber||xe.itemAttributes.gstData.originInvoiceNumber}function R(e,t){if(t){var n=t.bankDetails;e.template.bankDetails=n,e.bankDetailsVisible=L(n)}}function L(e){return!(!e||!Object.keys(e).length)}function G(e){e&&e.indiaCustomsInvoice&&(xe.itemAttributes.supplyDetails=e.indiaCustomsInvoice.supplyDetails,xe.itemAttributes.usingECommerce=e.indiaCustomsInvoice.usingECommerce)}function U(){return xe.insuranceVisible&&xe.insuranceValue&&xe.insureShipment?xe.insuranceValue:null}function F(){return V()&&1===xe.itemAttributes.productList.length?xe.itemAttributes.productList[0].description:ae()}function w(){return xe.isLineItemMandatory||!xe.isItemsDetailChecked}function k(e){We=e}function j(){return We}function V(){return xe.isCustomsInvoiceAvailable&&w()}function B(e){if(t.isNotFullCustomsInvoiceNeeded(xe))return{customsInvoice:Se()?x():null};var n=u({},t.getCustomsInvoiceData(xe,e,xe.isGlobalMilitary),K(!0));return $()?ee(n):H(xe.enhancedInvoice.template.references)&&(n.references=xe.enhancedInvoice.template.references),n.description=xe.documentDescription,{customsInvoice:n}}function $(){return T()&&c()}function x(){var e=K(!1),t=Y();return e.references={invoiceNumber:t},e}function H(e){return e&&(e.invoiceNumber||e.remarks&&!s())}function Y(){return xe.enhancedInvoice.template.references&&xe.enhancedInvoice.template.references.invoiceNumber}function K(n){var r=angular.copy(xe.enhancedInvoice.declaration);return r.role=e.isInvoiceRoleAvailable(xe)?r.invoiceRole:null,i.setSingleLogoFromLogoList(r),i.clearHiddenDeclarationFields(r),u({declaration:r,providedByUser:xe.isItemsDetailChecked},t.getShippingPurpose(xe,n),W())}function W(){return{bankDetails:xe.enhancedInvoice.bankDetailsVisible?xe.enhancedInvoice.template.bankDetails:null,gstData:Q(),indiaCustomsInvoice:z()}}function q(){return xe.isShipmentTypeCategoriesAvailable&&xe.shipmentTypeCategory===A["default"].NON_GIFT_NON_SAMPLE}function z(){if(!q())return null;var e=xe.itemAttributes,t=e.supplyDetails,n=e.usingECommerce;return{supplyDetails:X(t),usingECommerce:n}}function X(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return{supplyDate:e.supplyDate||null,supplyPlace:e.supplyPlace||null}}function Q(){if(!xe.itemAttributes.gstData.gstSectionVisible)return null;var e=angular.copy(xe.itemAttributes.gstData);return e.gstInvoiceNumber||(e.gstInvoiceDate=null),Z(e)&&(e.originInvoiceDate=null),e.suppliedForExport!==h["default"].YES&&(e.totalInrPaid=null),J(e)}function Z(e){return!e.originInvoiceNumber&&!E()}function J(e){return["gstIdentifier","gstinType","gstInvoiceNumber","gstInvoiceDate","originInvoiceNumber","originInvoiceDate","suppliedForExport","againstBond","totalInrPaid","gstWaybillData"].reduce(function(t,n){return t[n]=e[n]||null,t},{})}function ee(e){var t=i.getEnhancedInvoiceData(xe.enhancedInvoice);t.declaration=t.declaration||{},Object.assign(t.declaration,e.declaration),e.involvedParties=e.involvedParties||{},e.involvedParties.shipper=t.shipper,Object.assign(e,t)}function te(e,t){xe.insuranceValue=e,xe.insuranceCurrency=t,xe.insureShipment=!0}function ne(){xe.insureShipment=!1}function ie(){xe.extendedLiability=!0}function re(){xe.extendedLiability=!1}function oe(){var e=T()?ae():F();if(e)return ue(e)}function ue(e){return e.name||e.slice(0,200)}function ae(){return r()?xe.documentDescription:xe.packageDescription}function ce(){var e=u({type:xe.shipmentType,typeCategory:xe.shipmentTypeCategory||null,customsInvoiceType:_(),customsInvoiceItemDetailType:xe.customsInvoiceItemDetailType||null,totalDeclaredValue:me(),shipmentCurrency:xe.itemAttributes.currentCurrency,insuranceCurrency:U()?xe.insuranceCurrency:null,insuranceValue:U(),insured:fe(),extendedLiability:de(),documentDescription:oe(),additionalDocumentDescription:r()?xe.additionalDocumentDescription:null,predefinedDocumentDescription:xe.predefinedDocumentDescription,serviceType:xe.serviceType,dutiable:xe.dutiable,globalMilitary:xe.isGlobalMilitary},B(xe.isCsbvShipment()));return se(e),e}function se(e){var t=n.isAuthorized();t||(e.additionalInfo=xe.additionalInfo),t&&(e.lineItemMandatory=!!xe.isLineItemMandatory)}function le(){return xe.shipmentType}function de(){return pe("extendedLiability",S["default"].DOCUMENT)}function fe(){return pe("insureShipment",S["default"].PACKAGE)}function pe(e,t){return xe.isAssignSaveAction||le()===t?xe[e]:null}function me(){var e=xe.itemAttributes.totalDeclaredValue;return xe.itemAttributes.isDeclaredValueVisible&&e?parseFloat(e.toFixed(3)):null}function _e(e){He=e}function ge(){return He}function Ee(){return qe}function Se(){return Ce()||he()}function Ce(){return a()&&(xe.isDutiable||ge())}function he(){return r()&&ge()}function Ie(){return a()&&(!xe.customsInvoiceItemDetailType||!xe.isDutiable&&!ge())}function Ae(){return r()&&!ge()}function ve(){return(Ae()||Ie())&&xe.itemAttributes.isDeclaredValueVisible}function Ne(e,t){return r()||a()&&Te(e,t)}function Te(t,n){return!e.isServiceTypeSelectorAvailable(xe.shipmentType,t,n)||Boolean(xe.serviceType)}function Me(){return!E()&&Se()}function ye(e){return r()||De(e)}function De(e){return a()&&(!xe.isDutiable&&!Se()||Oe(e))}function Oe(e){return e||T()}function Pe(){return c()&&!E()&&T()}function be(){return a()&&s()}function Re(){return r()&&s()}function Le(){return c()&&T()}function Ge(e){qe=e}function Ue(){return!Le()&&!s()}function Fe(){return r()?"documentDescription":"packageDescription"}function we(){return xe.itemAttributes.gstData.suppliedForExport===h["default"].YES&&q()}function ke(e){return xe.itemAttributes.shippingPurposeList.filter(function(t){return e&&e[xe.shipmentTypeCategory]&&e[xe.shipmentTypeCategory].includes(t.reasonForExport)})}function je(){return I()&&xe.itemAttributes.productList.length>0}function Ve(){return e.isUploadedCurrencyApplicable(xe)}function Be(){xe.itemAttributes.uploadedCurrency=null}function $e(){var e=xe.itemAttributes.productList;return C()?e.filter(function(e){return!e.fromUpload}):e}var xe=Object.assign(this,new v,{shipmentTypes:S["default"],customsInvoiceTypes:m["default"],isShipmentAssigned:o,isShipmentTypeDocument:r,isShipmentTypePackage:a,isCreatingCustomsInvoice:c,isUsingOwnCustomsInvoice:s,isEnhancedInvoiceCompleted:E,setEnhancedInvoiceCompletion:N,setIncludeCustomsInvoiceAnyway:k,getIncludeCustomsInvoiceAnyway:j,isEnhancedInvoiceVisited:T,setEnhancedInvoiceVisited:M,setInsurance:te,removeShipmentInsurance:ne,getExtendedLiability:de,setExtendedLiability:ie,removeExtendedLiability:re,initDataPart:y,getDocumentDescription:F,getDataPart:ce,getShipmentType:le,setCommercialInvoiceEnabled:_e,setUseMyOwnInvoiceEnabled:Ge,isCommercialInvoiceAvailableForCurrentShipmentType:Se,isCustomsAdditionalDocumentsVisible:Ue,isTotalDeclaredValueVisible:ve,isNextButtonVisible:Ne,isEnhancedCustomsInvoiceVisible:Me,isAllShipmentReferencesVisible:ye,isEnhancedInvoiceIncomplete:Pe,isUsingOwnInvoiceForPackages:be,isUsingOwnInvoiceForDocuments:Re,isCreatingEnhancedInvoice:Le,isUseMyOwnInvoiceEnabled:Ee,isShipmentTypeCategoryMissing:p,isCsbvShipment:q,isOnlyInrCurrency:we,isCommercialInvoiceVisibleForDocuments:he,isDescribeTypeCustomInvoice:C,isUploadTypeCustomInvoice:I,isUploadTypeCustomInvoiceWithItemAttributes:je,isLineItemsAvailable:w,isUploadedCurrencyApplicable:Ve,isCustomsInvoiceFullyAvailable:V,dropInvoiceType:f,getDescriptionType:Fe,getAvailableIndiaShippingPurposes:ke,resetUploadedCurrency:Be,getLineItemsBasedOnInvoiceType:$e}),He=!1,Ye=!1,Ke=!1,We=!1,qe=!1}o.$inject=["shipmentTypeService","itemAttributesService","userService","enhancedInvoiceService"],t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;tthis.maxTotalQuantity}return e}(),t.prototype.calculateTotalQuantity=function(){function e(){return this.calculateTotalFilter(this.packagesRows,"quantity")}return e}(),t}(c["default"]);t["default"]=g},,,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,SPACE:32}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1291),a=i(u),c=n(1292),s=i(c),l=angular.module("gradualEngagement",[o["default"]||"common.utils"]);l.service(a["default"].NG_NAME,a["default"]).directive(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="gradualEngagement"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(410),o=i(r),u=n(1446),a=i(u),c=n(69),s=i(c),l=n(921),d=i(l),f=n(1456),p=i(f),m=n(1458),_=i(m),g=n(1461),E=i(g),S=n(1463),C=i(S),h=n(1467),I=i(h),A=n(1470),v=i(A),N=n(1473),T=i(N),M=n(83),y=i(M),D=n(1485),O=i(D),P=n(1489),b=i(P),R=n(1494),L=i(R),G=n(1500),U=i(G),F=n(1505),w=i(F),k=n(1508),j=i(k),V=n(1516),B=i(V),$=n(1519),x=i($),H=n(37),Y=i(H),K=n(1525),W=i(K),q=n(1529),z=i(q),X=n(1533),Q=i(X),Z=n(1536),J=i(Z),ee=n(1537),te=i(ee),ne=n(1539),ie=i(ne),re=n(1540),oe=i(re),ue=n(1542),ae=i(ue),ce=n(1543),se=i(ce),le=n(1545),de=i(le),fe=n(1546),pe=i(fe),me=n(1548),_e=i(me),ge=n(1549),Ee=i(ge),Se=n(1550),Ce=i(Se),he=n(1552),Ie=i(he),Ae=n(1554),ve=i(Ae),Ne=n(1555),Te=i(Ne),Me=n(1556),ye=i(Me),De=n(1557),Oe=i(De),Pe=n(1559),be=i(Pe),Re=n(1561),Le=i(Re),Ge=n(1562),Ue=i(Ge),Fe=n(1564),we=i(Fe),ke=n(1566),je=i(ke),Ve=n(1567),Be=i(Ve),$e=n(1568),xe=i($e),He=n(1570),Ye=i(He),Ke=n(1571),We=i(Ke),qe=n(1572),ze=i(qe),Xe=n(1573),Qe=i(Xe),Ze=n(1574),Je=i(Ze),et=n(1575),tt=i(et),nt=n(1576),it=i(nt),rt=n(1577),ot=i(rt),ut=n(1578),at=i(ut),ct=n(1580),st=i(ct),lt=n(1581),dt=i(lt),ft=n(1583),pt=i(ft),mt=n(1585),_t=i(mt),gt=n(1586),Et=i(gt),St=n(1587),Ct=i(St),ht=n(1589),It=i(ht),At=n(1591),vt=i(At),Nt=n(1592),Tt=i(Nt),Mt=n(1593),yt=i(Mt),Dt=n(1594),Ot=i(Dt),Pt=n(1595),bt=i(Pt),Rt=n(1597),Lt=i(Rt),Gt=n(1598),Ut=i(Gt),Ft=n(1599),wt=i(Ft),kt=n(1600),jt=i(kt),Vt=n(1602),Bt=i(Vt),$t=n(1603),xt=i($t),Ht=n(1604),Yt=i(Ht),Kt=n(1606),Wt=i(Kt),qt=n(1607),zt=i(qt),Xt=n(1608),Qt=i(Xt),Zt=n(1609),Jt=i(Zt),en=n(1610),tn=i(en),nn=n(1611),rn=i(nn),on=n(1612),un=i(on),an=n(1613),cn=i(an),sn=n(1614),ln=i(sn),dn=n(1615),fn=i(dn),pn=n(1616),mn=i(pn),_n=n(1617),gn=i(_n),En=n(1618),Sn=i(En),Cn=n(1619),hn=i(Cn),In=n(1621),An=i(In),vn=n(1623),Nn=i(vn),Tn=n(1625),Mn=i(Tn),yn=n(1626),Dn=i(yn),On=n(1627),Pn=i(On),bn=n(1628),Rn=i(bn),Ln=n(1629),Gn=i(Ln),Un=n(1630),Fn=i(Un),wn=n(1631),kn=i(wn),jn=n(1632),Vn=i(jn),Bn=angular.module("common.widgets",[o["default"],d["default"],a["default"]||"common.widgets.grid",s["default"],p["default"],_["default"],E["default"],C["default"],I["default"],v["default"],y["default"]||"common.validation",T["default"],O["default"],b["default"],L["default"],U["default"],w["default"],j["default"],B["default"],x["default"],W["default"],Y["default"],z["default"],Q["default"]]);Bn.run(kn["default"]).directive(J["default"].NG_NAME,J["default"]).directive(te["default"].NG_NAME,te["default"]).directive(ie["default"].NG_NAME,ie["default"]).directive(oe["default"].NG_NAME,oe["default"]).directive(ae["default"].NG_NAME,ae["default"]).directive(se["default"].NG_NAME,se["default"]).service(de["default"].NG_NAME,de["default"]).directive(pe["default"].NG_NAME,pe["default"]).service(_e["default"].NG_NAME,_e["default"]).directive(Ee["default"].NG_NAME,Ee["default"]).directive(Ce["default"].NG_NAME,Ce["default"]).directive(Ie["default"].NG_NAME,Ie["default"]).directive(Gn["default"].NG_NAME,Gn["default"]).directive(Fn["default"].NG_NAME,Fn["default"]).directive(ve["default"].NG_NAME,ve["default"]).service(Te["default"].NG_NAME,Te["default"]).directive(ye["default"].NG_NAME,ye["default"]).directive(Oe["default"].NG_NAME,Oe["default"]).directive(be["default"].NG_NAME,be["default"]).service(Le["default"].NG_NAME,Le["default"]).directive(Ue["default"].NG_NAME,Ue["default"]).directive(we["default"].NG_NAME,we["default"]).directive(xe["default"].NG_NAME,xe["default"]).directive(Ye["default"].NG_NAME,Ye["default"]).directive(ze["default"].NG_NAME,ze["default"]).directive(Qe["default"].NG_NAME,Qe["default"]).directive(We["default"].NG_NAME,We["default"]).directive(je["default"].NG_NAME,je["default"]).directive(Be["default"].NG_NAME,Be["default"]).directive(Je["default"].NG_NAME,Je["default"]).service(it["default"].NG_NAME,it["default"]).directive(ot["default"].NG_NAME,ot["default"]).directive(at["default"].NG_NAME,at["default"]).service(st["default"].NG_NAME,st["default"]).directive(dt["default"].NG_NAME,dt["default"]).directive(tt["default"].NG_NAME,tt["default"]).directive(pt["default"].NG_NAME,pt["default"]).service(_t["default"].NG_NAME,_t["default"]).directive(Et["default"].NG_NAME,Et["default"]).directive(Ct["default"].NG_NAME,Ct["default"]).directive(It["default"].NG_NAME,It["default"]).directive(Ut["default"].NG_NAME,Ut["default"]).directive(vt["default"].NG_NAME,vt["default"]).directive(Tt["default"].NG_NAME,Tt["default"]).directive(yt["default"].NG_NAME,yt["default"]).service(Ot["default"].NG_NAME,Ot["default"]).directive(bt["default"].NG_NAME,bt["default"]).directive(Lt["default"].NG_NAME,Lt["default"]).directive(wt["default"].NG_NAME,wt["default"]).service(jt["default"].NG_NAME,jt["default"]).directive(Bt["default"].NG_NAME,Bt["default"]).service(xt["default"].NG_NAME,xt["default"]).service(Yt["default"].NG_NAME,Yt["default"]).service(Wt["default"].NG_NAME,Wt["default"]).directive(zt["default"].NG_NAME,zt["default"]).directive(Qt["default"].NG_NAME,Qt["default"]).service(Jt["default"].NG_NAME,Jt["default"]).service(tn["default"].NG_NAME,tn["default"]).directive(rn["default"].NG_NAME,rn["default"]).directive(un["default"].NG_NAME,un["default"]).directive(cn["default"].NG_NAME,cn["default"]).directive(ln["default"].NG_NAME,ln["default"]).directive(fn["default"].NG_NAME,fn["default"]).directive(gn["default"].NG_NAME,gn["default"]).directive(hn["default"].NG_NAME,hn["default"]).directive(An["default"].NG_NAME,An["default"]).directive(Nn["default"].NG_NAME,Nn["default"]).service(mn["default"].NG_NAME,mn["default"]).service(Vn["default"].NG_NAME,Vn["default"]).directive(Mn["default"].NG_NAME,Mn["default"]).directive(Dn["default"].NG_NAME,Dn["default"]).directive(Sn["default"].NG_NAME,Sn["default"]).directive(Pn["default"].NG_NAME,Pn["default"]).directive(Rn["default"].NG_NAME,Rn["default"]),t.module=Bn,t["default"]="common.widgets"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){"ngInject";i(this,e),this.name="",this.initialized=!1,this.restored=!1,this.passed=!1,this.isWaterfallsFlow=!0,this.independent=!1,this.editModeActive=null,this.submitOptions=null,this.pendingRequestService=t}return e.$inject=["pendingRequestService"],e.prototype.init=function(){function e(){this.onInit(),this.initialized=!0}return e}(),e.prototype.nextCallback=function(){function e(){}return e}(),e.prototype.editCallback=function(){function e(){}return e}(),e.prototype.onInit=function(){function e(){}return e}(),e.prototype.onNextClick=function(){function e(){this.nextCallback()}return e}(),e.prototype.onEditClick=function(){function e(){this.editCallback()}return e}(),e.prototype.getName=function(){function e(){return this.name}return e}(),e.prototype.edit=function(){function e(){this.restored&&(this.init(),this.restored=!1),this.onEdit(),this.editModeActive=!0}return e}(),e.prototype.onEdit=function(){function e(){}return e}(),e.prototype.preview=function(){function e(){this.editModeActive=!1}return e}(),e.prototype.isValid=function(){function e(){}return e}(),e.prototype.setNextCallback=function(){function e(e){this.nextCallback=e}return e}(),e.prototype.setEditCallback=function(){function e(e){this.editCallback=e}return e}(),e.prototype.isContentShown=function(){function e(){return this.editModeActive&&!this.skipped}return e}(),e.prototype.isSynopsisShown=function(){function e(){return!1===this.editModeActive&&!this.skipped&&!this.isSynopsisHidden}return e}(),e.prototype.isNextButtonDisabled=function(){function e(){return this.pendingRequestService.isPresentPendingRequest()}return e}(),e}();t["default"]=r},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={SELECT_ONE:undefined,YES:"YES",NO:"NO",NA:"NA"};t.TAX_PAYMENT_OPTIONS={NOT_APPLICABLE:"NOT_APPLICABLE",AGAINST_BOND:"AGAINST_BOND",IGST:"IGST"},t.TRANSACTION_TYPES={SELECT_ONE:undefined,REGULAR:"REGULAR",BILL_SHIP_FROM:"BILL_SHIP_FROM"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1903),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("shipment.payment.resources",[]);o.service(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="shipment.payment.resources"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(){function e(e){var t=e.references,n=t===undefined?[]:t;n.length&&(u.primaryReference=n.find(function(e){return e.type===c["default"].PRIMARY}),r(n),o(n),u.isRetainRequired=!0)}function t(){return[u.primaryReference||{}].concat(u.additionalReferences).filter(function(e){return!!e.name}).map(function(e,t){return{name:e.name,type:t?c["default"].ADDITIONAL:c["default"].PRIMARY}})}function n(){var e=t();return i(e),{references:e}}function i(e){if(u.secondaryReference.name){var t=u.secondaryReference,n=t.name,i=t.type;e.push({name:n,type:i})}}function r(e){var t=e.find(function(e){return e.type===c["default"].SECONDARY});t&&(u.secondaryReference.name=t.name)}function o(e){u.additionalReferences=e.filter(function(e){return e.type===c["default"].ADDITIONAL})}var u=Object.assign(this,{initDataPart:e,getDataPart:n,getReferenceList:t,referenceList:[],initialReferenceList:[],secondaryReferenceList:[],initialSecondaryReferenceList:[],shownReferenceList:[],additionalReferences:[],maxReferencesNumber:50,primaryReference:{name:"",type:c["default"].PRIMARY},secondaryReference:{name:"",type:c["default"].SECONDARY}})}t.__esModule=!0,t["default"]=r;var o=n(11),u=i(o),a=n(951),c=i(a);r.prototype=new u["default"],r.NG_NAME="shipmentTypeReferencesModel"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]="errors.common_msg_server-error"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={EXISTING:"existing",BUILD:"build",MANAGE:"manage",FTP:"ftp"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2325),o=i(r),u=n(416),a=i(u),c=n(978),s=i(c),l=n(981),d=i(l),f=n(86),p=i(f),m=n(2329),_=i(m),g=n(2331),E=i(g),S=n(2333),C=i(S),h=n(2334),I=i(h),A=n(2335),v=i(A),N=n(2336),T=i(N),M=n(2337),y=i(M),D=n(2338),O=i(D),P=n(2339),b=i(P),R=n(2340),L=i(R),G=n(2343),U=i(G),F=n(2344),w=i(F),k=n(2345),j=i(k),V=n(2346),B=i(V),$=n(2348),x=i($),H=n(2349),Y=i(H),K=angular.module("shipment.customs-declaration",[o["default"],a["default"],s["default"],d["default"],p["default"],_["default"],E["default"]]);K.directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]).directive(L["default"].NG_NAME,L["default"]).directive(U["default"].NG_NAME,U["default"]).directive(j["default"].NG_NAME,j["default"]).directive(B["default"].NG_NAME,B["default"]).directive(Y["default"].NG_NAME,Y["default"]).factory(v["default"].NG_NAME,v["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(w["default"].NG_NAME,w["default"]).service(x["default"].NG_NAME,x["default"]),t.module=K,t["default"]="shipment.customs-declaration"},,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(984),a=i(u),c=n(65),s=i(c),l=n(2381),d=i(l),f=n(2383),p=i(f),m=n(2384),_=i(m),g=n(2385),E=i(g),S=n(2386),C=i(S),h=n(2387),I=i(h),A=n(2388),v=i(A),N=n(2389),T=i(N),M=n(2390),y=i(M),D=n(2391),O=i(D),P=n(2392),b=i(P),R=n(2393),L=i(R),G=angular.module("shipment.labelless",[o["default"],a["default"],s["default"]]);G.service(v["default"].NG_NAME,v["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).directive(p["default"].NG_NAME,p["default"]).directive(_["default"].NG_NAME,_["default"]).directive(E["default"].NG_NAME,E["default"]).directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]).directive(d["default"].NG_NAME,d["default"]),t.module=G,t["default"]="shipment.labelless"},,,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(997),a=i(u),c=n(2456),s=i(c),l=angular.module("shipment.pickup.pickupWindow",[a["default"],o["default"]]);l.directive(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="shipment.pickup.pickupWindow"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2465),a=i(u),c=n(2469),s=i(c),l=n(2473),d=i(l),f=n(123),p=i(f),m=n(430),_=i(m),g=n(1002),E=i(g),S=n(1003),C=i(S),h=n(431),I=i(h),A=n(432),v=i(A),N=n(2477),T=i(N),M=n(2479),y=i(M),D=n(2480),O=i(D),P=angular.module("schedule.pickup.label.reference",[a["default"],s["default"],d["default"],_["default"],o["default"],p["default"]]);P.directive(E["default"].NG_NAME,E["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(I["default"].NG_NAME,I["default"]).service(v["default"].NG_NAME,v["default"]).service(C["default"].NG_NAME,C["default"]),t.module=P,t["default"]="schedule.pickup.label.reference"},,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={PROVIEW:"PROVIEW",ONLINEBILLING:"ONLINEBILLING",ITALIAN_PORTAL:"ITALIAN_PORTAL",ESECURE:"ESECURE"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",ONE_OFF_SHIPMENT:"ONE_OFF_SHIPMENT"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={VALIDATION_ERROR_KEYS:"ewfValid",PENDING_VALIDATION_KEYS:"pendingValidation",REQUIRED:"required",MIN_LENGTH:"minlength",MAX_LENGTH:"maxlength"}},function(e,t,n){"use strict";function i(e,t){return{alias:e,group:t,subGroup:arguments.length<=2||arguments[2]===undefined?" ":arguments[2],optional:!(arguments.length<=3||arguments[3]===undefined)&&arguments[3]}}t.__esModule=!0;var r,o=n(931),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=(r={},r[u["default"].ADDRESS_BOOK]={CI0709_B2B_B2C_OPTION:["b2b-b2c.option"," "],CI1047_AVAILABLE_PHONE_TYPES:["available.phone.types","Phone Types"],CI1048_DEFAULT_PHONE_TYPE:["default.phone.type","Phone Types",!0],CI1277_SUPPORTED_CHARSET_FOR_UPLOAD:["supported.charset.for.address.book.upload.files"," "],CI1278_COUNTRY_PHONE_NUMBER_LENGTH:["country.length.of.phone.number"," ",!0],CR0063_COMPANY_ADDRESS_BOOK_CREATE_CONTACTS:["company.address.book.create.contacts","Company address book"],CR0064_COMPANY_ADDRESS_BOOK_MODIFY_CONTACTS:["company.address.book.modify.contacts","Company address book"],CR0065_COMPANY_ADDRESS_BOOK_DELETE_CONTACTS:["company.address.book.delete.contacts","Company address book"],CR0066_COMPANY_ADDRESS_BOOK_IMPORT_CONTACTS:["company.address.book.import.contacts","Company address book"],CR0067_COMPANY_ADDRESS_BOOK_EXPORT_CONTACTS:["company.address.book.export.contacts","Company address book"],CR0069_GROUP_ADDRESS_BOOK_CREATE_CONTACTS:["group.address.book.create.contacts","Group address book"],CR0070_GROUP_ADDRESS_BOOK_MODIFY_CONTACTS:["group.address.book.modify.contacts","Group address book"],CR0071_GROUP_ADDRESS_BOOK_DELETE_CONTACTS:["group.address.book.delete.contacts","Group address book"],CR0072_GROUP_ADDRESS_BOOK_IMPORT_CONTACTS:["group.address.book.import.contacts","Group address book"],CR0073_GROUP_ADDRESS_BOOK_EXPORT_CONTACTS:["group.address.book.export.contacts","Group address book"],CR0093_RESTRICT_SHIPFROM_ADDRESS_ENABLED:["restrict.shipfrom.address.enabled","Restrict ShipFrom Address"],CR0095_RESTRICT_SHIPTO_ADDRESS_ENABLED:["restrict.shipto.address.enabled","Restrict ShipTo Address"]},r[u["default"].CURRENCY_LIST]={CI0053_DECLARED_DEFAULT_CURRENCY:["declared.default","Declared Value"]},r[u["default"].CUSTOMS]={CI1417_CUSTOMS_REGISTRATION_NUMBER_TYPES:["customs.registration.number.types"," ",!0],CI1419_PARTY_ROLES:["business.party.roles"," ",!0],CI1420_CUSTOMS_DOCUMENTS:["customs.documents","Document Types",!0],CI1422_LINE_ITEM_REFERENCE_TYPE_NUMBER_LIST:["line.item.reference.type.number","Line Item Reference",!0],CI1425_LINE_ITEM_REFERENCE_TYPE_AND_NUMBER_MANDATORY:["line.item.reference.type.and.number.mandatory","Line Item Reference"],CI1454_ADDITIONAL_LINE_ITEM_REFERENCE_TYPE_LIST:["additional.line.item.reference.type.number","Line Item Reference",!0],CI1423_OTHER_MONETARY_CHARGES:["other.monetary.charges","Other Charges",!0],CI1452_TAX_IDS_AND_PII_DATA_LIST:["tax.ids.and.pii.data","Other Charges",!0],CI1453_ENABLE_TAX_FIELDS_FOR_BUSINESS_PRIVATE_CONTACTS:["enable.tax.fields.for.business.private.contacts","Tax Fields Management",!0],CI1455_LIST_TAX_DOC_TYPE_MANDATORY_FOR_DUTIABLE_SHP:["tax.doc.type.mandatory.for.dutiable.shp","Tax Fields Management",!0],CI1456_LIST_TAX_USCI_CRN_MANDATORY_FOR_DUTIABLE_SHP:["usci.crn.mandatory.for.dutiable.shp","Tax Fields Management",!0]},r[u["default"].DASHBOARD]={CI1078_INDUSTRIAL_GROUP:["industrial.group"," "]},r[u["default"].EMAIL]={CI1040_FREQUENCY_FOR_EMAIL_ALERT_OPTION:["frequency.for.email.alert.option","Notification"],CI1039_TIME_TO_SEND_NO_ACTION_NOTIFICATION_EMAIL_TO_ASSIGNOR_OPTIONS:["time.to.send.no.action.notification.email.to.assignor.options","Notification"]},r[u["default"].GENERAL_SETTINGS]={CI0785_MAX_SUGGESTED_SEARCH_RESULTS:["maximum.no.of.suggested.search.results"," "],CI0815_ENABLE_GSPL:["enable.gspl"," "],CI0361_CR_NUMBER_MANDATORITY_FOR_COUNTRY:["cr.number.mandatority.country"," "],CI1396_CR_NUMBER_MANDATORITY_FOR_CORPORATE_AND_CUSTOMER:["cr.number.mandatority.corporate.customer"," ",!0],CI1031_MAX_DOCUMENT_UPLOAD_SIZE:["max.doc.upload.size.for.assign.shipment"," "],CI1032_SUPPORTED_DOCUMENT_FILE_FORMAT:["supported.doc.file.formats.for.assign.shipment"," "],CI0304_ORDER_SUPPLIES_LINK:["order.supplies.link"," "],CI1102_ALLOW_GUEST_TO_CREATE_SHIPMENTS:["allow.guest.to.create.shipments"," "],CI1426_DISPLAY_RATE_AND_QUOTE_TO_GUEST:["display.rate.and.quote.to.guest"," "],CI1053_ENABLE_GOOGLE_LIKE_SEARCH:["enable.googlelike.search"," "],CI0792_RECORDS_NUMBER:["maximum.number.of.records.to.display.in.item.description"," "],CI0713_NAVIGATION_WHEN_SAVE_AND_PRINT_BUTTON_CLICKED:["navigation.when.save.and.print.button.clicked"," "],CI0999_NON_ASCII_INPUT_ALLOWED:["non.ascii.input.allowed"," "],CI1272_NOT_ALLOWED_ASCII_INPUT:["not.allowed.ascii.input"," ",!0],CI0011_TERMS_AND_CONDITION_CONFIRMATION:["terms.and.condition.confirmation"," "],CI0619_PRIVACY_AND_COOKIES_POLICY:["privacy.and.cookies.policy"," "],CI1291_MIN_CHARS_TO_TRIGGER_AMS_IF_NO_MATCH_IN_ADDRESS_BOOK:["min.number.of.chars.for.triggering.google.like.search.if.there.is.no.match.search.in.address.book"," "],CI1292_MIN_CHARS_TO_TRIGGER_AMS_IF_MATCH_IN_ADDRESS_BOOK:["min.number.of.chars.for.triggering.google.like.search.if.there.is.a.match.search.in.address.book"," "],CI1293_TIME_BEFORE_TRIGGERING_AMS_IF_MATCH_IN_ADDRESS_BOOK:["wait.time.before.triggering.google.like.search.if.there.is.a.match.search.in.address.book"," "],CI1380_DISABLE_LOCAL_IMPORT_ACCOUNTS_IN_BILLING_REGIONS:["disable.local.import.accounts.in.billing.regions"," "],CI1450_ENABLE_DROP_OFF_FOR_ACCOUNT_HOLDERS:["enable.drop.off.for.account.holders"," "],CI0308_ALLOW_FOC_ACCOUNT:["allow.foc.account","Account Management"],CI0736_ALLOW_LOCAL_IMP_ACCOUNTS:["allow.local.imp.account","Account Management"],CI0960_DEFAULT_ACCOUNT_TYPE_AFTER_FIRST:["default.account.type.for.all.entered.accounts.after.the.first.account","Account Management"],CI0620_ALLOW_FOREIGN_IMP_ACCOUNTS:["allow.foreign.imp.account","Account Management"],CI1260_COUNTRY_ACTIVATION:["country.activation","Country Activation"],CI1189_ALLOW_ASSIGN_DEFAULT_ACCOUNT_FOR_CC_SHIPMENTS:["allow.corporate.admin.to.assign.default.account.for.credit.card.shipments","Registration"],CI0980_ALLOW_CASH_ACCOUNTS:["allow.cash.accounts","Registration"],CI0298_RPA_ENABLED:["rpa.enabled","RPA"],CI0628_DECIMAL_SEPARATOR:["decimal.separator","UOM"],CI0768_OTHER_UOMS_LIST:["other.uoms.list","UOM"],CI0811_NO_DIGITS_ALLOWED_NET_WEIGHT_GROSS_WEIGHT_ITEM_VALUE:["no.digits.allowed.net.weight.gross.weight.item.value","UOM"],CI1022_NO_OF_DECIMALS_ALLOWED_FOR_WEIGHT_AND_ITEM_VALUE:["no.of.decimals.allowed.for.weight.and.item.value","UOM"],CI1268_NO_OF_DIGITS_ALLOWED_FOR_PACKAGING_WEIGHT_AND_DIMENSIONS:["no.of.digits.allowed.for.packaging.weight.and.dimensions","UOM"],CI1269_NO_OF_DECIMALS_ALLOWED_FOR_PACKAGING_WEIGHT_AND_DIMENSIONS:["no.of.decimals.allowed.for.packaging.weight.and.dimensions","UOM"],CI0408_REMEMBER_LAST_INPUT_FOR_DESCRIPTION:["remember.last.input.for.description"," "],CI1358_FORCE_SSO_LOGIN:["force.sso.login","SSO",!0],CI1355_ACCESS_VIA_SSO_ENABLED:["access.via.sso.enabled","SSO",!0]},r[u["default"].GUI]={CI0101_MY_PROFILE_TAX_FG_IE:["my.profile.tax.fg.ie"," "],CI0251_INVOICE_DETAILS_ITEM_DESCRIPTION:["invoice.details.item.description"," "],CI0750_CATALOG_EXPORT_COMMODITY_CODE:["customer.product.catalog.export.commodity.code"," "],CI0751_CATALOG_IMPORT_COMMODITY_CODE:["customer.product.catalog.import.commodity.code"," "],CI0132_INVOICE_DETAILS_QUANTITY:["invoice.details.quantity"," "],CI0746_CUSTOMER_PRODUCT_CATALOG_UNIT_VALUE:["customer.product.catalog.unit.value"," "],CI0748_CUSTOMER_PRODUCT_CATALOG_NET_WEIGHT:["customer.product.catalog.net.weight"," "],CI0744_CATALOG_COUNTRY_OF_MANUFACTURE:["customer.product.catalog.country.of.manufacture"," "],CIF0233_NAME:["name"," "],CIF0234_COMPANY:["company"," "],CIF0236_ADDRESS_2:["address_2"," "],CIF0243_PHONE:["phone"," "],CIF0250_EMAIL:["email"," "],CIF0033_NICKNAME:["nickname.address.book"," "],CIF0066_EMAIL_ADDRESS_BOOK:["email.address.book"," "],CIF0217_DIMENSIONS_WIDTH:["dimensions.width"," "],CIF0218_DIMENSIONS_HEIGHT:["dimensions.height"," "],CIF0219_DIMENSIONS_LENGTH:["dimensions.length"," "],CIF0024_ADDRESS_1:["address.1"," "],CIF0120_VAT_TAX_ID:["vat.tax.id"," "],CIF0014_ACCOUNT_NICKNAME:["account.nickname"," "],CIF0046_EXTENSION:["extension"," "],CIF0125_SHIPMENT_DESCRIPTION:["shipment.description"," "],CIF0222_PACKAGE_REFERENCE:["package.reference"," "],CIF0278_NUMBER_OF_PACKAGES:["number.of.packages"," "],CIF0454_REASON_FOR_CANCELLATION:["reason.for.cancellation"," "],CIF0214_PACKAGING_NAME:["packaging.name"," "],CIF0314_GSTIN:["gstin"," "],CIF0315_GST_INVOICE_NUMBER:["gst.invoice.number"," "],CIF0316_GST_INVOICE_DATE:["gst.invoice.date"," "],CIF0317_COMM_PRO_INVOICE_DATE:["comm.pro.invoice.date"," "],CIF0320_TOTAL_IGST_PAID_INR:["total.igst.paid.inr"," "],CIF0321_HSN_CODE:["hsn.code"," "],CIF0322_REASON_FOR_TRANSPORTATION:["reason.for.transportation"," "],CIF0323_APPROX_DISTANCE_IN_KM:["approx.distance.in.km"," "],CIF0324_TRANSPORTER_ID:["transporter.id"," "],CIF0325_SHIPMENT_TYPE:["shipment.type"," "],CIF0326_DOCUMENT_TYPE:["document.type"," "],CIF0327_MODE_OF_TRANSPORT:["mode.of.transport"," "],CIF0328_TRUCK_NAME:["truck.name"," "],CIF0329_COMM_PRO_INVOICE_NO:["comm.pro.invoice.no"," "],CIF0331_GST_TRANSACTION_TYPE:["gst.transaction.type"," "],CIF0333_MASTER_REFERENCE_NUMBER:["master.reference.number"," "],CIF0334_EIN:["ein"," "],CIF0335_AD_CODE:["ad.code"," "],CIF0336_AC_CODE:["ac.code"," "],CIF0337_IFSC_CODE:["ifsc.code"," "],CIF0338_COMMODITY_TYPE:["commodity.type"," "],CIF0339_PLACE_OF_SUPPLY:["place.of.supply"," "],CIF0340_SUPPLY_DATE:["supply.date"," "],CIF0343_INDIA_CSBV_EXPORT_COMMODITY_CODE:["csbv.commodity.code"," "],CIF0347_ITEM_DISCOUNT:["item.discount"," "],CIF0348_ITEM_FOB_VALUE:["item.fob.value"," "],CIF0351_IGST:["igst"," "],CIF0353_MEIS:["meis"," "],CIF0354_ECOMMERCE_SHIPMENT:["eCommerce.shipment"," "],CIF0355_TAX_PAYMENT_OPTION:["tax.payment.option"," "],CIF0359_SHIPPER_TAX_DOCUMENT_TYPE:["shipper.tax.document.type"," "],CIF0360_SHIPPER_USCI_CODE:["shipper.usci.code"," "],CIF0361_SHIPPER_CRN:["shipper.crn"," "],CIF0362_RECEIVER_TAX_DOCUMENT_TYPE:["receiver.tax.document.type"," "],CIF0363_RECEIVER_USCI_CODE:["receiver.usci.code"," "],CIF0364_RECEIVER_CRN:["receiver.crn"," "],CIF0365_WHAT_IS_THE_ITEM:["what.is.the.item","Form Fields"],CIF0366_BRAND_OR_MANUFACTURE:["brand.or.manufacture","Form Fields"],CIF0367_WHICH_TYPE_STYLE_OR_MODEL_IS_IT:["which.type.style.or.model.is.it","Form Fields"],CIF0368_HOW_WILL_IT_BE_USED:["how.will.it.be.used","Form Fields"],CIF0369_WHAT_IS_IT_MADE_OF:["what.is.it.made.of","Form Fields"],CI0422_ADDRESS_ADDRESS_LINE_3:["Address.Address.line.3","Address Book"],CI0606_SHIPPER_ADDRESS_TAXID:["shipper.address.taxid","Address Book"],CIF0239_SUBURB:["suburb","Address Fields"],CIF0240_PROVINCE:["province","Address Fields"],CIF0241_POSTAL_CODE:["postal.code","Address Fields"],CIF0452_ZIP:["zip","Address Fields"],CIF0453_STATE:["state","Address Fields"],CI0248_INVOICE_EXPORT_CODE:["invoice.export.code","Invoice"],CI0249_INVOICE_EXPORT_ID:["invoice.export.id","Invoice"],CI0343_INVOICE_EORI:["invoice.eori","Invoice"],CI0864_INVOICE_JOB_TITLE:["invoice.job.title","Invoice"],CI0865_INVOICE_COMPANY_LOGO:["invoice.company.logo","Invoice"],CI0854_INVOICE_ULTIMATE_DESTINATION_COUNTRY:["invoice.ultimate.destination.country","Invoice"],CI0860_INVOICE_INVOICE_NO:["invoice.invoice.no","Invoice"],CI0855_INVOICE_RECEIVER_REFERENCE:["invoice.receiver.reference","Invoice"],CI0863_INVOICE_OTHER_REMARKS:["invoice.other.remarks","Invoice"],CI0862_INVOICE_TEXT_CLAUSES_REGULATIONS:["invoice.text.clauses.regulations","Invoice"],CI0252_INVOICE_NAME_DESTINATION_PORT:["invoice.name.destination.port","Invoice"],CI0254_INVOICE_TERMS_PAYMENT:["invoice.terms.payment","Invoice"],CI0859_INVOICE_DUTIES_TAXES_ACCOUNT:["invoice.duties.taxes.account","Invoice"],CI0852_INVOICE_BANK_DETAILS_FIELDS:["invoice.bank.details.fields","Invoice",!0],CIF0001_CUSTOMER_NAME_ENHANCED_INVOICE_DECLARATION:["invoice.customer.name","Invoice"],CIF0003_GUI_INVOICE_RUSSIAN_INVOICE_DETAILS_KPP:["russia.invoice.kpp","Invoice"],CIF0004_GUI_INVOICE_RUSSIAN_INVOICE_DETAILS_INN:["russia.invoice.inn","Invoice"],CIF0005_GUI_INVOICE_RUSSIAN_INVOICE_DETAILS_OGRN:["russia.invoice.ogrn","Invoice"],CIF0006_GUI_INVOICE_RUSSIAN_INVOICE_DETAILS_OKPO:["russia.invoice.okpo","Invoice"],CIF0007_GUI_INVOICE_RUSSIAN_INVOICE_DETAILS_SETTLEMENT_ACCOUNT_USD_EUR:["russia.invoice.settlement.account.usd.eur","Invoice"],CIF0008_GUI_INVOICE_RUSSIAN_INVOICE_DETAILS_SETTLEMENT_ACCOUNT_RUR:["russia.invoice.settlement.account.rur","Invoice"],CIF0009_GUI_INVOICE_RUSSIAN_INVOICE_DETAILS_BANK_NAME:["russia.invoice.bank.name","Invoice"],CI0601_SHIPMENT_SHIPMENT_REFERENCE:["shipment.shipment.reference","Shipment"],CI1384_FIELD_NOTIFICATIONS:["fields.notifications","Configure Fields Notifications"]},r[u["default"].LANE_ALERTS]={CI0711_LANE_ALERTS:["lane.alerts"," "],CI0712_LANE_ALERTING:["lane.alerting"," "]},r[u["default"].MANIFESTING]={CI0357_MANIFESTING_TYPE:["manifesting.type"," "],CI1169_SPLIT_TIME_DEFINITE_AND_ECONOMY_SELECT_MANIFEST:["split.time.definite.and.economy.select.manifest"," "]},r[u["default"].PAYMENT_OPTIONS]={CI0437_CUP_INTERVAL:["cup_interval_seconds"," "],CI0847_PAYMENT_CATEGORIES:["payment.categories"," "],CI1020_ADDITIONAL_TC_FOR_CREDIT_CARD:["additional.tc.for.credit.card"," "],CI0987_NOT_ALLOW_ONLINE_PAYMENT_FOR_DESTINATION_COUNTRIES:["do.not.allow.credit.card.payment.for.these.destinations"," "],CI1338_LIST_COD_PAYMENT_TYPE:["cash.on.delivery.list.of.payment.types","Cash On Delivery (COD)"],CI1306_ALLOW_SAVE_CREDIT_CARD_DATA:["allow.save.credit.card.data","Global Collect"],CI1398_ALLOW_NON_ACCOUNT_PAYMENT_TYPES_FOR_IMPORT_SHIPMENTS:["allow.non.account.payment.types.for.import.shipments","Non-Account payment types"],CI1290_ALLOW_NON_ACCOUNT_PAYMENT_TYPES_FOR_ACCOUNT_HOLDERS:["allow.non.account.payment.types.for.account.holders","Non-Account payment types"],CI1027_ENABLE_WALK_CLICK_CALL_PROMOTION:["enable.walk.click.call.promotion","Walk-Click-Call"],CI1028_WALK_CLICK_CALL_OPTIONS:["walk.click.call.options","Walk-Click-Call"],CI1134_WCC_PAYMENT_OPTIONS_LOGOS:["wcc.payment.options.logos","Walk-Click-Call"],CI1041_SELF_SERVICE_BOOKING_FORM:["self.service.booking.form","Walk-Click-Call"],CI1182_PRICE_DIFF_LIMIT:["price.difference.limit.for.drop.off.and.ship.online","Walk-Click-Call"],CI1437_ALLOW_WALK_USERS_TO_COMPLETE_SHIPMENT_DETAILS:["allow.walk.users.to.complete.shipment.details","Walk-Click-Call"],CI1307_TRUSTEV_MODE:["trustev.mode","Trustev",!0],CI1308_TRUSTEV_JAVASCRIPT_URL:["trustev.javascript.url","Trustev",!0],CI1309_TRUSTEV_PUBLIC_KEY:["trustev.public.key","Trustev",!0],CI1462_RESTRICT_BILLING_COUNTRY_CHANGE:["restrict.billing.country.change","Online Payment"]},r[u["default"].PICKUP]={CI0958_ENABLE_TSA_PRIVACY_ACT_NOTIFICATION:["enable.tsa.privacy.act.notification"," "],CI0873_MINIMAL_PICKUP_INTERVAL:["minimum.pickup.interval.for.customers.country"," "],CI0733_REQUEST_DHL_PACKAGING:["request.dhl.packaging"," "],CI0554_PICKUP_LOCATION:["pickup.location"," "],CI0989_ENABLE_PICKUP_LOCATION_OTHER:["enable.pickup.location.other"," "],CI0657_ALLOW_PICKUP_ONLY_WITH_AUTHORIZED_PICKUP_LOCATIONS:["allow.pickup.only.with.authorized.pickup.locations"," "],CI1448_EXCLUDE_AUTHORIZED_PICKUP_LOCATIONS_USAGE_FOR_FOREIGN_IMP_ACCOUNTS:["exclude.authorized.pickup.locations.usage.for.foreign.imp.accounts"," "],CI0555_MANDATORY_PICKUP_FOR_NON_ACCOUNT_USER:["pickup.mandatory.non.account.user"," "],CI0514_SELECT_PICKUP_DEFAULT:["select.pickup.by.default"," "],CI0508_ENABLE_PICKUP:["enable.pickup"," "],CI0954_WEIGHT_ALLOWED_FOR_PICKUP:["weight.allowed.for.pickup"," "],CI0882_ALLOW_USAGE_OF_IMP_FOR_PICKUP:["allow.usage.of.imp.for.pickup"," "],CI0194_MAX_DAYS_TO_BOOK_PICKUP_IN_ADVANCE:["maximum.days.to.book.pickup.in.advance"," "],CI0517_DISPLAY_NON_EWF_BOOKINGS:["display.non.ewf.bookings"," "],CI0976_NUMBER_APL_RESULT:["number.of.authorized.pickup.locations"," "],CI0338_ALLOW_REMOTE_PICKUP:["allow.remote.pickup"," "],CI0967_ACCEPT_REMOTE_ORDER_PICKUP:["accept.remote.order.pickup"," "],CI0992_OPTIONS_OFFERED_TO_THE_GUEST_CUSTOMER_STANDALONE_PICKUP:["options.offered.to.the.guest.customer.standalone.pickup"," "],CI0965_SEND_PICKUP_CONFIRMATION_EMAIL:["send.pickup.confirmation.email"," "],CI0966_SEND_PICKUP_ALERT_EMAIL:["send.pickup.alert.email"," "],CI1331_PICKUP_IS_OPTIONAL_FOR_CASH_ACCOUNT_SHIPMENTS:["pickup.is.optional.for.cash.account.shipments"," "],CI1381_ALLOW_SATURDAY_PICKUP:["allow.saturday.pickup"," "],CI1459_CANCELLATION_REASONS:["cancellation.reasons","CS Remote Booking"]},r[u["default"].PRODUCTS_AND_SERVICES]={CI1466_ENABLE_D2SP:["enable.d2sp","Delivery to Service Point"],CI1471_ENABLE_D2SP_CORPORATE:["enable.d2sp.corporate","Delivery to Service Point"],CI0075_DEFAULT_INSURANCE_CHECKBOX:["default.insurance.extended.liability.checkbox","Insurance"],CI1295_DEFAULT_EXTENDED_LIABILITY_CHECKBOX:["select.extended.liability.by.default","Insurance",!0],CI0469_INSURANCE_VISIBILITY:["insurance.visibility","Insurance"],CI0963_INSURANCE_TERMS_AND_CONDITION_POPUP:["insurance.terms.and.condition.popup","Insurance"],CI0057_PACKAGING_TYPE:["packaging.type","Packaging"],CI0755_FILE_TYPES_ALLOWED_FOR_COMPANY_LOGO:["allowed.file.types.for.company.logo","PLT"],CI0756_MAX_PIXELS_FOR_COMPANY_LOGO:["max.pixels.for.company.logo","PLT"],CI0757_MAX_FILE_SIZE_FOR_COMPANY_LOGO:["max.file.size.for.company.logo","PLT"],CI0799_MAX_FILE_SIZE_FOR_INVOICE:["max.file.size.for.invoice","PLT"],CI0518_MAX_FILES_PER_SHIPMENT:["maximum.number.of.files.per.shipment","PLT"],CI1305_ENABLE_PLT_FOR_ADVANCE_SHIPMENT:["enable.plt.for.advance.shipment","PLT"],CI1445_DEFAULT_PLT_SERVICE:["default.plt.service","PLT"],CI0623_PRODUCTS_UPSELL:["upsell.product","Products"],CI1081_INSURANCE_UPSELL:["upsell.insurance","Products"],CI1327_UPSELL_EXTENDED_LIABILITY:["upsell.extended.liability","Products"],CI0667_SERVICES_LIST:["service.list","Services"],CI1451_SERVICE_CODES_LIST:["service.codes.list","Service Codes"],CI1383_ENABLE_GLOBAL_MAIL:["enable.global.mail","Global Mail"],CI1434_ENABLE_LABELLESS_FOR_WALK_AND_CLICK_FLOWS:["enable.labelless.for.walk.and.click.flows","Label-Free"],CI1435_ENABLE_LABELLESS_FOR_DROP_OFF_AND_PICKUP:["enable.labelless.for.drop.off.and.pickup","Label-Free"],CI1439_NUMBER_OF_PIECES_IN_LABELLESS_SHIPMENT:["number.of.pieces.in.labelless.shipment","Label-Free"],CI1440_RADIUS_TO_SEARCH_FOR_LABELLESS_SERVICE_POINTS:["radius.to.search.for.labelless.servicepoints","Label-Free"],CI1441_OFFER_LABELLESS_VIA_SMS_FOR_EXPORT_SHIPMENTS:["offer.labelless.via.sms.for.export.shipments","Label-Free"]},r[u["default"].RATES_TARIFFS]={CI0450_SWAP_FEATURE:["swap.feature"," "],CI1075_DISPLAY_PRICE_BREAKDOWN_WALK_CLICK_CALL:["price.breakdown.displaying.for.rate.quote.walk.click.call"," "],CI0453_INCLUDE_PICKUP_CHARGE_IN_QUOTE_AVAILABLE:["include.pickup.charge.in.quote.available"," "],CI1076_DISPLAY_PUBLISHED_RATES_TOGETHER:["display.published.rates.together.with.credit.card.cash.rates.for.guest.in.rate.quote"," "],CI0451_DISPLAY_ACCOUNT_RATES:["display.account.rates","Hide Rate and Quote"],CI1294_DEFAULT_TO_HIDE_RATES_DURING_GRANT_AUTHORIZATION:["default.to.hide.rates.during.grant.authorization","Hide Rate and Quote"]},r[u["default"].REWARDS_PROMOTION]={CI0442_NECTAR_REWARDS_AVAILABLE:["nectar.rewards.available","Available Reward programs"],CI0441_DHL_PROMO_AVAILABILITY:["dhlpromo","Available Reward programs"],CI0658_NECTAR_CARD_PREFIX:["prefix","Nectar configuration"]},r[u["default"].RULES_REGULATION]={CI0964_DEFINE_OFAC_COUNTRY_LIST:["define.ofac.country.list","OFAC"],CI0970_SHIPPER_ALLOW_OFAC:["shipper.allow.ofac","OFAC"],CI0205_UN_SANCTION:["un.sanction","UN Sanction"],CI0191_INDEMNITY_LETTER:["indemnity.letter","UN Sanction"],CI0969_WARNING_ALERTS:["warning.alerts"," "],CI0971_DISPLAY_UN_SACTIONED_WARNING_ALERT:["display.un.sactioned.warning.alert"," "],CI1315_DATA_PRIVACY_DATA_PROTECTION_DISPLAY_SCREENS:["data.privacy.data.protection.display.screens","Data Privacy / Data Protection compliance"],CI1316_DATA_PRIVACY_DATA_PROTECTION_CONSENT_LIST:["data.privacy.data.protection.consent.list","Data Privacy / Data Protection compliance"],CI1319_LEGAL_REQUIREMENTS_FOR_CAPTURING_BILLING_ADDRESS_INFO_FOR_NON_ACC_HOLDERS:["legal.requirements.for.capturing.billing.address.information.for.non.account.holders"," "],CI1333_LIST_OF_ITAR_RESTRICTED_COUNTRY:["list.of.itar.restricted.country","ITAR"],CI1418_BIS_ECCN_EAR99_COMMODITY_RULE_COUNTRIES:["bis.eccn.ear99.commodity.rule.countries"," "],CI1368_ORIGIN_NOT_ALLOWED_FOR_RPA:["origin.not.allowed.for.rpa","RPA",!0],CI1457_LIST_PII_INFO_MESSAGE_TO_SPECIFIC_SOURCE_DESTINATION_USCI_CRN:["pii.info.message.to.specific.source.destination.usci.crn"," ",!0],CI1458_LIST_PII_INFO_MESSAGE_TO_SPECIFIC_SOURCE_DESTINATION_TAX_DOCUMENT_TYPE:["pii.info.message.to.specific.source.destination.tax.document.type"," ",!0],CI1485_SHIPMENT_INSPECTION_CONSENT:["shipment.inspection.consent"," "]},r[u["default"].SECURITY]={CI1093_NUMBER_OF_INVALID_ACCOUNT_NUMBER_ENTRY_ATTEMPTS:["number.of.invalid.account.number.entry.attempts","Account Number Check"],CI1094_LOCKING_TIME:["locking.time","Account Number Check"],CI0647_ENABLE_CAPTCHA:["enable.captcha","Captcha"],CI1443_ENABLE_VOICE_MODULE_FOR_CAPTCHA:["enable.voice.module.for.captcha","Captcha",!0]},r[u["default"].SHIPMENT_DEFAULTS]={CI0074_HIDE_INSURANCE_DECLARED_VALUE_FOR_DOCUMENT_SHIPMENTS:["hide.insurance.declared.value.for.document.shipments"," "],CI0071_DEFAULT_SHIPMENT_TYPE_FOR_GUEST_USER:["default.shipment.type.for.guest.user"," "],CI1304_DESCRIPTION_FIELD_FIXED_VALUES_DROPDOWN_FOR_DOCUMENT_SHIPMENT:["description.field.fixed.values.dropdown.for.document.shipment"," "],CI1484_BLOCK_SII_FOR_NON_ACCOUNT_DOMESTIC:["block.sii.for.non.account.domestic"," "]},r[u["default"].SHIPMENT_DETAILS]={CI0784_SPLIT_DUTY_AND_TAX_PAYMENT_OPTION:["split.duty.and.tax.payment.option"," "],CI0611_ADVANCE_DATE_DISPLAY_CHOICE:["advance.date.display.choice"," "],CI1167_ADVANCE_DATE_DISPLAY_PERIOD:["advance.date.display.period"," "],CI0460_MAXIMUM_DECLARED_VALUE_FOR_SHIPMENT:["maximum.declared.value.for.shipment"," "],CI1262_MAXIMUM_DECLARED_VALUE_FOR_NON_ACCOUNT_USERS:["maximum.declared.value.for.non.account.users"," "],CI0462_MAXIMUM_DOMESTIC_DECLARED_VALUE_FOR_SHIPMENT:["maximum.domestic.declared.value.for.shipment"," "],CI1056_VALID_EWF_ORIGIN_COUNTRY_LIST:["valid.ewf.origin.country.list"," "],CI1266_ALLOW_GUEST_TO_USE_OWN_INVOICE:["allow.guest.to.use.own.invoice"," "],CI1263_MAXIMUM_DECLARED_VALUE_FOR_SERVICE_POINT_SELF_SERVICE:["maximum.declared.value.for.service.point.self.service"," "],CI0196_IS_DOMESTIC_SHIPMENT_ALLOWED:["is.domestic.shipment.allowed"," "],CI1407_ALLOW_DOMESTIC_SHIPMENT_FOR_ONLINE_PAYMENTS_ONLY:["allow.domestic.shipment.for.online.payments.only"," "],CI1023_LIST_OF_COMMONLY_MISTAKEN_PACKAGES_AS_DOCUMENTS:["list.of.commonly.mistaken.package.items.as.document","Is it a document",!0],CI1024_DIMENSION_FOR_A_BOX_TO_CONSIDER_AS_PACKAGE:["dimension.for.a.box.to.consider.as.package","Is it a document",!0],CI1303_DOCUMENT_AND_PACKAGE_DESCRIPTIONS_LIST:["document.and.package.descriptions"," "],CI1465_MANAGE_CREATE_DESCRIPTION_MODAL_FIELDS_ORDER:["manage.create.description.modal.fields.order"," "],CI0604_ENABLE_EEI:["enable.eei","EEI"],CI0790_FTR_DROP_DOWN:["ftr.drop.down","EEI"],CI0791_FTR_DROP_DOWN_OFAC:["ftr.drop.down.ofac","EEI"],CI0875_AES_URL:["aes.url","EEI"],CI0789_CRITICAL_SHIPMENT_ITEM:["critical.shipment.item","EEI"],CI0813_EEI_EXPORT_CODE:["export.code","EEI"],CI0246_EEI_AES_POST:["aes.post","EEI",!0],CI1280_REASON_FOR_TRANSPORTATION:["reason.for.transportation","GST Data"],CI1281_COUNTRY_TRANSPORTER_ID:["country.transporter.id","GST Data"],CI1282_GST_SHIPMENT_TYPE:["gst.shipment.type","GST Data"],CI1283_DOCUMENT_TYPE:["document.type","GST Data"],CI1284_MODE_OF_TRANSPORT:["mode.of.transport","GST Data"],CI1285_ENABLE_GST_DATA:["enable.gst.data","GST Data"],CI1299_GST_STATE_TRANSPORTER_ID:["state.transporter.id","GST Data"],CI1301_E_WAYBILL_CAP_AMOUNT:["e.way.bill.cap.amount","GST Data"],CI1320_LIST_OF_GST_FIELDS_TO_BE_REENTERED:["list.of.gst.fields.to.be.reentered","GST Data"],CI1321_LIST_OF_IDENTITY_DOCUMENTS_OF_INDIA:["identity.documents.of.india","GST Data"],CI1405_IEC_NUMBER_VALIDATION_RULE:["iec.number.validation.rule","GST Data"],CI1403_CSBV_CAP_AMOUNT:["csbv.cap.amount","GST Data"],CI1404_BANK_AD_CODE_VALIDATION_RULE:["bank.ad.code.validation.rule","GST Data"]},r[u["default"].SHIPMENT_PAPERWORK]={CI1117_GLOBAL_COLLECT_DEFAULT_LANG_FOR_VAT_RECEIPT:["default.language.for.vat.receipt","VAT Receipt"],CI0727_MANDATORY_SHIPPER_VAT_DUTIABLE:["mandatory.shipper.vat.number.for.duitable.shipment"," ",!0],CI1049_RETURN_INVOICE_OPTION_ENABLED:["return.invoice.option.enabled"," "],CI0851_NAFTA_COUNTRY_LIST:["nafta.country.list"," "],CI1273_USE_EXPORT_HS_CODE:["use.export.hs.code"," "],CI1346_MANDATORY_SHIPPER_COUNTRY_VAT_NUMBER_FOR_DUTIABLE_SHIPMENT:["mandatory.shipper.country.vat.number.for.dutiable.shipment"," "],CI1408_SHIPPER_IEC_VAT_TAX_ID_MANDATORY_FOR_CSBV_SHIPMENT:["shipper.iec.vat.tax.id.mandatory.for.csbv.shipment"," "],CI1376_LICENSE_ECCN_CORRELATION:["license.eccn.correlation","Electronic Export Filing"],CI1377_COMMODITY_CODE_LICENSE_TYPE_CORRELATION:["commodity.code.license.type.correlation","Electronic Export Filing"],CI0072_EUR1_DECLARATION:["eur.1.declaration.flag","Invoice"],CI0983_ULTIMATE_CONSIGNEE:["invoice.ultimate.consignee","Invoice"],CI0486_ALLOW_CITES_DECLARATION:["print.cites.declaration","Invoice"],CI0812_LIST_OF_EXPORT_IDS:["list.of.export.ids","Invoice"],CI0735_TYPES_OF_EXPORT:["types.of.export","Invoice"],CI0981_COMMERCIAL_INVOICE_ONLY:["commercial.invoice.only","Invoice"],CI0128_INVOICE_TYPES:["invoice.types","Invoice"],CI0174_REASON_FOR_EXPORT:["reason.for.export","Invoice"],CI0521_TYPES_OF_EXPORT_PER_REASON_FOR_EXPORT:["types.of.export.per.reason.for.export","Invoice"],CI0730_ENABLE_COMMERCIAL_INVOICE_FOR_DOCUMENT_SHIPMENTS:["enable.commercial.invoice.for.document.shipments","Invoice"],CI0856_ENABLE_NAFTA_PRINTING:["enable.nafta.printing","Invoice"],CI0177_TERMS_TRADE_REQUIRED:["terms.trade.required","Invoice"],CI1286_COMMODITY_CODE_MASKING_FORMAT:["commodity.code.masking.format","Invoice",!0],CI1409_GIFT_SAMPLE_REASON_FOR_EXPORT:["gift.sample.reason.for.export","Invoice"],CI1410_NON_GIFT_NON_SAMPLE_REASON_FOR_EXPORT:["non.gift.non.sample.reason.for.export","Invoice"],CI1411_CARGO_REASON_FOR_EXPORT:["cargo.reason.for.export","Invoice"],CI1406_LIST_COMMODITY_TYPE:["commodity.type.list","Invoice"],CI1449_LIST_GLOBAL_STANDARD_LICENSE_TYPES:["global.standard.license.types","Invoice"],CI1479_MANDATORY_INVOICE_LINE_ITEMS_DATA_CAPTURE_FOR_COUNTRY:["mandatory.invoice.line.items.data.capture.for.country","Invoice"],CI1480_MANDATORY_INVOICE_LINE_ITEMS_DATA_CAPTURE_FOR_CUSTOMER:["mandatory.invoice.line.items.data.capture.for.customer","Invoice"],CI0874_TO_PRINTER_TYPES_LIST:["printer.types.list","Print Settings"],CI1265_TO_PRINTER_TYPES:["printer.types","Print Settings"],CI0530_GLS_TEMPLATES_LIST:["gls.templates.list","Print Settings"],CI0876_ENABLE_CERTIFICATE_OF_ORIGIN_PRINTING:["enable.certificate.of.origin.printing","Printing"],CI0189_DEFAULT_NO_OF_COPY_FOR_ARCHIVE_LABEL:["default.no.of.copy.for.archive.label","Printing"],CI0537_DEFAULT_NO_COPY_SHIPMENT_RECEIPT:["default.no.copy.shipment.receipt","Printing"],CI0522_DEFAULT_NO_COPY_CUSTOMS_INVOICE:["default.no.copy.customs.invoice","Printing"],CI1330_LIST_PRINT_PREFERENTIAL_ORIGIN:["print.preferential.origin","Printing"],CI0661_SPECIAL_CASH_SHIPMENT_RECEIPT:["special.cash.shipment.receipt","Printing"],CI1392_DOWNLOAD_PAPERWORK_INSTEAD_OF_PRINTING:["download.paperwork.instead.of.printing","Printing"],CI1351_MRN_IS_MANDATORY_FOR_PLT:["mrn.is.mandatory.for.plt","Master Reference Number (MRN)",!0],CI1352_APPLY_MRN_MANDATORY_RULE_FOR_DECLARED_VALUE:["apply.mandatory.rule.if.declared.value.above.defined.value","Master Reference Number (MRN)",!0],CI1353_DEFINED_DECLARED_VALUE_FOR_MRN:["defined.declared.value.for.mrn","Master Reference Number (MRN)",!0],CI1354_MRN_CUSTOMS_PROCEDURES_SCENARIOS:["mrn.customs.procedures.scenarios","Master Reference Number (MRN)",!0]},r[u["default"].SHIPMENT_SETTINGS]={CI1005_EORI_MANDATORITY:["eori.mandatority"," "],CI0185_FUTURE_SHIPMENT_DAYS:["future.shipment.days"," "],CI0059_SHIPMENT_LOG_PURGE_PERIOD:["shipment.log.purge.period"," "],CI1165_OPTIMAL_AMOUNT_SHIPMENTS_FOR_CONSOLIDATION:["optimal.amount.shipments.for.consolidation"," "],CI1166_MAXIMUM_AMOUNT_SHIPMENTS_FOR_CONSOLIDATION:["maximum.amount.shipments.for.consolidation"," "],CI1097_MAX_FILES_FOR_ASSIGNED_SHIPMENT:["maximum.number.of.files.allowed.to.upload.during.assign.shipment"," "],CI1325_MAXIMUM_NUMBER_OF_SHIPMENT_REFERENCE_ALLOWED_TO_BE_ENTERED:["maximum.number.of.shipment.reference.allowed.to.be.entered"," "],CI1271_MAKE_NON_ACCOUNT_DIMENSIONS_MANDATORY:["make.non.account.dimensions.mandatory"," "],CI1021_ADDITIONAL_FIELD_TO_SORT_SHIPMENTS:["additional.field.to.sort.shipments.by"," ",!0],CI0353_OUTBOUND_PROCESSING_NOT_ALLOWED:["outbound.processing.with.95.96.accounts.not.allowed"," "],CI1476_COUNTRIES_WHICH_SUPPORT_VATLESS_PRICES:["countries.which.support.vatless.prices"," ",!0],CI1492_COUNTRIES_WHICH_SUPPORT_DUAL_CURRENCIES:["countries.which.support.dual.currencies"," ",!0],CI0416_SAVING_ALLOWED_ON_COMPLETED_SHIPMENT_ONLY:["saving.allowed.on.completed.shipment.only","Save Shipment"],CI1095_TIME_SINCE_LAST_SAVING_AFTER_WHAT_SHIPMENT_IS_ABANDONED:["time.since.last.saving.after.what.the.shipment.is.considered.to.be.abandoned","Abandoned Shipments Notifications"],CI1006_ALLOW_PALLET_FOR_GIVEN_ACCOUNT:["allow.pallet.for.given.account","Account Management"],CI1007_RESTRICT_SHIPMENT_TO_SINGLE_PIECE:["restrict.shipment.to.single.piece","Account Management"],CI1009_FOREIGN_IMP_NOT_ALLOWED_FOR_DOMESTIC:["foreign.imp.not.allowed.for.domestic","Account Management"],CI1054_FORCE_USERS_TO_REENTER_CERTAIN_SHIPMENT_FIELDS:["force.users.to.reenter.certain.shipment.fields","Force re-enter for 1-click shipments"],CI1055_LIST_OF_FIELDS_TO_BE_FORCED_TO_REENTER:["list.of.fields.to.be.forced.to.reenter","Force re-enter for 1-click shipments"],CI0367_ALLOW_MAILING_LIST_SHIPMENTS:["allow.mailing.list.shipments","Mailing List"],CI1086_MAX_COLUMNS_IN_SHIPMENT_IMPORT_SCHEME:["maximum.columns.in.shipment.import.scheme","Shipment Import"],CI0715_AWB_NUMBER_ALLOCATION:["awb.number.allocation.when.saving.a.shipment","Save Shipment"]},r[u["default"].THIRD_PARTY_INTEGRATION]={CI1170_GSPL_BASE_URL:["gspl.endpoint.base.url","Locator"],CI1461_GSPL_CAPABILITY_CODES:["gspl.capacity.codes","Locator"],CI1491_GSPL_LOCATOR_KEYS:["gspl.locator.keys","Locator"],CI1176_AMS_BASE_URL:["ams.base.url","AMS",!0],CI0624_BILLING_SYSYTEM:["billing.system","Billing"],CI1511_ENABLE_DYNAMIC_DISCOUNT_DASHBOARD:["enable.dynamic.discount.dashboard","Dynamic Discount Dashboard",!0]},r[u["default"].ACCOUNTS_AND_PAYMENT_OPTIONS]={CR0166_DISPLAY_COMPANY_ACCOUNTS_AS:["display.company.accounts.as","Accounts"],CR0156_ALLOW_TO_SHIP_USING_COMPANY_ACCOUNTS:["allow.to.ship.using.company.accounts","Accounts"],CR0032_ALLOW_TO_BILL_SHIPMENTS_TO_CREDIT_CARD_AND_ONLINE_PAYMENT_OPTIONS:["allow.to.bill.shipments.to.credit.card.and.online.payment.options","Online Payment Options"]},r[u["default"].REFERENCE_OPTIONS]={CR0040_ALLOW_TO_VIEW_REFERENCE_LIST:["allow.to.view.reference.list","Reference validation options"],CR0039_REFERENCE_VALIDATION_RULE:["reference.validation.rule","Reference validation options"]},r[u["default"].TECHNICAL]={CI1362_SEARCH_MINIMUM_KEYWORD_LENGTH:["search.minimum.keyword.length","MMS and ADT Search"],CI1361_SHORT_WORD_SEARCH_OPTION:["short.word.search.option","MMS and ADT Search"],CI1365_LONG_WORD_SEARCH_OPTION:["long.word.search.option","MMS and ADT Search"],CI1366_NUMBER_SEARCH_OPTION:["number.search.option","MMS and ADT Search"],CI1367_USE_ENHANCED_MMS_SEARCH:["use.enhanced.mms.search","MMS and ADT Search"]},r);t["default"]=Object.entries(a).reduce(function(e,t){var n=t[0],r=t[1];return Object.entries(r).forEach(function(t){var r=t[0],o=t[1],u=o[0],a=o[1],c=o[2];e[r]=i(u,n,a,c)}),e},{})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(1820),a=i(u),c=angular.module("common.widgets.date-range-picker",[o["default"]]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="common.widgets.date-range-picker"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(20),a=i(u),c=n(2),s=i(c),l=n(473),d=i(l),f=n(2133),p=i(f),m=n(2134),_=i(m),g=n(2135),E=i(g),S=n(2136),C=i(S),h=n(2137),I=i(h),A=n(977),v=i(A),N=angular.module("shipment.brazil",[o["default"],a["default"],s["default"],d["default"]]);N.directive(E["default"].NG_NAME,E["default"]).directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]).service(p["default"].NG_NAME,p["default"]).service(_["default"].NG_NAME,_["default"]).service(v["default"].NG_NAME,v["default"]),t.module=N,t["default"]="shipment.brazil"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1990),o=i(r),u=n(1991),a=i(u),c=n(1992),s=i(c),l=n(1993),d=i(l),f=angular.module("shipment-import.resources",[]);f.service(a["default"].NG_NAME,a["default"]).service(o["default"].NG_NAME,o["default"]).service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]),t.module=f,t["default"]="shipment-import.resources"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={FTR:"FTR",ITN:"ITN",EEI:"EEI",EIN:"EIN"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2224),o=i(r),u=n(2225),a=i(u),c=n(2228),s=i(c),l=n(2231),d=i(l),f=n(2234),p=i(f),m=n(2237),_=i(m),g=n(2241),E=i(g),S=n(2244),C=i(S),h=n(2247),I=i(h),A=n(2250),v=i(A),N=n(2275),T=i(N),M=n(2278),y=i(M),D=n(2281),O=i(D),P=n(25),b=i(P),R="profile.shipmentSettings.shipmentDefaults",L=angular.module(R,[a["default"],s["default"],d["default"],p["default"],_["default"],E["default"],C["default"],I["default"],v["default"],T["default"],y["default"],O["default"],b["default"]]);L.service(o["default"].NG_NAME,o["default"]),t.module=L,t["default"]=R},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(303),o=i(r),u=n(54),a=i(u),c=n(543),s=i(c),l=n(301),d=i(l),f=n(544),p=i(f),m=n(993),_=i(m),g=n(2361),E=i(g),S=n(2362),C=i(S),h=n(2363),I=i(h),A=n(2364),v=i(A),N=n(2365),T=i(N),M=n(2368),y=i(M),D=n(2369),O=i(D),P=n(2370),b=i(P),R=n(941),L=i(R),G=n(421),U=i(G),F=n(239),w=i(F),k=angular.module("manageShipments.common.actions",[o["default"],a["default"],s["default"],d["default"],p["default"],_["default"],w["default"]]);k.service(C["default"].NG_NAME,C["default"]).service(I["default"].NG_NAME,I["default"]).service(v["default"].NG_NAME,v["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).service(E["default"].NG_NAME,E["default"]).service(U["default"].NG_NAME,U["default"]),t.module=k,t["default"]="manageShipments.common.actions"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2371),o=i(r),u=n(545),a=i(u),c=n(0),s=i(c),l=n(20),d=i(l),f=n(41),p=i(f),m=n(237),_=i(m),g=n(2372),E=i(g),S=n(2373),C=i(S),h=n(2374),I=i(h),A=n(2375),v=i(A),N=n(2376),T=i(N),M=n(2377),y=i(M),D=n(2378),O=i(D),P=n(2379),b=i(P),R=n(2380),L=i(R),G=angular.module("optionalServices",[s["default"],d["default"],p["default"],_["default"]||"profile.shipmentSettings.shipmentDefaults"]);G.directive(E["default"].NG_NAME,E["default"]).directive(v["default"].NG_NAME,v["default"]).service(T["default"].NG_NAME,T["default"]).service(C["default"].NG_NAME,C["default"]).service(I["default"].NG_NAME,I["default"]).service("optionalServicesModel",a["default"]).directive(y["default"].NG_NAME,y["default"]).directive(O["default"].NG_NAME,O["default"]).directive(o["default"].NG_NAME,o["default"]).directive(b["default"].NG_NAME,b["default"]).directive(L["default"].NG_NAME,L["default"]),t.module=G,t["default"]="optionalServices"},,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2430),a=i(u),c=angular.module("package.selector",[o["default"]]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="package.selector"},function(e,t,n){"use strict";t.__esModule=!0;t.MIN_VALUE_RESTRICTION=.1},,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){"ngInject";function i(){return e.get(s).then(function(e){return e.data})}function r(n){var i="/api/shipment/pickup/"+n+"/status";return e.get(i).then(function(e){return e.data.updatable})["catch"](function(e){return e.status!==c["default"].UNPROCESSABLE_ENTITY&&t.reject(e)})}function o(n,i,r){return e.put("/api/shipment/pickup/"+n+"/cancel",{bookingReferenceNumber:i,cancellationReason:r}).then(function(e){return e.data})["catch"](function(e){var n=e.data;return t.reject(n.errors)})}function a(e,t){return n.showDialog({resolve:{pickup:function(){function n(){return{pickupId:e,bookingReferenceNumber:t}}return n}()},controller:u["default"],controllerAs:"schedulePickupCancelPopupCtrl",windowClass:"ewf-modal_width_small",templateUrl:"cancel-pickup-modal-dialog.html"}).result}var s="/api/shipment/pickup/history";return{getPickups:i,isPickupUpdatable:r,cancelPickup:o,showCancelPickupDialog:a}}r.$inject=["$http","$q","modalService"],t.__esModule=!0,t["default"]=r;var o=n(2624),u=i(o),a=n(6),c=i(a);r.NG_NAME="scheduledPickupsService"},,,,,,,,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]=" "},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ALL_AVAILABLE_COUNTRIES:"ALL_AVAILABLE_COUNTRIES",ACTIVATED_COUNTRIES:"ACTIVATED_COUNTRIES",VALID_EWF_ORIGIN_COUNTRIES:"VALID_EWF_ORIGIN_COUNTRIES"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={GIFT:"GIFT",CARGO:"CARGO",NON_GIFT_NON_SAMPLE:"NON_GIFT_NON_SAMPLE"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1400),o=i(r),u=n(918),a=i(u),c=n(1403),s=i(c),l=n(409),d=i(l),f=n(1408),p=i(f),m=n(457),_=i(m),g=n(920),E=i(g),S=n(1634),C=i(S),h=n(1637),I=i(h),A=n(916),v=i(A),N=n(917),T=i(N),M=n(926),y=i(M),D=n(1641),O=i(D),P=n(1645),b=i(P),R=n(1652),L=i(R),G=n(1654),U=i(G),F=n(1655),w=i(F),k=n(1656),j=i(k),V=n(1657),B=i(V),$=n(1658),x=i($),H=n(1659),Y=i(H),K=n(1660),W=i(K),q=angular.module("common.form",[o["default"],a["default"],s["default"],d["default"],p["default"],_["default"]||"common.form.field",E["default"],C["default"],I["default"],v["default"]||"common.form.input",T["default"],y["default"],O["default"],b["default"]]);q.directive(L["default"].NG_NAME,L["default"]).directive(U["default"].NG_NAME,U["default"]).directive(j["default"].NG_NAME,j["default"]).directive(B["default"].NG_NAME,B["default"]).directive(x["default"].NG_NAME,x["default"]).directive(Y["default"].NG_NAME,Y["default"]).directive(W["default"].NG_NAME,W["default"]).factory(w["default"].NG_NAME,w["default"]),t.module=q,t["default"]="common.form"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={FOR_AUTHORIZED:"/api/myprofile/accounts/request",FOR_GUEST:"/api/signup/account/request"}},function(e,t,n){"use strict";t.__esModule=!0;var i,r=t.GSS_MODE={DISABLED:"DISABLED",BACKGROUND:"BACKGROUND",WARNING:"WARNING",ERROR:"ERROR"};t.GSS_STATUS={RED:"RED",GREEN:"GREEN"},t.GSS_ALERT_CLASSES=(i={},i[r.WARNING]="alert_warning",i[r.ERROR]="alert_error",i)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var r=n(936),o=i(r),u=n(414),a=i(u),c=n(406),s=i(c),l=n(1774),d=i(l);t["default"]=["name","email","company","businessContactType",{key:"personalIdentifiableInformation",propertyMap:d["default"]},{key:"address",propertyMap:o["default"]},{key:"phoneDetails",propertyMap:a["default"]},{key:"phoneDetails2",propertyMap:a["default"]},{key:"taxDetails",propertyMap:s["default"]}]},,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1863),o=i(r),u=n(947),a=i(u),c=n(120),s=i(c),l=n(911),d=i(l),f=n(2),p=i(f),m=n(1873),_=i(m),g=n(948),E=i(g),S=angular.module("authorization.login",[o["default"],a["default"],s["default"],d["default"],p["default"]||"common.utils"]);S.directive(_["default"].NG_NAME,_["default"]).service(E["default"].NG_NAME,E["default"]),t.module=S,t["default"]="authorization.login"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(72),a=i(u),c=n(1875),s=i(c),l=angular.module("authorization.loginPlaceholder",["ngStorage",o["default"],a["default"]]);l.directive(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="authorization.loginPlaceholder"},,,,,,,,,,,,function(e,t,n){"use strict";t.__esModule=!0;t.FIELDS={NONE:"NONE",IGNORED:"IGNORED",PRODUCT_CODE:"PRODUCT_CODE",GLOBAL_PRODUCT_CODE:"GLOBAL_PRODUCT_CODE",LOCAL_PRODUCT_CODE:"LOCAL_PRODUCT_CODE"}},function(e,t,n){"use strict";t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t0}function v(e){return e&&e.checked}function N(e,t,n){var i=arguments.length<=3||arguments[3]===undefined?{}:arguments[3];return{documentType:e,documentLabel:T(e),mandatory:t,checked:t,numberOfCopies:i[e]||M,primary:n}}function T(t){var n;return(n={},n[r.DOCUMENT_TYPES.LABEL]=e.SHIPMENT_PRINT.PRINT_LABEL_WAYBILL,n[r.DOCUMENT_TYPES.ARCHIVE]=e.SHIPMENT_PRINT.PRINT_LABEL_WAYBILL,n[r.DOCUMENT_TYPES.RECEIPT]=e.SHIPMENT_PRINT.PRINT_LABEL_RECEIPT,n[r.DOCUMENT_TYPES.CUSTOMS_INVOICE]=e.SHIPMENT_PRINT.PRINT_LABEL_INVOICE,n[r.DOCUMENT_TYPES.CSBV_CUSTOMS_INVOICE]=e.SHIPMENT_PRINT.PRINT_LABEL_CSBV_CUSTOMS_INVOICE,n[r.DOCUMENT_TYPES.INDEMNITY_LETTER]=e.SHIPMENT_PRINT.PRINT_LABEL_INDEMNITY_LETTER,n[r.DOCUMENT_TYPES.PDS]=e.SHIPMENT_PRINT.PRINT_LABEL_PDS,n[r.DOCUMENT_TYPES.ANTI_DRUG_LETTER]=e.SHIPMENT_PRINT.PRINT_LABEL_ANTI_DRUG,n[r.DOCUMENT_TYPES.ADDRESS_LABEL_STICKER]=e.SHIPMENT_PRINT.PRINT_LABEL_ADDRESS_STICKER,n[r.DOCUMENT_TYPES.LITHIUM_BATTERIES]=e.SHIPMENT_PRINT.PRINT_LABEL_LITHIUM_BATTERIES,n[r.DOCUMENT_TYPES.CERTIFICATE_OF_ORIGIN]=e.SHIPMENT_PRINT.PRINT_LABEL_CERTIFICATE_OF_ORIGIN,n[r.DOCUMENT_TYPES.RETURN_INSTRUCTIONS]=e.SHIPMENT_PRINT.PRINT_LABEL_RETURN_INSTRUCTIONS,n[r.DOCUMENT_TYPES.VAT_RECEIPT]=e.SHIPMENT_PRINT.PRINT_LABEL_VAT_RECEIPT,n[r.DOCUMENT_TYPES.CUSTOM_RETURN_INSTRUCTIONS]=e.SHIPMENT_PRINT.PRINT_LABEL_CUSTOM_RETURN_INSTRUCTIONS,n)[t]}var M=1;return{setupWaybill:t,setupDocumentsExceptOfWaybill:n,getSelectedDocuments:l,getSelectedDocumentsInfo:d,getSelectedWaybillDocumentsInfo:p,getNumberOfCopies:m,isWaybillChecked:u,isWaybillCheckedInList:a,isAnyDocumentChecked:i,isAnyDocumentCheckedInList:o,isAnyDocumentCheckedExceptOfWaybill:c,isAnyDocumentCheckedExceptOfWaybillInList:s,createDocument:N}}i.$inject=["Messages"],t.__esModule=!0,t["default"]=i;var r=n(64);i.NG_NAME="documentManagementService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(500),o=i(r),u=n(2115),a=i(u),c=angular.module("addressBook.services",[o["default"]]);c.service(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="addressBook.services"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(2122),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o="shipment.return.label.from.country.validation",u=angular.module(o,[]);u.service(r["default"].NG_NAME,r["default"]),t.module=u,t["default"]=o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2171),a=i(u),c=n(2172),s=i(c),l=angular.module("addressBook.globalIncoterms",[o["default"]]);l.directive(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="addressBook.globalIncoterms"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={SUBJECT_MAX_LENGTH:120,MESSAGE_MAX_LENGTH:252}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={YES:"YES",NO:"NO",NO_SHIPPER:"NO_SHIPPER",NO_ASSIGN:"NO_ASSIGN",NO_DROP_OFF:"NO_DROP_OFF"}},,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(2462),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("rate-and-quote.on-shipment",["ui.router"]);o.service(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="rate-and-quote.on-shipment"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(538),o=i(r),u=n(998),a=i(u),c=n(539),s=i(c),l=n(999),d=i(l),f=n(1e3),p=i(f),m=n(1001),_=i(m),g=angular.module("schedule.pickup.mapper",[o["default"]]);g.service(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]).service(p["default"].NG_NAME,p["default"]).factory(_["default"].NG_NAME,_["default"]),t.module=g,t["default"]="schedule.pickup.mapper"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,o,a,s,d,f,p,m,_){"ngInject";function g(){return n.getCountryByCode(E()).then(function(e){return{code:e.code2,name:e.name}})}function E(){return d.getCountryLang().countryAlpha2Code}function S(e){var t=i.getServerData(e,!0);return U(t).then(function(){return _.savePickup(t)})}function C(){return d.getParamFromUrl(c["default"].PICKUP_ID)||t.pickupId}function h(){var t=C();return t?I(t):e.when()}function I(e){return _.getPickupById(e)}function A(t){var n=[r.getUserProfileDefaultValues(),f.areOnlyAuthorizedPickupLocationsAvailable()];return e.all(n).then(function(e){var n=e[0],r=e[1],o=n.pickupDefaultType,u=n.remotePickupDefaultType,a=n.pickupDetails,c=n.pickupAlertEnabled,s=a.pickupLocation.pickupAddress;if(t.hasDefaultPickupAddress=!!s&&!!s.addressLine1,Object.assign(t,{pickupDefaultType:o,remotePickupDefaultType:u,pickupAlertEnabled:c}),i.initPickupDetails(t,a),!r)return i.initPickupAddress(t,a)})}function v(e){var t=C();return t?y(e,t):D(e)}function N(e,t){return p.getShipmentKeyData(t).then(function(t){return i.populateModelWithShipmentData(e,t)})}function T(e,t){var n=e.email,r=e.phoneDetails,o=e.pickupLocation,u=o.company,a=o.name,c=o.pickupAddress;i.populateModel(t,{pickupDetails:{email:n,phoneDetails:r,pickupLocation:{pickupAddress:c},company:u,name:a}})}function M(t){var n=t.airWayBillNumber,i=t.phone||{},r=i.phone;return n&&r?_.initPickupAddressFromPhone(n,r).then(function(e){return e&&T(e,t)}):e.when()}function y(e,t){return I(t).then(function(n){return e.pickupId=t,e.bookingReferenceNumber=n.bookingReferenceNumber,i.populateModelWithStandAlonePickupData(e,n)})}function D(e){return o.getRestoredShipment().then(function(t){return t?(e.shipmentId=t.id,i.populateModelWithShipmentData(e,t)):t})}function O(e){var t={pickupDetails:i.getPickupDetails(e),remotePickupDefaultType:e.remotePickupDefaultType,pickupDefaultType:e.pickupDefaultType,pickupAlertEnabled:e.pickupAlertEnabled};return a.savePickupsData(t)}function P(e,t){var n=i.getServerData(e),r=n.pickupDetails.pickupLocation;return r.businessPartyAddressId&&r.businessPartyAddressId===t.businessPartyAddressId&&(r.pickupAddress.countryDivisionTypeCode=t.countryDivisionTypeCode),_.updatePickup(e.pickupId,n)}function b(e){var t=R(e);s.show(t,{bookingReferenceNumber:e.bookingReferenceNumber})}function R(e){var t=e.pickupHasBeenUpdated,n=e.originalBookingReferenceNumber,i=e.bookingReferenceNumber,r=e.consolidated;return t?n===i?u["default"].PICKUP_HAS_BEEN_UPDATED:u["default"].PICKUP_HAS_BEEN_UPDATED_AND_NUMBER_CHANGED:r?u["default"].PICKUP_HAS_BEEN_SCHEDULED_AND_CONSOLIDATED:u["default"].PICKUP_HAS_BEEN_SCHEDULED}function L(e,t){var n=i.getPickupDetails(t),r=i.getPickupDetails(e);return!!["pickupLocationType","pickupWindow","instructions","pickupLocation","pickupLocationOtherDescription"].find(function(e){return!angular.equals(n[e],r[e])})}function G(){return d.getParamFromUrl(c["default"].TOKEN)}function U(e){return m.postAdditionalAgreements(e,l["default"].GUEST_PICKUP)}function F(e){return r.getMaxPickupDate(e)}return{getDashboardCountry:g,savePickup:S,updatePickup:P,getPickupByUrl:h,getPickupById:I,mapDefaultValues:A,initPickupData:v,saveDefaultValues:O,getPickupIdFromUrl:C,showPickupSuccessAlert:b,isDefaultValuesChanged:L,getPickupRestoreToken:G,initPickupDataFromToken:N,initPickupAddressFromPhone:M,getMaxPickupDate:F}}r.$inject=["$q","$stateParams","locationService","pickupMapper","pickupService","shipmentTransportService","profileShipmentResource","showOnceService","pathService","pickupAuthorizedLocationService","externalAccessService","additionalAgreementsService","schedulePickupResource"],t.__esModule=!0,t["default"]=r;var o=n(902),u=i(o),a=n(1),c=i(a),s=n(460),l=i(s);r.NG_NAME="schedulePickupService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(n){return t.post("/api/shipment/pickup/standalone",n).then(function(e){return e.data})["catch"](function(t){var n=t.status===o["default"].UNPROCESSABLE_ENTITY?t.data.errors:null;return e.reject(n)})}function r(e){return t.get("/api/shipment/pickup/standalone/"+e).then(function(e){return e.data})}function u(e,n){return t.put("/api/shipment/pickup/"+e,n).then(function(e){return e.data})["catch"](a)}function a(t){var i=t.status===o["default"].UNPROCESSABLE_ENTITY?t.data.errors:null,r=i&&i.map(function(e){return"errors.common_msg_service-operation-error"===e?n.SCHEDULE_MANAGE_PICKUP.MANAGE_LIST_ALERT_EDIT_IS_NOT_AVAILABLE:e});return e.reject(r)}function c(e,n){return t.get("/api/shipment/pickup/details?airWayBillNumber="+e+"&phoneNumber="+n).then(function(e){return e.data})}return{savePickup:i,getPickupById:r,updatePickup:u,initPickupAddressFromPhone:c}}i.$inject=["$q","$http","Messages"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="schedulePickupResource"},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";t.__esModule=!0,t["default"]={NOVICE:"NOVICE",EXPERT:"EXPERT",GUEST:"GUEST"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]="D5B5E5F4-923E-4FD7-AC06-65EA2A7DDED5"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={THERMAL_PDF:"Thermal_PDF",PDF:"PDF",EPL:"EPL2",ZPL:"ZPL2"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]="alternate"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1270),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("common.utils.cookies",[]);o.service(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="common.utils.cookies"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=["countryCode","zipOrPostCode","countryDivisionName","city","addrLine1","addrLine2","addrLine3"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(914),a=i(u),c=n(915),s=i(c),l=n(1383),d=i(l),f=n(1384),p=i(f),m=n(1386),_=i(m),g="corporate.digital-customs-invoices",E=angular.module(g,[o["default"]||"common.utils",a["default"],s["default"]]);E.directive(d["default"].NG_NAME,d["default"]).service(p["default"].NG_NAME,p["default"]).service(_["default"].NG_NAME,_["default"]),t.module=E,t["default"]=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(259),o=i(r),u=n(1661),a=i(u),c=angular.module("common.form.field",[o["default"]||"common.form"]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="common.form.field"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={BUTTON_NEXT_EXPERT:"BUTTON_NEXT_EXPERT"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(1423),a=i(u),c="common.widgets.address.transporterId",s=angular.module(c,[o["default"]]);s.directive(a["default"].NG_NAME,a["default"]),t.module=s,t["default"]=c},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={REGISTRATION_AND_LOGIN:"RegistrationAndLogin",GUEST_PICKUP:"GuestPickup",GUEST_RATE_AND_QUOTE:"GuestRateAndQuote",GUEST_SHIPMENT:"GuestShipment"}},function(e,t,n){"use strict";t.__esModule=!0;var i=n(262),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=[].concat(r["default"],["key"]);t["default"]=["cte","nfItems","danfeKeys","addressesSameAsFromTo",{key:"nfeFrom",propertyMap:o},{key:"nfeTo",propertyMap:o}]},,,,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(120),o=i(r),u=n(124),a=i(u),c=n(99),s=i(c),l=n(950),d=i(l),f=n(44),p=i(f),m=n(423),_=i(m),g=n(2123),E=i(g),S=n(2124),C=i(S),h=n(2125),I=i(h),A=n(2126),v=i(A),N=n(2127),T=i(N),M=n(2128),y=i(M),D=n(2129),O=i(D),P=n(2130),b=i(P),R=n(2131),L=i(R),G=n(2132),U=i(G),F=angular.module("shipment.from-to",[o["default"],a["default"],s["default"],d["default"],p["default"],_["default"]]);F.directive(E["default"].NG_NAME,E["default"]).directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]).directive(v["default"].NG_NAME,v["default"]).service(T["default"].NG_NAME,T["default"]).service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).service(U["default"].NG_NAME,U["default"]),t.module=F,t["default"]="shipment.from-to"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1906),o=i(r),u=n(1907),a=i(u),c=angular.module("addressBook.columnCustomization",[]);c.factory(o["default"].NG_NAME,o["default"]).service(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="addressBook.columnCustomization"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(476),o=i(r),u=n(0),a=i(u),c=n(33),s=i(c),l=n(1926),d=i(l),f=n(194),p=i(f),m=n(1927),_=i(m),g=angular.module("shipment.type.references",[o["default"],a["default"],s["default"]||"common.configuration"]);g.directive(d["default"].NG_NAME,d["default"]).service(p["default"].NG_NAME,p["default"]).service(_["default"].NG_NAME,_["default"]),t.module=g,t["default"]="shipment.type.references"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1925),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o="corporate.reference-options.format.validation",u=angular.module(o,[]);u.service(r["default"].NG_NAME,r["default"]),t.module=u,t["default"]=o},function(e,t,n){"use strict";t.__esModule=!0;t.CHARACTERS={"?":"[\\x00-\\x7F]","#":"\\d","@":"[A-Za-z]","*":"[\\x00-\\x7F]*","&":"[A-Za-z]*","%":"\\d*",".":".","\\":"\\\\","|":"\\|","^":"\\^",$:"\\$","(":"\\(",")":"\\)",":":"\\:","+":"\\+","{":"\\{","}":"\\}",",":"\\,","=":"\\=","!":"\\!"},t.RULES={MIN:"MINIMUM_OF",MAX:"MAXIMUM_OF",EQUAL:"EQUAL_TO"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={WEIGHT_PROP_NAME:"weight",CONVERTED_WEIGHT_PROP_NAME:"convertedWeight",INPUT_WEIGHT_PROP_NAME:"inputWeight"}},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function o(e){return e.map(function(e){return delete e.errorFlag,delete e.isLineItemVisible,e})}function u(e,t,n){return i.validateCommodityCode(e,t,n)}function a(t,n,i){var r=t.productList,o=t.quantityUnitsList;e.all([E(n),l(i)]).then(function(e){var t=e[0],n=e[1];r.forEach(function(e){e.errorFlag={},d(t,e,n),e.errorFlag.quantityUnitsInvalid=!s(o,e.quantityUnits),e.errorFlag.gssValidationInvalid=!c(e),e.isLineItemVisible=Object.values(e.errorFlag).includes(!0)})})}function c(e){var t=e.gssValidationResult;t=t===undefined?{}:t;var n=t.status;return t.mode!==r.GSS_MODE.ERROR||n===r.GSS_STATUS.GREEN}function s(e,t){return e.some(function(e){var n=e.code;return t===n})}function l(e){return n.getBoolean(n.CI_KEYS.CI1425_LINE_ITEM_REFERENCE_TYPE_AND_NUMBER_MANDATORY,e)}function d(e,t,n){_().forEach(function(n){return f(t,n,e)});var i=p(t,n);t.errorFlag.referenceNumberInvalid=i[0],t.errorFlag.referenceTypeCodeInvalid=i[1]}function f(e,t,n){e.errorFlag[t+"Invalid"]=!S(n,e,t)}function p(e,t){var n=e.isAddItemReference,i=e.referenceTypeCode,r=e.referenceNumber;return t||n?[!r,!i]:[!1,!1]}function m(e,t){E(t).then(function(t){e.forEach(function(e){e.isSimplifiedViewEnabled=!e.fromUpload&&g(t,e)})})}function _(){return["description","exportCommodityCode","importCommodityCode","quantity","value","weight","countryCode"]}function g(e,t){return!(!_().every(function(n){return S(e,t,n)})||!C(t))}function E(t){var i=[n.CI_KEYS.CI0251_INVOICE_DETAILS_ITEM_DESCRIPTION,n.CI_KEYS.CI0750_CATALOG_EXPORT_COMMODITY_CODE,n.CI_KEYS.CI0751_CATALOG_IMPORT_COMMODITY_CODE,n.CI_KEYS.CI0132_INVOICE_DETAILS_QUANTITY,n.CI_KEYS.CI0746_CUSTOMER_PRODUCT_CATALOG_UNIT_VALUE,n.CI_KEYS.CI0748_CUSTOMER_PRODUCT_CATALOG_NET_WEIGHT,n.CI_KEYS.CI0744_CATALOG_COUNTRY_OF_MANUFACTURE];return e.all(i.map(function(e){return n.getFormField(e,t||undefined)})).then(function(e){return _().reduce(function(t,n,i){return t[n]=e[i].mandatory,t},{})})}function S(e,t,n){return!e[n]||t[n]}function C(e){var t=e.isAddItemReference,n=e.referenceTypeCode,i=e.referenceNumber,r=e.quantityUnits;return(!t||i&&n)&&r}function h(t){if(t)return e.when(!1);var n=[I(),A()];return e.all(n).then(v)}function I(){return n.getSourceData(n.CI_KEYS.CI1479_MANDATORY_INVOICE_LINE_ITEMS_DATA_CAPTURE_FOR_COUNTRY)}function A(){return n.getSourceData(n.CI_KEYS.CI1480_MANDATORY_INVOICE_LINE_ITEMS_DATA_CAPTURE_FOR_CUSTOMER)}function v(e){return{ENABLED:!0,DISABLED:!1,FOLLOW_COUNTRY_SETTINGS:e[0]}[e[1]]}function N(e){return n.getBoolean(n.CI_KEYS.CI1273_USE_EXPORT_HS_CODE,e)}function T(){return t.isGuest()}return{validateAndSetSimplifiedViewFlag:m,validateInvalidUploadedLineItems:a,validateCommodityCode:u,getMandatoryItemConfig:h,updateInvalidLineItems:o,isUseExportHsCode:N,isGuest:T,getItemReferenceMandatoryStatus:l,setNonCifValidationFlag:p}}i.$inject=["$q","userService","configService","commodityCodeService"],t.__esModule=!0,t["default"]=i;var r=n(261);i.NG_NAME="itemAttributesValidationService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(1978),a=i(u),c=n(1979),s=i(c),l=n(958),d=i(l),f=n(1980),p=i(f),m=n(1981),_=i(m),g=n(1982),E=i(g),S=n(1983),C=i(S),h=n(1985),I=i(h),A=n(1986),v=i(A),N=angular.module("shipment-import.file-uploader",[o["default"]]);N.directive(a["default"].NG_NAME,a["default"]).directive(_["default"].NG_NAME,_["default"]).directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]).service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]).service(p["default"].NG_NAME,p["default"]).service(v["default"].NG_NAME,v["default"]).service(E["default"].NG_NAME,E["default"]),t.module=N,t["default"]="shipment-import.file-uploader"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(){return{type:null,schemes:{defaultSchemes:[],userSchemes:[]},ftpScheme:null,existing:(0,u["default"])(),build:(0,c["default"])(),manageScheme:(0,l["default"])(),accountsList:[],contactsList:[],processingResult:null,processShipmentsErrors:null,processShipmentWarnings:null}}t.__esModule=!0,t["default"]=r;var o=n(482),u=i(o),a=n(959),c=i(a),s=n(483),l=i(s);r.NG_NAME="shipmentImportState"},function(e,t,n){"use strict";function i(){return{scheme:"",file:null,isAccountFromFile:!0,account:null,isShipperFromFile:!0,shipperContact:new o["default"],isTruncateFields:!1,isFileWithHeader:!1,selectedUserDuplicateProcess:null,importingFileType:"",textDelimiter:"",fieldDelimiter:""}}t.__esModule=!0,t["default"]=i;var r=n(17),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(){return{scheme:"",schemaLabel:"",importingSchemeSubtype:null,fieldDelimiter:"",textDelimiter:"",schemeFields:[],schemeColumns:[],isShipperFromFile:!0,shipperContact:new o["default"],shipFromContact:null,schemeErrors:null}}t.__esModule=!0,t["default"]=i;var r=n(17),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1988),o=i(r),u=n(105),a=i(u),c=angular.module("shipment-import.modals",[a["default"]]);c.service(o["default"].NG_NAME,o["default"]),t.module=c,t["default"]="shipment-import.modals"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2003),a=i(u),c=angular.module("invoicePreviewFileDetails",[o["default"]]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="invoicePreviewFileDetails"},function(e,t,n){"use strict";t.__esModule=!0;t.DEFAULT_VARIABLES={DOCUMENT_DESCRIPTION:0,PREDEFINED_DOCUMENT_DESCRIPTION:1,ADDITIONAL_DESCRIPTION:2,DEFAULTS_TYPE:3},t.DELIVERY_DEFAULTS="DELIVERY",t.UPLOADED_FILE_FLAG="UPLOADED_FILE",t.UPLOADED_FILE_DEFAULT_NAME="lineItems.csv"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){i.shipmentTypeModel.isShipmentTypeCategoriesAvailable&&e.loadShippingPurpose(i)}function n(){return!!i.shipmentTypeModel.itemAttributes.shippingPurpose}var i=this;Object.assign(i,{$onInit:t,isIndiaTaxPaymentVisible:n})}i.$inject=["shipmentPurposeService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={COMMERCIAL:"C",PRO_FORMA:"P"}},function(e,t,n){"use strict";function i(){return{cachedItemAttributes:{},weightSom:o["default"],recentProductsPromise:null,productList:[],totalQuantity:1,totalWeight:0,defaultCurrency:null,currentCurrency:null,uploadedCurrency:null,currenciesList:[],estimateDuties:!1,shippingPurpose:null,shippingPurposeList:[],isUnitsMismatched:!1,shipperCountrySom:"",userProfileCountrySom:"",userProfileCountryConversionPrecision:2,weightConvertionRate:1,totalDeclaredValue:"",invoiceType:null,country:{},gstData:{},arePrecalculatedDutiesAllowed:!1,arePrecalculatedDutiesEnabled:!1,precalculatedDuties:{},quantityUnitsList:[]}}t.__esModule=!0,t["default"]=i;var r=n(127),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var a=n(11),c=i(a),s=n(962),l=i(s),d=function(e){function t(n){"ngInject";r(this,t);var i=o(this,e.call(this));return i.init(),i.masterReferenceNumberService=n,i}return t.$inject=["masterReferenceNumberService"],u(t,e),t.prototype.init=function(){function e(){Object.assign(this,{mrnRows:[],isMandatory:!1,isPltShipment:!1,isSectionVisible:!0,defaultCustomsProcessTypeValue:"",defaultRowsAmount:l["default"].MIN,adminConfigs:{isVisible:!1,isMandatory:!1,isMandatoryForPlt:!1,isMandatoryAppliedForDeclaredValue:!1,isCriticalPriceDefined:!1,customsProcessTypes:[],criticalPrice:{value:null,currency:""}}})}return e}(),t.prototype.setMrnDetails=function(){function e(){this.mrnRows.length||this.generateNewMrnRows()}return e}(),t.prototype.generateNewMrnRows=function(){function e(){for(this.mrnRows=[];this.mrnRows.length"+n.SHIPMENT_IMPORT.SHIPMENT_IMPORT_BUTTON_BROWSE_FILE+"";return t(e,{browseLink:i,trustAsHtml:!0})}function r(e){return e?n.SHIPMENT_IMPORT.SHIPMENT_FILE_UPLOAD_SUB_HEADER_SELECT_FILE_ENCODING:n.ADDRESS_BOOK_IMPORT.ADDRESS_BOOK_IMPORT_LABEL_FILE_ENCODING}function o(e){return e?n.SHIPMENT_IMPORT.SHIPMENT_FILE_UPLOAD_SUB_HEADER_SELECT_FILE_FORMAT:n.SHIPMENT_IMPORT.SHIPMENT_IMPORT_SUB_HEADER_SELECT_FILE_FORMAT}function u(t){return e.deleteFile(t)}function a(){return e.getMaxFileSize()}return{deleteFile:u,getMaxFileSize:a,getBrowseFileMessage:i,getFileEncodingMessage:r,getFileFormatMessage:o}}i.$inject=["shipmentImportFileUploaderResource","replaceFilter","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportFileUploaderService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(){return Object.assign((0,u["default"])(),(0,c["default"])())}t.__esModule=!0,t["default"]=r;var o=n(482),u=i(o),a=n(483),c=i(a)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1994),o=i(r),u=n(1995),a=i(u),c=n(1996),s=i(c),l=angular.module("shipment-import.converters",[]);l.service(o["default"].NG_NAME,o["default"]).service(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="shipment-import.converters"},function(e,t,n){"use strict";t.__esModule=!0;t.shipperTypes={CONTACT:"CONTACT",FILE:"FILE"},t.accountTypes={ACCOUNT:"ACCOUNT",FILE:"FILE"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={MAX:15,MIN:1}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2023),a=i(u),c=n(2024),s=i(c),l=n(2025),d=i(l),f=angular.module("shipment.type.declared-value",[o["default"]]);f.service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]).directive(a["default"].NG_NAME,a["default"]),t.module=f,t["default"]="shipment.type.declared-value"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(2027),a=i(u),c=n(2028),s=i(c),l=n(2029),d=i(l),f=n(2030),p=i(f),m=n(2031),_=i(m),g=n(2032),E=i(g),S=n(2033),C=i(S),h=n(2034),I=i(h),A=n(2035),v=i(A),N="profile.shipmentSettings.customsInvoiceTemplates",T=angular.module(N,[o["default"]||"common.utils"]);T.directive(s["default"].NG_NAME,s["default"]).directive(d["default"].NG_NAME,d["default"]).directive(_["default"].NG_NAME,_["default"]).directive(p["default"].NG_NAME,p["default"]).factory(a["default"].NG_NAME,a["default"]).service(E["default"].NG_NAME,E["default"]).service(C["default"].NG_NAME,C["default"]).service(I["default"].NG_NAME,I["default"]).service(v["default"].NG_NAME,v["default"]),t.module=T,t["default"]=N},function(e,t,n){"use strict";t.__esModule=!0;t.MAX_ALLOWED_COPIES_NUMBER=10},function(e,t,n){"use strict";function i(e,t,n,i,o,u){"ngInject";function a(e,t,n){return i.isCanvasOutputAvailable()?g(n):_(e,t)}function c(e){var t=e.target.contentDocument.body,n=t.innerText;if(o.hasError(n)){var i=o.extractErrorMsg(n);t.innerText=u.getTranslationSync(i)}}function s(e,t){a(e,t,p(t,2===e.length?"docs=LABEL&docs=ARCHIVE":"docs=ARCHIVE"))}function l(e,t){a(e,t,p(t,"docs="+r.DOCUMENT_TYPES.RECEIPT))}function d(e,t){a(e,t,p(t,"docs="+r.DOCUMENT_TYPES.CUSTOMS_INVOICE))}function f(e,t){a(e,t,p(t,"docs="+r.DOCUMENT_TYPES.CSBV_CUSTOMS_INVOICE))}function p(e,t){return"/api/shipment/"+e+"/document-preview?"+t}function m(t){return n.showDialog({scope:Object.assign(e.$new(),t),templateUrl:"print-preview-dialog-layout.html"}).result}function _(e,n){var i=e.map(function(e){return"docs="+e.documentType}).join("&");t.open("/api/shipment/"+n+"/document-preview?"+i,"printPreviewWindow","resizable=yes,scrollbars=yes,width=800,height=600,menubar=0,toolbar=0,top=50,left=50")}function g(e){return m({url:e,onLoad:c})}function E(e,t){m({url:"/api/shipment/"+e+"/gia/"+t+"/preview"})}return{showLabel:s,showReceipt:l,showInvoice:d,previewDocument:g,showGiaDocument:E,showCsbvInvoice:f}}i.$inject=["$rootScope","$window","modalService","printEnvironmentService","iframeErrorService","nlsService"],t.__esModule=!0,t["default"]=i;var r=n(64);i.NG_NAME="printPreviewOutputService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(968),o=i(r),u=n(2),a=i(u),c=n(2041),s=i(c),l=n(2043),d=i(l),f="profile.shipmentSettings.printerSettings",p=angular.module(f,[a["default"],o["default"]]);p.directive(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]),t.module=p,t["default"]=f},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(2039),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=n(2040),u=angular.module("silent-print",[]);u.service(r["default"].NG_NAME,r["default"]).service("dtJavaService",o.DtJavaService),t.module=u,t["default"]="silent-print"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={laserPrinterType:"Laser Printer",thermalPrinterType:"Thermal Printer"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={EMAILED:"emailed",DOWNLOADED:"downloaded",COMPLETED:"completed"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={CHROME_OR_SAFARI:"chrome/safari",FIREFOX:"firefox",IE:"ie",ANDROID:"android"}},function(e,t,n){"use strict";function i(e){"ngInject";function t(){return e.getElement(i)}function n(t){return e.postElement(i,t)}var i="/api/myprofile/notification/settings";return{getSettings:t,updateSettings:n}}i.$inject=["crudService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="profileNotificationSharingService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(33),a=i(u),c=n(2069),s=i(c),l=n(494),d=i(l),f="shipment.type.additional-customs-documents",p=angular.module(f,[o["default"],a["default"]||"common.configuration"]);p.directive(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]),t.module=p,t["default"]=f},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){return t.get("/api/myprofile/shipment/defaults/customs/clearance",{cache:!0}).then(g)}function u(){var e={cache:!0,cacheDuration:D};return t.get("/api/myprofile/shipment/defaults/delivery",e).then(g)}function a(){return u().then(function(e){return[e.documentDescription,e.predefinedDocumentDescription,e.additionalDocumentDescription]})}function c(e,n,i){return t.get("/api/shipment/parameters/"+e+"/"+n,{cache:i}).then(g)}function s(e){return t.get("/api/shipment/currencies",{cache:!0,params:e}).then(g)}function l(e){return t.post("/api/currency/conversion",e).then(g)}function d(e){return t.post("/api/currency/export-rate/convert",e).then(g)}function f(e,n,i){var r={originCountry:e,destinationCountry:n,currencyCode:i};return t.get("/api/shipment/defaults/insurance",{params:r,cache:!0}).then(g)}function p(e){return t.get("/api/shipment/dutiable",{params:e,cache:!0}).then(g)}function m(){return t.get("/api/shipment/shipment-details/last-description").then(g)}function _(e){return t.get("/api/tasSupport/check/"+e).then(function(e){return"true"===e.data})}function g(e){return e.data}function E(e){return n.getBoolean(n.CI_KEYS.CI0604_ENABLE_EEI,e)}function S(e){return n.getBoolean(n.CI_KEYS.CI0730_ENABLE_COMMERCIAL_INVOICE_FOR_DOCUMENT_SHIPMENTS,e)}function C(e){return n.getBoolean(n.CI_KEYS.CI0963_INSURANCE_TERMS_AND_CONDITION_POPUP,e)}function h(){return n.getBoolean(n.CI_KEYS.CI0408_REMEMBER_LAST_INPUT_FOR_DESCRIPTION).then(function(t){return t||e.reject("")})}function I(t){var i={Documents:o["default"].DOCUMENT,Packages:o["default"].PACKAGE};return n.getSourceData(n.CI_KEYS.CI0071_DEFAULT_SHIPMENT_TYPE_FOR_GUEST_USER,t).then(function(t){return i[t]||e.reject()})}function A(e){return n.getSourceData(n.CI_KEYS.CI1295_DEFAULT_EXTENDED_LIABILITY_CHECKBOX,e).then(N)["catch"](function(){return!1})}function v(e){return n.getSourceData(n.CI_KEYS.CI0075_DEFAULT_INSURANCE_CHECKBOX,e).then(N)}function N(e){return!["","NONE"].includes(e)&&("BOTH"===e||("ACCOUNT_HOLDERS"===e?T():"CASH_OR_CARD"===e?M():void 0))}function T(){return i.isAuthorized()&&i.retrieveAccountHolderStatus()}function M(){return!i.isAuthorized()||i.retrieveAccountHolderStatus().then(function(e){return!e})}function y(t){return i.isGuest()?n.getBoolean(n.CI_KEYS.CI1266_ALLOW_GUEST_TO_USE_OWN_INVOICE,t):e.when(!0)}var D=5e3;return{getProfileDeliveryDefaults:u,getCustomsClearanceDefaults:r,getProfileDocumentsDescription:a,getSomParameters:c,getCurrencies:s,getConvertedCurrency:l,convertCsbvValue:d,getInsuranceDefaults:f,getDutiableAndBondedTransitStatuses:p,getLastShipmentDescription:m,getEstimatedDutiesAvailability:_,getEeiStatus:E,getInvoiceEnabledStatus:S,getTermsAndConditionsPopupVisibility:C,getLastShipmentDescriptionEnabledStatus:h,getShipmentTypeFromAdt:I,getShipmentInsuranceStatus:v,getExtendedLiabilityStatus:A,isOwnInvoiceAllowed:y}}i.$inject=["$q","$http","configService","userService"],t.__esModule=!0,t["default"]=i;var r=n(9),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="shipmentTypeResource"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(e,t){var i=arguments.length<=2||arguments[2]===undefined||arguments[2];return n.getSomParameters(e,t,i)}function o(e,i){var r=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],o=arguments[3],u=r.fromContactKey,a=r.toContactKey,s=t.isAuthorized(),l={fromCountry:e,toCountry:i,fromContact:c(s&&u),toContact:c(s&&a),isCsbvShipment:c(o)};return n.getCurrencies(l).then(function(e){var t=e.insured,n=e.declared;return d(n),f(t),{insured:t,declared:n}})}function c(e){return e||null}function l(e){return n.getEstimatedDutiesAvailability(e)}function d(e){var t=e.declaredCurrencies;t&&!t.includes(e.defaultDeclaredCurrency)&&(e.defaultDeclaredCurrency=t[0])}function f(e){var t=e.currencies;t&&!t.includes(e.defaultCurrency)&&(e.defaultCurrency=t[0])}function p(e,t,n){return(e||!n&&t.intraEuDutiableStatus)&&t.isShipmentTypePackage()&&!t.isNonDutiablePackage}function m(t){return t.sourceCurrency===t.targetCurrency?e.when(t.amount):n.getConvertedCurrency(t)}function _(e,t,i){return n.getInsuranceDefaults(e,t,i)}function g(e){return n.getShipmentInsuranceStatus(e)}function E(e){return n.getInvoiceEnabledStatus(e)}function S(e){return n.isOwnInvoiceAllowed(e)}function C(){var t=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return t.fromCountry&&t.toCountry?n.getDutiableAndBondedTransitStatuses(t).then(function(e){return e.dutiable}):e.reject()}function h(e){return n.getTermsAndConditionsPopupVisibility(e)}function I(e){return e===u["default"].DOCUMENT}function A(e){return e===u["default"].PACKAGE}function v(e,t,n){return A(e)&&t!==n&&[t,n].includes(s["default"].BRAZIL)}function N(){return t.isAuthorized()?n.getProfileDeliveryDefaults().then(function(t){var n=t.shipmentType;return u["default"][n]||e.reject()}):e.reject()}function T(e){return N()["catch"](function(){return n.getShipmentTypeFromAdt(e)})}function M(){return n.getLastShipmentDescription().then(function(t){var n=t.description;return n&&[n]||e.reject([])})}function y(n){return t.isAuthorized()?L(n).then(function(t){return t[0]?[].concat(t,[a.DELIVERY_DEFAULTS]):e.reject()})["catch"](b):e.reject([])}function D(){return t.isAuthorized()?n.getProfileDeliveryDefaults().then(function(e){return e.intraEuDutiableStatus}):e.reject()}function O(){return D()["catch"](function(){return null})}function P(){var t=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return t.fromCountry&&t.toCountry?n.getDutiableAndBondedTransitStatuses(t).then(function(e){return e.bondedTransitAvailable}):e.reject()}function b(){return n.getCustomsClearanceDefaults().then(function(t){var n=t.shipmentDescription;return n&&[n]||e.reject()})["catch"](R)}function R(){return n.getLastShipmentDescriptionEnabledStatus().then(M)}function L(t){return t===u["default"].DOCUMENT?n.getProfileDocumentsDescription():e.when([])}function G(e){var t=e.customsInvoice||{},n=t.declaration;n&&(n.companyLogo&&(n.companyLogos=[n.companyLogo]),n.invoiceRole=n.invoiceRole||n.role,e.enhancedInvoice.declaration=angular.copy(n),e.enhancedInvoice.template.declaration=angular.copy(n))}function U(){return i.isShipmentAssigned()}function F(){return i.isShipmentEditMode()}function w(){return i.isReturnLabelPage()}function k(){return i.isRestoredShipment()}function j(e){return i.isUserAssignee(e)&&i.isGuest()}function V(e){i.setReturnLabelStatus(e)}function B(){return i.getShipmentData()}function $(e,t){var n=t.isMailingListShipment,i=t.isRateAndQuoteFlow,r=t.userProfile,o=e.isLineItemsAvailable(),u=e.isCsbvShipment();e.itemAttributes.arePrecalculatedDutiesAllowed=o&&!n&&!i&&!u&&!r}function x(e,t){var n=e.getShipmentCountry(),i=e.getDestinationCountry();t.isInvoiceRoleApplicable=H(n,i)}function H(e,t){function n(n,i){return e===n&&t===i}return n(s["default"].UNITED_STATES,s["default"].ISRAEL)||n(s["default"].ISRAEL,s["default"].UNITED_STATES)}function Y(e){return e.isCreatingCustomsInvoice()&&e.isInvoiceRoleApplicable&&e.isDutiable&&e.enhancedInvoice.declaration.pod}function K(e){return e.isCommercialInvoiceAvailableForCurrentShipmentType()&&e.isUploadTypeCustomInvoice()&&W(e.itemAttributes)}function W(e){var t=e.defaultCurrency,n=e.uploadedCurrency;return n&&n!==t}function q(e,t){t&&(t.clearForceFileDelete(!0),X(e.itemAttributes)||(t.setForceFileDelete(),e.isEnhancedInvoiceVisited()&&e.setEnhancedInvoiceCompletion(!1)))}function z(e,t){e&&e.items&&j({assignShipment:t})&&e.items.forEach(function(e){delete e.uploadedFromFile})}function X(e){var t=e.uploadedCurrency,n=e.currenciesList;return!t||n.includes(t)}function Q(){return i.isB2lShipment()}return{getCurrencies:o,processCurrencyConversion:m,getInsuranceDefaults:_,getShipmentInsuranceStatus:g,getInvoiceEnabledStatus:E,isOwnInvoiceAllowed:S,getDutiableStatus:C,getTermsAndConditionsPopupVisibility:h,getSomParameters:r,getDefaultShipmentType:T,getDefaultShipmentDescription:y,getDefaultIntraEuDutiableStatus:O,getIntraEuDutiableStatus:P,getEstimatedDutiesAvailability:l,getShipmentData:B,setReturnLabelStatus:V,mapEnhancedInvoiceDeclarations:G,updatePrecalculatedDutiesAvailability:$,updateInvoiceRoleAvailability:x,handleCurrencyChangeForUploadedCurrency:q,clearUploadedItemsForAssignee:z,isShipmentTypeDocument:I,isShipmentTypePackage:A,isServiceTypeSelectorAvailable:v,isShipmentAssigned:U,isShipmentEditMode:F,isReturnLabelPage:w,isRestoredShipment:k,isShipmentDutiable:p,isInvoiceRoleAvailable:Y,isUploadedCurrencyApplicable:K,isB2lShipment:Q}}r.$inject=["$q","userService","shipmentTypeResource","shipmentFlowService"],t.__esModule=!0,t["default"]=r;var o=n(9),u=i(o),a=n(486),c=n(4),s=i(c);r.NG_NAME="shipmentTypeService"},function(e,t,n){"use strict";t.__esModule=!0;t.ACTION_MODIFIED="modifiedSuccessful",t.ACTION_ADDED="addedSuccessful"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){for(var t=arguments.length,n=Array(t),i=0;i=m.allowedWeight.min&&m.pickupTotalWeight.value<=m.allowedWeight.max}function p(){return m.shipmentTotalWeightValue||o.MIN_VALUE_RESTRICTION}var m=this;Object.assign(m,{$onChanges:t,isWarningVisible:d,setDirty:a,getPickupMinValue:p,allowedWeight:{},isDirty:!1})}i.$inject=["component"],r.$inject=["pickupWeightService"],t.__esModule=!0,t["default"]=i,t.PickupWeightController=r;var o=n(244),u=i.NG_NAME="ewfPickupWeight"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2455),a=i(u),c=angular.module("shipment.pickup.pickupAddress",[o["default"]]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="shipment.pickup.pickupAddress"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,o,a,s){"ngInject";function d(e,t){var n=t.fromCustomer,i=t.airWayBillNumber,r=t.pieces,o=t.paymentInfo,a=n.name,c=n.email,s=n.company,l=n.address,d=n.phoneDetails,_={name:a,company:s,email:c,pickupLocation:l,phoneDetails:d};return e.accountOption={value:u["default"].airWayBillNumber},e.airWayBillNumber=i,f(e,o),p(e,r),m(e,{pickupDetails:_})}function f(e,t){e.paymentInfo=t}function p(e,n){if(n.length){var i=t("calculateTotal");e.packages={weight:{value:i(n,"weight","quantity"),som:r.getUOMDimension(n[0].unit)},quantity:i(n,"quantity")}}}function m(e,t){return _(e,t)}function _(t,i){var r=i.pickupDetails.pickupLocation;return r?n.normalizeContact(r).then(function(e){Object.assign(t.pickupAddress,e),g(t,i.pickupDetails),E(t,i.pickupDetails),t.pickupAddress.addressDetails.residentialAddress=r.addressType===l["default"].RESIDENTIAL}):e.when()}function g(e,t){var n=t.phoneDetails;e.pickupAddress.phoneDetails=n}function E(e,t){var n=t.name,i=t.company,r=t.email;Object.assign(e.pickupAddress,{name:n,company:i,email:r})}function S(e,t){C(e,t),h(e,t.instructions),I(e,t.pickupWindow)}function C(e,t){var n=t.pickupLocationType,i=t.pickupLocationOtherDescription;e.pickupLocation=n?{code:n}:e.pickupLocation,e.pickupLocationOtherDescription=i||e.pickupLocationOtherDescription}function h(e,t){e.pickupSpecialInstructions=e.pickupSpecialInstructions||t}function I(e,t){t&&Object.keys(t).length&&e.pickupWindow&&A(e,t)}function A(e,t){var n=t.earliestTime,r=t.latestTime;e.pickupWindow.readyByTime=n&&i.getShortTimeToMin(n),e.pickupWindow.closeTime=r&&i.getShortTimeToMin(r)}function v(t,n){return t.pickupAddress?N(t,n):e.when()}function N(e,t){var i=e.pickupAddress;return n.normalizeContact(t).then(function(e){return Object.assign(i,e)})}function T(e){var t={pickupDetails:x.getPickupDetails(e),packageList:M(e),numberOfPackages:e.packages.quantity,largestPackageDimensions:D(e.packages),totalWeight:O(e.packages.weight),needCourier:e.needCourier,pickupType:e.pickupType,bookingReferenceNumber:e.bookingReferenceNumber};return Object.assign(t,P(e))}function M(e){return e.needCourier?e.packaging.map(function(e){return{id:e.id,quantity:e.quantity}}):[]}function y(e){var t=e.pickupLocation,r=e.pickupLocationOtherDescription,o=r===undefined?"":r,u=e.pickupSpecialInstructions,a=e.pickupDate,c=e.pickupAddress,l=e.pickupWindow,d={pickupLocationType:t&&t.code||"",pickupLocationOtherDescription:o,instructions:u,pickupDate:a,pickupWindow:l&&i.getFormattedPickupWindow(l)};if(c){var f=c.email,p=c.phoneDetails,m=c.phoneDetails2;Object.assign(d,{pickupLocation:n.getFormattedPickupAddress(c),email:f,phoneDetails:s.create(p),phoneDetails2:s.create(m)})}return d}function D(e){var t=e.height,n=e.width,i=e.length,o=e.som;return{unit:o&&r.getUOMValue(o,!0)||"",height:t,width:n,length:i}}function O(e){var t=e.som,n=e.value;return{unit:r.getUOMValue(t),value:n}}function P(e){var t={airWayBillNumber:e.airWayBillNumber||null,accountDetails:null};return R(t,e),L(t,e),G(t,e),t}function b(e){return e&&[c["default"].DHL_ACCOUNT,c["default"].ALTERNATE_DHLACCOUNT].includes(e.paymentMethod)}function R(e,t){var n=t.paymentInfo,i=n?n.transportation:null;b(i)&&(e.accountDetails=a.map(i,["accountId","accountNumber","accountCountry"]),e.accountDetails.accountType=i.paymentMethod)}function L(e,t){o.isDhlAccountOptionSelected(t)&&(e.accountDetails={accountId:t.userAccount.key,accountNumber:null,accountCountry:null,accountType:c["default"].DHL_ACCOUNT})}function G(e,t){o.isAlternateOptionSelected(t)&&(e.accountDetails={accountId:null,accountNumber:t.dhlAccount.number,accountCountry:t.dhlAccount.countryCode,accountType:c["default"].ALTERNATE_DHLACCOUNT})}function U(e,t){return F(e,t),j(e,t),$(e,t.pickupDetails.pickupDate),x.initPickupDetails(e,t.pickupDetails),x.initPickupAddress(e,t.pickupDetails).then(function(){return e.pickupType=t.pickupType,e})}function F(e,t){e.accountOption={},t.accountDetails?k(e,t):w(e,t)}function w(e,t){e.airWayBillNumber=t.airWayBillNumber,e.accountOption.value=u["default"].airWayBillNumber}function k(e,t){e.accountOption.value=u["default"].iHaveDhlAccountNumber,e.airWayBillNumber=t.airWayBillNumber||null,t.accountDetails.accountType===c["default"].DHL_ACCOUNT?(e.userCanSelectAccountFromProfile=!0,e.userAccount={key:t.accountDetails.accountId,accountNumber:t.accountDetails.accountNumber,paymentType:c["default"].DHL_ACCOUNT}):e.dhlAccount={number:t.accountDetails.accountNumber,countryCode:t.accountDetails.accountCountry}}function j(e,t){var n=t.totalWeight,i=t.numberOfPackages,r=t.needCourier;e.needCourier=r,angular.isDefined(i)&&(e.packages.quantity=i),n&&e.packages&&(e.packages.weight=n),V(e,t.largestPackageDimensions),B(e,t.packageList)}function V(e,t){t&&(e.packages.length=t.length,e.packages.height=t.height,e.packages.width=t.width,e.packages.dimensionsUnits=t.unit)}function B(e,t){t&&t.length&&(e.packaging=t)}function $(e,t){e.pickupDate=t}var x={populateModelWithShipmentData:d,populateModel:m,getServerData:T,getPickupDetails:y,initPickupDetails:S,initPickupAddress:v,populateModelWithStandAlonePickupData:U};return x}r.$inject=["$q","$filter","pickupAddressService","pickupWindowService","somService","labelReferenceService","objectMapperService","phoneDetailsFactory"],t.__esModule=!0,t["default"]=r;var o=n(640),u=i(o),a=n(5),c=i(a),s=n(63),l=i(s);r.NG_NAME="pickupMapper"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function u(e){return t.getLocalTime(e)}function a(e){var n=t.stringShortTimeToMin(e.pickupCutoffTime),i=t.stringShortTimeToMin(e.bookingCutoffOffset,!0),r=n-i;return{date:r<0?t.getNearestDay(e.pickupDate,!0):e.pickupDate,time:r<0?1440+r:r}}function c(e,t,n){return n&&s(t,e)&&n-t>=e.customerPickupWindow&&n<=e.latestPickup}function s(e,t){return e&&e>=t.earliestPickup&&e>=t.minReadyByTime}function l(e,n){var i=t.getReadyByTime(e.pickupStartTime,n,e.pickupDate),r=a(e),o=t.stringShortTimeToMin.bind(t.stringShortTimeToMin);return v=t.isTwelveHourClock(),{earliestPickup:o(e.pickupStartTime),latestPickup:o(e.pickupEndTime),readyByTime:i,closeTime:o(e.pickupEndTime),bookingCutoffOffset:o(e.bookingCutoffOffset,!0),customerPickupWindow:o(e.customerPickupWindow),pickupCutoffTime:o(e.pickupCutoffTime),minReadyByTime:i,latestBooking:t.getFormattedTime(r.time,v)}}function d(e,n){var i=t.parseTimeOffset(n);return{month:t.getLocalizedMonth(e),date:t.getFormattedDate(e,"d"),day:t.getFormattedDay(e,i)}}function f(n,i,r){return n&&r?u(i).then(function(e){var i=e.localTime,o=e.localDate;return r<=o&&t.stringShortTimeToMin(i)>a(n).time}):e.when(!1)}function p(e){return t.getFormattedTime(e,v)}function m(e,n){return t.isToday(e,n)}function _(e){return{earliestTime:t.getFormattedTime(e.readyByTime),latestTime:t.getFormattedTime(e.closeTime)}}function g(e){return{pickupStartTime:e.pickupStartTime,pickupEndTime:e.pickupEndTime,pickupCutoffTime:e.pickupCutoffTime,bookingCutoffOffset:e.bookingCutoffOffset,customerPickupWindow:e.customerPickupWindow,pickupDate:e.pickupDate}}function E(e){return v=t.isTwelveHourClock(),t.stringShortTimeToMin(e)}function S(e){return n.isPickupAddressDefined(e)}function C(e){if(!e.pickupCutoffTime)return void(e.warningMessage=!1);var t=e.pickupCutoffTime,n=e.readyByTime||0;e.warningMessage=n>t}function h(t,n){if(!t)return e.when(!1);var o=[r.getBoolean(r.CI_KEYS.CI1381_ALLOW_SATURDAY_PICKUP,n),i.getWeekendsForCountry(n)];return e.all(o).then(function(e){var n=e[0],i=e[1];return n||!I(t,i)})}function I(e,t){var n=new Date(e),i=o["default"][n.getUTCDay()];return t.includes(i)}function A(){return t.getFormattedDate(new Date,"yyyy-MM-dd")}var v=!1;return{getLocalTime:u,getLatestBooking:a,getPickupWindow:l,getPickupDate:d,getFormattedPickupTime:p,getFormattedPickupWindow:_,getNewProductPickupWindow:g,getShortTimeToMin:E,getShortPickupDate:function(){function e(e){return t.getShortDate(e)}return e}(),isValidPickupWindow:c,isPickupScheduledToday:m,isBookingCutoffDatePassed:f,isPickupAddressValid:S,checkPickupCutoffWarningMessage:C,isPickupDateAvailable:h,getFormattedCurrentDate:A}}i.$inject=["$q","dateTimeService","pickupAddressService","locationService","configService"],t.__esModule=!0,t["default"]=i;var r=n(2476),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="pickupWindowService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,o,a,s,d){"ngInject";function p(){return a.getUserProfileDefaults()}function _(t,i,r){return r?e.when([!0]):n.hasDhlAccounts()?e.all([p(),C(t,i)]).then(function(e){var t=e[0],n=e[1],i=n[0],r=n[1];return[i||!F(t),r]}):a.fetchPickupMandatoryForNonAccountUser(i).then(function(e){return[!0,e]})}function E(t){var n=o.create(t).getPayload();return n?a.getBookingReferenceNumber(n).then(function(e){var t=e.data;return t&&t[0]||null})["catch"](function(){return null}):e.when(null)}function S(e){return a.fetchAdditionalChargesNecessity(e)}function C(t,n){return t.hasAccounts()?t.isTransportationAccountGcdbTypeCash()?a.fetchPickupOptionalityForCashAccountPayment().then(function(e){return[!e]}):e.when([!1]):a.fetchPickupMandatoryForNonAccountUser(n).then(function(e){return[e,e]})}function h(e,t){return C(e,t).then(function(e){return e[0]})}function I(e){return a.fetchDropOffFlag(e)}function A(e){return a.fetchDefaultPickupStatus(e)}function v(t){var n=t.shipmentCountry,i=t.isRpaShipment,r=t.isImportShipment,o=t.product,u=N(o),a=!u&&i;return u||i?e.when([!1,a]):T(n,r).then(function(e){return[e]})}function N(e){return D()||e&&e.isFutureDate}function T(e,t){return t?y(e):a.fetchPickupActivity(e)}function M(){return r.getB2lRestrictions().then(function(e){return e.pickupSection!==f["default"].HIDDEN})}function y(t){var n=[a.fetchPickupActivity(t),a.fetchRemotePickupAvailability(),a.fetchRemotePickupOrderStatus(t)];return e.all(n).then(function(e){var t=e[0],n=e[1],i=e[2];return t&&n&&i})}function D(){return!n.getCoreRestriction(u["default"].ALLOW_SCHEDULE_PICKUP)}function O(){return!t.getParamFromUrl(c["default"].B2L_SHIPMENT)}function P(e,t){return a.fetchMaxPickupDaysCount(t).then(function(t){return e.setDate(e.getDate()+t),e})}function b(e,t,n){return P(i.normalizeDate(t),n).then(function(t){return i.normalizeDate(e)<=t})}function R(e){return!e.isPickupRequired()||e.isPickupDateValid}function L(){var e=t.getBasePath(),n=""+e+l["default"].PROFILE_DETAILS,i=d.SHIPMENT_PICKUP.SCHEDULE_PICKUP_ALERT_NO_ADDRESS,r=d.SHIPMENT_PICKUP.SCHEDULE_PICKUP_LINK_USER_DETAILS;return s(i,{userDetailsLink:""+r+""})}function G(e){return e&&e.pickupDefaultType}function U(e){return G(e)===m["default"].YES_COURIER}function F(e){return G(e)===m["default"].NO_SCHEDULED}function w(e){return G(e)===m["default"].NO_DROP_OFF}function k(e){return F(e)||w(e)}function j(e){e.isShipperWillSchedule()&&e.isShipperWillScheduleHidden&&a.skipPickupInfoBoxes(K)}function V(e,t,n){n||k(t)?e.setDropOffNeeded(w(t)):U(t)&&e.setPickupNeeded()}function B(e,t){t&&![g["default"].SHIPPER_WILL_SCHEDULE,g["default"].PICKUP].includes(e.pickupOption)&&e.resetPickupOption()}function $(e){n.isAuthorized()||W||(W=!0,e.resetPickupOption())}function x(e,t){return n.getCorporateCountryCode()!==e&&(n.isRegularWithVirtualGroup()||t)}function H(e,t){return!Y()&&!e&&t}function Y(){return!!t.getParamFromUrl(c["default"].RB_SHIPMENT)}var K="SHIPPER_INFO_BOX",W=!1;return{retrieveBookingReferenceNumber:E,fetchAdditionalChargesRequiredStatus:S,fetchPickupMandatoryFlag:h,fetchDropOffFlag:I,fetchDefaultPickupStatus:A,fetchB2lPickupAvailability:M,getMaxPickupDate:P,getProfileAddressAlertMessage:L,getUserProfileDefaultValues:p,processPickupInfoBoxes:j,setExportPickupDefaults:V,resetPickupOptionForImportShipmentIfNeeded:B,resetPickupOptionOnceForUnauthorizedUser:$,isPickupRestricted:D,isPickupAvailable:v,isPickupAddressVisible:O,isPickupTypeYes:U,isPickupDateValid:b,isAllowedPickupOptionSelected:R,isPickupVisibleByDefault:_,isAuthorizedPickupRestrictedForUser:x,isAuthorizedPickupAllowedForShipment:H,isRemoteBooking:Y}}r.$inject=["$q","pathService","userService","dateTimeService","b2lRestrictionsService","pickupSearchFactory","pickupResource","replaceFilter","Messages"],t.__esModule=!0,t["default"]=r;var o=n(43),u=i(o),a=n(1),c=i(a),s=n(23),l=i(s),d=n(51),f=i(d),p=n(291),m=i(p),_=n(641),g=i(_);r.NG_NAME="pickupService"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){"ngInject";function t(e){return new r(e)}var n=["pickupDate",{key:"pickupAddress",propertyMap:["countryCode","city","zipOrPostCode","addrLine1","addrLine2","addrLine3"]}],r=function(){function t(r){i(this,t);var o=e.mapEmptyValuesToNull(e.map(r,n));Object.assign(this,o)}return t.prototype.getPayload=function(){function e(){var e=this.pickupAddress,t=e.countryCode,n=e.city,i=e.zipOrPostCode,r=e.addrLine1,o=e.addrLine2,u=e.addrLine3;return[t,n,r,this.pickupDate].every(Boolean)?{pickupDate:this.pickupDate,pickupAddress:{countryCode:t,city:n,zipOrPostCode:i,addrLine1:r,addrLine2:o,addrLine3:u}}:null}return e}(),t}();return{create:t}}r.$inject=["objectMapperService"],t.__esModule=!0,t["default"]=r,r.NG_NAME="pickupSearchFactory"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"labelReferenceCtrl",bindings:{model:"="+o,accountInvalidError:"=?"+o+"AccountInvalidError",isDashboard:"=n&&r(i,o)}function r(e,t){var n=e&&!!e[0]&&!!e[0].data;return 1===t&&!n||0===t}function a(e){var t=e.currentValue,n=e.charsIfMatchInAb,i=e.searchResultsLength;return t.length>=n&&i>1}return{restrict:"A",require:["ngModel","?^ewfAddressSearch","?^ewfAddressField"],link:t}}i.$inject=["$timeout"],t.__esModule=!0,t["default"]=i;var r=n(451),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfTypeaheadTrigger"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"typeaheadItemStylesCtrl"}}t.__esModule=!0,t["default"]=i;var r=n(1170),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfTypeaheadItemStyles"},function(e,t,n){"use strict";function i(){"ngInject";function e(e){var t=e.data,c=t===undefined?{}:t,s=e.group;return c.favoriteShipFrom||c.favoriteShipTo||s===r?n:[o,a,u].includes(s)?i:void 0}var t=this,n="in-favorites",i="in-address-book",r="To Favorites",o="From Address Book",u="Search Addressbook",a="Search Address Book";Object.assign(t,{getStyles:e})}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){"ngInject";function e(e,t,n,i){var r=function(){var e=arguments.length<=0||arguments[0]===undefined?"":arguments[0],n=e.toUpperCase();if(n!==e){var r=t[0].selectionStart;i.$setViewValue(n),i.$render(),t[0].selectionStart=r,t[0].selectionEnd=r}return n};i.$parsers.push(r),r(e[n.ngModel])}return{restrict:"A",require:"ngModel",link:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfUppercaseInput"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){function r(e){var t=angular.isString(e)?e.replace(/^\s*/,""):e;return t===e?e:(i.$setViewValue(t),i.$render(),o.selectionStart=o.selectionEnd=0,t)}var o=t[0];i.$parsers.push(r)}return{restrict:"A",require:"ngModel",link:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfNoStartSpacesInput"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){var t=/[\^\$\.\*\+\?\(\)\[\]\{\}\|]/g;return e.replace(t,"\\$&")}function i(t,n){var i=arguments.length<=2||arguments[2]===undefined?"9":arguments[2],u=n||o["default"].PhoneNumberFormat.INTERNATIONAL,a=t.toUpperCase(),c=o["default"].getUtilInstance(),s=o["default"].exampleMobileNumber(a);if(!s)return e.when(" ");var l=c.parseAndKeepRawInput(s,a),d=""+c.getCountryCodeForRegion(a),f=c.format(l,u),p=(u===o["default"].PhoneNumberFormat.RFC3966?5:1)+d.length,m=f.substr(p),_=/\d/g,g=/-|\s/;return r(t,m.replace(g,"").replace(_,i),i)}function r(e,i,r){var o=""+i+r.repeat(l);return t.getSourceData(t.CI_KEYS.CI1278_COUNTRY_PHONE_NUMBER_LENGTH).then(function(t){var u=t&&t.find(function(t){return t.countryCode.value===e}),a=i.split(r).length-1;if(!u)return o;var c=Math.abs(u.lengthOfPhoneNumber-a);if(u.lengthOfPhoneNumber>a)return""+i+r.repeat(c);var s=new RegExp("(.*)(?:(-|s)*"+n(r)+"){"+c+"}$","g");return i.replace(s,"$1").replace(/(-|\s)*$/,"")})["catch"](function(){return o})}function u(e){return i(e,o["default"].PhoneNumberFormat.INTERNATIONAL)}function a(e){return i(e,o["default"].PhoneNumberFormat.RFC3966)}function c(e){return i(e,o["default"].PhoneNumberFormat.E164)}function s(e,t){var n=o["default"].getUtilInstance(),i=n.getRegionCodeForCountryCode(t),r=n.parse(e,i);return n.format(r,o["default"].PhoneNumberFormat.INTERNATIONAL)}var l=5;return{getPhoneMaskByCountryCode:i,getPhoneMaskByCountryCodeInternational:u,getPhoneMaskByCountryCodeRFC3966:a,getPhoneMaskByCountryCodeE164:c,isValidNumber:o["default"].isValidNumber,getCountryForNumber:o["default"].countryForE164Number,cleanPhone:o["default"].cleanPhone,availablePhoneFormats:Object.assign({},o["default"].PhoneNumberFormat),getPhoneInternationalForm:s}}i.$inject=["$q","configService"],t.__esModule=!0,t["default"]=i;var r=n(1174),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="phoneFormatService"},,function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function o(e){return e?u().then(function(t){return t.find(function(t){return t.isocurrencyCode===e}).decimalPoint}):t.when(null)}function u(){return l?t.when(l):e.get("/api/currencies",{cache:!0}).then(function(e){return l=e.data})}function a(e,t,n){return c(e,t).then(function(e){return n?e+" "+n:e})}function c(e,o){if(angular.isNumber(e)&&s(o))return t.when(e);var u=n("decimalSeparator");return i.getDecimalSeparator().then(function(t){var n=!e||isNaN(e)||e===r.HIDDEN_PRICE_VALUE_MASK?r.HIDDEN_PRICE_VALUE_MASK:Number(e).toFixed(o);return u(n,t)})}function s(e){return angular.isUndefined(e)||null===e}var l=null;return{getCurrencies:u,getCurrencyDecimalPoint:o,getFormattedPrice:c,format:a}}i.$inject=["$http","$q","$filter","ewfcDecimalSeparatorService"],t.__esModule=!0,t["default"]=i;var r=n(59);i.NG_NAME="priceService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e,t){return u(e).then(function(n){var r=n[0],u=n[1],a=n[2],c=n[3],s=n[4];return r||u||(e.zipOrPostCode=""),i(a,e),c||s||o(e,t),e})}function i(e,t){e||r(t)}function r(e){e.citySuburbName="",e.suburb=""}function o(e,t){if(t)return void(e.countryDivisionName="");e.state=""}function u(n){var i=n.countryCode;return i?e.all([a(t.CI_KEYS.CIF0452_ZIP,i),a(t.CI_KEYS.CIF0241_POSTAL_CODE,i),a(t.CI_KEYS.CIF0239_SUBURB,i),a(t.CI_KEYS.CIF0240_PROVINCE,i),a(t.CI_KEYS.CIF0453_STATE,i)]):e.reject("Missing required parameter")}function a(e,n){return t.getFormField(e,n).then(function(e){return e.visible})}return{clearNotVisibleAddressDetails:n}}i.$inject=["$q","configService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="addressDetailsFilteringService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return angular.element(".header").height()}function r(){return i()+m}function o(e){return angular.element("#"+e+":visible")}function u(e){return!!o(e).length}function a(e,t){var i=e||n.getHash();i&&(n.setHash(i),c(i,t))}function c(e,t){s(o(e||n.getHash()),t)}function s(n){var i=arguments.length<=1||arguments[1]===undefined?r():arguments[1],o=n.offset()||{},u=o.top;u&&t(function(){e.scrollTo(0,u-i)},0)}function l(e){var t=e[0];return t&&t.getBoundingClientRect().top}function d(n){t(function(){var t=l(n),i=e.outerHeight,r=i/6,o=t-r;e.scrollTo(0,o)})}function f(t){e.scrollTo(0,e.scrollY+t)}function p(){t(function(){e.scrollTo(0,0)})}var m=15;return{getHeaderHeight:i,getTopPosition:l,isElementExists:u,scrollTo:a,scrollToWithoutHash:c,scrollToElement:s,scrollToSection:d,incrementVerticalPosition:f,scrollToTop:p}}i.$inject=["$window","$timeout","pathService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="anchorScrollService"},function(e,t,n){"use strict";function i(){function e(e,i,r){var o=e.$eval(i[r+"OptionalMandatorityConfig"]);if(!o)return void t();n(o)}function t(){c&&(c.removeOptionalMandatority(),c=null)}function n(e){e.applyOptionalMandatority(),c=e}function i(e){var t=angular.element(e[0].body.querySelector("[ng-form=toContact] [name=cnpjOrCPFTaxID]")),n=t.controller("ewfBrazilTax");return n&&{applyOptionalMandatority:n.applyOptionalMandatority,removeOptionalMandatority:n.removeOptionalMandatority}}function r(e,t){a[e]={isVisible:t}}function o(e){delete a[e]}function u(e){return a[e]&&a[e].isVisible}var a={},c=null;return{applyOptionalMandatorityConfig:e,getOptionalMandatorityConfig:i,setElementVisibilityStatus:r,removeElementVisibilityStatus:o,getElementVisibilityStatus:u}}t.__esModule=!0,t["default"]=i,i.NG_NAME="optionalMandatorityService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){return e.then(function(e){return e.data})["catch"](function(e){return t.reject(p(e))})}function i(t,i,r){var o=Array.isArray(t)?t:[t],u={};return u[r]=o,n(e.post(i,u))}function o(t,i){var o=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],u=i?t+"/"+i:t,c=a(o);return n(e.get(u,r({params:c},o)))}function u(t,i){var r=a(i);return n(e.get(t,Object.assign({params:r},i)))}function a(e){return e&&e.cache?{}:{preventcache:(new Date).getTime()}}function c(e,t){return f("get",e,t)}function s(e,t){return f("post",e,t)}function l(e,t){return f("put",e,t)}function d(e){return f("delete",e)}function f(t,i,r){return n(e[t](i,r))}function p(e){var t=e.data,n=e.status,i=angular.isString(t)?{data:t}:t;return Object.assign({data:t,status:n},i)}return{deleteElements:i,deleteElement:d,getElementDetails:o,getElementList:u,getElement:c,postElement:s,changeElement:l}}i.$inject=["$http","$q"],t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;tq&&!d(e)}function d(e){return z.some(function(t){return e.includes(t,q)})}function f(e,t){var n=z.filter(function(t){return e.includes(t,q)}),i=n.length&&e.indexOf(n[0],q);return p(i?e.slice(0,i):e,t)}function p(e,n){return t("date")(e,n)}function m(e,n){var r=o(new Date,n),u=(new Date).setDate(r.getDate()+1),a=t("date")(e,"mediumDate"),c=t("date")(r,"mediumDate"),s=t("date")(u,"mediumDate");switch(a){case c:return i.DATETIME.TODAY;case s:return i.DATETIME.TOMORROW;default:return[i.DATETIME.SUNDAY,i.DATETIME.MONDAY,i.DATETIME.TUESDAY,i.DATETIME.WEDNESDAY,i.DATETIME.THURSDAY,i.DATETIME.FRIDAY,i.DATETIME.SATURDAY][H(e).getDay()]}}function _(e){return[i.DATETIME.JANUARY,i.DATETIME.FEBRUARY,i.DATETIME.MARCH,i.DATETIME.APRIL,i.DATETIME.MAY,i.DATETIME.JUNE,i.DATETIME.JULY,i.DATETIME.AUGUST,i.DATETIME.SEPTEMBER,i.DATETIME.OCTOBER,i.DATETIME.NOVEMBER,i.DATETIME.DECEMBER][H(e).getMonth()]}function g(e){var n=o(e);return t("date")(n,"MM/dd/yyyy")}function E(e){var t=o(e),n=k(t),i=60*t.getHours()+t.getMinutes();return n+" "+(v()?C(i):b(i))}function S(e){var t=!(arguments.length<=1||arguments[1]===undefined)&&arguments[1],n=I(e,!0);return t?C(n):b(n)}function C(e){var t=L(e),n=R(e);n=n<10?"0"+n:n;var i=t>=12?"pm":"am";return t%=12,(t=t||12)+":"+n+" "+i}function h(e,t,n){var i=T(e),r=P(n),o=P(t.localDate),u=T(t.localTime);return uo?i:I(u)}function I(e){var t=!(arguments.length<=1||arguments[1]===undefined)&&arguments[1],n=R(e)%15,i=e;if(n){var r=R(e)-n;r=t?r:r+15;var o=L(e);r>=60&&(++o,r=0),i=60*o+r}return i}function A(e,n){return t("date")(n,K)===e}function v(){return!!j(new Date).substr(-2).match(/(?:AM|PM)$/i)}function N(e){var t=e.split(":"),n=Number(t[0]),i=Number(t[1]);return n<0?6e4*(60*n-i):6e4*(60*n+i)}function T(e,t){var n=y(e),i=n.hours,r=n.minutes;if(D(r)&&O(i)||t)return 60*i+1*r;throw new Error("Wrong short time format, expected 'HH:mm', actual '"+e+"'")}function M(e,t){var n=new Date(e),i=y(t),r=i.hours,o=i.minutes;return n.setHours(r),n.setMinutes(o),n}function y(e){if(!angular.isString(e))throw new Error("Wrong type for time, should be a string");var t=e.split(":");return{hours:t[0],minutes:t[1]}}function D(e){var t=Number(e);return t<60&&t>=0&&!isNaN(t)}function O(e){var t=Number(e);return t<24&&t>=0&&!isNaN(t)}function P(e){return new Date(e.replace(/-/g,"/"))}function b(e){var t=parseInt(e/60,10),n=e-60*t,i=n;return n<10&&(i="0"+n),t+":"+i}function R(e){return e%60}function L(e){return parseInt(e/60,10)}function G(e){return e&&C(T(e))}function U(e,t){return p(e,K)===p(t,K)}function F(e){return k(o(e))}function w(){return r.getSourceData(r.CI_KEYS.CI0611_ADVANCE_DATE_DISPLAY_CHOICE).then(function(e){return e||null})}function k(e){return e.toLocaleDateString(V())}function j(e){return e.toLocaleString(V())}function V(){return e.navigator.userLanguage||e.navigator.language}function B(e,t){var n=new Date(e+"T00:00:00"),i=t?n.getDate()-1:n.getDate()+1;return p(new Date(n.setDate(i)),K)}function $(e){return n.get("/api/location/local_time",{params:{serviceAreaCode:e}}).then(function(e){return e.data})["catch"](function(){return null})}function x(e){return new Date(g(e))}function H(e){var t=angular.isString(e)&&s(e)?new Date(e+"T"+W):new Date(e);if(isNaN(t.getTime()))throw new Error("Invalid date format");return t}function Y(e){return e&&new Date>new Date(B(e)+"T00:00:00")}var K="yyyy-MM-dd",W="00:00:00",q=10,z=["Z","+","-"];return{normalizeDate:o,parseTimeOffset:N,stringShortTimeToMin:T,convertStrToDate:P,minToShortTime:b,convert24toAMPM:G,convertDateToLocaleFormat:F,getFormattedDate:p,getFormattedDay:m,getLocalizedMonth:_,getShortDate:g,getShortDateAndTime:E,getFormattedTime:S,getReadyByTime:h,getDateByDateAndTime:M,getAdvanceDateDisplay:w,getLocaleDateString:k,getNearestDay:B,getLocalTime:$,getFormattedDateIgnoringTimezone:f,getDateIgnoringTime:x,areDatesEqual:U,isToday:A,isTwelveHourClock:v,isShippingDateHasPassed:Y}}i.$inject=["$window","$filter","$http","Messages","configService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="dateTimeService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(n,i){function r(t){u=null,a&&a.resolve(n.apply(undefined,t)),a=e.defer()}function o(){for(var e=arguments.length,n=Array(e),o=0;ot?t:n}function t(e,t){var n=arguments.length<=2||arguments[2]===undefined?t+1:arguments[2];e.push({index:t,display:n})}function n(e,n){t(e,n)}function i(e,t,n){s(e,t,n)}function o(e,t,n){c(e,t,n)}function u(e,t,n){c(e,t,n)}function a(e,t,n){s(e,t,n)}function c(e,n,i){i-n==1&&t(e,i)}function s(e,n,i){switch(i-n){case 0:return;case 1:break;default:t(e,null,d)}t(e,i)}function l(){var t=arguments.length<=0||arguments[0]===undefined?0:arguments[0],c=arguments.length<=1||arguments[1]===undefined?0:arguments[1],s=arguments.length<=2||arguments[2]===undefined?r.MIN_PAGE_SIZE:arguments[2],l=[],d={pageSize:s||r.MIN_PAGE_SIZE,rowMin:null,rowMax:null,pageIndex:0,pageCount:0,totalRecords:t||0,window:l};if(n(l,0),t&&s>0){var f=Math.ceil(t/s),p=f-1,m=e(0,p,c),_=e(0,m,m-1),g=e(m,p,m+1);i(l,0,_),o(l,_,m),u(l,m,g),a(l,g,p);var E=s*m,S=Math.min(t,s*(m+1))-1;Object.assign(d,{rowMin:E,rowMax:S,pageIndex:m,pageCount:f})}return d}var d="…";return{paginate:l}}t.__esModule=!0,t["default"]=i;var r=n(21);i.NG_NAME="paginationService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t,n){var r={captchaData:n,email:t};return e.post("/api/auth/password/reset/send",r).then(function(e){return e.data})["catch"](i)}function i(e){var n=e.data,i=r(n)||"errors.common_msg_service-currently-unavailable";return t.reject(i)}function r(e){var t=void 0;if(e&&e.errors){t=e.errors[0]}else if(e&&e.fieldErrors){var n=e.fieldErrors["captchaData.value"];t=n[0]}return t}function o(t){return e.post("/api/auth/password/reset",t).then(function(e){return e.data})}function u(t){return e.post("/api/auth/password/reset/token/validate",{token:t})}function a(t){return e.post("/api/auth/password/reset/token/renew",{token:t})}function c(t){return e.post("/api/auth/password/create",t).then(function(e){return e.data})}function s(t){return e.post("/api/auth/password/create/token/validate",{token:t})}function l(t){return e.post("/api/auth/password/create/token/renew",{token:t})}function d(t){return e.post("/api/auth/password/changeExpired",t).then(function(e){return e.data})}return{sendResetPassword:n,resetPassword:o,validateResetToken:u,resendPasswordResetEmail:a,createPassword:c,validateCreateToken:s,resendPasswordCreateEmail:l,changeExpiredPassword:d}}i.$inject=["$http","$q"],t.__esModule=!0,t["default"]=i,i.NG_NAME="passwordService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(i,r,o){var u=n.defer(),a=!1,c=null,s=function(){if(!c){(c=i()).then(function(e){a||(a=!0,u.resolve(e))})["finally"](function(){c=null})}};return function(){o&&e(function(){a||(a=!0,u.reject())},o),s();var n=t(function(){a?t.cancel(n):s()},r);return u.promise}}return{schedule:i}}i.$inject=["$timeout","$interval","$q"],t.__esModule=!0,t["default"]=i,i.NG_NAME="requestSchedulerService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return r()?e.get("/api/myprofile/rewards/available").then(function(e){return e.data})["catch"](function(e){var n=e.data;return t.reject(n)}):t.when(!1)}function r(){return n.getCoreRestriction(o["default"].REWARD_ENABLED)}return{canShowRewardCards:i,isRewardEnabled:r}}i.$inject=["$http","$q","userService"],t.__esModule=!0,t["default"]=i;var r=n(43),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="rewardCardsService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){var t=e.get(r);return!!t&&Date.now()0}function re(){return oe().filter(function(e){return f["default"].STATE_PRIVILEGES.includes(e)})}function oe(){return z()?ge.privileges:ge.groupPrivileges[i.get(m["default"].CURRENT_GROUP)]||[]}function ue(){var e=arguments.length<=0||arguments[0]===undefined?ge.identityType:arguments[0];return e===c["default"].EMPLOYEE||e===c["default"].CORPORATE||ae(e)}function ae(){return ce(arguments.length<=0||arguments[0]===undefined?ge.identityType:arguments[0])&&!!i.get(m["default"].CURRENT_GROUP)}function ce(){return(arguments.length<=0||arguments[0]===undefined?ge.identityType:arguments[0])===c["default"].REGULAR}function se(e){var t=ge,n=t.coreRestrictions;return n&&n[e]}function le(){return ge.corporateCountryCode||g["default"].UNITED_STATES}function de(){return ue()?le():w()}function fe(){return!!ge.offlineUser}function pe(){return ge.tenants}function me(){return ge.corporateRole||l["default"].END_USER}function _e(){return ge.personaType||u["default"].GUEST}var ge={},Ee=!1;return{logIn:v,logOut:N,retrieveAccountHolderStatus:K,resendActivationEmail:T,clearStoredCredentials:L,whoAmI:G,getUsername:y,getUserFirstName:O,getUserCorporateCompany:P,getUserLastName:D,getUserCountry:w,getUserCountryName:j,getUserLanguage:V,getUserLanguageCode3:B,getTrustEvCountryCode:k,getLoginAttempt:b,getCorporateId:ee,getCoreRestriction:se,getCompanyName:te,getPrivilegesByCorpRole:oe,getUid:x,getCorporateCountryCode:le,getIdentityCountryCode:de,getAvailableTenants:pe,getId:$,getCorporateRole:me,getPersonaType:_e,setId:H,setUsername:M,setUserInfo:_,isAuthorized:U,isExpertFlow:A,isCorpAdmin:z,isCorpEmployee:ue,isGroupAdmin:X,isEndUser:J,isDhlAdmin:Z,isDHLAdminLoggedAsCorporate:Q,isRegular:ce,isGuest:F,isOfflineUser:fe,isRegularWithVirtualGroup:ae,isEmailVerified:W,hasDhlAccounts:Y,hasCorpAdminAccess:q,hasPrivilege:ne,hasAnyStatePrivilege:ie}}r.$inject=["$http","$q","$localStorage","cookiesService","userInfoService","manageCountryAndLanguageService","cqWcmModeService","locationService","Messages","pathService"],t.__esModule=!0,t["default"]=r;var o=n(450),u=i(o),a=n(1207),c=i(a),s=n(68),l=i(s),d=n(95),f=i(d),p=n(14),m=i(p),_=n(4),g=i(_),E=n(19),S=i(E);r.NG_NAME="userService"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={REGULAR:"REGULAR",EMPLOYEE:"EMPLOYEE",CORPORATE:"CORPORATE"}},function(e,t,n){"use strict";function i(){function e(e){return Object.keys(e).filter(function(t){var n=e[t];return""!==n&&n!==undefined&&null!==n}).reduce(function(t,n){var i=e[n];return angular.isArray(i)?i.length&&i.forEach(function(e){return t.push([n,e])}):t.push([n,i]),t},[]).map(t).sort().join("&")}function t(e){var t=e[0],n=e[1];return t+"="+encodeURIComponent(n)}function n(t){var n=e(t);return n?"?"+n:""}return{encodeParams:e,getParamsString:n}}t.__esModule=!0,t["default"]=i,i.NG_NAME="queryParamsService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){if(s=c())return void(l=e.when(s));d=d||t.get("$http"),i.log("Business Transaction: request init"),l=d.post("/api/logger/start_business_transaction").then(function(e){var t=e.data;return s=t})["finally"](function(){i.log("Business Transaction: request finished")})}function u(){return l||e.when()}function a(){l=e.when()}function c(){return n.getParamFromUrl(o["default"].BUSINESS_TRANSACTION_ID)}var s=void 0,l=void 0,d=void 0;return{startTransaction:r,getTransactionId:u,stopTransaction:a}}i.$inject=["$q","$injector","pathService","logService"],t.__esModule=!0,t["default"]=i;var r=n(1),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="businessTransactionService"},function(e,t,n){"use strict";function i(e,t,n,i,r,u,a){"ngInject";function c(){return a.getTrustEvCountryCode()}function s(){return I=I||l()}function l(){return r.getBooleanIfSupportedByCountry(r.CI_KEYS.CI1307_TRUSTEV_MODE,c()).then(d).then(f)}function d(t){return t?r.getSourceData(r.CI_KEYS.CI1308_TRUSTEV_JAVASCRIPT_URL,c()):e.reject()}function f(e){return r.getSourceData(r.CI_KEYS.CI1309_TRUSTEV_PUBLIC_KEY,c()).then(function(t){return p(e,t)})}function p(t,r){var o=e.defer(),u=i.document.getElementsByTagName("head")[0],a=i.document.createElement("script");return a.onload=function(){return o.resolve(r)},a.onerror=function(){n(function(){p(t).then(function(){v&&m(r)}),u.removeChild(a),o.reject("rejected, but retrying")},h)},a.src=t,u.appendChild(a),o.promise}function m(e){return t(function(){return _(e)},C),_(e)}function _(e){return g(e).then(function(e){return u.putRootCookie(o["default"].TRUST_EV_SESSION_ID,e)})}function g(t){var n=e.defer();return i.TrustevV2.Init(t,function(e){return n.resolve(e)}),n.promise}function E(){return v=!0,A=A||s().then(m)}function S(){return E()["catch"](function(){return undefined})}var C=6e5,h=5e3,I=void 0,A=void 0,v=void 0;return{preloadTrustEv:s,initializeTrustEv:E,checkTrustEvInitialization:S}}i.$inject=["$q","$interval","$timeout","$window","configService","cookiesService","userService"],t.__esModule=!0,t["default"]=i;var r=n(14),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="trustEvService"},function(e,t,n){"use strict";function i(){function e(e,t){return e&&t?"data:"+e+";base64,"+t:""}return{toBase64String:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="base64Service"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){e.print()}return{print:t}}i.$inject=["$window"],t.__esModule=!0,t["default"]=i,i.NG_NAME="printService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n,i){e.isAuthorized()||(i.addClass("ng-cloak"),t.redirectToLogin())}return{restrict:"A",link:n}}i.$inject=["userService","navigationService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfRedirectGuestToLogin"},function(e,t,n){"use strict";function i(){function e(){n=!1}function t(e,t){"ngInject";function i(e){e.status===o["default"].UNAUTHORIZED&&r()}function r(){n&&(t.saveNextFormTimeoutMessage(),e.setRequestedUrl(),e.redirectToLogin())}return{redirectToLoginIfUnauthorized:i,redirectToLogin:r}}t.$inject=["navigationService","loginService"];var n=!0;return{disableRedirectToLogin:e,$get:t}}t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="sessionExpiredService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(){return n.getValue(n.CI_KEYS.CI0859_INVOICE_DUTIES_TAXES_ACCOUNT)}function o(){return{paymentType:u["default"].ALTERNATE_DHLACCOUNT,name:i.SHIPMENT_PAYMENT.PAYMENT_SELECTION_SELECT_OPTION_ALTERNATE_DHL_ACCOUNT,key:f["default"]}}function a(){return{paymentType:u["default"].RECEIVER_WILL_PAY,name:i.SHIPMENT_PAYMENT.PAYMENT_SELECTION_SELECT_OPTION_RECEIVER_WILL_PAY,key:"receiverPay"}}function s(){return{paymentType:u["default"].CASH,name:i.SHIPMENT_PAYMENT.PAYMENT_SELECTION_SELECT_OPTION_CASH}}function d(e){return e.accountType===c["default"].SHIPPER}function p(e){return e===w}function m(){return n.getBoolean(n.CI_KEYS.CI1290_ALLOW_NON_ACCOUNT_PAYMENT_TYPES_FOR_ACCOUNT_HOLDERS)}function _(e){return g(e,u["default"].CASH)}function g(e,t){return!!e&&[e.paymentMethod,e.paymentType].includes(t)}function E(e){return g(e,u["default"].RECEIVER_WILL_PAY)}function S(e){return g(e,u["default"].DHL_ACCOUNT)}function C(e){return g(e,u["default"].ONLINE_PAYMENT)}function h(e){return e.importAccount}function I(e){return v().then(function(){return A(e)})}function A(e){return N(e.accountCountryCode)===N(t.getUserCountry())}function v(){return e.get(F,{cache:!0}).then(function(e){var t=e.data;return k=t})}function N(e){return k&&k[e]||e}function T(e){return g(e,u["default"].ALTERNATE_DHLACCOUNT)}function M(e){return e.active}function y(e){return N(e)===l["default"].UNITED_STATES}function D(){return t.isEmailVerified()}function O(){return t.isAuthorized()}function P(){return t.getUserCountry()}function b(){return t.isGuest()}function R(){return t.hasDhlAccounts()}function L(e,t){var n=t[0],i=t[1],r=t[2];if(e[n])return void(e[i]=!1);e[r]=null,e[n]=!0,e[i]=!0}function G(e,t){var n=t[0],i=t[1];e[n]&&(e[i]=!1)}function U(e){var t=e.isRejected,n=e.isAlternateAccountSelected,i=e.isFirstRejection;return t&&(n||i)}var F="/api/location/billing-regions",w="CC",k=void 0;return{getAlternateDHLAccountOption:o,getReceiverWillPayOption:a,getCashOption:s,getUserCountry:P,isOnlinePaymentOption:C,isImportPaymentOption:h,isLocalPaymentOption:I,isPreloadedLocalPaymentOption:A,isAlternateDHLAccount:T,isDHLAccount:S,isReceiverWillPay:E,isCashPaymentOption:_,isCreditCardCode:p,isShipperAccount:d,isActiveOption:M,isCountryFromUsBillingRegion:y,isNonAccountPaymentTypesAllowed:m,isEmailVerified:D,isAuthorized:O,isGuest:b,isSelectAnotherPaymentMethodAlertVisible:U,hasDhlAccounts:R,extractBillingRegion:N,loadBillingRegions:v,getInvoiceDutiesAndTaxesAvailability:r,handleAccountRejection:L,onPaymentTypeChange:G}}r.$inject=["$http","userService","configService","Messages"],t.__esModule=!0,t["default"]=r;var o=n(5),u=i(o),a=n(29),c=i(a),s=n(4),l=i(s),d=n(453),f=i(d);r.NG_NAME="paymentTypeService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){return a(t)?s():e.when()}function a(e){var t=e.shipmentTypeModel;return t.insureShipment&&!d(e)&&c(t)}function c(e){return e.insureShipment=!1,!0}function s(){return l()?e.when():i.showDialog({isPrimary:!0,templateUrl:"insurance-not-supported-modal.html"}).result}function l(){return t.isB2lShipment()||_()}function d(e){return!!e.addressDetailsModel.model.mailingList||!f(e)}function f(e){var t=e.addressDetailsModel,n=e.shipmentTypeModel,i=e.transportationPaymentType;return n.isInsuranceBlocked&&p(t)&&m(i)&&n.isShipmentTypePackage()}function p(e){var n=e.getShipmentCountry(),i=e.getDestinationCountry();return t.isShipmentDomestic(n,i)}function m(e){return _()||g(e)||E(e)}function _(){return!t.isB2lShipment()&&(t.isGuest()||!t.hasDhlAccounts())}function g(e){return e.gcdbAccountType===u.GCDB_STATUS.CASH}function E(e){return[o["default"].CASH,o["default"].ONLINE_PAYMENT].includes(e.paymentType)}function S(e){return n.getBoolean(n.CI_KEYS.CI1484_BLOCK_SII_FOR_NON_ACCOUNT_DOMESTIC,e)}function C(){return t.getB2lRestrictions()}return{checkInsuranceAvailability:r,getB2lRestrictions:C,isInsuranceBlockedByConfig:S,isShipmentInsuranceAvailable:d}}i.$inject=["$q","shipmentAddressService","configService","modalService"],t.__esModule=!0,t["default"]=i;var r=n(5),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=n(29);i.NG_NAME="insuranceAvailabilityService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){var i=(new Date).getTime(),r={preventcache:i};return e.get(o["default"].WHO_AM_I,{params:r}).then(function(e){return e.data})["catch"](function(){return n.warn("Offline mode"),t.userInfo})}return{whoAmI:i}}i.$inject=["$http","$window","logService"],t.__esModule=!0,t["default"]=i;var r=n(905),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="userInfoService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(e){S=e}function o(e){var n=S().find(function(t){return t.countryCode===e.toLowerCase()})||{},r=n.languageCode;return t.when(r).then(function(e){return e||i.splitPath().language})}function a(){return i.splitPath().language}function l(){return[]}function d(e){m(undefined,e)}function f(e){m(e)}function p(t,n){var r=e.location.pathname,o=i.splitPath(r),u=o.basePath,a=o.country,c=o.language,s=o.path;if(i.isUnknownCountryOrLanguage(a,c))return{};var l=_(a,t),d=n||c,f=l.toLowerCase();return{url:r,newUrl:u+"/"+f+"/"+d+s,normalizedLanguage:d,normalizedLowercaseCountry:f}}function m(){var t=arguments.length<=0||arguments[0]===undefined?"":arguments[0],n=arguments.length<=1||arguments[1]===undefined?"":arguments[1];n&&E(n);var i=p(t,n),r=i.url,o=i.newUrl;r!==o&&(g(),e.location.pathname=o)}function _(e,t){return i.isSystemCountryCode(e)?e:t||e}function g(){i.isPage(c["default"].SHIPMENT_PAGE)&&!e.location.hash.includes(s.states.RATE_AND_QUOTE)&&(e.location.hash="")}function E(e){n.putRootCookie(u["default"].USER_LANGUAGE,e)}var S=l;return{changeLang:d,changeCountry:f,changeCountryAndLanguage:m,getDefaultLanguage:o,getCurrentLanguage:a,registerDefaultLanguagesGetter:r,putLanguageToCookies:E}}r.$inject=["$window","$q","cookiesService","pathService"],t.__esModule=!0,t["default"]=r;var o=n(14),u=i(o),a=n(23),c=i(a),s=n(8);r.NG_NAME="manageCountryAndLanguageService"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){"ngInject";i(this,e),Object.assign(this,t)}return e.$inject=["models"],e}();t["default"]=r},function(e,t,n){"use strict";function i(e,t){"ngInject";var n=this;Object.assign(n,r({},function(){return e.params.isReturnLabel?t.injectReturnLabelEditUploadedLineItemsModels():t.injectEditInvalidUploadedLineItemsModels()}()))}i.$inject=["$state","shipmentModelsInjectorService"],t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t0,canCreateContacts:o.length>0}}function r(){var e;return e={},e[u["default"].COMPANY]=t.ADDRESS_BOOK.ADDRESS_BOOK_COLLECTIONS_SELECT_OPTION_CAB,e[u["default"].GROUP]=t.ADDRESS_BOOK.ADDRESS_BOOK_COLLECTIONS_SELECT_OPTION_GROUP,e[u["default"].PRIVATE]=t.ADDRESS_BOOK.ADDRESS_BOOK_COLLECTIONS_SELECT_OPTION_PAB,e}return{getContactsCollectionsPermissions:n}}r.$inject=["$http","Messages"],t.__esModule=!0,t["default"]=r;var o=n(48),u=i(o),a=n(36),c=i(a);r.NG_NAME="contactCollectionsPermissionsService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){return o(t).then(function(n){return n?e.when(!0):r(t).then(function(e){return e.every(function(e){return e.mandatory})})})}function i(e){return["CIF0217_DIMENSIONS_WIDTH","CIF0218_DIMENSIONS_HEIGHT","CIF0219_DIMENSIONS_LENGTH"].map(function(n){return t.getFormField(t.CI_KEYS[n],e)})}function r(t){var n=i(t);return e.all(n)}function o(e){return t.getBoolean(t.CI_KEYS.CI1271_MAKE_NON_ACCOUNT_DIMENSIONS_MANDATORY,e)}function u(t){return r(t).then(function(n){return e.all([n,o(t)])}).then(function(e){var t=e[0],n=e[1],i=t[0],r=t[1],o=t[2];if(n){var u={visible:!0,mandatory:!0};Object.assign(i,u),Object.assign(r,u),Object.assign(o,u)}return[i,r,o]})}return{areAllDimensionsRequired:n,getConfigurationItemsObjects:u}}i.$inject=["$q","configService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="dimensionsConfigService"},function(e,t,n){"use strict";function i(){"ngInject";function e(e,n,i){return e.sort(function(e,r){var o=t(e,r,n);return i?-o:o})}function t(e,t){return n((arguments.length<=2||arguments[2]===undefined?[null]:arguments[2]).map(function(n){return[i(e,n),i(t,n)]}))}function n(e){var t=e[0],i=e[1],r=t[0],o=t[1];return ro?1:i?n(e.slice(1)):0}function i(e,t){var n=t?e[t]:e;return angular.isString(n)?n.toLowerCase():n||""}return{sortBy:e,compareBy:t}}t.__esModule=!0,t["default"]=i,i.NG_NAME="sortService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){if(n.isRegular())return e.when(!0);if(n.isGuest())return e.when(!1);if(angular.isDefined(u))return e.when(u);var r=[t.getBoolean(t.CI_KEYS.CI1355_ACCESS_VIA_SSO_ENABLED),i.isAssignVirtualGroup(),i.isCurrentGroupAuthorized()];return e.all(r).then(o)}function o(n){var i=n[0],r=n[1],o=n[2];return!i||o?e.when(!0):r?(u=!1,e.when(u)):t.getBoolean(t.CI_KEYS.CI1358_FORCE_SSO_LOGIN).then(function(e){return u=!e})}var u=void 0;return{isChangePasswordAvailable:r}}i.$inject=["$q","configService","userService","groupSwitcherService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="userPasswordService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n,r,o){var u=n[0].classList,a=angular.element(t.get(r));return e(a)(o),n.before(a),Array.from(u).filter(function(e){return!e.startsWith(i)})}var i="ng-";return{replace:n}}i.$inject=["$compile","$templateCache"],t.__esModule=!0,t["default"]=i,i.NG_NAME="replaceWithCompiledTemplateService"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"disableLocalLanguageCtrl",link:function(){function e(e,t,n,i){e.$watch(n[u],i.setDisabled)}return e}()}}t.__esModule=!0,t["default"]=i;var r=n(1228),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfDisableLocalLanguage"},function(e,t,n){"use strict";function i(){function e(e){t.disabled=e}var t=this;Object.assign(t,{disabled:!1,setDisabled:e})}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";function t(e){var t=e||i,n=r[t];if(!n)throw new Error("Invalid countries source "+t);return n}var n,i=o["default"].ALL_AVAILABLE_COUNTRIES,r=(n={},n[o["default"].ALL_AVAILABLE_COUNTRIES]=function(){return e.loadAvailableLocations()},n[o["default"].ACTIVATED_COUNTRIES]=function(){return e.getActivatedCountriesList()},n[o["default"].VALID_EWF_ORIGIN_COUNTRIES]=function(){return e.getValidEwfOriginCountries()},n);return{getRetrieverBySource:t}}i.$inject=["locationService"],t.__esModule=!0,t["default"]=i;var r=n(257),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="countriesRetrieverFactory"},function(e,t,n){"use strict";function i(){return{restrict:"A",link:function(){function e(e,t){var n=t.children(".info");if(2===n.length){var i=n[0],r=n[1],o=angular.element(r);i.children[0].appendChild(r),o.removeClass("info"),o.addClass("info__tooltip-child");var u=o.children().html();o.html('
'+u)}}return e}()}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfMultipleTooltipWrapper"},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t){[10,11].includes(n())&&t.addClass("ie-11")}function n(){var t=e.navigator.userAgent,n=t.indexOf("MSIE"),i=!!t.match(/Trident\/7\./);return n>0?parseInt(t.substring(n+5,t.indexOf(".",n)),10):i?11:0}return{restrict:"A",link:t}}i.$inject=["$window"],t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfIe11Identify"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){i.init()}return{restrict:"A",controller:o["default"],controllerAs:"backgroundDownloadCtrl",link:e}}t.__esModule=!0,t["default"]=i;var r=n(1233),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfBackgroundDownload"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){if(e.isAuthorized())return void u();t.setRequestedUrl(),t.redirectToLogin()}function u(){var e=n.getParamFromUrl(o["default"].LINK),t={method:"GET",url:"/api/file/link/"+e,responseType:"arraybuffer"};i.download(t)}var a=this;Object.assign(a,{init:r})}i.$inject=["userService","navigationService","pathService","downloadService"],t.__esModule=!0,t["default"]=i;var r=n(1),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){return e.get("/api/auth/tenant/"+t+"/redirect").then(function(e){return e.data})}function u(e){return t.getParamsFromUrl(e)}function a(e){var t=e.status,i=e.data;[o["default"].FORBIDDEN,o["default"].UNPROCESSABLE_ENTITY].includes(t)&&n.showServiceErrorPopup({type:o["default"].REQUEST_TIMEOUT,messageKey:i.errors[0]})}function c(e){return!!s(e)}function s(e){return i.getAvailableTenants().find(function(t){return t.name===e})}return{getValidLink:r,getParamsFromUrl:u,handleTenantLoginError:a,isTenantAllowed:c,getTenantByName:s}}i.$inject=["$http","pathService","interceptorsStateService","userService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="tenantService"},function(e,t,n){"use strict";function i(){return{restrict:"A",link:function(){function e(e,t){var n=t.children().length,i=Math.floor(Math.random()*n);t.children()[i].style.display="block"}return e}()}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfShowRandomChild"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e,t){n.bindFunctionOnScroll(function(){return o(e,t)}),t.bind("click",function(){return i.scrollToTop()})}function o(e,n){s||(u(e,n),s=!0,t(function(){return s=!1},c))}function u(t,n){e.pageYOffset>=e.document.documentElement.clientHeight*a?n.addClass("visible"):n.removeClass("visible"),t.$apply()}var a=4,c=100,s=!1;return{restrict:"A",link:r}}i.$inject=["$window","$timeout","windowService","anchorScrollService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfBackToTop"},function(e,t,n){"use strict";function i(){"ngInject";function e(e,n,i){var r=e.$watch(function(){return n.is(":visible")},function(o){o&&(e.$watch(i.ngModel,function(){t(n[0])}),r())})}function t(e){e.style.height="1px",e.style.height=n+e.scrollHeight+"px"}var n=25;return{restrict:"A",require:"ngModel",link:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfAutogrowTextarea"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t){angular.element(e).bind("scroll",t)}return{bindFunctionOnScroll:t}}i.$inject=["$window"],t.__esModule=!0,t["default"]=i,i.NG_NAME="windowService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n,r){e.bind("click",function(e){return i(t,n,r,e)})}function n(e,t){return e.find(t.target).length>0}function i(e,t,i,c){var s=r(i),l=i[u+"Action"],d=n(t,c);s!==a&&(d?t.addClass(s):t.removeClass(s),t.attr(o["default"].ARIA_EXPANDED,d)),!d&&l&&e.$eval(l)}function r(e){return e[u]||a}var a="";return{restrict:"A",link:t}}i.$inject=["$document"],t.__esModule=!0,t["default"]=i;var r=n(118),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfClickDescendantClass"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t){var i=arguments.length<=1||arguments[1]===undefined?n:arguments[1];e(function(){t.focus()},i)}var n=50;return{focusWithDelay:t}}i.$inject=["$timeout"],t.__esModule=!0,t["default"]=i,i.NG_NAME="delayedFocusService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n,r){t.checkCorpNavVisibility().then(function(t){e[o["default"].IS_CORP_NAV_DISPLAYED]=t,t&&r.removeClass(i)})}var i="is-hidden";return{restrict:"A",link:n}}i.$inject=["$localStorage","corpNavVisibilityService"],t.__esModule=!0,t["default"]=i;var r=n(19),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfCorpNavBlinkWorkaround"},function(e,t,n){"use strict";function i(){"ngInject";function e(e,n){e.$watch(function(){return n.val()},function(e){e?n.addClass(t):n.removeClass(t)})}var t="has-value";return{restrict:"A",link:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfWatchInputValue"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){return n||(n=[{value:o["default"].DAILY,name:e.REGISTRATION.REGISTRATION_SELECT_OPTION_DAILY},{value:o["default"].WEEKLY,name:e.REGISTRATION.REGISTRATION_SELECT_OPTION_WEEKLY},{value:o["default"].MONTHLY,name:e.REGISTRATION.REGISTRATION_SELECT_OPTION_MONTHLY},{value:o["default"].ONE_OFF_SHIPMENT,name:e.REGISTRATION.REGISTRATION_SELECT_OPTION_ONE_OFF_SHIPMENT}]),n}var n=void 0;return{getOptions:t}}i.$inject=["Messages"],t.__esModule=!0,t["default"]=i;var r=n(230),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="shipmentFrequencyOptionsService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(i){var r=i.thankYouMessage,o=i.parentModalCtrl,u=i.isOpenAnAccountForm;o&&o.close(),u&&(t.ewfIsOpenAnAccountFormCompleted=!0),n.showDialog({scope:Object.assign(e.$new(),{thankYouMessage:r}),templateUrl:"common/widgets/thank-you-popup/thank-you-popup.html"})}return{showThankYouDialog:i}}i.$inject=["$rootScope","$window","modalService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="thankYouMessageService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){c=t.when(e||[])}function r(){return c||e.get(a,{cache:!0,cacheDuration:5e3}).then(function(e){return e.data})}function u(){return r().then(function(e){var i=e.authorizedAccGroupInfo;if(!i.length)return t.reject();var r=n.get(o["default"].CURRENT_GROUP);return i.find(function(e){return e.groupId===r})?t.when():t.reject()})}var a="/api/myprofile/groups",c=void 0;return{handleUserLogin:i,loadGroups:r,checkCurrentGroupIsAuthorized:u}}i.$inject=["$http","$q","cookiesService"],t.__esModule=!0,t["default"]=i;var r=n(14),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="userGroupsService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return t.isGuest()?e.when(!1):t.isAuthorized()&&!t.isRegular()?e.when(!0):n.loadGroups().then(function(e){return!!e.authorizedAccGroupInfo.length})}return{checkCorpNavVisibility:i}}i.$inject=["$q","userService","userGroupsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="corpNavVisibilityService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(t){t&&(e[u["default"].HOME_ALERT_MESSAGE_KEY]=t.message,e[u["default"].HOME_ALERT_TYPE_KEY]=t.type)}function i(){n({message:t.LOGIN_FORGOT_RESET_PASSWORD.LOGIN_HEADER_EMAIL_ACTIVATED,type:c["default"].INFO})}function r(){n({})}function o(){return{message:e[u["default"].HOME_ALERT_MESSAGE_KEY],type:e[u["default"].HOME_ALERT_TYPE_KEY]}}return{saveHomeAlert:n,saveEmailActivatedHomeAlert:i,clearHomeAlert:r,getStoredAlert:o}}r.$inject=["$localStorage","Messages"],t.__esModule=!0,t["default"]=r;var o=n(19),u=i(o),a=n(60),c=i(a);r.NG_NAME="homeAlertStorageService"},function(e,t,n){"use strict";function i(e,t,n,i,r,u){"ngInject";function a(t,n){return e.get("/api/commodityCode/shipmentTypeCodes/"+t+"/"+n,{cache:!0}).then(function(e){var t=e.data;t.forEach(function(e){e.typeNormalized=e.type.toLowerCase(),e.typeSelectable="both"===e.typeNormalized,c(e)});var n=function(e,t){return t",bindings:{section:"@"+o}})}function r(e){"ngInject";function t(){e.markVisited(n.section)}var n=this;Object.assign(n,{$onInit:t})}i.$inject=["component"],r.$inject=["engagementService"],t.__esModule=!0,t["default"]=i,t.EngagementVisitedSectionController=r;var o=i.NG_NAME="ewfEngagementVisitedSection"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(10),o=i(r),u=n(120),a=i(u),c=n(904),s=i(c),l=n(1306),d=i(l),f=n(1307),p=i(f),m=n(1308),_=i(m),g=n(1309),E=i(g),S=n(1310),C=i(S),h=n(1311),I=i(h),A=n(1312),v=i(A),N=n(1313),T=i(N),M=n(1314),y=i(M),D=n(1315),O=i(D),P=n(1316),b=i(P),R=n(1317),L=i(R),G=n(1318),U=i(G),F=n(1319),w=i(F),k=n(1320),j=i(k),V=angular.module("common.http-interceptors",[o["default"],a["default"]]);V.factory(s["default"].NG_NAME,s["default"]).factory(d["default"].NG_NAME,d["default"]).factory(p["default"].NG_NAME,p["default"]).factory(_["default"].NG_NAME,_["default"]).factory(E["default"].NG_NAME,E["default"]).factory(C["default"].NG_NAME,C["default"]).factory(I["default"].NG_NAME,I["default"]).factory(v["default"].NG_NAME,v["default"]).factory(T["default"].NG_NAME,T["default"]).factory(y["default"].NG_NAME,y["default"]).factory(O["default"].NG_NAME,O["default"]).factory(b["default"].NG_NAME,b["default"]).service(U["default"].NG_NAME,U["default"]).service(L["default"].NG_NAME,L["default"]).service(j["default"].NG_NAME,j["default"]).directive(w["default"].NG_NAME,w["default"]),t.module=V,t["default"]="common.http-interceptors"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(e){var t,n;return e?(t={},t[c["default"].CORPORATE_ADMIN]=i.ADMIN_TOOLS.CORPORATE_ROLE_SELECT_OPTION_CORPORATE_ADMIN_REGISTRATION,t[c["default"].END_USER]=i.ADMIN_TOOLS.CORPORATE_ROLE_SELECT_OPTION_END_USER_REGISTRATION,t):(n={},n[c["default"].CORPORATE_ADMIN]=i.ADMIN_TOOLS.CORPORATE_ROLE_SELECT_OPTION_CORPORATE_ADMIN,n[c["default"].GROUP_ADMIN]=i.ADMIN_TOOLS.CORPORATE_ROLE_SELECT_OPTION_GROUP_ADMIN,n[c["default"].END_USER]=i.ADMIN_TOOLS.CORPORATE_ROLE_SELECT_OPTION_END_USER,n)}function o(){var e;return e={},e[u["default"].PENDING_ACTIVATION]=i.ADMIN_TOOLS.USER_STATUS_VALUE_LABEL_PENDING_ACTIVATION,e[u["default"].ACTIVE]=i.ADMIN_TOOLS.USER_STATUS_VALUE_LABEL_ACTIVE,e[u["default"].DELETED]=i.ADMIN_TOOLS.USER_STATUS_VALUE_LABEL_DELETED,e[u["default"].LOCKED]=i.ADMIN_TOOLS.USER_STATUS_VALUE_LABEL_LOCKED,e[u["default"].SUSPENDED]=i.ADMIN_TOOLS.USER_STATUS_VALUE_LABEL_DISABLED,e[u["default"].PENDING_REGISTRATION]=i.ADMIN_TOOLS.USER_STATUS_VALUE_LABEL_PENDING_REGISTRATION,e}function a(e,t){var n=r(t);return e.map(function(e){return{code:e,description:n[e]}})}function s(){return a([c["default"].END_USER,c["default"].GROUP_ADMIN,c["default"].CORPORATE_ADMIN])}function d(){return f(e.hasPrivilege(l["default"].ALL_PRIVILEGES.MANAGE_GROUP_ADMINS))}function f(e){var t=[c["default"].END_USER];return e&&t.push(c["default"].GROUP_ADMIN),a(t)}function p(){return a([c["default"].END_USER,c["default"].CORPORATE_ADMIN])}function m(){var t=[c["default"].END_USER];return e.isCorpAdmin()&&t.push(c["default"].CORPORATE_ADMIN),a(t,!0)}function _(n,i){e.hasPrivilege(i)||(n.preventDefault(),t.redirectToNotFoundPage())}function g(t){return n.getBoolean(n.CI_KEYS.CI1358_FORCE_SSO_LOGIN).then(function(n){return n&&e.hasPrivilege(t)})}return{getCorporateRoles:s,getGroupRoles:d,getGroupRolesByPrivilege:f,getUserRoles:p,getRegistrationUserRoles:m,getCorporateRoleLocalizations:r,getUserStatusLocalizations:o,authorizeState:_,isRegistrationNotificationEmailTabAvailable:g}}r.$inject=["userService","navigationService","configService","Messages"],t.__esModule=!0,t["default"]=r;var o=n(408),u=i(o),a=n(68),c=i(a),s=n(95),l=i(s);r.NG_NAME="corporateService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){"ngInject";function i(e){var t=a(e);t&&(s(e),o(r(t)))}function r(e){return angular.element('')[0]}function o(e){t[0].body.appendChild(e)}function a(t){var i=n.get(l(t));return i?e.trustAsResourceUrl(i):null}function s(e){n.removeRootCookie(l(e))}function l(e){var t;return(t={},t[c["default"].PROVIEW]=u["default"].PROVIEW_LOGOUT_URL,t[c["default"].ESECURE]=u["default"].ESECURE_LOGOUT_URL,t)[e]}return{logoutFromExternalService:i}}r.$inject=["$sce","$document","cookiesService"],t.__esModule=!0,t["default"]=r;var o=n(14),u=i(o),a=n(229),c=i(a);r.NG_NAME="externalServicesLogoutService"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"ewfModalCtrl",templateUrl:function(){function e(e,t){return t[u+"V2"]?"common/widgets/modal/v2/modal.html":"common/widgets/modal/modal.html"}return e}(),transclude:!0,scope:{title:"@"+u+"Title",dialogWidth:"@"+u+"DialogWidth",noCloseButton:"="+u+"NoCloseButton",noHeader:"="+u+"NoHeader"}}}t.__esModule=!0,t["default"]=i;var r=n(1297),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfModal"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){e.currentTarget===e.target&&o.$dismiss()}var r=this,o=e.$parent;Object.assign(r,{element:t,clickHandler:i,close:o.$close,dismiss:o.$dismiss}),o.ewfModalCtrl=r,n(o,function(e){t.find(".ewf-modal__content").append(e)})}i.$inject=["$scope","$element","$transclude"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){function e(e,t,n,i){t.click(function(){i.close(e.result)})}return{restrict:"A",require:"^ewfModal",scope:{result:"="+r},link:e}}t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfModalResolver"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function u(e){T=e||{},n.onbeforeunload=function(){if(!N)return C(T.navigateAwayMessage)},t.on("click","a",s)}function a(){t.off("click","a",s),n.onbeforeunload=null}function c(){a(),T=null}function s(e){var t=e.currentTarget,n=t.getAttribute(o["default"].TARGET);if(!r.isLightbox(e.currentTarget)&&"_blank"!==n){N=!0,i(function(){return N=!1});var u=t.getAttribute(o["default"].HREF);(E(u)||p(t,u))&&l(e,t)}}function l(e,t){_(t),d(e,t)}function d(e,t){M=t.href,t.href="#",e.preventDefault()}function f(e){e.href=M}function p(e,t){return t&&"#"!==t&&!S(e.href)}function m(){return T?T.customConfirmationPromise?T.customConfirmationPromise():r.showDialog(T).result:e.when()}function _(t){m().then(function(n){return a(),e.when(g(n))["finally"](function(){f(t),t.click()})})["catch"](function(){f(t)})}function g(e){return T.callback&&T.callback(e)}function E(e){return e===n.location.pathname}function S(e){return e.includes(n.location.href.replace(n.location.hash,""))}function C(e){return e?h(I(e)):e}function h(e){return e.replace(A,"")}function I(e){return e.replace(v," ")}var A=/<[^>]+>/gm,v=/ /g,N=!1,T=void 0,M=void 0;return{init:u,disable:a,disableLogoutPopUp:c,getConfirmationPromise:m}}i.$inject=["$q","$document","$window","$timeout","modalService"],t.__esModule=!0,t["default"]=i;var r=n(118),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="leaveConfirmationService"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"groupSwitcherCtrl",link:function(){function e(e,t,n,i){i.init()}return e}()}}t.__esModule=!0,t["default"]=i;var r=n(1301),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfGroupSwitcher"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){u()}function u(){e.loadGroups().then(function(t){E.availableGroups=t,E.currentGroup=e.getCurrentGroup(t),E.defaultGroup=C=e.getDefaultGroup(t),a(t)})}function a(e){var t=e.corpGroupInfo,n=e.coreGroupInfo;E.defaultGroup=E.defaultGroup||t[0]||n}function c(e){E.currentGroup=e}function s(e){E.defaultGroup=e}function l(e){return E.currentGroup===e}function d(i){e.setCurrentGroup(E.currentGroup.groupId),t.logoutFromExternalService(o["default"].PROVIEW),!n.isDHLAdminLoggedAsCorporate()&&f()&&e.setDefaultGroup(E.defaultGroup.groupId),E.currentGroup.authorizationStatus===S&&e.markAuthorizationGroupAsActive(),i()}function f(){return C!==E.defaultGroup}function p(e){var t=e.addressLine1,n=e.city,r=e.countryCode,o=e.postalCode;return t||n||r||o?m(e):i.MANAGE_ACCOUNTS.MANAGE_AUTH_SELECT_OPTION_ANY_ADDRESS}function m(e){return[e.addressLine1,e.city,e.countryCode,e.postalCode].filter(Boolean).join(", ")}function _(){return E.availableGroups.coreGroupInfo.accountNumber||i.NAVIGATION.GROUP_SWITCHER_LABEL_NO_ACCOUNT}function g(e){return e.corpOrGroupAdmin?i.NAVIGATION.GROUP_SWITCHER_LABEL_YES:i.NAVIGATION.GROUP_SWITCHER_LABEL_NO}var E=this,S="PENDING",C=null;Object.assign(E,{availableGroups:null,currentGroup:null,defaultGroup:null,init:r,setCurrentGroup:c,setDefaultGroup:s,isGroupCurrent:l,submitGroupSwitcherForm:d,getAddressToDisplay:p,getCoreAccountNumber:_,isCorpOrGroupAdmin:g})}i.$inject=["groupSwitcherService","externalServicesLogoutService","userService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(229),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){"ngInject";return{restrict:"A",controller:o["default"],controllerAs:"groupSwitcherLinkCtrl",link:function(){function t(t,n,i,r){r.init(),i[u+"OnApply"]&&function(){var n=e(i[u+"OnApply"]);r.setOnApplyCallback(function(){return n(t)})}()}return t}()}}i.$inject=["$parse"],t.__esModule=!0,t["default"]=i;var r=n(1303),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfGroupSwitcherLink"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){e.loadGroups().then(function(e){s=e,r()})}function r(){var t=e.getCurrentGroup(s),i=t.groupName;c.currentGroup=i||n.NAVIGATION.GROUP_SWITCHER_VALUE_LABEL_VIRTUAL_GROUP_REGULAR,c.isVisible=s.corpGroupInfo.length>1||s.authorizedAccGroupInfo.length,c.isSingleCorpGroupVisible=1===s.corpGroupInfo.length&&!s.authorizedAccGroupInfo.length}function o(){e.showGroupSwitcher().then(function(){r(),u()})}function u(){angular.isFunction(l)?l():t.forceRedirectToHome()}function a(e){l=e}var c=this,s=null,l=null;Object.assign(c,{currentGroup:null,isVisible:!1,isSingleCorpGroupVisible:!1,init:i,showSwitcher:o,setOnApplyCallback:a})}i.$inject=["groupSwitcherService","navigationService","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){return e.put(o,{groupId:t})}function i(){return t.showDialog({templateUrl:"components/navigation/group-switcher/group-switcher-popup-template"}).result}function r(){e.put(u)}var o="/api/myprofile/default-group",u="/api/myprofile/auth-account/mark-active";return{saveDefaultGroup:n,showGroupSwitcher:i,markAuthorizationGroupAsActive:r}}i.$inject=["$http","modalService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="groupSwitcherResource"},function(e,t,n){"use strict";function i(e,t,n,i,r,u){"ngInject";function a(e,t){i.handleUserLogin(e),C(t,e)}function c(e){var t=e.coreGroupInfo,n=e.corpGroupInfo,i=e.authorizedAccGroupInfo,r=d();return s(n,r)||s(i,r)||n[0]||t}function s(e,t){return e.find(function(e){return e.groupId===t})}function l(){return T().then(function(e){return c(e).groupName||u.NAVIGATION.GROUP_SWITCHER_VALUE_LABEL_VIRTUAL_GROUP_REGULAR})}function d(){return t.get(o["default"].CURRENT_GROUP)}function f(){return t.get(p())}function p(){return""+o["default"].IS_DEFAULT_USER_PREFIX+n.getId()}function m(e){var t=e.coreGroupInfo,n=e.corpGroupInfo,i=e.authorizedAccGroupInfo;return n.length?E([].concat(n,i))||1===n.length&&n[0]:_(i,t)}function _(e,t){return e.length?g(e,t):t}function g(e,t){return S(t)&&t||E(e)}function E(e){return e.find(function(e){return e.defaultGroup})}function S(){return!(arguments.length<=0||arguments[0]===undefined?{}:arguments[0]).groupId&&f()}function C(e){var t=arguments.length<=1||arguments[1]===undefined?[]:arguments[1],n=m(t);n?(h(n.groupId),e()):N()["finally"](e)}function h(e){e?t.putRootCookie(o["default"].CURRENT_GROUP,e):t.removeRootCookie(o["default"].CURRENT_GROUP)}function I(e){return n.isRegular()&&A(e),v(e)}function A(e){var n=p();e?f()&&t.removeRootCookie(n):t.putRootCookie(n,!0)}function v(e){return r.saveDefaultGroup(e)}function N(){return R?e.reject():(R=!0,r.showGroupSwitcher()["finally"](function(){R=!1}))}function T(){return i.loadGroups()}function M(){t.removeRootCookie(o["default"].CURRENT_GROUP)}function y(){return n.isGuest()?(M(),e.when()):T().then(function(e){h((m(e)||{}).groupId)})}function D(){var t=d();return t?n.isGuest()?e.when(!0):T().then(function(e){return[].concat(e.corpGroupInfo,e.authorizedAccGroupInfo).every(function(e){return e.groupId!==t})}):e.when(!1)}function O(){return n.isRegular()}function P(){var e=d();return T().then(function(t){return!!s(t.authorizedAccGroupInfo,e)})}function b(){r.markAuthorizationGroupAsActive()}var R=!1;return{handleUserLogin:a,getCurrentGroup:c,getDefaultGroup:m,setCurrentGroup:h,getCurrentGroupName:l,setDefaultGroup:I,clearCurrentGroup:M,showGroupSwitcher:N,loadGroups:T,getCurrentGroupId:d,resetGroup:y,isAssignVirtualGroup:D,isRegular:O,isCurrentGroupAuthorized:P,markAuthorizationGroupAsActive:b}}i.$inject=["$q","cookiesService","userService","userGroupsService","groupSwitcherResource","Messages"],t.__esModule=!0,t["default"]=i;var r=n(14),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="groupSwitcherService"},function(e,t,n){"use strict";function i(e,t){"ngInject";return{responseError:function(){function n(n){if(n.status===o["default"].PRECONDITION_FAILED){t.get("groupSwitcherService").showGroupSwitcher()}return e.reject(n)}return n}()}}i.$inject=["$q","$injector"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="preconditionFailedInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){var n=e.fieldErrors,i=e.errors;if(n&&Object.keys(n).forEach(function(e){var i=n[e],r=i.join(", ");t.error('field "'+e+'" has errors: '+r)}),i){var r=i.join(", ");t.error("general errors: "+r)}}return{responseError:function(){function t(t){if(t.status===o["default"].BAD_REQUEST){var i=t.data;angular.isObject(i)&&n(i)}return e.reject(t)}return t}()}}i.$inject=["$q","logService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="badRequestInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";return{request:function(){function n(n){var i=n.cache&&angular.isFunction(n.cache.info)&&n.cache.info();return i&&"templates"===i.id||(e.refreshActivity(),t.applyDuration(n)),n}return n}()}}i.$inject=["userActivityCheckerService","httpCacheDurationService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="requestInterceptor"},function(e,t,n){"use strict";function i(e){"ngInject";var t="/ng-template";return{request:function(){function n(n){if(n.url.startsWith(t)){var i=n.url.split(t)[1];n.url=e.getBasePath()+i}return n}return n}()}}i.$inject=["pathService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="templateInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";return{responseError:function(){function n(n){var i=n.status,r=n.data;return i===o["default"].NOT_IMPLEMENTED&&t.showServiceErrorPopup(r),e.reject(n)}return n}()}}i.$inject=["$q","interceptorsStateService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ciKeyErrorInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";return{responseError:function(){function n(n){return n.status!==o["default"].NOT_FOUND||n.config.preventNotFoundInterceptor||t.redirectToNotFoundPage(),e.reject(n)}return n}()}}i.$inject=["$q","navigationService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="notFoundInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n){var i=n.status+" "+angular.toJson(n);return n.status===o["default"].CANCELLED?t.log("HTTP Request Cancelled: "+i):t.error("HTTP Error: "+i),e.reject(n)}return{responseError:n}}i.$inject=["$q","logService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="errorLoggingInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";return{responseError:function(){function n(n){var i=n.status,r=n.config.preventNotEnoughDataInterceptor;return(i===o["default"].INTERNAL_SERVER_ERROR||i===o["default"].NOT_ENOUGH_DATA&&!r)&&t.showServiceErrorPopup({type:i}),e.reject(n)}return n}()}}i.$inject=["$q","interceptorsStateService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="serverErrorInterceptor"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function u(e,t){return e===o["default"].GATEWAY_TIMEOUT&&angular.isString(t)}function a(e){var n=t.get("userService");return e===o["default"].SERVICE_UNAVAILABLE&&n.isGuest()&&i.isNotificationAvailable()}function c(e){var t=angular.isObject(e.data)?e.data:{};t.systemName=t.systemName||null,t.type=e.status,e.config.preventNotAvailableInterceptor||n.showServiceErrorPopup(t)}return{responseError:function(){function t(t){var s=t.status,l=[o["default"].SERVICE_UNAVAILABLE,o["default"].GATEWAY_TIMEOUT,o["default"].BAD_GATEWAY];return t.config.specialStatus===s?(n.showServiceErrorPopup({messageKeyValid:!0,messageKey:t.config.specialMessageForStatus}),e.reject(t)):(u(s,t.data)&&(t.data=r.ERRORS.GATEWAY_TIMEOUT),a(s)?i.openNotification():(l.includes(s)&&c(t),e.reject(t)))}return t}()}}i.$inject=["$q","$injector","interceptorsStateService","shipmentWillBeSavedNotificationService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="servicesNotAvailableInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";return{responseError:function(){function n(n){return n.config.preventSessionExpiredInterceptor||t.redirectToLoginIfUnauthorized(n),e.reject(n)}return n}()}}i.$inject=["$q","sessionExpiredService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="sessionExpiredInterceptor"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";return{responseError:function(){function i(i){var r=i.status,u=i.data,a=i.config;if(r===o["default"].FORBIDDEN&&!a.preventAccessForbiddenInterceptor){var c=void 0,s=t.get("modalService"),l=u&&u.errors&&u.errors[0];l||(c=n.ERRORS.ACCESS_FORBIDDEN_MESSAGE),s.showMessageDialog({title:n.ERRORS.ACCESS_FORBIDDEN_TITLE,nlsMessage:l,message:c})}return e.reject(i)}return i}()}}i.$inject=["$q","$injector","Messages"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="accessForbiddenInterceptor"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){return p=e,s}function i(t){if(!e.get("userService").isOfflineUser()){var n=r(t);u(n),a(n)}}function r(e){return angular.isObject(e)?e:(t.error("Wrong data passed to interceptor popup",e),{})}function u(e){!e.ciKey?[d,f].includes(e.systemName)&&(e.type=e.systemName):Object.assign(e,{type:l,isNotFound:e.exceptionType===o["default"].NOT_FOUND,isMisconfigured:e.exceptionType===o["default"].MISSED_CONFIGURATION,isWrongConfigured:e.exceptionType===o["default"].WRONG_CONFIGURATION})}function a(e){s.find(function(t){return angular.equals(c(t),c(e))})||(s.push(e),p())}function c(e){return["accountId","accountNumber","customerId","isMisconfigured","isNotFound","isWrongConfigured","messageKey","systemName","type"].reduce(function(t,n){var i;return Object.assign(t,(i={},i[n]=e[n],i))},{})}var s=[],l="ADT",d="GLOBAL_COLLECT",f="BILL_DESK",p=angular.noop;return{registerAlert:n,showServiceErrorPopup:i}}i.$inject=["$injector","logService"],t.__esModule=!0,t["default"]=i;var r=n(912),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="interceptorsStateService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n){var o=n.cache,u=n.cacheDuration,a=n.method,c=n.url;!0===o&&a===i&&u>0&&e(function(){return t.removeFromCache(c)},u,r)}var i="GET",r=!1;return{applyDuration:n}}i.$inject=["$timeout","httpCacheService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="httpCacheDurationService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"interceptorsAlertCtrl",templateUrl:"common/utils/http-interceptors/service-error-popup/interceptors-alert"})}function r(e,t,n,i){"ngInject";function r(){l.interceptorErrors=t.registerAlert(o)}function o(){n.adjustBodyPadding(e),a(),n.validateErrorMessage(l.interceptorErrors[l.interceptorErrors.length-1])}function a(){1===l.interceptorErrors.length&&i.getTransactionId().then(function(e){return l.transactionId=e})}function c(){l.interceptorErrors.length=0,n.adjustBodyPadding(e)}function s(){return!!l.transactionId&&l.interceptorErrors.some(function(e){return e.type!==u["default"].REQUEST_TIMEOUT})}var l=this;Object.assign(l,{$onInit:r,closeInterceptorErrors:c,isBusinessTransactionIdVisible:s})}i.$inject=["component"],r.$inject=["$element","interceptorsStateService","interceptorsAlertService","businessTransactionService"],t.__esModule=!0,t["default"]=i,t.InterceptorsAlertController=r;var o=n(6),u=function(e){return e&&e.__esModule?e:{"default":e}}(o);i.NG_NAME="ewfInterceptorsAlert"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){t(function(){return r(a+o(e))},c)}function r(t){angular.element(e[0].body).css("padding-top",t)}function o(e){return e.outerHeight()}function u(e){e.messageKey&&n.getTranslation(e.messageKey).then(function(){return e.messageKeyValid=!0})}var a=100,c=100;return{adjustBodyPadding:i,validateErrorMessage:u}}i.$inject=["$document","$timeout","nlsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="interceptorsAlertService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(120),o=i(r),u=n(1322),a=i(u),c=n(1323),s=i(c),l=angular.module("restrictVirtualGroup",[o["default"]]);l.service(a["default"].NG_NAME,a["default"]).directive(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="restrictVirtualGroup"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return t.get(i,{preventNotFoundInterceptor:!0}).then(function(t){return t.data.isVirtual||e.reject()})}var i="/api/myprofile/group/type";return{isRestricted:n}}i.$inject=["$q","$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="restrictVirtualGroupService"},function(e,t,n){"use strict";function i(){return{controller:o,controllerAs:"restrictVirtualGroupCtrl",link:r}}function r(e,t,n,i){i.$onInit()}function o(e,t){"ngInject";function n(){e.isRestricted().then(t.showGroupSwitcher)}var i=this;Object.assign(i,{$onInit:n})}o.$inject=["restrictVirtualGroupService","groupSwitcherService"],t.__esModule=!0,t["default"]=i,t.RestrictVirtualGroupController=o,i.NG_NAME="ewfRestrictVirtualGroup"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(120),o=i(r),u=n(1325),a=i(u),c=angular.module("resetAssignGroup",[o["default"]]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="resetAssignGroup"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:u["default"],controllerAs:"resetAssignGroupCtrl",link:r}}function r(e,t,n,i){i.init()}t.__esModule=!0,t["default"]=i;var o=n(1326),u=function(e){return e&&e.__esModule?e:{"default":e}}(o);i.NG_NAME="ewfResetAssignGroup"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(){if(!i()){(t.getParamFromUrl(u["default"].SHIPMENT_ID)||t.getParamFromUrl(u["default"].COPIED_SHIPMENT_ID))&&r()||e.isAssignVirtualGroup().then(function(t){return t&&e.resetGroup()})}}function i(){return"booking"===t.getParamFromUrl(u["default"].MODULE_KEY)}function r(){return[c["default"].SHIPMENT_PAGE,c["default"].MANAGE_SHIPMENTS_DETAILS_PAGE,c["default"].PICKUP_PAGE].some(function(e){return t.isPage(e)})}var o=this;Object.assign(o,{init:n})}r.$inject=["groupSwitcherService","pathService"],t.__esModule=!0,t["default"]=r;var o=n(1),u=i(o),a=n(23),c=i(a)},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1328),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("common.utils.retryUntilDone",[]);o.service(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="common.utils.retryUntilDone"},function(e,t,n){"use strict";function i(e){"ngInject";function t(n,i,r){i()||(n(),e(function(){return t(n,i,r)},r,!1))}return{attempt:t}}i.$inject=["$timeout"],t.__esModule=!0,t["default"]=i,i.NG_NAME="retryUntilDoneService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1330),a=i(u),c=n(1333),s=i(c),l=n(1334),d=i(l),f=n(1335),p=i(f),m=angular.module("common.utils.sessionManagement",[o["default"]||"common.utils",a["default"]]);m.directive(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]).service(p["default"].NG_NAME,p["default"]),t.module=m,t["default"]="common.utils.sessionManagement"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1331),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o="common.utils.sessionManagement.shipmentWillBeSavedNotification",u=angular.module(o,[]);u.service(r["default"].NG_NAME,r["default"]),t.module=u,t["default"]=o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){"ngInject";function i(n){if(r())return e.reject();var i=t.get("modalService"),u=o(n);return i.showDialog(u).result}function r(){return n.isUrlContainingSomeParam(c["default"].B2L_SHIPMENT,c["default"].RB_SHIPMENT)}function o(e){return{backdrop:"static",closeOnEsc:!1,controller:u["default"],controllerAs:"shipmentWillBeSavedNotificationCtrl",templateUrl:"common/utils/session-management/shipment-will-be-saved-notification.html",resolve:{isSessionExpired:function(){function t(){return e}return t}()}}}function a(){return f()&&s()&&m()}function s(){return t.get("formService").isFormValid(_,!1)}function f(){return!!t.has("$state")&&t.get("$state").current.name===d.states.CREATE_SHIPMENT}function p(){return n.isPage(l["default"].SHIPMENT_PAGE)}function m(){return!!t.get("shipmentDataService").getShipmentData().fromCustomer.email}var _="fromContact";return{openNotification:i,isNotificationAvailable:a,isShipmentPageOpened:p}}r.$inject=["$q","$injector","pathService"],t.__esModule=!0,t["default"]=r;var o=n(1332),u=i(o),a=n(1),c=i(a),s=n(23),l=i(s),d=n(8);r.NG_NAME="shipmentWillBeSavedNotificationService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(){return n.saveShipmentForLater().then(function(){e.close(),i.redirectToHome()})}function u(){return a.isSessionExpired?r.COMMON.LB_SHIPMENT_WILL_BE_SAVED_HEADER_SESSION_TIMEOUT:r.COMMON.LB_SHIPMENT_WILL_BE_SAVED_HEADER_SERVICE_IS_UNAVAILABLE}var a=this;Object.assign(a,{isSessionExpired:t,saveShipmentAndContinue:o,getTitle:u})}i.$inject=["$modalInstance","isSessionExpired","shipmentTransportService","navigationService","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e,n,r){if(!r[u+"IsMicroSite"]&&!s())var c=t.$on(o["default"].pageLoadedEvent,function(){i.startCheck(a),c()})}function a(){e.on(l,c)}function c(){e.off(l,c),n.whoAmI(!0)}function s(){return n.isGuest()&&!i.isShipmentPageOpened()}var l="click keydown touchstart";return{restrict:"A",link:{pre:r}}}i.$inject=["$document","$rootScope","userService","userActivityCheckerService"],t.__esModule=!0,t["default"]=i;var r=n(24),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfSessionManager"},function(e,t,n){"use strict";function i(e,t,n,i,r,u,a){"ngInject";function c(){return t.whoAmI(!0)}function s(){return d().then(l)}function l(){var e=t.getUid();return t.logOut().then(function(){n.saveNextFormTimeoutMessage(),r.setRequestedUrl(e),a.preformCommonLogoutActions()})}function d(){var t=Object.keys(C).map(function(e){return C[e]()});return e.all(t)}function f(e,t){C[e]=t}function p(e){delete C[e]}function m(){return t.isGuest()?g():_()}function _(){var t=decodeURIComponent(i.get(o["default"].SESSION_DATA)),n=angular.fromJson(t),r=n?E(n):null;return e.when(r)}function g(){return u.getSourceData(u.CI_KEYS.CI1095_TIME_SINCE_LAST_SAVING_AFTER_WHAT_SHIPMENT_IS_ABANDONED).then(function(e){return E({inactivePeriod:e,notificationPeriod:0})})}function E(e){return{inactivePeriod:{milliseconds:S(e.inactivePeriod),minutes:e.inactivePeriod},notificationPeriod:{milliseconds:S(e.notificationPeriod),minutes:e.notificationPeriod}}}function S(e){return e*h}var C={},h=6e4;return{registerActionToComplete:f,unregisterActionToComplete:p,continueSession:c,endSession:s,getSessionExpirationData:m}}i.$inject=["$q","userService","loginService","cookiesService","navigationService","configService","logoutService"],t.__esModule=!0,t["default"]=i;var r=n(14),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="sessionExpirationService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){f=e,t.get("sessionExpirationService").getSessionExpirationData().then(function(e){e&&(_=e.inactivePeriod.milliseconds,g=e.notificationPeriod,E=e.inactivePeriod.milliseconds/2,u())})}function r(){_&&(a(),u())}function u(){p=e.setTimeout(s,_),m=e.setTimeout(c,E)}function a(){e.clearTimeout(p),e.clearTimeout(m)}function c(){f&&f()}function s(){var e=t.get("userService"),i=e.isGuest();if(!i||n.isNotificationAvailable()){(i?n.openNotification(!0):l()).then(function(){return a()})}}function l(){return t.get("modalService").showDialog({backdrop:"static",closeOnEsc:!1,controller:o["default"],controllerAs:"sessionExpirationCtrl",templateUrl:"common/utils/session-management/session-expiration-notification.html",resolve:{notificationPeriod:function(){function e(){return g}return e}()}}).result}function d(){return n.isShipmentPageOpened()}var f=void 0,p=null,m=null,_=void 0,g=void 0,E=void 0;return{startCheck:i,refreshActivity:r,isShipmentPageOpened:d}}i.$inject=["$window","$injector","shipmentWillBeSavedNotificationService"],t.__esModule=!0,t["default"]=i;var r=n(1336),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="userActivityCheckerService"},function(e,t,n){"use strict";function i(e,t,n,i,r,o){"ngInject";function u(){d.countdownMessage=r(o.COMMON.SESSION_EXPIRED_NOTIFICATION,{minutes:_}),_--,m=e(u,f)}function a(){e.cancel(m),e.cancel(p)}function c(){l(),i.continueSession().then(t.dismiss)}function s(){l(),i.endSession().then(t.close)}function l(){d.isActionButtonsDisabled=!0,a()}var d=this,f=6e4,p=null,m=null,_=void 0;Object.assign(d,{isActionButtonsDisabled:!1,continueSession:c,endSession:s}),function(){_=n.minutes,p=e(s,n.milliseconds,!1),u()}()}i.$inject=["$timeout","$modalInstance","notificationPeriod","sessionExpirationService","replaceFilter","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t,n){return 0===e.length?e:e.map(function(e){return[e[t],e[n]]}).reduce(function(e,t){return[].concat(e,t)})}return function(n,i,r){if(!n)return 0;var o=n.reduce(function(e,t){var n=parseFloat(t[i]);return r&&(n*=parseFloat(t[r])),e+(n||0)},0),u=t(n,i,r);return e.getResultWithPrecision(o,u)}}i.$inject=["calculationService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){return function(e,t,n){var i=0,r=parseFloat(e);return r&&(i=r*(+t||1)),n?+i.toFixed(n):i}}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e,t){var n=t?"capitalizedName":"name";return i&&i[e][n]||e}var i=void 0,r=void 0;return function(o,u){return i||r||t.isOfflineUser()||(r=!0,e.getCountriesIndex().then(function(e){return i=e})["finally"](function(){return r=!1})),o?n(o,u):""}}i.$inject=["locationService","userService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){function e(e,r,o,u){if(!angular.isNumber(e)||isNaN(e))return"";var a=t(r,o),c=a[0],s=a[1],l=String(e).split("."),d=l[0],f=l[1],p=[n(d,s,c)];return(f||u)&&p.push(c,i(f,u)),p.join("")}function t(e,t){return[e||o,t||u]}function n(e,t,n){return t&&t!==n?e.replace(r,t):e}function i(){var e=arguments.length<=0||arguments[0]===undefined?"":arguments[0],t=arguments.length<=1||arguments[1]===undefined?0:arguments[1];if(!t)return e;for(var n="",i=0;i3&&(c=e(l,a)+(d?""+u+d:"")),c}}t.__esModule=!0,t["default"]=i;var r=n(913)},function(e,t,n){"use strict";function i(){function e(e,o,u){if(t(e))return NaN;var a=String(e).match(r),c=a[1],s=a[2],l=a[3],d=Number(o)?n(s,o):s,f=i(l,u)?n(l,u):l,p=[c,d];return f&&p.push(".",f),Number(p.join(""))}function t(e){return!angular.isNumber(e)||isNaN(e)}function n(e,t){return e&&e.length$&')}function u(){a||(a=!0,e.getSearchConfig().then(function(e){return c=e})["catch"](function(){return a=!1}))}var a=void 0,c=void 0;return function(){var e=arguments.length<=0||arguments[0]===undefined?"":arguments[0],t=arguments.length<=1||arguments[1]===undefined?"":arguments[1];return u(),t?n(e,t):e}}i.$inject=["manageShipmentsHighlightService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){return function(e,t){return Array.isArray(e)?e.join(t||","):""}}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){if(t&&t.phone&&t.phoneCountryCode){return""+e.getPhoneInternationalForm(t.phone,t.phoneCountryCode)+i(t)}return""}function i(e){return e.phoneExt&&o["default"].OFFICE===e.phoneType?" "+t.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_EXTENSION+": "+e.phoneExt:""}return n}i.$inject=["phoneFormatService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(96),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){"ngInject";function t(e){return e.$$unwrapTrustedValue?e.$$unwrapTrustedValue():e}return function(n){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];return n?angular.isObject(i)||angular.isArray(i)?Object.keys(i).reduce(function(t,n){var r=i.trustAsHtml?i[n]:e(i[n]);return t.replace(new RegExp("\\{"+n+"\\}","g"),r)},t(n)):n:""}}i.$inject=["$sanitize"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){return function(e){var t=arguments.length<=1||arguments[1]===undefined?15:arguments[1],n=arguments.length<=2||arguments[2]===undefined?"…":arguments[2];return e?e.length<=t?e:String(e).substring(0,t)+n:""}}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";return function(t){return e.isTwelveHourClock()?e.convert24toAMPM(t):t}}i.$inject=["dateTimeService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";return function(t){return t?e.convertDateToLocaleFormat(t):""}}i.$inject=["dateTimeService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";return function(t,n){var i=arguments.length<=2||arguments[2]===undefined||arguments[2],r=t;return i||(r=e.getUOMDimension(t)),n?e.getDimensionsUnits(r):e.getWeightUnits(r)}}i.$inject=["somService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";var n={MAX_TOTAL_SHIPMENT_WEIGHT:t.MANAGE_SHIPMENTS.MAX_TOTAL_SHIPMENT_WEIGHT,MIN_TOTAL_SHIPMENT_WEIGHT:t.MANAGE_SHIPMENTS.MIN_TOTAL_SHIPMENT_WEIGHT,MAX_PARTS_PER_SHIPMENT:t.MANAGE_SHIPMENTS.MAX_PARTS_PER_SHIPMENT,SHIPMENT_COUNT_PERIOD:t.MANAGE_SHIPMENTS.SHIPMENT_COUNT_PERIOD,TOTAL_WEIGHT_PERIOD:t.MANAGE_SHIPMENTS.TOTAL_WEIGHT_PERIOD,SHIPMENT_COST_PERIOD:t.MANAGE_SHIPMENTS.SHIPMENT_COST_PERIOD,MAX_SHIPMENT_COST:t.MANAGE_SHIPMENTS.MAX_SHIPMENT_COST,MIN_LENGTH_PER_SHIPMENT:t.MANAGE_SHIPMENTS.MIN_LENGTH_PER_SHIPMENT,MAX_LENGTH_PER_SHIPMENT:t.MANAGE_SHIPMENTS.MAX_LENGTH_PER_SHIPMENT,MIN_WIDTH_PER_SHIPMENT:t.MANAGE_SHIPMENTS.MIN_WIDTH_PER_SHIPMENT,MAX_WIDTH_PER_SHIPMENT:t.MANAGE_SHIPMENTS.MAX_WIDTH_PER_SHIPMENT,MIN_HEIGHT_PER_SHIPMENT:t.MANAGE_SHIPMENTS.MIN_HEIGHT_PER_SHIPMENT,MAX_HEIGHT_PER_SHIPMENT:t.MANAGE_SHIPMENTS.MAX_HEIGHT_PER_SHIPMENT,SHIPMENT_TYPE_DOCUMENT:t.MANAGE_SHIPMENTS.SHIPMENT_TYPE_DOCUMENT,SHIPMENT_TYPE_PACKAGE:t.MANAGE_SHIPMENTS.SHIPMENT_TYPE_PACKAGE,UNKNOWN_SHIPMENT_COST:t.MANAGE_SHIPMENTS.UNKNOWN_SHIPMENT_COST};return function(t){var i=n[t.restrictionType];return t.valueType=t.valueType||"",e("replace")(i,t)}}i.$inject=["$filter","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";var n={SHIPMENT_COUNT_PERIOD:t.SHIPMENT_COST.SHIPMENT_COUNT_PERIOD_APPROVAL_REQUIRED,TOTAL_WEIGHT_PERIOD:t.SHIPMENT_COST.TOTAL_WEIGHT_PERIOD_APPROVAL_REQUIRED,SHIPMENT_COST_PERIOD:t.SHIPMENT_COST.SHIPMENT_COST_PERIOD_APPROVAL_REQUIRED},i={SHIPMENT_COUNT_PERIOD:t.SHIPMENT_COST.SHIPMENT_COUNT_PERIOD_APPROVAL_NOT_REQUIRED,TOTAL_WEIGHT_PERIOD:t.SHIPMENT_COST.TOTAL_WEIGHT_PERIOD_APPROVAL_NOT_REQUIRED,SHIPMENT_COST_PERIOD:t.SHIPMENT_COST.SHIPMENT_COST_PERIOD_APPROVAL_NOT_REQUIRED},r={GROUP:t.SHIPMENT_COST.SHIPMENT_COST_GROUP_LIMIT_LEVEL,USER:t.SHIPMENT_COST.SHIPMENT_COST_USER_LIMIT_LEVEL};return function(t,o){var u=o?n:i,a=u[t.restrictionType];return t.valueType=t.valueType||"",t.limitLevel=r[t.restrictionLevel],e("replace")(a,t)}}i.$inject=["$filter","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){"ngInject";function e(e){if(!e||!e.referencesForShipments)return"";var t=e.referencesForShipments.find(function(e){return e.referenceType===o["default"].DEFAULT});return t?t.referenceName:""}return e}t.__esModule=!0,t["default"]=i;var r=n(1356),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={OPTIONAL:"OPTIONAL",DEFAULT:"DEFAULT",MANDATORY:"MANDATORY",NEW:"NEW"}},function(e,t,n){"use strict";function i(){"ngInject";return function(e){return Math.round(100*e)/100}}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){"ngInject";return function(e,t){var n=parseInt((t-3)/2,10);return e.length0){var i="NULL"===e.text?{text:""}:e;a(i)}else a(n?{text:n}:{text:'no translation for "'+t+'"'})}var u=this;Object.assign(u,{setRenderFunction:t,translate:n});var a=void 0}i.$inject=["nlsService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){return{restrict:"A",require:"nls",link:function(){function e(e,t,n,i){n.$observe("nls",function(e){i.translate(e)})}return e}()}}t.__esModule=!0,t["default"]=i,i.NG_NAME="nlsBind"},function(e,t,n){"use strict";function i(e){"ngInject";return function(t){return e.translate(t)}}i.$inject=["nlsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="nls"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){return p.test(e)}function o(e){var n=i[e];return n||(n=i[e]=f,t.warn('Was unable to load dictionary "'+e+'"')),n}function u(t){return angular.isObject(t)?a(t.nls,t.label||t.value):angular.isString(t)?a(t):e.reject(angular.toJson(t)+" should be an nls key string or an nls object")}function a(n,i){if(!r(n))return i?e.when(i):e.reject('Wrong format "'+n+'" and no default value provided');var o=n.match(p),u=o[1],a=o[2],s=c(u,a)||i;if(s)return e.when(s);var l='[dictionary] Requested key "'+a+'" not found in dictionary "'+u+'" and no default value provided';return t.error(l),e.reject(l)}function c(e,t){var n=o(e);return n&&n[t]}function s(e){if(!r(e))return t.warn('Wrong format "'+e+'"'),e;var o=e.match(p),u=o[1],a=o[2],c=i[u];if(c){var s=c[a];return s||(t.error('[dictionary] Key "'+a+'" not found in dictionary "'+u+'"'),e)}return n.isLocalhost()||t.error('[dictionary] Dictionary "'+u+'" not found, key: "'+e+'"'),e}function l(e){return angular.isObject(e)?d(e.nls,e.label||e.value):angular.isString(e)?d(e,e):void 0}function d(e,t){if(!r(e))return t;var n=e.match(p),o=n[1],u=n[2],a=i[o];return a?a[u]||t:t}var f="Dictionary failed to load",p=/^([\w-]+)\.([\w-]+(?:\.[\w-]+)?)$/;return{translate:l,isValidKey:r,getDictionary:o,getTranslation:u,getTranslationSync:s}}i.$inject=["$q","logService","pathService","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="nlsService"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){e.$watch(function(){return e.$eval(n[u])},function(e){return i.setCountry(e)})}return{restrict:"A",controller:o["default"],controllerAs:"ewfcCountryCtrl",link:e}}t.__esModule=!0,t["default"]=i;var r=n(1367),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfcCountry"},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t){r.push(t),angular.isDefined(o)&&t(o),e.$on("$destroy",function(){return r.splice(r.indexOf(t),1)})}function n(t){angular.isUndefined(t)||(o=t,e(function(){r.forEach(function(e){e(t)})}))}var i=this;Object.assign(i,{registerComponent:t,setCountry:n});var r=[],o=void 0}i.$inject=["$timeout"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){function e(e,t,n,i){var r=i[0];i[1].registerComponent(e,function(e){return r.init(e)})}return{restrict:"A",require:[u,"^ewfcCountry"],controller:o["default"],controllerAs:"ewfLanguagesCtrl",link:e}}t.__esModule=!0,t["default"]=i;var r=n(1369),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfLanguages"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){e.getAvailableLanguages(t).then(i)}function i(e){var n=t.getDictionary(o);u.languages=e.map(function(e){return r(e,n)})}function r(e,t){return Object.assign({},e,{translation:t[e.code]})}var o="languages",u=this;Object.assign(u,{languages:[],init:n})}i.$inject=["locationService","nlsService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1371),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o="common.configuration.decimalSeparator",u=angular.module(o,[]);u.service(r["default"].NG_NAME,r["default"]),t.module=u,t["default"]=o},function(e,t,n){"use strict";function i(e){"ngInject";function t(){return e.getSourceData(e.CI_KEYS.CI0628_DECIMAL_SEPARATOR)}return{getDecimalSeparator:t}}i.$inject=["configService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfcDecimalSeparatorService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(33),o=i(r),u=n(1373),a=i(u),c=angular.module("common.configuration.if",[o["default"]||"common.configuration"]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="common.configuration.if"},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t,n,i){var r=i[0],o=i[1],a=r.setValue.bind(r,n[u],n[u+"CheckSupport"]);o?o.registerComponent(e,a):a()}function n(e,t,n,r,o){var a=r[0],c={ngIf:function(){function e(){return n[u+"Inverse"]?!a.isVisible():a.isVisible()}return e}()};i.link(e,t,c,null,o)}var i=e[0];return{transclude:i.transclude,priority:i.priority,terminal:i.terminal,restrict:i.restrict,require:[u,"?^ewfcCountry"],controller:o["default"],link:{pre:t,post:n}}}i.$inject=["ngIfDirective"],t.__esModule=!0,t["default"]=i;var r=n(1374),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfcIf"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){return r}function n(t,n,i){if(null===i)return void(r=!1);(n?function(){return e.getBooleanIfSupportedByCountry.apply(e,arguments)}:function(){return e.getBoolean.apply(e,arguments)})(t,i).then(function(e){return r=e})["catch"](function(){return r=!1})}var i=this;Object.assign(i,{isVisible:t,setValue:n});var r=void 0}i.$inject=["configService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1376),a=i(u),c="common.configuration.ifUserRestriction",s=angular.module(c,[o["default"]||"common.utils"]);s.directive(a["default"].NG_NAME,a["default"]),t.module=s,t["default"]=c},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t,i,r,o){r.getUserRestrictionValue(i[u]).then(function(r){var a={ngIf:function(){function e(){return i[u+"Inverse"]?!r:r}return e}()};n.link(e,t,a,null,o)})}var n=e[0];return{transclude:n.transclude,priority:n.priority,terminal:n.terminal,restrict:n.restrict,controller:o["default"],link:t}}i.$inject=["ngIfDirective"],t.__esModule=!0,t["default"]=i;var r=n(1377),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfIfUserRestriction"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t){return e.whoAmI().then(function(e){return e.coreRestrictions[t]})}var n=this;Object.assign(n,{getUserRestrictionValue:t})}i.$inject=["userService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1379),o=i(r),u=n(456),a=i(u),c="common.configuration.isUserDciAvailable",s=angular.module(c,[a["default"]]);s.directive(o["default"].NG_NAME,o["default"]),t.module=s,t["default"]=c},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e,n,o,u,a){var c=e.$eval(o[r+"FromCountry"]),s=e.$eval(o[r+"DigitalCustomsInvoiceModel"]);t.isDciAvailable(c).then(function(t){s&&!t&&(s.isAvailable=!1);var r={ngIf:function(){function e(){return t}return e}()};i.link(e,n,r,null,a)})}var i=e[0];return{transclude:i.transclude,priority:i.priority,terminal:i.terminal,restrict:i.restrict,link:n}}i.$inject=["ngIfDirective","corporateDigitalCustomsInvoicesService"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfIsUserDciAvailable"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{getPaperlessSettings:"&"+a+"GetPaperlessSettings",onSettingsUpdate:"&"+a+"UpdateSettings",switchPaperlessStatus:"&"+a+"SwitchPaperlessStatus",uploadBasePath:"<"+a+"UploadBasePath",isCorporate:"').append(e," ",'','
')),r}function u(e,t){e.attr("class")&&"ng-scope"!==e.attr("class")||e.addClass(t)}function a(e,t,i){var r,o=[e.addClass("checkbox__input")];return l(o,t),o.push('','
'),(r=angular.element('
')).append.apply(r,o)}function c(e,t,i){var r=[];return l(r,t),r.push(angular.element('').append(e.addClass("textarea textarea_width_full")," ",'','
')),r}function s(e,t,i){var r=[];l(r,t);var o=angular.element(''),u=angular.element('');return u.append(e," ",'','
'),o.append(u),r.push(o),r}function l(e,t){t&&e.push(''+t+"")}var d={input:i,textarea:c,select:s};return{restrict:"A",replace:!0,transclude:!0,template:"",link:t}}i.$inject=["$compile"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfControl"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e,t){o=e,u=t}function i(){var n=Object.assign({required:t.ERRORS.FORM_FIELD_IS_REQUIRED,maxlength:t.ERRORS.MAX_LENGTH_ERROR_MESSAGE,pattern:t.ERRORS.PATTERN_ERROR_MESSAGE,number:t.ERRORS.PATTERN_ERROR_MESSAGE,email:t.ERRORS.EMAIL_ERROR_MESSAGE},e.$eval(u));return Object.keys(o.$error).filter(function(e){return o.$error[e]}).map(function(e){var t=n[e];return angular.isFunction(t)?t(o.$viewValue):t})}var r=this;Object.assign(r,{init:n,getErrors:i});var o=void 0,u=void 0}i.$inject=["$scope","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1404),a=i(u),c=angular.module("common.form.customAsyncValidation",[o["default"]||"common.utils"]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="common.form.customAsyncValidation"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(n,c,d,f){function p(t){f.$dirty&&c.addClass(s["default"].HIGHLIGHTED),f.$setValidity(a["default"].PENDING_VALIDATION_KEYS,!1);var i=n.$eval(d[l],{props:n.$eval(d[l+"Props"]),modelValue:f.$modelValue,viewValue:f.$viewValue,value:t}),r=Object.keys(i).map(function(t){return e.when(i[t]).then(function(e){return{key:t,validity:e}})["catch"](function(){return{key:t,validity:!1}})});return e.all(r).then(function(e){angular.forEach(e,function(e){var t=e.validity,n=e.key;return f.$setValidity(n,t)})})["finally"](function(){return f.$setValidity(a["default"].PENDING_VALIDATION_KEYS,!0)}),t}if(!i(n,d)){var m=r(n,d);if(d[l+"Props"]){u(n,m)(d[l+"Props"],function(){return p(f.$modelValue)})}if(m.onBlur)return void c.on("blur",function(){p(f.$modelValue)});if(m.onInput){var _=function(){var e=t.debounce(p,m.debounce);return c.on("input",function(){e(f.$modelValue)}),{v:void 0}}();if("object"===(void 0===_?"undefined":o(_)))return _.v}f.$parsers.unshift(p),f.$formatters.push(p)}}function i(e,t){if(e.$eval(t[l+"RestrictValidation"]))return!0;if(!t[l])throw new Error(l+" should have value")}function r(e,t){return e.$eval(t[l+"Options"])||{deepWatch:!1,onBlur:!1,onInput:!1}}function u(e,t){return t.deepWatch?function(t,n){return e.$watch(t,n,!0)}:function(t,n){return e.$watchCollection(t,n)}}return{restrict:"A",require:"ngModel",link:n}}r.$inject=["$q","debounceService"],t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=r;var u=n(231),a=i(u),c=n(121),s=i(c),l=r.NG_NAME="ewfCustomAsyncValidation"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n,i,o){function u(){g.$parsers.unshift(f),g.$formatters.push(m)}function a(){E&&t.$watch(function(){return E.getOptions()},l)}function c(){n.on("focus blur",s)}function s(e){C="focus"===e.type,d(E.getOptions())}function l(e){d(e)}function d(e){var t=f(n.val());e&&Object.assign(S,e),C&&(S.thousandSeparator=""),!C&&t||(t=g.$modelValue),_(t)}function f(t){if(p(t))return t;var n=g.$modelValue,i=e.parse(t,S,h),r=e.trunc(i,S);return isNaN(i)?(_(n),n):r!==i?(_(r),r):i}function p(e){return!e||!1===h&&"-"===e}function m(t){return e.format(t,S)}function _(e){!e&&!g.$viewValue||e===g.$viewValue||(g.$setViewValue(m(e)),g.$render())}var g=o[0],E=o[1],S={},C=!1,h="true"===i[r+"PositiveOnly"]||!1;!function(){u(),a(),c()}()}return{restrict:"A",require:["^ngModel","^?ewfcDecimal"],link:t}}i.$inject=["decimalService"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfDecimal"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,i,u,a){function c(){a&&t.$watch(function(){return a.getOptions()},l)}function s(){t.$watch(u[o],d)}function l(e){f(e)}function d(e){g=e,m(g)}function f(e){a&&Object.assign(_,e),m(g)}function p(t){if(!t){var i=_.fractionSeparator||n;return r.HIDDEN_PRICE_VALUE_MASK.replace(n,i)}var a=u[o+"WithoutTrunc"]?t:e.trunc(t,_);return e.format(a,_)}function m(e){i.html(p(e))}var _={},g=void 0;!function(){c(),s()}()}var n=".";return{restrict:"A",require:"^?ewfcDecimal",link:t}}i.$inject=["decimalService"],t.__esModule=!0,t["default"]=i;var r=n(59),o=i.NG_NAME="ewfDecimalLabel"},function(e,t,n){"use strict";function i(e,t,n,i,r,o){"ngInject";function u(e,t){return n(e,t.fractionSeparator,t.thousandSeparator,t.decimalPoint)}function a(e,n,i){return t(e,n.fractionSeparator,n.thousandSeparator,i)}function c(e,t){return i(e,t.intMaxLength,t.fractionMaxLength)}function s(e){return r.getSourceData(r.CI_KEYS.CI0628_DECIMAL_SEPARATOR,e).then(function(e){return{fractionSeparator:"comma"===e?",":".",thousandSeparator:"comma"===e?".":","}})}function l(t,n,i){var o=n?r.CI_KEYS[n]:r.CI_KEYS.CI0811_NO_DIGITS_ALLOWED_NET_WEIGHT_GROSS_WEIGHT_ITEM_VALUE,u=i?r.CI_KEYS[i]:r.CI_KEYS.CI1022_NO_OF_DECIMALS_ALLOWED_FOR_WEIGHT_AND_ITEM_VALUE,a=r.getSourceData(o,t),c=r.getSourceData(u,t);return e.all([a,c]).then(function(e){return{intMaxLength:e[0],fractionMaxLength:e[1]}})}function d(e){var t={intMaxLength:null,fractionMaxLength:2};return o.getCurrencyDecimalPoint(e).then(function(e){return Object.assign(t,{decimalPoint:e,fractionMaxLength:angular.isNumber(e)?e:t.fractionMaxLength})})}return{parse:a,format:u,trunc:c,getSeparatorOptions:s,getWeightOptions:l,getCurrencyOptions:d}}i.$inject=["$q","decimalParseFilter","decimalFormatFilter","decimalTruncFilter","configService","priceService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="decimalService"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1409),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("common.form.email",[]);o.directive(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="common.form.email"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n,i,o){function u(e){var t=o.$isEmpty(e)||l(e);return o.$setValidity("email",t),t?e:undefined}function a(e){return e.split(",").every(c)}function c(t){return e.USER_NAME_PATTERN.test(t.trim())}var s=i[r+"List"],l=s?a:c;o.$formatters.push(u),o.$parsers.push(u)}return{restrict:"A",require:"ngModel",link:t}}i.$inject=["Patterns"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfEmail"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1411),a=i(u),c=n(1412),s=i(c),l=angular.module("common.widgets.address.brazilTax",[o["default"]||"common.utils"]);l.directive(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="common.widgets.address.brazilTax"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({bindings:{taxDetails:"="+f+"Details",contactProvince:"<"+f+"ContactProvince",countryCode:"<"+f+"CountryCode",cteOption:"=?"+f+"CteOption",isSender:"2&&(e.stateCode=null);var n=e.addressLine3,i=u(n,t),r=Object.assign({house:e.house,street:e.street,city:e.city,addrLine1:e.addressLine1,addrLine2:e.addressLine2,addrLine3:i,countryName:e.country,countryDivisionName:e.state,zipOrPostCode:e.postalCode,countryDivisionCode:e.stateCode,citySuburbName:e.suburb||e.district,invalidHouseNumber:!!e.addressLine1&&!e.house},e);return delete r.postalCode,r}function u(e,t){return e.length>t?e.substring(0,t):e}function a(e,t){return e.map(function(e,n){return Object.assign(e,{group:t,firstInGroup:0===n,name:e.line1,fullAddress:e.line2+" "+e.line3,isAddressbookContact:!0})})}function c(t,n,i){return{name:t.addressLine1,fullAddress:t.text,group:e.SHIPMENT_ADDRESS.ADDRESS_DETAILS_SELECT_OPTION_SEARCH_ADDRESSES,data:t,firstInGroup:0===n&&i,isAddressbookContact:!1,postalCode:t.postalCode,city:t.city}}function s(t,n){t.forEach(function(t){var i=t.data,r=i.address,o=i.zipOrPostCode,u=i.countryDivisionName,a=i.country,c=i.contactName,s=i.companyName;t.fullAddress=r+" "+o+" "+u+" "+a,t.group="From"===n?e.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_FROM_FAVORITES_DROPDOWN:e.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_TO_FAVORITES_DROPDOWN,t.isAddressbookContact=!0,t.line1=c+" "+s,t.line2=r,t.line3=o+" "+u+" "+a,t.line4="",t.line5=""}),t[0]&&(t[0].firstInGroup=!0)}function l(e,t){var n=d(e.addressDetails.countryCode)?t.data:t,i=n.city,r=n.district,o=n.countryDivisionCode,u=n.countryDivisionName,a=n.postalCode,c=n.suburb,s=n.state;Object.assign(e.addressDetails,{city:i,citySuburbName:r||c,countryDivisionCode:o,countryDivisionName:u||s,zipOrPostCode:a})}function d(e){return e===o["default"].BRAZIL}function f(e){t.updateShipperNameChangedFlag(e)}function p(){return t.isShipperNameUpdated()}return{clearPhoneDetails:n,remapAddressbookContact:i,mapAmsAddressDetailsByItem:r,mapAddressbookContactWithGroup:a,mapAmsLoadedContact:c,mapFavoriteContacts:s,mapRegionDetails:l,updateShipperNameChangedFlag:f,isShipperNameUpdated:p}}i.$inject=["Messages","shipperNameStateService"],t.__esModule=!0,t["default"]=i;var r=n(4),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="addressMapperService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(n){var i=t.encodeParams(n);return e.get("/api/addressbook/search?"+i,{preventNotFoundInterceptor:!0}).then(function(){return(arguments.length<=0||arguments[0]===undefined?{}:arguments[0]).data})}function r(t){var n=t.type,i=t.query,r=t.countryCode,o=t.collectionType,a=t.onLoadCallback,c=t.fromOrTo,s=t.collection,l=u({type:n,query:i,countryCode:r,collectionType:o,fromOrTo:c,collection:s});return e.get(l,{preventNotFoundInterceptor:!0}).then(function(e){var t=e.data;return t&&t.results&&t.results.length?a(t):[]})}function u(e){var n=e.type,i=e.query,r=e.countryCode,o=e.collectionType,u=e.fromOrTo,a=e.collection;return"/api/addressbook/contact/search/default/typeahead/"+encodeURIComponent(i)+t.getParamsString({countryCode:r,direction:o,searchParameter:n,collection:a})+c(u)}function a(t,n){var i=n?"&countryCode="+n:"",r=c(t);return e.get("/api/addressbook/contact/search/ordered/typeahead/?searchParameter=name&searchParameter=emailAddress"+i+r).then(function(e){return e.data.results})}function c(e){var t=s(e);return n.getSortingParamsString([l(t)].concat(n.getHiddenSortingParameters()))}function s(e){return e?"favoriteShip"+(e[0].toUpperCase()+e.substring(1).toLowerCase()):null}function l(e){return n.getFormattedSortingParameter({sortingParameter:e,sortingDirection:o["default"].DESC})}return{addressSearchByParams:i,loadAddressSuggestions:r,getFavoriteAddressList:a}}i.$inject=["$http","queryParamsService","sortingParametersService"],t.__esModule=!0,t["default"]=i;var r=n(40),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="addressResource"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1447),a=i(u),c=n(1449),s=i(c),l=n(1451),d=i(l),f=n(1452),p=i(f),m=n(1453),_=i(m),g=angular.module("common.widgets.grid",[o["default"]||"common.utils"]);g.directive(a["default"].NG_NAME,a["default"]).directive(s["default"].NG_NAME,s["default"]).directive(d["default"].NG_NAME,d["default"]).directive(p["default"].NG_NAME,p["default"]).service(_["default"].NG_NAME,_["default"]),t.module=g,t["default"]="common.widgets.grid"},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t,n,i){i.isUpdatable=n.hasOwnProperty(a+"Updatable")}function n(e,t,n,r){var o={hideHeader:a+"HideHeader",displaySelectionMessage:a+"DisplaySelectionMessage",mailingSelectionMessage:a+"MailingSelectionMessage",defaultLabel:a+"DefaultLabel"},u={selectAllByDefault:a+"SelectAll",onSort:a+"OnSort",isBackEndSortingEnabled:a+"IsBackEndSortingEnabled",isBackEndPaginationEnabled:a+"IsBackEndPaginationEnabled"},c={triggerBackEndSorting:a+"OnBackEndSorting",triggerSelection:a+"OnSelection",triggerColumnsChanged:a+"OnColumnsChanged"},s=[[a+"ShowCustomizationButton","showCustomizationButton"],[a+"AvailableColumns","availableColumns",!0],[a+"GridActions","gridActions",!0,r.mergeGridActions],[a+"VisibleColumns","visibleColumns",!0,r.handleColumnsChanges],[a+"PaginationSize","paginationSize",!0,r.handlePaginationSizeChange],[a+"Data","gridData",!0,r.onDataChanges],[a+"HideCheckbox","hideCheckbox"],[a+"HideSelectAllCheckbox","hideSelectAllCheckbox"],[a+"SelectAllHiddenItems","selectAllHiddenItems"],[a+"BackEndItemsNumber","backEndItemsNumber"],[a+"ExclusionList","exclusionList"]];Object.entries(o).forEach(function(e){var t=e[0],i=e[1];r[t]=n[i]}),Object.entries(u).forEach(function(t){var i=t[0],o=t[1];r[i]=e.$eval(n[o])}),Object.entries(c).forEach(function(t){var i=t[0],o=t[1];r[i]=function(t){return e.$eval(n[o],t)}}),r.initGridActions(),s.forEach(function(t){var o=t[0],u=t[1],a=t[2],c=t[3],s=a?r.attributes:r;i({$scope:e,$attrs:n,attributeName:o,savePropertyAs:u,attributeValueContainer:s,onChangeFn:c})}),r.onDataChanges(r.attributes.gridData)}function i(t){var n=t.$scope,i=t.$attrs,o=t.attributeName,u=t.savePropertyAs,a=t.attributeValueContainer,c=t.onChangeFn,s=e(i[o]),l=s.assign,d=u||o,f=a[d]=s(n);c&&c(f);var p=n.$watch(function(){return s(n)},function(e){f!==e&&(a[d]=f=e,c&&c(e))});if(l){var m=function(){var e=n.$watch(function(){return a[d]},function(e){f!==e&&(f=e,l(n,f),c&&c(e))});return{v:function(){function t(){p(),e()}return t}()}}();if("object"===(void 0===m?"undefined":r(m)))return m.v}return p}return{restrict:"A",controller:u["default"],controllerAs:"ewfGridCtrl",templateUrl:"common/widgets/grid/grid.html",link:{pre:t,post:n}}}i.$inject=["$parse"],t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=i;var o=n(1448),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfGrid"},function(e,t,n){"use strict";function i(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function r(e,t,n,r,o,a){"ngInject";function c(){le.attributes.paginationSize&&(le.pagination.pageSize=le.attributes.paginationSize)}function s(){var e;le.gridActions=(e={},e[Se]=Y({order:1,label:o.COMMON.COMMON_BUTTON_EDIT}),e[Ce]=Y({order:0,label:o.COMMON.COMMON_BUTTON_DELETE}),e)}function l(e,t){le.attributes.gridData=e,le.isBackEndSortingEnabled||f(),p(t||le.pagination.pageIndex)}function d(e,t){return e.$position-t.$position}function f(){var e=le.sort.column,t=le.attributes.gridData,n=le.onSort;if(t&&t.length&&e){var i=le.sort,r=i.method,o=i.direction;if(angular.isFunction(n))return void n(e,o);t.forEach(function(e,t){return e.$position=t}),t.sort(function(t,n){var i=angular.isFunction(r)?r({rowA:t,rowB:n,column:e,direction:o}):a.compareBy(t,n,[e]);return i?o===u["default"].ASC?i:-i:d(t,n)})}}function p(e){Object.assign(le.pagination,n.paginate(le.getTotalRecordsCount(),e,+le.pagination.pageSize)),le.setPageData()}function m(){le.pageData=le.attributes.gridData.slice(le.pagination.rowMin,le.pagination.rowMax+1)}function _(e){var t=arguments.length<=1||arguments[1]===undefined?le.sort.direction:arguments[1];Object.assign(le.sort,{column:e.alias,method:e.onSort,direction:t})}function g(e,t){le.sort.column===e.alias&&le.sort.direction===t||(_(e,t),le.isBackEndSortingEnabled||f(),p(0))}function E(e){var t=C(e);S()(e,t)}function S(){return le.isBackEndSortingEnabled?ae:g}function C(e){return le.sort.column===e.alias&&le.sort.direction===u["default"].ASC?u["default"].DESC:u["default"].ASC}function h(e){var t=e.items,n=i(e,["items"]);t.forEach(function(e){var t=!!e.isSelected;e.isSelected=!!I(e,n),n.storeExclusion&&t!==e.isSelected&&Z(e)}),X()}function I(e,t){var n=t.isSelected,i=t.shouldIgnoreExclusionForSelectAll,r=t.storeExclusion;return!e.nonSelectable&&n&&(A(e)||i)||v(e,r)}function A(e){return!le.selectAllHiddenItems||!le.exclusionList||!le.exclusionList.some(function(t){return t.key===e.key})}function v(e,t){return le.isBackEndPaginationEnabled&&!le.selectAllHiddenItems&&!t&&(le.exclusionList||[]).some(function(t){return e.key===t.key})}function N(e,t){t||(le.exclusionList=[]),le.selectAllHiddenItems=e,h({items:le.attributes.gridData,isSelected:e})}function T(e){var t={storeExclusion:!0,shouldIgnoreExclusionForSelectAll:!0};!e&&F()?(t.items=le.attributes.gridData,t.isSelected=!1):(t.items=le.pageData,t.isSelected=e),h(t)}function M(){return angular.copy(le.attributes.gridData).filter(D).map(function(e){return delete e.isSelected,e})}function y(){return le.pageData.filter(D)}function D(e){return e.isSelected}function O(e){return e.isDisabled}function P(e){return le.sort.column===e.alias?"current "+fe[le.sort.direction]:""}function b(){de.close()}function R(){le.selectedColumns={},le.attributes.visibleColumns.forEach(function(e,t){le.selectedColumns["column"+(t+1)]={alias:e.alias,title:e.title}}),de=r.showDialog({scope:e,windowClass:"ewf-modal_width_full",templateUrl:"common/widgets/grid/grid-column-customization-dialog.html"})}function L(){le.triggerColumnsChanged({selectedColumns:le.selectedColumns}),x()||S()(le.selectedColumns.column1,u["default"].ASC),le.hideColumnCustomizationDialog()}function G(){return le.displaySelectionMessage&&le.selectAll}function U(){return y().length}function F(){return k().every(D)&&(!le.isBackEndPaginationEnabled||le.selectAllHiddenItems)}function w(){return le.isBackEndPaginationEnabled?le.backEndItemsNumber-1:k().length}function k(){return le.attributes.gridData?le.attributes.gridData.filter(function(e){return!e.nonSelectable}):[]}function j(){return le.attributes.gridData?le.attributes.gridData.length:0}function V(e){var t=e&&Object.keys(e);null===t?le.gridActions=null:t&&t.forEach(function(t){var n=e[t];le.gridActions[t]?n?Object.assign(le.gridActions[t],n):delete le.gridActions[t]:le.gridActions[t]=Y(n)})}function B(e){e&&($(e),e.filter(function(e){var t=e.template,n=e.templateId;return!t&&n}).forEach(function(e){return t.loadTemplate(e)}))}function $(e){var t=H(e);t&&_(t)}function x(){return Object.keys(le.selectedColumns).some(function(e){return le.selectedColumns[e].alias===le.sort.column})}function H(e){return e.find(function(e){return e.defaultSort})}function Y(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return Object.assign({order:null,handler:angular.noop,label:"",position:Ee,templateId:null},e)}function K(e){var t=[];return D(e)&&t.push(pe),O(e)&&t.push(me),W(e,t),t.join(" ")}function W(e,t){var n=e.recordState;n&&(n.error?t.push(_e):n.type&&t.push(n.type))}function q(e){return e.alias&&""+ge+e.alias}function z(e){l(e,0),N(le.selectAllHiddenItems||le.selectAllByDefault,!0)}function X(e){Q(e),le.selectAll=k().length&&J()}function Q(e){e&&Z(e)}function Z(e){le.exclusionList=le.exclusionList||[],e.isSelected===!le.selectAllHiddenItems?le.exclusionList.push(e):le.exclusionList.splice(le.exclusionList.indexOf(e),1)}function J(){return!!le.pageData.length&&le.pageData.every(function(e){var t=e.nonSelectable;return e.isSelected||t})}function ee(){return le.pageData.some(D)}function te(e){return e.template||e.templateId}function ne(e){return!te(e)&&!le.isUpdatable}function ie(e){return!te(e)&&le.isUpdatable}function re(){return le.mailingSelectionMessage?o.ADDRESS_BOOK.ADDRESS_BOOK_ALERT_SELECT_MAILING_LISTS:o.ADDRESS_BOOK.ADDRESS_BOOK_ALERT_SELECT_ADDRESSES}function oe(){return le.mailingSelectionMessage?o.ADDRESS_BOOK.ADDRESS_BOOK_ALERT_ALL_MAILING_LISTS_SELECTED:o.ADDRESS_BOOK.ADDRESS_BOOK_ALERT_ALL_ADDRESSES_SELECTED}function ue(){return le.mailingSelectionMessage?o.ADDRESS_BOOK.ADDRESS_BOOK_LINK_SELECT_ALL_MAILING_LISTS:o.ADDRESS_BOOK.ADDRESS_BOOK_LINK_SELECT_ALL_ADDRESSES}function ae(e,t){g(e,t),le.triggerBackEndSorting({columnAlias:e.alias,direction:t})}function ce(e){return le.defaultLabel&&e["default"]}var se,le=this,de=!1,fe=(se={},se[u["default"].ASC]="ascending",se[u["default"].DESC]="descending",se),pe="selected",me="disabled",_e="error",ge="grid-column-",Ee="right",Se="edit",Ce="delete";Object.assign(le,{pagination:{},sort:{direction:u["default"].ASC},attributes:{},selectedColumns:{},showActions:!1,selectAll:!1,selectAllHiddenItems:!1,gridActions:{},GRID_ACTION_POSITION_LEFT:"left",GRID_ACTION_POSITION_RIGHT:Ee,initGridActions:s,getAllSelectedItems:M,getSelectedItemsOnCurrentPage:y,getTotalSelectableRecordsCount:w,getSortOrderCssClasses:P,setPageSelection:T,toggleSortOrder:E,updateVisibleColumns:L,showColumnCustomizationDialog:R,hideColumnCustomizationDialog:b,mergeGridActions:V,handleColumnsChanges:B,handlePaginationSizeChange:c,onDataChanges:z,setSelectionForAllRecords:N,setPageData:m,getSelectedRecordsCount:U,getTotalRecordsCount:j,getRecordCssClasses:K,getColumnCssClass:q,getSelectionMessage:re,getAllSelectionMessage:oe,getAllSelectionLinkMessage:ue,canShowSelectionMessage:G,currentPagePartiallySelected:ee,hasTemplate:te,isAllRecordSelected:F,isConstantData:ne,isUpdatableData:ie,isDefaultLabelVisible:ce,forceUpdateSelectionFlag:X})}r.$inject=["$scope","gridService","paginationService","modalService","Messages","sortService"],t.__esModule=!0,t["default"]=r;var o=n(40),u=function(e){return e&&e.__esModule?e:{"default":e}}(o)},function(e,t,n){"use strict";function i(){function e(e,t,n,i){var r=i[0],o=i[1],a=e.$eval(n[u]);r.init(o.gridActions,a)}return{restrict:"A",controller:o["default"],controllerAs:"ewfGridActionsCtrl",require:[u,"^ewfGrid"],templateUrl:"common/widgets/grid/grid-actions.html",scope:!0,link:e}}t.__esModule=!0,t["default"]=i;var r=n(1450),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfGridActions"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e,t){d=t.position,s.actions=u(e),r(),o()}function r(){s.isMoreLinkVisible=s.actions.length>l}function o(){s.actionsLimit=s.actionsExpanded||!s.isMoreLinkVisible?s.actions.length:l-1}function u(i){var r=Object.entries(i).filter(function(t){var n=t[1],i=!angular.isFunction(n.isAvailable)||n.isAvailable(e.row);return d===n.position&&i}).map(function(e){var t=e[0],i=e[1],r=!!i.templateId,o=Object.assign({name:t,hasTemplate:r},i);return r&&n.loadTemplate(o),o});return t(r,"order")}function a(){s.actionsExpanded=!0,o()}function c(){s.actionsExpanded=!1,o()}var s=this,l=4,d=void 0;Object.assign(s,{actions:null,init:i,expandActions:a,collapseActions:c})}i.$inject=["$scope","orderByFilter","gridService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{paginationSettings:"="+u,totalRecords:"<"+u+"TotalRecords",pageRangeOptions:"<"+u+"PageRangeOptions",gridData:"i&&m()}function u(e,t){Object.assign(g.paginationSettings,n.paginate(e,t,g.paginationSettings.pageSize))}function a(){return{label:e.COMMON.COMMON_INFO_TEXT_GRID_PAGINATION_RANGE,showOnNewLine:!1,hidePageRange:!1,hidePageSizes:!1}}function c(e){e<0||e>=g.paginationSettings.pageCount||(u(g.totalRecords,e),g.onPageChange(e))}function s(){if(g.totalRecords)return t(g.rangeOptions.label,{firstRecordIndex:g.paginationSettings.rowMin+1,lastRecordIndex:g.paginationSettings.rowMax+1,totalRecords:g.totalRecords})}function l(){return!g.rangeOptions.hidePageRange&&!g.rangeOptions.showOnNewLine}function d(){return g.totalRecords>o.MIN_PAGE_SIZE}function f(){return g.paginationSettings.pageIndex<=0}function p(){return g.paginationSettings.pageIndex>=g.paginationSettings.pageCount-1}function m(){c(g.paginationSettings.pageIndex-1)}function _(){c(g.paginationSettings.pageIndex+1)}var g=this;Object.assign(g,{PAGE_SIZES:[o.MIN_PAGE_SIZE,25,50,100],$onChanges:i,moveToPage:c,moveToPrevPage:m,moveToNextPage:_,getPaginationRange:s,showElementsInOneLine:l,showPaginationElements:d,isPrevDisabled:f,isNextDisabled:p})}i.$inject=["component"],r.$inject=["Messages","replaceFilter","paginationService"],t.__esModule=!0,t["default"]=i,t.GridPaginationController=r;var o=n(21),u=i.NG_NAME="ewfGridPagination"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t,n,a){function c(e){var t=e?s.height()+d.height():"auto";l.css({height:t}),n.toggleClass(o)}t.$watch(a[r],function(n){n&&e(function(){return t.onToggleQuickView(n)})});var s=n.parents("tr"),l=s.children().eq(0),d=n.find(u);i(t,a),t.onToggleQuickView=function(e){if(!e||!a[r+"OnExpand"])return c(e);t.$eval(a[r+"OnExpand"]).then(function(){return c(e)})}}function i(e,n){var i=n[r+"UseAlternativeLabel"];e.showQuickViewLabel=i?t.MANAGE_ACCOUNTS.MANAGE_AUTH_LINK_SHOW_QUICK_VIEW:t.MANAGE_SHIPMENTS.HOME_LINK_SHOW_QUICK_VIEW,e.hideQuickViewLabel=i?t.MANAGE_ACCOUNTS.MANAGE_AUTH_LINK_HIDE_QUICK_VIEW:t.MANAGE_SHIPMENTS.HOME_LINK_HIDE_QUICK_VIEW}var o="grid-quick-view__opened",u=".grid-quick-view__section";return{restrict:"A",transclude:!0,templateUrl:"grid-quick-view-template.html",link:n}}i.$inject=["$timeout","Messages"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfGridQuickView"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n){e.get(n.templateId,{cache:t}).then(function(e){var t=e.data;return n.template=t})}return{loadTemplate:n}}i.$inject=["$http","$templateCache"],t.__esModule=!0,t["default"]=i,i.NG_NAME="gridService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"addressSearchCtrl",templateUrl:function(){function e(e,t){return t[a+"TemplateUrl"]||"/templates/dashboard-address-search.html"}return e}(),bindings:{model:"="+a,addressDetails:"="+a+"Details",placeholder:"@?"+a+"Placeholder",isAddressBookSearch:"=?"+a+"Addressbook",isAmsSearch:"=?"+a+"Ams",settings:"=?"+a+"Settings",onAddressSelected:"&"+a+"OnAddressSelected",onBeforeAddressSelect:"&?"+a+"OnBeforeAddressSelect",fromOrTo:"=?"+a+"AddressFormName",allowAddressSuggestionWithoutCountry:"=?"+a+"AllowAddressSuggestionWithoutCountry",isAddressBookButtonClicked:"=d[d.length-1]?d[d.length-1]:c()}function a(){l.value=0}function c(){var e=d.findIndex(function(e){return e>l.value});return d[e-1]}function s(e){var t=d.indexOf(l.value);return d[t+e]}var l=this,d=[];Object.assign(l,{$onInit:e,isPreviousValueDisabled:t,isNextValueDisabled:n,isResetVisible:i,setPreviousValue:r,setNextValue:o,onBlur:u,reset:a})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.QuantityInputController=r;var o=i.NG_NAME="ewfQuantityInput"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(1506),a=i(u),c=n(1507),s=i(c),l=angular.module("shipment.type.prohibiteditems",[o["default"]]);l.directive(a["default"].NG_NAME,a["default"]).directive(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="shipment.type.prohibiteditems"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"prohibitedItemsPopupCtrl",templateUrl:function(){function e(e,t){return t[o+"Id"]?"prohibited-items-link-layout"+t[o+"Id"]+".html":"prohibited-items-link-layout.html"}return e}(),bindings:{linkText:"@"+o+"LinkText",fromCountry:"<"+o+"FromCountry",toCountry:"<"+o+"ToCountry",v2:"0,notificationMessages:i.map(function(e){return t.translate(e)})})}function r(e,t){var n=[];return e.forEach(function(e){return o(e,n,t)}),n}function o(e,t,n){e.mandatoryField.value===n.fieldIdentifier.value&&u(e,t,n)}function u(e,t,n){var i=l(e.shipperCountry),r=l(e.receiverCountry);if(a(i,r,n))return void t.unshift(e.message);c(i,r,n)&&t.push(e.message)}function a(e,t,n){var i=n.shipperCountry,r=n.receiverCountry;return s(e,i)&&s(t,r)}function c(e,t,n){var i=n.shipperCountry,r=n.receiverCountry;return s(e,i)&&angular.isUndefined(t)||s(t,r)&&angular.isUndefined(e)}function s(e,t){return e===t}function l(e){return e&&e.value&&e.value.value}return{applyFieldNotificationsConfig:n}}i.$inject=["configService","nlsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="fieldNotificationsService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1520),o=i(r),u=n(1522),a=i(u),c=n(1523),s=i(c),l=angular.module("common.widgets.animated-carousel",[]);l.directive(o["default"].NG_NAME,o["default"]).directive(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="common.widgets.animated-carousel"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){var r={slidesInRow:u+"SlidesInRow",auto:u+"Auto",autoDelay:u+"AutoDelay",controls:u+"Controls",indicators:u+"Indicators",disableStopOnHover:u+"DisableStopOnHover",itemWidth:u+"ItemWidth",rtl:u+"Rtl"};Object.entries(r).forEach(function(t){var r=t[0],o=t[1];return i[r]=e.$eval(n[o])});var o=t.find("ul");i.init(o)}return{restrict:"A",controller:o["default"],controllerAs:"animatedCarouselCtrl",link:e,scope:!0}}t.__esModule=!0,t["default"]=i;var r=n(1521),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfAnimatedCarousel"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n){var c=n.parent();h=n,C=h.children(),S=C.length-h.find(".not-visible-component").length,E.itemWidth?o(E.itemWidth):t.$watch(function(){return c.width()},function(e){e<=v||(A=e,o(A))}),i(),["auto","disableStopOnHover"].forEach(u),r(S)&&(a(),E.disableStopOnHover||c.on("mouseenter",function(){e.cancel(I)}).on("mouseleave",function(){a()}))}function i(){E.areControlsVisible=E.controls&&(1===E.slidesInRow||S>E.slidesInRow)}function r(e){return E.auto&&E.autoDelay&&e>E.slidesInRow}function o(e){C.css({"min-width":e+"px","max-width":e+"px"})}function u(e){E[e]="true"===E[e]}function a(){I=e(s,E.autoDelay)}function c(){f()?E.index-=1:E.index=S-E.slidesInRow,l()}function s(){d()?E.index+=1:E.index=0,l()}function l(){var e=E.rtl?"right":"left";h.css(e,"-"+E.index*(E.itemWidth||A)+"px")}function d(){return E.index!==S-E.slidesInRow}function f(){return 0!==E.index}function p(e){return e===E.index}function m(){var e=C[E.index];if(!e)return!1;var t=e.classList;return t.contains("has-image")||t.contains("black")}function _(){return!!C[E.index]&&C[E.index].classList.contains("black")}function g(e){E.index=e,l()}var E=this,S=void 0,C=void 0,h=void 0,I=void 0,A=void 0,v=150;Object.assign(E,{init:n,isActiveElement:p,isWhiteLeftArrow:m,isWhiteRightArrow:_,goToIndex:g,decreaseIndex:c,increaseIndex:s,isNotLast:d,isNotFirst:f,index:0})}i.$inject=["$interval","$scope"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e,n,a){var c=e.$watch(function(){return n.is(":visible")},function(s){if(s){var l=n.children(),d=a[r+"Type"],f=u(d),p=n.find(f);p.length&&(t.removeInvisibleElements(n,p),i(n,d)),o(l,e),c()}})}function i(e,n){if(n!==a){var i=e.find(l);if(t.updateIndicesInAttribute(i,d,f),t.updateIndicesInAttribute(i,p,m),n!==c){var r=e.find(s);t.updateIndicesInAttribute(r,d,f)}}}function o(t,n){t.removeAttr("ng-non-bindable"),e(t)(n)}function u(e){return e===a?".card-carousel__grid>.card-carousel__item:not(:visible)":".cmp-carousel__content>.cmp-carousel__item:not(:visible)"}var a="card",c="teaser",s="div.cmp-carousel__item",l=".cmp-carousel__indicator",d="ng-class",f="isActiveElement",p="ng-click",m="goToIndex";return{restrict:"A",link:n}}i.$inject=["$compile","animatedCarouselVisibilityService"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfAnimatedCarouselVisibilityHandler"},function(e,t,n){"use strict";function i(){"ngInject";function e(e,t){var i=t.toArray().map(function(e){return Number(e.getAttribute(n))}).map(function(e){return"["+n+'="'+e+'"]'}).join(",");e.find(i).remove()}function t(e,t,n){e.toArray().forEach(function(e,i){var r=e.getAttribute(t),o=new RegExp("\\."+n+"\\(\\d+\\)"),u=r.replace(o,"."+n+"("+i+")");e.setAttribute(t,u)})}var n="data-carousel-item-index";return{removeInvisibleElements:e,updateIndicesInAttribute:t}}t.__esModule=!0,t["default"]=i,i.NG_NAME="animatedCarouselVisibilityService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r){"ngInject";function o(){return w}function a(){var t=M();if(!t)return!1;var n=e["transaction-status-of-"+t];return angular.isDefined(n)&&!JSON.parse(n)}function s(){return!!M()}function d(){return!!y()}function p(){return _()||i.isShipmentFetchedByAssignor()}function m(){return p()&&D().assignShipment.assignmentRestricted}function _(e){return i.isShipmentFetchedByAssignee(e)}function g(){return t.getUserCountry()===f["default"].BRAZIL}function E(){return j}function S(){return t.isGuest()&&C()}function C(){return[u["default"].MANIFESTED,u["default"].PICKED_UP,u["default"].IN_TRANSIT,u["default"].DELIVERED].includes(k)}function h(){return r.getBoolean(r.CI_KEYS.CI1027_ENABLE_WALK_CLICK_CALL_PROMOTION).then(function(e){return t.isGuest()&&e&&n.getLocationUrl().includes("/rate-and-quote")})}function I(){return!!n.getParamFromUrl(c["default"].IS_SHIPMENT_EDIT_MODE)}function A(){return n.isPage(l["default"].RETURN_LABEL_PAGE)}function v(){return t.isGuest()}function N(){var t=M();if(!t)return!1;return e["transaction-failure-reason-of-"+t]}function T(){return n.getParamFromUrl(c["default"].SHIPMENT_ID)}function M(){return n.getParamFromUrl(c["default"].SHIPMENT_ID)||y()}function y(){return n.getParamFromUrl(c["default"].COPIED_SHIPMENT_ID)}function D(){return i.getShipmentData()}function O(){return k}function P(e){w=e}function b(e){k=e}function R(e){j=e}function L(){return t.retrieveAccountHolderStatus()}function G(e){i.fixateCurrentFromContactDetails(e)}function U(){i.actualizeFromContactDetails()}function F(){return n.isUrlContainingSomeParam(c["default"].B2L_SHIPMENT,c["default"].RB_SHIPMENT)}var w=!1,k=void 0,j=void 0;return{isOnLastStep:o,isTransactionFailedForShipmentId:a,isRestoredShipment:s,isCopiedShipment:d,isShipmentAssigned:p,isShipmentAssignedWithRestrictions:m,isUserAssignee:_,isBrazilFlow:g,isReturnLabelChosen:E,isShipmentCannotBeResumed:S,isWccFlow:h,isShipmentEditMode:I,isReturnLabelPage:A,isGuest:v,getTransactionFailureReasonForShipmentId:N,getShipmentId:T,getRestoredShipmentId:M,getCopiedShipmentId:y,getShipmentData:D,getShipmentStatus:O,setIsLastStep:P,setShipmentStatus:b,setReturnLabelStatus:R,canShowAssignForm:L,fixateCurrentFromContactDetails:G,actualizeFromContactDetails:U,isB2lShipment:F,isCompletedStatus:C}}r.$inject=["$sessionStorage","userService","pathService","shipmentDataService","configService"],t.__esModule=!0,t["default"]=r;var o=n(12),u=i(o),a=n(1),c=i(a),s=n(23),l=i(s),d=n(4),f=i(d);r.NG_NAME="shipmentFlowService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(1526),a=i(u),c=n(1527),s=i(c),l=n(1528),d=i(l),f=angular.module("common.widgets.fancyInputs",[o["default"]]);f.directive(a["default"].NG_NAME,a["default"]).directive(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]),t.module=f,t["default"]="common.widgets.fancyInputs"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"fancyDropdownCtrl",templateUrl:"common/widgets/fancy-dropdown/fancy-dropdown.html",bindings:{model:"="+o,options:"<"+o+"Options",optionName:"@?"+o+"OptionName",label:"@"+o+"Label"}})}function r(){function e(){i.optionName&&(i.nameProperty=i.optionName)}function t(e){i.model=e.value}function n(){if(!i.options)return"";var e=i.options.find(function(e){return e.value===i.model});return e&&e[i.nameProperty]}var i=this;Object.assign(i,{nameProperty:"name",$onInit:e,selectOption:t,getSelectedOptionName:n})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.FancyDropdownController=r;var o=i.NG_NAME="ewfFancyDropdown"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,i,o,u){n(t,i,u);var a=o[r+"DataTracking"];e.setupAutocomplete(i,u),e.setupAutocompleteItemTemplate(i,a)}function n(e,t,n){var i=e.$watch(function(){return n.getAvailableLocations()},function(e){if(e&&e.length){var n=e.map(function(e,t){return{label:e.name,value:e.name,object:e,index:t}});t.autocomplete("option",{source:n}),i()}},!0)}return{restrict:"A",require:"^^ewfCountry",link:t}}i.$inject=["fancyTypeaheadService"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfFancyTypeahead"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n){function i(){u||t.autocomplete("search","")}function o(){t.autocomplete("close"),u=!0,e(function(){u=!1},r)}var u=!1;t.autocomplete({select:function(){function e(e,t){var i=t.item;return n.onCountrySelect(i.object,i.index)}return e}(),source:n.getAvailableLocations(),minLength:0,position:{my:"left top-1",collision:"none",at:"left bottom"}}).on({focus:function(){function e(){return t.autocomplete("search","")}return e}(),click:i,autocompleteselect:o})}function n(e,t){e.autocomplete("instance")._renderItem=function(e,n){return i(e,n,t)}}function i(e,t,n){return angular.element("
  • ").append("\n \n \n '+t.label+"\n ").appendTo(e)}var r=100;return{setupAutocomplete:t,setupAutocompleteItemTemplate:n}}i.$inject=["$timeout"],t.__esModule=!0,t["default"]=i,i.NG_NAME="fancyTypeaheadService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1530),a=i(u),c=n(1531),s=i(c),l=n(1532),d=i(l),f="common.widgets.address.personalInformation",p=angular.module(f,[o["default"]||"common.utils"]);p.directive(s["default"].NG_NAME,s["default"]).directive(d["default"].NG_NAME,d["default"]).service(a["default"].NG_NAME,a["default"]),t.module=p,t["default"]=f},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(e,t){return a(t).then(function(n){return n.filter(function(n){return i(n,e,t)})})}function i(e,t,n){var i=e.issuingCountryCode;return o(e.businessPartyRoleTypeCode,t)&&r(i,n)}function r(e,t){return e.value===t}function o(e,t){return[u["default"].ANY,t].includes(e)}function a(e){return t.getSourceData(t.CI_KEYS.CI1452_TAX_IDS_AND_PII_DATA_LIST,e)}function s(e){return t.getSourceData(t.CI_KEYS.CI1453_ENABLE_TAX_FIELDS_FOR_BUSINESS_PRIVATE_CONTACTS,e)}function d(n){return e.all([t.getFormField(t.CI_KEYS.CI0606_SHIPPER_ADDRESS_TAXID,n),t.getFormField(t.CI_KEYS.CIF0120_VAT_TAX_ID,n),s(n)]).then(function(e){var t=e[0],n=e[1],i=e[2];return{fromVatTaxCifVisibility:t.visible,toVatTaxCifVisibility:n.visible,businessPrivateConfigurations:i}})}function p(e,t,n,i){if(!e||!t||!n)return!1;var r=t===f["default"].PRIVATE?"Private":"Business";return e.some(function(e){return e.businessPrivateContact===r&&o(e.businessPartyRoleTypeCode,n)&&e[i]})}function m(e,t){if(!e)return!1;var n=t!==u["default"].SHIPPER||e.fromVatTaxCifVisibility,i=t!==u["default"].RECEIVER||e.toVatTaxCifVisibility;return n&&i}function _(e){return![u["default"].SHIPPER,u["default"].RECEIVER].includes(e)}function g(n,i){return _(n)?e.when({visible:!0}):n===u["default"].SHIPPER?t.getFormField(t.CI_KEYS.CIF0359_SHIPPER_TAX_DOCUMENT_TYPE,i):t.getFormField(t.CI_KEYS.CIF0362_RECEIVER_TAX_DOCUMENT_TYPE,i)}function E(n,i){return _(n)?e.when([{visible:!0},{visible:!0}]):n===u["default"].SHIPPER?[t.getFormField(t.CI_KEYS.CIF0360_SHIPPER_USCI_CODE,i),t.getFormField(t.CI_KEYS.CIF0361_SHIPPER_CRN,i)]:[t.getFormField(t.CI_KEYS.CIF0363_RECEIVER_USCI_CODE,i),t.getFormField(t.CI_KEYS.CIF0364_RECEIVER_CRN,i)]}function S(t,n){return e.all(E(t,n))}function C(e,t,i,r){return n(e,t).then(function(n){return A(e,t,n,i)}).then(function(n){return h(n,e,t,r)})}function h(t,n,i,r){return e.all([s(i),g(n,i)].concat(E(n,i))).then(function(e){var i=e[0],o=e[1],u=e[2],a=e[3];return t.forEach(function(e){switch(e.type){case l["default"].USCI:var t=I(u,r);Object.assign(e,{isVisible:t});break;case l["default"].CRN:var c=I(a,r);Object.assign(e,{isVisible:c});break;default:;Object.assign(e,{isVisible:o.visible&&p(i,r,n,"enableTaxDocumentTypeDropdown")})}}),t})}function I(e,t){return e.visible&&t===f["default"].BUSINESS}function A(t,n,i,r){var o=[];return n===c["default"].CHINA&&D(i)&&o.push(y(t,n,b)),O(i)&&o.push(y(t,n,R)),e.all(o).then(function(e){return r.map(function(t){return v(t,e)})})}function v(e,t){return{type:e.identifierType,isMandatory:T(e,t),isProvided:N(e)}}function N(e){return!!e&&!!e.identifierValue}function T(e,t){var n=e.identifierType;if(!P(n)){var i=t.find(function(e){return angular.isDefined(e.isMandatory)});return!!i&&i.isMandatory}var r=t.find(function(e){return angular.isDefined(e[n.toLowerCase()])});return!!r&&r[n.toLowerCase()]}function M(e){return e&&e.every(function(e){return e.identifierValue})}function y(e,n,i){return t.getSourceData(t.CI_KEYS[i],n).then(function(t){return t.find(function(t){return t.businessPartyRoleTypeCode===e})})}function D(e){return e.some(function(e){return P(e.customerFacingCode.value)})}function O(e){return e.some(function(e){return!P(e.customerFacingCode.value)})}function P(e){return[l["default"].USCI,l["default"].CRN].includes(e)}var b="CI1456_LIST_TAX_USCI_CRN_MANDATORY_FOR_DUTIABLE_SHP",R="CI1455_LIST_TAX_DOC_TYPE_MANDATORY_FOR_DUTIABLE_SHP";return{getApplicablePersonalData:n,getTaxFieldsConfigurations:s,getPersonalInformationConfigs:S,getDropdownConfig:g,areMandatoryFieldsMissing:C,isDataProvided:M,getConfigByRole:y,hasChinaFields:P,isTaxFieldAvailable:p,getTaxFieldsConfigurationsWithVatTaxIdCifs:d,isAllowedByVatTaxIdCif:m}}r.$inject=["$q","configService"],t.__esModule=!0,t["default"]=r;var o=n(84),u=i(o),a=n(4),c=i(a),s=n(412),l=i(s),d=n(49),f=i(d);r.NG_NAME="personalInformationService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({templateUrl:"personal-information.html",controller:o,controllerAs:"personalInformationCtrl",bindings:{personalInformationList:"="+l,countryCode:"<"+l+"CountryCode",roleType:"<"+l+"RoleType",isRequired:"<"+l+"IsRequired",businessContactType:"<"+l+"BusinessContactType",fieldConfigs:"=N()))return T()>N()?void i.scrollToElement(A()):void(h.placeUnderLink=!0)}function a(){return n.getPopupVisibility(h.popupName)}function c(e){return n.setSlideIndex(h.popupName,e)}function s(){n.prev(h.popupName)}function l(){n.next(h.popupName)}function d(e,t,i){n.addSlide(h.popupName,e,t,i)}function f(){return n.getSlides(h.popupName)}function p(e){return e===n.getSlideIndex(h.popupName)}function m(t){h.placeUnderLink=v()=t.slides.length&&(t.slideIndex=0)}function n(e){var t=s[e];--t.slideIndex<0&&(t.slideIndex=t.slides.length-1)}function i(e,t,n,i){(function(){return!!s[e].slides.find(function(e){return e.index===i})})()||s[e].slides.push({index:i,title:t,content:n})}function r(e){return s[e].slideIndex}function o(e,t){s[e].slideIndex=t}function u(e){return!!s[e]&&s[e].visibility}function a(e,t){s[e].visibility=t}function c(e){return s[e].slides}var s={};return{next:t,prev:n,addSlide:i,generatePopup:e,getSlideIndex:r,setSlideIndex:o,getPopupVisibility:u,setPopupVisibility:a,getSlides:c}}t.__esModule=!0,t["default"]=i,i.NG_NAME="cqPopupService"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){i.init(n[u+"Id"],n[u+"Persist"])}return{controllerAs:"criticalAlertCtrl",controller:o["default"],scope:!0,link:{pre:e}}}t.__esModule=!0,t["default"]=i;var r=n(1547),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfCriticalAlert"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n){r.alertId=t,r.persist="close-persist"===n,e.init()}function n(){r.persist||e.closeAlertPersist(r.alertId),r.closed=!0}function i(){return e.isAlertVisible(r.alertId)&&!r.closed}var r=this;Object.assign(r,{alertId:"",persist:!1,closed:!1,init:t,closeAlert:n,isAlertVisible:i})}i.$inject=["criticalAlertService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";function t(){e.closedAlerts=e.closedAlerts||[]}function n(t){e.closedAlerts.push(t)}function i(t){return!e.closedAlerts.includes(t)}return{init:t,closeAlertPersist:n,isAlertVisible:i}}i.$inject=["$sessionStorage"],t.__esModule=!0,t["default"]=i,i.NG_NAME="criticalAlertService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"datePickerSwitcherCtrl",bindings:{model:"="+a,label:"<"+a+"Label",isOptional:"")[0];return i.setAttribute("id","file_uploader_frame_"+t),i.setAttribute("name","file_uploader_frame_"+t),i.style.display="none",n.body.appendChild(i),i}return{restrict:"A",controller:u["default"],controllerAs:"fileUploaderCtrl",scope:!0,link:t}}r.$inject=["$window"],t.__esModule=!0,t["default"]=r;var o=n(1553),u=i(o),a=n(118),c=i(a),s=r.NG_NAME="ewfFileUploader"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){T.errorsAdtCiConfig&&(o(),u(),a())}function o(){return i.getSourceData(i.CI_KEYS.CI0755_FILE_TYPES_ALLOWED_FOR_COMPANY_LOGO).then(function(e){P.fileFormat=e.map(function(e){return e.value}).join(", ")})}function u(){return i.getValue(i.CI_KEYS.CI0756_MAX_PIXELS_FOR_COMPANY_LOGO).then(function(e){var t=e.data.value;return P.pixelSize=t})}function a(){return i.getSourceData(i.CI_KEYS.CI0757_MAX_FILE_SIZE_FOR_COMPANY_LOGO).then(function(e){return P.fileSize=e})}function c(e){T.isMultiFileMode||(M.length=0),T.filesUploaded=!1,M.push.apply(M,I(e))}function s(e){O=e}function l(e){T.filesUploaded=!0,T.uploadStarted=!1,T.onUpload(e)}function d(e){T.uploadProgress=e}function f(){return M}function p(){M.length=0,T.uploadStarted=!1,T.filesUploaded=!1,T.uploadProgress=0}function m(){return f().length>0&&!T.filesUploaded}function _(e){T.filesUploaded=!1,T.uploadStarted=!0,O.formParams=e,(n.uploadAvailable()?n.uploadFiles(M,O):n.submitForm(O)).then(l,g,d)}function g(e){var t=E(e);T.filesUploaded=!1,T.uploadStarted=!1,T.onError(t)}function E(e){var t=S(e,y),n=S(e,D);T.errorsAdtCiConfig&&(t=t.map(C));var i=e&&e.fieldErrors;return h(i,t),{errors:t,errorDetails:n,fieldErrors:i}}function S(e,t){return e&&e[t]||[]}function C(n){return t(e.getTranslationSync(n),P)}function h(e,t){e&&Object.keys(e).forEach(function(n){t.push.apply(t,e[n])})}function I(e){return angular.isString(e)?A(e):T.isMultiFileMode?N(e):v(e)}function A(e){return[{name:e.replace(/^.*[\\\/]/,"")}]}function v(e){return[e[0]]}function N(e){return Array.from(e)}var T=this,M=[],y="errors",D="errorDetails",O=void 0;Object.assign(T,{filesUploaded:!1,uploadStarted:!1,uploadProgress:0,errorsAdtCiConfig:"",onFilesReadyToUpload:c,onFilesUploaded:l,onProgress:d,onUploadError:g,getFilesList:f,clearFilesList:p,canShowFileList:m,uploadFiles:_,onFormReady:s,preloadCIconfig:r});var P={fileFormat:"",pixelSize:"",fileSize:""}}i.$inject=["nlsService","replaceFilter","fileUploaderService","configService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{formActionUrl:"@"+a+"Url",buttonText:"@?"+a+"ButtonText",buttonClass:"@?"+a+"ButtonClass",maxFileSizeCi:"@?"+a+"MaxFileSizeCi",pixelSizeCi:"@?"+a+"PixelSizeCi",downloadUrl:"@?"+a+"DownloadUrl",maxAmountMessage:"@?"+a+"MaxAmountMessage",maxSizeMessage:"@?"+a+"MaxSizeMessage",fileFormatsCi:"@?"+a+"FormatsCi",fileSizeFormat:"@?"+a+"FileSizeFormat",fileFormatsSrc:"S.maxFileNumber}function f(e,t,n){S.errors=e,S.errorDetails=t&&t.length?t.reduce(function(e,t){return e[t.errorMessage]=t,e},{}):null,n()}function p(e){S.documents.splice(e,1),S.onDelete&&S.onDelete({$index:e})}function m(e){S.errors=null,S.errorDetails=null,e()}function _(e){return S.generateFileName?S.generateFileName({fileParameters:e}):e.fileName}function g(){var e,t=d();return S.buttonClass?(e={disabled:t},e[S.buttonClass]=!0,e):{disabled:t}}function E(e){return t.generateDownloadUrl(S.downloadUrl,e)}var S=this;Object.assign(S,{$onInit:i,handleAdditionalDocumentUploadSuccess:l,handleAdditionalDocumentUploadError:f,deleteAdditionalDocument:p,clearAdditionalDocumentUploadErrors:m,isMaxFileNumberExceeded:d,getFileName:_,getUploadButtonClasses:g,generateDownloadUrl:E})}i.$inject=["component"],r.$inject=["configService","fileUploaderService","fileSizeFilter"],t.__esModule=!0,t["default"]=i,t.FileUploaderWrapperController=r;var o=n(413),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfFileUploaderWrapper"},function(e,t,n){"use strict";function i(e,t,n,i,r,u,a){"ngInject";function c(n,i){var a=i.url,c=i.urlParameters,f=i.formParams,p=f===undefined?{}:f,m=e.defer(),_=new t.FormData;n.forEach(function(e,t){_.append("file"+t,e)}),Object.keys(p).forEach(function(e){_.append(e,p[e])});var g=d();return g.open("POST",""+a+c),l(g),g.onerror=function(e){return m.reject(e)},g.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total*100;m.notify(t.toFixed())}},!0),g.onload=function(e){var t=e.target,n=s(t.response);return t.status===o["default"].OK?(m.notify(I),m.resolve(n)):t.status===o["default"].UNAUTHORIZED?(r.log("HTTP 401: Session Expired - redirect to login page"),u.redirectToLogin(),m.reject({errors:["errors.common_msg_session-timeout"]})):(r.error(n),m.reject(A[t.status]||n))},g.send(_),m.promise}function s(e){var t={errors:[]};try{t=angular.fromJson(e)}catch(n){e.length&&t.errors.push(e)}return t}function l(e){var t=a.get(i.defaults.xsrfCookieName);return t&&e.setRequestHeader(i.defaults.xsrfHeaderName,t),e}function d(){var e=void 0;if(t.XMLHttpRequest)e=new t.XMLHttpRequest;else if(t.ActiveXObject)try{e=new t.ActiveXObject("MSXML2.XMLHttp.3.0")}catch(n){e=new t.ActiveXObject("Microsoft.XMLHTTP")}return e}function f(){return!!t.FormData}function p(t){function i(){var e=m(this);if(e){if(r.notify(I),e.hasOwnProperty("errors"))return void r.reject(e);r.resolve(e)}}var r=e.defer(),o=angular.element(t.frame);return o.on("load",i),o.on("error",function(e){return r.reject(e)}),t.form.submit(),n(function(){r.notify(h)},0),r.promise}function m(e){try{if(_(e))return null}catch(i){return null}var t=e.contentDocument||e.contentWindow.document,n=t.body.textContent||g(t.body.innerHTML);return angular.fromJson(n)}function _(e){return e.contentDocument&&e.contentDocument.body&&"false"===e.contentDocument.body.innerHTML}function g(e){var t=/(\{.*})/.exec(e);return t&&t[0]||null}function E(e,t){var n=encodeURIComponent(t.fileName);return""+e+t.key+"?filename="+n+"&retentionType="+t.fileRetentionType}var S,C={uploadFiles:c,uploadAvailable:f,submitForm:p,generateDownloadUrl:E},h=37,I=100,A=(S={},S[o["default"].PAYLOAD_TOO_LARGE]={errors:["errors.common_msg_file-size-limit-exceeded"]},S);return C}i.$inject=["$q","$window","$timeout","$http","logService","sessionExpiredService","cookiesService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="fileUploaderService"},function(e,t,n){"use strict";function i(){"ngInject";function e(e,t){function n(){t.find("input[type=file]").val(""),t.addClass("file-uploader__drag-n-drop-holder_on-hover")}function i(){t.removeClass("file-uploader__drag-n-drop-holder_on-hover")}t.bind("dragover",n),t.bind("dragenter",n),t.bind("dragend",i),t.bind("dragleave",i),t.bind("drop",i)}return{restrict:"A",scope:!1,link:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfFileUploaderDragAndDrop"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){i.init()}return{restrict:"A",controller:o["default"],controllerAs:"globalModalCtrl",link:e}}t.__esModule=!0,t["default"]=i;var r=n(1558),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfGlobalModal"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){var r=n.getParamFromUrl(o["default"].MODAL_MESSAGE_ID),a=u[r];a&&i.checkCurrentGroupIsAuthorized()["catch"](function(){return t.showDialog({scope:e,templateUrl:a})})}var u={creditStop:"/templates/modals/creditStop.html"},a=this;Object.assign(a,{init:r})}i.$inject=["$scope","modalService","pathService","userGroupsService"],t.__esModule=!0,t["default"]=i;var r=n(1),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"langselectorCtrl",templateUrl:"common/widgets/langselector/langselector.html",link:function(){function e(e,t,n,i){i.init()}return e}()}}t.__esModule=!0,t["default"]=i;var r=n(1560),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfLangselector"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){var e=n.getCountryLang(),i=e.countryId,r=e.langId,u=n.getPath();t.loadAvailableLanguages(u,i).then(function(e){o.availableLangs=e,o.currentLang=e.find(function(e){return e.id===r})})}function r(){var t=n.getCountryLang(),i=t.langId,r=o.currentLang;i!==r.id&&e.changeLang(r.id)}var o=this;Object.assign(o,{init:i,langChanged:r})}i.$inject=["manageCountryAndLanguageService","langselectorService","pathService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n,i){var r=n;return n.includes(".html")&&(r=n.substring(0,n.indexOf(".html"))),e.get("/services/dhl/nls/pagelangs?pagepath="+r+"&country="+i).then(function(e){return e.data})["catch"](function(e){var n=e.data;return t.reject(n)})}return{loadAvailableLanguages:n}}i.$inject=["$http","$q"],t.__esModule=!0,t["default"]=i,i.NG_NAME="langselectorService"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:a["default"],controllerAs:"leavePagePopupCtrl",link:o}}function r(){return{canLeavePage:!1}}function o(e,t,n,i){var o=e.$eval(n[c]),u=angular.isFunction(o)?o:r,a=n[c+"MessageKey"],s=a?e.$eval(a):"";i.init(u,s)}t.__esModule=!0,t["default"]=i;var u=n(1563),a=function(e){return e&&e.__esModule?e:{"default":e}}(u),c=i.NG_NAME="ewfLeavePagePopup"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t,n){Object.assign(c,{leavePageCallback:t}),s=n||i.COMMON.COMMON_MSG_CONFIRM_LEAVE_PAGE,e.on("click","a",o)}function o(e){var i=angular.element(e.currentTarget);if(!(i.hasClass("ie8-typeahead-link")||i.parents(".visualCaptcha-possibilities").length||n.isLightbox(e.currentTarget))){c.leavePageCallback().canLeavePage||t.handleUserLeavingPage(e,u)}}function u(){return n.showConfirmationDialog({message:s,okButtonLabel:i.COMMON.COMMON_BUTTON_YES,cancelButtonLabel:i.COMMON.COMMON_BUTTON_NO})}var a=this,c={},s=void 0;Object.assign(a,{init:r})}i.$inject=["$document","navigationService","modalService","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"locationSelectorCtrl",link:function(){function e(e,t,n,i){i.init(JSON.parse(n[u]))}return e}()}}t.__esModule=!0,t["default"]=i;var r=n(1565),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfLocationSelector"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(r){p.countries=r,p.currentLocation=n.getStoredCountry();var c=r.find(function(e){return e.code===p.currentLocation});if(p.searchKeyword=c&&c.name,p.currentLocation&&d().then(function(){e[u["default"].LOGGED_IN_AT_LEAST_ONCE]&&c.newLook&&!i.isAuthorized()?t.redirectToLogin(p.currentLocation,p.defaultLanguage):t.redirectToCountryUrl(c.url)}),p.locationForm){var s=p.locationForm.searchKeyword;s.$parsers.unshift(o),s.$parsers.push(a)}}function o(e){var t=e||c["default"];return p.locationForm.searchKeyword.$viewValue=t,t}function a(e){return e===c["default"]?"":e}function s(){p.currentLocation&&(n.saveCountry({code2:p.currentLocation}),t.redirectToCountryUrl(p.url))}function l(e){p.currentLocation=e.code,p.searchKeyword=e.name,p.url=e.url,n.saveCountry({code2:p.currentLocation}),d()}function d(){return n.getDefaultLanguage(p.currentLocation).then(function(e){p.defaultLanguage=e})}function f(e){if(!e||!e.trim())return p.countries;var t=e.toLowerCase();return p.countries.filter(function(e){return e.name.toLowerCase().startsWith(t)})}var p=this;Object.assign(p,{locationForm:null,currentLocation:null,defaultLanguage:null,searchKeyword:null,init:r,saveLocation:s,selectLocation:l,searchLocations:f})}r.$inject=["$localStorage","navigationService","locationDefaultCountryService","userService"],t.__esModule=!0,t["default"]=r;var o=n(19),u=i(o),a=n(256),c=i(a)},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{model:"<"+c,maxAmount:"<"+c+"MaxAmount",phoneRequired:"g.maxAmount&&(g.model[e]=null)}))}function t(e){return+e.substr(-1)||0}function n(e){return(g.phoneRequired||!!m()&&p())&&e===_()}function i(){return!g.addButtonHidden&&d().length1}function o(e){return e.$invalid||c()||!!g.isDisabled}function c(){return Object.values(f()).some(function(e){return e&&!e.phone})}function s(){var e=d().length+1;g.model[E+e]={}}function l(){g.model[E+d().length]=null,g.onRemove&&g.onRemove()}function d(){return Object.keys(g.model).filter(function(e){return e.startsWith(E)&&g.model[e]})}function f(){return d().reduce(function(e,t){var n;return Object.assign(e,(n={},n[t]=g.model[t],n))},{})}function p(){return!d().find(function(e){return g.model[e].phoneType!==u["default"].FAX&&g.model[e].phone})}function m(){return d().find(function(e){return g.model[e].phoneType===u["default"].FAX})}function _(){var e=d().find(function(e){return g.model[e].phoneType!==u["default"].FAX});if(!e)return 0;var n=t(e);return n>0?n-1:0}var g=this,E="phoneDetails";Object.assign(g,{isPhoneRequired:n,isAddButtonVisible:i,isRemoveButtonVisible:r,isAddButtonDisabled:o,addPhone:s,removePhone:l,getPhoneDetailsList:f,$doCheck:e})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.MultiPhoneController=r;var o=n(96),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=n(405),c=i.NG_NAME="ewfMultiPhone"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{model:"<"+a,form:"<"+a+"Form"},controller:r,controllerAs:"multiPhoneValidationErrorCtrl",templateUrl:"common/widgets/phone/multi-phone-validation-error-template.html"})}function r(){function e(){n.onlyFaxSelected=Object.keys(n.model).filter(function(e){return e.startsWith(i)}).filter(function(e){return!!n.model[e]}).every(function(e){return n.model[e].phoneType===u["default"].FAX}),t()}function t(){n.form.$setValidity("only-fax-selected",!n.onlyFaxSelected)}var n=this,i="phoneDetails";Object.assign(n,{onlyFaxSelected:!1,$doCheck:e})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.MultiPhoneValidationErrorController=r;var o=n(96),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfMultiPhoneValidationError"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"paymentTypeListCtrl",templateUrl:"dhl-payment-type-list.html",link:function(){function e(e,t,n,i){var r=n[u+"Background"];i.init(r)}return e}()}}t.__esModule=!0,t["default"]=i;var r=n(1569),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfPaymentTypeList"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){e.fetchOnlinePaymentOptions(t).then(function(e){var t=e.filter(function(e){return e.paymentProductLogo.content}),n=t.every(function(e){var t=e.sortingOrder;return angular.isDefined(t)});r.paymentTypeList=n?t.sort(function(e,t){return e.sortingOrder-t.sortingOrder}):t})}function i(e){var n=e.mimeType,i=e.content;return t.toBase64String(n,i)}var r=this;Object.assign(r,{init:n,generateBase64Image:i,paymentTypeList:null})}i.$inject=["paymentResource","base64Service"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"phoneCtrl",bindings:{phone:"<"+a,address:"="+a+"Address",phoneRequired:"e}function u(e){return e.replace(/\D/g,"")}function a(){return e.getPhoneMaskByCountryCode(c.countryBanner,null,"?9").then(function(e){return c.phoneMask=e})}var c=this;Object.assign(c,{$onChanges:t,phoneMaxLengthAlertVisible:!1,originalPhoneNumber:""})}i.$inject=["component"],r.$inject=["phoneFormatService"],t.__esModule=!0,t["default"]=i,t.PhoneMaxLengthAlertController=r;var o=i.NG_NAME="ewfPhoneMaxLengthAlert"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{phone:"<"+o,phoneInput:"<"+o+"Input"},controller:r,controllerAs:"phoneInvalidAlertCtrl",templateUrl:"common/widgets/phone-code/phone-invalid-alert.html"})}function r(){"ngInject";function e(e){e.phone&&(n.originalPhone=n.phone)}function t(){return!!(n.originalPhone&&n.originalPhone.length&&n.phoneInput&&n.phoneInput.$invalid&&n.phoneInput.$pristine)}var n=this;Object.assign(n,{phoneInvalidAlertVisible:t,$onChanges:e})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.PhoneInvalidAlertController=r;var o=i.NG_NAME="ewfPhoneInvalidAlert"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{model:"="+o,onSelect:"&?"+o+"OnSelect",onPostalCodeBlur:"&?"+o+"OnBlur",countryCode:"<"+o+"CountryCode",countryDivisionName:"<"+o+"CountryDivisionName",searchAddressBook:"=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function r(e,t,n,r){"ngInject";function u(e){var t=s([[c.FIELD_NAMES.NAME,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_CONTACT_NAME],[c.FIELD_NAMES.NICK_NAME,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_NICKNAME],[c.FIELD_NAMES.COMPANY,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_COMPANY_NAME],[c.FIELD_NAMES.ADDRESS1,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDRESS],[c.FIELD_NAMES.ADDRESS2,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDRESS_2],[c.FIELD_NAMES.ADDRESS3,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDRESS_3],[c.FIELD_NAMES.CITY,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_CITY],[c.FIELD_NAMES.POSTAL_CODE,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ZIP],[c.FIELD_NAMES.SUB_URB,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_SUBURB],[c.FIELD_NAMES.STATE_PROVINCE,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_STATE_PROVINCE],[c.FIELD_NAMES.COUNTRY,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_COUNTRY],[c.FIELD_NAMES.EMAIL_ADDRESS,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_EMAIL_ADDRESS],[c.FIELD_NAMES.PHONE,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_PHONE],[c.FIELD_NAMES.VAY_TAX_ID,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_VAT],[c.FIELD_NAMES.MATCH_CODE,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_MATCH_CODE],[c.FIELD_NAMES.ADDITIONAL_NOTES,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDITIONAL_NOTES],[c.FIELD_NAMES.REFERENCE_NAME,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_SHIPPING_REFERENCE]]);if(e){var n=t.find(function(e){return e.name===c.FIELD_NAMES.COUNTRY});t.splice(t.indexOf(n),1)}return t}function s(e){return e.map(l)}function l(e){return{name:e[0],caption:e[1]}}function d(t){return e.get(t,{preventNotFoundInterceptor:!0}).then(function(e){return e.data})}function f(e,r,o){var u=o.isGlobalMail?{collection:a["default"].GLOBAL_MAIL}:o.collection;p(e,"id",u&&u.id),p(e,"collection",u&&u.collection),e.sortingParameters=e.sortingParameters||[],n.addPredefinedSortingParam(e,o.searchPriority);var c=e.sortingParameters,s=i(e,["sortingParameters"]),l=r.join("/"),d=t.getParamsString(s),f=n.getSortingParameters({sortingParameters:c},!0);return"/api/addressbook/contact/search/"+l+d+n.getSortingParamsString(f)}function p(e,t,n){n&&(e[t]=n)}function m(e,t,n){return t?e.filter(function(e){return(n?e.data:e).countryCode!==t}):e}function _(e,t,n){if(!e.length)return[];var i=e.filter(function(e){return!e.data||!e.data.globalMailContact}),o=e.filter(function(e){return e.data&&e.data.globalMailContact});return[].concat(g(i,n,t?r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_FROM_ADDRESS_BOOK:r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_FROM_FAVORITES),g(o,n,r.ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_FROM_GLOBAL_MAIL))}function g(e,t,n){if(!e.length)return[];var i=e.map(function(e){return E(e,n,t)});return i[0].firstInGroup=!0,i}function E(e,t,n){return o({name:e.line1,line1:e.line1,line2:e.line2,line3:e.line3},S(e,n),{group:t,key:e.data.key,data:e.data})}function S(e,t){var n="",i="";if(e.matchedParameter){var r=Object.keys(e.matchedParameter);if(i=r[0]){var o=t.find(function(e){return e.name===i});n=o?o.caption+" : ":""}i=e.matchedParameter[i]||""}return{line4:n,line5:i}}return{getGeneratedSearchFields:u,searchByUrl:d,getSearchUrl:f,filterSearchResultsByCountry:m,mapTypeaheadResults:_}}r.$inject=["$http","queryParamsService","sortingParametersService","Messages"],t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1}function d(){return!t.splitPath().path.includes(o["default"].SSO)}var f=this;Object.assign(f,{additionalAgreementItems:n(),checkedAll:c(),getAgreementDescription:i,getAgreementDetailedDescription:r,toggleSelectionForAll:u,checkIfAllAgreementsAreSelected:s,isSelectAllVisible:l,isDeclineAllowed:d})}i.$inject=["additionalAgreementItems","pathService"],t.__esModule=!0,t["default"]=i;var r=n(1),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return e.getValue(e.CI_KEYS.CI1316_DATA_PRIVACY_DATA_PROTECTION_CONSENT_LIST).then(function(e){return e.data.value.map(function(e){return{visibility:e.visibility,mandatority:e.mandatority,positionNumber:e.positionNumber,code:e.code.value,description:e.description.value,type:e.type.value,nls:e.code.nls}})})}function i(){return e.getSourceData(e.CI_KEYS.CI1315_DATA_PRIVACY_DATA_PROTECTION_DISPLAY_SCREENS).then(function(e){return e.map(function(e){return e.value})})}function r(e,n){return t.postElement(e,n)}return{getDataPrivacyDataProtectionConsentList:n,getDataPrivacyDataProtectionDisplayScreens:i,storeUserAgreements:r}}i.$inject=["configService","crudService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="additionalAgreementsResource"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{contactDetails:"<"+r+"Details",formHeader:"@?"+r+"Header"},controllerAs:"contactPreviewCtrl",templateUrl:"contact-preview.html"})}i.$inject=["component"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfContactPreview"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{locationValidFlag:"<"+o+"LocationValidFlag",countryCode:"<"+o+"CountryCode",isAddressPending:"S&&(_.newItemsLength=C),!_.showOnTop||!_.newItemsLength)return void(_.isShownOnBottom=!0);d()})}}function c(e){var t=angular.element(e),n=t.find(".is-open");A=t.find(".visible-not-active-imp-info-item").length;for(var i=0;i\n '+o.DASHBOARD.IMPORTANT_INFO_BANNER_BUTTON_SHOW_ALL+"\n ":"",n='
    \n '+I+"\n "+t+"\n
    ";i.showDialog({template:n,controller:a["default"],controllerAs:"importantInfoAccordionDateCtrl"})}}var _=this,g=5e3,E=1e3,S=9,C="9+",h=[],I=void 0,A=void 0;Object.assign(_,{$onInit:u,toggleBanner:f,showImportantInfo:p})}r.$inject=["component"],o.$inject=["$timeout","$http","cookiesService","modalService","navigationService","Messages"],t.__esModule=!0,t["default"]=r,t.ImportantInfoBannerCtrl=o;var u=n(906),a=i(u),c=n(14),s=i(c),l=r.NG_NAME="ewfImportantInfoBanner"},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t,r,a){var c=e.getBoundingClientRect().bottom,s=i(r),l=i(t),d=t.offsetHeight,f=l-c,p=(s-c-d)/2-f,m=angular.element(t);n(a,p,m),m.css(o,u)}function n(e,t,n){if(e&&t0&&n.children().css(r,t)}function i(t){return t.getBoundingClientRect().top+(e.pageYOffset||0)}var r="margin-top",o="visibility",u="visible",a=62;return{defineHomeTopContentPosition:t}}i.$inject=["$window"],t.__esModule=!0,t["default"]=i,i.NG_NAME="homeTopContentService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n){n.on("click",function(){return e.print()})}return{restrict:"A",link:t}}i.$inject=["$window"],t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfPrintPage"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"common/widgets/default-address-to-business-address/default-address-to-business-address-template.html",controllerAs:"defaultAddressToBusinessAddressCtrl",bindings:{model:"="+r,label:"<"+r+"Label",isDisabled:"e?_.maxScrolled:Math.min(e,N)}function m(e,t){e.addClass("show"),s(e),t&&e.hasClass(h.substr(1))&&(_.movingDotPosition=t+E+"px")}var _=this,g=0,E=33,S=42,C=25+S,h=".journey-step",I=[],A=void 0,v=void 0,N=void 0,T=void 0;Object.assign(_,{init:u,getScrollPosition:a,getLineStyle:f,movingDotPosition:"59px",maxScrolled:0})}i.$inject=["$window","$element","$sniffer","$scope","analyticsService","anchorScrollService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){"ngInject";function e(e,n){var i=e.$watch(function(){return n.is(":visible")},function(e){e&&(t(n),i())})}function t(e){var t=e.find(u);if(t.length){var i=e.width()/2;if(e.height()>=i)return t.width(i),void t.height(i);n(e,t,i)}}function n(e,t,n){for(var u=o,a=t.height(),c=e.height(),s=Math.abs(n-a)/r,l=0;l0}function o(){return c.ewfFormCtrl.fieldErrors[c.fieldName]||[]}function u(t){s=function(){return e.$eval(t)}}function a(){(s||angular.noop)()}var c=this,s=void 0;Object.assign(c,{fieldController:null,fieldName:null,errorMessages:[],ewfFormCtrl:null,onDisplayServerErrors:n,getErrorMessages:o,initClickHandler:u,handleClick:a}),e.$on("ewfForm.displayServerErrors",c.onDisplayServerErrors)}i.$inject=["$scope","logService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(1635),a=i(u),c=angular.module("common.form.fieldWarnings",[o["default"]||"common.utils"]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="common.form.fieldWarnings"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n,i,r){var o=r[0],a=r[1],c=r[2],s=void 0;i[u]?s=i[u]:a&&(s=a.name.includes(".")?a.name.split(".")[1]:a.name),s||e.error("No field name found on element: "+n),c.init(o,s)}return{restrict:"A",priority:1,scope:!0,require:["^ewfForm","?^ewfField",u],controller:o["default"],controllerAs:"fieldWarningsCtrl",templateUrl:"common/form/field-warnings/field-warnings.html",link:{pre:t}}}i.$inject=["logService"],t.__esModule=!0,t["default"]=i;var r=n(1636),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfFieldWarnings"},function(e,t,n){"use strict";function i(){function e(e,t){Object.assign(i,{ewfFormCtrl:e,fieldName:t})}function t(){return i.ewfFormCtrl.fieldWarnings[i.fieldName]||[]}function n(){return t().length>0}var i=this;Object.assign(i,{ewfFormCtrl:null,fieldName:"",errorMessages:[],init:e,getWarningMessages:t,isWarningsVisible:n})}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(1638),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("common.form.formErrors",[]);o.directive(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="common.form.formErrors"},function(e,t,n){"use strict";function i(){return{restrict:"A",priority:1,scope:!0,require:["^ewfForm",u],controller:o["default"],controllerAs:"formErrorsCtrl",templateUrl:"common/form/form-errors/form-errors.html",link:function(){function e(e,t,n,i){var r=i[0];i[1].formCtrl=r}return e}()}}t.__esModule=!0,t["default"]=i;var r=n(1639),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfFormErrors"},function(e,t,n){"use strict";function i(){var e=this;e.errorMessages=[],e.formCtrl=null}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return(g.ewfFormCtrl.fieldErrors[g.fieldName]||[]).filter(function(e){return e.error})}function i(){return u().filter(function(e,t,n){return"ewfValid"!==e&&!!r(e)&&n.indexOf(e)===t}).map(r)}function r(t){return e[t]||g.customErrorMessages[t]}function u(){return g.ewfFieldCtrl.getNgModelFieldErrors()}function a(){return g.ewfcFieldCtrl?g.ewfcFieldCtrl.errorParams:{}}function c(){var e=n(),t=i().map(function(e){return{error:e,errorParams:a()}}),r=s(e,t),o=l(r);return angular.equals(E,o)||(E.length=0,E.push.apply(E,o)),E}function s(e,n){var i=[].concat(e,n);return g.translateBeforeFilter&&i.forEach(function(e){return e.error=t.translate(e.error)}),i}function l(e){return e.filter(function(t,n){return e.findIndex(function(e){return e.error===t.error})===n})}function d(){return!!n().length||!!i().length}function f(){return!!n().length||i().some(p)}function p(e){return e!==o["default"].PENDING_VALIDATION_KEYS&&angular.isDefined(e)}function m(e){g.cssClasses=e}function _(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];g.customErrorMessages=e}var g=this;Object.assign(g,{cssClasses:[],customErrorMessages:{},setCssClasses:m,setCustomErrorMessages:_,getAllErrors:c,isErrorsVisible:d,areErrorsVisibleAndReady:f});var E=[]}i.$inject=["validationMessages","nlsService"],t.__esModule=!0,t["default"]=i;var r=n(231),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined,n(897);var r=n(0),o=i(r),u=n(1642),a=i(u),c=n(1644),s=i(c),l="authorization.common.visualCaptcha",d=angular.module(l,["visualCaptcha",o["default"]]);d.directive(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]),t.module=d,t["default"]=l},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{captcha:"="+a,isConfigNeeded:"ANSWER";Object.assign(_,{$onInit:o,$onChanges:a})}i.$inject=["component"],r.$inject=["$scope","$sniffer","$element","visualCaptchaService","Messages"],t.__esModule=!0,t["default"]=i,t.VisualCaptchaController=r;var o=n(1643),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfVisualCaptcha",c=0},function(e,t,n){"use strict";t.__esModule=!0;var i="/etc/clientlibs/dhl/global/public/";t["default"]={IMG_PATH:i+"img/",JS_LIB_PATH:i+"js/lib/"}},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){var n=arguments.length<=1||arguments[1]===undefined||arguments[1];return e.all([o(n),a(t)])}function o(t){return t?n.getBoolean(n.CI_KEYS.CI0647_ENABLE_CAPTCHA).then(function(t){return t||e.reject()}).then(u):u()}function u(){return t.get("/api/visualcaptcha/options-count").then(function(e){return+e.data})}function a(t){return t?e.when(!0):n.getBoolean(n.CI_KEYS.CI1443_ENABLE_VOICE_MODULE_FOR_CAPTCHA)}function c(e){return i.prependCountryCodePrefix(e)}return{getCaptchaConfig:r,prependCountryCodePrefix:c}}i.$inject=["$q","$http","configService","countryCodePrefixService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="visualCaptchaService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(1646),o=i(r),u=n(1648),a=i(u),c=n(1649),s=i(c),l=n(1650),d=i(l),f=n(1651),p=i(f),m=n(2),_=i(m),g=angular.module("common.form.container",[_["default"]||"common.utils"]);g.directive(o["default"].NG_NAME,o["default"]).directive(p["default"].NG_NAME,p["default"]).service(a["default"].NG_NAME,a["default"]).service(s["default"].NG_NAME,s["default"]).service(d["default"].NG_NAME,d["default"]),t.module=g,t["default"]="common.form.container"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,i,r,o){var c=o[0],s=o[1],l=o[2];i.parents(".lightbox").length&&e.focusWithDelay(i.find(u.FOCUSABLE_ELEMENTS_SELECTOR)[0]);var d=r[a+"ThankYouMessage"],f=t.$eval(r[a+"Callback"]),p={emailsTo:n(i,"emailsTo"),emailsCC:n(i,"emailsCC"),emailsBCC:n(i,"emailsBCC"),emailFrom:n(i,"emailFrom"),subject:n(i,"subject"),fieldSeparator:n(i,"fieldSeparator")},m=!!r[a+"IsClearOnSubmit"],_={thankYouMessage:d,hiddenFields:p,callback:f,isClearOnSubmit:m,ewfModalCtrl:s,formCtrl:l};c.init(_)}function n(e,t){var n=e.find('[name="'+t+'"]');return n.length?n[0].value:""}return{restrict:"A",require:[a,"^^?ewfModal","form"],controller:o["default"],controllerAs:"formContainerCtrl",scope:!0,link:t}}i.$inject=["delayedFocusService"],t.__esModule=!0,t["default"]=i;var r=n(1647),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=n(908),a=i.NG_NAME="ewfFormContainer"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){return w.fields[e].isRequired||a(e)||w.fields[e].uploadStatus===o["default"].SUCCESS}function u(e){return i.getAcceptableExtensions(w.fields[e].extensions)}function a(e){return d(e)||w.fields[e].uploadStatus===o["default"].ERROR}function c(e,t,n,i){return a(e)?n:w.fields[e].uploadStatus===o["default"].SUCCESS?t:i}function s(e,t,n,i){E(e,t),_(i,[],n)}function l(e){return w.fields[e]?w.fields[e].files:[]}function d(e){return i.hasErrors(w.fields[e].errors)}function f(e,t,n,r){w.fields[e]=i.setInitUploaderState(e,t,n,r)}function p(e,t,n){var i,r=arguments.length<=3||arguments[3]===undefined?[]:arguments[3];w.fields[t].uploadStatus=o["default"].SUCCESS,m(e,n),(i=w.fields[t].files).push.apply(i,e),_(t,r,n)}function m(e,t){i.removeItemFromUploadQueue(e,t)}function _(e,t,n){w.fields[e].errors={};var i=g(e,t,n),r=i[0],o=i[1],u=i[2];return!r&&!o&&u}function g(e,t,n){return i.getFilesValidity(w.fields[e],t,n,w.maxFilesSize)}function E(e,t){i.deleteItemFromList(e,t)}function S(e,t){w.fields[t].uploadStatus=o["default"].ERROR,w.errors=e}function C(e){w.thankYouMessage=e.thankYouMessage,w.hiddenFields=e.hiddenFields,w.callback=e.callback,w.ewfModalCtrl=e.ewfModalCtrl,w.formCtrl=e.formCtrl,w.isClearOnSubmit=e.isClearOnSubmit,i.getMaxFilesSize().then(function(e){return w.maxFilesSize=1024*e*1024})}function h(e,t){w.fields[e]=t}function I(){if(!A().some(Boolean)){var e=t.prepareFormProperties(w.fields,j),n=t.prepareDocuments(w.fields,j),i=Object.assign({},{captchaData:w.captcha&&w.captcha.getCaptchaData()},w.hiddenFields,{formProperties:e,documents:n});t.submit(i).then(v)["catch"](N)["finally"](O)}}function A(){return i.validateFilesBeforeSubmit(w.fields,w.maxFilesSize)}function v(){if(w.thankYouMessage){var e={thankYouMessage:w.thankYouMessage,parentModalCtrl:w.ewfModalCtrl};n.showThankYouDialog(e)}w.callback&&w.callback(),w.isClearOnSubmit&&D()}function N(e){w.errors=e}function T(e,t){w.fields[e]=undefined,k.push(t)}function M(e,t){w.fields[e]=undefined,j[e]=t}function y(){D(),O()}function D(){w.errors=undefined,t.clearForm(w.formCtrl,e,k,w.fields)}function O(){w.captcha&&w.captcha.refresh()}function P(e,t){w.fields[e]=b(e,t)}function b(e,t){var n=angular.isArray(w.fields[e])?w.fields[e]:[];return n.some(function(e){return angular.equals(e,t)})?n.filter(function(e){return!angular.equals(e,t)}):[].concat(n,[t])}function R(e,t){return angular.equals(w.fields[e],t)}function L(e,t){var n=w.fields[e];return angular.isArray(n)&&n.some(function(e){return angular.equals(e,t)})}function G(t,n){e.find("#"+t+" ~ .fancy-form-input input."+n+"__input").first().focus()}function U(e){var t=w.fields[e];return angular.isArray(t)?F(t):""}function F(e){return e.map(function(e){return e.name}).join(", ")}var w=this,k=[],j={};Object.assign(w,{captcha:null,fields:{},thankYouMessage:"",hiddenFields:{},uploadStatuses:o["default"],init:C,setValue:h,submit:I,clearFormAndRefreshCaptcha:y,toggleSelection:P,isSelectedInDropdown:R,isSelectedInCollection:L,formatCollection:U,initDropdown:T,initDatepicker:M,focusFirstOption:G,initFileUpload:f,onUpload:p,onError:S,deleteFile:s,getFieldFiles:l,isFilesCanBeUploaded:_,hasErrors:d,setStatus:c,getAcceptableExtensions:u,isValidationCheckVisible:r})}i.$inject=["$element","formContainerService","thankYouMessageService","formFileUploadService"],t.__esModule=!0,t["default"]=i;var r=n(928),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e,t){var n={};return Object.entries(e).filter(function(e){var t=e[1];return angular.isDefined(t)}).map(function(e){var n,i=e[0],r=e[1];return n={},n[i]=u(i,r,t),n}).forEach(function(e){return Object.assign(n,e)}),n}function r(e){return Object.values(e).map(d).filter(Boolean).reduce(function(e,t){return[].concat(e,t)},[])}function o(e){return e.replace(/[&<>"']/g,"")}function u(e,n,i){return angular.isDate(n)?t.getFormattedDate(n,i[e]):angular.isArray(n)?n.map(function(e){return e.code}).join(", "):angular.isObject(n)?n.code:angular.isString(n)?o(n):n}function a(t){return e.post("/api/contactUs/send",t)}function c(e,t,n,i){e.$setPristine(),t.removeClass("ewfc-submitted"),n.forEach(function(e){return e()}),Object.keys(i).forEach(function(e){t.find("#"+e).removeClass("ng-blur ewfc-highlighted ng-valid-pending-validation"),i[e]=s(i,e)})}function s(e,t){return angular.isArray(e[t])?[]:l(e[t])?n.setInitUploaderState(t):undefined}function l(e){return angular.isObject(e)&&e.files}function d(e){if(l(e))return e.files}return{prepareFormProperties:i,prepareDocuments:r,submit:a,clearForm:c}}i.$inject=["$http","dateTimeService","formFileUploadService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="formContainerService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(){return e.getSourceData(e.CI_KEYS.CI1031_MAX_DOCUMENT_UPLOAD_SIZE,h)}function i(e){return e.split(",").map(function(e){return u["default"][e]||"."+e}).join()}function r(e,t){var n=[];return Object.values(e).forEach(function(e){if(e&&e.files){var i=g(e,[],[],t);n.push(i[3])}}),n}function o(e,t){t.splice(e,1)}function a(e,t){e.forEach(function(e){o(t.findIndex(function(t){return t.name===e.fileName}),t)})}function s(e){var t=Object.values(e);return!!t.length&&t.every(Boolean)}function d(e,n){return t.checkMinCount(e,n)}function f(e,n){return t.checkMaxCount(e,n)}function p(e,n,i){return t.getFilesTotalCount(e,n,i)}function m(e,n,i,r){return t.checkFilesSize(e,n,i,r)}function _(e,n,i,r){return t.checkFormatValidity(e,n,i,r)}function g(e,t,n,i){var r=e.files,o=p(t,r,n),u=f(o,e.maxFilesCount),a=d(o,e.isRequired),c=m(t,r,n,i),s=_(t,r,n,e.extensions);return E(e.errors,u,c,s,a),[u,c,s,a]}function E(e,t,n,i,r){t&&(e.maxFiles=!0),n&&(e.maxSize=!0),i||(e.format=!0),r&&(e.required=!0)}function S(e,t,n,i){if(C[e])return angular.copy(C[e]);var r={files:[],errors:{},isRequired:t,extensions:n,fieldId:e,maxFilesCount:i,uploadStatus:c["default"].NONE};return C[e]=angular.copy(r),r}var C={},h=l["default"].ANDORRA;return{getMaxFilesSize:n,getAcceptableExtensions:i,validateFilesBeforeSubmit:r,deleteItemFromList:o,removeItemFromUploadQueue:a,hasErrors:s,getFilesValidity:g,setInitUploaderState:S}}r.$inject=["configService","formFileUploadValidationService"],t.__esModule=!0,t["default"]=r;var o=n(413),u=i(o),a=n(928),c=i(a),s=n(4),l=i(s);r.NG_NAME="formFileUploadService"},function(e,t,n){"use strict";function i(){"ngInject";function e(e,t){return et}function n(e,t,n){return e.length+t.length+n.length}function i(e,t,n,i){return r(e)+r(t)+r(n)>i}function r(e){return Array.from(e).reduce(function(e,t){return e+(t.fileSizeRaw||t.size)},0)}function o(e,t,n,i){return u(e,i)&&u(t,i)&&u(n,i)}function u(e,t){return Array.from(e).every(function(e){return t.includes(a(e))})}function a(e){var t=e.name||e.fileName,n=t.split(".");return n[n.length-1]}var c=1;return{checkMinCount:e,checkMaxCount:t,getFilesTotalCount:n,checkFilesSize:i,checkFormatValidity:o}}t.__esModule=!0,t["default"]=i,i.NG_NAME="formFileUploadValidationService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e,n,a,c){if(e.$eval(a[r+"Required"])){var s=a[r+"RequiredMessage"],l=o(n);i(c,s,l)}var d=a[r+"FormatMessage"],f=t[a[r+"Format"]],p=u(n,f);i(c,d,p),e.$watch(function(){return n.val()},function(){return c.triggerValidation()})}function i(t,n,i){var r={msg:n,validationMethod:i},o=e.createValidator("callback",r);t.addValidator(o)}function o(e){return function(){return!!e.val()}}function u(e,t){var n=new RegExp(t);return function(){var t=e.val();return!t||n.test(t)}}return{restrict:"A",require:"ewfInput",link:n}}i.$inject=["validatorsFactory","Patterns"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfDatepickerValidator"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n,i,r){var o=r[0],a=r[1];if(o.init(i[u]),a){i[u+"Valid"]&&function(){var n=e(i[u+"Valid"]);t.$watch(function(){return a.$valid},function(e){return n.assign(t,e)})}();var c=o.ewfValidation,s=o.setErrorsFromResponse,l=o.cleanErrors;Object.assign(a,{validate:c,setErrorsFromResponse:s,cleanErrors:l})}}return{restrict:"A",priority:1,controller:o["default"],controllerAs:"ewfFormCtrl",require:[u,"?form"],link:{pre:t}}}i.$inject=["$parse"],t.__esModule=!0,t["default"]=i;var r=n(1653),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfForm"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){S.formName=e}function u(){return t.$broadcast("ValidateForm"),!0}function a(e){var t=e.errors,r=e.fieldErrors,o=r===undefined?{}:r,u=e.errorDetails,a=u||t||[];S.formErrors=a.map(function(e){var t=e.errorParams&&e.errorParams[0],r=n(c(e));return e.params||t?i(r,e.params||{0:t}):r}),Object.keys(o).forEach(function(e){S.fieldErrors[e]=o[e].map(function(e){return{error:e,errorParams:{}}})})}function c(e){return e.errorMessage||e.key||e}function s(){l(),m()}function l(){S.formErrors=[]}function d(e){S.fieldErrors[e]=[]}function f(){l(),e.find("."+o["default"].HIGHLIGHTED).removeClass(o["default"].HIGHLIGHTED)}function p(e){S.fieldWarnings[e]=[]}function m(){S.fieldErrors={}}function _(e,t){var n=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];(S.fieldErrors[e]=S.fieldErrors[e]||[]).push({error:t,errorParams:n})}function g(e,t){S.fieldWarnings[e]=S.fieldWarnings[e]||[];var n=S.fieldWarnings[e];n.includes(t)||n.push(t)}function E(){return Object.values(S.fieldErrors).some(function(e){return e.length})}var S=this;Object.assign(S,{init:r,ewfValidation:u,setErrorsFromResponse:a,cleanFormErrors:l,cleanFieldErrors:d,cleanErrorsAndRemoveHighlight:f,cleanFieldWarnings:p,cleanAllFieldErrors:m,addFieldError:_,addFieldWarning:g,cleanErrors:s,hasFieldErrors:E,formErrors:[],fieldErrors:{},fieldWarnings:{},formName:""})}i.$inject=["$element","$scope","nlsFilter","replaceFilter"],t.__esModule=!0,t["default"]=i;var r=n(121),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n,i){i.$observe(u,function(t){var i=e.prependCountryCodePrefix(t);n.attr(o["default"].ACTION,i)})}return{restrict:"A",link:t}}i.$inject=["countryCodePrefixService"],t.__esModule=!0,t["default"]=i;var r=n(118),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfFormAction"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){var t=arguments.length<=1||arguments[1]===undefined||arguments[1],n=["string","undefined"].includes(void 0===e?"undefined":r(e))?o(e):e,u=n.controller("form");return!!(u&&n&&u.$valid)||(i(n,t),!1)}function i(e,n){n&&(Array.forEach(angular.element("[ng-model]",e),function(e){t.addClass(angular.element(e),u["default"].HIGHLIGHTED)}),t.addClass(e,u["default"].HIGHLIGHTED))}function o(t){return e.find("form[name="+t+"], [ng-form="+t+"], [ng-form][name="+t+"]")}function a(e,t){var i=o(e);return!i.length||n(i,t)}return{checkForm:n,isFormValid:a}}i.$inject=["$document","$animate"],t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=i;var o=n(121),u=function(e){return e&&e.__esModule?e:{"default":e}}(o);i.NG_NAME="formService"},function(e,t,n){"use strict";function i(){function e(e){return angular.isDefined(e.prop("disabled"))}return{restrict:"E",link:function(){function t(t,n){e(n)||t.$watch(function(){return n.attr("disabled")},function(e){return n.find("input, select, textarea").prop("disabled",e)})}return t}()}}t.__esModule=!0,t["default"]=i,i.NG_NAME="fieldset"},function(e,t,n){"use strict";function i(){return{restrict:"A",require:"^^form",link:function(){function e(e,t,n,i){e.$watch(n[r],function(e){return i.$setValidity("formCustomValidity",!!e)})}return e}()}}t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfValidateForm"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return!!t.msie}var i=!1;return{restrict:"A",link:function(){function t(t,o,u){function a(e){return function(){e(),t.$apply()}}function c(e){i=s(e)}function s(e){return-1!==e.target.className.indexOf(f)}var l=t.$eval(u[r+"Show"]),d=t.$eval(u[r+"Hide"]),f=u[r+"CssClass"]||"ewf-autocomplete__list";if(!n())return o.on("focus",a(l)),void o.on("blur",a(d));o.on("focus",function(){i=!1,e.on("mousedown",c),l(),t.$apply()}),o.on("blur",function(n){if(e.off("mousedown",c),i&&n)return void n.target.focus();d(),t.$apply()})}return t}()}}i.$inject=["$document","$sniffer"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfToggleDropdown"},function(e,t,n){"use strict";function i(e){"ngInject";return{link:function(){function t(t,n,i){var o=e(i[""+r]);n.on("focusout",function(){o(t),t.$apply()})}return t}()}}i.$inject=["$parse"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfOnFocusOut"},function(e,t,n){"use strict";function i(){function e(e,t,n){t.on("focus",function(){return t.attr("placeholder",n[r])}),t.on("blur",function(){return t.removeAttr("placeholder")})}return{restrict:"A",link:e}}t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfPlaceholder"},function(e,t,n){"use strict";function i(){return{restrict:"A",priority:2,scope:!0,controller:u["default"],controllerAs:"fieldCtrl",require:["^ewfForm",a],link:{pre:r}}}function r(e,t,n,i){var r=i[0],o=i[1];o.name=n[a],o.ewfFormCtrl=r}t.__esModule=!0,t["default"]=i;var o=n(1662),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfField"},function(e,t,n){"use strict";function i(){function e(e){r.push(e)}function t(e){var t=r.indexOf(e);r.splice(t,1)}function n(){return r.reduce(function(e,t){return[].concat(e,Object.keys(t.$error).filter(function(e){return t.$error[e]}))},[])}var i=this,r=[];Object.assign(i,{name:null,ewfFormCtrl:null,registerEwfInput:e,destroyEwfInput:t,getNgModelFieldErrors:n})}t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";function t(e,t,n,o){var u=o[0],a=o[1],c=o[2],l=o[3],d=o[4],p=(n[s]||a.name).split(".").pop(),m={},_={$scope:e,$attrs:n,ewfInputCtrl:u,inputInstanceOption:m,ewfDisableLocalLanguageCtrl:d};Object.assign(u,{fieldName:p,ewfFormCtrl:c,ngModelCtrl:l}),a&&a.registerEwfInput(l),n[s+"NoCharValidation"]?n[s+"NoCharValidationWatch"]&&r(_):i(_),u.setupValidation(),f(t)}function n(t,n){var i=t.$attrs,r=t.ewfInputCtrl,o=t.inputInstanceOption;r.removeAsyncValidator(o.characterValidator);var u=n&&!i[s+"IgnoreDisableLocalLanguage"];o.characterValidator=e.createAsyncValidator("inputCharactersValidator",{disableLocalLanguage:u}),r.addAsyncValidator(o.characterValidator),r.triggerValidation()}function i(e){var t=e.$scope,i=e.inputInstanceOption,r=e.ewfDisableLocalLanguageCtrl;t.$watch(function(){return!(!r||!r.disabled)},function(t,r){t===r&&i.characterValidator||n(e,t)})}function r(e){var t=e.$scope,i=e.$attrs,r=e.ewfInputCtrl,o=e.inputInstanceOption;t.$watch(i[s+"NoCharValidation"],function(t){t?r.removeAsyncValidator(o.characterValidator):n(e)})}function o(e,t,n,i){var r=i[0],o=i[1],u=i[3];t.on("blur",function(){a(t),n[s+"ValidateOnBlur"]&&e.$apply(function(){return r.triggerValidation()})}),e.$on("ValidateForm",function(){a(t),r.triggerValidation()}),e.$on("$destroy",function(){r.rejectPendingValidation(),r.cleanErrorMessages(),r.cleanWarningMessages(),o.destroyEwfInput(u)})}function a(e){e.addClass("ng-blur")}function l(e){return e.parents("."+c["default"].HIGHLIGHTED)}function d(e){var t=e.controller("form");return t&&t.$pristine}function f(e){var t=l(e);t.length&&d(t)&&e.addClass(c["default"].HIGHLIGHTED)}return{restrict:"A",priority:3,controller:u["default"],controllerAs:"ewfInputCtrl",require:[s,"^ewfField","^ewfForm","ngModel","^?ewfDisableLocalLanguage"],link:{pre:t,post:o}}}r.$inject=["validatorsFactory"],t.__esModule=!0,t["default"]=r;var o=n(1664),u=i(o),a=n(121),c=i(a),s=r.NG_NAME="ewfInput"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){T.ngModelCtrl.$parsers.push(T.validationCallback),T.ngModelCtrl.$formatters.unshift(T.validationCallback)}function i(e){return T.validate(e),e}function r(e,n){T.validators.push(e),n&&M.push(e),t.addClass(e.getCSSClass())}function u(e){c(e)}function a(e){c(e,!0)}function c(e){var n=!(arguments.length<=1||arguments[1]===undefined)&&arguments[1],i=T[n?"asyncValidators":"validators"],r=i.indexOf(e);-1!==r&&(i.splice(r,1),t.removeClass(e.getCSSClass()),T.triggerValidation(!1,!0));var o=M.indexOf(e);-1!==o&&M.splice(o,1)}function s(e){T.asyncValidators.push(e),t.addClass(e.getCSSClass())}function l(e){T.ngModelCtrl.$setValidity(o["default"].VALIDATION_ERROR_KEYS,e)}function d(t){f(function(){return T.cleanErrorMessages(),T.cleanWarningMessages(),m(t),t&&p()?g(t):e.when()})}function f(e){var t=function(){return e().then(function(){return y=null})};y?y.then(t):y=t()}function p(){var e=[o["default"].REQUIRED,o["default"].MIN_LENGTH,o["default"].MAX_LENGTH,o["default"].PENDING_VALIDATION_KEYS];return Object.entries(T.ngModelCtrl.$error).every(function(t){var n=t[0];return!t[1]||e.includes(n)})}function m(e){l(T.validators.every(function(t){var n=M.includes(t)?T.ngModelCtrl.$modelValue:e,i=t.validate(n);return i||T.addErrorMessage(t.getMessage(),t.getMessageParams()),i}))}function _(){T.rejectValidation=!0}function g(t){T.rejectValidation=!1;var n=T.asyncValidators.map(function(e){return e.validate(t)});v(!0);var i=e.all(n).then(function(e){if(!T.rejectValidation){var t=e.every(E);N()&&l(t)}});return i["finally"](function(){v(!1),T.rejectValidation=!1}),i}function E(e,t){if(!T.asyncValidators[t])return e;var n=T.asyncValidators[t].getMessage(),i=T.asyncValidators[t].getMessageParams();return e?n&&T.addWarningMessage(n):T.addErrorMessage(n,i),e}function S(e,t){T.ewfFormCtrl.addFieldError(T.fieldName,e,t)}function C(e){T.ewfFormCtrl.addFieldWarning(T.fieldName,e)}function h(){T.ewfFormCtrl.cleanFieldErrors(T.fieldName)}function I(){T.ewfFormCtrl.cleanFieldWarnings(T.fieldName)}function A(){var e=!(arguments.length<=0||arguments[0]===undefined)&&arguments[0],t=!(arguments.length<=1||arguments[1]===undefined)&&arguments[1],n=T.ngModelCtrl;if(!e||n.$viewValue){var i=t?n.$modelValue:n.$viewValue;T.validationCallback(i)}}function v(e){T.ngModelCtrl.$setValidity(o["default"].PENDING_VALIDATION_KEYS,!e)}function N(){return!T.ngModelCtrl.$error[o["default"].VALIDATION_ERROR_KEYS]}var T=this,M=[];Object.assign(T,{setupValidation:n,validationCallback:i,addValidator:r,removeValidator:u,addAsyncValidator:s,removeAsyncValidator:a,validate:d,addErrorMessage:S,cleanErrorMessages:h,addWarningMessage:C,cleanWarningMessages:I,triggerValidation:A,rejectPendingValidation:_,validationErrorMessage:{},validationIsVisible:!1,rejectValidation:!1,fieldName:null,validators:[],asyncValidators:[],ngModelCtrl:null,ewfFormCtrl:null});var y=void 0}i.$inject=["$q","$element"],t.__esModule=!0,t["default"]=i;var r=n(231),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";var t={required:g["default"],length:c["default"],pattern:m["default"],password:m["default"],min:l["default"],max:f["default"],attribute:u["default"],email:S["default"],equality:h["default"],callback:A["default"],postalCodeFormat:N["default"],multipleEmails:V["default"]},n={rewardCardValidator:M["default"],dvNumberValidator:D["default"],checkAccountUniqueValidator:R["default"],assignmentValidator:P["default"],inputCharactersValidator:G["default"],uniqueReportNameValidator:F["default"],emailExistenceValidator:k["default"],assigneeEmailValidator:$["default"]};this.createValidator=function(e){var n=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=t[e];return i?new i(n):null},this.createAsyncValidator=function(t){var i=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],r=n[t];if(r){var o=e.instantiate(r);return o.setOptions(i),o}return null}}r.$inject=["$injector"],t.__esModule=!0,t["default"]=r;var o=n(1666),u=i(o),a=n(1667),c=i(a),s=n(1668),l=i(s),d=n(1669),f=i(d),p=n(929),m=i(p),_=n(1670),g=i(_),E=n(1671),S=i(E),C=n(1672),h=i(C),I=n(1673),A=i(I),v=n(1674),N=i(v),T=n(1675),M=i(T),y=n(1676),D=i(y),O=n(1677),P=i(O),b=n(1678),R=i(b),L=n(1679),G=i(L),U=n(1680),F=i(U),w=n(1681),k=i(w),j=n(1682),V=i(j),B=n(930),$=i(B);r.NG_NAME="validatorsFactory"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var u=n(18),a=function(e){return e&&e.__esModule?e:{"default":e}}(u),c=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.setValidatorName("ewfExternalValidation"),o}return o(t,e),t.prototype.validate=function(){function e(e){var t=this.options.scope,n=t.$parent;return t.validator?t.validator(e,n):t.valid}return e}(),t}(a["default"]);t["default"]=c},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e){return["",null,undefined].includes(e)}function a(e,t){return"number"==typeof e&&t.lengthe}t.__esModule=!0;var s=n(18),l=function(e){return e&&e.__esModule?e:{"default":e}}(s),d=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.setCSSClass("ewf-length-validation"),o.setMessage("errors.common_msg_length-error-message"),o}return o(t,e),t.prototype.validate=function(){function e(e){if(u(e))return!0;var t="number"==typeof e?e.toString():e;return a(this.options.min,t)?(this.options.msg=this.getValidationMessage("minMsg"),!1):!c(this.options.max,t)||(this.options.msg=this.getValidationMessage("maxMsg"),!1)}return e}(),t.prototype.getValidationMessage=function(){function e(e){return this.options[e]||this.options.msg}return e}(),t}(l["default"]);t["default"]=d},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=!e&&0!==e;return""===t||n||isNaN(e)}t.__esModule=!0;var a=n(18),c=function(e){return e&&e.__esModule?e:{"default":e}}(a),s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.setMessage("errors.common_msg_min-value-error-message"),o.setCSSClass("ewf-min-validation"),o.setValidatorName("ewfMinValidation"),o}return o(t,e),t.prototype.validate=function(){function e(e){var t=this.options.min;if(u(e,t))return!0;var n=parseFloat(e,10);return this.options.strict?n>t:n>=t}return e}(),t}(c["default"]);t["default"]=s},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n=!e&&0!==e;return""===t||n||isNaN(e)}t.__esModule=!0;var a=n(18),c=function(e){return e&&e.__esModule?e:{"default":e}}(a),s=function(e){function t(n){i(this,t);var o=r(this,e.call(this,n));return o.setMessage("errors.common_msg_max-value-error-message"),o.setCSSClass("ewf-max-validation"),o}return o(t,e),t.prototype.validate=function(){function e(e){var t=this.options.max;if(u(e,t))return!0;var n=parseFloat(e,10);return this.options.strict?n=a.length)break;l=a[s++]}else{if(s=a.next(),s.done)break;l=s.value}var d=l,f=d[0],p=d[1];if(i.isElementExists(f))return void i.scrollToWithoutHash(p)}h(e)}}function h(e){var t=angular.element(":input:visible",e).filter(".ng-invalid").first();t.focus();var n=i.getTopPosition(t),r=i.getHeaderHeight()+O;n",i=''+t.COMMON.PROVIDE_ITEM_DETAILS_LINK_UPLOAD_ITEMS+"";return e(t.COMMON.PROVIDE_ITEM_DETAILS_INFO_TEXT_YOU_CAN_HELP,{addItemsLink:n,uploadItemsLink:i,trustAsHtml:!0})}return{isCalloutVisible:n,getCalloutText:i}}i.$inject=["replaceFilter","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="provideItemDetailsCalloutTextService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n,i){n.isItemsDetailChecked=!1,n.customsInvoiceItemDetailType=i,t.isExpertFlow()||n.isEnhancedInvoiceVisited()?e.navigateToEnhancedInvoice():e.navigateToShipmentTypeSection()}return{navigateItemDetails:n}}i.$inject=["provideItemDetailsCalloutNavigationService","userService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="provideItemDetailsCalloutService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(){e.go(o.states.ENHANCED_INVOICE)}function u(){n.setHash(s["default"].SHIPMENT_TYPE),t(function(){i.scrollToWithoutHash(c)},a["default"].defaultDebounceTimeout)}var c="provide-customs-invoice-checkbox";return{navigateToEnhancedInvoice:r,navigateToShipmentTypeSection:u}}r.$inject=["$state","$timeout","pathService","anchorScrollService"],t.__esModule=!0,t["default"]=r;var o=n(8),u=n(24),a=i(u),c=n(50),s=i(c);r.NG_NAME="provideItemDetailsCalloutNavigationService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{shipmentTypeModel:"<"+a,isDutiableHintVisible:""}return{getPriceHtml:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentPriceWrapperService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(e,t){return e===t}function u(e){return r.getUserCountry()===e}function a(e,t){return!r.isAuthorized()||o(e,t)||u(t)}function c(r,o){return a(r,o)?e.when(!1):e.all([i.hasItarApprovedAccounts(),t.getBoolean(t.CI_KEYS.CI0604_ENABLE_EEI,r)]).then(function(e){var t=e[0],i=e[1];if(!t||i)return!1;var u={fromCountryCode:r,toCountryCode:o,hasMilitaryAccount:!0},a=""+r+o;if(p[a])return p[a];var c=n.postElement(f,u).then(function(e){return"true"===e});return p[a]=c,c})}function s(t,n){return e.all([c(t,n),i.hasAllItarApprovedAccounts()])}function l(e,t){return s(e,t).then(function(e){var t=e[0],n=e[1];return t&&n})}function d(e,t){return s(e,t).then(function(e){var t=e[0],n=e[1];return!t&&n})}var f="/api/businessRules/shipment/military",p={};return{getGlobalMilitaryConfig:s,isGlobalMilitaryAvailable:c,isReturnLabelRestricted:l,isNonMilitaryRestricted:d}}i.$inject=["$q","configService","crudService","paymentAccountService","userService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="globalMilitaryService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t,n,i,o){"ngInject";function u(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],n=arguments[1],i=arguments[2],r=arguments[3],o=e.externalId,u=e.returnExternalId,s=u===undefined?"":u,d=e.pickupBookingFailed,p=e.pickupBookingFailureKey,m={shipmentId:o};c()&&(m[a["default"].B2L_SHIPMENT]=l()),n&&(m.returnShipmentId=s),d&&(m.pickupBookingFailureKey=p),t.markCostSummarySection("booking_success",i,r),f(m)}function c(){return n.isB2lShipment()}function l(){return n.getB2lUrlParam()}function d(t){e.redirectToCreateShipment(t)}function f(t){e.redirectToShipmentPrint(t)}function p(t){var n=t.callbackUrl,i=t.redirectMethod,r=t.parameters;e.redirectToBillingSystemPage(n,i,r)}function m(){e.redirectToHome()}function _(t,n,i){return C(n)?S(t).then(function(){return A(i)}):g(n)?S(t).then(function(){return e.redirectToShipmentComplete(t)}):void A(i)}function g(e){return e.labelless&&E(e)}function E(e){return e.pickupIndicator!==s["default"].NO_SHIPPER&&(e.pickupIndicator!==s["default"].YES||!I(e))}function S(e){return i.manifestPrint(e).then(function(){return o.sendConfirmationEmail(e)})}function C(e){return e.labelless&&e.returnShipment&&h(e)}function h(e){var t=e.fromCustomer.address.countryCode,n=e.toCustomer.address.countryCode;return o.isShipmentDomesticOrExport(t,n)}function I(e){return o.isShipmentImport(e.fromCustomer.address.countryCode)}function A(e){var t=e.preparePrint,n=r(e,["preparePrint"]);if(t){u(n.savingData,n.returnShipment,n.optionalServicesModel,n.returnLabelOptionalServicesModel)}else f(n)}return{navigateToPrint:u,redirectToCreateShipment:d,redirectToBilling:p,redirectToHome:m,processPotentialLabellessShipment:_}}o.$inject=["navigationService","analyticsService","b2lRestrictionsService","shipmentPrintDataResource","shipmentTransportService"],t.__esModule=!0,t["default"]=o;var u=n(1),a=i(u),c=n(942),s=i(c);o.NG_NAME="shipmentCostNavigationService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(i,o){n.isRestoredShipment()||e.isGuest()||t.getDeclarationsDefaults().then(function(e){return r(i,e,o)})}function r(e,n,i){var r=t.combineDeclarationWithDefaults(e,n);return t.getDeclarationsAvailability(i).then(function(e){var t=e[0],n=e[1],i=e[2],u=e[3],a=e[4];r.cites=o(r.cites,t),r.eur1=o(r.eur1,n),r.nafta=o(r.nafta,i),r.coo=o(r.coo,u),r.pod=o(r.pod,a)})}function o(e,t){return e&&t}return{setDeclarationsDefaults:i}}i.$inject=["userService","declarationsService","shipmentFlowService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentTypeDeclarationsService"},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"analyticsTriggerCtrl"}}t.__esModule=!0,t["default"]=i;var r=n(1785),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfAnalyticsTrigger"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n,i){e.markSection(t,n,i)}function n(t,n){e.markShipmentSection(t,n)}function i(){e.markShipmentAddressSection()}var r=this;Object.assign(r,{markAnalyticsSection:t,markAnalyticsShipmentSection:n,markAnalyticsShipmentAddressSection:i})}i.$inject=["analyticsService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"analyticsDebounceFormCtrl",link:function(){function e(e,t,n,i){i.trackedForm=e.$eval(n[u]),i.init()}return e}()}}t.__esModule=!0,t["default"]=i;var r=n(1787),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfAnalyticsDebounceFormValidity"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){e.$watch(function(){return r.trackedForm.$valid},i)}function i(e,n){(a||e!==n)&&(a=!1,t.cancel(u),u=t(function(){r.trackedFormValidity=e},o))}var r=this,o=2e3,u=void 0,a=!0;Object.assign(r,{init:n})}i.$inject=["$scope","$timeout"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t,n,i,r){M||e.pushDataLayerEvent(t,n,i,r)}function o(e,t,n){r(e,t?"shipment_functions":"shipment_funnel",n)}function u(){var t=e.dataLayer.component.shipment;t.returnLabelSelections=t.returnLabelSelections||{}}function a(e,t){var r=t||n.getShipmentData();i.prepareForShipment(),e(r)}function c(e,t,n){a(e,n),o(t)}function s(){c(i.fillShipmentAddressing,"shipment_details")}function l(){c(i.fillShipmentType,"shipment_selected")}function d(){c(i.fillPackagingRelatedData,"packaging_selection")}function f(e,t){c(function(e){return i.fillProduct(e,"shipmentSelections",v,N)},t,e)}function p(e){a(function(e){return g(e,"shipmentSelections")}),o("product_view",!1,e?{errorMessage:"Product View failed",errorDetails:e}:undefined)}function m(e,t,n){c(function(e){return _(e,t,n)},e)}function _(e,t,n){i.prepareForShipment(),i.fillShipmentAddressing(e),i.fillShipmentType(e),i.fillPackagingRelatedData(e),g(e,"shipmentSelections"),E(e,n),i.fillOptionalServices(t,"shipmentSelections"),i.fillShipmentAdditionalInformation(e)}function g(e,t){i.fillNonProductData(e,t),i.fillProduct(e,t,v,N)}function E(e,t){if(!e.returnShipment)return null;u(),g(e.returnShipment,"returnLabelSelections"),i.fillOptionalServices(t,"returnLabelSelections")}function S(e,t){v[t?"returnLabelSelections":"shipmentSelections"]=e.map(function(e){return e.product})}function C(e,t){N[t?"returnLabelSelections":"shipmentSelections"]=e}function h(t,n){i.prepareForShipment();var r=e.dataLayer.component.shipment,o=r.shipmentConfirmation=r.shipmentConfirmation||{};o.shareOptions=o.shareOptions||{outbound:{},"return":{}},o.shareOptions[t?"return":"outbound"]=n}function I(t){i.prepareForShipment();var n=e.dataLayer.component.shipment;(n.shipmentConfirmation=n.shipmentConfirmation||{}).saveShipmentDefaults=t}function A(){M=!0,t(function(){return M=!1},T)}var v={},N={},T=3e3,M=!1;return{markSection:r,markShipmentSection:o,markShipmentAddressSection:s,markShipmentTypeSection:l,markPackagingSelection:d,markProductSection:f,markProductViewSection:p,markCostSummarySection:m,handleFullShipment:_,storeProducts:S,storeSelectedProduct:C,storeShipmentSharingCheckboxes:h,storeShipmentDefaultsCheckboxes:I,onReturnFromPreviousState:A}}i.$inject=["$window","$timeout","shipmentDataService","analyticsDataService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="analyticsService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";function t(){var t=e.dataLayer||{},n=t.component||{};return n.shipment=n.shipment||{},n.shipment}function n(e){return e.shipmentAddressing||{}}function i(e){return e.shipmentSelections||{}}function r(){var e=t();e.shipmentAddressing=n(e),e.shipmentSelections=i(e)}function o(e){var i=t();i.shipmentAddressing=n(i),Object.assign(i.shipmentAddressing,{sender:a(e.fromCustomer),receiver:a(e.toCustomer)})}function a(e){return{country:e.address.countryCode,zip:e.address.postCode,city:e.address.cityName&&e.address.cityName.toLowerCase(),residential:e.address.addressType===u["default"].RESIDENTIAL}}function s(e){if(!e)return"0.00";var t=""+e;return t.includes(".")?t:t+".00"}function d(e,t,n){return{value:s(e[t]),currency:e[n]||""}}function f(e){var n=t();n.shipmentSelections=i(n),Object.assign(n.shipmentSelections,{invoice:p(e.customsInvoiceType),shipmentValue:d(e,"totalDeclaredValue","shipmentCurrency"),shipmentInsurance:d(e,"insuranceValue","insuranceCurrency")})}function p(e){var t;return(t={},t[l["default"].CREATE]="create-invoice",t[l["default"].USE]="own-invoice",t)[e]||null}function m(e){var n=t();n.shipmentSelections=i(n),Object.assign(n.shipmentSelections,{pickup:!!e.pickup,returnLabel:!!e.returnShipment}),n.costDetails={shipment:_(e),"return":_(e.returnShipment)}}function _(e){return e&&e.product&&e.product.payment&&e.product.payment.details?e.product.payment.details.map(function(e){return{name:e.name,details:e.price&&d(e.price,"value","currency")}}):null}function g(e,n){var i=t();i[n]=i[n]||{},Object.assign(i[n],{packaging:e.pieces&&e.pieces.map(E),payment:S(e)})}function E(e){return{packagingType:e.packageId,quantity:e.quantity,dimensions:{weight:e.weight,height:e.height,length:e.length,width:e.width}}}function S(e){return{type:e.paymentInfo.transportation&&e.paymentInfo.transportation.paymentMethod,additionalInfo:{dutiesTaxes:e.paymentInfo.duties&&e.paymentInfo.duties.paymentMethod,customTermsOfTrade:e.incotermCode,rememberPayment:{active:!e.paymentInfo.splitDutiesAndTaxesPayment,"for":!e.paymentInfo.splitQuotAndTranspPayment}}}}function C(e){var n=t();n.shipmentSelections=i(n),n.shipmentSelections.shipmentType=h(e.type)}function h(e){var t;return(t={},t[c["default"].DOCUMENT]="documents",t[c["default"].PACKAGE]="packages",t)[e]||null}function I(e,n){var i=t(),r=i[n];r&&(r.optionalServices=e.optionalServices.filter(function(e){return e.selected}).map(function(e){return{type:e.name,cost:{value:e.price&&e.price.value,currency:e.price&&e.price.currency},additionalInformation:{}}}))}function A(e,n,i,r){var o=e.product,u=e.shippingDate,a=t(),c=a[n];c&&(c.productSelector={selectedDate:u,products:v(o,n,i,r)})}function v(e,t,n,i){var r=[],o=n[t],u=i[t];return o&&r.push.apply(r,o.map(function(t,n){return T(t,e,n,u)})),N(e,o)&&r.push(T(e,e,o?o.length:0,u)),r}function N(e,t){return e&&(!t||!t.some(function(t){return t===e}))}function T(e,t,n,i){return{id:e.globalProductName+e.localProductName+e.estimatedDeliveryDate+e.estimatedDeliveryTime,name:e.globalProductName,deliveredBy:e.estimatedDeliveryTime,deliveredDate:e.estimatedDeliveryDate,price:e.payment&&e.payment.total&&s(e.payment.total.value),currency:e.payment&&e.payment.total&&e.payment.total.currency,selected:e===t,seldetailsExpanded:i===n}}return{prepareForShipment:r,fillShipmentAddressing:o,fillPackagingRelatedData:f,fillShipmentAdditionalInformation:m,fillNonProductData:g,fillShipmentType:C,fillOptionalServices:I,fillProduct:A}}r.$inject=["$window"],t.__esModule=!0,t["default"]=r;var o=n(63),u=i(o),a=n(9),c=i(a),s=n(62),l=i(s);r.NG_NAME="analyticsDataService"},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e,n){return t.post("/api/mms/search",e,{preventNotAvailableInterceptor:!0}).then(function(e){return e.data})["catch"](function(e){return l(e,n)})}function u(e){return t.post("/api/mms/search/typeahead",e,{preventNotAvailableInterceptor:!0}).then(function(e){var t=e.data;return(t===undefined?{}:t).results})["catch"](function(e){return l(e,!0)})}function a(e,n){return t.post("/api/mms/filters",e,{preventNotAvailableInterceptor:!0}).then(function(e){return e.data})["catch"](function(e){return l(e,n)})["catch"](function(){return{query:angular.copy(e)}})}function c(e){return t.get("/api/mms/pending/actions",{preventNotAvailableInterceptor:!0}).then(function(e){return e.data})["catch"](function(t){return l(t,e)})}function s(e){return t.post("/api/mms/count/pending-actions",e)}function l(t,i){var r=[o["default"].REQUEST_TIMEOUT,o["default"].UNPROCESSABLE_ENTITY,o["default"].GATEWAY_TIMEOUT];return i&&r.includes(t.status)&&n.showServiceErrorPopup({type:o["default"].REQUEST_TIMEOUT,messageKey:"errors.common_backend-error_shipment-search-is-too-generic"}),e.reject(t)}function d(){return i.getSourceData(i.CI_KEYS.CI1021_ADDITIONAL_FIELD_TO_SORT_SHIPMENTS)}function f(e){return t.get("/api/mms/search/quick-view/"+e)}return{fetchSearch:r,fetchTypeahead:u,fetchFilters:a,fetchPendingActions:c,fetchPendingActionsCount:s,getSortableFields:d,getShipmentQuickView:f}}i.$inject=["$q","$http","interceptorsStateService","configService"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="manageShipmentsResource"},,,,,function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{minDate:"<"+o+"MinDate",maxDate:"e}function p(e){T.toDate.valid=m("to",e),S()}function m(e,n){var i=n.$viewValue;return i?n.$error[M]?I(n):t.parse(i,T.internalDateFormat)?_(e,n):A(n):h(e,n)}function _(e,t){var n=T[e+"Date"],i=n.minDate,r=n.maxDate,o=E(T.selectedDates[e]),u=o>=E(i)&&(!r||o<=E(r));return t.$setValidity(y,u),u}function g(e,t){var n=E(e)<=E(t);T.fromDate.valid=n,T.toDate.valid=n}function E(e){return e.setHours(0,0,0,0)}function S(){C(!T.isRequired&&!T.selectedDates.from&&!T.selectedDates.to)||T.onRangeChange({range:T.selectedDates})}function C(e){return!e&&(!v()||angular.equals(P,T.selectedDates))}function h(e,t){T.selectedDates[e]=null,t.$setValidity(M,!0),t.$setValidity(y,!0),t.$setPristine()}function I(e){e.$setValidity(y,!0)}function A(e){e.$setValidity(M,!1),e.$setValidity(y,!0)}function v(){return T.fromDate.valid&&T.toDate.valid}function N(){T.fromDatePlaceholder=T.isCorpFlow?e.ADMIN_TOOLS.DATE_RANGE_PICKER_FROM:e.MANAGE_SHIPMENTS.DATE_RANGE_PICKER_FROM,T.toDatePlaceholder=T.isCorpFlow?e.ADMIN_TOOLS.DATE_RANGE_PICKER_TO:e.MANAGE_SHIPMENTS.DATE_RANGE_PICKER_TO}var T=this,M="date",y="range",D="yyyy-mm-dd",O="yyyy-MM-dd",P={from:null,to:null};Object.assign(T,{fromDate:{options:{showWeeks:!1},minDate:null,maxDate:null,isDatepickerOpen:!1,valid:!1},toDate:{options:{showWeeks:!1},minDate:null,maxDate:null,isDatepickerOpen:!1,valid:!1},selectedDates:{from:null,to:null},fromDatePlaceholder:"",toDatePlaceholder:"",errorMessages:{},$onInit:a,$onChanges:n,toggleFromDatepicker:s,toggleToDatepicker:l,onFromDateChange:d,onToDateChange:p})}i.$inject=["component"],r.$inject=["Messages","dateParser"],t.__esModule=!0,t["default"]=i,t.DateRangePickerController=r;var o=i.NG_NAME="ewfDateRangePicker"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";function t(){var t;return t={},t[c["default"].UN_SUBMITTED]=e.MANAGE_SHIPMENTS.LOGICAL_CATEGORY_UN_SUBMITTED,t[c["default"].READY_TO_SHIP]=e.MANAGE_SHIPMENTS.LOGICAL_CATEGORY_READY_TO_SHIP,t[c["default"].IN_TRANSIT]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_IN_TRANSIT,t[c["default"].DELIVERED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_DELIVERED,t[c["default"].CANCELLED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_CANCELLED,t[c["default"].PICKED_UP]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_PICKED_UP,t[c["default"].MIGRATED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_MIGRATED,t[c["default"].OTHER]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_OTHER,t}function n(){return{assignToMeCount:e.MANAGE_SHIPMENTS.LOGICAL_STATUS_ASSIGNED_TO_ME,deliveredCount:e.MANAGE_SHIPMENTS.LOGICAL_STATUS_DELIVERED,inTransitCount:e.MANAGE_SHIPMENTS.LOGICAL_STATUS_IN_TRANSIT,savedByMeCount:e.MANAGE_SHIPMENTS.LOGICAL_STATUS_SAVED_BY_ME}}function i(){var t;return t={},t[u["default"].MIGRATED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_MIGRATED,t[u["default"].SHIPPING_TODAY]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_SHIPPING_TODAY,t[u["default"].FUTURE_SHIPMENT]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_FUTURE_SHIPMENT,t[u["default"].READY_TO_PRINT]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_READY_TO_PRINT,t[u["default"].READY_TO_SEND_QR_CODE]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_READY_TO_SEND_QR_CODE,t[u["default"].SAVED_BY_ME]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_SAVED_BY_ME,t[u["default"].PENDING_MY_APPROVAL]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_PENDING_MY_APPROVAL,t[u["default"].PENDING_ADMIN_APPROVAL]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_PENDING_ADMIN_APPROVAL,t[u["default"].ASSIGNED_TO_ME]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_ASSIGNED_TO_ME,t[u["default"].PENDING_REQUESTOR_APPROVAL]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_PENDING_REQUESTOR_APPROVAL,t[u["default"].PENDING_ASSIGNEE_ACTION]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_PENDING_ASSIGNEE_ACTION,t[u["default"].DECLINED_BY_SHIPPER]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_DECLINED_BY_SHIPPER,t[u["default"].APPROVED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_APPROVED,t[u["default"].EDIT_REQUESTED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_EDIT_REQUESTED,t[u["default"].PICKED_UP]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_PICKED_UP,t[u["default"].IN_TRANSIT]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_IN_TRANSIT,t[u["default"].DELIVERED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_DELIVERED,t[u["default"].CANCELLED]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_CANCELLED,t[u["default"].PARTIAL_DELIVERY]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_PARTIAL_DELIVERY,t[u["default"].RETURNED_TO_SHIPPER]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_RETURNED_TO_SHIPPER,t[u["default"].DESTROYED_DISPOSAL]=e.MANAGE_SHIPMENTS.LOGICAL_STATUS_DESTROYED_DISPOSAL,t}function r(){return{shippingTodayCount:e.MANAGE_SHIPMENTS.LOGICAL_STATUS_SHIPPING_TODAY,readyToPrintCount:e.MANAGE_SHIPMENTS.LOGICAL_STATUS_READY_TO_PRINT,assignToMeCount:e.MANAGE_SHIPMENTS.LOGICAL_STATUS_ASSIGNED_TO_ME}}function o(){var t;return t={},t[l["default"].RECEIVER_WILL_PAY]=e.MANAGE_SHIPMENTS.PAYMENT_TYPES_RECEIVER_WILL_PAY,t[l["default"].DHL_ACCOUNT]=e.MANAGE_SHIPMENTS.PAYMENT_TYPES_DHL_ACCOUNT,t[l["default"].ONLINE_PAYMENT]=e.MANAGE_SHIPMENTS.PAYMENT_TYPES_ONLINE_PAYMENT,t[l["default"].CASH]=e.MANAGE_SHIPMENTS.PAYMENT_TYPES_CASH,t}function a(){var t;return t={},t[f["default"].PACKAGE]=e.MANAGE_SHIPMENTS.SHIPMENT_TYPE_PACKAGES,t[f["default"].DOCUMENT]=e.MANAGE_SHIPMENTS.SHIPMENT_TYPE_DOCUMENTS,t}function s(){var t;return t={},t[m["default"].CARGO]=e.INDIA_SUMMARY_SECTION.SUMMARY_VALUE_LABEL_CARGO,t[m["default"].GIFT]=e.INDIA_SUMMARY_SECTION.SUMMARY_VALUE_LABEL_GIFT,t[m["default"].NON_GIFT_NON_SAMPLE]=e.INDIA_SUMMARY_SECTION.SUMMARY_VALUE_LABEL_NON_GIFT_NON_SAMPLE,t}function d(){return{DHL_ACCOUNT:e.MANAGE_SHIPMENTS.ACCOUNT_TYPE_DHL_ACCOUNT,PAYER_ACCOUNT:e.MANAGE_SHIPMENTS.ACCOUNT_TYPE_PAYER_ACCOUNT}}function p(){return{"true":e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_LABEL_BOOLEAN_VALUE_YES,"false":e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_LABEL_BOOLEAN_VALUE_NO}}function S(){return{"true":e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_LABEL_DUTIABLE_STATUS_DUTIABLE,"false":e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_LABEL_DUTIABLE_STATUS_NON_DUTIABLE}}function C(){return{OUTBOUND:e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_TAB_NAME_OUTBOUND,INBOUND:e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_TAB_NAME_INBOUND,RETURN:e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_TAB_NAME_RETURN}}function h(){var t;return t={},t[_.UNITS.KG]=e.COMMON.UNITS_KG,t[_.UNITS.LB]=e.COMMON.UNITS_LB,t[_.UNITS.BU]=e.COMMON.UNITS_BU,t[_.UNITS.CM]=e.COMMON.UNITS_CM,t[_.UNITS.IN]=e.COMMON.UNITS_IN,t}function I(){return{logicalCategoryMapping:t(),logicalStatusMapping:i(),rightNavStatusMapping:n(),topNavLogicalStatusMapping:r(),shipmentTypesMapping:a(),shipmentTypesCategoryMapping:s(),paymentTypesMapping:o(),accountTypesMapping:d(),booleanValueMapping:p(),dutiableStatusMapping:S(),shipmentDetailsTabLabel:C(),assignPickupAddressMapping:A(),unitsMapping:h(),gstDropdownOptionsMapping:v(),gstTransactionTypesMapping:N()}}function A(){return{"true":e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_LABEL_ALLOW_PICKUP_ADDRESS_CHANGE,"false":e.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_LABEL_RESTRICT_PICKUP_ADDRESS_CHANGE}}function v(){var t;return t={},t[E["default"].YES]=e.SHIPMENT_DETAILS.GST_SELECT_YES,t[E["default"].NO]=e.SHIPMENT_DETAILS.GST_SELECT_NO,t[E["default"].NA]=e.SHIPMENT_DETAILS.GST_SELECT_NA,t}function N(){var t;return t={},t[g.TRANSACTION_TYPES.REGULAR]=e.SHIPMENT_DETAILS.GST_SELECT_TRANSACTION_TYPE_REGULAR,t[g.TRANSACTION_TYPES.BILL_SHIP_FROM]=e.SHIPMENT_DETAILS.GST_SELECT_TRANSACTION_TYPE_BILL_SHIP_FROM,t}return{getLocalizations:I}}r.$inject=["Messages"],t.__esModule=!0,t["default"]=r;var o=n(12),u=i(o),a=n(71),c=i(a),s=n(5),l=i(s),d=n(9),f=i(d),p=n(258),m=i(p),_=n(39),g=n(164),E=i(g);r.NG_NAME="shipmentLocalizationsService"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2),o=i(r),u=n(72),a=i(u),c=n(1869),s=i(c),l=angular.module("authorization.login.linkError",[o["default"],a["default"]]);l.directive(s["default"].NG_NAME,s["default"]),t.module=l,t["default"]="authorization.login.linkError"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,u,a,c){var s=t.$eval(a[r]);if(s){var l=s.passwordField,d=s.operation,f=d===undefined?o:d,p=s.errorMessage,m=f===o?n:i,_={msg:p,validationMethod:function(){function e(e){return m(t.$eval(l),e)}return e}()},g=e.createValidator("callback",_);t.$watch(l,c.triggerValidation),c.addValidator(g)}}function n(e,t){return e===t}function i(e,t){return e!==t}var o="matches";return{restrict:"A",require:"ewfInput",link:t}}i.$inject=["validatorsFactory"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfValidatePasswordEquality"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{model:"="+r,hideCurrent:"'+e.getAssignedShipmentAsGuestLink()+""}function S(){return''+e.getRegisterToShipLink()+""}function C(){return!h.error&&!A}var h=this,I=void 0,A=void 0;Object.assign(h,{init:r,redirectToResource:a,getShipAsGuestLink:E,getRegisterToShipLink:S,isGuestAccessAlertVisible:C})}r.$inject=["externalAccessService","pathService","userService","cookiesService"],t.__esModule=!0,t["default"]=r;var o=n(1),u=i(o),a=n(6),c=i(a),s=n(14),l=i(s),d=n(23),f=i(d),p=n(60),m=i(p)},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){return e.get("/api/external-link/"+t).then(function(e){var t=e.data,n=t.linkType,i=t.guestAccessSupported,r=t.groupId;return{title:o()[n],guestAccessSupported:i,linkType:n,groupId:r}})}function o(){var e;return e={},e[S.AUTHORIZED_ACCOUNT]=t.LOGIN_FORGOT_RESET_PASSWORD.LOGIN_HEADER_AUTHORIZED_ACCOUNT,e[S.ASSIGNED_SHIPMENT]=t.LOGIN_FORGOT_RESET_PASSWORD.LOGIN_HEADER_ASSIGNED_SHIPMENT,e[S.APPROVE_SHIPMENT]=t.LOGIN_FORGOT_RESET_PASSWORD.LOGIN_HEADER_APPROVE_SHIPMENT,e}function u(){var e;return e={},e[C.ASSIGNED_SHIPMENT]=t.LOGIN_FORGOT_RESET_PASSWORD.EXTERNAL_ACCESS_ASSIGNED_SHIPMENT_LINK_EXPIRED_OR_USED,e[C.AUTHORIZED_ACCOUNT]=t.LOGIN_FORGOT_RESET_PASSWORD.EXTERNAL_ACCESS_AUTHORIZED_ACCOUNT_LINK_EXPIRED_OR_USED,e}function a(e){return u()[e]||t.LOGIN_FORGOT_RESET_PASSWORD.EXTERNAL_ACCESS_LINK_EXPIRED_OR_USED}function c(e,t,n){return s(e).then(function(e){return l(e,t,n)})}function s(t){return e.get("/api/external-link/"+t+"/key",{preventSessionExpiredInterceptor:!0}).then(function(e){return e.data.key})}function l(e,t,n){var r;i.setCurrentGroup(n);var o=(r={},r[S.AUTHORIZED_ACCOUNT]=m,r[S.ASSIGNED_SHIPMENT]=f,r[S.APPROVE_SHIPMENT]=p,r),u=o[t];return u?u(e):undefined}function d(e){return i.checkAssignShipmentStatus(e)}function f(e){d(e).then(function(){return n.redirectToManageShipmentDetails(e)})["catch"](function(e){var t=e.data.errors,r=t[0],o=i.getShipmentStatusByErrorMessage(r);n.redirectToAssignedShipmentStatus(o)})}function p(e){var t=e.shipmentId;n.redirectToManageShipmentDetails(t)}function m(e){n.redirectToAuthorizedAccountPage(e)}function _(){return t.LOGIN_FORGOT_RESET_PASSWORD.HOME_ALERT_ASSIGNED_SHIPMENT_AS_GUEST_LINK}function g(){return t.LOGIN_FORGOT_RESET_PASSWORD.HOME_ALERT_REGISTER_TO_SHIP_LINK}function E(e){return h.includes(e)}var S={AUTHORIZED_ACCOUNT:"AAC_REGISTRATION",ASSIGNED_SHIPMENT:"ASSIGNED_SHIPMENT",APPROVE_SHIPMENT:"SHIPMENT_APPROVAL_NOTIFICATION"},C={AUTHORIZED_ACCOUNT:"aacn",ASSIGNED_SHIPMENT:"ashp"},h=["assign-shipment.assign-details_backend-error_assign-shipment-completed","assign-shipment.assign-details_backend-error_assign-shipment-cancelled","assign-shipment.assign-details_backend-error_assign-shipment-not-found-with-given-credentials","assign-shipment.assign-details_backend-error_assign-shipment-declined","assign-shipment.assign-details_backend-error_assign-assignment-cancelled","errors.assign-details_backend-error_assign-shipment-not-found-with-given-credentials"];return{getAccessSettings:r,getAccessToResource:c,getLinkError:a,getShipmentKeyData:s,getAssignedShipmentAsGuestLink:_,getRegisterToShipLink:g,checkAssignShipmentStatus:d,isPermanentError:E}}i.$inject=["$http","Messages","navigationService","assignShipmentStatusService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="externalAccessService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){var n=t.shipmentId||t;return e.get("/api/shipment/assign/access-check?externalId="+n)}function i(e){return e.split("-").pop()}function r(e){t.setCurrentGroup(e)}return{checkAssignShipmentStatus:n,getShipmentStatusByErrorMessage:i,setCurrentGroup:r}}i.$inject=["$http","groupSwitcherService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="assignShipmentStatusService"},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){"ngInject";function t(){return e.getElementList(S)}function n(t){return e.postElement(S,t)}function i(t){return t?e.getElementList(C,{cache:!0}):e.getElementList(C)}function r(t){return e.postElement(C,t)}function o(){return e.getElementList(h)}function u(t){return e.postElement(h,t)}function a(){return e.getElementList(I)}function c(t){return e.postElement(I,t)}function s(){return e.getElementList(A)}function l(t){return e.postElement(A,t)}function d(){return e.getElementList(v)}function f(t){return e.postElement(v,t)}function p(){return e.getElementList(N)}function m(t){return e.postElement(N,t)}function _(){return e.getElementList(T)}function g(t){return e.postElement(T,t)}var E="/api/myprofile/shipment/defaults/",S=E+"insurance",C=E+"return",h=E+"pickup",I=E+"saving",A=E+"uomac",v=E+"packages",N=E+"delivery",T=E+"customs/clearance";return{getShipmentInsurance:t,updateShipmentInsurance:n,getReturnShipments:i,updateReturnShipments:r,getPickupsData:o,savePickupsData:u,getDefaultSavingShipment:a,updateDefaultSavingShipment:c,getDefaultSomCurrency:s,updateDefaultSomAndCurrency:l,getPackagesData:d,updatePackagesData:f,getDeliveryOptions:p,updateDeliveryOptions:m,getCustomsClearance:_,updateCustomsClearance:g}}i.$inject=["crudService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="profileShipmentResource"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return e.getDefaultSomCurrency().then(function(e){var n=e.somList.map(function(e){var t=Object.keys(e),n=t[0];return{key:n,value:e[n]}}),i=t.getWeightUnit(e.som);return Object.assign(e,{somList:n,weightUnit:i})})}function i(t){return e.updateDefaultSomAndCurrency(t)}return{getDefaultSomAndCurrency:n,updateDefaultSomAndCurrency:i}}i.$inject=["profileShipmentResource","measuresService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="profileShipmentService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"editAccountFormCtrl",templateUrl:"my-dhl-accounts/my-dhl-account-edit-form.html",bindings:{accountNickname:"="+o+"AccountNickname",accountNumber:"<"+o+"AccountNumber",accountType:"="+o+"AccountType",getAccountKey:"&"+o+"GetAccountKey",onEditSuccess:"&"+o+"OnEditSuccess"}})}function r(e,t){"ngInject";function n(){return o.serverErrors=[],e.updateMyDhlAccount(i()).then(o.onEditSuccess)["catch"](r)}function i(){return{accountNickname:o.accountNickname,accountType:o.accountType,key:o.getAccountKey()}}function r(e){o.serverErrors=e.errors||e.fieldErrors&&e.fieldErrors.accountNumber||[t.MANAGE_ACCOUNTS.MY_DHL_ACCOUNTS_MSG_ACCOUNT_NOT_VALID]}var o=this;Object.assign(o,{serverErrors:[],editAccount:n})}i.$inject=["component"],r.$inject=["accountListService","Messages"],t.__esModule=!0,t["default"]=i,t.EditMyDhlAccountFormController=r;var o=i.NG_NAME="ewfEditAccountForm"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){"ngInject";function t(e){return new r(e)}var n=["accountNickname","accountType","key"],r=function(){function t(r){i(this,t),Object.assign(this,e.map(r,n))}return t}();return{create:t}}r.$inject=["objectMapperService"],t.__esModule=!0,t["default"]=r,r.NG_NAME="myDhlAccountFactory"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n){return e.postElement(r,t.create(n))}function i(t,n){var i=n?{params:n}:{};return e.getElementList(t,i)}var r="/api/myprofile/accounts/modify";return{updateMyDhlAccount:n,fetchMyDhlAccounts:i}}i.$inject=["crudService","myDhlAccountFactory"],t.__esModule=!0,t["default"]=i,i.NG_NAME="accountListService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){return t.get(_,{params:e}).then(function(e){return e.data})}function r(e){return t.get(E,{cache:!0,params:e}).then(function(e){return e.data})}function u(e){return t.get(g,{cache:!e}).then(function(e){return e.data})}function a(n){return n&&n.destinationCountryCode?t.get(S,{params:n}).then(function(e){return d(e.data,o["default"].LIGHT_BACKGROUND)}):e.reject()}function c(e,n){return t.put("/api/addressbook/contact/"+e+"/payment-settings",n).then(function(e){return e.data})}function s(n){return n?t.get("/api/location/local-service/"+n+"/DD",{cache:!0,cacheDuration:5e3}).then(function(e){return e.data}):e.when({})}function l(e){return t.get(C,{cache:!0}).then(function(t){return d(t.data,e)})}function d(e,t){var n=e.filter(function(e){return e.purpose===t});return[].concat(e.filter(function(e){return!e.purpose}),n)}function f(e){return n.getSourceData(n.CI_KEYS.CI0847_PAYMENT_CATEGORIES,e)}function p(){return n.getBoolean(n.CI_KEYS.CI0784_SPLIT_DUTY_AND_TAX_PAYMENT_OPTION)}function m(e){return n.getSourceData(n.CI_KEYS.CI0987_NOT_ALLOW_ONLINE_PAYMENT_FOR_DESTINATION_COUNTRIES).then(function(t){return!t||t.every(function(t){return t.value!==e})})}var _="/api/accounts/verified",g="/api/shipment/accounts/verified",E="/api/pickup/accounts/verified",S="/api/shipment/payment/options/nonaccount",C="/api/shipment/payment/options/online";return{fetchUserAccounts:i,fetchPickupAccounts:r,fetchShipmentAccounts:u,fetchNonAccountPaymentOptions:a,associatePaymentWithAddressBookContact:c,fetchDDServiceInfo:s,fetchOnlinePaymentOptions:l,getPaymentCategories:f,fetchSplitDutyAndTaxPaymentOption:p,getOnlinePaymentDestinationValidity:m}}i.$inject=["$q","$http","configService"],t.__esModule=!0,t["default"]=i;var r=n(949),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="paymentResource"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(1905),a=i(u),c=angular.module("shipment-common.addressSwitch",[o["default"]]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="shipment-common.addressSwitch"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{disabled:"",o(e,t)}),e}function o(e,n){e.onSort=function(e){var i=e.rowA,r=e.rowB,o=a(n),s=c(n),l=u(i,o,s),d=u(r,o,s);return t.compareBy(l,d)}}function u(e,t,n){var i=e;return t.forEach(function(e){i=i[e]}),n?n(i):i}function a(e){return e.split("|")[0].split(".")}function c(t){var n=t.split("|")[1];return n?e(n):null}var s={"ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_NICKNAME":"contactDetails.nickname","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_CONTACT_NAME":"contactDetails.name","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDRESS":"contactDetails.addressDetails.addrLine1","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDRESS_2":"contactDetails.addressDetails.addrLine2","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDRESS_3":"contactDetails.addressDetail.addrLine3","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_CITY":"contactDetails.addressDetails.city","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_COUNTRY":"contactDetails.addressDetails.countryCode|countryName","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_COMPANY_NAME":"contactDetails.company","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ZIP":"contactDetails.addressDetails.zipOrPostCode","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_STATE_PROVINCE":"contactDetails.addressDetails.city","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_EMAIL_ADDRESS":"contactDetails.email","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_PHONE":"contactDetails.phoneDetails.phone","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_MATCH_CODE":"contactDetails.matchCode","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_VAT":"contactDetails.taxDetails.vatTaxId","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_ADDITIONAL_NOTES":"contactDetails.additionalNotes","ADDRESS_BOOK.ADDRESS_BOOK_COL_NAME_SHIPPING_REFERENCE":"shippingSetting|defaultShipmentReference"};return{getColumnsToDisplay:i}}i.$inject=["$filter","sortService","columnCustomizationService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="mailingListColumnCustomizationService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(41),a=i(u),c=n(422),s=i(c),l=n(2116),d=i(l),f=n(2117),p=i(f),m=n(2119),_=i(m),g="shipment.address-contact.modification-actions",E=angular.module(g,[o["default"],a["default"],s["default"]]);E.directive(d["default"].NG_NAME,d["default"]).directive(_["default"].NG_NAME,_["default"]).service(p["default"].NG_NAME,p["default"]),t.module=E,t["default"]=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(416),a=i(u),c=n(1916),s=i(c),l=n(1917),d=i(l),f=n(1918),p=i(f),m=n(1919),_=i(m),g=n(1921),E=i(g),S=n(1922),C=i(S),h=n(1923),I=i(h),A=n(1924),v=i(A),N=angular.module("shipment.type.helpers",[o["default"],a["default"]]);N.directive(s["default"].NG_NAME,s["default"]).directive(d["default"].NG_NAME,d["default"]).service(p["default"].NG_NAME,p["default"]).service(_["default"].NG_NAME,_["default"]).service(E["default"].NG_NAME,E["default"]).service(v["default"].NG_NAME,v["default"]).directive(C["default"].NG_NAME,C["default"]).directive(I["default"].NG_NAME,I["default"]),t.module=N,t["default"]="shipment.type.helpers"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"shipment-tax-id-input.html",controller:r,controllerAs:"shipmentTaxIdInputCtrl",bindings:{model:"="+o,fromCountry:"<"+o+"FromCountry",toCountry:"<"+o+"ToCountry",isDutiable:"<"+o+"IsDutiable",isReturnLabel:"<"+o+"IsReturnLabel",shipmentTypeModel:"<"+o+"ShipmentTypeModel"}})}function r(e,t,n,i,r){"ngInject";function o(e){var t=e.fromCountry,n=e.toCountry,i=e.isDutiable;(t||n||i)&&u()}function u(){n.getApplicableTaxId(h.isReturnLabel).then(a)}function a(e){if(!e)return h.isShipmentTaxIdInputVisible=!1,v=!1,void(h.model.taxId={});h.isShipmentTaxIdInputVisible=!0,v=e.mandatory,h.model.taxId.type=e.taxIdType}function c(){return!!h.shipmentTaxIdsList.length}function s(){return v||d()}function l(){return d()?r.CUSTOMS_DECLARATION.SHIPMENT_TAX_ID_ERROR_TAX_NUMBER_MUST_BE_PROVIDED:r.ERRORS.FORM_FIELD_IS_REQUIRED}function d(){return h.shipmentTypeModel.itemAttributes.isVatTaxIdVisible&&f()}function f(){return h.shipmentTypeModel.getLineItemsBasedOnInvoiceType().some(function(e){return e.taxIdPaid})}function p(e){if(!e)return!0;var t={taxIdType:h.model.taxId.type,taxIdNumber:e};return n.validateTaxId(t)}function m(){var e=arguments.length<=0||arguments[0]===undefined?"":arguments[0];if(!i.isGuest()){var t=h.fromCountry,r=h.toCountry,o={keyword:e,taxIdType:h.model.taxId.type,fromCountry:t,toCountry:r};n.searchTaxId(o).then(function(e){return h.shipmentTaxIdsList=e})}}function _(){var e=h.model.taxId.type;return t(r.CUSTOMS_DECLARATION.SHIPMENT_TAX_ID_ERROR_INVALID_TAX_ID,{taxIdName:e})}function g(e,t){e.number=t,C(),E()}function E(){h.shipmentTaxIdsList=[]}function S(t,n,i){var r=e.find("label[ewf-field=shipmentTaxIdInput] ul")[0];return angular.element(t.currentTarget).parents(r).length?g(n,i):null}function C(){e.find("input[name=shipmentTaxIdInput]").addClass(A).removeClass(I),h.shipmentTaxIdForm.shipmentTaxIdInput.$dirty=!0,h.shipmentTaxIdForm.shipmentTaxIdInput.$pristine=!1}var h=this,I="ng-pristine",A="ng-dirty",v=void 0;Object.assign(h,{isShipmentTaxIdInputVisible:!1,shipmentTaxIdsList:[],shipmentTaxIdForm:{},$onChanges:o,isShipmentTaxIdsListVisible:c,isShipmentTaxIdRequired:s,getShipmentTaxIdRequiredErrorMessage:l,searchTaxId:m,validateTaxId:p,getInvalidError:_,clearShipmentTaxIdsList:E,onShipmentTaxIdSelected:S})}i.$inject=["component"],r.$inject=["$document","replaceFilter","shipmentTaxIdInputService","userService","Messages"],t.__esModule=!0,t["default"]=i,t.ShipmentTaxIdInputController=r;var o=i.NG_NAME="ewfShipmentTaxIdInput"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n){var i=t.getShipmentData(),r=n?i.returnShipment:i;return e.post(o,r).then(function(e){return e.data})}function i(t){return e.post(u,t).then(function(e){return e.data.valid})}function r(t){return e.get(a,{params:t}).then(function(e){return e.data})}var o="/api/shipment/tax-id/applicable",u="/api/shipment/tax-id/validate",a="/api/shipment/tax-id/search";return{getApplicableTaxId:n,validateTaxId:i,searchTaxId:r}}i.$inject=["$http","shipmentDataService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentTaxIdInputService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){var t=e.shipmentTypeModel,n=e.isMailingListShipment,i=e.isRateAndQuoteFlow,r=e.isReturnLabel;n||i||o(r).then(function(e){return t.itemAttributes.isVatTaxIdVisible=e})}function o(i){return e.all([t.getSourceData(t.CI_KEYS.CI1417_CUSTOMS_REGISTRATION_NUMBER_TYPES),n.getApplicableTaxId(i)]).then(function(e){var t=e[0],n=e[1],i=t&&t.find(function(e){return e.customerFacingCode.value===n.taxIdType});return!!i&&(n.applicable&&i.lineItemInfoRequired)})}function u(n){return i.isAuthorized()?t.getBoolean(n)["catch"](function(){return!1}):e.when(!1)}return{handleVatTaxIdVisibility:r,getCustomerLevelConfiguration:u}}i.$inject=["$q","configService","shipmentTaxIdInputService","userService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentTaxIdVisibilityService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({bindings:{shipmentTypeModel:"<"+l,addressDetailsModel:"0?e.createSelfServiceBooking({addressDetailsModel:a.addressDetailsModel,shipmentTypeModel:a.shipmentTypeModel,packageDetailsModel:a.packageDetailsModel}):n.showDialog({templateUrl:"shipment-self-service-popup.html"})}var a=this,c=!1,s=!1;Object.assign(a,{$onInit:r,createSelfServiceBooking:u,isShipmentTypeSsbHelperVisible:o})}i.$inject=["component"],r.$inject=["rnqProductsService","configService","modalService","ssbDtoConverterService"],t.__esModule=!0,t["default"]=i,t.ShipmentTypeSelfServiceHelperController=r;var o=i.NG_NAME="ewfShipmentTypeSelfServiceHelper"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){return e.getDimensionUnit(t)}function i(e){t.handleVatTaxIdVisibility(e)}return{getDimensionUnit:n,handleVatTaxIdVisibility:i}}i.$inject=["measuresService","shipmentTaxIdVisibilityService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentTypeTaxIdHelperService"},function(e,t,n){"use strict";function i(){"ngInject";function e(e,n){return!n||n.some(function(n){return t(e,n)})}function t(e,t){var i=t.mask,r=i===undefined?"":i,u=t.validationRule,a=t.charsNumber,c=e||"";return n(c,r)&&o(c,u,a)}function n(e,t){var n=i(t);return new RegExp("^"+n+"$","i").test(e)}function i(e){return e.split("").map(function(e){return r.CHARACTERS[e]||e}).join("")}function o(e,t,n){return t===r.RULES.MIN?e.length>=n:t===r.RULES.MAX?e.length<=n:e.length===n}function u(){return(arguments.length<=0||arguments[0]===undefined?"":arguments[0]).length<=s}function a(e){return(arguments.length<=1||arguments[1]===undefined?[]:arguments[1]).every(function(t){return c(t,e)})}function c(e,t){return e.mask!==t.mask||e.validationRule!==t.validationRule||e.charsNumber!==t.charsNumber||e.key&&e.key===t.key}var s=31;return{isReferenceMatchFormat:t,isReferenceMatchOneOfFormats:e,validateReferenceFormatMask:u,validateReferenceFormatUniqueness:a}}t.__esModule=!0,t["default"]=i;var r=n(477);i.NG_NAME="corpReferenceFormatValidationService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{referencesModel:"<"+o+"Model",referencesOptions:"<"+o+"Options",fromCountry:"=_}function c(){a()||m.model.charges.push({typeCode:null,value:null})}function s(e){m.model.charges.splice(e,1)}function l(){return(m.productList||[]).map(function(e){var n=e.indiaCustomsInvoiceProduct;return t.getItemAmountWithDiscount(n)*t.getIgstPercentMultiplier(n)}).reduce(function(e,t){return e+t},0)}function d(){return g&&m.isCsbv}function f(e,t){return t===e||!m.model.charges.some(function(t){return t.typeCode===e})}function p(e){return m.otherMonetaryCharges.filter(function(t){return f(t.typeCode,e.typeCode)})}var m=this,_=5,g=!1;Object.assign(m,{otherMonetaryCharges:[],$onInit:i,$onChanges:u,isChargesLimitReached:a,isTotalIgstPaymentVisible:d,getTotalIgstPayment:l,addCharges:c,removeCharges:s,getFilteredMonetaryCharges:p})}i.$inject=["component"],r.$inject=["configService","customsDeclarationService","userDependentConfigurationService"],t.__esModule=!0,t["default"]=i,t.InvoiceValueController=r;var o=i.NG_NAME="ewfInvoiceValue"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(33),o=i(r),u=n(1937),a=i(u),c=n(1938),s=i(c),l=n(1939),d=i(l),f=angular.module("item-reference",[o["default"]]);f.directive(a["default"].NG_NAME,a["default"]).directive(d["default"].NG_NAME,d["default"]).service(s["default"].NG_NAME,s["default"]),t.module=f,t["default"]="item-reference"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"item-reference.html",controller:r,controllerAs:"itemReferenceCtrl",bindings:{model:"="+o,key:"<"+o+"Key",fromCountry:"=ge.model.shipmentLineItemsMaxCount&&pe()}function M(){var e=N(),t=$(),n=!ge.isDescribeTypeCustomInvoice&&1===e.length,i=!ge.isDescribeTypeCustomInvoice&&T();n&&z(e[0]),i&&z(t[0])}function y(){ge.model.isAddLineItemButtonVisible=!pe(),ge.isDescribeTypeCustomInvoice&&ge.shipmentTypeModel.isLineItemMandatory&&(ge.model.isAddLineItemButtonVisible=!1),ge.shipmentTypeModel.customsInvoiceItemDetailType||(ge.model.isAddLineItemButtonVisible=!1)}function D(e){e&&ge.toCountry&&k()&&G()}function O(e){e&&(t.getCurrencyFractionLength(ge.currentCurrency).then(function(e){return Ae=e}),e.isFirstChange()||(ge.model.maxDeclaredValue&&_(ge.model.maxDeclaredValue,e.previousValue).then(function(e){return ge.model.maxDeclaredValue=Number(e)}),P()&&g()))}function P(){return ge.isCsbv&&ge.model.maxCsbvShipmentValue}function b(){if(ge.fromCountry&&ge.toCountry){if(!ge.model.currentCurrency)return void R().then(m);m(),ge.isCsbv&&g()}}function R(){return t.getCurrencies(ge.fromCountry,ge.toCountry,{},ge.isCsbv).then(function(e){var t=e.declared;ge.model.currenciesList=t.declaredCurrencies,ee(t.defaultDeclaredCurrency)})}function L(){t.getSomParameters(ge.fromCountry,ge.toCountry).then(function(e){Object.assign(ge.model,e),ge.model.isUnitsMismatched=ge.model.shipperCountrySom!==ge.model.userProfileCountrySom,n.setWeightUnits(ge.model),ge.somParametersLoaded=!0})}function G(){t.getEstimatedDutiesAvailability(ge.toCountry).then(function(e){return he=e})}function U(){return ge.shipmentTypeModel.isDescribeTypeCustomInvoice()&&!ge.isEditInvalidUploadedLineItemView&&!F()}function F(){return!pe()||!he||!k()}function w(){var e=ge.model,t=e.arePrecalculatedDutiesAllowed,n=e.arePrecalculatedDutiesEnabled;return t&&n}function k(){return!ge.hideEstimateDutiesCheckbox&&!ge.userProfile}function j(e){ge.model[Se]=t.getCalculatedTotalWeight(ge.model,e).sumRaw}function V(){return n.isMultipleProducts(ge.model)}function B(){var e=$();return!ge.isDescribeTypeCustomInvoice||e.length>1}function $(){return ge.model.productList.filter(function(e){return!e.fromUpload})}function x(){var e={shipmentTypeModel:ge.shipmentTypeModel,briefAttributes:ge.briefAttributes,isEditInvalidUploadedLineItemView:ge.isEditInvalidUploadedLineItemView};return n.isSummarizeFieldVisible(e)}function H(){return n.isDescribeFieldVisible(ge.shipmentTypeModel)}function Y(){n.addItemAttributesRow(ge.model),n.enableSimplifiedView(ge.model.productList)}function K(e){if(q())return void de();t.copyItemAttributesRow(e,ge.model.productList),n.enableSimplifiedView(ge.model.productList),W()}function W(){ge.model.eeiTrigger=!0}function q(){var e=ge.model,t=e.shipmentLineItemsMaxCount,i=e.productList;return n.isLineItemMaximumLimitExceeded(t,i)}function z(e){if(X(e),t.deleteItemAttributesRow(e,ge.model.productList),W(),1===ge.model.productList.length){var n=ge.model.productList[0];n.fromUpload||(n.isSimplifiedViewEnabled=!1)}}function X(e){Ie=Ie.filter(function(t,n){return ge.model.productList.indexOf(e)!==n})}function Q(){return t.getWeightConvertionRate(ge.model)}function Z(){return n.getWeightUnits(ge.model,null,ge.userProfile)}function J(){ge.model.isCurrencySelectedByUser=!0}function ee(e){ge.isCsbv&&t.isRestoredShipment()&&J(),ge.isCsbv&&ge.model.isCurrencySelectedByUser||(ge.model.currentCurrency=e)}function te(){return!!ge.shipmentTypeModel.customsInvoiceItemDetailType&&!ge.briefSummary&&!ge.isInvoiceValueSectionNotVisible}function ne(){return!ge.isDescribeTypeCustomInvoice&&!ge.isRateAndQuoteFlow}function ie(){ge.model.productList=re(),ge.model.totalDeclaredValue=ge.model.initialTotalDeclaredValue,n.setLineItemsShowed(!1)}function re(){return ge.model.productList.filter(function(e){return e.fromUpload})}function oe(e,t,i){if(!ge.isRateAndQuoteFlow){var r={shipmentDescription:ge.documentDescription,fromCountryCode:ge.fromCountry,fromServiceCode:ge.fromServiceCode,toCountryCode:ge.toCountry,toServiceCode:ge.toServiceCode,shipmentPackagingType:ge.shipmentType,model:ge,ngModelCtrl:e.ngModelCtrl,isMandatory:t,isDutiable:ge.isDutiable,intraEuDutiableStatus:ge.intraEuDutiableStatus,isMailingListShipment:ue(),eventRelatedTarget:i.relatedTarget};n.invokeGssValidationForDescription(r)}}function ue(){return!(!ge.mailingListContacts||!ge.mailingListContacts.length)}function ae(){return ge.isEnhancedInvoice&&!se()}function ce(){return ge.isDescribeTypeCustomInvoice&&!ge.isEnhancedInvoice&&!se()}function se(){var e={isMailingListShipment:ue(),fromCountryCode:ge.fromCountry,toCountryCode:ge.toCountry,intraEuDutiableStatus:ge.intraEuDutiableStatus,isDutiable:ge.isDutiable,shipmentPackagingType:ge.shipmentType};return n.isScreeningMustBeSkipped(e)}function le(){ge.model.estimateDuties&&(ge.model.arePrecalculatedDutiesEnabled=!1)}function de(){ge.lineItemLimitExceeded=!0}function fe(){return n.getNumberOfInvoicesAvailable(ge.model.shipmentLineItemsMaxCount,ge.model.productList)}function pe(){return n.isManuallyAddedLineItemsFound(ge.model.productList)}function me(){return ge.isRateAndQuoteFlow||ge.isEditInvalidUploadedLineItemView||pe()}function _e(){return n.isOnlyUploadedLineItemsFound(ge.model.productList)}var ge=this,Ee="quantity",Se="totalWeight",Ce=void 0,he=void 0,Ie=[],Ae=void 0;Object.assign(ge,{$doCheck:S,$onChanges:h,$onInit:i,isMultipleProducts:V,isDeleteButtonVisible:B,isSummarizeFieldVisible:x,isDescribeFieldVisible:H,isEstimateDutiesCheckboxExposed:U,isEstimateDutiesCheckboxDisabled:w,isShipmentTypePackage:function(){function e(){return t.isShipmentTypePackage(ge.shipmentType)}return e}(),isMailingListShipment:ue,isInvoiceValueDisplayed:te,isCancelItemEntryVisible:ne,isEnhancedDescriptionHeaderVisible:ae,isLineItemHeaderVisible:ce,isLineItemMaximumLimitExceeded:q,isLineItemsShowed:d,addItemAttributesRow:Y,copyItemAttributesRow:K,deleteItemAttributesRow:z,cancelItemEntry:ie,showDisplayLineItemAttributes:me,getWeightConvertionRate:Q,getWeightUnits:Z,getNumberOfInvoicesAvailable:fe,setLineItemsShowed:l,onSetWeight:p,onSelectCurrency:J,onDescriptionBlur:oe,onEstimateDutiesChange:le,filterManualLineItem:E,useExportHsCode:undefined,defaultQuantityUnit:"",isProductCatalogVisible:!1,product:{},somParametersLoaded:!1,PATTERNS:{dimension:null},alertTypes:{productAdded:!1},inrCurrency:u["default"].INR,lineItemLimitExceeded:!1})}i.$inject=["component"],r.$inject=["$q","itemAttributesHandlerService","itemAttributesService"],t.__esModule=!0,t["default"]=i,t.ItemAttributesCtrl=r;var o=n(418),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfItemAttributes"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){"ngInject";function i(e){u(e.productList),P(e),e.eeiTrigger=!0}function r(e){return!e||!e.length}function u(e){e.forEach(function(e){!e.fromUpload&&e.isUpdated&&(e.isSimplifiedViewEnabled=!0)})}function c(e,t,n){var i=e.itemAttributes,r=Object.assign({},{reasonForExport:i.shippingPurpose?i.shippingPurpose.reasonForExport:null,invoiceType:i.shippingPurpose?i.shippingPurpose.invoiceType:null}),u=o({totalPiece:i.totalQuantity,totalWeight:E(i,"weight","totalWeight"),totalDeclaredValue:i.totalDeclaredValue,weightUnits:i.weightUnits,currencyCode:i.currentCurrency,estimateDuties:i.estimateDuties,gstData:i.gstData},m(i),{reasonForExport:r.reasonForExport,invoiceType:r.invoiceType});return u.items=l(e)?S(e,t,n):[],p(i,u),u}function l(e){return e.isCustomsInvoiceFullyAvailable()||e.itemAttributes.isCustomsInvoiceInitialization&&e.isLineItemsAvailable()}function f(e){var t=e.extendedLineItemsMaxCount,n=e.shipmentLineItemsMaxCount,i=e.productList;return t&&i.length>n&&i.length<=t}function p(e,t){var n=N(e);n&&(t.involvedParties=n)}function m(e){return _(e)?{calculatedDuties:g(e),precalculatedDutiesAndTaxes:null}:{calculatedDuties:!0,precalculatedDutiesAndTaxes:{duties:e.precalculatedDuties.duties||null,taxes:e.precalculatedDuties.taxes||null}}}function _(e){var t=e.precalculatedDuties,n=e.arePrecalculatedDutiesAllowed,i=e.arePrecalculatedDutiesEnabled;return Object.values(t).every(function(e){return!e})||!n||!i}function g(e){return!e.arePrecalculatedDutiesAllowed&&null}function E(e,t,n){return e.productList.some(function(e){return""!==e[t]})?e[n]:null}function S(e,t,n){var i=angular.copy(e.getLineItemsBasedOnInvoiceType());return i&&i.length?(i.forEach(function(i){i.description=i.description&&i.description.slice(0,255),i.generatedDescription=i.generatedDescription&&i.generatedDescription.slice(0,255),i.fromUpload=!!i.fromUpload,w(i,t),V(i),B(i),Y(i,n),K(i,e)}),i):i}function C(e,t){t.shippingPurpose=null,t.canEnableDescribeSection=!1,h(e)?(t.shippingPurpose={},t.shippingPurpose.reasonForExport=e.reasonForExport,t.shippingPurpose.invoiceType=e.invoiceType):e.reasonForExport||e.invoiceType||(t.canEnableDescribeSection=!0)}function h(e){return e.reasonForExport||e.invoiceType}function I(e){var t=e.invoice,n=e.model,i=e.fromCountry;t&&(Object.assign(n,{totalDeclaredValue:t.totalDeclaredValue||n.totalDeclaredValue,totalQuantity:t.totalPiece,totalWeight:t.totalWeight,weightUnits:t.weightUnits,estimateDuties:t.estimateDuties,gstData:X(t.gstData),productList:[],precalculatedDuties:X(t.precalculatedDutiesAndTaxes),arePrecalculatedDutiesEnabled:t.calculatedDuties}),C(t,n),A(t,n),t.items&&(v(t),t.items.forEach(function(e){return P(n,e)}),ce(n.productList,i)))}function A(e,t){var n=e.involvedParties;if(n){var i=n.receiver,r=i===undefined?{}:i;t.country.code2=r.countryOfUltimateDestination,t.ultimateConsignee=r.ultimateConsignee}}function v(e){e.items.sort(function(e,t){return!e.uploadedFromFile&&t.uploadedFromFile?1:e.uploadedFromFile&&!t.uploadedFromFile?-1:!!e.uploadedFromFile==!!t.uploadedFromFile?0:void 0})}function N(e){var t=e.country.code2||null,n=e.ultimateConsignee,i={countryOfUltimateDestination:t,ultimateConsignee:n};if(t||n)return{receiver:i}}function T(e){M(e),e.totalDeclaredValue="",e.shippingPurpose=null}function M(e){e.productList=[L(e)],e.currentCurrency=e.defaultCurrency||e.currentCurrency}function y(e){return e.length>0&&e.every(function(e){return e.fromUpload})}function D(e){return e.some(function(e){return!e.fromUpload})}function O(t,n){D(t.productList)||(M(t),e.populateDefaultLineItem(o({model:t},n)))}function P(e,t){$(t);var n=b(e,t);n.additionalItemReferencesModel=(n.additionalItemReferences||[]).reduce(function(e,t){var n,i=t.referenceTypeCode,r=t.referenceValue;return Object.assign(e,(n={},n[i]=r,n))},{}),e.productList.push(n)}function b(e,t){return Object.assign(L(e),X(t),o({generatedDescription:null},R(t)))}function R(e){var t={fromUpload:e&&e.uploadedFromFile};return t.fromUpload&&(t.uploadCommodityCode=e.importCommodityCode),t}function L(e){return{id:"",name:"",description:"",generatedDescription:null,quantity:1,quantityUnits:"",value:"",currency:e.currentCurrency,weight:"",importCommodityCode:"",exportCommodityCode:"",countryName:"",countryCode:null,isProductListVisible:!1,isSearchCommodityInsteadValidation:{IMPORT:!1,EXPORT:!1},isCommodityCodeValid:{IMPORT:!0,EXPORT:!0},commodityDisable:{},som:null,indiaCustomsInvoiceProduct:{},additionalItemReferencesModel:{},rowId:G()}}function G(){return++Se}function U(e,t){e.weightUnits=t||F(e),e.productList.forEach(function(t){return t.som=e.weightUnits===e.weightSom[a["default"].IMPERIAL]?a["default"].IMPERIAL:a["default"].METRIC})}function F(e,t,n){var i=n?e.userProfileCountrySom:e.shipperCountrySom;return t&&(i=i===a["default"].METRIC?a["default"].IMPERIAL:a["default"].METRIC),e.weightSom[i]}function w(e,t){if(!t)return void(e.indiaCustomsInvoiceProduct=null);e.indiaCustomsInvoiceProduct&&(k(e),e.indiaCustomsInvoiceProduct.commodityCode=e.exportCommodityCode||null)}function k(e){e.indiaCustomsInvoiceProduct.totalItemValue=e.indiaCustomsInvoiceProduct.totalItemValue||0,e.indiaCustomsInvoiceProduct.itemFOBValueINR=e.indiaCustomsInvoiceProduct.itemFOBValueINR||0}function j(e,t){return e.isShipmentPurposeVisible||t?e.itemAttributes.shippingPurpose:{}}function V(e){e.isAddItemReference||(e.referenceTypeCode=null,e.referenceNumber=null)}function B(e){if(!e.additionalItemReferencesModel)return void(e.additionalItemReferences=[]);e.additionalItemReferences=Object.entries(e.additionalItemReferencesModel).filter(function(e){return e[1]}).map(function(e){return{referenceTypeCode:e[0],referenceValue:e[1]}}),delete e.additionalItemReferencesModel}function $(e){e&&(e.referenceNumber||e.referenceTypeCode)&&(e.isAddItemReference=!0)}function x(e){Ce=e}function H(){return Ce}function Y(e,t){t||(e.licenseType=null,e.licenseNumber=null,e.eccn=null)}function K(e,t){t.itemAttributes.isVatTaxIdVisible||delete e.taxIdPaid}function W(e){return t.invokeGssValidationForDescription(e)}function q(e){return t.invokeGlobalScreeningValidation(e)}function z(e){return t.isScreeningMustBeSkipped(e)}function X(e){return e||{}}function Q(e,t){var n=t.customsInvoiceProductList,i=n===undefined?[]:n,r=e.productList,o=e.isItemReferenceMandatory,u=ue(e);i.forEach(function(t){t.fromUpload=!0,t.importCommodityCode=t.uploadCommodityCode=t.exportCommodityCode,t.isAddItemReference=Z(o,t),ae({isWeightNeedConversion:e.isUnitsMismatched,property:d["default"].WEIGHT_PROP_NAME,convertedProperty:d["default"].CONVERTED_WEIGHT_PROP_NAME,inputWeight:t.weight,model:t,conversionRate:u,conversionPrecision:e.shipperCountryConversionPrecision})}),i.length&&ee(e,i[0].currency),r.push.apply(r,i)}function Z(e,t){var n=t.referenceTypeCode,i=t.referenceNumber;return!!(e||n||i)}function J(e){e.isUploadedCurrencyApplicable()&&ee(e.itemAttributes)}function ee(e){var t=arguments.length<=1||arguments[1]===undefined?e.uploadedCurrency:arguments[1];e.currentCurrency=e.uploadedCurrency=t}function te(e,t){if(e&&e.items){var n=e.items.some(function(e){return e.uploadedFromFile});e.providedByUser||(t.customsInvoiceItemDetailType=n?s["default"].UPLOAD:s["default"].DESCRIBE),ne(t,n)}}function ne(e,t){t&&(e.itemAttributes.uploadedCurrency=e.itemAttributes.currentCurrency)}function ie(e,t){return t.length>=e}function re(e,t){return e-t.length}function oe(t){return e.getConvertedWeight(t)}function ue(t){return e.getWeightConversionRate(t)}function ae(t){e.setWeightProperties(t)}function ce(t,n){e.validateAndSetSimplifiedViewFlag(t,n)}function se(e,t){if(e.templateItems.items){var n=e.templateItems.items.some(function(e){return e.uploadedFromFile});t.customsInvoiceItemDetailType=n&&s["default"].UPLOAD||e.templateItems.items.length&&s["default"].DESCRIBE||null}}function le(e,t){n.applyUnitsOfMeasurement(e,t)}function de(e,t){return!e.isExtendedFlowEnabled&&t.isExtendedFlowEnabled}function fe(e){return!e.getIncludeCustomsInvoiceAnyway()&&!e.isCustomsInvoiceFullyAvailable()&&(!ge(e)||e.isShipmentTypeDocument()&&!e.isCommercialInvoiceVisibleForDocuments())}function pe(e){var t=e.shipmentTypeModel,n=e.briefAttributes,i=e.isEditInvalidUploadedLineItemView;return t.isShipmentTypePackage()&&t.getLineItemsBasedOnInvoiceType().length>1&&!n&&!i}function me(e){return e.isShipmentTypeDocument()&&_e(e.itemAttributes)}function _e(e){return e.productList.length>1}function ge(e){return H()&&e.itemAttributes.productList&&e.itemAttributes.productList.length}function Ee(e){return e.filter(function(e){var t=e.uploadedFromFile,n=e.fromUpload;return!t&&!n})}var Se=0,Ce=!1;return{getCustomsInvoiceData:c,getWeightUnits:F,getShippingPurpose:j,getNumberOfInvoicesAvailable:re,getConvertedWeight:oe,getWeightConversionRate:ue,getAddItemReferenceFlag:Z,generateItemAttributesRow:L,setCustomsInvoiceData:I,setWeightUnits:U,setLineItemsShowed:x,setCurrentCurrencyToUploadedCurrencyIfNeeded:J,setWeightProperties:ae,resetModel:T,resetProductList:M,initProductList:O,addItemAttributesRow:P,incrementRowId:G,invokeGssValidationForDescription:W,invokeGlobalScreeningValidation:q,processInvoiceItemsSuccess:Q,restoreCustomsInvoiceItemDetailType:te,enableSimplifiedView:u,addItemAttributes:i,restoreCustomsInvoiceType:se,validateAndSetSimplifiedViewFlag:ce,applyUnitsOfMeasurement:le,isLineItemsShowed:H,isScreeningMustBeSkipped:z,isLineItemMaximumLimitExceeded:ie,isManuallyAddedLineItemsFound:D,isOnlyUploadedLineItemsFound:y,isProductListEmpty:r,isExtendedFlowEnabled:f,isReturnLabelExtendedFlowEnabled:de,isNotFullCustomsInvoiceNeeded:fe,isLineItemsAvailable:l,getManuallyAddedLineItems:Ee,isSummarizeFieldVisible:pe,isDescribeFieldVisible:me,isMultipleProducts:_e}}r.$inject=["itemAttributesHelperService","globalScreeningValidationService","unitsOfMeasurementService"],t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function r(e,t,n,r,o){"ngInject";function u(e){return o.getWeightConversionRate(e)}function a(e){return o.getConvertedWeight(e)}function c(e,t){var n=angular.copy(e);n.generatedDescription=null,n.rowId=o.incrementRowId(),delete n.saved,t.splice(t.indexOf(e)+1,0,n)}function s(e,t){var n=t.indexOf(e);t.splice(n,1)}function l(e,n){return t.saveProduct(e,n)}function d(e){return t.isUseExportHsCode(e)}function f(){return n.getUserCountry()}function p(e,t,n){var i=n.map(function(e){return e.indiaCustomsInvoiceProduct});e.totalShipment=m(i),e.totalFOBValue=r.calculateTotal(i,"itemFOBValue"),e.totalFOBValueINR=r.calculateTotal(i,"itemFOBValueINR"),e.totalValueAfterTax=_(i,t)}function m(e){return r.calculateTotal(e,"totalItemValue")-r.calculateTotal(e,"discountAmount")}function _(e,t){var n=r.calculateTotal(e,"itemTotalAfterTax"),i=t?r.calculateTotal(t.charges,"value"):0;return h(n+i,[n,i])}function g(e){return t.getMaxCsbvShipmentValue(e)}function E(){return n.hasDhlAccounts()}function S(e,t,n){return r.calculateTotal(e,t,n)}function C(e,t){return r.calculateTotalShipment(e,t)}function h(e,t){return r.getResultWithPrecision(e,t)}function I(e,t){var n=arguments.length<=2||arguments[2]===undefined?"weight":arguments[2],i=S(t,n,"quantity");return{sumRaw:i,sumRounded:+i.toFixed(e.userProfileCountryConversionPrecision)}}function A(e){return r.getCurrencyFractionLength(e)}function v(t){var n=t.userProfile,r=i(t,["userProfile"]);return n?e.when(!0):o.invokeGssValidationForDescription(r)}function N(e){var t=e.productList,n=e.useExportHsCode,i=e.isGlobalMilitary,r=e.isCsbv;t.forEach(function(e){T(n,i,r)&&(e.exportCommodityCode=null),n&&e.fromUpload&&(e.importCommodityCode=null)})}function T(e,t,n){return angular.isDefined(e)&&!e&&!t&&!n}function M(e){o.setWeightProperties(e)}return{getWeightConvertionRate:u,getConvertedWeight:a,getUserCountry:f,getMaxCsbvShipmentValue:g,getResultWithPrecision:h,getCalculatedTotalWeight:I,getCurrencyFractionLength:A,setWeightProperties:M,isUseExportHsCode:d,hasDhlAccounts:E,copyItemAttributesRow:c,deleteItemAttributesRow:s,saveProduct:l,calculateCsbvTotals:p,calculateTotal:S,calculateTotalShipment:C,invokeGssValidationForDescription:v,resetForbiddenCommodityCode:N}}r.$inject=["$q","itemAttributesResource","userService","itemAttributesCalculationService","itemAttributesService"],t.__esModule=!0,t["default"]=r,r.NG_NAME="itemAttributesComponentService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t,n,i){return e(t,n,i)}function o(e,t){i.handleChargesAndDeclaredValue(e,t)}function u(n,i){var r=angular.isDefined(i)?i:2,o=n.map(function(e){var n=e.value*e.quantity;return{value:t.getResultWithExactPrecision(n,r),quantity:1}});return e(o,"value","quantity")}function a(e,n){return t.getResultWithPrecision(e,n)}function c(e){return n.getCurrencyOptions(e).then(function(e){return e.fractionMaxLength})}return{calculateTotal:r,calculateTotalDeclaredValue:o,calculateTotalShipment:u,getResultWithPrecision:a,getCurrencyFractionLength:c}}i.$inject=["calculateTotalFilter","calculationService","decimalService","declaredValueService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="itemAttributesCalculationService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({controller:o,controllerAs:"productCtrl",bindings:{model:"="+l,eeiTrigger:"="+l+"EeiTrigger",currency:"="+l+"Currency",useExportHsCode:"<"+l+"UseExportHsCode",userProfileCountrySom:"="+l+"UserProfileCountrySom",fromCountry:"<"+l+"FromCountry",fromServiceCode:"<"+l+"FromServiceCode",toCountry:"<"+l+"ToCountry",toServiceCode:"<"+l+"ToServiceCode",shipmentPackagingType:"<"+l+"ShipmentPackagingType",isDutiable:"<"+l+"IsDutiable",intraEuDutiableStatus:"<"+l+"IntraEuDutiableStatus",searchMode:"<"+l+"SearchMode",som:"<"+l+"Som",estimateDuties:"<"+l+"EstimateDuties",index:"<"+l+"Index",isMultiple:"<"+l+"IsMultiple",isDeleteButtonVisible:"<"+l+"IsDeleteButtonVisible",weightUnits:"<"+l+"WeightUnits",weightConversionRate:"<"+l+"WeightConversionRate",conversionPrecision:"<"+l+"ConversionPrecision",unitsMismatched:"<"+l+"UnitsMismatched",currencies:"<"+l+"Currencies",userProfile:"<"+l+"UserProfile",onCopy:"&"+l+"OnCopy",onDelete:"&"+l+"OnDelete",briefAttributes:"<"+l+"BriefAttributes",isMailingListShipment:"<"+l+"IsMailingListShipment",onSetWeight:"&"+l+"OnSetWeight",isCsbv:"<"+l+"IsCsbv",isConversionError:"="+l+"IsConversionError",isOnlyInrCurrency:"&"+l+"IsOnlyInrCurrency",onSelectCurrency:"&"+l+"OnSelectCurrency",isVatTaxIdVisible:"<"+l+"IsVatTaxIdVisible",itemReferenceDefaults:"<"+l+"ItemReferenceDefaults",customsInvoiceType:"<"+l+"CustomsInvoiceType",isSsb:"<"+l+"IsSsb",isGlobalMilitary:"<"+l+"IsGlobalMilitary",isRateAndQuoteFlow:"<"+l+"IsRateAndQuoteFlow",isLineItemMaximumLimitExceeded:"<"+l+"LineItemMaximumLimitExceeded",shipmentTypeModel:"<"+l+"ShipmentTypeModel",isEditInvalidUploadedLineItemView:"o.model.maxCsbvShipmentValue}var o=this;Object.assign(o,{isDeclaredValueExceededRestriction:t,isDeclaredValueExceeded:n,isB2lDeclaredValueExceeded:i,isCsbvShipmentValueExceeded:r})}i.$inject=["component"],r.$inject=["totalDeclaredValueAlertService"],t.__esModule=!0,t["default"]=i,t.TotalDeclaredValueAlertController=r;var o=i.NG_NAME="ewfTotalDeclaredValueAlert"},function(e,t,n){"use strict";function i(e){"ngInject";function t(e){var t=i(e),n=e.userProfileCountry,r=e.maxDeclaredValue;return!n&&t>r}function n(e){var t=i(e);return e.restoredDeclaredValue!==t}function i(t){var n=t.totalDeclaredValue,i=t.arePrecalculatedDutiesAllowed,r=t.arePrecalculatedDutiesEnabled,o=t.precalculatedDuties,u=o.duties,a=o.taxes;return i&&r?e.calculateSum([n,u,a]):n}return{isDeclaredValueExceeded:t,isB2lDeclaredValueExceeded:n}}i.$inject=["calculationService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="totalDeclaredValueAlertService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"item-license-details.html",controller:r,controllerAs:"itemLicenseDetailsCtrl",bindings:{model:"="+o,fromCountry:"<"+o+"FromCountry"}})}function r(e){"ngInject";function t(){n()}function n(){e.getLicenseTypes(o.fromCountry).then(function(e){o.licenseTypes=e})}function i(){return e.getLicenseTypeInfo(o.model,o.licenseTypes).licenseNumberMandatority}function r(){return e.getLicenseTypeInfo(o.model,o.licenseTypes).licenseNumberMaxLength||u}var o=this,u=35;Object.assign(o,{licenseTypes:[],$onInit:t,getLicenseTypes:n,isLicenseTypeNumberRequired:i,getLicenseNumberMaxLength:r})}i.$inject=["component"],r.$inject=["itemLicenseDetailsService"],t.__esModule=!0,t["default"]=i,t.ItemLicenseDetailsController=r;var o=i.NG_NAME="ewfItemLicenseDetails"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t){return e.getSourceData(e.CI_KEYS.CI1449_LIST_GLOBAL_STANDARD_LICENSE_TYPES,t)}function n(e,t){return t.find(function(t){return t.licenseType.value===e.licenseType})||{}}return{getLicenseTypes:t,getLicenseTypeInfo:n}}i.$inject=["configService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="itemLicenseDetailsService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controllerAs:"itemActionsCtrl",controller:r,templateUrl:"item-attributes-item-actions.html",bindings:{model:"<"+a,currency:"<"+a+"Currency",fromCountry:"<"+a+"FromCountry",fromServiceCode:"<"+a+"FromServiceCode",index:"<"+a+"Index",intraEuDutiableStatus:"<"+a+"IntraEuDutiableStatus",isDutiable:"<"+a+"Dutiable",isMailingListShipment:"<"+a+"MailingListShipment",isMultiple:"<"+a+"Multiple",isDeleteButtonVisible:"<"+a+"IsDeleteButtonVisible",isLineItemMaximumLimitExceeded:"<"+a+"LineItemMaximumLimitExceeded",itemAttributesProductForm:"<"+a+"ItemAttributesProductForm",searchMode:"<"+a+"SearchMode",shipmentPackagingType:"<"+a+"ShipmentPackagingType",som:"<"+a+"Som",toCountry:"<"+a+"ToCountry",toServiceCode:"<"+a+"ToServiceCode",useExportHsCode:"<"+a+"UseExportHsCode",userProfile:"P.itemAttributes.shipmentLineItemsMaxCount&&o()}function o(){return P.customsInvoiceUploadModel&&!P.customsInvoiceUploadModel.isExtendedFlowEnabled&&P.isOnlyUploadedLineItemsFound}function u(){return P.isReturnLabel&&!P.isReturnPreinstalled}function a(){e.deleteFile(P.file.key).then(function(){S(),P.isCustomsInvoice?P.customsInvoiceUploadModel.state.existing.file=null:P.file=null,P.onFileDelete()})}function c(e){return!P.isCustomsInvoice&&!e}function s(e){return P.isCustomsInvoice&&(e||null!==P.uploadErrors)}function l(){return P.isCustomsInvoice?G:P.isAddressbook?L:R}function d(){var e=Boolean(P.isFileWithHeader),t={encoding:P.encoding,headerExists:e};return f()&&(t.contactKey=P.scheme&&P.scheme.shipperContactKey||P.existing.shipperContact.key),p()?m(t):(Object.assign(t,{importingSchemeSubtype:P.schemeSubtype,fieldDelimiter:P.fieldDelimiter,textDelimiter:P.textDelimiter}),t)}function f(){return P.scheme&&P.scheme.shipperContactKey||P.existing&&!P.existing.isShipperFromFile}function p(){return P.scheme&&P.scheme.id}function m(e){return e.schemeId=P.scheme.id,P.isDefaultScheme?(P.isAddressbook||(e.importingFileType=P.importingFileType),Object.assign(e,{fieldDelimiter:P.fieldDelimiter,textDelimiter:P.textDelimiter}),e):e}function _(){return"/api/file/"+P.file.key}function g(e,t,n){P.file=e,P.processedInBackground=n,t(),P.onFileUpload({$file:Object.assign(e,{encoding:P.encoding})}),P.onProcessInvoiceItems&&P.onProcessInvoiceItems({file:e})}function E(){var e=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],t=arguments.length<=1||arguments[1]===undefined?[]:arguments[1];if(t.length)return void(P.uploadErrors=t);P.uploadErrors=e.map(function(e){return{errorMessage:e}})}function S(){P.customsInvoiceUploadModel&&(P.customsInvoiceUploadModel.isUploadFileEdited=!1),P.uploadErrors=null}function C(){S(),P.onCancelUpload()}function h(e){e(d()),S()}function I(e){e(),S()}function A(e){return!(e!==b||!P.scheme||!P.scheme.id)}function v(){e.showMandatoryGuidelinesPopup(P.scheme)}function N(){return P.isCustomsInvoice&&!t.isLineItemUploadedAndProcessed(P.file,P.lineItemsProcessingError)}function T(){return P.isCustomsInvoice&&t.isLineItemUploadedAndProcessed(P.file,P.lineItemsProcessingError)}function M(){return P.isCustomsInvoice&&null!==P.file}function y(){return P.isCustomsInvoice&&P.isCustomsInvoiceUploadRequired&&!P.file&&(!P.uploadErrors||!P.uploadErrors.length)}function D(){return P.isCustomsInvoice&&!!P.uploadErrors&&!!P.uploadErrors.length}function O(){return e.getBrowseFileMessage()}var P=this,b="shipment-import.file-upload_alert_mandatory-column-amount-error",R="/api/importing/upload",L="/api/importing/contacts/upload",G="/api/importing/lineitems/upload";Object.assign(P,{onFileUpload:angular.noop,onFileDelete:angular.noop,onCancelUpload:angular.noop,onViewItems:angular.noop,onProcessInvoiceItems:angular.noop,fileSize:null,$onInit:n,$onChanges:i,deleteFile:a,getFormAction:l,getLinkForDownload:_,onUploadSuccess:g,onUploadError:E,upload:h,cancel:I,isGuidelinesLinkShown:A,showGuideLines:v,cancelUpload:C,shouldDisplayActionItems:c,shouldDisplayCancelBtn:s,shouldDisplayUploadHeader:N,isLineItemUploadedAndProcessed:T,isFileMissing:y,isFileInvalid:D,shouldShowCustomInvoiceActionItemSection:M,getBrowseFileMessage:O})}i.$inject=["component"],r.$inject=["shipmentImportFileUploaderDefaultService","customsInvoiceUploadService"],t.__esModule=!0,t["default"]=i,t.ShipmentImportFileUploaderController=r;var o=i.NG_NAME="ewfShipmentImportFileUploader"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return n.getMaxFileSize().then(function(e){return t("fileSize")(e,1024,"KB")})}function r(t){return e["delete"]("/api/importing/file/"+t,{preventNotFoundInterceptor:!0})}return{deleteFile:r,getMaxFileSize:i}}i.$inject=["$http","$filter","fileSizeFormatterResource"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportFileUploaderResource"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(t){var n=t.map(r);e.download({method:"POST",url:"/api/importing/lineitems/invalid/download",data:{invalidRecordData:n}})}function r(e){var i=e.errorMessage,r=e.errorParams,o=e.rowNumber;return{errorMessage:n(t.translate(i),r),rowNumber:o}}return{downloadErrorReport:i}}i.$inject=["downloadService","nlsService","replaceFilter"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportActionItemsService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"common/widgets/file-encoding-select/file-encoding-select.html",controller:r,controllerAs:"fileEncodingSelectCtrl",bindings:{selectedEncoding:"="+o,uploadType:"="+o+"UploadType",isDisabled:"a["default"]}function s(){return!(f.customsInvoiceUploadModel.isExtendedFlowEnabled||c()||f.isLineItemsWarningReportVisible||f.isUploadedLineItemCountExceeds)}function l(){t.downloadErrorReport(f.lineItemsProcessingError)}function d(){t.downloadErrorReport(f.customsInvoiceUploadModel.state.processShipmentWarnings)}var f=this;Object.assign(f,{isExpandedSoftValidationViewVisible:!1,expandValidationErrors:n,navigateToEditInvalidLineItemsView:i,downloadErrorReport:l,downloadWarningReport:d,isActionsAvailable:r,isActionButtonsAvailable:u,isLineItemsErrorsReportVisible:c,isInvalidLineItemsEditAllowed:s})}i.$inject=["component"],r.$inject=["$state","shipmentImportActionItemsService"],t.__esModule=!0,t["default"]=i,t.ShipmentImportCustomsInvoiceActionItemsController=r;var o=n(8),u=n(1984),a=function(e){return e&&e.__esModule?e:{"default":e}}(u),c=i.NG_NAME="ewfShipmentImportCustomsInvoiceActionItems"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=49},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"components/shipment-import/file-uploader/shipment-import-view-uploaded-file.html",controller:r,controllerAs:"shipmentImportViewUploadedFileCtrl",bindings:{file:"<"+o,isLineItemUploadedAndProcessed:"<"+o+"IsLineItemUploadedAndProcessed",isCustomsInvoice:"<"+o+"IsCustomsInvoice",onDeleteFile:"&"+o+"OnDeleteFile",onViewItems:"&"+o+"OnViewItems",isForceDeleteFile:"<"+o+"IsForceDeleteFile",customsInvoiceUploadModel:"<"+o+"CustomsInvoiceUploadModel",onForceDeleteFile:"&"+o+"OnForceDeleteFile",isUploadedLineItemCountExceeds:"<"+o+"IsUploadedLineItemCountExceeds"}})}function r(){"ngInject";function e(e){e.isForceDeleteFile&&i.isForceDeleteFile&&i.onForceDeleteFile&&(i.onDeleteFile(),i.onForceDeleteFile())}function t(e){return e&&null!==i.file}function n(){return i.isLineItemUploadedAndProcessed&&!i.customsInvoiceUploadModel.isExtendedFlowEnabled&&!i.isUploadedLineItemCountExceeds}var i=this;Object.assign(i,{$onChanges:e,shouldShowSection:t,isViewUploadedFileAllowed:n})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.ShipmentImportViewUploadedFileController=r;var o=i.NG_NAME="ewfShipmentImportViewUploadedFile"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){return t.deleteFile(e)}function i(){return t.getMaxFileSize()}function r(t){e.showMandatoryGuidelinesPopup(t)}function o(){return t.getBrowseFileMessage()}return{deleteFile:n,getMaxFileSize:i,showMandatoryGuidelinesPopup:r,getBrowseFileMessage:o}}i.$inject=["shipmentImportModalsService","shipmentImportFileUploaderService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportFileUploaderDefaultService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(e,t){Object.assign(e.schemes,t)}function i(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=e.schemes||{},n=t.defaultSchemes,i=n===undefined?[]:n,r=t.userSchemes,o=r===undefined?[]:r;return Boolean(i.length||o.length)}function r(){(arguments.length<=0||arguments[0]===undefined?{}:arguments[0]).selectedCollection=e.getParamFromUrl(f["default"].COLLECTION)}function o(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],n=e.schemes||{},i=n.userSchemes;return(i===undefined?[]:i).some(function(e){var n=e.id;return t.id===n})}function a(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],n=e.schemes||{},i=n.userSchemes,r=i===undefined?[]:i,o=r.find(function(e){return s(e,t)});o?Object.assign(o,t):r.push(t)}function s(e,t){var n=t.id,i=t.schemaLabel;return e.id===n||e.schemaLabel===i}function d(e){e.existing=(0,u["default"])()}function p(e){e.build=(0,c["default"])()}function _(e){Object.assign(e.build,{importingSchemeSubtype:null,schemaLabel:"",schemeFields:[],schemeColumns:[],schemeErrors:null}),S(e)}function g(e){e.manageScheme=(0,l["default"])()}function E(e){var t=e.manageScheme.scheme;e.manageScheme=Object.assign((0,l["default"])(),{scheme:t})}function S(e){e.processShipmentsErrors=null}function C(e){e.processingResult=null}function h(e,n,i){return t.getDelimiters(!0).then(function(t){i&&(e[n].importingFileType=t.importingFileType),Object.assign(e[n],{fieldDelimiter:t.fieldDelimiter,textDelimiter:t.textDelimiter}),e.defaultTextDelimiter=t.defaultTextDelimiter})}function I(e){return[m["default"].CSV,m["default"].TXT].includes(e)}function A(e,t){var n=e.errors,i=n===undefined?[]:n,r=e.errorDetails,o=r===undefined?[]:r;if(o.length)return void v(o,t);if(i.length){return void v(i.map(function(e){return{errorMessage:e}}),t)}v([e],t)}function v(e,t){t.processShipmentsErrors=e}return{hasExistingSchemes:i,initSchemes:n,initSelectedCollection:r,isUserScheme:o,pushUserScheme:a,clearExisting:d,clearBuild:p,clearBuildFileInfo:_,clearManageScheme:g,clearManageSchemeInfo:E,clearProcessShipmentsErrors:S,clearProcessingResult:C,getImportingDetailsAndApply:h,isImportingDetailsVisible:I,extractProcessShipmentsErrors:A}}r.$inject=["pathService","delimitersService"],t.__esModule=!0,t["default"]=r;var o=n(482),u=i(o),a=n(959),c=i(a),s=n(483),l=i(s),d=n(1),f=i(d),p=n(104),m=i(p);r.NG_NAME="shipmentImportStateService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){return e.showDialog({scope:t,templateUrl:"dashboard/address-book-popup.html"}).result}function i(){var n=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],i=n.importingSchemeSubtype,r=n.schemaLabel;return e.showDialog({controller:o["default"],controllerAs:"shipmentImportGuidelinesModalCtrl",resolve:{fields:function(){function e(){return t.getFields(i)}return e}(),schemeName:function(){function e(){return r}return e}()},templateUrl:"components/shipment-import/modals/shipment-import-guidelines-modal.html"}).result}return{openAddressBookPopup:n,showMandatoryGuidelinesPopup:i}}i.$inject=["modalService","shipmentImportFieldsService"],t.__esModule=!0,t["default"]=i;var r=n(1989),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="shipmentImportModalsService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return n.getMandatoryFields(e)}var r=this;Object.assign(r,{schemeName:t,getMandatoryFields:i})}i.$inject=["fields","schemeName","shipmentImportFieldsService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e){"ngInject";function t(t){return e["delete"](c+"/"+t,{preventNotFoundInterceptor:!0})}function n(){return e.get(c+"/shipment").then(function(e){return e.data})}function i(){return e.get(c+"/contact").then(function(e){return e.data})}function r(t){return e.put(c,t).then(function(e){return+e.data})}function o(t,n){return e.post(c+"/"+t,n,{preventNotFoundInterceptor:!0}).then(function(e){return+e.data})}function u(t){return e.get(c+"/"+t,{preventNotFoundInterceptor:!0}).then(function(e){return e.data})}function a(t,n,i,r){var o={fieldDelimiter:n,textDelimiter:i,charsetName:r};return e.get(c+"/file/"+t,{params:o}).then(function(e){var t=e.data,n=t.importingSchemeSections,i=n===undefined?[]:n,r=i[0];r=r===undefined?{}:r;var o=r.importingSchemeFields;return o===undefined?[]:o})}var c="/api/importing/scheme";return{deleteScheme:t,getShipmentSchemes:n,getContactSchemes:i,getSchemeFromFile:a,getScheme:u,updateScheme:o,addScheme:r}}i.$inject=["$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportSchemeResource"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return e.get("/api/importing/ftp/defaults").then(function(e){return e.data})}function i(t){return e.put("/api/importing/ftp-scheme",r(t)).then(function(e){return e.data})}function r(e){return t.toFtpModel(e)}return{getFtpScheme:n,updateFtpScheme:i}}i.$inject=["$http","shipmentImportFtpSchemeConverterService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportFtpSchemeResource"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(n,r){return n?t.get("/api/importing/fields",i(n,!r)).then(function(e){return e.data}):e.reject("Missed required parameter")}function i(e,t){var n={cache:!0,params:{importingSchemeSubtype:e}};return t&&Object.assign(n.params,{retrieveShipperAddressFromContact:t}),n}return{getFields:n}}i.$inject=["$q","$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportFieldResource"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,r,o){return o?e.post("/api/importing/"+r+"/background",t).then(function(e){return e.data}):e.post("/api/importing/"+r,t).then(function(e){var t=e.data;return i(t),n(t),t})}function n(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=e.successCount,n=t===undefined?0:t,i=e.totalCount,r=i===undefined?0:i,o=e.incompleteCount,u=o===undefined?0:o,a=e.hardInvalidRecords,c=a===undefined?[]:a;e.failedCount=r-n-u,e.notBeUploadedCount=c.length}function i(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=e.hardInvalidRecords,n=t===undefined?[]:t,i=e.softInvalidRecords,r=i===undefined?[]:i;e.invalidRecords=[].concat(r,n)}return{uploadShipments:t}}i.$inject=["$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentImportShipmentsResource"},function(e,t,n){"use strict";function i(){function e(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return r({schemeKey:e.id,skipHeader:e.skipHeader},t(e),{encoding:e.encoding})}function t(e){var t=e.importingFileType;return t===u["default"].XML?{importingFileType:t}:{textDelimiter:e.textDelimiter,fieldDelimiter:e.fieldDelimiter,importingFileType:t}}return{toFtpModel:e}}t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t0&&!e[t].name;)t--;return e.slice(0,t+1)}function o(){var e=arguments.length<=0||arguments[0]===undefined?[]:arguments[0],t=e[0];return t=t===undefined?{}:t,t.importingSchemeFields.map(function(e){var t=e.name,n=e.mandatoryInSingleLineScheme;return t===a.FIELDS.IGNORED?{name:a.FIELDS.NONE,mandatory:!1}:{name:t,mandatory:n}})}function c(e){var t=e.isShipperFromFile,n=e.shipperContact,i=n===undefined?{}:n;return t?{importingFrom:r.shipperTypes.FILE}:{importingFrom:r.shipperTypes.CONTACT,contactKey:i.key}}return{toImportingScheme:e,fromImportingScheme:t}}t.__esModule=!0,t["default"]=i;var r=n(961),o=n(17),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=n(285);i.NG_NAME="shipmentImportSchemeConverterService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";function t(e,t,o){var a=c(e),s=Object.assign(n(e),{fileId:e.file.key,charsetName:e.file.encoding,headerExists:e.isFileWithHeader});return t&&(s.collection=t),i(o,s,e,a),a?(s.truncateFields=e.isTruncateFields,s.duplicateContactAction=e.selectedUserDuplicateProcess,s):Object.assign(s,{shipperInfo:r(e),accountInfo:u(e)})}function n(t){var n=t.scheme;return n?{schemeId:n.id}:{importingScheme:e.toImportingScheme(t)}}function i(e,t,n,i){if(e){var r=n.fieldDelimiter,o=n.textDelimiter,u=n.importingFileType,a={fieldDelimiter:r,textDelimiter:o};i||(t.importingFileType=u),(i||u!==s["default"].XML)&&Object.assign(t,a)}}function r(e){var t=e.scheme,n=t===undefined?{}:t,i=e.isShipperFromFile,r=e.shipperContact,u=r===undefined?{}:r;return!n.shipperContactKey&&i?{importingFrom:o.shipperTypes.FILE}:{importingFrom:o.shipperTypes.CONTACT,contactKey:n.shipperContactKey||u.key}}function u(e){var t=e.isAccountFromFile,n=e.account,i=n===undefined?{}:n;return t?{importingFrom:o.accountTypes.FILE}:{importingFrom:o.accountTypes.ACCOUNT,accountId:i.key}}function c(e){return(e.scheme&&e.scheme.importingSchemeSubtype||e.importingSchemeSubtype)===a["default"].CONTACT}return{toProcessData:t}}r.$inject=["shipmentImportSchemeConverterService"],t.__esModule=!0,t["default"]=r;var o=n(961),u=n(286),a=i(u),c=n(104),s=i(c);r.NG_NAME="shipmentImportShipmentsConverterService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function u(e,n){return t.getFields(e,n).then(function(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=e.fields,n=t===undefined?[]:t;return i.sortBy(n,["order"]),E.getTranslatedLabels(n)})}function a(e,t){return n.getTranslation(e).then(function(e){return t&&e+" "+r.SHIPMENT_IMPORT.MANDATORY_LABEL||e})["catch"](function(){return e})}function c(t){return e.all(t.map(function(e){return a(e.nls,e.mandatory)})).then(function(e){return t.map(function(t,n){if(t.nls)return Object.assign(t,{translatedLabel:e[n].trim()})})})}function s(e){return e.filter(function(e){return e.mandatory})}function l(e,t){return t===o["default"]?e:e.filter(function(e){var n=e.translatedLabel;return _((n===undefined?"":n).trim(),t)})}function d(e){return{mandatory:e.mandatory,translatedLabel:e.translatedLabel,name:e.name,order:e.order,nls:e.nls}}function f(e,t){return![e,t].includes(o["default"])&&e!==t}function p(e,t){return e.findIndex(function(e){return e.name===t.name})}function m(e,t){return e.find(function(e){return e.name===t})}function _(e,t){return e.substr(0,t.length).toLowerCase()===t.toLowerCase()}function g(e,t){e&&a(e.nls,t).then(function(n){e.translatedLabel=n,e.mandatory=t})}var E=Object.assign(this,{getFields:u,getTranslatedLabels:c,getMatchingFields:l,getMandatoryFields:s,getSelectedField:d,isFieldChanged:f,findFieldIndex:p,findField:m,getTranslationWithMandatoryMark:a,updateField:g})}i.$inject=["$q","shipmentImportFieldResource","nlsService","sortService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(256),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="shipmentImportFieldsService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){var t=arguments.length<=0||arguments[0]===undefined?[]:arguments[0];return e.getFtpScheme().then(function(e){var i=e.ftpEnabled,r=e.schemeKey,o=e.skipHeader;return i?n(t,r,o):null})}function n(e,t,n){var i=e.find(function(e){return e.id===t});if(i)return r({},i,{skipHeader:n})}return{getFtpScheme:t}}i.$inject=["shipmentImportFtpSchemeResource"],t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;tu["default"]}function l(e){t.onUploadSettingsChange(e,K.customsInvoiceUploadModel)}function d(e,t){var n=U(t);K.customsInvoiceUploadModel.beginInitialization(n.encoding,e),i.getImportingDetailsAndApply(K.customsInvoiceUploadModel.state).then(function(){return K.customsInvoiceUploadModel.completeInitialization(n)})}function f(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];K.processing=!0,K.uploadFailureMessage="",K.customsInvoiceUploadModel.hideForceFileDeleteAlert();var n={customsInvoiceUploadModel:K.customsInvoiceUploadModel,fileId:e.key,toCountry:K.toCountry,fromCountry:K.fromCountry};t.processItemUpload(n).then(m)["catch"](p)["finally"](function(){return K.processing=!1})}function p(e){K.customsInvoiceUploadModel.state.existing.file=null,K.uploadFailureMessage=i.getUploadFailureMessage(e)}function m(e){var t=e.data,n=K.shipmentTypeModel.itemAttributes,i=n.shipmentLineItemsMaxCount,r=n.currenciesList,o=n.extendedLineItemsMaxCount,u=n.productList;S(i);var a=t.customsInvoiceProductList;return a.length?(E({productList:a,extendedLineItemsMaxCount:o,shipmentLineItemsMaxCount:i}),o&&a.length>o?(K.isUploadedLineItemCountExceeds=!0,void S(o)):g({extendedLineItemsMaxCount:o,shipmentLineItemsMaxCount:i,uploadedLineItemsList:a,manuallyAddedLineItemsList:u})&&!K.customsInvoiceUploadModel.isExtendedFlowEnabled?void(K.isUploadedLineItemCountExceeds=!0):h(a,r)?void(K.isUploadedCurrencyNotSupported=!0):void _(t)):void(K.isUploadedFileInvalid=!0)}function _(t){e.processInvoiceItemsSuccess(K.shipmentTypeModel.itemAttributes,t),C(t)}function g(e){var t=e.shipmentLineItemsMaxCount,n=e.manuallyAddedLineItemsList;return e.uploadedLineItemsList.length+n.length>t}function E(t){if(e.isExtendedFlowEnabled(t)){K.customsInvoiceUploadModel.enableExtendedFlow();var n=K.shipmentTypeModel.itemAttributes.productList;e.isManuallyAddedLineItemsFound(n)&&(K.shipmentTypeModel.itemAttributes.productList=n.filter(function(e){return e.fromUpload}),K.customsInvoiceUploadModel.isExtendedFlowDroppedManualLineItems=!0)}}function S(e){K.customsInvoiceUploadModel.state.shipmentLineItemsMaxCount=e}function C(t){if(!K.addressDetailsModel)return void I(t);var n={shipmentTypeModel:K.shipmentTypeModel,addressDetailsModel:K.addressDetailsModel,lineItemUploaded:!0};e.invokeGlobalScreeningValidation(n).then(function(){i.handleGlobalScreeningSoftValidation(t,K.shipmentTypeModel.itemAttributes.productList),I(t)})}function h(e,t){return e.some(function(e){var n=e.currency;return!t.includes(n)})}function I(t){e.setWeightUnits(K.shipmentTypeModel.itemAttributes);var n={invoiceUploadResponse:t,customsInvoiceUploadModelState:K.customsInvoiceUploadModel.state,isItemReferenceMandatory:K.shipmentTypeModel.itemAttributes.isItemReferenceMandatory};i.processSoftValidation(n),A(),K.fileUploadSuccess=!t.hardInvalidRecords.length&&!t.softInvalidRecords.length}function A(){K.onDisplayLineItems&&K.onDisplayLineItems()}function v(){K.customsInvoiceUploadModel.clearFile()}function N(){var e=K.customsInvoiceUploadModel.state;e.processShipmentsErrors=e.processShipmentWarnings=null}function T(){K.shipmentTypeModel.itemAttributes.productList=K.shipmentTypeModel.itemAttributes.productList.filter(function(e){return!e.fromUpload}),K.shipmentTypeModel.resetUploadedCurrency(),N(),M(),y()}function M(){K.isUploadedLineItemCountExceeds=!1,K.isUploadedFileInvalid=!1,K.isUploadedCurrencyNotSupported=!1,Object.assign(K.customsInvoiceUploadModel,{isExtendedFlowEnabled:!1,isExtendedFlowDroppedManualLineItems:!1})}function y(){K.shipmentTypeModel.itemAttributes.totalShipment=n.calculateTotalShipment(K.shipmentTypeModel.itemAttributes.productList,q),K.shipmentTypeModel.itemAttributes.totalQuantity=n.calculateTotal(K.shipmentTypeModel.itemAttributes.productList,"quantity"),n.calculateTotalDeclaredValue(K.shipmentTypeModel.itemAttributes,K.otherChargesModel)}function D(e){var n={customsInvoiceUploadModel:K.customsInvoiceUploadModel,itemAttributesModel:K.shipmentTypeModel.itemAttributes,toCountry:K.toCountry,fileName:e};t.previewCustomsInvoiceItems(n)}function O(){var e=G(),n=e.file,i=e.processShipmentsErrors;return t.isLineItemUploadedAndProcessed(n,i)}function P(){return i.isImportingDetailsVisible(K.customsInvoiceUploadModel.state.existing.importingFileType)}function b(){return!K.shipmentTypeModel.itemAttributes.productList.length}function R(){return K.shipmentTypeModel.itemAttributes.shipmentLineItemsMaxCount&&K.isCustomsInvoiceUploadVisible}function L(){var e=G(),n=e.file,i=e.processShipmentsErrors;return t.shouldDisplayActionItems(n,i)}function G(){var e=K.customsInvoiceUploadModel.state;return{file:e.existing.file,processShipmentsErrors:e.processShipmentsErrors}}function U(e){var n=t.getLocalStorageConfig(),i={};return["encoding","textDelimiter","importingFileType","fieldDelimiter"].forEach(function(t){i[t]=e[t]||n[t]||""}),i}function F(){return K.itemAttributes.isAddLineItemButtonVisible&&!K.shipmentTypeModel.isDescribeTypeCustomInvoice()&&w()}function w(){return e.isOnlyUploadedLineItemsFound(K.itemAttributes.productList)}function k(){if(e.isProductListEmpty(K.itemAttributes.productList))return void j();e.addItemAttributes(K.itemAttributes)}function j(){e.initProductList(K.itemAttributes),K.itemAttributes.initialTotalDeclaredValue=K.itemAttributes.totalDeclaredValue,K.itemAttributes.isAddLineItemButtonVisible=!1}function V(){i.uploadCorrectedFile(K.customsInvoiceUploadModel.state.existing.file.key).then(function(){K.uploadErrors=null,K.customsInvoiceUploadModel.state.existing.file=null,T()})}function B(){return null!==K.customsInvoiceUploadModel.state.existing.file}function $(){return F()&&K.shipmentTypeModel.isUploadedCurrencyApplicable()}function x(){return(!K.isUserProfile||K.isEnhancedInvoice)&&H()}function H(){return K.customsInvoiceUploadModel.isFileNotSuccessfullyUploaded(K.shipmentTypeModel)||!B()}function Y(){K.isExpandedWarningsVisible=!K.isExpandedWarningsVisible}var K=this,W="shipment-import.importing-schemes_select-option_ewf-multiline-scheme",q=void 0;Object.assign(K,{uploadErrors:null,processing:!1,onDisplayLineItems:angular.noop,isCustomsInvoiceUploadVisible:!0,fileUploadSuccess:!1,isUploadedLineItemCountExceeds:!1,uploadFailureMessage:"",isUploadedFileInvalid:!1,isExpandedWarningsVisible:!1,$onInit:r,$onChanges:o,onUploadSettingsChange:l,deleteLineItemsAndClearErrors:T,processInvoiceItems:f,cancelInvoiceUpload:v,toggleWarnings:Y,viewItems:D,isLineItemUploadedAndProcessed:O,isImportingDetailsVisible:P,isCustomsInvoiceUploadRequired:b,isOnlyUploadedLineItemsFound:w,shouldDisplayActionItems:L,shouldShowCustomsInvoiceUpload:R,isShortSummaryVisible:F,addAnotherItem:k,uploadCorrectedFile:V,isFileNotEmpty:B,isCurrencyWarningVisible:$,isAddLineItemButtonVisible:a,isUploadFullWidthLimited:x,isLineItemsWarningReportVisible:s})}i.$inject=["component"],r.$inject=["itemAttributesService","customsInvoiceUploadService","itemAttributesCalculationService","customsInvoiceUploadMapperService"],t.__esModule=!0,t["default"]=i,t.CustomsInvoiceUploadController=r;var o=n(2005),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfCustomsInvoiceUpload"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=49},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){var t=e.customsInvoiceUploadModel,n=e.itemAttributesModel,r=e.fileName,u=e.toCountry;i.showDialog({controller:o["default"],controllerAs:"customsInvoicePreviewCtrl",templateUrl:"modal-customs-invoice-preview.html",resolve:{previewItemsConfig:function(){function e(){return{customsInvoiceUploadModel:t,itemAttributesModel:n,toCountry:u,fileName:r}}return e}()}})}function u(e,t){return c(e)&&null===t}function a(e,t){return c(e)&&null!==t}function c(e){return!!e}function s(){return n.isAuthorized()}function l(){return t.getLocalStorageConfig()}function d(e,i){n.isAuthorized()&&t.onUploadSettingsChange(e,i)}function f(){return e.get("/api/myprofile/shipment/defaults/customs/clearance",{cache:!0}).then(function(e){return e.data})}function p(t){var n=t.customsInvoiceUploadModel,i=t.fileId,r=t.toCountry,o=t.fromCountry,u=n.state.existing,a=u.fieldDelimiter,c=u.textDelimiter,s=u.importingFileType,l=u.scheme,d=u.isFileWithHeader;return e.post("/api/importing/lineitems",{accountInfo:{importingFrom:"FILE"},charsetName:n.encoding,fieldDelimiter:a,fileId:i,headerExists:!!d,importingFileType:s,schemeId:l.id,shipperInfo:{importingFrom:"FILE"},textDelimiter:c,toCountryCode:r,fromCountryCode:o})}return{isLineItemUploadedAndProcessed:u,isAuthorized:s,previewCustomsInvoiceItems:r,shouldDisplayActionItems:a,getLocalStorageConfig:l,getCustomsClearanceDefaults:f,onUploadSettingsChange:d,processItemUpload:p}}i.$inject=["$http","customsInvoiceUploadDefaultsService","userService","modalService"],t.__esModule=!0,t["default"]=i;var r=n(2007),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="customsInvoiceUploadService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){g.forEach(function(t,n){E[t]=e[n]})}function o(e){return e?n.SHIPMENT_CUSTOMS_INVOICE.PREVIEW_CUSTOMS_INVOICE_VALUE_LABEL_YES:n.SHIPMENT_CUSTOMS_INVOICE.PREVIEW_CUSTOMS_INVOICE_VALUE_LABEL_NO}function u(){var e=m.itemAttributesModel.productList.filter(function(e){return e.fromUpload});return e.some(function(e){return e.id})?e:e.map(function(e,t){return r({},e,{id:t+1})})}function a(e){var t=E[e];return t.visible&&t.mandatory}function c(){return m.uploadedLineItems.some(function(e){return e.isAddItemReference})}function s(){return m.uploadedLineItems.some(function(e){return e.value&&e.currency})}function l(){return m.columnsConfiguration.value.visible&&s()}function d(e,t){return e.isAddItemReference?e[t]:""}function f(e){return t.getLineItemWeight(e,m.itemAttributesModel.isUnitsMismatched)}function p(){t.downloadCustomsInvoiceFile(m.itemAttributesModel)}var m=this,_=["description","importCommodityCode","quantity","value","weight","countryCode"],g=[].concat(_,["isLineItemReferenceMandatory"]),E=_.reduce(function(e,t){return e[t]={},e},{});Object.assign(m,{columnsConfiguration:E,uploadedLineItems:[],getLineItemReferenceValue:d,getLineItemWeight:f,isFieldMandatory:a,isAnyItemHasEnabledReference:c,isCurrencyColumnVisible:l,convertBooleanFlagToString:o,downloadCustomsInvoiceFile:p}),function(){var n=e.customsInvoiceUploadModel,r=e.itemAttributesModel,o=e.toCountry,a=e.fileName;Object.assign(m,{customsInvoiceUploadModel:n,itemAttributesModel:r,fileName:a}),t.getCustomsInvoiceFilePreviewConfiguration(o).then(i),m.uploadedLineItems=u()}()}i.$inject=["previewItemsConfig","customsInvoicePreviewFileService","Messages"],t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t1?t.getCustomsInvoiceMultipleValuesAlert():e[0].failureReasonNls}function c(e){return{isAddItemReference:e.isAddItemReference,referenceTypeCode:e.referenceTypeCode,referenceNumber:e.referenceNumber}}function s(t){var n=t.softInvalidRecords,i=t.customsInvoiceProductList,r=t.isItemReferenceMandatory;i.forEach(function(t){var i=n.find(function(e){return Number(e.recordInformation)===t.id}),o=e.setNonCifValidationFlag(c(t),r),u=o[0],a=o[1];if(t.errorFlag={referenceNumberInvalid:u,referenceTypeCodeInvalid:a},i){var s;return void(s=i.fieldDataSet).push.apply(s,f(t))}d(n,t)}),l(n)}function l(e){e.sort(function(e,t){return e.recordInformation-t.recordInformation})}function d(e,t){f(t).length&&e.push({recordInformation:t.id.toString(),fieldDataSet:f(t)})}function f(e){var t=[];return e.errorFlag.referenceNumberInvalid&&t.push(p(e.id)),e.errorFlag.referenceTypeCodeInvalid&&e.hasOwnProperty("referenceTypeCode")&&t.push(m(e.id)),t}function p(e){return{failureReasonNls:i.ERRORS.ALERT_ACTION_ERROR_REFERENCE_NUMBER_IS_MISSING,rowNo:e}}function m(e){return{failureReasonNls:i.ERRORS.ALERT_ACTION_ERROR_REFERENCE_TYPE_IS_MISSING,rowNo:e}}function _(e){return e&&e.data&&e.data.errors&&e.data.errors[0]||t.getFileUploadAlert()}function g(e,t){e.softInvalidRecords=e.softInvalidRecords||[],e.softWarningRecords=e.softWarningRecords||[],t.filter(function(e){return e.fromUpload}).map(function(e,t){return[e.gssValidationResult,t+1]}).filter(function(e){var t=e[0];return t&&t.status===r.GSS_STATUS.RED}).forEach(function(t){var n=t[0],i=t[1],o={recordInformation:i,fieldDataSet:[{failureReasonNls:n,rowNo:i}],errorParams:{matchedKeyword:n.matchedKeyword,isGssError:!0}};n.mode===r.GSS_MODE.WARNING?e.softWarningRecords.push(o):n.mode===r.GSS_MODE.ERROR&&e.softInvalidRecords.push(o)}),e.softInvalidRecords.sort(function(e,t){return e.recordInformation-t.recordInformation})}function E(t){return e.getItemReferenceMandatoryStatus(t)}function S(){return t.getShipmentSchemes()}function C(e){return t.getImportingDetailsAndApply(e)}function h(e){return t.isImportingDetailsVisible(e)}function I(e){return n.deleteFile(e)}return{getItemReferenceMandatoryStatus:E,getShipmentSchemes:S,getImportingDetailsAndApply:C,isImportingDetailsVisible:h,uploadCorrectedFile:I,getUploadFailureMessage:_,handleGlobalScreeningSoftValidation:g,processSoftValidation:o}}i.$inject=["itemAttributesValidationService","customsInvoiceUploadImportMapperService","shipmentImportFileUploaderService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(261);i.NG_NAME="customsInvoiceUploadMapperService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return e.getShipmentSchemes()}function r(e){return t.getImportingDetailsAndApply(e,o["default"].EXISTING,!0)}function u(){return n.SHIPMENT_IMPORT.FILE_UPLOAD_ALERT_UPLOAD_ERROR}function a(){return n.SHIPMENT_CUSTOMS_INVOICE.CUSTOMS_INVOICE_ITEMS_ERROR_MULTIPLE_VALUES_MISSING}function c(e){return t.isImportingDetailsVisible(e)}return{getShipmentSchemes:i,getImportingDetailsAndApply:r,getFileUploadAlert:u,getCustomsInvoiceMultipleValuesAlert:a,isImportingDetailsVisible:c}}i.$inject=["shipmentImportSchemeResource","shipmentImportStateService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(196),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="customsInvoiceUploadImportMapperService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:o["default"],controllerAs:"shipmentItemAttrCtrl",templateUrl:"shipment-item-attributes.html",bindings:{fromCountry:"<"+u+"FromCountry",toCountry:"<"+u+"ToCountry",shipmentTypeModel:"<"+u+"ShipmentTypeModel",addressDetailsModel:"<"+u+"AddressDetailsModel",otherChargesModel:"<"+u+"OtherChargesModel",isDeclaredValueDisabled:"<"+u+"DeclaredValueDisabled",customsInvoiceUploadModel:"<"+u+"CustomsInvoiceUploadModel",isOtherSectionsHidden:"<"+u+"IsOtherSectionsHidden"}})}i.$inject=["component"],t.__esModule=!0,t["default"]=i;var r=n(487),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfShipmentItemAttributes"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,i){var r=!(arguments.length<=2||arguments[2]===undefined)&&arguments[2],o={enhancedInvoice:r};return e.get(n+"/"+t+"/"+i,{params:o}).then(function(e){return e.data})}var n="/api/shipment/customsInvoice/purpose/details";return{getShippingPurposeDetails:t}}i.$inject=["$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentItemAttributesResource"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(i){var r=i.fromCountryCode,u=i.toCountryCode,a=i.isEnhancedInvoice,c=i.shipmentTypeModel,s=n.getEffectiveReasonsForExport(c,r),l=t.getShippingPurposeDetails(r,u,a);return e.all([s,l]).then(o)}function o(e){var t=e[0],n=e[1];return n.shipmentPurposeItemList.forEach(function(e){var n=t.find(function(t){return t.code.value.toLowerCase()===e.reasonForExport.toLowerCase()});e.description=n?n.description:e.reasonForExport}),n}function u(e){return!!e&&Object.keys(e).length>0}function a(e,t){return e.isFileNotSuccessfullyUploaded(t)&&c(t)}function c(e){return s(e)&&!e.isEnhancedInvoiceVisited()&&e.isCustomsInvoiceAvailable}function s(e){return!e.isShipmentTypeCategoriesAvailable||e.shipmentTypeCategory}function l(e){return!u(e)||!e.invoiceType}function d(){return i.loadIndiaShippingPurpose()}function f(e,t){return e.getAvailableIndiaShippingPurposes(t)}return{isShippingPurposeSelected:u,isItemAttributesFileFailed:a,isItemAttributesBlockVisible:c,shouldUpdateShippingPurpose:l,loadIndiaShippingPurpose:d,getShippingPurposeList:r,getAvailableIndiaShippingPurposes:f}}i.$inject=["$q","shipmentItemAttributesResource","reasonsForExportService","indiaFlowService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentItemAttributesFacade"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function o(e,i){e.isRestoredDataPopulated||(t.mapEnhancedInvoiceDeclarations(e),t.setCustomsInvoiceData({invoice:e.customsInvoice,model:e.itemAttributes,fromCountry:i}),n.handlePreloadedEnhancedInvoice(e),e.isRestoredDataPopulated=!0)}function u(i){var o=i.returnLabelShipmentTypeModel,u=i.shipmentTypeModel,a=i.returnLabelAddressDetailsModel,c=i.otherChargesModel,l=i.returnLabelCustomsInvoiceUploadModel,d=i.customsInvoiceUploadModel;if(t.isReturnLabelExtendedFlowEnabled(d,l))return e.when();var _=angular.copy(t.getCustomsInvoiceData(u));m(_,i),p(_);var g=a.getShipmentCountry(),E=a.getDestinationCountry();return t.clearInvalidCommodityCodes(_.items,g,E).then(function(e){return t.setCustomsInvoiceData({invoice:_,model:o.itemAttributes,fromCountry:g}),f(o,u,c),o.itemAttributes.isCodesCleared=e,o.preloadedEnhancedInvoice&&(t.mapEnhancedInvoiceDeclarations(o),s(r({},i,{fromCountry:g})),o.setEnhancedInvoiceVisited(!0)),n.applyUnitsOfMeasurement(o,g)})}function a(e){var n=e.shipmentTypeModel,i=e.returnLabelShipmentTypeModel,r=e.fromCountry;i.itemAttributes.isItemAttributesApplied=!1,n.isEnhancedInvoiceVisited()?(l(i,r),i.setEnhancedInvoiceVisited(!0),i.setEnhancedInvoiceCompletion(!1)):t.resetModel(i.itemAttributes)}function c(e){var n=e.targetModel,i=e.sourceModel,r=e.fromCountry;angular.copy(i.enhancedInvoice,n.enhancedInvoice);var o=t.getCustomsInvoiceData(i);t.setCustomsInvoiceData({invoice:o,model:n.itemAttributes,fromCountry:r})}function s(e){var t=e.shipmentTypeModel,n=e.returnLabelShipmentTypeModel,i=e.otherChargesModel,r=e.fromCountry;n.enhancedInvoice.prepopulated||(c({targetModel:n,sourceModel:t,fromCountry:r}),f(n,t,i),n.enhancedInvoice.prepopulated=!0)}function l(e,t){c({targetModel:e,sourceModel:n.getEmptyShipmentTypeModel(),fromCountry:t})}function d(e){var n=e.shipmentTypeModel,i=e.returnLabelShipmentTypeModel,r=e.otherChargesModel,o=e.returnLabelCustomsInvoiceUploadModel,u=e.customsInvoiceUploadModel;if(!t.isReturnLabelExtendedFlowEnabled(u,o)){var a=n.getDataPart();u.isExtendedFlowEnabled&&(a.customsInvoice.items=[]),p(a.customsInvoice),i.initDataPart(a),f(i,n,r)}}function f(e,n,i){var r=e.itemAttributes,o=t.getTotalValueOfGoods(n.itemAttributes.totalDeclaredValue,i);r.totalDeclaredValue=r.totalValueOfGoods=o}function p(e){var t=e&&e.items;t&&t.forEach(function(e){e.fromUpload=e.uploadedFromFile=!1,e.isUpdated=!0})}function m(e,t){var n=t.customsInvoiceUploadModel,i=t.returnLabelCustomsInvoiceUploadModel;n.isExtendedFlowEnabled&&(_(i),e.items=[],i.isExtendedFlowWarningDisplayed=!0)}function _(e){var t=e.getFile();t&&(t.key?i.deleteFile(t.key).then(function(){return g(e)}):t.fileName&&g(e))}function g(e){e.clearFile(),e.isExtendedFlowEnabled=!1}return{processCustomsInvoiceData:o,fillCustomsInvoiceWithMasterShipment:u,resetMasterShipmentCustomsInvoice:a,prepopulateShipmentFlowData:s,fillShipmentTypeModelWithMasterShipment:d}}i.$inject=["$q","customsInvoiceMapperCalculationService","customsInvoiceMapperHelperService","shipmentImportFileUploaderDefaultService"],t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;tu["default"].MIN}function E(){return O.model.adminConfigs}function S(){return O.model.isMandatory}function C(){return E().isCriticalPriceDefined}function h(){return O.model.mrnRows.length0}function l(e,n,i){return t.isPltAllowed(n).then(function(e){return e&&m(n,i)}).then(function(t){return e.isPltShipment=t})}function d(t,n){return e.getBoolean(e.CI_KEYS.CI1351_MRN_IS_MANDATORY_FOR_PLT,n).then(function(e){return t.adminConfigs.isMandatoryForPlt=e})}function f(t,n){return e.getBoolean(e.CI_KEYS.CI1352_APPLY_MRN_MANDATORY_RULE_FOR_DECLARED_VALUE,n).then(function(e){return t.adminConfigs.isMandatoryAppliedForDeclaredValue=e})}function p(t,n){var i={value:null,currency:""};return e.getFormField(e.CI_KEYS.CI1353_DEFINED_DECLARED_VALUE_FOR_MRN,n).then(function(){var e=arguments.length<=0||arguments[0]===undefined?i:arguments[0];t.adminConfigs.isCriticalPriceDefined=!!e.value,Object.assign(t.adminConfigs.criticalPrice,e)})}function m(e,n){return t.requestIncompleteStatus(e,n).then(function(e){var t=e.enrolled,n=e.enabled,i=e.enabledForFromCountry;return t&&n&&i})}function _(e,t){e.isMandatory=e.isSectionVisible&&g(e,t)}function g(e,t){var n=e.isPltShipment,i=e.adminConfigs,r=i.isMandatory,o=i.isMandatoryForPlt,u=i.isCriticalPriceDefined,a=E(e,t);return r?a:!!o&&(n&&(a||!u))}function E(e,t){return!e.adminConfigs.isMandatoryAppliedForDeclaredValue||S(e,t)}function S(e,t){return t>=e.adminConfigs.criticalPrice.value}function C(e){return v||(v=i.debounce(n.processCurrencyConversion,A)),v(e)}function h(){return n.isShipmentEditMode()}function I(){return n.isReturnLabelPage()}var A=400,v=void 0;return{setMrnSectionGuiConfigs:r,setCustomsProcessTypes:o,updateSectionVisibilityStatus:s,setPltShipmentStatus:l,setMrnMandatorityForPlt:d,setMrnMandatorityForDeclaredValue:f,setMrnCriticalPrice:p,setCumulatedMandatority:_,convertToCurrencyValue:C,isShipmentEditMode:h,isReturnLabelPage:I}}i.$inject=["configService","customsInvoiceEnrollmentResource","shipmentTypeService","debounceService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="masterReferenceNumberService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"components/shipment/type/declared-value.html",controller:r,controllerAs:"declaredValueCtrl",bindings:{shipmentTypeModel:"<"+o,otherChargesModel:"1,o.shipmentTypeModel.itemAttributes.somList=i.map(function(e){return e.key}),n.setWeightUnits(o.shipmentTypeModel.itemAttributes,o.shipmentTypeModel.itemAttributes.weightUnits),o.shipmentTypeModel.itemAttributes.currenciesList=r;var a=r.find(function(e){return e===u})||r[0];o.shipmentTypeModel.itemAttributes.defaultCurrency=a,o.shipmentTypeModel.itemAttributes.currentCurrency=a})}var o=this;Object.assign(o,{$onInit:i})}i.$inject=["component"],r.$inject=["pathService","profileShipmentService","itemAttributesService"],t.__esModule=!0,t["default"]=i,t.UserProfileItemAttributesController=r;var o=i.NG_NAME="ewfUserProfileItemAttributes"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){return t.getCustomsInvoiceTemplate(e)}function r(e,n){return t.getCustomsInvoiceTemplateList(e,n)}function u(e){return t.fetchCustomsInvoiceTemplates(e).then(function(e){var t=e.results,n=e.totalItems;return{results:f(t),totalItems:n}})}function a(e){var t=e.declaration,n=t.companyLogos;n&&n.length&&(t.companyLogo=n[0])}function c(e){var t=e.templateItems;t&&t.items.forEach(function(e){e.isAddItemReference||(e.referenceNumber=null,e.referenceTypeCode=null)})}function s(e,n){return a(n),c(n),t.processCustomsInvoiceTemplate(e,n)}function l(e){return s("post",e)}function d(e){return s("put",e)}function f(e){var t=m();return e.forEach(function(e){var n=e.invoiceType;e.invoiceType=t[n]||n}),e}function p(e){return f(e.map(function(e){return Object.assign(e,{invoiceType:e.type.value})}))}function m(){var e;return e={},e[o["default"].COMMERCIAL]=n.CUSTOMS_CLEARANCE_SETTINGS.CUSTOMS_INVOICE_TEMPLATES_BUTTON_COMMERCIAL_INVOICE,e[o["default"].PRO_FORMA]=n.CUSTOMS_CLEARANCE_SETTINGS.CUSTOMS_INVOICE_TEMPLATES_BUTTON_PROFORMA_INVOICE,e}function _(t){var i=t>1?n.CUSTOMS_CLEARANCE_SETTINGS.CUSTOMS_INVOICE_TEMPLATES_PARAGRAPH_WANT_TO_DELETE:n.COMMON.COMMON_MSG_DELETE_ONE_ITEM,r=t>1?n.COMMON.COMMON_HEADER_CONFIRM_MULTIPLE_DELETION:n.COMMON.COMMON_HEADER_CONFIRM_SINGLE_DELETION;return e.showConfirmationDialog({message:i,title:r,okButtonLabel:n.COMMON.COMMON_BUTTON_YES,cancelButtonLabel:n.COMMON.COMMON_BUTTON_NO})}function g(e){return _(e.length).then(function(){return t.runDeleteCustomsInvoiceTemplatesRequest({invoiceTemplatesKeys:e})})}function E(e){return e.filter(C).map(function(e){return e.key})}function S(e){return e.some(C)}function C(e){return e.isSelected}function h(e){var t=[{code:"P",value:n.CUSTOMS_CLEARANCE_SETTINGS.CUSTOMS_INVOICE_TEMPLATES_BUTTON_PROFORMA_INVOICE},{code:"C",value:n.CUSTOMS_CLEARANCE_SETTINGS.CUSTOMS_INVOICE_TEMPLATES_BUTTON_COMMERCIAL_INVOICE}],i=e.map(function(e){return{code:e.code,value:e.name.value}});return{invoiceType:t,exportType:i,all:[].concat(t,i)}}function I(e){return t.loadTypesOfExport(e)}return{addInvoiceTypeTranslations:p,mapInvoiceTypes:f,getCustomsInvoiceTemplate:i,getCustomsInvoiceTemplateList:r,getCustomsInvoiceTemplates:u,saveCustomsInvoiceTemplate:l,updateCustomsInvoiceTemplate:d,deleteCustomsInvoiceTemplates:g,hasSelectedCustomsInvoiceTemplates:S,filterSelectedCustomsInvoiceTemplatesKeys:E,getPreparedSuggestions:h,loadTypesOfExport:I}}i.$inject=["modalService","customsInvoiceTemplatesResource","Messages"],t.__esModule=!0,t["default"]=i;var r=n(488),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="customsInvoiceTemplatesService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){return t.getValue(t.CI_KEYS.CI0735_TYPES_OF_EXPORT,e).then(function(e){return e.data.value})}function r(e){return e.data}function o(t){var n=t.pageIndex,i=t.pageSize;return e.get(l+"/search/default/all",{params:{pageNumber:n,pageSize:i,keyword:""}}).then(r)}function u(t,i){var r=n.create(i),o=r.reasonForExport.code.value;return Object.assign(r,{invoiceType:i.invoiceType,reasonForExport:o}),delete r.declaration.role,e[t](l,r)}function a(t){return e.post(l+"/delete",t).then(r)}function c(t,n){var i=t.pageIndex,o=t.pageSize,u={pageNumber:i,pageSize:o,isCsbvShipment:n};return e.get(l,{params:u}).then(r)}function s(t){return e.get(l+"/"+t).then(r)}var l="/api/myprofile/customs/invoices";return{loadTypesOfExport:i,fetchCustomsInvoiceTemplates:o,processCustomsInvoiceTemplate:u,runDeleteCustomsInvoiceTemplatesRequest:a,getCustomsInvoiceTemplateList:c,getCustomsInvoiceTemplate:s}}i.$inject=["$http","configService","customsInvoiceTemplatesFactory"],t.__esModule=!0,t["default"]=i,i.NG_NAME="customsInvoiceTemplatesResource"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){return i.getEffectiveReasonsForExport(e)}function o(){return n.getInvoiceTypes().then(function(e){return[e,t.addInvoiceTypeTranslations(e)]})}function u(i){return e.all([t.getCustomsInvoiceTemplate(i),n.loadAvailableLocations()])}function a(){return n.getDefaultTemplate()}return{getTranslatedInvoiceTypes:o,getCustomsInvoiceTemplateWithLocations:u,getDefaultTemplate:a,getEffectiveReasonsForExport:r}}i.$inject=["$q","customsInvoiceTemplatesService","customsInvoiceTemplateConfigurationService","customsInvoiceService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="customsInvoiceTemplateFormService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return e.getSourceData(e.CI_KEYS.CI0128_INVOICE_TYPES)}function r(){return t.loadAvailableLocations()}function u(){return{templateItems:{items:[]},terms:{},references:{},declaration:{},paymentOptions:[{value:o["default"].ALTERNATE,label:n.SHIPMENT_CUSTOMS_INVOICE.TERMS_SELECT_OPTION_ALTERNATE_ACCOUNT},{value:o["default"].CREDIT_CARD,label:n.SHIPMENT_CUSTOMS_INVOICE.TERMS_SELECT_OPTION_CREDIT_CARD}],name:"",reasonForExport:""}}return{getInvoiceTypes:i,loadAvailableLocations:r,getDefaultTemplate:u}}i.$inject=["configService","locationService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(129),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="customsInvoiceTemplateConfigurationService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"print-preview.html",controller:r,controllerAs:"previewCtrl",bindings:{previewAttrs:"<"+a,shipmentId:"1?t-1:0),i=1;i1}function G(){return n.getAvailableLanguages(m()).then(function(e){V=e})}function U(){return!i.isRegular()||a.isB2lShipment()?void(j=!1):w.shipmentPaymentType&&"CASH"!==w.shipmentPaymentType.toUpperCase()?void(j=!1):void r.getBoolean(r.CI_KEYS.CI0661_SPECIAL_CASH_SHIPMENT_RECEIPT).then(function(e){j=e,d()})}function F(){var e=w.previewAttrs.model.additionalDocuments,t=1===e.length&&e[0].documentType===o.DOCUMENT_TYPES.PICKUP_INSTRUCTIONS;return!!e.length&&!t}var w=this,k=void 0,j=void 0,V=void 0;Object.assign(w,{$onChanges:s,previewLabel:C,previewReceipt:h,previewInvoice:I,previewCsbvInvoice:A,isDocumentVisible:N,displayCopiesInput:T,displayArchiveCopiesInput:M,onWaybillSelectionChange:P,getUserCountry:m,showLanguageOptions:p,getLabelDocument:O,isCashReceiptSelectorVisible:L,isAdditionalDocumentsVisible:F,MAX_ALLOWED_COPIES_NUMBER:u.MAX_ALLOWED_COPIES_NUMBER,additionalDocumentLanguages:{},waybillChecked:!1})}i.$inject=["component"],r.$inject=["$scope","printPreviewOutputService","printPreviewService","userService","configService","b2lRestrictionsService"],t.__esModule=!0,t["default"]=i,t.PrintPreviewController=r;var o=n(64),u=n(965),a=i.NG_NAME="ewfPrintPreview"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e,n,i){return t.getPrintMetadata(e,n,i)}function o(t,r,o){var a=arguments.length<=3||arguments[3]===undefined?{}:arguments[3],c={},s=[],l=a.allowPltDocs,d=a.primaryDocumentsOnly;return e.all([i(t,l,d),n.getAvailableLanguages(o)]).then(function(e){var t=e[0],n=e[1];return u({previewModel:c,additionalDocuments:s,printMetadata:t,defaults:r,userLanguages:n})}),{previewModel:c,additionalDocuments:s}}function u(e){var t=e.previewModel,n=e.additionalDocuments,i=e.printMetadata,r=e.defaults,o=e.userLanguages;s(t,i,r),c(l(i,o),n,r)}function a(e,t,n){if(n&&n.doNotDisplay)return null;var i=e.find(function(e){return e.documentType===t});return i&&Object.assign(i,n),i}function c(e,t){var n=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];t.push.apply(t,e),(n.additionalDocuments||[]).length&&t.forEach(function(e){var t=n.additionalDocuments.find(function(t){return t.documentType===e.documentType});t&&Object.assign(e,t)})}function s(e,t){var n=arguments.length<=2||arguments[2]===undefined?{}:arguments[2],i=n.documents||{},o=i.waybillDocument,u=i.archiveDocument,c=i.invoiceDocument,s=i.receiptDocument,l=i.csbvInvoiceDocument;Object.assign(e,{waybillDocument:a(t.documents,r.DOCUMENT_TYPES.LABEL,o),archiveDocument:a(t.documents,r.DOCUMENT_TYPES.ARCHIVE,u),invoiceDocument:a(t.documents,r.DOCUMENT_TYPES.CUSTOMS_INVOICE,c),csbvInvoiceDocument:a(t.documents,r.DOCUMENT_TYPES.CSBV_CUSTOMS_INVOICE,l),receiptDocument:a(t.documents,r.DOCUMENT_TYPES.RECEIPT,s),metadataInitialized:!0})}function l(e,t){var n=e.documents,i=n===undefined?[]:n,o=e.vatLanguageSelectionAvailable,u=t.length>1;return i.filter(function(e){return!e.primary}).map(function(e){return Object.assign(e,{hasLanguageOptions:e.documentType===r.DOCUMENT_TYPES.VAT_RECEIPT&&o&&u})})}function d(e){return n.getAvailableLanguages(e)}return{loadModels:i,getModels:o,getAvailableLanguages:d}}i.$inject=["$q","shipmentPrintDataService","locationService"],t.__esModule=!0,t["default"]=i;var r=n(64);i.NG_NAME="printPreviewService"},function(e,t,n){"use strict";function i(){function e(){function e(e){n=e}function t(e){return!(!n&&!e.$invalid)}var n=!1;return{setStatus:e,isLocked:t}}return{createLock:e}}t.__esModule=!0,t["default"]=i,i.NG_NAME="printPreviewShipmentLockService"},function(e,t,n){"use strict";function i(e,t,n,i,o,u,a,c,s,l){"ngInject";function d(){return K=n[0].getElementById($),K||(K=angular.element('
    ')[0],n[0].body.appendChild(K)),K}function f(){var e=arguments.length<=0||arguments[0]===undefined?w:arguments[0];return p(),angular.element('\n \n \n \n \n \n ')}function p(){t.setPrinters=angular.noop,t.doPrintSuccessAlert=angular.noop,t.doPrintFailAlert=angular.noop}function m(e){d().appendChild(e[0])}function _(){d().innerHTML="",W=!1}function g(){if(!y())return b();var n=e.defer(),i=f();return t.setPrinters=function(e){_(),n.resolve(e.split("|"))},m(i),n.promise}function E(){s.showMessageDialog({message:l.SHIPMENT_PRINT.PRINT_ALERT_NOTIFY_USER_TO_CHANGE_FF_SETTINGS})}function S(e,t){var n=e.printerName;return U(e.isThermalPrinter,e.isEplOrZplFormat)?D(t):C(t,n)}function C(e,t){return h(e),M(t)["catch"](A).then(function(t){return I(e,t)})}function h(e){Y={base64String:e}}function I(e,t){return H=t,v(e)}function A(e){return s.showDialog({scope:Object.assign(i.$new(),{printers:e}),templateUrl:"select-printer-modal.html"}).result.then(function(t){return{printerIndex:e.indexOf(t),printerName:t}})}function v(i){var r=e.defer(),u=f(i);t.setPrinters=function(){W=!0},t.doPrintSuccessAlert=function(){_(),r.resolve("")},t.doPrintFailAlert=function(){T(r),S({},Y.base64String)},m(u);var a=n[0][k];return a.status&&a.status-1?{printerName:t,printerIndex:i}:e.reject(n)})}function y(){return t.navigator.javaEnabled()}function D(t,n){function i(){return D(t,r)}var r=n||e.defer();return R(r,i,t)}function O(e,t,n){e.send(P(t,n))}function P(e,t){return JSON.stringify({base64Data:e,targetPrinter:t,needThermalPrinter:!0})}function b(t){function n(){return b(i)}var i=t||e.defer();return R(i,n)}function R(e,n,i,o){try{var u=function(){var r=new t.WebSocket(V);return r.onopen=function(){r.send(JSON.stringify({listPrinterNames:!0})),i&&O(r,i,o)},{v:L(r,e,n)}}();if("object"===(void 0===u?"undefined":r(u)))return u.v}catch(c){var a=c.name;a===x&&E()}}function L(e,t,n){return e.onmessage=function(n){var i=n.data,r=JSON.parse(i);e.close(),t.resolve(r.additionalInfo)},e.onerror=function(){G().then(n)["catch"](function(){return t.reject(l.SHIPMENT_PRINT.PRINT_ALERT_THERMAL_PRINTER_APPLICATION_ERROR)})},t.promise}function G(){var n=e.defer(),i=F(),r=i+"/etc/dhl/print/silent.jnlp?hostName="+i,c=void 0;a.get("dtJavaService").launch({url:r},{javafx:"8.0+"});var s=u(function(){var e=new t.WebSocket(V);e.onopen=function(){e.send(JSON.stringify({listPrinterNames:!0}))},e.onmessage=function(){e.close(),n.resolve(),u.cancel(s),o.cancel(c)}},3e3);return c=o(function(){u.cancel(s),n.reject()},6e4),n.promise}function U(e,t){return!y()&&e&&t}function F(){return c.getOriginFromUrl()}var w="iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",k="PrintEPLApplet",j=2,V="ws://127.0.0.1:8888",B=1e3,$="ewf-printing-applet-container-id",x="SecurityError",H=void 0,Y=void 0,K=void 0,W=!1;return{getPrintersList:g,javaEnabled:y,silentPrintWebStart:D,whenSilentlyPrinted:S,getClientHost:F}}i.$inject=["$q","$window","$document","$rootScope","$timeout","$interval","$injector","pathService","modalService","Messages"],t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=i,i.NG_NAME="silentPrintService"},,function(e,t,n){"use strict";function i(){function e(e,t,n,i){i.init()}return{restrict:"A",controller:o["default"],controllerAs:"printerSettingsCtrl",link:{pre:e}}}t.__esModule=!0,t["default"]=i;var r=n(2042),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfPrinterSettings"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r){"ngInject";function o(){Object.assign(P.printerSettings,y),Object.assign(P.defaultPrinterSettings,y),s(),m(),e.all([_(),a()]).then(function(){d(),f()})}function a(){return i.getSourceData(i.CI_KEYS.CI1265_TO_PRINTER_TYPES).then(l)}function s(){D=[{code:u["default"].laserPrinterType,label:r.SAVED_SETTINGS.PRINTER_SELECT_OPTION_LASER_PRINTER_TYPE},{code:u["default"].thermalPrinterType,label:r.SAVED_SETTINGS.PRINTER_SELECT_OPTION_THERMAL_PRINTER_TYPE}]}function l(e){P.printerTypes=D.filter(function(t){return e.some(function(e){return t.code===e.code})})}function d(){i.getValue(i.CI_KEYS.CI0874_TO_PRINTER_TYPES_LIST).then(function(e){var t=e.data;P.printerFormats=t.value,v(P.printerSettings.printerType)})}function f(){I()&&h()&&!p()&&n.getPrintersList().then(function(e){return P.availablePrinters=e})}function p(){return P.availablePrinters&&P.availablePrinters.length>0}function m(){t.checkIfTwoLabelsTemplateAvailable().then(function(e){return O=e})}function _(){return t.getPrinterSettings().then(function(e){Object.assign(P.defaultPrinterSettings,e),Object.assign(P.printerSettings,e)})}function g(){angular.equals(P.defaultPrinterSettings,P.printerSettings)||(P.printerSettings.printerType||(Object.assign(P.printerSettings,{printerType:P.defaultPrinterSettings.printerType,printFormat:P.defaultPrinterSettings.printFormat}),v(P.defaultPrinterSettings.printerType)),t.updatePrinterSettings(P.printerSettings).then(function(e){Object.assign(P.defaultPrinterSettings,e),N("updated")})["catch"](function(){N("rejected")}))}function E(){Object.assign(P.printerSettings,P.defaultPrinterSettings),P.alertTypes.updated=!1,P.alertTypes.rejected=!1}function S(){return P.printerSettings.printerType===u["default"].laserPrinterType}function C(){return S()&&O}function h(){return t.isEplOrZplFormat(P.printerSettings)}function I(){return t.isThermalPrinterType(P.printerSettings)}function A(){P.availableDocumentFormats=[],S()?(v(u["default"].laserPrinterType),P.printerSettings.printerName=""):I()&&v(u["default"].thermalPrinterType),P.printerSettings.printFormat=null}function v(e){P.printerFormats.forEach(function(t){t.printer&&t.printer.value===e&&P.availableDocumentFormats.push({value:t.format.value,type:t.type})})}function N(e){P.alertTypes[e]=!0}function T(){return h()&&!n.javaEnabled()}function M(){return I()||S()}var y={printerType:u["default"].laserPrinterType,printerName:"",printFormat:c["default"].PDF,printReceipt:!1,printTwoLabels:!1,printAdditionalAddress:!1,printArchiveDocument:!1,defaultLabelless:!1},D=[],O=!1,P=this;Object.assign(P,{alertTypes:{updated:!1,rejected:!1},printerSettings:{},defaultPrinterSettings:{},printerTypes:[],availableDocumentFormats:[],availablePrinters:[],init:o,updatePrinterSettings:g,resetValuesToDefault:E,isEplOrZplFormat:h,isThermalPrinterType:I,onPrinterTypeChange:A,isNotSupportedFormat:T,isPrinterChosen:M,isPrintTwoLabelsVisible:C,retrieveThermalPrintersIfRequired:f})}r.$inject=["$q","printerSettingsService","silentPrintService","configService","Messages"],t.__esModule=!0,t["default"]=r;var o=n(969),u=i(o),a=n(452),c=i(a)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r){"ngInject";function o(){return i.getOriginFromUrl()}function a(){return n.isAuthorized()?e.get(_).then(function(e){return e.data})["catch"](function(e){var n=e.data;return t.reject(n)}):t.when({printFormat:c["default"].PDF})}function s(n){return e.post(_,n).then(function(e){return e.data})["catch"](function(e){var n=e.data;return t.reject(n)})}function l(e){var t=e.printFormat;return t&&[c["default"].EPL,c["default"].ZPL].includes(t)}function d(e){return e.printerType===u["default"].thermalPrinterType}function f(){return r.getSourceData(r.CI_KEYS.CI0530_GLS_TEMPLATES_LIST).then(function(e){return e.filter(function(e){return e.twoLabelsPerPage}).some(function(e){var t=e.countryCode;return p(t)||m(t)})})}function p(e){return!e.length}function m(e){return e.some(function(e){return e.value===n.getUserCountry()})}var _="/api/myprofile/shipment/settings/printer";return{getPrinterSettings:a,updatePrinterSettings:s,isEplOrZplFormat:l,isThermalPrinterType:d,getClientHost:o,checkIfTwoLabelsTemplateAvailable:f}}r.$inject=["$http","$q","userService","pathService","configService"],t.__esModule=!0,t["default"]=r;var o=n(969),u=i(o),a=n(452),c=i(a);r.NG_NAME="printerSettingsService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(n,i){return e.put("/api/shipment/"+n+"/favorite",{shipmentName:i})["catch"](function(e){return t.reject(e.data)})}function r(){return n.showDialog({controller:o["default"],controllerAs:"saveAsFavoriteDialogCtrl",templateUrl:"save-as-favorite-dialog-layout.html"}).result}return{showSaveAsFavoriteDialog:r,saveAsFavorite:i}}i.$inject=["$http","$q","modalService"],t.__esModule=!0,t["default"]=i;var r=n(2045),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="saveAsFavoriteService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){r.errors=[]}function i(n){var i=e.getParamFromUrl(o["default"].SHIPMENT_ID);t.saveAsFavorite(i,r.shipmentName).then(function(){return n.close()})["catch"](function(e){var t=e.errors;return r.errors=t})}var r=this;Object.assign(r,{saveAsFavorite:i,clearErrors:n,shipmentName:null})}i.$inject=["pathService","saveAsFavoriteService"],t.__esModule=!0,t["default"]=i;var r=n(1),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(i,r,o){var u,s=angular.isArray(i),l=s?"externalIds":"externalId",d=(u={},u[l]=i,u.email=r,u.phoneDetails=o,u);return e.post(s?c:a,d).then(function(){return[r,n(o)].filter(Boolean)})["catch"](function(e){return t.reject(e.data)})}function o(e,t){return i.openResendQRCodeDialog(e,t)}function u(e,t,n){return i.openBulkResendQRCodeDialog(e,t,n)}var a="/api/qr/send",c="/api/qr/bulk/send";return{openResendQRCodeDialog:o,openBulkResendQRCodeDialog:u,resendQRCode:r}}i.$inject=["$http","$q","phoneNumberFilter","resendQrCodeModalService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="resendQRCodeService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(e,t){var i=e.customerData,r=e.labelPrintingOptionsData,o=e.externalId;return a({customerData:function(){function e(){return i}return e}(),labelPrintingOptionsData:function(){function e(){return r}return e}(),externalIds:function(){function e(){return o}return e}(),shipperCountries:function(){function e(){return undefined}return e}()}).then(function(e){return s(t)&&n.manifest(o),{success:!0,message:l(e,!1)}})}function o(e,t,i){return a({customerData:function(){function t(){return e}return t}(),labelPrintingOptionsData:function(){function e(){return t}return e}(),externalIds:function(){function e(){return i.map(function(e){return e.externalId})}return e}(),shipperCountries:function(){function e(){return i.map(function(e){return e.fromCountryCode})}return e}()}).then(function(e){var t=i.filter(function(e){return s(e.shipmentStatus)}).map(function(e){return e.externalId});return t.length&&n.manifestBulk(t),{success:!0,message:l(e,!0)}})}function a(e){var n={controller:u["default"],controllerAs:"resendQRCodeDialogCtrl",templateUrl:"resend-qr-code-modal.html",resolve:e};return t.showDialog(n).result}function s(e){return[c["default"].READY_TO_PRINT,c["default"].READY_TO_SEND_QR_CODE].includes(e)}function l(t,n){if(!t||!t.length)return"";var r=t.join(", "),o=n?i.MANAGE_SHIPMENTS.QR_CODES_SENT_TO:i.MANAGE_SHIPMENTS.QR_CODE_SENT_TO;return e(o,{contactData:r})}return{openResendQRCodeDialog:r,openBulkResendQRCodeDialog:o}}r.$inject=["replaceFilter","modalService","shipmentPrintDataService","Messages"],t.__esModule=!0,t["default"]=r;var o=n(2048),u=i(o),a=n(12),c=i(a);r.NG_NAME="resendQrCodeModalService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(){s.contactsModel.email=t&&t.email||e&&e.email||""}function u(){if(!e)return"";var t=e.address||e.addressDetails;return t&&t.countryCode||""}function a(){s.errors=[]}function c(e){var t=s.contactsModel.isEmailChecked?s.contactsModel.email:null,i=s.contactsModel.isSMSTextChecked?s.contactsModel.phoneDetails:null;return r.resendQRCode(n,t,i).then(function(t){e.close(t)})["catch"](function(e){var t=e.errors;return s.errors=t})}var s=this;Object.assign(s,{resendQRCode:c,clearErrors:a,contactsModel:{}}),function(){o(),s.shipperCountries=i||u(),s.contactsModel.phoneDetails={}}()}i.$inject=["customerData","labelPrintingOptionsData","externalIds","shipperCountries","resendQRCodeService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(){function e(e,t,n,i){var r=e.$eval(n[u+"ShipmentId"]),o=e.$eval(n[u+"ShipmentData"]),a=e.$eval(n[u+"IsModal"]);i.init(r,o,a)}return{restrict:"A",controller:o["default"],controllerAs:"printCtrl",link:e}}t.__esModule=!0,t["default"]=i;var r=n(2050),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfShipmentPrint"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,o,a,s,d,p,_,g,E){"ngInject";function S(t,n,i){e(function(){return C(t,n,i)})}function C(e,i,c){var s=e||r.getParamFromUrl(u["default"].SHIPMENT_ID),l=i||{},d=r.getParamFromUrl(u["default"].RETURN_SHIPMENT_ID),f=r.getParamFromUrl(u["default"].FROM_EXTERNAL_PAYMENT);d&&(te.hasReturnLabel=!0,te.returnLabelPreviewAttrs.params.shipmentId=d),f&&g.markShipmentSection("booking_success"),M(l),G(),te.actionsOptions.masterAttributes=te.previewAttrs,te.actionsOptions.returnAttributes=te.returnLabelPreviewAttrs,te.sectionLoaderPromise=n.getPrintMetadata(s).then(function(e){return D(e),t.isGuest()?{pltShipment:!1}:a.requestCompleteStatus(s)}).then(function(e){var t=e.pltShipment,n=e.enabledForFromCountry;te.actionsOptions.pltShipment=t,se=n})["catch"](b),te.isModal=c,te.previewAttrs.params.shipmentId=s,te.actionsLock=o.createLock(),te.actionsOptions.shipmentManifested=h(l),I(),_.getTransactionId().then(function(e){return te.transactionId=e})}function h(e){return!!e.logicalStatus&&e.logicalStatus!==l["default"].READY_TO_PRINT}function I(){var e=te.previewAttrs.params.shipmentId;e&&v(e).then(function(e){var t=e.fromCustomer.address.countryCode,i=e.toCustomer.address.countryCode;if(oe=e.paymentInfo.transportation.paymentMethod,ne=d.isShipmentImport(t),ie=d.isShipmentDomesticOrExport(t,i),ue=e.dutiable,ae=e.paperlessTrading,ce=e.masterReferenceNumbers.length,te.labelless=e.labelless,te.actionsOptions.shipperCountry=t,te.pickupIndicator=e.pickupIndicator,O())return void(te.isRemotePickupEnabled=!1);n.getRemotePickupConfig(t).then(function(e){var t=e[0],n=e[1];te.isRemotePickupEnabled=t&&n})})}function A(){var e=arguments.length<=0||arguments[0]===undefined||arguments[0],t=te.previewAttrs.params.shipmentId;e&&s.sendConfirmationEmail(t),n.manifest(t).then(function(){return te.navigateToTheNextPage(m["default"].COMPLETED)})["catch"](function(e){return te.manifestationErrors=e})}function v(e){return re||(re=s.getRestoredShipment(te.isModal,e)),re}function N(){return!te.actionsOptions.shipmentManifested&&(!z()&&!!ne&&!T())}function T(){return oe===f["default"].ONLINE_PAYMENT}function M(e){y(e.logicalStatus)&&(te.previewAttrs.params.defaults={documents:{waybillDocument:{doNotDisplay:!0},archiveDocument:{doNotDisplay:!0}}})}function y(e){return ge.includes(e)}function D(e){te.actionsOptions.shouldPrintDocuments=O()||[le.DOMESTIC,le.EXPORT].includes(e.shipmentType),te.actionsOptions.shipmentOriginType=e.shipmentType,te.actionsOptions.includeReturn=L(),te.previewAttrs.params.vatLanguageSelectionAvailable=e.vatLanguageSelectionAvailable}function O(){return r.getParamFromUrl(u["default"].IS_STANDALONE_RETURN)}function P(){p.showSaveAsFavoriteDialog().then(function(){te.savedAsFavorite=!0})}function b(e){te.error=e}function R(){te.isLeaveConfirmationDisabled=!0}function L(){return te.hasReturnLabel}function G(){t.isAuthorized()&&n.getPrintNavigationType().then(function(e){return te.navigateTo=e||te.navigateTo})}function U(e,t){var n=e===m["default"].COMPLETED;(te.actionsOptions.shipmentOriginType!==le.IMPORT||n)&&(F(),w(),k(n,e,t))}function F(){te.navigateTo===c["default"].MMS&&i.redirectToShipmentsOverview()}function w(){te.navigateTo===c["default"].CREATE_SHIPMENT&&i.redirectToCreateShipment()}function k(e,t,n){if(te.navigateTo===c["default"].COMPLETE_SHIPMENT){var r=te.previewAttrs.params.shipmentId,o=e?n:t,u=Y();i.redirectToShipmentComplete(r,te.returnLabelPreviewAttrs.params.shipmentId,o,u)}}function j(){return{model:{},params:{shipmentId:null,showNumberOfCopies:!0,showCheckbox:!0,vatLanguageSelectionAvailable:!1}}}function V(){var e=te.previewAttrs.params.shipmentId;return s.sendConfirmationEmail(e).then(function(t){var i=t.emailSent,r=t.attachmentsIncluded;return i&&r&&n.manifest(e)})}function B(){return!!te.savedAsFavorite}function $(){return'\n '+E.SHIPMENT_PRINT.PRINT_LINK_DOWNLOAD_DOCUMENTS+"\n "}function x(){te.printStarted=!0}function H(){var e=te.previewAttrs.params.shipmentId;n.downloadAllDocuments(e),A(!1)}function Y(){var e=r.getParamFromUrl(u["default"].B2L_SHIPMENT);if(e)return e}function K(){return oe}function W(){return ne&&T()}function q(){return!W()&&!z()&&!te.actionsOptions.shouldPrintDocuments}function z(){return ne&&te.isRemotePickupEnabled}function X(){return W()||z()}function Q(){return!(te.labelless&&te.hasReturnLabel&&ie)}function Z(){return ee()&&!ce}function J(){return ee()&&!!ce}function ee(){return(t.isGuest()||se)&&ue&&!ae}var te=this,ne=void 0,ie=void 0,re=void 0,oe=void 0,ue=void 0,ae=void 0,ce=void 0,se=void 0;Object.assign(te,{init:S,getShipment:v,getDownloadLink:$,getShipmentPaymentType:K,setError:b,onLeaveConfirmationDisable:R,onLeavePrintPage:V,canDisplayReturnShipmentDocuments:L,isShowManifestWithoutPrintButton:N,isSavedAsFavorite:B,isRpaShipment:W,isNonRpaAndRbHeader:q,isRemoteBooking:z,isRpaOrRbShipment:X,isMasterShipmentDocumentsAvailable:Q,saveAsFavorite:P,manifestWithoutPrint:A,navigateToTheNextPage:U,startPrinting:x,downloadDocuments:H,isPrintHardCopiesAlertVisible:Z,isPrintEadHardCopiesAlertVisible:J,actionsOptions:{shouldPrintDocuments:!1},isLeaveConfirmationDisabled:!1,previewAttrs:j(),hasReturnLabel:!1,labelless:!1,returnLabelPreviewAttrs:j(),actionsLock:null,manifestationErrors:[],transactionId:"",navigateTo:c["default"].COMPLETE_SHIPMENT,pickupIndicator:null});var le={EXPORT:"EXPORT",IMPORT:"IMPORT",DOMESTIC:"DOMESTIC"},de=l["default"].PICKED_UP,fe=l["default"].IN_TRANSIT,pe=l["default"].DELIVERED,me=l["default"].NOT_DELIVERED,_e=l["default"].MIGRATED,ge=[de,fe,pe,me,_e]}r.$inject=["$timeout","userService","shipmentPrintDataService","navigationService","pathService","printPreviewShipmentLockService","customsInvoiceEnrollmentResource","shipmentTransportService","shipmentAddressService","saveAsFavoriteService","businessTransactionService","analyticsService","Messages"],t.__esModule=!0,t["default"]=r;var o=n(1),u=i(o),a=n(2051),c=i(a),s=n(12),l=i(s),d=n(5),f=i(d),p=n(970),m=i(p)},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={MMS:"Shipment List (MMS)",CREATE_SHIPMENT:"New shipment address page",COMPLETE_SHIPMENT:"Your Shipment Complete"}},function(e,t,n){"use strict";function i(){return{scope:{leaveCallback:"&"+a+"OnLeaveConfirmed"},restrict:"A",controller:u["default"],controllerAs:"leaveConfirmationCtrl",link:r}}function r(e,t,n,i){function r(){i.destroy()}i.init(),e.$on("$destroy",r)}t.__esModule=!0,t["default"]=i;var o=n(2053),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfShipmentPrintLeaveConfirmation"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){if(u())return void(l.notShowAgain=!0);c()}function o(){n.disable()}function u(){return"disabled"===t.get(d)}function a(){t.put(d,"disabled"),n.disable()}function c(){n.init({templateUrl:"shipment/print/leave-confirmation-dialog.html",navigateAwayMessage:i.SHIPMENT_PRINT.PRINT_PARAGRAPH_NAVIGATING_WITHOUT_PRINTING,callback:s,scope:e})}function s(){if(l.notShowAgain&&a(),e.leaveCallback)return e.leaveCallback()}var l=this,d="leaveConfirmationStatus";Object.assign(l,{init:r,destroy:o,notShowAgain:!1})}i.$inject=["$scope","cookiesService","leaveConfirmationService","Messages"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t,n,i,r,o){"ngInject";function u(n,i,r){var o=i.map(function(e){return e.documentType}).join("&docs="),u=i.map(function(e){return e.value}).join("&copies=");return t.open("/api/shipment/"+n+"/zipped-document?docs="+o+"&copies="+u),r?e.when():null}function a(e){t.open("/api/shipment/"+e+"/zipped-documents")}function c(e,t){return i.fetchConsolidatedThermalDocument(e,t)}function s(e,t){var n=r.prepareShipmentsDocumentsRequest(e,t),o=r.storeShipmentsDocumentsRequestInCookie(n);return i.fetchConsolidatedThermalDocuments(o)["finally"](function(){return r.removeRequestCookie(o)})}function l(e,t,n){return i.getPrintMetadata(e,t,n)}function d(e){return i.getPrintsMetadata(e)}function f(t){return e.when(t)}function p(e){return i.getTrackingInfo(e).then(function(e){return e.pickupInfo&&(e.pickupInfo.pickupEarliest=m(e.pickupInfo.pickupEarliest),e.pickupInfo.pickupLatest=m(e.pickupInfo.pickupLatest)),e})}function m(e){return n.convert24toAMPM(e)}function _(e){return i.manifestPrint(e)}function g(e){return i.manifestBulkPrint(e)}function E(){return i.getPrintNavigationType()}function S(e){return i.loadInfoMessages(e)}function C(){return o.isGuest()?e.when(!1):i.getDownloadInsteadOfPrintStatusConfiguration()}function h(e){return i.getRemotePickupConfig(e)}return{downloadDocuments:u,downloadAllDocuments:a,fetchConsolidatedThermalDocument:c,fetchConsolidatedThermalDocuments:s,getPrintMetadata:l,getPrintsMetadata:d,getPrintNavigationType:E,saveAsFavorite:f,getTrackingInfo:p,manifest:_,manifestBulk:g,loadInfoMessages:S,getDownloadInsteadOfPrintStatus:C,getRemotePickupConfig:h}}i.$inject=["$q","$window","dateTimeService","shipmentPrintDataResource","printOutputService","userService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentPrintDataService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(e){var t=i.prependCountryCodePrefix(e);return c(a(t,g),t)}function u(t){var n=i.prependCountryCodePrefix(t),r=a(n),o=e.defer();return s(r),f(o,r),o.promise}function a(e,n){var i=t.document.createElement("iframe");return Object.assign(i,{src:e,className:n||""})}function c(n,o){var u=e.defer();return i.whenLoaded(n).then(function(){t.onfocus=l(u),n.contentDocument?n.contentWindow.print():r.printInSeparateTab(o)})["catch"](function(e){return u.reject(e)}),i.whenPdfInterceptedByBrowser(n,m)["finally"](l(u)),s(n),u.promise}function s(e){t.document.body.appendChild(e)}function l(e){return function(){return d(e)}}function d(e){n(e.resolve,m)}function f(e,t){n(function(){p(t),e.resolve()},_)}function p(e){e.className=g}var m=1e3,_=3e3,g="hidden-iframe-for-print";return{print:o,printViaIframeAndComplete:u}}i.$inject=["$q","$window","$timeout","printIframeStatePdfService","printOutputPdfService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="printIframePdfService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){var i=e.defer();return t.addEventListener("load",function(e){var t=e.target.contentDocument,r=t&&t.body&&t.body.innerText;n.hasError(r)?i.reject(n.extractErrorMsg(r)):i.resolve()}),i.promise}function o(t,n){var i=e.defer();return u(i,t,n),i.promise}function u(e,n,i){function o(e,n){t(function(){var t=c(n);u||t.innerHTML?e.reject():a(t)?e.resolve():o(e,n)},i,!1)}var u=void 0;r(n)["finally"](function(){return u=!0}),o(e,n)}function a(e){return""===e.innerHTML}function c(e){var t=s(e);return t&&t.body||{innerHTML:null}}function s(e){return e.contentDocument||e.contentWindow.document}function l(e){return i.prependCountryCodePrefix(e)}return{whenLoaded:r,whenPdfInterceptedByBrowser:o,prependCountryCodePrefix:l}}i.$inject=["$q","$timeout","iframeErrorService","countryCodePrefixService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="printIframeStatePdfService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t){var n=new Date,o=i(n.getTime()),u=r(n);return e.putRootCookie(o,JSON.stringify(t),{expires:u.toGMTString()}),o}function n(t){e.removeRootCookie(t)}function i(e){return o["default"].SHIPMENTS_DOCUMENTS_REQUEST_COOKIE+"_"+e}function r(e){var t=e.getTime()+u;return new Date(t)}var u=3e5;return{storeShipmentsDocumentsRequestInCookie:t,removeRequestCookie:n}}i.$inject=["cookiesService"],t.__esModule=!0,t["default"]=i;var r=n(14),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="printOutputCookiesService"},function(e,t,n){"use strict";function i(e,t,n,i,o){"ngInject";function a(e,n,i,r){var o=p(e),u=p(n),a=t.getUrlParams({masterShipment:o,returnShipment:u});return r?S(a):m()(a,i)}function c(e,n){var i=o.storeShipmentsDocumentsRequestInCookie(e);return l(t.getCourierReportUrl(i,n),i,n)}function s(e,n,i){var r=d(e,n),u=o.storeShipmentsDocumentsRequestInCookie(r);return l(t.getShipmentsDocumentsUrl(u,i),u,i)}function l(e,t,n){return(n?S:m())(e)["finally"](function(){return o.removeRequestCookie(t)})}function d(e,t){return r({externalIds:e},t&&f(t))}function f(e){return{docs:e.map(function(e){return e.documentType}),copies:e.map(function(e){return e.numberOfCopies})}}function p(e){return{shipmentId:e.params.shipmentId,model:e.model}}function m(){var t=e.getEnvironment();return A[t]||A["default"]}function _(e,t){return n.print(e,t)}function g(e){return i.print(e)}function E(e){return i.printViaIframeAndComplete(e)}function S(e){return n.printInSeparateTab(e)}function C(e){return o.storeShipmentsDocumentsRequestInCookie(e)}function h(e){return o.removeRequestCookie(e)}var I,A=(I={},I[u["default"].CHROME_OR_SAFARI]=g,I[u["default"].FIREFOX]=E,I[u["default"].IE]=_,I[u["default"].ANDROID]=S,I["default"]=S,I);return{print:a,printCourierReport:c,printShipmentsDocuments:s,prepareShipmentsDocumentsRequest:d,storeShipmentsDocumentsRequestInCookie:C,removeRequestCookie:h}}i.$inject=["printEnvironmentService","printOutputPdfUrlService","printOutputPdfService","printIframePdfService","printOutputCookiesService"],t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t0}function a(e,t){var n=t[e];return([n.documentType===r.DOCUMENT_TYPES.VAT_RECEIPT,n.documentType===r.DOCUMENT_TYPES.RECEIPT&&!!n.language].some(Boolean)?s(n):"")+c(n)}function c(e){return"docs="+e.documentType+"&copies="+e.numberOfCopies}function s(e){var t=e.language;return t?"vatReceiptLanguage="+t+"&":""}function l(e,t){var n=t[e];return"returnDocs="+n.documentType+"&returnCopies="+n.numberOfCopies}function d(e,t){return(t?g:_)+"?requestCookieName="+e}function f(e,t){return(t?m:p)+"?requestCookieName="+e}var p="/api/shipments/document",m="/api/shipments/document/download",_="/api/mms/report/courier/print",g="/api/mms/report/courier/download";return{getUrlParams:e,getShipmentsDocumentsUrl:f,getCourierReportUrl:d}}t.__esModule=!0,t["default"]=i;var r=n(64);i.NG_NAME="printOutputPdfUrlService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({bindings:{options:"="+d,disabled:"<"+d+"Disabled",isViewUpdateRequired:"ce.uploadedDocumentsLimit,!ce.isLimitReached}function H(){return ce.isLimitReached||J()===ce.uploadedDocumentsLimit}function Y(){return!ce.digitalCustomsInvoiceModel.additionalInfo&&H()}function K(e,t){var n=ce.digitalCustomsInvoiceModel.document||{};return"/api/download/file/"+(e||n.key)+"?filename="+(t||n.fileName)+"&retentionType=SYSTEM"}function W(){!1===ce.digitalCustomsInvoiceModel.paperless&&(n.switchOffPlt(ce.servicesModel),q(),ce.customsInvoiceUploadErrors=null,ce.additionalDocumentsUploadErrors=null)}function q(){ce.digitalCustomsInvoiceModel.additionalInfo=!1,ce.correctAdditionalDocumentsModel(),X(),Q(),ce.digitalCustomsInvoiceModel.document&&(ce.digitalCustomsInvoiceModel.document=null)}function z(){!1===ce.digitalCustomsInvoiceModel.additionalInfo&&(ce.digitalCustomsInvoiceModel.additionalDocuments.length&&(ce.digitalCustomsInvoiceModel.additionalDocuments=[]),Q(!0),ce.additionalDocumentsUploadErrors=null)}function X(){ce.digitalCustomsInvoiceModel.signatureDocument&&(ce.digitalCustomsInvoiceModel.signatureDocument=null,ce.declaration.name=null,ce.declaration.title=null,ce.signatureUploadErrors=null)}function Q(){var e=!(arguments.length<=0||arguments[0]===undefined)&&arguments[0];n.updateValidationErrors(ce.digitalCustomsInvoiceModel,ce.ownCustomsInvoice,e)}function Z(){var e=ce.masterReferenceNumberModel.getRowsData();return ce.digitalCustomsInvoiceModel.eadDocumentsRequired=e&&e.length>0,ce.digitalCustomsInvoiceModel.eadDocumentsRequired}function J(){var e=ce.digitalCustomsInvoiceModel,t=e.additionalDocuments,n=t===undefined?[]:t,i=e.eadDocuments,r=i===undefined?[]:i;return n.length+r.length}function ee(){return n.isEadDocumentsNotUploadedErrorShown(ce.digitalCustomsInvoiceModel)}function te(){return n.isDciValid(ce.digitalCustomsInvoiceModel,ce.shipmentTypeModel.isUsingOwnCustomsInvoice())}function ne(){return n.getFileSizeLimit(ce.digitalCustomsInvoiceModel)}function ie(){return n.getUsedFileSize(ce.digitalCustomsInvoiceModel,ce.shipmentTypeModel.isUsingOwnCustomsInvoice())}function re(e){ce.successMessage=e}function oe(){return!t.isGuest()&&!ce.isReturnLabel}function ue(e){return e?e.map(function(e){return e.value}).join(", "):""}function ae(e){return n.getDigitalInvoiceBrowseFileMessage(e)}var ce=this,se="/api/shipment/customs-invoice/digital",le=void 0,de=void 0,fe=void 0,pe=void 0;Object.assign(ce,{successMessage:null,$onInit:r,$onChanges:o,$doCheck:a,getFormAction:y,isSignatureUploadAllowed:P,isSignatureUploadedInProfile:b,handleSignatureUploadSuccess:R,handleSignatureUploadError:L,clearSignatureUploadErrors:U,deleteSignature:w,handleCustomsInvoiceUploadSuccess:D,handleCustomsInvoiceUploadError:O,clearCustomsInvoiceUploadErrors:G,deleteCustomsInvoice:F,handleDocumentsUploadSuccess:k,handleDocumentsUploadError:j,clearDocumentsUploadErrors:V,deleteDocument:B,isEnrolled:T,canUploadDocuments:$,isFilesCanBeUploaded:x,isDocumentsLimitMsgShown:H,isEadDocumentsLimitMsgShown:Y,generateLinkForDownload:K,handleDciModelChange:W,correctAdditionalDocumentsModel:z,isEadDocumentsUploadSectionVisible:Z,isEadDocumentsNotUploadedErrorShown:ee,isItemDetailsCalloutDisplayed:oe,checkPltValidity:te,getFileSizeLimit:ne,getUsedFileSize:ie,getFileFormats:ue,getDigitalInvoiceBrowseFileMessage:ae,getDigitalInvoiceParagraphDocumentsMessage:c})}i.$inject=["component"],r.$inject=["$q","userService","digitalCustomsInvoiceService","shipmentTypeService"],t.__esModule=!0,t["default"]=i,t.DigitalCustomsInvoiceController=r;var o=n(43),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfDigitalCustomsInvoice"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"digitalCustomsInvoiceInformationCtrl",templateUrl:"digital-customs-invoice-information-layout.html",bindings:{isEnrolled:"<"+o+"Enrolled",isShippingDateValid:"<"+o+"ShippingDateValid",isManifestingTypeValid:"<"+o+"ManifestingTypeValid",digitalCustomsInvoiceModel:"<"+o+"DigitalCustomsInvoiceModel",ownCustomsInvoice:"<"+o+"OwnCustomsInvoice",product:"<"+o+"Product",isDutiable:"<"+o+"IsDutiable"}})}function r(e,t,n){"ngInject";function i(){return!l.isEnrolled&&l.ownCustomsInvoice&&a()&&l.isShippingDateValid}function r(){return!a()||!l.isShippingDateValid||!l.isManifestingTypeValid}function o(){var e=r();return l.digitalCustomsInvoiceModel.isPaperlessAvailable=!e,l.isDutiable&&e}function u(){e.showDialog({templateUrl:"digital-customs-invoice-enrollment-dialog-layout.html"}).result.then(s)}function a(){return t.productSupportsPlt(l.product)}function c(){l.digitalCustomsInvoiceModel.paperless=!1,l.digitalCustomsInvoiceModel.dismissed=!0}function s(){n.enroll().then(function(){l.digitalCustomsInvoiceModel.enrollmentStatus.enrolled=!0,l.digitalCustomsInvoiceModel.paperless=!0})}var l=this;Object.assign(l,{isEnrollMessageShown:i,isPltNotAvailable:o,showEnrollmentDialog:u,dismiss:c})}i.$inject=["component"],r.$inject=["modalService","digitalCustomsInvoiceService","customsInvoiceEnrollmentResource"],t.__esModule=!0,t["default"]=i,t.DigitalCustomsInvoiceInformationController=r;var o=i.NG_NAME="ewfDigitalCustomsInvoiceInformation"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"digitalCustomsInvoiceSignatureViewCtrl",templateUrl:"digital-customs-invoice-signature-view-layout.html",bindings:{digitalCustomsInvoiceModel:"<"+o+"DigitalCustomsInvoiceModel",shipmentTypeModel:"<"+o+"ShipmentTypeModel"}})}function r(e,t,n,i){"ngInject";function r(){return i.getMyShipmentSettingsLink()}function o(){return c.digitalCustomsInvoiceModel.signatureDocument&&c.shipmentTypeModel.enhancedInvoice.declaration.name&&c.shipmentTypeModel.enhancedInvoice.declaration.title&&u()}function u(){return!e.isGuest()&&(e.isRegular()||!n.isCompanyEnrollment())}function a(){var e={signature:c.digitalCustomsInvoiceModel.signatureDocument,signerName:c.shipmentTypeModel.enhancedInvoice.declaration.name,signerTitle:c.shipmentTypeModel.enhancedInvoice.declaration.title};t.updateSignatureSettings(e).then(function(){c.digitalCustomsInvoiceModel.signatureSettingsSaved=!0})}var c=this;Object.assign(c,{getMyShipmentSettingsLink:r,isSignatureSettingsCanBeSaved:o,updateSignatureSettings:a})}i.$inject=["component"],r.$inject=["userService","profilePaperlessCustomsResource","corporateDigitalCustomsInvoicesService","digitalCustomsInvoiceSignatureLinkService"],t.__esModule=!0,t["default"]=i,t.DigitalCustomsInvoiceSignatureViewController=r;var o=i.NG_NAME="ewfDigitalCustomsInvoiceSignatureView"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{model:"<"+o,shipmentTypeModel:"<"+o+"ShipmentTypeModel",masterReferenceNumberModel:"<"+o+"MasterReferenceNumberModel"},templateUrl:"digital-customs-invoice-synopsis.html",controller:r,controllerAs:"dciSynopsisCtrl"})}function r(){"ngInject";function e(){return!u.model.paperless||t()}function t(){return u.shipmentTypeModel.isCreatingCustomsInvoice()&&!u.model.signatureDocument&&!u.model.additionalDocuments.length&&!n()}function n(){var e=u.masterReferenceNumberModel.getRowsData();return e&&e.length&&u.model.eadDocuments.length}function i(e){var t=e===a?u.shipmentTypeModel.isCreatingCustomsInvoice():u.shipmentTypeModel.isUsingOwnCustomsInvoice();return u.model.paperless&&t&&!!u.model[e]}function r(){return u.model.paperless&&!(!u.model.additionalDocuments.length&&!n())}function o(){var e=u.model.additionalDocuments.length;return n()?e+u.model.eadDocuments.length:e}var u=this,a="signatureDocument";Object.assign(u,{isNoDocumentsUploaded:e,isDciDocumentUploaded:i,isAdditionalDocumentsUploaded:r,getNumberOfAdditionalDocuments:o})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.DigitalCustomsInvoiceSynopsisCtrl=r;var o=i.NG_NAME="ewfDigitalCustomsInvoiceSynopsis"},function(e,t,n){"use strict";function i(e,t,n,i,r,o){"ngInject";function u(e,t,i){return n.requestIncompleteStatus(t,i).then(function(t){return Object.assign(e,C(t))})}function a(e){return r.isDciSectionVisible(e)}function c(e,t,n,i){return[e,s(t),n,i].every(Boolean)}function s(e){var t=e&&e.optionalServices;return!!t&&t.some(i.isPaperlessTrade)}function l(){return n.getManifestingTime().then(function(e){return"IMMEDIATE"===e})}function d(t,r,o){return n.getPltEnabilityForAdvanceShipment().then(function(t){return t?e.reject(j):i.getMinShipmentDate(o)}).then(function(e){return p(e,r)}).then(function(e){return!!t&&new Date(t)<=e})["catch"](function(t){return t===j||e.reject(t)})}function f(e){return!!e.errors&&!e.errors.documentsNotUploaded&&e.errors.eadDocumentsNotUploaded}function p(e,t){return i.getMaxShipmentDate({startDate:e,isAccountShipment:!1,shipmentCountry:t})}function m(i){return e.all([n.getMaxFilesPerShipment(),_(),n.getMaxFileSizeForCompanyLogo().then(function(e){return t("fileSize")(e,1,"MB")}),g(i)])}function _(){return n.getMaxFileSize().then(function(e){return{maxFileSize:t("fileSize")(e,1024,"KB"),maxTotalFilesSize:1024*e}})}function g(t){return t?n.getDefaultPltService():i.getDciPaperlessSettings().then(function(t){var i=t.enrolled,r=t.enabled;return i?e.when(r):n.getDefaultPltService()})}function E(e,t){return S(e,t)>e.maxTotalFilesSize}function S(e,t){var n=e.document,i=e.additionalDocuments,r=e.eadDocuments;return(t&&n?[n].concat(i,r):[].concat(i,r)).reduce(function(e,t){return e+t.fileSizeRaw},0)}function C(e){var t=e.enabled,n=e.enabledForFromCountry,i=e.enrolled;return{importShipment:e.importShipment,enrollmentStatus:{enabled:t,enrolled:i,enabledForFromCountry:n,signatureUploaded:e.signatureUploaded},isPltActualized:!0}}function h(e){var t=e.isAvailable,n=e.paperless;return!t||!n}function I(e,t){var n=e.enrollmentStatus;return!(!t&&!n)}function A(e,t){var n=e.additionalInfo,i=e.additionalDocuments,r=e.document;return!(n&&!i.length||t&&!r)}function v(e){return!e.eadDocumentsRequired||!!e.eadDocuments.length}function N(e,t){return!!h(e)||A(e,t)&&v(e)&&I(e,t)&&!E(e,t)}function T(e,t,n){e.errors=N(e,t)?null:M(e,t,n)}function M(e,t,n){return{totalFilesSizeExceeded:E(e,t),documentsNotUploaded:!A(e,t),eadDocumentsNotUploaded:!n&&!v(e)}}function y(e){i.switchOffPlt(e)}function D(e){return t("fileSize")(e.maxTotalFilesSize,1024)}function O(e,n){var i=S(e,n);return t("fileSize")(i,1024)}function P(){return r.getSingularSuccessMessage()}function b(){return r.getPluralSuccessMessage()}function R(e){return e?o.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_PARAGRAPH_UPLOAD_YOUR_CUSTOMS_DOCUMENTS:o.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_PARAGRAPH_UPLOAD_CREATE_CUSTOMS_DOCUMENTS}function L(e){return e?G():U()}function G(){return F(o.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_LABEL_BROWSE_FILE_OR_DROP_HERE,o.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_BUTTON_BROWSE_FILE)}function U(){return F(o.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_INFO_TEXT_BROWSE_OR_DROP_HERE,o.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_INFO_TEXT_BROWSE_FILE)}function F(e,n){var i=' '+n+"";return t("replace")(e,{browseLink:i,trustAsHtml:!0})}function w(e){var t=e.digitalCustomsInvoiceModel,n=e.signatureDocument;t.signatureDocument=n,t.signatureSettingsSaved=!1,k(e)}function k(e){var t=e.shipmentTypeModel,n=e.shipmentData;t.enhancedInvoice.declaration.name=t.enhancedInvoice.declaration.name||n.fromCustomer.name}var j="ENABLED";return{actualizeEnrollmentStatus:u,shouldIgnoreValidation:h,isDciValid:N,isDciSectionVisible:a,isDciAvailable:c,productSupportsPlt:s,getDigitalCustomsInvoiceConfiguration:m,updateValidationErrors:T,isManifestingImmediate:l,isPltAvailableForShippingDate:d,isEadDocumentsNotUploadedErrorShown:f,switchOffPlt:y,getFileSizeLimit:D,getUsedFileSize:O,getSingularSuccessMessage:P,getPluralSuccessMessage:b,getDigitalInvoiceBrowseFileMessage:L,getDigitalInvoiceParagraphDocumentsMessage:R,processSuccessfullSignatureUpload:w}}i.$inject=["$q","$filter","digitalCustomsInvoiceResource","digitalCustomsInvoiceProductService","digitalCustomsInvoiceSectionVisibilityService","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="digitalCustomsInvoiceService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){return i.getMaxFileSize()}function o(e,t){return n.requestIncompleteStatus(e,t)}function u(){return t.getSourceData(t.CI_KEYS.CI0357_MANIFESTING_TYPE)}function a(){return t.getSourceData(t.CI_KEYS.CI0518_MAX_FILES_PER_SHIPMENT)}function c(){return t.getSourceData(t.CI_KEYS.CI0757_MAX_FILE_SIZE_FOR_COMPANY_LOGO)}function s(){return t.getSourceData(t.CI_KEYS.CI1445_DEFAULT_PLT_SERVICE)}function l(){return t.getSourceData(t.CI_KEYS.CI1305_ENABLE_PLT_FOR_ADVANCE_SHIPMENT)}function d(){return e.get("/api/shipment/defaults/paperless").then(function(e){return e.data})}return{requestIncompleteStatus:o,getManifestingTime:u,getMaxFilesPerShipment:a,getMaxFileSizeForCompanyLogo:c,getDefaultPltService:s,getPltEnabilityForAdvanceShipment:l,getPaperlessSettings:d,getMaxFileSize:r}}i.$inject=["$http","configService","customsInvoiceEnrollmentResource","fileSizeFormatterResource"],t.__esModule=!0,t["default"]=i,i.NG_NAME="digitalCustomsInvoiceResource"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){var i=t.getBasePath(),r=i+"/"+o["default"].CUSTOMS_ENROLLMENT_PAGE,u=n.CUSTOMS_CLEARANCE_SETTINGS.SIGNATURE_SETTINGS_SAVED,a=n.CUSTOMS_CLEARANCE_SETTINGS.GO_TO_MY_SHIPMENT_SETTINGS,c=""+a+"";return e("replace")(u,{myShipmentSettingsLink:c})}return{getMyShipmentSettingsLink:i}}i.$inject=["$filter","pathService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(23),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="digitalCustomsInvoiceSignatureLinkService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(t){return e.isPaperlessTrade(t)}function r(t){e.switchOffPlt(t)}function o(e){return t.getMinShipmentDate(e)}function u(e){var n=e.startDate,i=e.isAccountShipment,r=e.shipmentCountry;return t.getMaxShipmentDate({startDate:n,isAccountShipment:i,shipmentCountry:r})}function a(){return n.getDciPaperlessSettings()}return{isPaperlessTrade:i,switchOffPlt:r,getMinShipmentDate:o,getMaxShipmentDate:u,getDciPaperlessSettings:a}}i.$inject=["productServicesService","shipmentProductsService","digitalCustomsInvoiceProfileService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="digitalCustomsInvoiceProductService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){var t=e.dciModel,n=e.shipmentTypeModel,i=e.ownCustomsInvoice,r=e.product,s=e.fromCountry,l=e.shouldSkipEnrollmentStatus,d=c(r),f=t.enrollmentStatus,p=f.enabled,m=f.enrolled,_=p||l;return s!==o["default"].BRAZIL&&u(e)&&n.isShipmentTypePackage()&&a({enabled:_,enrolled:m,isOwnInvoice:i,isProductWithPlt:d})}function u(t){var n=t.dciModel,i=t.shipmentTypeModel,r=t.product,o=n.enrollmentStatus,u=n.dismissed,a=o.enabledForFromCountry,c=e.isAnyCustomsInvoiceAvailable(i);return!!r&&a&&!u&&c}function a(e){var t=e.enabled,n=e.enrolled,i=e.isOwnInvoice,r=e.isProductWithPlt;return t||!n&&r&&i}function c(e){var t=e&&e.optionalServices;return!!t&&t.some(n.isPaperlessTrade)}function s(){return i.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_ALERT_SINGULAR_FILE_UPLOADED}function l(){return i.SHIPMENT_OPTIONAL_SERVICES.DIGITAL_INVOICE_ALERT_PLURAL_FILES_UPLOADED}return{isDciSectionVisible:r,getSingularSuccessMessage:s,getPluralSuccessMessage:l}}i.$inject=["shipmentTypeHelperService","shipmentAddressService","digitalCustomsInvoiceProductService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(4),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="digitalCustomsInvoiceSectionVisibilityService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return r()?e.getPaperlessSettings():t.getPaperlessSettings()}function r(){return n.isCorpEmployee()&&e.isCompanyEnrollment()}return{getDciPaperlessSettings:i}}i.$inject=["corporateDigitalCustomsInvoicesService","profilePaperlessCustomsResource","userService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="digitalCustomsInvoiceProfileService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){return i(e)}function o(t){return e.getCustomsInvoiceTemplate(t)}function u(e){return e.then(t.showInvoiceTemplateModal)["catch"](t.handleTemplateError)}function a(t){return u(e.saveCustomsInvoiceTemplate(t))}function c(t){return u(e.updateCustomsInvoiceTemplate(t))}function s(e){var n=e.isCreatingCustomsInvoice()&&e.isEnhancedInvoiceVisited()&&!e.isEnhancedInvoiceCompleted();return n&&t.showIncompleteInvoiceDialog(),!n}function l(e){var n=e.isInvoiceCompleted,i=e.isReturnShipment;if(n)return t.showInvoicePreview(i);t.showIncompleteInvoiceDialog()}function d(e){return t.validateEnhancedInvoiceData(e)}function f(e){t.showInvoicePreview(e)}function p(e){return n.getEnhancedInvoiceData(e)}function m(e,t,i){n.setEnhancedInvoiceData(e,t,i)}function _(t){return e.loadTypesOfExport(t)}function g(e,t){return{fromCountryCode:e.getShipmentCountry(),fromServiceCode:e.getShipperAddress().addressDetails.serviceAreaCode,toCountryCode:e.getDestinationCountry(),toServiceCode:e.getReceiverAddress().addressDetails.serviceAreaCode,shipmentPackagingType:t.shipmentType,isDutiable:t.isDutiable,intraEuDutiableStatus:t.intraEuDutiableStatus,isMailingListShipment:!!e.getMailingListContacts(),model:t}}function E(e,t,i){return n.clearInvalidCommodityCodes(e,t,i)}function S(e){e.isDeclarationSectionVisible||Object.assign(e,{nafta:null,eur1:null,cites:null,coo:null,pod:null}),e.nafta=C(e.isNaftaOn,e.nafta),e.eur1=C(e.isEurOn,e.eur1),e.cites=C(e.isCitesOn,e.cites),e.coo=C(e.isCertificateOn,e.coo),e.pod=C(e.isPreferentialOriginDeclarationOn,e.pod)}function C(e,t){return e?t:null}function h(e){n.setSingleLogoFromLogoList(e)}function I(e){return n.getCustomsInvoiceData(e)}function A(e){return t.showCustomsTemplatesListPopup(e)}function v(e){n.mapCompanyLogos(e)}function N(t,n){return e.getCustomsInvoiceTemplateList(t,n)}return{loadInvoiceTemplate:o,saveInvoiceTemplate:a,updateInvoiceTemplate:c,showInvoicePreview:f,showSummaryPreviewDialog:l,showCustomsTemplatesListPopup:A,checkCompletion:s,loadTypesOfExport:_,validateEnhancedInvoiceData:d,clearInvalidCommodityCodes:E,clearHiddenDeclarationFields:S,mapCompanyLogos:v,setSingleLogoFromLogoList:h,setEnhancedInvoiceData:m,getEnhancedInvoiceData:p,getGssPayloadForEnhancedInvoice:g,getCustomsInvoiceData:I,getCountryName:r,getCustomsInvoiceTemplateList:N}}i.$inject=["customsInvoiceTemplatesService","enhancedInvoiceModalService","enhancedInvoiceMappingService","countryNameFilter"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){return t.showCustomsTemplatesListPopup(e)}function o(e){t.mapCompanyLogos(e)}function u(e){return e.invoiceTypesAvailability.COMMERCIAL}function a(e){return e.invoiceTypesAvailability.PRO_FORMA}function c(e){return n.loadInvoiceTypesListValue(e)}function s(n,i){return e.all([t.getCustomsInvoiceTemplateList(n,i),t.loadTypesOfExport()])}function l(n){var r=n.key,o=n.fromCountry,u=n.toCountry;return e.all([t.loadInvoiceTemplate(r),i.getSomParameters(o,u)])}return{showCustomsTemplatesListPopup:r,mapCompanyLogos:o,isCommercialInvoiceTypeAvailable:u,isProformaInvoiceTypeAvailable:a,getInvoiceTypesListValue:c,getEnhancedInvoiceTemplateParameters:s,loadCustomsInvoiceTemplateWithSomParams:l}}i.$inject=["$q","enhancedInvoiceService","enhancedInvoiceResource","shipmentTypeService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceTypeService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(e,t){var n=e.enhancedInvoice,i=e.itemAttributes;angular.copy(i,i.cachedItemAttributes),t.cachedAddressDetails=angular.copy(t),angular.equals(n.cachedEnhancedInvoice,{})&&angular.copy(n,n.cachedEnhancedInvoice)}function n(e,t){var n=angular.copy(t);Object.assign(e.cachedEnhancedInvoice,n)}function i(e,t){var n=e[t];angular.copy(n,e),e[t]=n}function r(t,n,r){var o=t.enhancedInvoice,u=t.itemAttributes;u.cachedItemAttributes.searchMode=u.searchMode,u.cachedItemAttributes.quantityUnitsList=u.quantityUnitsList,i(u,"cachedItemAttributes"),u.productList.length||e.addItemAttributesRow(u),i(o,"cachedEnhancedInvoice"),i(n,"cachedAddressDetails"),r.incoterm=null}return{cacheModel:t,updateCachedModel:n,restoreModelFromCache:r}}i.$inject=["itemAttributesService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceCacheService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){return t.getSourceData(t.CI_KEYS.CI0128_INVOICE_TYPES,e)}function i(e){return t.getValue(t.CI_KEYS.CI0128_INVOICE_TYPES,e).then(function(e){return e.data.value.map(function(e){return e.type.value})})}function r(e){return t.getSourceData(t.CI_KEYS.CI0981_COMMERCIAL_INVOICE_ONLY,e)}function o(t,i){return e.all([r(i),n(t)])}return{loadInvoiceTypesListValue:i,loadInvoiceTypeParameters:o}}i.$inject=["$q","configService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceResource"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){var n=e.data.fieldErrors,i="errors.common_backend-error_customs-invoice-template-name-is-not-unique";if(n){var r=Object.keys(n)[0],o=n[r][0];t.showMessageDialog({nlsMessage:o})}else e.data.errors.includes(i)&&t.showMessageDialog({nlsMessage:i})}function o(){return t.showDialog({windowClass:"ewf-modal_width_large",templateUrl:"invoice-template-successfully-saved.html"})}function u(){t.showDialog({templateUrl:"incomplete-enhanced-invoice-dialog.html"})}function a(e){return t.showDialog({scope:e,windowClass:"ewf-modal_width_large",templateUrl:"saved-customs-templates-popup.html"})}function c(e){var t=n.getShipmentData();return e?t.returnShipment:t}function s(t){var n=c(t);return l(n)?e.when(!1):i.generateInvoicePreviewKey(n,t).then(function(){return!0})["catch"](function(){return!1})}function l(e){return e&&e.customsInvoice&&e.customsInvoice.items&&e.customsInvoice.items.some(function(e){return!e.quantityUnits})}function d(){var e=!(arguments.length<=0||arguments[0]===undefined)&&arguments[0];return i.showInvoicePreview(c(e),e)}return{handleTemplateError:r,showInvoiceTemplateModal:o,showIncompleteInvoiceDialog:u,showCustomsTemplatesListPopup:a,validateEnhancedInvoiceData:s,showInvoicePreview:d}}i.$inject=["$q","modalService","shipmentDataService","customsInvoicePreviewService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceModalService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){e&&e.companyLogo&&(e.companyLogos=[e.companyLogo])}function o(e,t){var n=e.involvedPartiesData,i=n.shipper,r=i===undefined?{}:i,o=n.receiver,a=o===undefined?{}:o,c=r.exporterCode,s=r.exporterId,l=a.ultimateConsignee,d=a.countryOfUltimateDestination;e.involvedPartiesData=t,Object.assign(e.involvedPartiesData.shipper,{exporterId:s||e.involvedPartiesData.shipper.exporterId,exporterCode:c||e.involvedPartiesData.shipper.exporterCode}),e.involvedPartiesData.receiver.ultimateConsignee=l||e.involvedPartiesData.receiver.ultimateConsignee,e.template.invoiceUserName=t.shipper.name,u(e,d)}function u(e,t){var n=e.countriesList.find(function(e){return e.code2===t});n&&(e.country={code2:n.code2,name:n.name})}function a(e){var t=e.involvedPartiesData.shipper||{},n=t.exporterCode;return{exporterId:e.exportIdType,exporterCode:n}}function c(e){var t=e.template,n=e.bankDetailsVisible?t.bankDetails:null,i=t.declaration;return s(i),{enhanced:!0,terms:angular.copy(t.terms),bankDetails:n,invoiceType:t.invoiceType,shipper:a(e),references:angular.copy(t.references),declaration:angular.copy(i)}}function s(e){if(e&&e.companyLogos){var t=e.companyLogos;e.companyLogo=t[0]}}function l(e,t){var n=t.involvedParties;if(n){var i=n.shipper,r=i===undefined?{}:i;e.exportIdType=r.exporterId,e.involvedPartiesData.shipper.exporterCode=r.exporterCode}}function d(e,t,n){var i=t.involvedParties||{},r=i.shipper,o=r===undefined?{}:r,u=i.receiver,a=u===undefined?{}:u;Object.assign(e.involvedPartiesData,{shipper:o,receiver:a}),Object.assign(e.template,{invoiceType:t.invoiceType,reasonForExport:t.reasonForExport,references:t.references,terms:t.terms}),_(e,t,n),l(e,t)}function f(e){return e.productList.map(function(e){return{countryCode:e.countryCode,currency:e.currency,description:e.description,exportCommodityCode:e.exportCommodityCode,importCommodityCode:e.importCommodityCode,id:e.id,name:e.name,weight:e.weight,quantity:e.quantity,quantityUnits:e.quantityUnits,som:e.som,value:e.value}})}function p(e,n){var i=e.enhancedInvoice,r=i.template,o=i.declaration,u=e.itemAttributes,a=f(u),c=t.getShipmentData(),s=c.paymentInfo;return Object.assign({},r,{declaration:o,templateItems:{items:a,totalDeclaredValue:u.totalDeclaredValue,weightUnits:u.weightUnits,currencyCode:u.currentCurrency},terms:{termsOfTrade:s.incotermCode,destinationPortName:r.terms.destinationPortName,termsOfPayment:r.terms.termsOfPayment},otherCharges:n.charges})}function m(e,t,n){e.template.references=e.template.references||{},e.template.fromCountry=t.getShipmentCountry(),e.template.toCountry=t.getDestinationCountry(),e.template.cteOption=n.cteOption}function _(e,t,i){if(!i)return e.bankDetailsVisible=!!t.bankDetails&&!angular.equals(t.bankDetails,{}),void(e.template.bankDetails=e.bankDetailsVisible?t.bankDetails:null);n.getBoolean(n.CI_KEYS.CI0852_INVOICE_BANK_DETAILS_FIELDS,i).then(function(n){e.bankDetailsVisible=n,e.template.bankDetails=n?t.bankDetails:null})}function g(e,t,n){return i.clearInvalidCommodityCodes(e,t,n)}function E(t){return e.getCustomsInvoiceData(t)}return{setInvoiceInvolvedPartiesData:o,getEnhancedInvoiceData:c,setEnhancedInvoiceData:d,setSingleLogoFromLogoList:s,getInvoiceTemplate:p,mapInvoiceOnInit:m,clearInvalidCommodityCodes:g,getCustomsInvoiceData:E,mapCompanyLogos:r}}i.$inject=["itemAttributesService","shipmentDataService","configService","itemAttributesHelperService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceMappingService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){e.processDeclarationWithDefaults(t.declaration).then(function(e){return Object.assign(t.declaration,e)})}function o(e){return!!e.exportIdType&&"NONE"!==e.exportIdType}function u(t,n){return e.isShipmentRestrictedByOfac(t,n)}function a(e,n){t.setInvoiceInvolvedPartiesData(e,n)}function c(e,n){return t.getInvoiceTemplate(e,n)}function s(t,n){return e.loadPreferentialOriginDeclarationAvailability(t,n)}function l(){i.onReturnFromPreviousState()}function d(e){return n.invokeGlobalScreeningValidation(e)}function f(t,n,i){e.updateDeclarationsAvailability(t,n,i)}return{applyDeclarationsDefaults:r,isCodeSelected:o,isShipmentRestrictedByOfac:u,setInvoiceInvolvedPartiesData:a,getInvoiceTemplate:c,getPreferentialOriginDeclarationAvailability:s,onEnhancedInvoiceComplete:l,invokeGlobalScreeningValidation:d,updateDeclarationsAvailability:f}}i.$inject=["enhancedInvoiceComponentConfigService","enhancedInvoiceMappingService","globalScreeningValidationService","analyticsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceComponentService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){return t.getDeclarationsDefaults().then(function(n){return t.combineDeclarationWithDefaults(e,n)})}function i(e,n){return t.getPreferentialOriginDeclarationAvailability(e,n)}function r(t,n){return e.isShipmentRestrictedByOfac(t,n)}function o(e,n,i){t.updateDeclarationsAvailability(e,n,i)}return{processDeclarationWithDefaults:n,loadPreferentialOriginDeclarationAvailability:i,isShipmentRestrictedByOfac:r,updateDeclarationsAvailability:o}}i.$inject=["ofacService","declarationsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="enhancedInvoiceComponentConfigService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){i.loadShippingPurpose(e)}function u(e,t){i.onPurposeChanged(e,t)}function a(e,t){return i.getUnifiedShippingPurposeList(e,t)}function c(t,n){var i=n.enhancedInvoiceModel,r=n.itemAttributesModel;r.productList=[],l(r),t.templateItems.items.forEach(function(t){var n=i.countriesList.find(function(e){return e.code2===t.countryCode});t.countryName=n?n.name:"",t.isUpdated=!0,r.shipperCountrySom=r.shipperCountrySom||t.som,(t.referenceNumber||t.referenceTypeCode)&&(t.isAddItemReference=!0),e.addItemAttributesRow(r,t)}),s(n)}function s(t){var n=t.itemAttributesModel,i=t.customsInvoiceUploadModel;e.isExtendedFlowEnabled(n)?i.enableExtendedFlow():i.isExtendedFlowEnabled=!1}function l(e){if(e.currencyCode!==e.currentCurrency){var t=e.currenciesList.find(function(t){return t===e.currencyCode});t&&(e.currentCurrency=t)}}function d(e,n,i){t.getIncoterms(i).then(function(t){n.incoterm=t.find(function(t){return t.code===e.terms.termsOfTrade})||n.incoterm})}function f(e,t){var i=e.terms.dutyTaxesAccount===o["default"].ALTERNATE?n.getAlternateDHLAccountOption():n.getReceiverWillPayOption(),r=e.terms.dutyTaxesAccountNumber;t.dutiesPaymentType=t.dutiesPaymentType||i,t.dutiesAlternateAccountNumber=r,t.taxesPaymentType=i,t.taxesAlternateAccountNumber=r}function p(e,t,n){t.charges=n?[]:e.otherCharges}function m(t,n){e.validateAndSetSimplifiedViewFlag(t,n)}function _(t,n){e.restoreCustomsInvoiceType(t,n)}return{mapItemAttributesItems:c,mapIncoterms:d,mapDutiesAndTaxes:f,mapOtherCharges:p,getShippingPurposeList:a,loadShippingPurpose:r,onPurposeChanged:u,restoreCustomsInvoiceType:_,validateAndSetSimplifiedViewFlag:m}}i.$inject=["itemAttributesService","masterShipmentIncotermsService","paymentTypeService","shipmentPurposeService"],t.__esModule=!0,t["default"]=i;var r=n(129),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="enhancedInvoiceTypeMappingService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{shipmentTypeModel:"<"+o,toCountry:"<"+o+"ToCountry",toServiceCode:"<"+o+"ToServiceCode",fromCountry:"<"+o+"FromCountry",fromServiceCode:"<"+o+"FromServiceCode",isDocument:"<"+o+"IsDocument",isDocumentDescriptionDisabled:"])+>/g;return e.replace(t,"")}function I(e){F.model.predefinedDocumentDescription=!1;var t=e.toLowerCase();return F.documents.filter(function(e){return e.translation.toLowerCase().includes(t)})}function A(){F.model.predefinedDocumentDescription=!0}function v(e){var t=F.model[F.description];return angular.isObject(t)?t[e]:t}function N(){var e=v(o.DESCRIPTION_PROPERTIES.TRANSLATION)||"",t=F.documents.find(function(t){return t.translation.toLowerCase()===e.toLowerCase()});return M(t)||y(t)||T()}function T(){return F.isDocumentDescriptionDisabled||F.isCustomValueAllowed}function M(e){if(F.model.predefinedDocumentDescription)return!!e||F.isCustomValueAllowed}function y(e){if(e)return F.model[F.description]=e,A(),!0}function D(){return e.isShipmentTypeDocument(F.model)?F.isDocumentDescriptionDropdown?F.isCustomValueAllowed?n.SHIPMENT_DETAILS.SHIPMENT_TYPE_SUB_HEADER_DESCRIBE_DOCUMENTS_ENABLED_CUSTOM:n.SHIPMENT_DETAILS.SHIPMENT_TYPE_SUB_HEADER_DESCRIBE_DOCUMENTS_ENABLED:n.SHIPMENT_DETAILS.SHIPMENT_TYPE_SUB_HEADER_DESCRIBE_DOCUMENTS_DISABLED:""}function O(){var t=e.getDescriptionMaxLength(),n=v(o.DESCRIPTION_PROPERTIES.NAME),i=n&&n.length||0,r=t-i-1;return Math.max(0,r)}function P(){return e.isShipmentTypeDocument(F.model)&&F.isAdditionalDescriptionAllowed}function b(){if(!R())return void L();var e=F.model.additionalDocumentDescription?v(o.DESCRIPTION_PROPERTIES.NAME)+" "+F.model.additionalDocumentDescription:v(o.DESCRIPTION_PROPERTIES.NAME);F.model[F.description]=e,F.model.additionalDocumentDescription="",w=!0}function R(){return!F.isAdditionalDescriptionAllowed&&F.isCustomValueAllowed&&(F.isAssignShipment||F.isReturnShipment)}function L(){F.isCustomValueAllowed||F.isAdditionalDescriptionAllowed||(F.model.additionalDocumentDescription="")}function G(){var e=""+F.model[F.description]+F.toCountry+F.isNewDataFetched;return F.isNewDataFetched=!1,e}function U(e,n,i){var r={shipmentDescription:F.model[F.description],fromCountryCode:F.fromCountry,fromServiceCode:F.fromServiceCode,toCountryCode:F.toCountry,toServiceCode:F.toServiceCode,shipmentPackagingType:F.model.shipmentType,model:F.model,ngModelCtrl:e.ngModelCtrl,isMandatory:n,isDutiable:F.model.isDutiable,intraEuDutiableStatus:F.model.intraEuDutiableStatus,isMailingListShipment:F.isMailingListShipment,eventRelatedTarget:i.relatedTarget};t.invokeGssValidationForDescription(r)}var F=this,w=void 0;Object.assign(F,{$onChanges:i,onSelect:A,onDescriptionBlur:U,defineDocumentsDescription:m,validateDescription:N,getDocumentDescriptionPlaceholder:C,getAvailableDescriptions:I,getDocumentsDescriptionLabelText:D,getAdditionalDescriptionMaxLength:O,getDocumentDescriptionValidationTrigger:G,isInput:l,isTextArea:d,isInputWithDropdown:f,isAdditionalDescriptionVisible:P,documents:[],isNewDataFetched:!1})}i.$inject=["component"],r.$inject=["documentDescriptionService","globalScreeningValidationService","Messages"],t.__esModule=!0,t["default"]=i,t.DocumentDescriptionInputController=r;var o=n(498),u=i.NG_NAME="ewfDocumentDescriptionInput"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"global-screening-alert.html",controller:r,controllerAs:"globalScreeningAlertCtrl",bindings:{validationResult:"<"+u,showCreateDescriptionPopup:"&?"+u+"ShowCreateDescriptionPopup"}})}function r(){function e(){return n.validationResult&&[o.GSS_MODE.WARNING,o.GSS_MODE.ERROR].includes(n.validationResult.mode)&&n.validationResult.status===o.GSS_STATUS.RED}function t(){return n.validationResult?o.GSS_ALERT_CLASSES[n.validationResult.mode]:""}var n=this;Object.assign(n,{isGlobalScreeningAlertVisible:e,getGlobalScreeningAlertClass:t})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.GlobalScreeningAlertController=r;var o=n(261),u=i.NG_NAME="ewfGlobalScreeningAlert"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){"ngInject";function i(e){var i=e.isDutiable,r=e.fromCountryCode,o=e.toCountryCode;if(i)return t.when(!0);var u={fromCountryCode:r,toCountryCode:o};return n.isCountriesFromEurope(u)}function r(e){return n.validateGlobalScreening(e)}function u(e,t){if(!e||!e.shipmentDescriptionStatus)return t.gssValidationResult=null,!1;var n=e.shipmentDescriptionStatus;return t.gssValidationResult=n,p(n)}function c(e,t){var n=arguments.length<=2||arguments[2]===undefined?0:arguments[2];if(!e||!e.lineItemDescriptionStatuses||!e.lineItemDescriptionStatuses[n])return t.gssValidationResult=null,!1;var i=e.lineItemDescriptionStatuses[n];t.gssValidationResult=i;var r=p(i);return r||(t.isSimplifiedViewEnabled=!1),r}function d(e){var t=e.gssValidationResult,n=e.shipmentTypeModel,i=e.lineItemModels,r=u(t,n),o=f(t,i);return(!t.shipmentDescriptionStatus||r)&&(!t.lineItemDescriptionStatuses||o.every(Boolean))}function f(e,t){return t.filter(function(e){return e.description}).map(function(t,n){return c(e,t,n)})}function p(e){return e.mode!==o.GSS_MODE.ERROR||e.status===o.GSS_STATUS.GREEN}function m(e){var t=e.shipmentTypeModel,n=e.addressDetailsModel,i=e.eeiList,r=e.lineItemUploaded,o=r!==undefined&&r,u=t.getDataPart(),a=u.customsInvoice&&u.customsInvoice.items||[],c=_({shipmentTypeData:u,lineItems:a,gssPayload:e}),s=S({shipmentTypeData:u,lineItems:a,gssPayload:e});if(i){var l=i.map(function(e){return e.description});s=(s||[]).concat(l)}return{shipmentDescription:c,lineItemDescriptions:s,fromCountryCode:n.getShipmentCountry(),fromServiceCode:n.getShipperAddress().addressDetails.serviceAreaCode,toCountryCode:n.getDestinationCountry(),toServiceCode:n.getReceiverAddress().addressDetails.serviceAreaCode,shipmentPackagingType:t.shipmentType,lineItemUploaded:o}}function _(t){var n=t.shipmentTypeData;return g(t,e.is(l.states.ENHANCED_INVOICE)||e.is(l.states.RETURN_LABEL_ENHANCED_INVOICE))?null:n.documentDescription}function g(e,t){var n=e.lineItems,i=e.gssPayload.shipmentTypeModel,r=i.isCreatingEnhancedInvoice();return E(e)&&n.length<=1&&(!r||t)}function E(e){var t=e.gssPayload,n=t.shipmentTypeModel,i=t.isReturnLabel,r=e.shipmentTypeData;return i?C(r):n.isLineItemsAvailable()}function S(e){var t=e.shipmentTypeData,n=e.lineItems;return(!e.gssPayload.isReturnLabel||C(t))&&n.length&&h(n)||null}function C(e){return e.customsInvoiceType===s["default"].CREATE}function h(e){var t=e.map(function(e){return e.description}).filter(Boolean);return t.length&&t}function I(e){var n=e.shipmentTypeModel,r=e.addressDetailsModel;if(N(r,n))return t.when(!0);var o=m(e);return o.shipmentDescription||L(o.lineItemDescriptions)?i({isDutiable:n.isDutiable,fromCountryCode:r.getShipmentCountry(),toCountryCode:r.getDestinationCountry()}).then(function(n){return n?A(o,e):t.when(!0)}):t.when(!0)}function A(e,t){var n=t.shipmentTypeModel,i=t.eeiList;return r(e).then(function(e){return d({gssValidationResult:e,shipmentTypeModel:n,lineItemModels:v(t,i)})})}function v(e,t){var n=e.shipmentTypeModel;return(E({gssPayload:e,shipmentTypeData:n.getDataPart()})?n.getLineItemsBasedOnInvoiceType():[]).concat(t||[])}function N(e,t){return O({fromCountryCode:e.getShipmentCountry(),toCountryCode:e.getDestinationCountry(),isMailingListShipment:!!e.getMailingListContacts(),intraEuDutiableStatus:t.intraEuDutiableStatus,isDutiable:t.isDutiable,shipmentPackagingType:t.shipmentType})}function T(e){return M(e)?b(e):t.when(!0)}function M(e){var t=e.ngModelCtrl,n=t===undefined?{$valid:!0}:t;return!y(e)&&(n.$valid||n.$error&&!n.$error.prohibition&&n.$error.gssValidation)}function y(e){var t=e.eventRelatedTarget;return P(e)?(e.model.gssValidationResult={status:o.GSS_STATUS.GREEN},!0):!!D(t)||O(e)}function D(e){return e&&G.includes(e.id)}function O(e){var t=e.isMailingListShipment,n=e.fromCountryCode,i=e.toCountryCode,r=e.intraEuDutiableStatus,o=e.isDutiable,u=e.shipmentPackagingType;return t||u!==a["default"].PACKAGE||n===i&&!(r&&o)}function P(e){var t=e.lineItemDescriptions&&e.lineItemDescriptions[0];return!(e.isMandatory||e.shipmentDescription||t)}function b(e){var n=e.shipmentDescription?u:c,o=R(e);return i(e).then(function(i){return i?r(o).then(function(t){return n(t,e.model)}):t.when(!0)})}function R(e){return{shipmentDescription:e.shipmentDescription,lineItemDescriptions:e.lineItemDescriptions,fromCountryCode:e.fromCountryCode,fromServiceCode:e.fromServiceCode,toCountryCode:e.toCountryCode,toServiceCode:e.toServiceCode,shipmentPackagingType:e.shipmentPackagingType}}function L(e){return e&&e.length}var G=["nextButton","saveToMyProductList"];return{invokeGlobalScreeningValidation:I,invokeGssValidationForDescription:T,isScreeningMustBeSkipped:O}}r.$inject=["$state","$q","globalScreeningResource"],t.__esModule=!0,t["default"]=r;var o=n(261),u=n(9),a=i(u),c=n(62),s=i(c),l=n(8);r.NG_NAME="globalScreeningValidationService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t){return e.get("/api/shipment/intraEu",{params:t,cache:!0}).then(function(e){return e.data})}function i(n){var i=u(n),c=i.shipmentDescriptionCacheKey,s=i.lineItemDescriptionCacheKeys;return a(c,s)?t.when({shipmentDescriptionStatus:d[c],lineItemDescriptionStatuses:s.map(function(e){return d[e]})}):r(c,s)?t.when({lineItemDescriptionStatuses:s.map(function(e){return d[e]})}):o(c,s)?t.when({shipmentDescriptionStatus:d[c]}):e.post("/api/shipment/description/screening",n).then(function(e){var t=e.data;return l(t,c,s),t})}function r(e,t){return!e&&s(t)}function o(e,t){return!t&&c(e)}function u(e){var t=e.lineItemDescriptions,n=e.fromCountryCode,i=e.fromServiceCode,r=e.toCountryCode,o=e.toServiceCode,u=e.shipmentDescription,a=[n,i,r,o].join();return{shipmentDescriptionCacheKey:u&&a+","+u,lineItemDescriptionCacheKeys:t&&t.map(function(e){return a+","+e})}}function a(e,t){return c(e)&&s(t)}function c(e){return e&&d[e]}function s(e){return e&&e.every(function(e){return d[e]})}function l(e,t,n){var i=e.lineItemDescriptionStatuses,r=e.shipmentDescriptionStatus;r&&(d[t]=r),i&&i.forEach(function(e,t){var i=n[t];d[i]=e})}var d={};return{isCountriesFromEurope:n,validateGlobalScreening:i}}i.$inject=["$http","$q"],t.__esModule=!0,t["default"]=i,i.NG_NAME="globalScreeningResource"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t,n,a){return r=r||e.debounce(i,o["default"].currencyConversionTimeout),(a?r:i)({amount:t,sourceCurrency:n,targetCurrency:u})}function i(e){return t.processCurrencyConversion(e)}var r=void 0,u="INR";return{getAmountConvertedToInr:n}}i.$inject=["debounceService","shipmentTypeService"],t.__esModule=!0,t["default"]=i;var r=n(24),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="gstDataService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t,n){e(function(){t.invoiceType=i(t,n)})}function i(e,t){return t?h:r("invoiceType",e)}function r(e,t){return t.shippingPurpose?t.shippingPurpose[e]:""}function u(e,t){var n=a(e,t);return angular.equals(I,n)?I:(I=n,n)}function a(e,t,n){return e.isShipmentTypeCategoriesAvailable?c(e,t,n):e.itemAttributes.shippingPurposeList}function c(e,n,i){var r=t.getAvailableIndiaShippingPurposes(e,n);return s(r,n,e,i),r}function s(e,t,i,r){i.itemAttributes.shippingPurpose&&t&&e.length&&(e.find(function(e){return e.reasonForExport===i.itemAttributes.shippingPurpose.reasonForExport})||(i.itemAttributes.shippingPurpose=null,n(i.itemAttributes,r)))}function l(e){var n=e.shipmentTypeModel.isEnhancedInvoiceVisited(),i={fromCountryCode:e.fromCountry,toCountryCode:e.toCountry,isEnhancedInvoice:n,shipmentTypeModel:e.shipmentTypeModel};t.getShippingPurposeList(i).then(function(t){return d(t,e)})}function d(e,t){t.shipmentTypeModel.itemAttributes.shippingPurposeList=[].concat(e.shipmentPurposeItemList),t.onlyCommercialInvoice=e.onlyCommercialInvoice,m(t),f(t)}function f(e){var t=e.shipmentTypeModel.itemAttributes,i=e.onlyCommercialInvoice,r=t.shippingPurposeList.find(function(e){return e.defaultPurpose});r&&p(t.shippingPurpose)&&(t.shippingPurpose=r,n(t,i)),_(t)}function p(e){return t.shouldUpdateShippingPurpose(e)}function m(e){e.shipmentTypeModel.isShipmentTypeCategoriesAvailable&&e.fromCountry===o["default"].INDIA&&t.loadIndiaShippingPurpose().then(function(t){return e.indiaShippingPurposes=t})}function _(e){if(e.shippingPurpose&&!e.shippingPurpose.description){var t=e.shippingPurposeList.find(function(t){return t.reasonForExport===e.shippingPurpose.reasonForExport});t&&t.description&&(e.shippingPurpose.description=angular.copy(t.description))}}function g(e,t,n){var i=n?E(e,t):S(e,t);return i&&(t.isShipmentPurposeVisible=i),i}function E(e,t){return(e||t.isCommercialInvoiceAvailableForCurrentShipmentType())&&!t.isShipmentTypeCategoryMissing()&&(!t.isEnhancedInvoiceVisited()||t.isUsingOwnCustomsInvoice())}function S(e,t){return(t.isCustomsInvoiceAvailable||t.isShipmentTypePackage())&&C(e,t)}function C(e,t){return(!t.isEnhancedInvoiceVisited()||!t.isCreatingEnhancedInvoice())&&(e||t.isCommercialInvoiceAvailableForCurrentShipmentType())&&!t.isShipmentTypeCategoryMissing()}var h="C",I=void 0;return{onPurposeChanged:n,getShippingPurposeList:a,loadShippingPurpose:l,setDefaultShippingPurpose:f,handleShipmentPurposeVisibility:g,getUnifiedShippingPurposeList:u}}i.$inject=["$timeout","shipmentItemAttributesFacade"],t.__esModule=!0,t["default"]=i;var r=n(4),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="shipmentPurposeService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){return e.isShippingPurposeSelected(t)}function o(e){return n.isCsbvShipment(e)}function u(e){return t.getShipmentType(e)}function a(e){return i.isShipmentInsuranceAvailable(e)}function c(e){return i.isInsuranceBlockedByConfig(e)}function s(t){return e.isItemAttributesBlockVisible(t)}function l(t,n){return e.isItemAttributesFileFailed(t,n)}return{isShippingPurposeSelected:r,isCsbvShipment:o,isShipmentInsuranceAvailable:a,getShipmentTypeForBrazil:u,isInsuranceBlockedByConfig:c,isItemAttributesBlockVisible:s,isItemAttributesFileFailed:l}}i.$inject=["shipmentItemAttributesFacade","brazilService","indiaFlowService","insuranceAvailabilityService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentTypeItemsService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({bindings:{shipmentTypeModel:"<"+l,addressDetailsModel:"<"+l+"AddressDetailsModel",itarBisModel:"<"+l+"ItarBisModel",masterReferenceNumberModel:"<"+l+"MasterReferenceNumberModel",packageDetailsModel:"<"+l+"PackageDetailsModel",otherChargesModel:"<"+l+"OtherChargesModel",customsInvoiceUploadModel:"<"+l+"CustomsInvoiceUploadModel",referencesData:"<"+l+"ReferencesData",cteOption:"<"+l+"CteOption",shipmentTypeCategory:"<"+l+"ShipmentTypeCategory",transportationPaymentType:"<"+l+"TransportationPaymentType",isBankDetailsVisible:"<"+l+"BankDetailsVisible",isVatTaxEnteredOnAddressStep:"<"+l+"VatTaxEnteredOnAddressStep",isEoriEnteredOnAddressStep:"<"+l+"EoriEnteredOnAddressStep",isVatTaxCrEnteredOnAddressStep:"<"+l+"VatTaxCrEnteredOnAddressStep",isDeclaredValueDisabled:"<"+l+"DeclaredValueDisabled",isDeclaredValueHiddenByB2lRestrictions:"<"+l+"DeclaredValueHiddenByB2lRestrictions",isItemAttributesDeclaredValueDisabled:"<"+l+"ItemAttributesDeclaredValueDisabled",isEnhancedInvoiceCreatedByDefault:"<"+l+"CreateEnhancedInvoiceByDefault",isDocumentsTypeDisabled:"<"+l+"DocumentsTypeDisabled",isPackagesTypeDisabled:"<"+l+"PackagesTypeDisabled",isAssignShipment:"t.getDateIgnoringTime(a.maxSupplyDate)}var a=this;Object.assign(a,{$onInit:i,isSupplyDetailsAvailable:o,isDateDisabled:u})}i.$inject=["component"],r.$inject=["indiaFlowService","dateTimeService","shipmentProductsService"],t.__esModule=!0,t["default"]=i,t.ShipmentTypeSupplyDetailsController=r;var o=i.NG_NAME="ewfShipmentTypeSupplyDetails"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"shipmentPurposeCtrl",templateUrl:"shipment-purpose.html",bindings:{shippingPurpose:"="+o,isDutiable:"<"+o+"IsDutiable",list:"<"+o+"List",onShipmentPurposeChanged:"&?"+o+"OnPurposeChanged"}})}function r(){"ngInject";function e(e){t(e.list)&&(u.shippingPurpose=null)}function t(e){return e&&n()&&u.shippingPurpose&&!i()}function n(){return u.list&&!!u.list.length}function i(){return u.list.some(function(e){return e.reasonForExport===u.shippingPurpose.reasonForExport})}function r(){u.onShipmentPurposeChanged&&u.onShipmentPurposeChanged()}function o(){return u.shippingPurpose&&!!u.shippingPurpose.reasonForExport}var u=this;Object.assign(u,{$onChanges:e,onPurposeChanged:r,isShipmentPurposeValid:o})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.ShipmentPurposeController=r;var o=i.NG_NAME="ewfShipmentPurpose"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{shipmentTypeModel:"<"+a,isExtendedFlowEnabled:"<"+a+"IsExtendedFlowEnabled"},controller:r,controllerAs:"shipmentTypeCustomsInvoiceItemsCtrl",templateUrl:"components/shipment/type/shipment-type-customs-invoice-items.html"})}function r(e,t){"ngInject";function n(){e.isGuest()&&(s.shipmentTypeModel.customsInvoiceItemDetailType=u["default"].DESCRIBE,l=!0)}function i(){s.shipmentTypeModel.isCustomsInvoiceDetailSwitcherHidden=l||s.shipmentTypeModel.isCsbvShipment()}function r(){return s.shipmentTypeModel.isLineItemsAvailable()}function o(){return!r()||!!s.shipmentTypeModel.customsInvoiceItemDetailType}function a(){return s.shipmentTypeModel.customsInvoiceItemDetailType||s.shipmentTypeModel.isItemsDetailChecked}function c(){t.setCurrentCurrencyToUploadedCurrencyIfNeeded(s.shipmentTypeModel),s.shipmentTypeModel.isItemsDetailChecked=null}var s=this,l=void 0;Object.assign(s,{customsInvoiceItemDetailsTypes:u["default"],$onInit:n,$doCheck:i,isRequired:r,isFormValid:o,isCustomsInvoiceItemDetailTypeValid:a,handleCustomsInvoiceItemDetailsChecked:c})}i.$inject=["component"],r.$inject=["userService","itemAttributesService"],t.__esModule=!0,t["default"]=i,t.ShipmentTypeCustomsInvoiceItemsController=r;var o=n(100),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfShipmentTypeCustomsInvoiceItems"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{model:"<"+u,goodsAndServicesTaxId:"<"+u+"GoodsAndServicesTaxId",gstinType:"<"+u+"GstinType",invoiceNumber:"="+u+"InvoiceNumber",totalDeclaredValue:"<"+u+"TotalDeclaredValue",declaredCurrency:"<"+u+"DeclaredCurrency",country:"<"+u+"Country",countryDivisionCode:"<"+u+"CountryDivisionCode",isDutiable:"<"+u+"Dutiable",isCreatingEnhancedInvoice:"<"+u+"CreatingEnhancedInvoice"},controller:r,controllerAs:"gstDataCtrl",templateUrl:"components/item-attributes/india/gst-data.html"})}function r(e,t,n,i,r){"ngInject";function u(){s(),g()}function a(e){var t=e.isDutiable,n=e.isCreatingEnhancedInvoice,i=e.model,r=e.totalDeclaredValue,o=e.declaredCurrency;l(t,i),f(n),d(r,o)}function c(){C.model.gstIdentifier=C.goodsAndServicesTaxId,C.model.gstinType=C.gstinType,C.model.originInvoiceNumber=C.invoiceNumber}function s(){C.transactionTypes=[{value:o.TRANSACTION_TYPES.SELECT_ONE,label:r.SHIPMENT_DETAILS.GST_SELECT_TRANSACTION_TYPE_SELECT_ONE},{value:o.TRANSACTION_TYPES.REGULAR,label:r.SHIPMENT_DETAILS.GST_SELECT_TRANSACTION_TYPE_REGULAR},{value:o.TRANSACTION_TYPES.BILL_SHIP_FROM,label:r.SHIPMENT_DETAILS.GST_SELECT_TRANSACTION_TYPE_BILL_SHIP_FROM}]}function l(e,t){(e||t)&&p()}function d(e,t){if(e||t)return C.totalDeclaredValue?void S().promise.then(function(){return i.getAmountConvertedToInr(C.totalDeclaredValue,C.declaredCurrency,!0)}).then(function(e){I=e,E()}):(I=null,void E())}function f(e){e&&C.isCreatingEnhancedInvoice&&(C.model.originInvoiceDate=m()),e&&(C.isInvoiceFieldDisabled=!!C.invoiceNumber&&C.isCreatingEnhancedInvoice)}function p(){C.model.gstSectionVisible=C.isDutiable}function m(){return t("date")(new Date,"yyyy-MM-dd")}function _(){return!!C.invoiceNumber||!!C.model.gstInvoiceNumber}function g(){n.getFormField(n.CI_KEYS.CI1301_E_WAYBILL_CAP_AMOUNT,C.country).then(function(e){var t=e.value,n=e.currency;return i.getAmountConvertedToInr(t,n)}).then(function(e){h=e,S().resolve()})}function E(){C.hideFields=!I||I=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t,n,i,o,u,c,l,m,g,E,S){"ngInject";function C(e){return h(e).map(function(e){return e.key})}function h(e){return e.filter(function(e){return e.isSelected})}function I(e){return v(T(e))}function A(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return I({sortingParameters:e.sortingParameters,isPopup:e.isPopup,collectionType:e.collectionType,currentPage:e.currentPage,countryToExclude:e.countryToExclude,collection:d["default"].GLOBAL_MAIL})}function v(t){return e.get(t).then(function(e){return e.data})}function N(){return{pageIndex:0,pageSize:f.MIN_PAGE_SIZE}}function T(){var e=arguments.length<=0||arguments[0]===undefined?{}:arguments[0],t=e.isPopup,n=e.countryCode,i=e.collectionType,r=void 0;return n?(r=M(e,{countryCode:n}),y(ue,r)):t?(r=M(e,{direction:i},!0),y(oe,r)):(r=M(e,{}),y(oe,r))}function M(e,t,n){var i=e.currentPage,r=e.excludeCountryCodes,o=e.collection,u=i||N(),a=u.pageIndex,c=u.pageSize,s={pageNumber:a,pageSize:c,excludeCountryCodes:r,collection:o},l=S.getSortingParameters(e,n);return Object.assign(s,t,{sortingParameters:l})}function y(e,t){var n=t.sortingParameters,i=r(t,["sortingParameters"]);return""+e+E.getParamsString(i)+S.getSortingParamsString(n)}function D(){return!(arguments.length<=0||arguments[0]===undefined)&&arguments[0]&&n.removeFromCache(re),e.get(re,{cache:!0}).then(function(e){return e.data.limitReached})["catch"](function(){return!1})}function O(){var e=c.ADDRESS_BOOK.ADDRESS_BOOK_MSG_NO_ADDRESS_MATCHING_KEYWORD;i.showMessageDialog({message:e})}function P(e){var t=e>1?c.ADDRESS_BOOK.LB_DELETE_ITEM_PARAGRAPH_CONFIRMATION_MESSAGE.replace("{number}",e):c.COMMON.COMMON_MSG_DELETE_ONE_ITEM,n=e>1?c.COMMON.COMMON_HEADER_CONFIRM_MULTIPLE_DELETION:c.COMMON.COMMON_HEADER_CONFIRM_SINGLE_DELETION;return i.showConfirmationDialog({message:t,title:n,okButtonLabel:c.COMMON.COMMON_BUTTON_YES,cancelButtonLabel:c.COMMON.COMMON_BUTTON_NO})}function b(e){return P(e.contactKeys.length).then(function(){return R(e)})}function R(t){return e.post(ae,t).then(function(e){return e.data})}function L(t){var n=arguments.length<=1||arguments[1]===undefined?s["default"].SHIP_BOTH:arguments[1];return e.get("/api/addressbook/restrictions/collections/"+n,{preventNotFoundInterceptor:!0}).then(function(e){var n=e.data.available,i=t?n.filter(function(e){var n=e.type;return t.includes(n)}):n;return u.processCollections(i)})}function G(e){e.forEach(function(e){e.onSort=U})}function U(e){var t=e.rowA,n=e.rowB,i=e.column;return t.profileContact||n.profileContact?0:m.compareBy(t,n,[i])}function F(t,n){var i=n.countryCode?ue:oe,r=w(t,n);return e.get(""+i+r,{preventNotFoundInterceptor:!0}).then(function(e){return e.data})}function w(e,t){var n=e.collection,i=e.id,r=t.currentPage,o=t.excludeCountryCodes,u=t.countryCode,a=t.collectionType,c=r||N(),s=c.pageIndex,l=c.pageSize,d=u?"":a,f={collection:n,id:i,pageNumber:s,pageSize:l,direction:d,excludeCountryCodes:o,countryCode:u},p=S.getSortingParameters(t,!0);return""+E.getParamsString(f)+S.getSortingParamsString(p)}function k(e,t){return!e||!!e.selected&&e.selected.permissions[t]}function j(e){return k(e,se.CREATESHIPMENT)}function V(e){return k(e,se.EDIT)}function B(e){return k(e,se.CREATE)}function $(e){return k(e,se.DELETE)}function x(e){return k(e,se.EXPORT)}function H(e){return k(e,se.IMPORT)}function Y(e,t,n,i){var r,u=e||{},c=u.collection;o.redirectToNewContactPage((r={key:t,mode:n,collection:c},r[a["default"].EDIT_GLOBAL_MAIL_CONTACT]=i,r))}function K(e,t){var n=e||{},i=n.collection;o.redirectToViewContactPage({key:t,collection:i})}function W(e){var t;o.redirectToCreateShipment((t={},t[a["default"].ADDRESS_KEY]=e.id,t[a["default"].COLLECTION]=e.collectionType,t[a["default"].SHIPMENT_IS_GLOBAL_MAIL]=e.isGlobalMailAddressBook,t))}function q(e){t[_["default"].ADDRESSBOOK_ACTION_PARAM_NAME]="add"===e?p.ACTION_ADDED:p.ACTION_MODIFIED}function z(){var e=t[_["default"].ADDRESSBOOK_ACTION_PARAM_NAME];return e&&delete t[_["default"].ADDRESSBOOK_ACTION_PARAM_NAME],e}function X(e){t[_["default"].ADDRESSBOOK_COLLECTION_PARAM_NAME]=e}function Q(e){var n=t[_["default"].ADDRESSBOOK_COLLECTION_PARAM_NAME];return n&&delete t[_["default"].ADDRESSBOOK_COLLECTION_PARAM_NAME],n&&e.find(function(e){return e.collection===n})}function Z(e){return C(e)}function J(e,t){var n=e.selectAllHiddenItems,i={selectAll:n,excludedContactKeys:t};ee(e,i),te(e,i);var r={method:"POST",url:n?ce+"/background":ce,data:i,preventNotFoundInterceptor:!0};return n?l.backgroundDownload(r):l.download(r)}function ee(e,t){e.selectAllHiddenItems||(t.contactKeys=Z(e.gridData))}function te(e,t){var n=e.selectAllHiddenItems,i=e.collections;n&&i&&(t.collection=i.selected&&i.selected.collection,t.collectionId=i.selected&&i.selected.id)}function ne(){return g.whoAmI(!0).then(ie)}function ie(e){var t=e.coreRestrictions;return!t||(t.addressBookAccess||t.accessToCAB||t.accessToGAB)}var re="/api/addressbook/limit-reached",oe="/api/addressbook/contact/list",ue="/api/addressbook/contact/search/default/all",ae="/api/addressbook/contact/delete",ce="/api/addressbook/export",se={CREATE:"canCreate",CREATESHIPMENT:"canCreateShipment",DELETE:"canDelete",EDIT:"canEdit",EXPORT:"canExport",IMPORT:"canImport"};return{getContacts:I,getGlobalMailContacts:A,isContactLimitReached:D,showSearchFailureMessage:O,deleteContacts:b,filterSelected:h,filterSelectedContactKeys:C,getCollections:L,getCollectionContacts:F,canCreateShipment:j,canEditContact:V,canCreateContact:B,canDeleteContact:$,canExportContact:x,canImportContact:H,redirectToEditContactPage:Y,redirectToViewContactPage:K,redirectToCreateShipmentPage:W,setActionNotification:q,getActionNotification:z,setPredefinedCollection:X,getPredefinedCollection:Q,downloadContacts:J,setSortMethodToColumns:G,isAccessToAddressBookAllowed:ne}}o.$inject=["$http","$localStorage","httpCacheService","modalService","navigationService","addressBookCollectionsService","Messages","downloadService","sortService","userService","queryParamsService","sortingParametersService"],t.__esModule=!0,t["default"]=o;var u=n(1),a=i(u),c=n(36),s=i(c),l=n(48),d=i(l),f=n(21),p=n(976),m=n(19),_=i(m);o.NG_NAME="addressBookService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{contact:"<"+o,contactCollection:"<"+o+"Collection",collectionType:"<"+o+"CollectionType",collectionsData:"<"+o+"CollectionsData",isReceiver:"<"+o+"IsReceiver",contactDetailsChanged:"<"+o+"ContactDetailsChanged",existingContactChanged:"<"+o+"ExistingContactChanged",onContactSaved:"&"+o+"OnContactSaved",onContactUpdated:"&"+o+"OnContactUpdated",onFailed:"&"+o+"OnFailed"},controller:r,controllerAs:"contactModificationActionsCtrl",templateUrl:"address-book-contact-modification-actions.html"})}function r(e,t,n,i){"ngInject";function r(){M=t.getContactModificationFieldLabels()}function o(e){u(e),a()}function u(e){var t=e.collectionsData;if(t&&t.currentValue){var n=t.currentValue;h=n.canCreateContacts,I=n.canEditContacts,A=n.extendableCollections,v=n.editableCollections}}function a(){(C.contactDetailsChanged||C.existingContactChanged)&&(C.contactStatus=null,c())}function c(){C.contactCollection&&(I=t.getEditPermission(v,C.contactCollection))}function s(e){return angular.isString(e)?e.replace(T,""):e}function l(e){var n=[];return Object.entries(e.fieldErrors).forEach(function(e){var t=e[0],r=e[1],o=s(t);n.push.apply(n,r.reduce(function(e,t){return e.push(M[o]+" : "+i(t)),e},[]))}),t.showErrorContactDialog(n)}function d(){t.showAddressDetailsSaveContactDialog(C.contact,A).then(function(e){C.onContactSaved({contact:e}),C.contact.nickname=e.contactDetails.nickname,C.contactStatus=N.SAVED,C.contact.isContactChanged=!1})["catch"](f)}function f(e){e&&_(e)}function p(){return C.contact.profileContact?C.contact.addressDetails.countryCode!==t.getUserCountry()?t.showContactCannotBeUpdatedMessage():t.showProfileContactConfirmation().then(m):m()}function m(){t.updateContact(C.contact.getForAddressBook(),C.contactCollection).then(function(){C.onContactUpdated(),C.contactStatus=N.UPDATED,C.contact.isContactChanged=!1})["catch"](_)}function _(e){l(e.data)["finally"](function(){return C.onFailed(e)})}function g(){return h&&C.contactDetailsChanged}function E(){return I&&C.existingContactChanged}function S(){return C.isReceiver&&n.getOptionalMandatorityConfig(e)}var C=this,h=void 0,I=void 0,A=void 0,v=void 0,N={SAVED:"SAVED",UPDATED:"UPDATED"},T="contactDetails.",M=void 0;Object.assign(C,{$onInit:r,$onChanges:o,showSaveContactDialog:d,onUpdateContact:p,isUpdateButtonVisible:E,isSaveButtonVisible:g,getOptionalMandatorityConfig:S,contactStatus:null,actionStatus:{}})}i.$inject=["component"],r.$inject=["$document","contactModificationActionsService","optionalMandatorityService","nlsFilter"],t.__esModule=!0,t["default"]=i,t.ContactModificationActionsController=r;var o=i.NG_NAME="ewfContactModificationActions"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(t,n,i){var r=a(t,n),u=l(i),c={collection:u};return e.post(A,r,{params:c}).then(function(e){var n=e.data;return o(t,u),n})}function o(e,t){e.collectionType=e.collection=t||c["default"].PRIVATE}function a(e,t){var n=angular.copy(e.getForAddressBook());return n.contactDetails.nickname=t,n.notifications=f(),s(n),n}function s(e){["key","paymentSetting","shareSetting","shippingSetting","mailingListSetting","pickupSetting"].forEach(function(t){return delete e[t]})}function l(e){return e&&e.type}function d(t,n){var i={collection:n};return e.post(v,t,{params:i})}function f(){return{emailNotifications:[{email:t.getId(),language:"en",notificationEvents:{pickup:!1,clearanceDelay:!1,customsClearance:!1,exception:!1,outForDelivery:!1,delivered:!1}}],smsNotifications:[]}}function p(e,t){return e&&e.length?m(e,t):!_(t)}function m(e,t){return e.some(function(e){var n=e.type;return t===n})}function _(e){return e===c["default"].GLOBAL_MAIL}function g(){return t.getUserCountry()}function E(){return{"address-3":i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_ADDRESS_3,email:i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_EMAIL,fax:i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_SELECT_OPTION_FAX,nickname:i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_NICKNAME,province:i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_PROVINCE,state:i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_STATE,suburb:i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_SUBURB,"taxDetails.ieTaxId":i.SHIPMENT_ADDRESS.ADDRESS_DETAILS_LABEL_IE_TAX_ID}}function S(){var e=i.ADDRESS_BOOK.ADDRESS_BOOK_MSG_IS_PROFILE_CONTACT;return n.showConfirmationDialog({message:e})}function C(){var e=i.ADDRESS_BOOK.ADDRESS_BOOK_MSG_PROFILE_CONTACT_CANT_BE_UPDATED;return n.showMessageDialog({message:e})}function h(e){return n.showDialog({controller:function(){function t(){return{errorMessages:e}}return t}(),controllerAs:"errorContactModalCtrl",templateUrl:"address-details-error-contact-dialog-layout.html"}).result}function I(e,t){var i={controller:u["default"],controllerAs:"saveContactModalCtrl",templateUrl:"address-details-save-contact-dialog-layout.html",resolve:{contact:function(){function t(){return e}return t}(),collections:function(){function e(){return t}return e}(),currentCollection:function(){function e(){return t[0]}return e}()}};return n.showDialog(i).result}var A="/api/addressbook/contact/add",v="/api/addressbook/contact/modify";return{addContact:r,updateContact:d,getEditPermission:p,getUserCountry:g,getContactModificationFieldLabels:E,showProfileContactConfirmation:S,showContactCannotBeUpdatedMessage:C,showErrorContactDialog:h,showAddressDetailsSaveContactDialog:I}}r.$inject=["$http","userService","modalService","Messages"],t.__esModule=!0,t["default"]=r;var o=n(2118),u=i(o),a=n(48),c=i(a);r.NG_NAME="contactModificationActionsService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){return i.addContact(e,u.nickname,u.currentCollection).then(t.close)["catch"](t.dismiss)}function o(){return u.collections.length>1}var u=this;Object.assign(u,{nickname:"",collections:t,currentCollection:n,saveContact:r,isCollectionSwitcherVisible:o})}i.$inject=["contact","collections","currentCollection","contactModificationActionsService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return n.isAuthorized()&&a(),r}function r(e,t,n){var i=n[u+"Action"],r=e.$eval(n[u+"ActionField"]);t.on("click",function(t){s&&(t.stopImmediatePropagation(),e.$apply(function(){return c(i,r)}))})}function a(){t.isContactLimitReached().then(function(e){s=e})}function c(t,n){n[t]=!0,e(function(){n[t]=!1},o["default"].showInformationHintTimeout)}var s=!1;return{restrict:"A",priority:-300,compile:i}}i.$inject=["$timeout","addressBookService","userService"],t.__esModule=!0,t["default"]=i;var r=n(24),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfAddressBookLimit"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){i.model=e.$eval(n[u]),i.addressBookCollectionType=e.$eval(n[u+"AddressBookCollectionType"]),e.$watch(n[u],function(e){i.model=e,i.model&&i.init()});var r={b2bB2cEnabled:u+"B2bB2cEnabled",isBrazilFlow:u+"IsBrazilFlow",isCountryFieldDisabled:u+"IsCountryFieldDisabled",isEmailFieldRequired:u+"IsEmailFieldRequired",hasNoDhlAccount:u+"HasNoDhlAccount",isImportShipment:u+"IsImportShipment",addressBookCollectionType:u+"AddressBookCollectionType",hasShipRestriction:u+"HasShipRestriction",hasGlobalMailShipRestriction:u+"HasGlobalMailShipRestriction",basicFieldsDisabled:u+"BasicFieldsDisabled",cteOption:u+"CteOption",isBrazilianDomesticShipment:u+"IsBrazilianDomesticShipment",isShipmentTypePackage:u+"IsShipmentTypePackage",isReceiver:u+"IsReceiver",isDuplicatedFromGlobalMailContact:u+"IsDuplicatedFromGlobalMailContact",isReturnLabel:u+"IsReturnLabel",isFromContact:u+"IsFromContact"};Object.keys(r).forEach(function(t){e.$watch(n[r[t]],function(e){return i[t]=e})});var o={selectMailingList:u+"OnMailingListSelection",onGlobalMailSelected:u+"OnGlobalMailSelected",onGlobalMailClear:u+"OnGlobalMailClear",onContactChange:u+"OnContactChange",onReceiverCountryChanged:u+"OnReceiverCountryChanged"};Object.keys(o).forEach(function(t){var r=o[t];n[r]&&(i[t]=function(t){return e.$eval(n[r],t)})})}function t(e,t,n,i){t.on("blur","input, select, textarea",function(){e.$apply(i.checkContactDetails())})}return{restrict:"A",scope:!0,controller:o["default"],controllerAs:"addressContactCtrl",link:{pre:e,post:t}}}t.__esModule=!0,t["default"]=i;var r=n(2121),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfAddressContact"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,a){"ngInject";function s(){n.isAuthorized()&&(H(),e.$watch(function(){return ie.cteOption},X)),d()}function d(){e.$watch(function(){return ie.model.key},p),e.$watch(function(){return ie.model.addressDetails.countryCode},E)}function p(){var e=new u["default"];return C(S()),ie.model.key===o.DEFAULT_CONTACT_KEY?void v(e):de?void 0:ie.isContactDetailsEmpty?void t.getMappedContact(ie.model.key).then(function(t){_(e,t)}):(v(ie.model),void G())}function _(e,t){se=ie.isFromContact,e.setFromAddressBook(t),I(e),v(e),J(),G(),ie.contactCollection||C(e.collectionType)}function E(){N(ie.model),te()}function S(){return ie.model.profileContact?l["default"].PRIVATE:ie.model.collectionType||ie.model.collection}function C(e){ie.contactCollection=e}function h(e){["nickname","additionalNotes","collectionType","pickupSetting","mailingListSetting","notifications","paymentSetting","shareSetting","shippingSetting"].forEach(function(t){ie.model[t]=e[t]})}function I(e){h(e);var t=e.email,n=e.profileContact;ie.model.email||A(n,t)}function A(e,t){e&&!t&&(ie.model.email=n.getUsername())}function v(e){le=angular.copy(e||ie.model),ie.isContactDetailsChanged=!1;var n=angular.copy(ie.model);n.phoneDetails.phoneType=null,ie.isContactDetailsEmpty=t.isContactEmpty(n),N(le)}function N(){var e=arguments.length<=0||arguments[0]===undefined?ie.model:arguments[0];if(ie.onContactChange){var n=e.getForAddressBook();n.isEmpty=t.isContactEmpty(e),n.isFromContact=ie.isFromContact,ie.onContactChange({contactDetails:n}),se&&(a.actualizeFromContactDetails(),se=!1)}}function T(){e.$broadcast("ValidateForm")}function M(){return ie.isContactDetailsChanged&&ie.model.key!==o.DEFAULT_CONTACT_KEY&&!t.isContactWithADMRAddress(ie.model)}function y(e){return Q()||ie.basicFieldsDisabled||e}function D(){ie.model.clear(ie.isCountryFieldDisabled),ie.onGlobalMailClear&&ie.onGlobalMailClear(),ee(),v()}function O(){return ie.isCountryFieldDisabled&&ie.model.addressDetails.countryCode}function P(e,t){return e&&t&&f["default"].BRAZIL}function b(e){R(e)}function R(e){var n=e.key,i=e.globalMailContact;ie.onGlobalMailSelected&&ie.onGlobalMailSelected({globalMailContact:i}),t.getMappedContact(n).then(function(e){var t=ie.model.addressDetails.countryCode;ee(),ie.model.setFromAddressBook(e),L()&&(ie.model.ieTaxId=re),v(),de=!0,ie.model.addressDetails.countryCode!==t&&ie.isReceiver&&ie.onReceiverCountryChanged()})}function L(){return ie.cteOption===c["default"].MANUAL_NON_DOC_EXEMPT}function G(){ie.isContactDetailsChanged=!t.isContactsEqual(ie.model,le),ie.model.isContactChanged=U(),ie.isContactDetailsChanged&&(F()&&(ie.isContactDetailsEmpty=!1),de&&ie.isContactDetailsChanged&&(de=!1),N(ie.model))}function U(){return ie.isReceiver&&M()}function F(){return ie.isContactDetailsEmpty&&ie.isContactDetailsChanged}function w(){ie.model.formDataChanged=!1}function k(e){de=!0,ie.model.key=e.key,ee(),v()}function j(){v()}function V(){return!n.isGuest()&&!Q()}function B(){return ie.isContactDetailsEmpty||(n.isGuest()||a.isShipmentAssigned())&&y()}function $(e,t,n){return!e&&x()&&(!n||!t)}function x(){return!ie.contactCollectionsEmpty||!n.isCorpEmployee()}function H(){i.getContactsCollectionsPermissions(ie.addressBookCollectionType).then(W)}function Y(e){return e&&!e.length}function K(){return ie.isEmailFieldRequired||ie.model.addressDetails.residentialAddress}function W(e){ie.collectionsData=e,oe=e.extendableCollections,ue=e.editableCollections,ae=e.readOnlyCollections,[oe,ue,ae].every(Y)&&(ie.contactCollectionsEmpty=!0),!Y(ae)&&q()&&z(ae).then(X)}function q(){return ie.isBrazilFlow&&!ie.model.cachedNfeFileContact&&n.isRegularWithVirtualGroup()}function z(e){var t=e[0],n=t.type,i=t.groupId;return r.getCollectionContacts({collection:n,id:i}).then(function(e){var t=e[0],n=t===undefined?{}:t;return ce=n.key})}function X(){ce&&q()&&R({key:ce})}function Q(){return ie.hasShipRestriction||ie.hasGlobalMailShipRestriction}function Z(){return n.isGuest()}function J(){t.applyGlobalMailContactDuplication(ie)}function ee(e){t.setGlobalMailContactDuplicationStatus(ie.model,e)}function te(){if(!ie.model.addressDetails.countryCode)return void(ie.taxFieldsConfigurations={});t.getTaxFieldsConfigurationsWithVatTaxIdCifs(ie.model.addressDetails.countryCode).then(function(e){ie.taxFieldsConfigurations=e})}function ne(e){var n=g["default"].VAT_TAX_ID_FLAG,i=ie.taxFieldsConfigurations.businessPrivateConfigurations,r=t.isAllowedByVatTaxIdCif(ie.taxFieldsConfigurations,e)&&t.isTaxFieldAvailable(i,ie.model.businessContactType,e,n);return ie.model.taxDetails.isVatTaxIdAvailable=r,r}var ie=this,re="ISENTO",oe=[],ue=[],ae=[],ce=void 0,se=void 0;Object.assign(ie,{init:s,getAddressBookCountryFilterValue:O,getCountryForContactsTransformation:P,isExistingContactChanged:M,isBasicFieldsDisabled:y,clearContact:D,addressBookSelected:R,checkContactDetails:G,typeaheadSelected:b,validateForm:T,removeFormDataChangedNotification:w,canPerformContactActions:V,onContactSaved:k,onContactUpdated:j,isAddressBookButtonShown:$,isToContactEmailRequired:K,isShipRestricted:Q,isCifEmailMandatoryIgnored:Z,isClearButtonHidden:B,setGlobalMailContactDuplicationStatus:ee,isVatTaxIdFieldAvailable:ne,model:{},b2bB2cEnabled:!1,isCountryFieldDisabled:!1,isContactDetailsChanged:!1,isContactDetailsEmpty:!0,ADDRESS_DETAILS_NAMES:{FROM:"From",TO:"To"},contactCollection:null,taxFieldsConfigurations:{},PARTY_ROLES:m["default"]});var le=void 0,de=!1}r.$inject=["$scope","addressContactService","userService","contactCollectionsPermissionsService","addressBookService","shipmentFlowService"],t.__esModule=!0,t["default"]=r;var o=n(17),u=i(o),a=n(61),c=i(a),s=n(48),l=i(s),d=n(4),f=i(d),p=n(84),m=i(p),_=n(411),g=i(_)},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(t){return r.isShipmentImport(t)?u(t):e.when(!0)}function u(e){return n.getSourceData(n.CI_KEYS.CI1056_VALID_EWF_ORIGIN_COUNTRY_LIST).then(function(t){return a(t,e)})}function a(e,t){return e.some(function(e){return e.value===t})}function c(e){var n=Object.assign(t.$new(),{fromCountryCode:e});i.showDialog({scope:n,templateUrl:"components/dhl-shipment/dhl-shipment-modals/return-label-country-ewf-invalid.html"})}return{isValidReturnOriginCountry:o,showReturnFromInvalidMessage:c}}i.$inject=["$q","$rootScope","configService","modalService","shipmentAddressService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="countryEwfValidationService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({controller:o,controllerAs:"fromToCtrl",bindings:{model:"="+f,fromCountry:"<"+f+"FromCountry",fromServiceCode:"<"+f+"FromServiceCode",toCountry:"<"+f+"ToCountry",toServiceCode:"<"+f+"ToServiceCode",shipmentTypeModel:"<"+f+"ShipmentTypeModel",itarBisModel:"<"+f+"ItarBisModel",returnLabelShipmentTypeModel:"<"+f+"ReturnLabelShipmentTypeModel",returnLabelItarBisModel:"<"+f+"ReturnLabelItarBisModel",fromToNfeAvailable:"<"+f+"NfeAvailable",brazilCteOption:"=?"+f+"CteOption",brazilOnly:"=u,o.availableGroups=[n].concat(i,r),o.currentGroup=t.getCurrentGroup(e)})}function r(e){e.preventDefault(),t.showGroupSwitcher().then(function(){return n.forceRedirectToHome()})}var o=this,u=2;Object.assign(o,{currentGroup:{},$onInit:i,switchGroup:r})}i.$inject=["component"],r.$inject=["userService","groupSwitcherService","navigationService"],t.__esModule=!0,t["default"]=i,t.GroupReminderController=r,i.NG_NAME="ewfGroupReminder"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){return u||(u=n.debounce(r,a)),u(e)}function r(e){return t.saveShipperEmail(e)}var u=void 0,a=1e3;return{restrict:"A",require:"ngModel",link:function(){function t(t,n,r,u){e.getParamFromUrl(o["default"].B2L_SHIPMENT)&&t.$watchCollection(function(){return[u.$viewValue,u.$valid]},function(e){var t=e[0],n=e[1];t&&n&&i(t)})}return t}()}}i.$inject=["pathService","saveB2lEmailService","debounceService"],t.__esModule=!0,t["default"]=i;var r=n(1),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfSaveB2lEmail"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"receiverDeliveryToServicePointCtrl",templateUrl:"receiver-delivery-to-service-point.html",bindings:{model:"<"+c+"Model",country:"<"+c+"Country"}})}function r(e,t,n){"ngInject";function i(){c()&&(n.getDeliveryToServicePointGlobalAvailability().then(function(e){h=e}),t.getCapabilities().then(function(e){C.deliveryToServicePointCapabilities=e[o.PPC_SCENARIOS.DELIVERY_TO_SERVICE_POINT]}))}function r(e){if(e.country&&!g()&&c())return C.country?void n.getCountryConfiguration(C.country).then(function(e){I=e}):void(I=!1)}function u(){return h&&I&&c()&&!g()}function c(){return e.isCorpEmployee()&&s()}function s(){var t=e.getCoreRestriction(a["default"].DELIVERY_TO_SERVICE_POINT_ENABLED);return angular.isUndefined(t)||t}function l(){return!(d()&&f()||C.model.isDeliveryToServicePointSelected)}function d(){var e=C.model.toContact.addressDetails;return e.countryCode&&e.addrLine1&&e.city&&e.zipOrPostCode}function f(){var e=C.model.toContact.phoneDetails;return e.phone&&e.phoneCountryCode}function p(){return!C.model.isDeliveryToServicePointSelected||m()}function m(){return!!C.model.deliveryToServicePoint&&!!C.model.deliveryToServicePoint.servicePointId}function _(){return C.model.isDeliveryToServicePointSelected||!m()}function g(){var t=C.model.fromContact.addressDetails.countryCode,n=C.model.toContact.addressDetails.countryCode;return t!==n&&n===e.getUserCountry()}function E(){C.model.isDeliveryToServicePointSelected=!0}function S(){C.model.isDeliveryToServicePointSelected=!1}var C=this,h=void 0,I=void 0;Object.assign(C,{$onInit:i,$onChanges:r,isDeliveryToServicePointVisible:u,isDeliveryToServicePointDisabled:l,isServicePointSelectionValid:p,isDeliveryToServicePointCheckboxValid:_,onDeliveryServicePointSelected:E,onDeliveryServicePointRemoved:S})}i.$inject=["component"],r.$inject=["userService","locatorResource","deliveryToServicePointService"],t.__esModule=!0,t["default"]=i,t.ReceiverDeliveryToServicePointController=r;var o=n(73),u=n(43),a=function(e){return e&&e.__esModule?e:{"default":e}}(u),c=i.NG_NAME="ewfReceiverDeliveryToServicePoint"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t,n,i,o,u,c,l,d,f,p,m,_){"ngInject";function g(e){return f.initializeFromTo(e)}function E(){var e=J();return e?p.getMailingList(e):t.reject()}function S(e){return m.getMappedContact(e)}function C(){u.showBrazilImportModal()}function h(e,t,n){if(t||n){v(e,{fromCountry:t,toCountry:n})&&(e.countriesValidationPromise=N(e.fromCountry,e.toCountry).then(function(t){return F(e,t)})["finally"](function(){return P(e)})),T(e,t),M(e,n)}}function I(e,t){return A(e)||A(t)}function A(e){return e&&!!e.previousValue&&!!e.currentValue&&0!==Object.keys(e.previousValue).length}function v(e,t){var n=t.fromCountry,i=t.toCountry,r=!e.fromCountryDisabled&&n||!e.toCountryDisabled&&i;return!e.skipCountryValidation&&r}function N(e,t){return u.validateCountries(e,t)}function T(e,t){t&&(y(e),D(e.fromCountry,e.toCountry,e.model.toContact))}function M(e,t){t&&(y(e),D(e.fromCountry,e.toCountry,e.model.fromContact))}function y(e){e.toCountryWarnings=null,(e.toCountry||e.fromCountry)&&d.getCountryWarnings(e.fromCountry,e.toCountry).then(function(t){return e.toCountryWarnings=t})}function D(e,t,n){e!==t&&n.addressDetails.englishAddress&&"en"!==i.getCountryLang().langId&&"ru"===i.getCountryLang().langId&&n.transliterate()}function O(e){var t=e.model,n=t.fromContact,i=t.toContact,r=n.addressDetails.countryCode,o=i.addressDetails.countryCode;if(r||o)return W(r)||W(o)?void b():void(e.countriesValidationPromise=N(o,r).then(function(t){t.isValid&&(R(e,o,t),F(e,t,!0),e.addressesSwitched=!e.addressesSwitched)})["finally"](function(){return P(e)}))}function P(e){e.countriesValidationPromise=null}function b(){Q()?c.showBrazilOutboundModal():c.showSwitchRestrictedModal()}function R(t,n,i){var r=t.model,o=r.fromContact,u=r.toContact,a=angular.copy(o),c=angular.copy(u);_.isValidReturnOriginCountry(n).then(function(n){n&&o.copy(c),u.copy(a),L(t,i,n),t.skipCountryValidation=!0,e(function(){return t.skipCountryValidation=!1})})}function L(e,t,n){var i=e.model,r=i.fromContact,o=i.toContact;G(r,n,t),U(o,t)}function G(e,t,n){var i=n.isRPARestricted,r=n.isNonMilitaryRestricted;(!t||i||r)&&e.clear()}function U(e,t){var n=t.isNonAccountOnlyModalShown,i=t.isItarRestricted,r=t.isNonMilitaryRestricted;(n||i||r)&&e.clear()}function F(e,t,n){return e.model.newAccountNumber=t.newAccountNumber,e.unSanctionsWarning=t.unNotAllowed,e.toCountryDisabled=!1,t.domesticNotAllowed||!t.ofacAllowed?void e.model.toContact.clearAddressDetails():t.isNonAccountOnlyModalShown||t.isItarRestricted?void e.model.toContact.clear():(w(e,t),void k(e,t,n))}function w(e,t){t.isNonMilitaryRestricted&&(e.model.fromContact.clear(),e.model.toContact.clear())}function k(e,t,n){t.isRPA&&(e.toCountryDisabled=!0,j(e.model.toContact,o.getUserCountry())),e.model.rpaShipment=t.isRPA,t.accountValidationFailed&&!n&&e.model.fromContact.clearAddressDetails(),t.isRPARestricted&&e.model.fromContact.clear()}function j(e){var t=e.addressDetails,i=arguments.length<=1||arguments[1]===undefined?t.countryCode:arguments[1];return n.getCountryByCode(i).then(function(e){Object.assign(t,{countryCode:e.code2,countryName:e.name})})}function V(e){e.additionalNotesAvailable=!0}function B(e,t,n){e?t.countryCode=s["default"].BRAZIL:t.countryCode===s["default"].BRAZIL&&n&&(t.countryCode=undefined)}function $(e){var n=e.fromContact,r=e.toContact;if(e.haveAddressesBeenAppliedFromDashboard)return t.reject();e.haveAddressesBeenAppliedFromDashboard=!0;var o=i.getParamsFromUrl([a["default"].CONTACT_FROM_KEY,a["default"].CONTACT_FROM_COUNTRY,a["default"].CONTACT_TO_KEY,a["default"].CONTACT_TO_COUNTRY]),u=o[0],c=o[1],s=o[2],l=o[3];return x({key:u,country:c,contact:n}),H({key:s,country:l,contact:r})}function x(e){var t=e.key,n=e.country,i=e.contact;t?Y(t,i):n&&K(i.addressDetails,le)}function H(e){var n=e.key,i=e.country,r=e.contact;return n?Y(n,r):i?(K(r.addressDetails,de),t.when()):t.reject()}function Y(e,t){return m.getContact(e).then(function(e){var n=e.contactDetails,i=r(e,["contactDetails"]);Object.assign(t,i,n)})}function K(e,t){var n=i.getParamsFromUrl([t+"AddressLine",t+"City",t+"Country",t+"Division",t+"PostalCode",t+"Suburb"]),r=n[0],o=n[1],u=n[2],a=n[3],c=n[4],s=n[5];Object.assign(e,{addrLine1:r,city:o,countryCode:u,countryDivisionName:a,zipOrPostCode:c,citySuburbName:s})}function W(e){return e===s["default"].BRAZIL}function q(e){o.isAuthorized()&&l.getElementDetails(fe).then(function(t){var n=t.shippingCountry,i=t.businessModel;e.addressDetails.countryCode=e.addressDetails.countryCode||n,e.businessModel=e.businessModel||i})}function z(e){return e.fromContact.addressDetails.countryCode||o.getUserCountry()}function X(e){return e.toContact.addressDetails.countryCode||o.getUserCountry()}function Q(){return!o.hasDhlAccounts()}function Z(){return i.isUrlContainingSomeParam(a["default"].B2L_SHIPMENT,a["default"].RB_SHIPMENT)}function J(){return i.getParamFromUrl(a["default"].MAILING_LIST_ID)}function ee(){return i.getParamFromUrl(a["default"].PROCEED_TO_ASSIGN)}function te(e,t){e.mailingListCountries=ne(t)}function ne(e){return e.contacts&&e.contacts.reduce(ie,[]).filter(Boolean)}function ie(e,t){return oe(e,re(t))}function re(e){return e.contactDetails&&e.contactDetails.addressDetails&&e.contactDetails.addressDetails.countryCode}function oe(e,t){return e.includes(t)?e:[].concat(e,[t])}function ue(){return o.isGuest()&&!i.getParamFromUrl(a["default"].RB_SHIPMENT)}function ae(e,t){if([e.fromCountry,e.toCountry,e.fromServiceCode,e.toServiceCode].some(function(e){return e&&!e.isFirstChange()})){var n=t.shipmentTypeModel,i=t.returnLabelShipmentTypeModel,r=t.itarBisModel,o=t.returnLabelItarBisModel;ce(n),ce(i),se(r),se(o)}}function ce(e){delete e.gssValidationResult,e.itemAttributes.productList.forEach(function(e){return delete e.gssValidationResult})}function se(e){e.commodityList.forEach(function(e){return delete e.gssValidationResult})}var le="from",de="to",fe="/api/myprofile/shipment/defaults/delivery";return{initialize:g,checkCountriesChanges:h,switchAddresses:O,showAdditionalNotes:V,showBrazilImportModal:C,applyBrazilOnlyDisabling:B,applyAddressFromDashboard:$,applyToCountryFromDefaults:q,getConfigFromCountry:z,getConfigToCountry:X,hasNoDhlAccount:Q,isB2lShipment:Z,isProceedToAssign:ee,getPredefinedMailingList:E,getMappedContact:S,setMailingListCountries:te,isContinueByLoginAlertVisible:ue,isAnyCountryChanged:I,handleGlobalScreeningValidationResults:ae}}o.$inject=["$timeout","$q","locationService","pathService","userService","addressDetailsValidationService","addressDetailsModalService","crudService","countryWarningService","fromToInitializationService","mailingListDetailsResource","addressContactService","countryEwfValidationService"],t.__esModule=!0,t["default"]=o;var u=n(1),a=i(u),c=n(4),s=i(c);o.NG_NAME="fromToService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return e.all([t.isAccessToAddressBookAllowed(),n.isNfeEntryOnly()])}return{getFromToSectionDefault:i}}i.$inject=["$q","addressBookService","nfeEntryOnlyService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="fromToDefaultsService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r){"ngInject";function o(t){Object.assign(t,f);var o=a(t);Object.assign(t.model,{fromContact:t.model.fromContact||new u["default"],toContact:t.model.toContact||new u["default"],rpaShipment:t.model.rpaShipment||!1,isGlobalMailShipment:o,isGlobalMailContactSelected:o,isReceiverContactGlobalMailDuplicate:!!r.getParamFromUrl(c["default"].IS_RECEIVER_CONTACT_GLOBAL_MAIL_DUPLICATE),fromToInitialized:!1});var p=i.getUserCountry(),m=[s(p),l(p),d(p),n.getB2lRestrictions()];return e.all(m).then(function(e){var n=e[0],r=e[1],o=e[2],u=e[3];Object.assign(t,{b2bB2cAvailable:n,switchAvailable:r,rpaAvailable:o,b2lRestrictions:u}),i.isAuthorized()||o||(t.fromCountryDisabled=!0,t.model.fromContact.addressDetails.countryCode=p)})["finally"](function(){return t.model.fromToInitialized=!0})}function a(e){return e.model.isGlobalMailShipment||!e.model.fromToInitialized&&!!r.getParamFromUrl(c["default"].SHIPMENT_IS_GLOBAL_MAIL)}function s(e){return t.getBoolean(t.CI_KEYS.CI0709_B2B_B2C_OPTION,e)}function l(t){return n.isB2lShipment()?e.when(!1):i.isAuthorized()?e.when(!0):d(t)}function d(e){return t.getBoolean(t.CI_KEYS.CI0298_RPA_ENABLED,e)}var f={b2bB2cAvailable:!1,switchAvailable:!1,rpaAvailable:!1,fromCountryDisabled:!1,toCountryDisabled:!1};return{initializeFromTo:o}}r.$inject=["$q","configService","b2lRestrictionsService","userService","pathService"],t.__esModule=!0,t["default"]=r;var o=n(17),u=i(o),a=n(1),c=i(a);r.NG_NAME="fromToInitializationService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e,t){return n.isCountryOFAC(t).then(function(n){return(!n||e!==o["default"].UNITED_STATES)&&S(t)})}function u(e){return t.getBoolean(t.CI_KEYS.CI0971_DISPLAY_UN_SACTIONED_WARNING_ALERT,e)}function a(e,t){return!e.length||!t.length}function c(e,t){var n=t.country,i=t.countryCodes;return(n||i).some(function(t){return t.value===e})}function s(e,t){var n=e.fromCountryCode,i=e.toCountryCode,r=t.shipperCountryCodes,o=t.countryCodes,u=a(r,o),c=o.some(function(e){return e.value===i}),s=r.some(function(e){return e.value===n});return l(n,i)?d(u,s,c):u?i?c:n?s:void 0:undefined}function l(e,t){return e&&t}function d(e,t,n){return t&&n||e&&(t||n)}function f(e,n){return t.getValue(t.CI_KEYS.CI0969_WARNING_ALERTS).then(function(t){return t.data.value.filter(function(t){return s({fromCountryCode:e,toCountryCode:n},t)}).map(function(e){return e.description})})}function p(e){return E(e).then(function(e){return e.map(function(e){return e.description})})}function m(){return t.getValue(t.CI_KEYS.CI0205_UN_SANCTION)}function _(t,i){return t===o["default"].UNITED_STATES?n.isCountryOFAC(i).then(function(e){return!!e&&g(t,i)}):e.when(!1)}function g(e,t){return n.isShipmentRestrictedByOfac(e,t).then(function(e){return!e||i.hasOfacAllowedAccounts()})}function E(e){return m().then(function(t){return t.data.value.filter(function(t){return c(e,t)})})}function S(e){return E(e).then(function(){return!!(arguments.length<=0||arguments[0]===undefined?[]:arguments[0]).length})}return{isCountryUnderUnSanction:r,isUnSanctionsAlertVisible:u,getCountryWarnings:f,getSanctionGroupWarnings:p,isOfacWarningVisible:_}}i.$inject=["$q","configService","ofacService","paymentAccountService"],t.__esModule=!0,t["default"]=i;var r=n(4),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="countryWarningService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t){return e.post("/api/b2l/shipper/email",{shipperEmail:t})}return{saveShipperEmail:t}}i.$inject=["$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="saveB2lEmailService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(n){var i=[t.getBoolean(t.CI_KEYS.CI1466_ENABLE_D2SP,n),t.getBoolean(t.CI_KEYS.CI1466_ENABLE_D2SP)];return e.all(i).then(function(e){var t=e[0],n=e[1];return t&&n})}function o(){return t.getBoolean(t.CI_KEYS.CI1471_ENABLE_D2SP_CORPORATE)}function u(){return o().then(function(e){return!!e&&n.getShipmentAccounts().then(function(e){return i.isAccountsHasConfigurationItemTruthy(e)})})["catch"](function(){return!1})}return{getCountryConfiguration:r,getDeliveryToServicePointGlobalAvailability:u}}i.$inject=["$q","configService","paymentAccountService","accountStatusService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="deliveryToServicePointService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(e){var t=e.brazilShipment;if(t){var n=t.cte;Object.assign(m,{cteOption:n,fiscalInfoRows:f(t),nfeAddressesTheSameAsFromTo:t.addressesSameAsFromTo}),n===l["default"].IMPORT_NF&&(m.nfeFiles=angular.copy(m.fiscalInfoRows)),s(t.danfeKeys),i(t.nfeFrom,m.fromContact),i(t.nfeTo,m.toContact)}}function i(e,t){e&&(Object.assign(t,{company:e.company,name:e.name,email:e.email,key:e.key,phoneDetails:e.phoneDetails}),e.address&&(t.addressDetails=r(e.address)),e.taxDetails&&(Object.assign(t,{cnpjOrCPFTaxType:e.taxDetails.cnpjOrCPFTaxType,cnpjOrCPFTaxID:e.taxDetails.cnpjOrCPFTaxID,ieTaxId:e.taxDetails.ieTaxId}),Object.assign(t.taxDetails,{vatTaxId:e.taxDetails.vatTaxId,eoriNumber:e.taxDetails.eoriNumber})))}function r(e){return{city:e.cityName,addrLine1:e.addressLine1,addrLine2:e.addressLine2,addrLine3:e.addressLine3,countryDivisionName:e.countryDivisionName,countryDivisionTypeCode:e.countryDivisionTypeCode,zipOrPostCode:e.postCode,countryCode:e.countryCode,facilityId:e.facilityId,streetNumber:e.streetNumber,cityCode:e.cityCode}}function o(){return[l["default"].MANUAL_NON_DOC_NOT_EXEMPT,l["default"].IMPORT_NF].includes(m.cteOption)}function u(){if(!t.isBrazilFlow()){return{brazilShipment:m.isShipmentOriginatingFromBrazil?{}:null}}var e={cte:m.cteOption,danfeKeys:p()};return o()&&Object.assign(e,{nfItems:m.fiscalInfoRows,nfeFrom:a(m.fromContact),nfeTo:a(m.toContact),addressesSameAsFromTo:m.nfeAddressesTheSameAsFromTo}),{brazilShipment:e}}function a(e){if(!e)return undefined;var t=angular.copy(e.addressDetails);t.cityName=t.city,t.postCode=t.zipOrPostCode,t.addressLine1=t.addrLine1,t.addressLine2=t.addrLine2,t.addressLine3=t.addrLine3;var n={vatTaxId:e.taxDetails.vatTaxId,eoriNumber:e.taxDetails.eoriNumber,cnpjOrCPFTaxType:e.cnpjOrCPFTaxType,cnpjOrCPFTaxID:e.cnpjOrCPFTaxID,ieTaxId:e.ieTaxId};return{company:e.company,name:e.name,email:e.email,key:e.key,address:t,phoneDetails:e.phoneDetails,taxDetails:n}}function s(e){e&&e.length&&(m.danfeKeys=e.map(function(e){return{name:e}}))}function d(e){return e<10?"0"+e:e}function f(e){return e.nfItems?(e.nfItems.filter(function(e){return e.issueDate}).forEach(function(e){var t=new Date(e.issueDate),n=d(t.getMonth()+1),i=d(t.getDate());e.issueDate=t.getFullYear()+"-"+n+"-"+i}),e.nfItems):[]}function p(){if(m.cteOption!==l["default"].DANFE_KEY)return null;var e=m.danfeKeys.map(function(e){return e.name}).filter(Boolean);return e.length?e:null}this.addPartToShipmentModel(e);var m=Object.assign(this,{cteOption:null,fiscalInfoRows:[],nfeFiles:[],currency:"",weightUnit:"",danfeKeys:[{name:""}],nfeAddressesTheSameAsFromTo:!0,fromContact:new c["default"],toContact:new c["default"],initDataPart:n,getDataPart:u})}r.$inject=["shipmentDataService","shipmentFlowService"],t.__esModule=!0,t["default"]=r;var o=n(11),u=i(o),a=n(17),c=i(a),s=n(61),l=i(s);r.prototype=new u["default"],r.NG_NAME="brazilModel"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,o){"ngInject";function a(e){return e===c["default"].MANUAL_NON_DOC_NOT_EXEMPT}function s(e){return e===c["default"].MANUAL_NON_DOC_NOT_EXEMPT||S(e)}function l(e){return!e.nfeFiles.length}function d(e){return!S(e.cteOption)||!l(e)}function f(e,t){return e===c["default"].MANUAL_NON_DOC_NOT_EXEMPT&&t.length>1}function p(e){return s(e.cteOption)&&e.nfeAddressesTheSameAsFromTo}function m(e){return e!==c["default"].NOT_BRAZIL&&""!==e&&null!==e}function _(e){return e===c["default"].NOT_BRAZIL}function g(e){return e===c["default"].MANUAL_DOC}function E(e){return e===c["default"].MANUAL_NON_DOC_EXEMPT||e===c["default"].MANUAL_NON_DOC_NOT_EXEMPT||e===c["default"].DANFE_KEY||S(e)}function S(e){return e===c["default"].IMPORT_NF}function C(e){return!e.nfeAddressesTheSameAsFromTo&&S(e.cteOption)}function h(e){return g(e)?u["default"].DOCUMENT:E(e)?u["default"].PACKAGE:null}function I(e){e.fiscalInfoRows.push({notaFiscalNumber:"",serie:"",issueDate:"",pinSurframa:"",icmsTaxBase:"",icmsStTaxBase:"",icmsTotal:"",icmsStTotal:"",productsTotalValue:"",nfTotalValue:"",totalWeight:"",cfop:""})}function A(e){e.nfeFiles.length=0,e.fiscalInfoRows.length=0}function v(t,n){return e.isShipmentDomestic(t,n)}function N(e,t){var n=e.fromContact.addressDetails.countryCode,i=e.toContact.addressDetails.countryCode;return S(e.cteOption)&&!!v(n,i)===t}function T(e){return N(e,!0)}function M(e){return N(e,!1)}function y(e,n){[n,e].forEach(function(e){e.fromContact.clear(),e.toContact.clear(),t.applyBrazilOnlyDisabling(!0,e.fromContact.addressDetails)})}function D(e){return!e&&P()}function O(e){A(e),a(e.cteOption)&&I(e)}function P(){return n.isShipmentFetchedByAssignee()}function b(){return i.isBrazilFlow()}function R(e,t){e.nfeAddressesSameAsFromToDisabled=t,G(e)}function L(e,t){e.nfeAddressesTheSameAsFromTo=t,G(e)}function G(e){r.isRegularWithVirtualGroup()&&F()&&U(e)}function U(e){var t=e.cteOption,n=S(t)||a(t);n&&(e.nfeAddressesSameAsFromToDisabled=n,e.nfeAddressesTheSameAsFromTo=!n)}function F(){var e=w(),t=e.restrictedShipFrom,n=e.restrictedShipTo;return t||n}function w(){return o.getCachedRestrictions()||{}}function k(){return w().restrictedShipTo}function j(){return w().restrictedShipFrom}return{isNotaFiscalInformationAvailable:a,isNFeFromToAvailable:s,isNFeAddressesTheSameAsFromTo:p,isNfeFromToSummaryAvailable:f,isFromCountryBrazilOnly:m,isNotOriginatingWithinBrazil:_,isImportNfeFileCteSelected:S,isNfeFromToDisabled:C,getShipmentType:h,addEmptyRow:I,isImportingNfeFileForImportShipment:M,isImportingNfeFileForDomesticShipment:T,isShipmentDomestic:v,isFormCompletionAllowed:d,clearContacts:y,isAdditionalChangesAllowed:D,handleNfItemsOnChangeCte:O,isShipmentFetchedByAssignee:P,isBrazilFlow:b,setNfeTheSameAsFromToDisability:R,setNfeTheSameAsFromToValue:L,getShipToRestriction:k,getShipFromRestriction:j}}r.$inject=["shipmentAddressService","fromToService","shipmentDataService","shipmentFlowService","userService","addressBookRestrictionsService"],t.__esModule=!0,t["default"]=r;var o=n(9),u=i(o),a=n(61),c=i(a);r.NG_NAME="brazilService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({controller:o,controllerAs:"cteOptionsCtrl",bindings:{model:"="+m+"Model",shipmentTypeModel:"<"+m+"ShipmentTypeModel",fromContact:"1}function n(e){var t=a.model.danfeKeys.indexOf(e);-1!==t&&(a.model.danfeKeys.splice(t,1),a.isKeyFieldsMaxReached&&(a.isKeyFieldsMaxReached=!1))}function i(){a.model.danfeKeys.length1}function I(t){e.deleteCommodityRow(b.model,t)}function A(e,t){var n=["firstQuantity","secondQuantity"],i=t[0],r=i===undefined?null:i,o=t[1];[r,o===undefined?null:o].forEach(function(t,i){var r=n[i];e[r]=t?Object.assign({},e[r],{units:t}):null}),e.valid=!0}function v(e){e.valid=!1}function N(e,t){e.exportCommodityCode=t}function T(e,t){var n=t.fromCountry,r=t.toCountry;return i.validateProductProhibition(e,{fromCountry:n,toCountry:r})}function M(){b.isEeiUpdateWarningVisible=!1}function y(){return b.creatingCustomsInvoice&&S()>b.itemAttributesModel.totalWeight}function D(){return e.getTotalValue(b.model)>b.itemAttributesModel.totalDeclaredValue}function O(){return!b.eeiListHasDuplicates&&!D()&&!y()}function P(t,n,i,r){var o={lineItemDescriptions:[n.description],fromCountryCode:b.fromCountry,fromServiceCode:b.fromServiceCode,toCountryCode:b.toCountry,toServiceCode:b.toServiceCode,shipmentPackagingType:b.shipmentType,model:n,ngModelCtrl:t.ngModelCtrl,isMandatory:i,isDutiable:b.isDutiable,intraEuDutiableStatus:b.intraEuDutiableStatus,isMailingListShipment:b.isMailingListShipment,eventRelatedTarget:r.relatedTarget};e.invokeGssValidationForDescription(o)}var b=this;Object.assign(b,{$onInit:r,$onChanges:o,$doCheck:a,onLicenseTypeChange:_,onDescriptionBlur:P,getTotalWeight:S,getTotalWeightForOtherUnits:C,isLicenseTypeDisabled:m,isLicenseTypeValidForCommodityCode:g,isDeleteCommodityRowVisible:h,isTotalWeightExceeded:y,isTotalValueExceeded:D,isFormValidationPassed:O,addNewCommodityRow:p,deleteCommodityRow:I,onProductDescriptionChanged:A,setEeiCommodityCode:N,invalidateScheduleB:v,validateProductProhibition:T,hideEeiUpdatedWarning:M,triggerLicenseTypeValidation:E,shouldDisplayAlert:s,showCreateDescriptionPopup:l,filteredLicenseTypes:[],isEeiUpdateWarningVisible:!1,eeiListHasDuplicates:!1})}i.$inject=["component"],r.$inject=["itarBisEeiService","shipmentTypeService","itemAttributesProductService","productProhibitionValidationService"],t.__esModule=!0,t["default"]=i,t.ItarBisEeiController=r;var o=n(127),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfItarBisEei"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"itarBisEccnCtrl",templateUrl:"eei-item-eccn.html",bindings:{model:"<"+o,filteredLicenseTypes:"="+o+"FilteredLicenseTypes",licenseTypesList:"<"+o+"LicenseTypesList",isBisEccnEar99CommodityRuleApplied:"<"+o+"IsBisEccnEarCommodityRuleApplied"}})}function r(e,t){"ngInject";function n(){return!t.ALPHA_NUMERIC.test(u.model.ECCN)||r(u.model).test(u.model.ECCN)}function i(){u.filteredLicenseTypes=[].concat(e.getLicenseTypes(u.model.ECCN,u.licenseTypesList))}function r(n){var i=e.getLicenseTypeInfo(n,u.licenseTypesList),r=i.specialEccnValues,o=i.onlySpecialEccnValuesFlag;if(!r||!r.value.length)return t.ECCN_EAR99;var a=r.value.split(",").join("|"),c=new RegExp("^("+a+")$");if(o)return c;var s=(t.ECCN_EAR99+"|"+c).replace(/\//g,"");return new RegExp(s,"g")}function o(){var t=e.getLicenseTypeInfo(u.model,u.licenseTypesList);return e.isEccnMandatoryState(t)||u.isBisEccnEar99CommodityRuleApplied}var u=this;Object.assign(u,{isEccnValidFormat:n,isEccnMandatoryState:o,onEccnNumberChange:i})}i.$inject=["component"],r.$inject=["itarBisEeiService","Patterns"],t.__esModule=!0,t["default"]=i,t.ItarBisEccnController=r;var o=i.NG_NAME="ewfItarBisEccn"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"itarBisLicenseNumberCtrl",templateUrl:"eei-item-license-number.html",bindings:{model:"<"+o,isLicenseTypeDisabled:"&"+o+"IsLicenseTypeDisabled",licenseTypesList:"="+o+"LicenseTypesList"}})}function r(e){"ngInject";function t(){return e.getLicenseTypeInfo(n.model,n.licenseTypesList).licenseNumberMaxLength||i}var n=this,i=12;Object.assign(n,{getLicenseNumberMaxLength:t})}i.$inject=["component"],r.$inject=["itarBisEeiService"],t.__esModule=!0,t["default"]=i,t.ItarBisLicenseNumberController=r;var o=i.NG_NAME="ewfItarBisLicenseNumber"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e,t){e.commodityList.length||a(e,t)}function o(e){e.originTypes={DOMESTIC:i.SHIPMENT_DETAILS.ELECTRONIC_EXPORT_FILLING_SELECT_OPTION_DOMESTIC,INTERNATIONAL:i.SHIPMENT_DETAILS.ELECTRONIC_EXPORT_FILLING_SELECT_OPTION_FOREIGN}}function u(e){return{description:"",exportCommodityCode:"",importCommodityCode:"",licenseType:e,licenseNumber:"",ECCN:"",exportCode:M,origin:"",totalWeight:"",totalValue:"",valid:!0}}function a(e,t){e.commodityList.push(u(t))}function c(e,t){e.commodityList.splice(e.commodityList.indexOf(t),1)}function s(e,t){var n=t.defaultLicenseType,i=t.commodityCodes,r=t.mainCommodityCodeProp,o=r===undefined?"exportCommodityCode":r,u={};e.productList.forEach(function(e){var t=l(e,o);if(u[t]){var r=u[t],a=+e.quantity||1;r.totalWeight+=m(e,a),r.totalValue+=(+e.value||0)*a}else u[t]=p(e,n,i,o)}),e.commodityList=Object.values(u)}function l(e,t){var n=e.origin||_(e);return""+e[t]+n}function d(e,t){var n=e?e.replace(/\./g,""):"";return t.find(function(e){var t=e.commodityCodeStart.value;return n.startsWith(t)})}function f(e,t){var n=arguments.length<=2||arguments[2]===undefined?"exportCommodityCode":arguments[2];if(!e[n])return!0;var i=d(e[n],t);return!i||i.licenseType.value===e.licenseType}function p(e,t,n,i){var r,o=d(e[i],n),a=o?o.licenseType.value:t,c=u(t),s=+e.quantity||1,l=m(e,s),f=(+e.value||0)*s;return Object.assign(c,(r={},r[i]=e[i],r.licenseType=a,r.description=e.description,r.origin=_(e),r.totalWeight=l,r.totalValue=f,r)),c}function m(e,t){return(+(e.convertedWeight||e.weight)||0)*t}function _(e){return e.countryCode!==t.getUserCountry()&&e.countryCode?"INTERNATIONAL":"DOMESTIC"}function g(e){return!e.licenseNumberMandatority}function E(e){return e.eccnMandatority}function S(e){return e.commodityList.map(function(e){return e.exportCommodityCode+":"+e.origin+":"+e.ECCN}).some(function(e,t,n){return t!==n.indexOf(e)})}function C(){return t.isAuthorized()}function h(t){return e("calculateTotal")(t.commodityList,"totalWeight")}function I(t){return e("calculateTotal")(t.commodityList,"totalValue")}function A(t,n,i){var r=h(t);return e("convertUomToOpposite")(r,n,i)}function v(e,t){if(e.length!==y)return t;var n=t.filter(function(t){return t.specialEccnValues.value.includes(e)});return n.length?n:t}function N(e,t){return t.find(function(t){return t.licenseType.value===e.licenseType})||{}}function T(e){n.invokeGssValidationForDescription(e)}var M="OS",y=5;return{applyInitialData:r,mapCustomsInvoiceToList:s,addEmptyCommodityRow:a,deleteCommodityRow:c,invokeGssValidationForDescription:T,isLicenseTypeDisabled:g,isEccnMandatoryState:E,isLicenseTypeValidForCommodityCode:f,isEeiListHasDuplicates:S,isAuthorized:C,applyCommodityOriginTranslations:o,getTotalWeight:h,getTotalValue:I,getTotalWeightForOtherUnits:A,getLicenseTypes:v,getLicenseTypeInfo:N}}i.$inject=["$filter","userService","globalScreeningValidationService","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="itarBisEeiService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({controller:o,controllerAs:"itarBisCtrl",templateUrl:"itar-bis.html",bindings:{model:"<"+m,controlledExportType:"<"+m+"ControlledExportType",totalDeclaredValue:"<"+m+"TotalDeclaredValue",totalDeclaredCurrency:"<"+m+"TotalDeclaredCurrency",productList:"<"+m+"ProductList",eeiUnavailable:"t,(!h()||D()||L)&&(P.model.federalTradeRegulations=!1),P.model.setFtrForControlledExportType(P.model.isControlledExportType,P.model.federalTradeRegulations)}function S(){Object.assign(P.model,new a["default"],angular.copy(P.model))}function C(e){var n=e.fromCountry,i=e.toCountry;if(n||i){var r={fromCountry:P.fromCountry,toCountry:P.toCountry,model:P.model};t.checkShipToOfacWithAccount(r).then(function(e){return P.isShipToOfacWithAccount=e})}}function h(){var e=I();return t.isFtrExemptionBlockVisible(e)}function I(){return{isCountryAllowedShipToOfacCountries:R,isFtrExemptionRestricted:L,isBisEccnEar99CommodityRuleApplied:P.isBisEccnEar99CommodityRuleApplied,shipmentTypeModel:P.shipmentTypeModel,model:P.model}}function A(){t.getFtrList(P.toCountry).then(function(e){return P.ftrExemptionList=e})}function v(e){if(!N(e)){var n={fromCountry:P.fromCountry,fromCity:P.fromCity,fromPostalCode:P.fromPostalCode,fromServiceAreaCode:P.fromServiceAreaCode,fromCountryDivisionCode:P.fromCountryDivisionCode,fromCitySuburbName:P.fromCitySuburbName,toCountry:P.toCountry,toCity:P.toCity,toPostalCode:P.toPostalCode,toServiceAreaCode:P.toServiceAreaCode,toCountryDivisionCode:P.toCountryDivisionCode,toCitySuburbName:P.toCitySuburbName},i={model:P.model,addressDetailsModel:P.addressDetailsModel,shipmentTypeModel:P.shipmentTypeModel},r={itarBisOptions:n,models:i,isAvailableForReceiverCountry:P.isAvailableForReceiverCountry};t.loadAndApplyDefaultItarBisOptions(r)}}function N(e){return[e.fromCountry,e.fromCity,e.fromPostalCode,e.toCountry,e.toCity,e.toPostalCode,e.shipmentType].every(function(e){return!e})}function T(){return!D()&&M()}function M(){return P.model.shipmentDutiable&&P.shipmentTypeModel.customsInvoiceType===d["default"].CREATE&&L}function y(){t.isCountryAllowedToShipToOfacCountries(P.fromCountry).then(function(e){return R=e})}function D(){return P.model.isControlledExportType===p["default"].NO&&P.isBisEccnEar99CommodityRuleApplied}function O(){return t.isImportWithCommercialAccount(P.fromCountry,P.model.hasAccountsWithoutItarBis)}var P=this;Object.assign(P,{$onInit:n,$onChanges:i,$doCheck:l,isFtrExemptionBlockVisible:h,isCriticalDeclaredValueExceededAlertVisible:T,isImportWithCommercialAccount:O,shouldUseBisEccnEar99CommodityRule:D,licenseTypes:[],commodityCodes:[],defaultLicenseType:"",shipmentExportType:s["default"]});var b=void 0,R=void 0,L=void 0}r.$inject=["component"],o.$inject=["$q","itarBisComponentService"],t.__esModule=!0,t["default"]=r,t.ItarBisController=o;var u=n(979),a=i(u),c=n(236),s=i(c),l=n(62),d=i(l),f=n(55),p=i(f),m=r.NG_NAME="ewfItarBis"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({templateUrl:"itar-bis-options.html",controller:o,controllerAs:"itarBisOptionsCtrl",bindings:{model:"<"+l,addressDetailsModel:"<"+l+"AddressDetailsModel",shipmentTypeModel:"<"+l+"ShipmentTypeModel",fromCountry:"<"+l+"FromCountry",toCountry:"<"+l+"ToCountry",shipmentPackagingType:"<"+l+"ShipmentPackagingType",ftrExemptionList:"<"+l+"FtrExemptionList",isFtrExemptionBlockVisible:"<"+l+"FtrExemptionBlockVisible",isBisEccnEar99CommodityRuleApplied:"<"+l+"BisEccnEar99CommodityRuleApplied",isAvailableForReceiverCountry:"<"+l+"AvailableForReceiverCountry",isImportWithCommercialAccount:"<"+l+"ImportWithCommercialAccount",isShipToOfacWithAccount:"<"+l+"ShipToOfacWithAccount",shouldUseBisEccnEar99CommodityRule:"<"+l+"ShouldUseBisEccnEar99CommodityRule",defaultLicenseType:"<"+l+"DefaultLicenseType",commodityCodes:"<"+l+"CommodityCodes",licenseTypes:"<"+l+"LicenseTypes",eeiUnavailable:"<"+l+"EeiUnavailable"}})}function o(e,t){"ngInject";function n(){i()}function i(){e.isAuthorized()&&e.retrieveAesPostValue().then(function(e){var t=e[0];if(!t)return void(N=!1);N=t.aes,A.model.einNumber=t.ein.value})}function r(){return!A.model.shipmentDutiable&&!A.shouldUseBisEccnEar99CommodityRule}function o(){return(d()||A.model.isBisApproved)&&!e.isGuest()}function u(){return A.model.isBisApproved&&d()}function c(){return!A.model.isBisApproved&&d()&&A.model.hasAccountsWithoutItarBis}function l(){return A.model.isBisApproved&&!d()}function d(){return A.model.isItarApproved&&A.isAvailableForReceiverCountry&&!A.isImportWithCommercialAccount}function f(){return A.model.isBisApproved||A.model.hasAccountsWithoutItarBis}function p(){return A.model.isControlledExportType===s["default"].NO&&!1===A.model.federalTradeRegulations}function m(){return A.model.isControlledExportType&&A.model.isControlledExportType!==s["default"].NO}function _(){return e.isItarBisNotFtrOptionsBlockVisible(A.model,A.isBisEccnEar99CommodityRuleApplied)}function g(){return!A.isShipToOfacWithAccount&&A.model.isControlledExportType===s["default"].NO}function E(){return N&&!A.isShipToOfacWithAccount}function S(){return!A.eeiUnavailable&&!A.isShipToOfacWithAccount}function C(){var e=A.addressDetailsModel.getMailingListContacts();return!(!e||!e.length)}function h(){return A.model.isControlledExportType!==s["default"].ITAR||!A.model.federalTradeRegulations}function I(e){A.model.setFtrForControlledExportType(A.model.isControlledExportType,e),e&&A.model.isControlledExportType===s["default"].ITAR&&!v&&(A.model.controlledExportTypeFields.exportLicenseNumber=A.model.controlledExportTypeFields.exportLicenseNumber||t.SHIPMENT_DETAILS.EXPORT_LICENSE_NUMBER_FTR_VALUE,v=!0)}var A=this,v=void 0,N=void 0;Object.assign(A,{$onInit:n,isFtrExemptionsBlockVisible:r,isControlledExportTypeBlockVisible:o,isItarBisTypeQuestionVisible:u,isItarTypeQuestionVisible:c,isBisTypeQuestionVisible:l,isControlledExportTypeItarOptionVisible:d,isCommercialExportTypeBlockVisible:f,isNotFederalRegulations:p,isElectronicExportFilingFieldsVisible:m,isItarBisNotFtrOptionsBlockVisible:_,isShipmentExportTypeFTRAvailable:g,isShipmentExportTypeEinAvailable:E,isShipmentExportTypeEeiAvailable:S,isMailingListShipment:C,isItnFieldVisible:h,onSelectFtr:I,shipmentExportType:a["default"],itarBisType:s["default"]})}r.$inject=["component"],o.$inject=["itarBisOptionsService","Messages"],t.__esModule=!0,t["default"]=r,t.ItarBisOptionsController=o;var u=n(236),a=i(u),c=n(55),s=i(c),l=r.NG_NAME="ewfItarBisOptions"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e){return t.isCountryOFAC(e)}function i(e){return n(e).then(r)}function r(t){var n=e.CI_KEYS.CI0790_FTR_DROP_DOWN,i=e.CI_KEYS.CI0791_FTR_DROP_DOWN_OFAC,r=t?i:n;return e.getSourceData(r,o["default"].UNITED_STATES)}function u(){return e.getSourceData(e.CI_KEYS.CI1333_LIST_OF_ITAR_RESTRICTED_COUNTRY)}function a(e){return u().then(function(t){return t.some(function(t){return t.value===e})})}function c(t){return e.getBoolean(e.CI_KEYS.CI0604_ENABLE_EEI,t)}return{isCountryOFAC:n,getFtrList:i,retrieveItarRestrictedCountries:u,isShipToItarRestrictedCountry:a,getEeiStatus:c}}i.$inject=["configService","ofacService"],t.__esModule=!0,t["default"]=i;var r=n(4),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="itarBisService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return e.isAuthorized()}function i(){return e.isGuest()}function r(e,t){return e.isControlledExportType===o["default"].NO&&(t||!1===e.federalTradeRegulations)}function u(){return t.getSourceData(t.CI_KEYS.CI0246_EEI_AES_POST)}return{isAuthorized:n,isGuest:i,isItarBisNotFtrOptionsBlockVisible:r,retrieveAesPostValue:u}}i.$inject=["userService","configService"],t.__esModule=!0,t["default"]=i;var r=n(55),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="itarBisOptionsService"},function(e,t,n){"use strict";function i(){return{restrict:"A",templateUrl:"itar-bis-itn-field.html",require:"^ewfItarBis"}}t.__esModule=!0,t["default"]=i,i.NG_NAME="ewfItarBisItnField"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(t){return e.getFtrList(t)}function u(e,n){return t.getConvertedCriticalValue(e,n)}function c(t){return e.isCountryAllowedToShipToOfacCountries(t)}function l(e){return e.model.isControlledExportType===a["default"].ITAR||e.model.isControlledExportType===a["default"].NO&&d(e)}function d(e){return f(e)&&p(e)&&!e.isBisEccnEar99CommodityRuleApplied}function f(e){return e.shipmentTypeModel.customsInvoiceType===s["default"].USE||!e.isFtrExemptionRestricted}function p(e){return!e.model.isOFAC||e.isCountryAllowedShipToOfacCountries}function m(e,t){return e!==n.getUserCountry()&&t}function _(t){var n=t.fromCountry,i=t.toCountry,r=t.model;return e.isShipmentRestrictedByOfac(n,i).then(function(t){return t&&e.hasOfacAllowedAccounts()}).then(function(e){return A(r,e),e})}function g(e,t){var i=l(e);n.setFtrDefault(o({},e,{controlledExportType:t,isFtrExemptionVisible:i}))}function E(e,t){i.setBisEccnEar99RuleApplyingStatus(e,t)}function S(e,t){t&&(e.federalTradeRegulations=e.getFtrForControlledExportType(t.currentValue))}function C(){return e.retrieveItarRestrictedCountries()}function h(e){return n.getLicenseTypesListDefaults(e)}function I(e){e.isControlledExportType===a["default"].BIS&&(e.federalTradeRegulations=!1,e.setFtrForControlledExportType(a["default"].BIS,!1))}function A(e,t){t&&(e.federalTradeRegulations=!1,e.setFtrForControlledExportType(e.isControlledExportType,!1),e.shipmentExportType="")}function v(e){n.loadAndApplyDefaultItarBisOptions(e)}return{getFtrList:r,getConvertedCriticalValue:u,isCountryAllowedToShipToOfacCountries:c,isFtrExemptionBlockVisible:l,isImportWithCommercialAccount:m,checkShipToOfacWithAccount:_,setFtrDefault:g,setBisEccnEar99RuleApplyingStatus:E,setFtrByControlledExportType:S,retrieveItarRestrictedCountries:C,getLicenseTypesListDefaults:h,unsetFtrForBis:I,loadAndApplyDefaultItarBisOptions:v}}r.$inject=["itarBisRestrictionsService","itarBisCriticalValueService","itarBisDefaultsService","itarBisEar99Service"],t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function r(e,t,n,r){"ngInject";function u(e){return t.getBoolean(t.CI_KEYS.CI1466_ENABLE_D2SP,e)}function a(e,t){return c(e,t).then(function(e){return e.data})}function c(e,t){return e&&e.accountKey?s(e,t):l(e,t)}function s(t,n){var i=t.accountKey,r=t.email,o={accountKey:i,email:r};return e.post("/api/myprofile/account/status",o,{params:n,preventNotAvailableInterceptor:!0})}function l(t,r){var u=t.isStandalonePickup,a=t.paymentType,c=i(t,["isStandalonePickup","paymentType"]),s=u?"/api/pickup/account/status":"/api/account/status",l=u?c:o({},c,{paymentType:a});return n.setAccountCookieIfNotExist().then(function(){return e.post(s,l,{params:r,preventNotAvailableInterceptor:!0,preventAccessForbiddenInterceptor:!u})})}function d(t){return e.post("/api/account/agreement",t,{preventNotAvailableInterceptor:!0}).then(function(e){return Object.assign(e.data,{msg:r.SHIPMENT_PAYMENT.PAYMENT_SELECTION_MSG_ACCOUNT_INVALID_FOR_MILITARY})})}return{fetchDeliveryToServicePointAvailabilityForAccount:u,postAccountStatus:a,postMilitaryAccountAgreement:d}}r.$inject=["$http","configService","callRateLoaderService","Messages"],t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1}function C(e){return e.some(function(e){return e.pallet})}function h(e,t){var n=t.configItems,i=t.packages,r=I(n),o=r.isMultiplePiecesAvailable,u=r.isPalletAvailable;return A(e,t,r)||T(e,t,r)||U(i,o,u)}function I(e){return["isLocalImportAccountAllowed","isForeignImportAccountForDomesticProhibited","isOutboundProcessingProhibited","isMultiplePiecesAvailable","isPalletAvailable","isForeignImportAccountAllowed","isBillingRegionsAvailable"].reduce(function(t,n,i){return t[n]=e[i],t},{})}function A(e,t,i){var r=i.isForeignImportAccountForDomesticProhibited,o=i.isBillingRegionsAvailable,u=t.fromCountry;if(e.importAccount){var a=G(o,e.accountCountryCode,u);if(P(i,u,e))return B(n.ACCOUNT.OUTBOUND_NOT_SUPPORTED);if(v(t,i,a,e))return B(n.ACCOUNT.INVALID_FOR_SHIPMENT);if(N(t,r,a))return B(n.ACCOUNT.INVALID_FOR_DOMESTIC)}}function v(e,t,n,i){var r=e.isAccountLocalForCurrentShipment,o=t.isForeignImportAccountAllowed;return O(e,t,i)||M(e,t,i)||R(r,o)}function N(e,t,n){var r=e.fromCountry,o=e.toCountry,u=e.mailingListContacts;return i.isShipmentDomestic(r,o,u)&&t&&!n}function T(e,t,i){if(!k(e,t.fromCountry,t.isAccountLocalForCurrentShipment,i.isBillingRegionsAvailable))return B(n.ACCOUNT.INVALID)}function M(e,t,n){var i=e.fromCountry;return!t.isBillingRegionsAvailable&&D(e,t,n)&&y(i)}function y(e){var t=i.getUserCountry();return e===t||!i.isCountriesWithinBillingRegions(e,t)}function D(e,t,n){var i=e.fromCountry;return!t.isLocalImportAccountAllowed&&G(!0,n.accountCountryCode,i)}function O(e,t,n){var r=e.fromCountry,o=e.toCountry,u=e.isAccountLocalForCurrentShipment;return!!t.isBillingRegionsAvailable&&(u&&i.isCountriesWithinBillingRegions(r,i.getUserCountry())&&i.isCountriesWithinBillingRegions(r,o)||D(e,t,n))}function P(e,t,n){var i=e.isBillingRegionsAvailable,r=e.isOutboundProcessingProhibited;return!!r&&(i?G(i,n.accountCountryCode,t):b(r,t,n))}function b(e,t,n){return!!e&&(G(!0,n.accountCountryCode,t)&&y(t))}function R(e,t){return!e&&!x()&&!t}function L(e,t){return t?i.isShipmentImportByTerritories(e):i.isShipmentImport(e)}function G(e,t,n){return e?i.isCountriesWithinBillingRegions(t,n):t===n}function U(e,t,i){return S(e)&&!t?B(n.ACCOUNT.RESTRICTED_TO_SINGLE_PIECE):C(e)&&!i?B(n.ACCOUNT.NOT_SUPPORT_PALLET):{valid:!0,msg:""}}function F(n){return e.all([t.fetchCashAccountsAvailability(n),t.fetchFOCAccountsAvailability(n)])}function w(n,i){return e.all([t.fetchLocalImportAccountAvailability(i),t.fetchForeignImportForDomesticProhibition(i),t.fetchOutboundProcessingProhibition(n),t.fetchMultiplePiecesAvailability(n),t.fetchPalletAvailability(n),t.fetchForeignImpAccountAvailability(i),t.fetchBillingRegionsAvailability()])}function k(e,t,n,i){return e.importAccount||t&&!L(t,i)&&n}function j(e,t,n){var i;return(i={},i[a.GCDB_STATUS.TRANSPORT_COLLECT]=!1,i[a.GCDB_STATUS.CASH]=t,i[a.GCDB_STATUS.FREE_OF_CHARGE]=t&&n,i[a.GCDB_STATUS.REGULAR]=!0,i[a.GCDB_STATUS.OCCASIONAL]=!0,i)[e]||!1}function V(e){var n=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];return t.requestAccountStatus(e,n)}function B(){return{valid:!1,msg:arguments.length<=0||arguments[0]===undefined?n.ACCOUNT.INVALID:arguments[0]}}function $(){return{valid:!0,msg:""}}function x(){return i.isB2lShipment()}function H(e,t){return!e.accountNumber&&e.paymentType===u["default"].ALTERNATE_DHLACCOUNT&&t}return{validateAccount:m,requestAccountStatus:V,validateMilitaryAccount:_,isRejectedAltAccount:H}}r.$inject=["$q","accountService","validationMessages","shipmentAddressService"],t.__esModule=!0,t["default"]=r;var o=n(5),u=i(o),a=n(29),c=n(504),s=i(c);r.NG_NAME="accountValidationService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(t,r){function o(t){return E(t).then(function(n){return n?u(t):e.when({valid:!1,msg:i.ACCOUNT.INVALID_DUTIES_AND_TAXES_ACCOUNT})})}function u(r){return _({fromCountry:l,toCountry:d,transportationCountryCode:f,dutyAndTaxesAccountCountry:r})?e.when({valid:!1,msg:i.ACCOUNT.INVALID_COMBINATION}):n.validateAccount(t,{validationParameters:a,addressDetailsModel:c,accountPaymentType:s})}var a=r.validationParameters,c=r.addressDetailsModel,s=r.accountPaymentType;if(!t)return e.when({valid:!0,msg:""});var l=a.fromCountry,d=a.toCountry,f=a.transportationCountryCode,p=a.isRejected;return t.accountNumber?t.accountCountryCode?o(t.accountCountryCode):n.requestAccountStatus(t,{addressDetailsModel:c,accountPaymentType:s}).then(function(e){return o(e.accountCountryCode)}):n.isRejectedAltAccount(t,p)?e.when({valid:!1,msg:i.ACCOUNT.INVALID}):e.when({valid:!0,msg:""})}function u(e,t){return l(e,o({isDuties:!0},t))}function c(e,t,i){return n.requestAccountStatus({accountNumber:e},{addressDetailsModel:t,accountPaymentType:s["default"].TRANSPORTATION}).then(function(e){return n.validateMilitaryAccount(e,t,i)})}function l(t,r){var o=r.validationParameters,u=r.isDuties,c=u!==undefined&&u,s=r.addressDetailsModel,l=r.accountPaymentType,_=o.fromCountry,g=o.toCountry,E=o.packages,S=o.mailingListContacts,C=o.transportationCountryCode;return n.requestAccountStatus({accountNumber:t},{addressDetailsModel:s,accountPaymentType:l}).then(function(t){var r={fromCountry:_,toCountry:g,transportationCountryCode:C,dutyAndTaxesAccountCountry:t.accountCountryCode};if(d(c,r))return[{valid:!1,msg:i.ACCOUNT.INVALID_COMBINATION}];if(f(o,t))return[{msg:i.ACCOUNT.INVALID_FOR_OFAC,valid:!1}];if(p(o,t))return[{msg:i.ACCOUNT.INVALID_ITAR_ACCOUNT,valid:!1}];var u={validateAsPayerAccount:!0,fromCountry:_,toCountry:g,packages:E,mailingListContacts:S};return e.all([n.validateAccount(t,{validationParameters:u,addressDetailsModel:s,accountPaymentType:l}),t])}).then(function(e){return m(e[0],e[1])})["catch"](function(t){return t.status===a["default"].FORBIDDEN?e.reject():{valid:!1,msg:t.status===a["default"].SERVICE_UNAVAILABLE?i.ACCOUNT.UNABLE_TO_PROCESS_REQUEST:i.ACCOUNT.INVALID}})}function d(e,t){return e&&_(t)}function f(e,t){return e.isShipmentRestrictedByOfac&&!t.ofacAllowed}function p(e,t){return!1===e.isMilitary&&t.itarApproved}function m(e,t){return e.msg===i.ACCOUNT.CREDIT_STOP&&(e.msg=i.ACCOUNT.INVALID),t&&(e.account=t),e}function _(e){if(!e.transportationCountryCode)return!1;var t=e.fromCountry,n=e.toCountry,i=e.transportationCountryCode,r=e.dutyAndTaxesAccountCountry;return!g(i,t)&&(g(r,t)||g(i,n)&&!g(r,n))}function g(e,t){return e===t}function E(e){return t.fetchDDServiceInfo(e).then(function(e){return e.outboundLocalServiceIndicator})}return{validateDutiesAndTaxesAccount:r,validateAlternateDHLAccount:l,validateAlternateDutiesAndTaxesAccount:u,validateAlternateMilitaryAccount:c}}r.$inject=["$q","paymentResource","accountValidationService","validationMessages"],t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0}function d(t,o){var u=r.getShipmentData(),c=u.fromContactKey,d=u.toContactKey,m=u.fromCustomer,_=u.toCustomer,E=u.customsInvoice,S=u.type,C=u.dutiable,h=u.typeCategory,I=angular.copy(u.paymentInfo),A=m.address,v=s(t)?null:_.address;return I.transportation=p(I.transportation,T),I.quotation=p(I.quotation),I.duties=p(I.duties),g(E||{})?(h===l["default"].NON_GIFT_NON_SAMPLE&&f(E),a.isIndiaFlowShipment(A.countryCode).then(function(e){var t=e?h:null;return i.postIncoterms({fromContactKey:c,toContactKey:d,fromAddress:A,toAddress:v,customsInvoice:E,paymentInfo:I,type:S,typeCategory:t,dutiable:C},o)}).then(function(e){var t=n.sortIncoterms(e);return n.addDescription(t)})):e.when([])}function f(e){e.items.map(function(e){e.indiaCustomsInvoiceProduct=null})}function p(e,t){return!e||m(e)&&!_(e)?t:e}function m(e){var t=e.paymentMethod;return c["default"].ALTERNATE_DHLACCOUNT===t}function _(e){return!!e.accountNumber}function g(e){var t=e.items;return!t||!t[0]||t[0].som}function E(e,t){return n.getGlobalIncoterms(e,t)}function S(e){var t=e.find(function(e){return e["default"]});return t&&t.code}function C(n,i){return!n||!i||!i.validOnlyForInboundBillingInd?e.when(!1):t.isLocalPaymentOption(n)}function h(t,n){return o.hasDhlAccounts()?e.when(n):i.getTermsTradeRequired(t).then(function(e){return n&&e})}function I(e){return i.isCommercialInvoiceForDocumentsAvailable(e)}function A(){return r.isShipmentFetchedByAssignee()}function v(e){e.incoterm={code:u["default"].DELIVERED_AT_PLACE,nlsKey:"general_settings-incoterms-incoterms_list.dap-incotermcode"}}function N(e){return e&&e.some(function(e){return e.som})}var T={paymentMethod:"NONE"};return{getIncoterms:d,getGlobalIncoterms:E,getDefaultIncoterm:S,isInvalidIncotermSelected:C,isIncotermsAllowed:h,isShipmentFetchedByAssignee:A,setIncotermAsDAP:v,isNeededDataFull:N,isCommercialInvoiceForDocumentsAvailable:I}}r.$inject=["$q","paymentTypeService","globalIncotermsService","incotermsResource","shipmentDataService","userService","indiaFlowService"],t.__esModule=!0,t["default"]=r;var o=n(2184),u=i(o),a=n(5),c=i(a),s=n(258),l=i(s);r.NG_NAME="incotermsService"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={DELIVERED_AT_PLACE:"DAP",DELIVERED_DUTY_PAID:"DDP",EX_WORKS:"EXW"}},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t,n){return e.post("/api/incoterms",t).then(function(e){return r(i(e.data),n)})}function i(e){return e.map(function(e){return Object.assign(e,{dutiableDestinationType:e.dutiableDestinationType||o["default"].ALL})})}function r(e,t){var n=a(t),i={};return e.filter(function(e){return e.dutiableDestinationType===n}).forEach(function(e){return i[e.code]=e}),e.filter(function(e){return e.dutiableDestinationType===o["default"].ALL}).forEach(function(e){return i[e.code]=i[e.code]||e}),Object.values(i).map(u(n))}function u(e){var t=void 0;return function(n){return n["default"]?(t?n.dutiableDestinationType===e&&(t["default"]=!1,t=n):t=n,n):n}}function a(e){return e?o["default"].DUTIABLE:o["default"].NON_DUTIABLE}function c(e){return t.getBoolean(t.CI_KEYS.CI0177_TERMS_TRADE_REQUIRED,e)}function s(e){return t.getBoolean(t.CI_KEYS.CI0730_ENABLE_COMMERCIAL_INVOICE_FOR_DOCUMENT_SHIPMENTS,e)}return{postIncoterms:n,getTermsTradeRequired:c,isCommercialInvoiceForDocumentsAvailable:s}}i.$inject=["$http","configService"],t.__esModule=!0,t["default"]=i;var r=n(2186),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="incotermsResource"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={ALL:"ALL",DUTIABLE:"DUTIABLE",NON_DUTIABLE:"NON_DUTIABLE"}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(){return o}function o(e,t){"ngInject";function n(){return{paymentInfo:s(),incotermCode:E(),incotermNlsKey:S()}}function i(e){return t.isAlternateDHLAccount(e)}function r(){var e=pe.getPaymentInfo(),t=e.transportation;return t&&t.accountCountry}function o(e){return i(e)&&e.contactKey?e.contactKey:null}function a(){var e=null,t=null,n=!1!==pe.currentShipmentTypeModel.isDutiable,i=n&&pe.splitDutiesAndTaxesPayment;return n&&(e=c("dutiesPaymentType"),i&&(t=c("taxesPaymentType"))),{duties:e,taxes:t,splitDutyAndTaxPayment:i}}function c(e){return M({paymentMethod:G(pe[e]),accountNumber:U(e),accountId:y(pe[e]),contactKey:o(pe[e]),accountNickname:D(pe[e]),accountType:P(pe[e]),accountCountry:b(pe[e]),importAccount:R(pe[e])})}function s(){var e=!pe.aggregatePayment,t=f(),n=p();return pe.hasMultipleShipperAccounts?pe.aggregatePayment&&(n=t):t=g(n),n=m(n),u({quotation:t,transportation:n,splitQuotAndTranspPayment:e},a())}function f(){return _()?null:M({paymentMethod:G(pe.quotationType),accountId:y(pe.quotationType),accountNickname:D(pe.quotationType),accountNumber:O(pe.quotationType),accountType:P(pe.quotationType),accountCountry:b(pe.quotationType),importAccount:R(pe.quotationType)})}function p(){return M({paymentMethod:G(pe.transportationPaymentType),accountNumber:L(),accountId:y(pe.transportationPaymentType),contactKey:o(pe.transportationPaymentType),accountNickname:D(pe.transportationPaymentType),accountType:P(pe.transportationPaymentType),paymentCategoryCode:W(),accountCountry:b(pe.transportationPaymentType),importAccount:R(pe.transportationPaymentType)})}function m(t){if(e.isAuthorized())return t;var n=t||{};return n.paymentMethod||(n={paymentMethod:l["default"].CASH}),n}function _(){return e.isCorpEmployee()&&pe.isTransportationPaidWithOnlinePayment()}function g(e){if(_())return null;var n=pe.cache.availableAccounts.find(t.isShipperAccount);return n?M({paymentMethod:G(n),accountId:y(n),accountNickname:D(n),accountNumber:O(n),accountType:P(n),accountCountry:b(n),importAccount:R(n)}):pe.isDHLAccountShipment()?e:null}function E(){return pe.currentShipmentTypeModel.isCommercialInvoiceAvailableForCurrentShipmentType()?pe.incoterm&&pe.incoterm.code:null}function S(){return pe.currentShipmentTypeModel.isCommercialInvoiceAvailableForCurrentShipmentType()?pe.incoterm&&pe.incoterm.nlsKey:null}function C(e){var t=e.paymentInfo||{};h(t),I(e),A(t),v(t),T(e.incotermCode),pe.splitDutiesAndTaxesPayment=!!t.splitDutyAndTaxPayment,pe.splitQuotAndTranspPayment=!!t.splitQuotAndTranspPayment,pe.aggregatePayment=!t.splitQuotAndTranspPayment}function h(e){e.quotation&&(pe.quotationType={paymentType:e.quotation.paymentMethod,accountId:e.quotation.accountId})}function I(e){var t=e.paymentInfo?e.paymentInfo.transportation:null;t&&(N("transportationPaymentType",t),pe.transportationPaymentType.paymentCategoryCode=t.paymentCategoryCode,pe.transportationPaymentType.restoredTransportation=!0)}function A(e){var t=e.duties;t&&N("dutiesPaymentType",t)}function v(e){var t=e.taxes;t&&N("taxesPaymentType",t)}function N(e,t){if(pe[e]={paymentType:t.paymentMethod,accountId:t.accountId,contactKey:t.contactKey},i(pe[e])){var n=t.accountNumber;pe[e].contactKey?pe[e].accountNumber=n:F(e,n)}}function T(e){pe.incoterm={code:e||null}}function M(e){return e.paymentMethod?Object.assign({paymentMethod:null,accountId:null,accountNumber:null},e):null}function y(e){return e?e.accountId:null}function D(e){return e&&e.accountNickname||null}function O(e){return e&&e.accountNumber||null}function P(e){return e&&e.accountType||null}function b(e){return e&&e.accountCountryCode||null}function R(e){return e?e.importAccount:null}function L(){var e=pe.transportationPaymentType;return e?e.fromContact?e.accountNumber:U("transportationPaymentType"):null}function G(e){return e?e.paymentType:null}function U(e){var t=pe[e];return i(t)?pe[fe[e]]:O(t)}function F(e,t){pe[fe[e]]=t}function w(){var e=Y();return!!e&&t.isCreditCardCode(e.paymentCategoryCode)}function k(){return K()===l["default"].CASH}function j(){return K()===l["default"].ONLINE_PAYMENT}function V(){return K()===l["default"].ALTERNATE_DHLACCOUNT}function B(){var e=Y();return!!e&&!!e.paymentCategoryCode}function $(){return!!pe.cache.accounts.length}function x(){return pe.cache.availableAccounts.filter(function(e){return e.importAccount}).length>0}function H(e){var t=e.paymentInfo;return{transportationPaymentType:{paymentType:t.transportationPaymentType,accountId:t.transportationPaymentAccountNumber},quotationType:{paymentType:t.quotationType,accountId:t.quotationAccountNumber},splitDutyAndTaxPayment:t.splitDutyAndTaxPayment,dutiesPaymentType:{paymentType:t.dutiesPaymentType,accountId:t.dutiesPaymentAccountNumber},taxesPaymentType:{paymentType:t.taxesPaymentType,accountId:t.taxesPaymentAccountNumber}}}function Y(){return pe.hasMultipleShipperAccounts&&pe.aggregatePayment?pe.quotationType:pe.transportationPaymentType}function K(){var e=pe.getPaymentOption();return angular.isObject(e)?e.paymentType:null}function W(){var e=pe.getPaymentOption();return angular.isObject(e)?e.paymentCategoryCode:null}function q(){return K()===l["default"].DHL_ACCOUNT}function z(){return K()===l["default"].ALTERNATE_DHLACCOUNT}function X(){return pe.isDHLAccountShipment()||pe.isAlternateAccountShipment()}function Q(){return!!(pe.quotationType&&pe.quotationType.paymentType||pe.transportationPaymentType&&pe.transportationPaymentType.paymentType)}function Z(){var e=Y();return i(e)&&!e.accountNumber?pe.transportationAlternateAccountNumber:e?e.name:""}function J(){pe.incoterm=null}function ee(){pe.transportationPaymentType=null,pe.quotationType=null}function te(){pe.dutiesPaymentType=null,pe.taxesPaymentType=null}function ne(){return pe.incoterm&&pe.incoterm.code}function ie(){return pe.dutiesPaymentType&&pe.dutiesPaymentType.name}function re(){return pe.taxesPaymentType&&pe.taxesPaymentType.name}function oe(){return pe.quotationType&&pe.quotationType.name}function ue(){return pe.isTransportationPaidWithOnlinePayment()||!pe.isTransportationPaidWithCash()&&pe.isAccountShipment()&&!e.isEmailVerified()}function ae(){return pe.isAccountShipment()&&!e.isEmailVerified()}function ce(){return angular.isObject(pe.transportationPaymentType)}function se(){var e=Y();return(e&&e.gcdbAccountType)===d.GCDB_STATUS.CASH}function le(){var e=pe.quotationType||{},t=e.paymentType,n=e.paymentMethod;return t||n}function de(){if(le()===l["default"].DHL_ACCOUNT){var e=pe.quotationType;return{accountId:e.accountId,accountNumber:e.accountNumber}}return null}var fe={transportationPaymentType:"transportationAlternateAccountNumber",dutiesPaymentType:"dutiesAlternateAccountNumber",taxesPaymentType:"taxesAlternateAccountNumber"},pe=Object.assign(this,{getDataPart:n,initDataPart:C,getPaymentInfo:s,getPaymentOption:Y,getPaymentOptionType:K,getPaymentOptionCategoryCode:W,isTransportationPaidWithOnlinePayment:j,isTransportationPaidWithCreditCard:w,isTransportationPaidWithCash:k,isTransportationPaidWithAlternateAccount:V,isTransportationAccountGcdbTypeCash:se,hasAccounts:$,hasImportAccounts:x,getPaymentTypeModelData:H,isDHLAccountShipment:q,isAlternateAccountShipment:z,isAccountShipment:X,isPaymentTypeSelected:Q,getSelectedPaymentTypeName:Z,resetIncoterm:J,resetPaymentOptions:ee,resetDutiesAndTaxes:te,getSelectedIncotermCode:ne,getSelectedDutiesTypeName:ie,getSelectedTaxesTypeName:re,getSelectedQuotationTypeName:oe,isTransportationHavePaymentCategory:B,isPaymentOrAccountApprovalRequired:ue,isTransportationPaymentTypeSelected:ce,shouldEmailBeVerified:ae,getTransportationAccountCountryCode:r,getQuotationAccount:de,incoterm:null,quotationType:"",transportationPaymentType:"",transportationAlternateAccountNumber:null,dutiesPaymentType:null,dutiesAlternateAccountNumber:null,taxesPaymentType:null,taxesAlternateAccountNumber:null,splitDutiesAndTaxesPayment:!1,splitQuotAndTranspPayment:!1,aggregatePayment:!0,cache:{accounts:[],primaryAccount:null,availableAccounts:[]},newDHLAccount:{},hasMultipleShipperAccounts:!1,paymentIsChangedByUser:{transportation:!1,duties:!1}})}o.$inject=["userService","paymentTypeService"],t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t'+n+'('+e.selectedCountries.length+")"}function l(e){return f().then(function(){return r.deleteShipmentTaxId(e)})}function d(e){return e?o.SAVED_SETTINGS.TAX_IDS_BUTTON_SAVE_TAX_ID:o.SAVED_SETTINGS.TAX_IDS_BUTTON_ADD_NEW_TAX_ID}function f(){return n.showConfirmationDialog({message:o.COMMON.COMMON_MSG_DELETE_ONE_ITEM,title:o.COMMON.COMMON_HEADER_CONFIRM_SINGLE_DELETION,okButtonLabel:o.COMMON.COMMON_BUTTON_YES,cancelButtonLabel:o.COMMON.COMMON_BUTTON_NO})}function p(e,t){return t&&t.length?m(e,t).join(", "):""}function m(e,t){return e.map(function(e){return t.find(function(t){return t.code2===e}).name})}function _(t){var n=e.find(".shipment-tax-ids-country-dropdown[ewf-field="+t+"] .shipment-tax-ids-country-dropdown__input-tmp")[0];if(!n)return!1;var i=Math.ceil(n.scrollWidth);return Math.ceil(n.offsetWidth)<=i}function g(e){return S(e.searchQuery.keyword).then(function(t){return Object.assign(e.searchQuery,{countryCodes:t}),r.searchShipmentTaxId(e)})}function E(e,t){return S(e).then(function(n){return r.searchTypeaheadShipmentTaxId({keyword:e,countryCode:n},t)})}function S(e){var n=e.toUpperCase();return t.loadAvailableLocations().then(function(e){return e.filter(function(e){return e.name.toUpperCase().includes(n)}).map(function(e){return e.code2})})}function C(){return[{alias:u["default"].TAX_ID_NICKNAME,msgsTitle:o.SAVED_SETTINGS.TAX_IDS_COL_NAME_NICK_NAME,defaultSort:!0},{alias:u["default"].TAX_ID_TYPE,msgsTitle:o.SAVED_SETTINGS.TAX_IDS_COL_NAME_TYPE},{alias:u["default"].TAX_ID_NUMBER,msgsTitle:o.SAVED_SETTINGS.TAX_IDS_COL_NAME_NUMBER},{alias:u["default"].SHIP_FROM_COUNTRIES,msgsTitle:o.SAVED_SETTINGS.TAX_IDS_COL_NAME_SHIP_FROM_COUNTRY},{alias:u["default"].SHIP_TO_COUNTRIES,msgsTitle:o.SAVED_SETTINGS.TAX_IDS_COL_NAME_SHIP_TO_COUNTRY}]}function h(e){return i(o.CUSTOMS_DECLARATION.SHIPMENT_TAX_ID_ERROR_INVALID_TAX_ID,{taxIdName:e})}function I(e,t,n){var i=e&&e.find(function(e){return e.customerFacingCode.value===n});if(!i)return[];var r=i.issuingCountryCodes.map(function(e){return e.value});return t.filter(function(e){return r.includes(e.code2)})}function A(e,t,n){var i={sortingParameter:O[e]||O[u["default"].TAX_ID_NICKNAME],sortingDirection:t||c["default"].ASC};return n&&(i.groupingParameter=u["default"].TAX_ID_TYPE),i}function v(e){return r.addSingleShipmentTaxId(e)}function N(e){return r.getShipmentTaxIdsList(e)}function T(){return r.getTaxIdTypesList()}function M(e){return r.updateSingleShipmentTaxId(e)}function y(){return o.ERRORS.TAX_ID_NOT_AVAILABLE}var D,O=(D={},D[u["default"].SHIP_TO_COUNTRIES]="toCountrySelection",D[u["default"].SHIP_FROM_COUNTRIES]="fromCountrySelection",D[u["default"].TAX_ID_NUMBER]=u["default"].TAX_ID_NUMBER,D[u["default"].TAX_ID_NICKNAME]=u["default"].TAX_ID_NICKNAME,D[u["default"].TAX_ID_TYPE]=u["default"].TAX_ID_TYPE,D);return{convertToGridForm:a,deleteShipmentTaxId:l,getInvalidError:h,getSelectedCountriesListText:p,getSortingParamemeters:A,getSubmitButtonText:d,getToCountriesList:I,initColumsToDisplay:C,isCountriesQuantityVisible:_,searchShipmentTaxIds:g,searchShipmentTaxIdsTypeahead:E,addSingleShipmentTaxId:v,getTaxIdTypesList:T,getShipmentTaxIdsList:N,updateSingleShipmentTaxId:M,getTaxIdTypeAlertMessage:y}}r.$inject=["$document","locationService","modalService","replaceFilter","shipmentTaxIdsResource","Messages"],t.__esModule=!0,t["default"]=r;var o=n(982),u=i(o),a=n(40),c=i(a);r.NG_NAME="shipmentTaxIdsService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(t){return e.post(d,t).then(function(e){return e.data})}function r(t){return e["delete"](l+"/"+t).then(function(e){return e.data})}function o(t){var i=n.encodeParams(t);return e.get(l+"?"+i).then(function(e){return e.data})}function u(){return t.getSourceData(t.CI_KEYS.CI1417_CUSTOMS_REGISTRATION_NUMBER_TYPES)}function a(t){return e.post(p,t,{preventNotAvailableInterceptor:!0}).then(function(e){return e.data})}function c(t,i){var r=t.countryCode,o=t.keyword,u=n.encodeParams({countryCode:r}),a=p+"/typeahead/"+i.key+"/"+o+"?"+u;return e.get(a,{preventNotAvailableInterceptor:!0}).then(function(e){var t=e.data;return(t===undefined?{}:t).results})}function s(t){return e.put(f,t).then(function(e){return e.data})}var l="/api/myprofile/tax-ids",d=l+"/add",f=l+"/modify",p=l+"/search/default";return{addSingleShipmentTaxId:i,deleteShipmentTaxId:r,getShipmentTaxIdsList:o,getTaxIdTypesList:u,searchShipmentTaxId:a,searchTypeaheadShipmentTaxId:c,updateSingleShipmentTaxId:s}}i.$inject=["$http","configService","queryParamsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentTaxIdsResource"},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){"ngInject";function t(e){return new r(e)}var n=["id","taxIdType","taxIdNumber","taxIdNickname",{key:"fromCountrySelection",propertyMap:["selectedCountries","anyCountry"]},{key:"toCountrySelection",propertyMap:["selectedCountries","anyCountry"]}],r=function(){function t(r){i(this,t),Object.assign(this,e.map(r,n))}return t}();return{create:t}}r.$inject=["objectMapperService"],t.__esModule=!0,t["default"]=r,r.NG_NAME="shipmentTaxIdsFactory"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"shipmentTaxIdsCountryPickerCtrl",templateUrl:"profile/shipment-tax-ids/dhl-shipment-tax-ids-country-picker-template.html",bindings:{model:"<"+o,countriesList:"<"+o+"CountriesList",isTypeChosen:"<"+o+"IsDropdownDisabled",fieldName:"<"+o+"FieldName"}})}function r(e,t,n,i,r){"ngInject";function o(){_(),e.on("click",c)}function u(e){var t=e.countriesList;t&&(D.filteredCountriesList=angular.copy(D.countriesList),t.isFirstChange()||s(),N())}function a(){e.off("click",c)}function c(n){var i=".shipment-tax-ids-country-dropdown[ewf-field="+D.fieldName+"]",r=angular.element(n.target),o=e.find(i)[0];n.target!==o&&0===r.parents(i).length&&t.$apply(function(){D.dropdownVisible=!1,D.countrySearch="",A()})}function s(){D.model.selectedCountries=[],D.model.anyCountry=!1,D.selectedCountriesListText="",D.isSingleCountry=!1}function l(){if(!D.model.selectedCountries.length&&!D.model.anyCountry)return r.SAVED_SETTINGS.TAX_IDS_VALUE_LABEL_NO_COUNTRIES_SELECTED;var e=D.model.anyCountry?D.countriesList.length:D.model.selectedCountries.length;return n(r.SAVED_SETTINGS.TAX_IDS_VALUE_LABEL_COUNTRIES_SELECTED,{selectedCountriesQuantity:e})}function d(e,t){if(t.target.checked)return D.model.selectedCountries.push(e),p(),void _();m(),D.model.selectedCountries=D.model.selectedCountries.filter(function(t){return t!==e}),_()}function f(){return"shipToCountries"===D.fieldName}function p(){D.model.selectedCountries.length!==D.countriesList.length||f()||(D.model.anyCountry=!0,D.model.selectedCountries=[])}function m(){D.model.anyCountry&&(D.model.anyCountry=!1,D.model.selectedCountries=D.countriesList.map(function(e){return e.code2}))}function _(){D.selectedCountriesListText=D.model.anyCountry?r.SAVED_SETTINGS.TAX_IDS_VALUE_LABEL_ANY:i.getSelectedCountriesListText(D.model.selectedCountries,D.countriesList)}function g(e){return D.model.anyCountry||!!D.model.selectedCountries.find(function(t){return t===e})}function E(){return D.model.anyCountry||!!D.model.selectedCountries.length}function S(){D.dropdownVisible=!0}function C(){return"("+D.model.selectedCountries.length+")"}function h(){if(f())return D.model.selectedCountries=D.countriesList.map(function(e){return e.code2}),void _();D.model.anyCountry=!0,D.model.selectedCountries=[],_()}function I(){return D.model.anyCountry||!!D.model.selectedCountries.length}function A(){if(""===D.countrySearch.trim())return void(D.filteredCountriesList=angular.copy(D.countriesList));D.filteredCountriesList=D.countriesList.filter(function(e){return e.name.toLowerCase().includes(D.countrySearch.toLowerCase())})}function v(){return!!D.model.selectedCountries.length&&i.isCountriesQuantityVisible(D.fieldName)}function N(){if(1===D.filteredCountriesList.length){if(T(D.model.selectedCountries,D.filteredCountriesList))return void(D.isSingleCountry=!0);D.model.selectedCountries.length>=1&&(D.model.selectedCountries=[]),D.model.selectedCountries.push(D.filteredCountriesList[0].code2),D.model.anyCountry=!1,D.isSingleCountry=!0,_()}}function T(e,t){return 1===e.length&&e.includes(t[0].code2)}function M(){return D.isTypeChosen||D.isSingleCountry}function y(){return""+D.model.selectedCountries+D.model.anyCountry}var D=this;Object.assign(D,{$onInit:o,$onChanges:u,$onDestroy:a,checkSelectedCountriesListValidity:E,clearSelectedCountries:s,getSelectedCountriesText:l,getSelectedCountriesQuantityText:C,getSelectedCountriesValidationTrigger:y,isClearVisible:I,isCountryChecked:g,isCountriesQuantityVisible:v,isDropdownDisabled:M,onCountryCheckChange:d,onCountrySearchChange:A,openDropdown:S,selectAllCountries:h,dropdownVisible:!1,countrySearch:"",filteredCountriesList:[],isSingleCountry:!1})}i.$inject=["component"],r.$inject=["$document","$scope","replaceFilter","shipmentTaxIdsService","Messages"],t.__esModule=!0,t["default"]=i,t.ShipmentTaxIdsCountryPickerController=r;var o=i.NG_NAME="ewfShipmentTaxIdsCountryPicker"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"shipmentTaxIdsSearchCtrl",templateUrl:"profile/shipment-settings/shipment-tax-ids-search.html",bindings:{searchKeyword:"="+c+"SearchKeyword",onSearchSuccess:"&"+c+"OnSearchSuccess",onSelect:"&"+c+"OnSelect",sortingParameters:"<"+c+"SortingParameters",pageSize:"<"+c+"PageSize"}})}function r(e,t){"ngInject";function n(){i(),s.searchCategory={key:l}}function i(){s.searchCategories=[{key:l,name:t.COMMON.COMMON_SELECT_OPTION_ALL},{key:a["default"].TAX_ID_NICKNAME,name:t.SAVED_SETTINGS.TAX_IDS_SELECT_OPTION_TAX_ID_NICKNAME},{key:a["default"].TAX_ID_TYPE,name:t.SAVED_SETTINGS.TAX_IDS_SELECT_OPTION_TAX_ID_TYPE},{key:a["default"].TAX_ID_NUMBER,name:t.SAVED_SETTINGS.TAX_IDS_SELECT_OPTION_TAX_ID_NUMBER},{key:a["default"].FROM_COUNTRY_SELECTION,name:t.SAVED_SETTINGS.TAX_IDS_SELECT_OPTION_TAX_ID_SHIP_FROM_COUNTRIES},{key:a["default"].TO_COUNTRY_SELECTION,name:t.SAVED_SETTINGS.TAX_IDS_SELECT_OPTION_TAX_ID_SHIP_TO_COUNTRIES}]}function r(){var t=o({searchQuery:{page:{pageNumber:0,pageSize:s.pageSize},keyword:s.searchKeyword,searchParameter:s.searchCategory.key}},s.sortingParameters);e.searchShipmentTaxIds(t).then(s.onSearchSuccess)}function u(){return e.searchShipmentTaxIdsTypeahead(s.searchKeyword,s.searchCategory).then(function(e){return(e.results||e).map(function(e){return c(s.searchKeyword,e)})})}function c(e,t){return{query:e,key:t.data.key,value:[t.line1,t.line2,t.line3].filter(Boolean).join("; ")}}var s=this,l="all";Object.assign(s,{$onInit:n,searchShipmentTaxIds:r,searchShipmentTaxIdsTypeahead:u,searchCategory:{}})}i.$inject=["component"],r.$inject=["shipmentTaxIdsService","Messages"],t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&d()}),t.$watch(function(){return p.insurance.insuranceCurrency},function(){f()})}function a(){return n.updateShipmentInsurance(p.insurance).then(function(e){m=angular.copy(e),p.errorMessages=null})["catch"](function(t){return p.errorMessages=t.data,e.reject(t)})}function c(){p.insurance.insureShipmentType="NONE",p.insurance.insureShipments=null,p.insurance.extendedLiabilityEnabled=null,p.insurance.insuranceValue=0,p.insurance.insuranceCurrency=m.insuranceCurrency||p.profileShipmentModel.defaultInsuranceCurrency}function s(){p.errorMessages=null,Object.assign(p.insurance,m)}function l(){return p.insurance.insureShipmentType!==o["default"].customValue}function d(){p.insurance.insureShipmentType=o["default"].customValue,p.mandatoryMaxInsurance=!0}function f(){var e=p.insurance.maxInsuranceValue;if(e){var t={amount:e,sourceCurrency:p.insurance.maxInsuranceCurrency,targetCurrency:p.insurance.insuranceCurrency};r.processCurrencyConversion(t).then(function(e){return p.convertedMaxInsuranceValue=e})}}var p=this,m={};Object.assign(p,{selectedInsuranceCurrency:null,mandatoryMaxInsurance:!1,insurance:{extendedLiabilityEnabled:null,insureShipments:null,insureShipmentType:"NONE",insuranceValue:0},init:u,updateShipmentInsurance:a,resetToInitialData:s,resetInsurance:c,isCustomValueOptionSelected:l})}i.$inject=["$q","$scope","profileShipmentResource","profileShipmentModel","shipmentTypeService"],t.__esModule=!0,t["default"]=i;var r=n(983),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2248),o=i(r),u=n(2249),a=i(u),c=n(914),s=i(c),l=n(456),d=i(l),f="profile.shipmentSettings.defaults.profilePaperlessCustoms",p=angular.module(f,[s["default"],d["default"]]);p.directive(o["default"].NG_NAME,o["default"]).service(a["default"].NG_NAME,a["default"]),t.module=p,t["default"]=f},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"profilePaperlessCustomsCtrl",templateUrl:"profile-paperless-customs.html"})}function r(e,t){"ngInject";function n(){return e.getPaperlessSettings()}function i(t){return e.updateSettings(t)}function r(t){return e.switchPaperlessStatus(t)}function o(){return t.isCompanyEnrollment()}var u=this;Object.assign(u,{UPLOAD_BASE_PATH:e.UPLOAD_BASE_PATH,getPaperlessSettings:n,updateSettings:i,switchPaperlessStatus:r,isCorporateDciVisible:o})}i.$inject=["component"],r.$inject=["profilePaperlessCustomsResource","corporateDigitalCustomsInvoicesService"],t.__esModule=!0,t["default"]=i,t.ProfilePaperlessCustomsCtrl=r,i.NG_NAME="ewfProfilePaperlessCustoms"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){return e.get(u).then(o)}function n(t){return e.post(u,t).then(o)}function i(t){return e.post(a,t).then(o)}function r(t){return e.put(c,{enabled:t}).then(o)}function o(e){return e.data}var u="/api/myprofile/customs/paperless",a=u+"/signature",c=u+"/status";return{UPLOAD_BASE_PATH:u+"/upload",getPaperlessSettings:t,updateSettings:n,updateSignatureSettings:i,switchPaperlessStatus:r}}i.$inject=["$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="profilePaperlessCustomsResource"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(25),o=i(r),u=n(536),a=i(u),c=n(2),s=i(c),l=n(237),d=i(l),f=n(30),p=i(f),m=n(984),_=i(m),g=n(65),E=i(g),S=n(538),C=i(S),h=n(2268),I=i(h),A=n(2270),v=i(A),N=n(2271),T=i(N),M=n(539),y=i(M),D=n(2272),O=i(D),P=n(2273),b=i(P),R=n(2274),L=i(R),G="profile.shipmentSettings.defaults.pickups",U=angular.module(G,[a["default"],o["default"],s["default"],d["default"]||"profile.shipmentSettings.shipmentDefaults",p["default"],_["default"],E["default"],C["default"]]);U.service(y["default"].NG_NAME,y["default"]).service(O["default"].NG_NAME,O["default"]).service(b["default"].NG_NAME,b["default"]).service(L["default"].NG_NAME,L["default"]).directive(I["default"].NG_NAME,I["default"]).directive(v["default"].NG_NAME,v["default"]).directive(T["default"].NG_NAME,T["default"]),t.module=U,t["default"]=G},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return{description:{nls:null,value:n.SHIPMENT_PICKUP.SCHEDULE_PICKUP_SELECT_OPTION_OTHER},code:"pickup_other"}}function r(e){return o(e)}function o(t,n){var r=[u(t),n||a(t)];return e.all(r).then(function(e){var t=e[0];return e[1]?[].concat(t,[i()]):t})}function u(e){return t.getValue(t.CI_KEYS.CI0554_PICKUP_LOCATION,e).then(function(e){return e.data.value.map(function(e){var t=e.code,n=e.description;return{code:t.value,description:n}})})["catch"](function(){return[]})}function a(e){return t.getBoolean(t.CI_KEYS.CI0989_ENABLE_PICKUP_LOCATION_OTHER,e)["catch"](function(){return!1})}function c(e){return(angular.isObject(e)?e.code:e)===i().code}function s(){return o(undefined,!0)}function l(e){return t.getSourceData(t.CI_KEYS.CI0873_MINIMAL_PICKUP_INTERVAL,e)}return{isOtherPickupLocation:c,getPickupLocations:r,getAllAvailablePickupLocations:s,getMinimumPickupInterval:l}}i.$inject=["$q","configService","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="pickupLocationService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"components/locator/locator-service-point-selector.html",controller:r,controllerAs:"locatorServicePointSelectorCtrl",bindings:{selectedServicePoint:"="+u,servicePointSelectionError:"=?"+u+"Error",selectedTitle:"1?(w.notificationData=e.length,R("deletedMultiple")):(w.notificationData=t[0].name,R("deletedSingle"))}function D(e){e&&e.data&&(R("rejected"),w.notificationData=e.data)}function O(){w.showActions=!w.showActions}function P(){return!w.mailingLists.some(b)}function b(e){return e.isSelected}function R(e){w.gridActionStatus[e]=!0}function L(){w.showActions=!1}function G(e,n){r.showDelimitersModal().then(function(){return t.downloadMailingList(n.id)}).then(function(){return w.mailingListExported=!0})["catch"](U)}function U(e){if(e.status===u["default"].NOT_FOUND)return w.showMailingListNotFoundError()}function F(){w.mailingListNotFound=!0,w.selectedMailingList=null,_()}var w=this,k=void 0;Object.assign(w,{$onInit:a,$postLink:c,onCreateMailingList:p,openCreateMailingListDialog:f,isEmptyListMessageVisible:g,getMailingListsNames:E,getUniqueMailingListsNames:S,isMailingListDetailsShown:C,goToMailingLists:d,searchMailingLists:h,selectMailingList:s,openDuplicateMailingListDialog:m,filterMailingListsByName:I,isMailingListsAvailable:A,toggleActions:O,disableActions:P,bulkDeleteMailingLists:T,hideActions:L,deleteSuccessHandler:y,showMailingListNotFoundError:F,loadingMailingLists:!1,showActions:!1,copyMailingListId:null,lastCreatedMailingListName:"",notificationData:"",mailingListName:"",gridActionStatus:{},mailingLists:[],mailingListsNames:[],filteredMailingList:[],newMailingListContacts:[],paginationRangeOptions:{top:{hidePageRange:!0,hidePageSizes:!0},bottom:!0},columns:[{title:o.ADDRESS_BOOK.MAILING_LIST_COLUMN_NAME,alias:"name"},{title:o.ADDRESS_BOOK.MAILING_LIST_COLUMN_NUMBER_OF_CONTACTS,alias:"numberOfContacts"}]})}i.$inject=["component"],r.$inject=["mailingListDetailsResource","mailingListsService","addressService","sortService","delimitersModalService","Messages"],t.__esModule=!0,t["default"]=i,t.MailingListsCtrl=r;var o=n(6),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfMailingLists"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){var n=arguments.length<=1||arguments[1]===undefined?[]:arguments[1];return e.post(d,{name:t,contacts:n}).then(s)}function o(t,n){return e.post(f,{id:n,name:t}).then(s)}function u(t,n){var i=arguments.length<=2||arguments[2]===undefined?[]:arguments[2];return e.put(d+"/"+n,{id:n,name:t,contacts:i},{preventNotFoundInterceptor:!0}).then(s)}function a(n){return n||t.removeFromCache(d),e.get(d,{cache:!0}).then(s)}function c(t){return e.post(p,t).then(s)}function s(e){return e.data}function l(e){var t={method:"POST",url:m,data:{mailingListIds:[e],exportDate:i.getFormattedDate(new Date,"yyyy-MM-dd")},preventNotFoundInterceptor:!0};return n.download(t)}var d="/api/addressbook/mailingList",f="/api/addressbook/mailingList/copy",p="/api/addressbook/mailingLists/delete",m="/api/addressbook/mailingLists/download";return{createMailingList:r,copyMailingList:o,getMailingLists:a,deleteMailingLists:c,updateMailingList:u,downloadMailingList:l}}i.$inject=["$http","httpCacheService","downloadService","dateTimeService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="mailingListsResource"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function u(t){return e.showDialog({controller:function(){function e(){return t}return e}(),controllerAs:"createMailingListCtrl",templateUrl:"create-mailing-list-modal.html"})}function a(e,t){var n=arguments.length<=2||arguments[2]===undefined?1:arguments[2],i=e+" copy "+n;return t.includes(i)?a(e,t,n+1):i}function c(e){var n=e.map(function(e){return e.id}),i=e[0].name;return l(n.length,i).then(function(){return t.deleteMailingLists({mailingListIds:n})})}function s(e){var t;r.redirectToCreateShipment((t={},t[o["default"].MAILING_LIST_ID]=e,t))}function l(t,r){var o=t>1?i(n.ADDRESS_BOOK.ADDRESS_BOOK_ALERT_MAILING_LISTS_CONFIRM_DELETE,{number:t}):i(n.ADDRESS_BOOK.ADDRESS_BOOK_ALERT_MAILING_LIST_CONFIRM_DELETE,{name:r}),u=t>1?n.COMMON.COMMON_HEADER_CONFIRM_MULTIPLE_DELETION:n.COMMON.COMMON_HEADER_CONFIRM_SINGLE_DELETION;return e.showConfirmationDialog({message:o,title:u,okButtonLabel:n.ADDRESS_BOOK.MAILING_LIST_DELETE,cancelButtonLabel:n.ADDRESS_BOOK.MAILING_LIST_CANCEL})}function d(){e.showConfirmationDialog({message:n.ADDRESS_BOOK.ADDRESS_BOOK_MSG_NO_MAILING_LISTS_FOUND})}function f(e,n){return t.copyMailingList(e,n)}function p(e){return t.createMailingList(e)}function m(e){return t.getMailingLists(e)}function _(e){return t.downloadMailingList(e)}return{openCreateMailingListDialog:u,computeUniqueMailingListName:a,deleteMailingLists:c,redirectToCreateShipmentPage:s,showNoMailingListsFoundModal:d,copyMailingList:f,createMailingList:p,getMailingLists:m,downloadMailingList:_}}i.$inject=["modalService","mailingListsResource","Messages","replaceFilter","navigationService"],t.__esModule=!0,t["default"]=i;var r=n(1),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="mailingListsService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{contactDetails:"="+o+"ContactDetails"},controller:r,controllerAs:"contactEmailsCtrl",templateUrl:"contact-component/contact-emails.html"})}function r(){function e(){var e=c.find(function(e){return angular.isUndefined(u.contactDetails[e])});e&&(u.contactDetails[e]="")}function t(e){var t=o(),n=t.indexOf(u.contactDetails[e]);t.splice(n,1),c.forEach(function(e,n){return u.contactDetails[e]=t[n]})}function n(){return o().length1}function E(){var e=angular.copy(N);return I.notifications.emailNotifications.push(e),I.allNotifications.push(e),e}function S(){E().email=t.getId()}function C(e){var t=I.notifications,n=t.emailNotifications,i=t.smsNotifications;if(m(e))return h(e,i,n);_(e)&&h(e,n,i)}function h(e,t,n){var i=t.indexOf(e);t.splice(i,1),n&&n.push(e)}var I=this,A="EMAIL",v="SMS",N={type:A,destination:"",language:"",email:"",notificationEvents:{pickup:!1,clearanceDelay:!1,customsClearance:!1,exception:!1,outForDelivery:!1,delivered:!1}};Object.assign(I,{notificationTypes:[],allNotifications:[],languages:[],language:"",$onInit:i,addNotification:E,removeNotification:s,canAddContactNotification:d,notificationTypeIsEmail:m,notificationTypeIsSms:_,canShowRemoveButton:g,onTypeChange:C})}i.$inject=["component"],r.$inject=["crudService","userService","Messages"],t.__esModule=!0,t["default"]=i,t.ContactNotificationsInfoController=r;var o=i.NG_NAME="ewfContactNotificationsInfo"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2300),o=i(r),u=n(2301),a=i(u),c=n(424),s=i(c),l=n(31),d=i(l),f="addressBook.contactInfo.paymentInfo",p=angular.module(f,[s["default"],d["default"]]);p.directive(o["default"].NG_NAME,o["default"]).service(a["default"].NG_NAME,a["default"]),t.module=p,t["default"]=f},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"contactPaymentInfoCtrl",bindings:{paymentSettings:"<"+o,countryCode:"<"+o+"CountryCode",disabled:"<"+o+"Disabled"},templateUrl:"contact-optional-settings/contact-payment-info.html"})}function r(e){"ngInject";function t(){e.fetchPaymentData().then(f)}function n(e){e.paymentSettings&&["defaultAccount","accountForShippingCharges","accountForDuties","accountForTaxes","splitDutiesAndTaxes"].forEach(function(e){return p.paymentSettings[e]=p.paymentSettings[e]||null})}function i(e){if(p.paymentSettings.splitDutiesAndTaxes){var t=a(e),n=r();if(o(n[e]))return void(p.paymentSettings.accountForDuties=p.paymentSettings.accountForTaxes=n[e]);if(!u(n[t]))return t===g.TAXES?void(p.paymentSettings.accountForTaxes=null):void(p.paymentSettings.accountForDuties=null)}}function r(){var e;return e={},e[g.DUTIES]=p.paymentSettings.accountForDuties,e[g.TAXES]=p.paymentSettings.accountForTaxes,e}function o(e){return e&&e.type===_}function u(e){return!e||e.type!==_}function a(e){return e===g.DUTIES?g.TAXES:g.DUTIES}function c(){return p.shipperAccounts.length>m}function s(){return!(!p.accountsForShippingCharges.length||p.paymentSettings.useDefaultAccountAsShippingCharges)}function l(e){e&&(p.paymentSettings.accountForDuties=null,p.paymentSettings.accountForTaxes=null)}function d(e){e&&(p.paymentSettings.accountForShippingCharges=null)}function f(t){var n=t[0],i=n===undefined?[]:n,r=t[1];r=r===undefined?{}:r;var o=r.allowAlternate;i.forEach(e.markAccountAsDHL),p.shipperAccounts=e.getShipperAccounts(i),p.accountsForShippingCharges=e.getAccountsForShippingCharges(i,o),p.accountsForDuties=e.getAccountsForDuties(i,o),p.accountsForTaxes=angular.copy(p.accountsForDuties)}var p=this,m=1,_="RECEIVER_WILL_PAY",g={DUTIES:"duties",TAXES:"taxes"};Object.assign(p,{shipperAccounts:[],accountsForShippingCharges:[],accountsForDuties:[],accountsForTaxes:[],PAYMENT_OPTIONS:g,$onInit:t,$onChanges:n,isShipperAccountsVisible:c,isTransportationShippingChargesVisible:s,resetDutiesAndTaxes:l,resetShippingCharges:d,setReceiverWillPay:i})}i.$inject=["component"],r.$inject=["contactPaymentInfoService"],t.__esModule=!0,t["default"]=i,t.ContactPaymentInfoController=r;var o=i.NG_NAME="ewfContactPaymentInfo"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){return e.all([t.getUserAccounts(),t.getUserAccountsOtherOptions()])}function u(e){return e.filter(n.isShipperAccount)}function a(e){e.type=o["default"].DHL_ACCOUNT}function c(){return{key:null,type:o["default"].ALTERNATE_DHLACCOUNT,name:i.MANAGE_ACCOUNTS.MY_DHL_ACCOUNTS_VALUE_LABEL_TYPE_ALTERNATE}}function s(){return{key:null,type:o["default"].RECEIVER_WILL_PAY,name:i.MANAGE_ACCOUNTS.MY_DHL_ACCOUNTS_VALUE_LABEL_TYPE_RECEIVER_PAY}}function l(e,t){var n=[];return e.length&&n.push.apply(n,e),t&&n.push(c()),n}function d(e,t){return[].concat(l(e,t),[s()])}return{fetchPaymentData:r,getShipperAccounts:u,getAccountsForShippingCharges:l,getAccountsForDuties:d,markAccountAsDHL:a}}i.$inject=["$q","paymentAccountService","paymentTypeService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(5),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="contactPaymentInfoService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2303),a=i(u),c="addressBook.contactInfo.pickupInfo",s=angular.module(c,[o["default"]]);s.directive(a["default"].NG_NAME,a["default"]),t.module=s,t["default"]=c},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{pickup:"<"+r,disabled:"<"+r+"Disabled"},controllerAs:"contactPickupInfoCtrl",templateUrl:"contact-optional-settings/contact-pickup-info.html"})}i.$inject=["component"],t.__esModule=!0,t["default"]=i;var r=i.NG_NAME="ewfContactPickupInfo"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2305),a=i(u),c=angular.module("addressBook.contactInfo.shareInfo",[o["default"]]);c.directive(a["default"].NG_NAME,a["default"]),t.module=c,t["default"]="addressBook.contactInfo.shareInfo"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{shareSettings:"<"+a,disabled:"<"+a+"Disabled"},controllerAs:"contactShareInfoCtrl",controller:r,templateUrl:"contact-optional-settings/contact-share-info.html"})}function r(){var e=this;Object.assign(e,{messageMaxLength:u["default"].MESSAGE_MAX_LENGTH})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.ContactShareInfoController=r;var o=n(425),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfContactShareInfo"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(0),o=i(r),u=n(2307),a=i(u),c="addressBook.contactInfo.shippingInfo",s=angular.module(c,[o["default"]]);s.directive(a["default"].NG_NAME,a["default"]),t.module=s,t["default"]=c},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{shipping:"<"+o,isCreateMode:"<"+o+"IsCreateMode",contactCountry:"<"+o+"ContactCountry",disabled:"<"+o+"Disabled"},controller:r,controllerAs:"contactShippingInfoCtrl",templateUrl:"contact-optional-settings/contact-shipping-info.html"})}function r(e,t){"ngInject";function n(){e.getElementList("/api/currencies").then(function(e){return m.currencies=e})}function i(e){var t=e.shipping,n=e.contactCountry;m.shipping||d(),t&&o(t.currentValue),r(n)&&c(n.currentValue)}function r(e){return e&&m.isCreateMode&&!g}function o(e){var t=e||{};u()&&(m.shipping.currency=t.currency||m.shipping.defaultCurrency),t.referencesForShipments=a(t)}function u(){return m.isCreateMode&&!g}function a(e){return e.referencesForShipments&&e.referencesForShipments.length?e.referencesForShipments:_}function c(e){t.getSourceData(t.CI_KEYS.CI0053_DECLARED_DEFAULT_CURRENCY,e).then(function(e){return m.shipping.currency=e||m.shipping.currency})}function s(){g=!0}function l(){m.shipping.referencesForShipments.push({referenceName:"",referenceType:"OPTIONAL"})}function d(){m.shipping={defaultCurrency:null,referencesForShipments:_}}function f(e){var t=m.shipping.referencesForShipments.indexOf(e);m.shipping.referencesForShipments.splice(t,1)}function p(){return!!m.shipping&&!!m.shipping.referencesForShipments&&m.shipping.referencesForShipments.every(function(e){return e.referenceName})}var m=this,_=[{referenceName:"",referenceType:"DEFAULT"}],g=!1;Object.assign(m,{shipping:{defaultCurrency:null},currencies:null,$onInit:n,$onChanges:i,onCurrencyChange:s,removeReference:f,addAnotherReference:l,canAddAnotherReference:p})}i.$inject=["component"],r.$inject=["crudService","configService"],t.__esModule=!0,t["default"]=i,t.ContactShippingInfoController=r;var o=i.NG_NAME="ewfContactShippingInfo"},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{restricted:"',scope:{options:"="+i.NG_NAME}}}t.__esModule=!0,t["default"]=i;var r=n(2319),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="ewfPickupSlider"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){return{labels:{from:e.SHIPMENT_PICKUP.LABEL_EARLIEST,to:e.SHIPMENT_PICKUP.LABEL_LATEST},type:"double",step:15,grid:!0,drag_interval:!0,hide_min_max:!0,grid_num:4}}function n(e){i.sliderOptions=r({},t(),e)}var i=this;Object.assign(i,{sliderOptions:null,updateSliderOptions:n})}i.$inject=["Messages"],t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=A.additionalPartyLimit}function S(e){var t=e.customer.addressDetails;return[t.countryDivisionName,t.city,t.zipOrPostCode].filter(Boolean).join(", ")}function C(e){var t=e.customer.addressDetails,n=e.customer.phoneDetails;return[e.customer.name,e.partyRole,t.addrLine1,t.city,t.countryCode,n.phoneCountryCode,n.phone].every(Boolean)}function h(){return A.isReturnLabel?d["default"].RETURN_LABEL_CUSTOMS_DECLARATION_BLOCKER:d["default"].CUSTOMS_DECLARATION_BLOCKER}function I(){return A.model.areAdditionalPartiesInvolved&&!A.model.parties.length}var A=this;Object.assign(A,{partyRoleTranslations:{},additionalPartyLimit:0,$onInit:i,$doCheck:r,addAdditionalParty:u,clearAdditionalParties:c,editAdditionalParty:l,removeAdditionalParty:g,isAddPartyDisabled:E,getProvinceCityAndPostalCode:S,areMandatoryPartyFieldsFilled:C,getPartiesAbsentAlertId:h,isAdditionalPartiesAbsentAlertPresent:I})}r.$inject=["component"],o.$inject=["modalService","addressContactService","additionalPartiesService"],t.__esModule=!0,t["default"]=r,t.AdditionalPartiesController=o;var u=n(2341),a=i(u),c=n(992),s=i(c),l=n(2342),d=i(l),f=n(84),p=i(f),m=r.NG_NAME="ewfAdditionalParties"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){return p.model.customer.addressDetails.countryCode||i.getUserCountry()}function u(e){p.model.contactKey=p.model.customer.key,e.close(p.model)}function a(e){n.showDialog({templateUrl:"add-additional-party-address-book.html"}).result.then(e)}function c(){return p.model.partyRole===o["default"].BUYER&&s()}function s(){return e.addressDetailsModel.model.isDeliveryToServicePointSelected}function l(){return!i.isGuest()&&!c()}function d(){f(),m=p.model.partyRole}function f(){if(s())if(p.model.partyRole===o["default"].BUYER){var t=e.addressDetailsModel;p.model.customer.copy(t.model.toContact)}else m===o["default"].BUYER&&p.model.customer.clear()}var p=this,m=void 0;Object.assign(p,{model:e.additionalPartyModel,partyRoleOptions:t,getConfigCountry:r,saveAdditionalParty:u,openAddressBookPopup:a,isDeliveryToServicePointBuyer:c,isAddressBookVisible:l,onPartyRoleChange:d})}i.$inject=["additionalPartyModalParameters","partyRoleOptions","modalService","userService"],t.__esModule=!0,t["default"]=i;var r=n(84),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={RETURN_LABEL_CUSTOMS_DECLARATION_BLOCKER:"return-label-customs-declaration-blocker",CUSTOMS_DECLARATION_BLOCKER:"customs-declaration-blocker"}},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{model:"="+o,country:"1})}function d(e,t){return e.documentType===t.documentType&&e.documentId===t.documentId}return{getConfigOptions:r,resolveAdditionalDocumentVisibility:o,processConfigOptions:u,areDuplicatesPresent:l}}i.$inject=["$q","userDependentConfigurationService","userService","customsDeclarationService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="additionalCustomsDocumentationService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"dhl-tax-and-pii-alert.html",controller:r,controllerAs:"taxAndPiiAlertCtrl",bindings:{addressDetailsModel:"<"+a,fromCountry:"<"+a+"FromCountry",toCountry:"<"+a+"ToCountry",fromCountryFieldConfigs:"<"+a+"FromCountryFieldConfigs",toCountryFieldConfigs:"<"+a+"ToCountryFieldConfigs"}})}function r(e,t,n){"ngInject";function i(n){var i=n.fromCountry,o=n.toCountry;if(i||o){var u=[t.getValue(t.CI_KEYS.CI1457_LIST_PII_INFO_MESSAGE_TO_SPECIFIC_SOURCE_DESTINATION_USCI_CRN),t.getValue(t.CI_KEYS.CI1458_LIST_PII_INFO_MESSAGE_TO_SPECIFIC_SOURCE_DESTINATION_TAX_DOCUMENT_TYPE)];e.all(u).then(function(e){var t=e[0].data,n=e[1].data,i=t&&t.value,o=n&&n.value,u=l(i),c=l(o);f.conditionalMessages=[].concat(a(u),r(c))})}}function r(e){return e.length&&[].concat(c(f.fromCountryFieldConfigs),c(f.toCountryFieldConfigs)).some(o)?e:[]}function o(e){return e.isMandatory&&e.isVisible&&!e.isProvided}function a(e){return e.length&&[f.fromCountry,f.toCountry].includes(u["default"].CHINA)&&s().some(o)?e:[]}function c(e){return e?e.filter(function(e){var t=e.type;return!n.hasChinaFields(t)}):[]}function s(){var e=f.fromCountry===u["default"].CHINA?f.fromCountryFieldConfigs:f.toCountryFieldConfigs;return e?e.filter(function(e){var t=e.type;return n.hasChinaFields(t)}):[]}function l(){return(arguments.length<=0||arguments[0]===undefined?[]:arguments[0]).filter(function(e){return d(e.shipperCountryCodes,f.fromCountry)&&d(e.destinationCountryCodes,f.toCountry)})}function d(e,t){return!e.length||e.some(function(e){return e.value===t})}var f=this;Object.assign(f,{$onChanges:i,conditionalMessages:[]})}i.$inject=["component"],r.$inject=["$q","configService","personalInformationService"],t.__esModule=!0,t["default"]=i,t.TaxAndPiiAlertController=r;var o=n(4),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfTaxAndPiiAlert"},function(e,t,n){"use strict";function i(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function r(e,t,n){"ngInject";function r(e,n){var i={emailTemplateType:n};return t.getDefaultData(e,{params:i}).then(function(e){return Object.assign({},e,{toAddresses:e.toAddresses.join()})})}function o(e,n){var i={country:e.toLowerCase(),type:n};return t.getDefaultEmailSubjects({params:i})}function a(e,n){var r=n.subject,o=n.message,u=i(n,["subject","message"]),a=Object.assign({},u,{toAddresses:c(u.toAddresses),shareShipmentQuerySubject:r,shareShipmentQueryMessage:o});return t.sendShipment(e,a)}function c(e){return e.trim().split(n.EMAILS_SPLIT_REGEX_COMMA_SEMICOLON).filter(function(e,t,n){return n.indexOf(e)===t})}function s(t,n,i){return e.showDialog({controller:u["default"],controllerAs:"sendDocumentsDialogCtrl",templateUrl:"/ng-template/shipment/modals/send-documents-dialog-layout-ng-template.html",resolve:{shipmentId:function(){function e(){return t}return e}(),dialogModelOptions:function(){function e(){return n}return e}(),confirmationMail:function(){function e(){return i}return e}()}}).result}function l(e,t,n){var i=e.isReturnShipment?e.returnAttributes.params.shipmentId:e.masterAttributes.params.shipmentId,r=e.isReturnShipment,o=e.shipmentOriginType,u=e.shipperCountry;return Object.assign(t,{shipperCountry:u,isReturnShipment:r,shipmentOriginType:o}),s(i,t,n)}return{getDefaultData:r,getDefaultEmailSubjects:o,send:a,showDialogFromId:s,showDialogFromOptions:l}}r.$inject=["modalService","sendDocumentsDialogResource","Patterns"],t.__esModule=!0,t["default"]=r;var o=n(2351),u=function(e){return e&&e.__esModule?e:{"default":e}}(o);r.NG_NAME="sendDocumentsDialogService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,o,a,s,d,f,p){"ngInject";function m(){L.actionsLock=s.createLock(),L.userLanguage=p.getCurrentLanguage(),L.isCustomTemplate=!1,a.getDefaultData(n,b()).then(function(e){return S(e),L.shipperCountry&&_()})["catch"](function(){L.model||(L.model=Object.assign({},i))})["finally"](h)}function _(){return L.isCustomTemplate&&L.model.subject||g()}function g(){return a.getDefaultEmailSubjects(L.shipperCountry,E()).then(function(e){L.emailSubjects=e,j=t.$watch(function(){return L.model.lang},I)})}function E(){return R()&&L.pickupIndicator===l["default"].NO_SHIPPER?F:U}function S(e){L.model=Object.assign({},i,e),L.model.toAddresses=i.toAddresses||e.toAddresses,L.isCustomTemplate=!!e.subject}function C(){return!L.isCustomTemplate&&(L.isReturnShipment||R())}function h(){L.shipperCountry&&C()&&d.getAvailableLanguages(L.shipperCountry).then(function(e){v(e),T()})}function I(){L.model.subject=L.emailSubjects[L.model.lang]||L.emailSubjects[L.userLanguage]||L.emailSubjects.en}function A(){j&&(j(),j=undefined)}function v(e){var t=f.getDictionary(k);L.model.languages=e.map(function(e){return N(e,t)})}function N(e,t){return Object.assign({},e,{translation:t[e.code]})}function T(){p.getDefaultLanguage(L.shipperCountry).then(function(e){L.model.languages.some(function(t){return t.code===e})&&(L.model.lang=e)})}function M(e){var t=L.model,i=t.toAddresses,u=t.fromAddress,c=t.subject,s=t.message,l=t.details,d=t.lang,f=t.useMessageFromEmailTemplate;l.emailTemplateType=b();var p={toAddresses:i,fromAddress:u,subject:c,lang:d,message:s,details:l,docs:o.getSelectedDocuments(L.previewAttrs.model),useMessageFromEmailTemplate:f,confirmationMail:r};return a.send(n,p).then(e.close)}function y(){return D()||O()}function D(){return L.model.details.trackingNumber}function O(){return Boolean(L.model.details.pickupConfirmationNumber&&L.model.pickupNumber)}function P(){return e.is(G)}function b(){return P()?u["default"].STANDARD_OUTBOUND:L.isReturnShipment?u["default"].RETURN:R()?u["default"].REMOTE_BOOKING:u["default"].STANDARD_OUTBOUND}function R(){return L.shipmentOriginType===w.IMPORT}var L=this,G="shipment.complete",U="share-shipment",F="import-shipper_sched-pu",w={EXPORT:"EXPORT",IMPORT:"IMPORT",DOMESTIC:"DOMESTIC"},k="languages",j=void 0;Object.assign(L,{messageMaxLength:c["default"].MESSAGE_MAX_LENGTH,subjectMaxLength:c["default"].SUBJECT_MAX_LENGTH,previewAttrs:{model:{},params:{shipmentId:n,defaults:i,isShownDialogHeading:!0}},actionsLock:null,init:m,send:M,shipperCountry:i.shipperCountry,shipmentOriginType:i.shipmentOriginType,isReturnShipment:i.isReturnShipment,pickupIndicator:i.pickupIndicator,confirmationMail:r,isShipmentDetailsShown:y,isConfirmationNumberShown:O,isLanguageSelectorVisible:C,unwatchLanguageChange:A}),m()}r.$inject=["$state","$scope","shipmentId","dialogModelOptions","confirmationMail","documentManagementService","sendDocumentsDialogService","printPreviewShipmentLockService","locationService","nlsService","manageCountryAndLanguageService"],t.__esModule=!0,t["default"]=r;var o=n(289),u=i(o),a=n(425),c=i(a),s=n(426),l=i(s)},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,n){return e.get("/api/shipment/"+t+"/share/fields",n).then(function(e){return e.data})}function n(t){return e.get(r,t).then(function(e){return e.data})}function i(t,n){return e.post("/api/shipment/"+t+"/share",n)}var r="/bin/dhl/emailSubjects.json";return{getDefaultData:t,getDefaultEmailSubjects:n,sendShipment:i}}i.$inject=["$http"],t.__esModule=!0,t["default"]=i,i.NG_NAME="sendDocumentsDialogResource"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=t.module=undefined;var i=n(2354),r=function(e){return e&&e.__esModule?e:{"default":e}}(i),o=angular.module("return-label.modals",[]);o.service(r["default"].NG_NAME,r["default"]),t.module=o,t["default"]="return-label.modals"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){return e.showDialog({templateUrl:"components/shipment/return-label/modals/assign-to-brazil-nfe-dialog.html"})}function i(){return e.showDialog({templateUrl:"components/shipment/return-label/modals/brazil-origin-warning.html"})}function r(){return e.showConfirmationDialog({message:t.SHIPMENT_RETURN_LABEL.RETURN_LABEL_PARAGRAPH_CANCEL_RETURN_SHIPMENT,okButtonLabel:t.COMMON.COMMON_BUTTON_YES,cancelButtonLabel:t.COMMON.COMMON_BUTTON_NO})}return{showAssignToBrazilNfeDialog:n,showBrazilOriginWarning:i,cancelReturnShipment:r}}i.$inject=["modalService","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="returnLabelModalsService"},function(e,t,n){"use strict";function i(e,t,n,i,r,o,u){"ngInject";function a(e,t){return o.isShipmentTypePackage(t)&&n.isShipmentFromBrazil(e)}function c(e,t,n){return r.isValidReturnOriginCountry(t).then(function(i){return i?a(t,n)?s(e):void d(e):r.showReturnFromInvalidMessage(t)})}function s(e){return t.showAssignToBrazilNfeDialog().result.then(function(){return l(e)}).then(d)}function l(t){return e.get("/api/shipment/return/brazil/"+t).then(function(e){return e.data.replace(/"/g,"")})}function d(e){i.redirectToReturnLabelPage({shipmentId:e})}function f(t){var n={externalId:t};return e.get("/api/shipment/return-label-enabled",{cache:!0,params:n}).then(function(e){return"true"===e.data})}function p(e,t){return u.isReturnLabelRestricted(e,t)}function m(e){return n.isShipmentImport(e)}function _(e,t){return n.isShipmentDomesticOrExport(e,t)}return{isBrazilFlow:a,createReturnShipment:c,fetchReturnLabelAvailabilityForShipment:f,isReturnLabelRestricted:p,isShipmentImport:m,isShipmentDomesticOrExport:_}}i.$inject=["$http","returnLabelModalsService","shipmentAddressService","navigationService","countryEwfValidationService","shipmentTypeService","globalMilitaryService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="returnLabelCreateReturnShipmentService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(){return t.getBoolean(t.CI_KEYS.CI1054_FORCE_USERS_TO_REENTER_CERTAIN_SHIPMENT_FIELDS)}function r(n){var i=n;return i?t.getBooleanIfSupportedByCountry(t.CI_KEYS.CI1285_ENABLE_GST_DATA,i):e.when(!1)}function o(t){return e.all([i(),r(t)])}function u(n,i,r){var o=[];return i&&o.push(t.getValue(t.CI_KEYS.CI1055_LIST_OF_FIELDS_TO_BE_FORCED_TO_REENTER)),n&&o.push(t.getValue(t.CI_KEYS.CI1320_LIST_OF_GST_FIELDS_TO_BE_REENTERED,r)),o.length?e.all(o).then(a):e.when([])}function a(e){return e.reduce(function(e,t){return t?[].concat(e,t.data.value):e},[])}function c(e){return{ASSIGN_ADDITIONAL_INSTRUCTION:n.ONE_CLICK_SHIPMENT.ASSIGN_ADDITIONAL_INSTRUCTION,FROM_ADDRESS_2:n.ONE_CLICK_SHIPMENT.FROM_ADDRESS_2,TO_ADDRESS_2:n.ONE_CLICK_SHIPMENT.TO_ADDRESS_2,PAYMENT_ALTER_DHL_ACC_NUMBER:n.ONE_CLICK_SHIPMENT.PAYMENT_ALTER_DHL_ACC_NUMBER,FROM_COMPANY:n.ONE_CLICK_SHIPMENT.FROM_COMPANY,TO_COMPANY:n.ONE_CLICK_SHIPMENT.TO_COMPANY,INVOICE_COUNTRY_OF_ORIGIN:n.ONE_CLICK_SHIPMENT.INVOICE_COUNTRY_OF_ORIGIN,INVOICE_COUNTRY_OF_ULTIMATE_DESTINATION:n.ONE_CLICK_SHIPMENT.INVOICE_COUNTRY_OF_ULTIMATE_DESTINATION,PACKAGING_HEIGHT:n.ONE_CLICK_SHIPMENT.PACKAGING_HEIGHT,PACKAGING_LENGTH:n.ONE_CLICK_SHIPMENT.PACKAGING_LENGTH,PACKAGING_WIDTH:n.ONE_CLICK_SHIPMENT.PACKAGING_WIDTH,INVOICE_TERMS_OF_PAYMENT:n.ONE_CLICK_SHIPMENT.INVOICE_TERMS_OF_PAYMENT,DUTIES_AND_TAXES_BE_PAID_INVOICE:n.ONE_CLICK_SHIPMENT.DUTIES_AND_TAXES_BE_PAID_INVOICE,DUTIES_BE_PAID_SHIPMENT:n.ONE_CLICK_SHIPMENT.DUTIES_BE_PAID_SHIPMENT,DUTIES_AND_TAXES_BE_PAID_SHIPMENT:n.ONE_CLICK_SHIPMENT.DUTIES_AND_TAXES_BE_PAID_SHIPMENT,DUTIES_BE_PAID_INVOICE:n.ONE_CLICK_SHIPMENT.DUTIES_BE_PAID_INVOICE,FROM_EMAIL:n.ONE_CLICK_SHIPMENT.FROM_EMAIL,TO_EMAIL:n.ONE_CLICK_SHIPMENT.TO_EMAIL,ASSIGN_EMAIL_ADDRESS:n.ONE_CLICK_SHIPMENT.ASSIGN_EMAIL_ADDRESS,INVOICE_EXPORTER_CODE:n.ONE_CLICK_SHIPMENT.INVOICE_EXPORTER_CODE,INVOICE_EXPORTER_ID:n.ONE_CLICK_SHIPMENT.INVOICE_EXPORTER_ID,INSURED_VALUE:n.ONE_CLICK_SHIPMENT.INSURED_VALUE,INVOICE_ITEM_DESCRIPTION:n.ONE_CLICK_SHIPMENT.INVOICE_ITEM_DESCRIPTION,INVOICE_NAME:n.ONE_CLICK_SHIPMENT.INVOICE_NAME,INVOICE_NUMBER:n.ONE_CLICK_SHIPMENT.INVOICE_NUMBER,ITEM_DESCRIPTION:n.ONE_CLICK_SHIPMENT.ITEM_DESCRIPTION,INVOICE_ITEM_VALUE:n.ONE_CLICK_SHIPMENT.INVOICE_ITEM_VALUE,INVOICE_PERSON_JOB_TITLE:n.ONE_CLICK_SHIPMENT.INVOICE_PERSON_JOB_TITLE,FROM_NAME:n.ONE_CLICK_SHIPMENT.FROM_NAME,TO_NAME:n.ONE_CLICK_SHIPMENT.TO_NAME,ASSIGN_NAME:n.ONE_CLICK_SHIPMENT.ASSIGN_NAME,INVOICE_NAMED_PLACE_OF_DESTINATION:n.ONE_CLICK_SHIPMENT.INVOICE_NAMED_PLACE_OF_DESTINATION,INVOICE_OTHER_CHARGE_1:n.ONE_CLICK_SHIPMENT.INVOICE_OTHER_CHARGE_1,INVOICE_OTHER_CHARGE_2:n.ONE_CLICK_SHIPMENT.INVOICE_OTHER_CHARGE_2,INVOICE_OTHER_CHARGE_3:n.ONE_CLICK_SHIPMENT.INVOICE_OTHER_CHARGE_3,INVOICE_PACKAGE_MARKS:n.ONE_CLICK_SHIPMENT.INVOICE_PACKAGE_MARKS,PACKAGING_NAME:n.ONE_CLICK_SHIPMENT.PACKAGING_NAME,FROM_PHONE:n.ONE_CLICK_SHIPMENT.FROM_PHONE,TO_PHONE:n.ONE_CLICK_SHIPMENT.TO_PHONE,FROM_PHONE_COUNTRY_CODE:n.ONE_CLICK_SHIPMENT.FROM_PHONE_COUNTRY_CODE,TO_PHONE_COUNTRY_CODE:n.ONE_CLICK_SHIPMENT.TO_PHONE_COUNTRY_CODE,PICKUP_WEIGHT:n.ONE_CLICK_SHIPMENT.PICKUP_WEIGHT,INVOICE_REASON_OF_EXPORT:n.ONE_CLICK_SHIPMENT.INVOICE_REASON_OF_EXPORT,PACKAGING_QUANTITY:n.ONE_CLICK_SHIPMENT.PACKAGING_QUANTITY,INVOICE_ITEM_QUANTITY:n.ONE_CLICK_SHIPMENT.INVOICE_ITEM_QUANTITY,INVOICE_RECEIVER_REFERENCE:n.ONE_CLICK_SHIPMENT.INVOICE_RECEIVER_REFERENCE,SHIPMENT_DETAIL_REFERENCE:n.ONE_CLICK_SHIPMENT.SHIPMENT_DETAIL_REFERENCE,INVOICE_REMARKS:n.ONE_CLICK_SHIPMENT.INVOICE_REMARKS,INVOICE_EXPORT_COMMODITY_CODE:n.ONE_CLICK_SHIPMENT.INVOICE_EXPORT_COMMODITY_CODE,INVOICE_WEIGHT:n.ONE_CLICK_SHIPMENT.INVOICE_WEIGHT,PICKUP_SPECIAL_INSTRUCTIONS:n.ONE_CLICK_SHIPMENT.PICKUP_SPECIAL_INSTRUCTIONS,DECLARED_VALUE:n.ONE_CLICK_SHIPMENT.DECLARED_VALUE,TO_STREET_NUMBER:n.ONE_CLICK_SHIPMENT.TO_STREET_NUMBER,PAYMENT_TRANSPORTATION:n.ONE_CLICK_SHIPMENT.PAYMENT_TRANSPORTATION,INVOICE_TYPE_OF_EXPORT:n.ONE_CLICK_SHIPMENT.INVOICE_TYPE_OF_EXPORT,INVOICE_ULTIMATE_CONSIGNEE:n.ONE_CLICK_SHIPMENT.INVOICE_ULTIMATE_CONSIGNEE,INVOICE_ITEM_QUANTITY_UNIT:n.ONE_CLICK_SHIPMENT.INVOICE_ITEM_QUANTITY_UNIT,PACKAGING_WEIGHT:n.ONE_CLICK_SHIPMENT.PACKAGING_WEIGHT,FROM_ZIP:n.ONE_CLICK_SHIPMENT.FROM_ZIP,TO_ZIP:n.ONE_CLICK_SHIPMENT.TO_ZIP,SHIPMENT_DESCRIPTION:n.ONE_CLICK_SHIPMENT.SHIPMENT_DESCRIPTION,GST_INVOICE_NUMBER:n.ONE_CLICK_SHIPMENT.GST_INVOICE_NUMBER,GST_INVOICE_DATE:n.ONE_CLICK_SHIPMENT.GST_INVOICE_DATE,INVOICE_DATE:n.ONE_CLICK_SHIPMENT.INVOICE_DATE,EXPORT_SUPPLY_IGST_PAYMENT:n.ONE_CLICK_SHIPMENT.EXPORT_SUPPLY_IGST_PAYMENT,AGAINST_BOND_OR_UT:n.ONE_CLICK_SHIPMENT.AGAINST_BOND_OR_UT,TOTAL_IGST_PAID_INR:n.ONE_CLICK_SHIPMENT.TOTAL_IGST_PAID_INR,HSN_CODE:n.ONE_CLICK_SHIPMENT.HSN_CODE,REASON_FOR_TRANSPORTATION:n.ONE_CLICK_SHIPMENT.REASON_FOR_TRANSPORTATION,APPROX_DISTANCE_IN_KM:n.ONE_CLICK_SHIPMENT.APPROX_DISTANCE_IN_KM,RECIPIENT_GSTIN:n.ONE_CLICK_SHIPMENT.RECIPIENT_GSTIN,TRANSACTION_TYPE:n.ONE_CLICK_SHIPMENT.TRANSACTION_TYPE,DOCUMENT_TYPE:n.ONE_CLICK_SHIPMENT.DOCUMENT_TYPE,MODE_OF_TRANSPORT:n.ONE_CLICK_SHIPMENT.MODE_OF_TRANSPORT,TRUCK_NAME:n.ONE_CLICK_SHIPMENT.TRUCK_NAME,COMM_PROF_INVOICE_NO:n.ONE_CLICK_SHIPMENT.COMM_PROF_INVOICE_NO}[e]}return{getListOfFieldsToReenter:u,getTranslation:c,isOneClickShipmentAndGstDataEnabled:o}}i.$inject=["$q","configService","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="oneClickShipmentService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"oneClickShipmentCtrl",templateUrl:"one-click-shipment.html"})}function r(e,t,n,i,r){"ngInject";function o(){var t=r.model.fromContact.addressDetails.countryCode;n.isOneClickShipmentAndGstDataEnabled(t).then(function(r){var o=r[0],u=r[1];return e.all([n.getListOfFieldsToReenter(u,o,t),i.getDeclaredValueVisibility()])}).then(a)}function a(e){var i=e[0],r=e[1],o=s(i,r);l.warningMessage=o.map(function(e){var t=e.value;return n.getTranslation(t)}).join(", "),l.showWarning=!!t.getParamFromUrl(u["default"].IS_ONE_CLICK_SHIPMENT)||!!t.getParamFromUrl(u["default"].IS_GST_DATA_ENABLED),l.showWarning=!!l.warningMessage&&l.showWarning}function c(){l.showWarning=!1}function s(e,t){return t?e:e.filter(function(e){return e.value!==d})}var l=this,d="DECLARED_VALUE";Object.assign(l,{$onInit:o,dismissWarning:c})}i.$inject=["component"],r.$inject=["$q","pathService","oneClickShipmentService","declaredValueService","addressDetailsModel"],t.__esModule=!0,t["default"]=i,t.OneClickShipmentController=r;var o=n(1),u=function(e){return e&&e.__esModule?e:{"default":e}}(o);i.NG_NAME="ewfOneClickShipmentFields"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(t){return e.post(s,t).then(function(e){return e.data})["catch"](function(e){return i.handleActionError(e,t.ids)})}function o(e,i){var r=e.length?a(e):[t.getParamFromUrl(c["default"].SHIPMENT_ID)];return n.showDialog({resolve:{shipmentsIds:function(){function e(){return r}return e}(),isBackToHome:function(){function e(){return i}return e}()},templateUrl:"/shipment/decline-assigned-shipment-modal.html",controller:u["default"],controllerAs:"declineAssignedShipmentModalCtrl"}).result}function a(e){return angular.isArray(e)?e.map(function(e){return e.id||e.key}):angular.isString(e)?[e]:[]}var s="/api/mms/assigned/decline";return{declineShipments:r,showDeclineShipmentModal:o}}r.$inject=["$http","pathService","modalService","shipmentErrorHandlersService"],t.__esModule=!0,t["default"]=r;var o=n(2359),u=i(o),a=n(1),c=i(a);r.NG_NAME="declineAssignedShipmentModalService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(o){var a={ids:e,reason:u.reason};return r.declineShipments(a).then(function(e){n.isAuthorized()?(o.close(e),t&&i.redirectToHomeWithDeclineMsg()):i.redirectToLoginWithDeclineMsg()})["catch"](o.dismiss)}var u=this;Object.assign(u,{reason:"",declineShipment:o})}i.$inject=["shipmentsIds","isBackToHome","userService","navigationService","declineAssignedShipmentModalService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(t,n){var r=t.status,u=t.data,a=u&&(u.errors||[]),c={status:r,errors:a},s=a.some(function(e){return n.includes(e)});if(r===o["default"].UNPROCESSABLE_ENTITY&&s){var l=i(n);Object.assign(c,{failedIds:a,errors:[l]})}return e.reject(c)}function i(e){return e.length>1?t.MANAGE_SHIPMENTS.MANAGE_SHIPMENTS_UNABLE_TO_COMPLETE_OPERATION:t.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_UNABLE_TO_COMPLETE_OPERATION}function r(){return e.reject({errors:[t.MANAGE_SHIPMENTS.DOWNLOAD_SHIPMENT_ERROR]})}return{handleActionError:n,handleShipmentDownloadError:r}}i.$inject=["$q","Messages"],t.__esModule=!0,t["default"]=i;var r=n(6),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="shipmentErrorHandlersService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){s().then(function(t){Object.assign(e,{model:{additionalDocuments:u(),previewModel:o(t)},isInitialized:!0})})}function o(e){return{waybillDocument:a(r.DOCUMENT_TYPES.LABEL,e),archiveDocument:a(r.DOCUMENT_TYPES.ARCHIVE,e),invoiceDocument:a(r.DOCUMENT_TYPES.CUSTOMS_INVOICE,e),csbvInvoiceDocument:a(r.DOCUMENT_TYPES.CSBV_CUSTOMS_INVOICE,e),receiptDocument:a(r.DOCUMENT_TYPES.RECEIPT,e)}}function u(){return r.ADDITIONAL_DOCUMENT_TYPES.map(function(e){return n.createDocument(e,c(e),!1)})}function a(e,t){return n.createDocument(e,c(e),!0,t)}function c(e){return r.BULK_MANDATORY_DOCUMENT_TYPES.includes(e)}function s(){var n=[t.CI_KEYS.CI0189_DEFAULT_NO_OF_COPY_FOR_ARCHIVE_LABEL,t.CI_KEYS.CI0537_DEFAULT_NO_COPY_SHIPMENT_RECEIPT,t.CI_KEYS.CI0522_DEFAULT_NO_COPY_CUSTOMS_INVOICE];return e.all(n.map(function(e){return t.getSourceData(e)})).then(function(e){var t,n=e[0],i=e[1],o=e[2];return t={},t[r.DOCUMENT_TYPES.ARCHIVE]=n,t[r.DOCUMENT_TYPES.LABEL]=n,t[r.DOCUMENT_TYPES.RECEIPT]=i,t[r.DOCUMENT_TYPES.CUSTOMS_INVOICE]=o,t})}return{populateModel:i}}i.$inject=["$q","configService","documentManagementService"],t.__esModule=!0,t["default"]=i;var r=n(64);i.NG_NAME="bulkPrintDocumentsService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(e){return function(n){var r={method:"POST",url:E,data:{ids:n,reportType:e},responseType:"arraybuffer"};return t.download(r).then(function(){return n})["catch"](i.handleShipmentDownloadError)}}function u(e,t){var n=e.map(function(e){return r.getShipmentVersionsPayload(e)});return c("POST",S,{bothWayShipmentVersionsSet:n},t)}function a(e,t){var n=[r.getShipmentVersionsPayload(t)];return c("POST",C,{bothWayShipmentVersionsSet:n},[e])}function c(t,n,r,o){return e({method:t,url:n,data:r}).then(s)["catch"](function(e){return i.handleActionError(e,o)})}function s(e){return e.data}function l(e){return c("POST",h,{shipmentExternalIds:e},e)}function d(e){return{shipmentsCount:e&&e.length}}function f(e){return c("POST",g,e,e.ids).then(d)}function p(e,t){return n.declineShipments({ids:e,reason:t}).then(d)}function m(e){return c("GET","/api/shipment/"+e+"/edit/options",null,[e]).then(_)}function _(e){var t=e||{},n=t.copyShipment;return{shouldShowDefaultMessage:n===undefined||n,cancelledItems:t.cancelledItems}}var g="/api/mms/assigned/cancel",E="/api/mms/shipment/download",S="/api/mms/shipment/approve",C="/api/mms/shipment/complete-approved",h="/api/shipment/manifest";return{makeHidden:function(){function e(e){return c("POST","/api/mms/hide",{shipmentIds:e},e)}return e}(),makeUnhidden:function(){function e(e){return c("POST","/api/mms/unhide",{shipmentIds:e},e)}return e}(),removeFromFavorites:function(){function e(e){return c("POST","/api/mms/favorites/remove",{ids:e},e)}return e}(),markMultipleAsFavorite:function(){function e(e){return c("PUT","/api/mms/favorites",{shipmentIds:e},e)}return e}(),markSingleAsFavorite:function(){function e(e,t){return c("PUT","/api/shipment/"+e+"/favorite",{shipmentName:t},[e])}return e}(),cancelShipment:function(){function e(e){return c("POST","/api/shipment/"+e+"/cancel",{},[e])}return e}(),editShipment:function(){function e(e){return c("POST","/api/shipment/"+e+"/edit",{},[e])}return e}(),manifestShipmentsManually:function(){function e(e){return c("POST","/api/mms/shipment/manifest/manual",{ids:e},e)}return e}(),rejectShipments:function(){function e(e,t){return c("POST","/api/mms/shipment/reject",{ids:e,reason:t},e)}return e}(),downloadShipments:o("SHIPMENT"),downloadGstCsb4Data:o("GST_CSB_IV"),downloadGstCsb5Data:o("GST_CSB_V"),downloadGstWaybillData:o("GST_WAYBILL_DATA"),approveShipments:u,completeApproved:a,manifestShipments:l,cancelAssignments:f,declineAssignments:p,getShipmentEditOptions:m}}i.$inject=["$http","downloadService","declineAssignedShipmentModalService","shipmentErrorHandlersService","shipmentApprovementVersionService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentActionsService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e,r,o){return t.fetchConsolidatedThermalDocuments(e,r).then(function(e){return n.whenSilentlyPrinted(o,e)}).then(function(){return i.manifestShipments(e)})}function o(t,n,r){return e.printShipmentsDocuments(t,n,r).then(function(){return i.manifestShipments(t)})}return{printShipmentsDocuments:o,printThermalShipmentsDocuments:r}}i.$inject=["printOutputService","shipmentPrintDataService","silentPrintService","shipmentActionsService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentActionsPrintService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r,o,a,s,l,d,f){"ngInject";function p(e){return angular.isArray(e)?e.map(function(e){return e.id||e.key}):angular.isString(e)&&[e]}function m(e){return r.makeFavorite(e)}function _(e){return r.makeNotFavorite(e)}function g(e){return l.showDeclineAssignmentsModal(e)}function E(e){var t=p(e);return l.showCancelAssignmentsModal().then(function(){return n.cancelAssignments({ids:t})})}function S(e){return l.showCancelShipmentModal().then(function(){return n.cancelShipment(e)})}function C(e,t){return s.copyShipmentAction(e,t)}function h(t,n){return N(n)?I(t).then(A):e.when(!0)}function I(e){return n.getShipmentEditOptions(e)}function A(e){var t=e.shouldShowDefaultMessage,n=e.cancelledItems;return!t&&!n||l.showEditShipmentModal(n)}function v(e,t){var r=t.associatedShipmentType,o=t.toCountryCode,u=t.packagingType;return Y(t),h(e,t).then(function(){return n.editShipment(e)}).then(function(e){var t=e.shipmentId;if(r===Q)return void i.redirectToShipmentEditPage(t);P(t,o,u)})}function N(e){var t=[c["default"].READY_TO_PRINT,c["default"].SHIPPING_TODAY,c["default"].FUTURE_SHIPMENT];return e.paymentMethod!==u["default"].ONLINE_PAYMENT&&t.includes(e.logicalStatus)}function T(e,t){i.redirectToCreateShipment(Object.assign({shipmentId:e},t))}function M(e,t){var n=t?[t]:e,r=n.map(function(e){var t=e.airWayBill,n=e.waybillNumber;return"id="+(y(t)||y(n))}).join("&");i.redirectToTrackingResultsPage(r)}function y(e){var t=new RegExp('|',"gi");return e&&e.replace(t,"")}function D(e){var t=p(e);return n.makeHidden(t)}function O(e){var t=p(e);return n.makeUnhidden(t)}function P(e,t,n){return o.createReturnShipment(e,t,n)}function b(e){var t=p(e);return n.manifestShipmentsManually(t)}function R(e){var t=p(e);return l.showDelimitersModal().then(function(){return n.downloadShipments(t)})}function L(e,t){return d.downloadGstData(e,t)}function G(e,t){var i=t?[t]:e,r=p(i);return n.approveShipments(i,r)}function U(t,n){return(F(n)?l.showSendPickupRequestConfirmationModal():e.when()).then(function(){return k(t,n)})}function F(e){return e.logicalStatus===c["default"].PENDING_ADMIN_APPROVAL}function w(e){var n=e.shippingDate;return t.isShippingDateHasPassed(n)}function k(e,t){if(w(t))return $(e,t);var r=t.returnShipment&&t.returnShipment.externalId||null,o={shipmentId:e,returnShipmentId:r};return n.completeApproved(e,t).then(function(){return i.redirectToShipmentPrint(o)})}function j(e,t){return U(e,t)}function V(e,t){return U(e,t)}function B(e){var t=p(e),i={description:""};return l.showRejectShipmentsModal(i).then(function(){return n.rejectShipments(t,i.description)})}function $(e,t){return l.showCompleteApprovedOverdueModal({editShipment:function(){function e(){return v}return e}(),cancelShipment:function(){function e(){return n.cancelShipment}return e}(),shipmentId:function(){function t(){return e}return t}(),shipmentData:function(){function e(){return t}return e}()})}function x(t){return Y(arguments.length<=1||arguments[1]===undefined?{}:arguments[1]),i.redirectToManageShipmentDetails(t),e.when(!0)}function H(t,n){return Y(n),T(t,{proceedToAssign:!0}),e.when(!0)}function Y(e){var t=e.hasAssignment,n=e.groupId;t&&n&&a.setCurrentGroup(n)}function K(e,t){return t&&Y(t),l.showPrintDocumentsModal(e,t)}function W(e,t){t&&Y(t);var n=t||{},i=n.fromEmail,r=n.labelPrintingOptions,o=n.fromCountryCode,u=n.logicalStatus,a={email:i,address:{countryCode:o}},c={customerData:a,labelPrintingOptionsData:r,externalId:e};return f.openResendQRCodeDialog(c,u)}function q(e){var t=e&&1===e.length?e[0]:{},n=t.fromEmail,i=t.labelPrintingOptions,r={email:n};return f.openBulkResendQRCodeDialog(r,i,z(e))}function z(e){return angular.isArray(e)?e.map(function(e){return{externalId:e.id||e.key,fromCountryCode:e.fromCountryCode,shipmentStatus:e.logicalStatus}}):undefined}function X(e){return l.showPrintShipmentsDocumentsModal(e)}var Q="MASTER";return{showDeclineAssignmentsModal:g,showCancelAssignmentsModal:E,showCancelShipmentModal:S,trackShipments:M,copyShipment:C,editShipment:v,makeFavorite:m,makeNotFavorite:_,makeHidden:D,makeUnhidden:O,createReturnLabel:P,manifestShipmentsManually:b,downloadShipments:R,downloadGstData:L,approveShipments:G,rejectShipments:B,shipmentsOverviewCompleteApproved:j,shipmentsDetailsCompleteApproved:V,reviewShipment:x,assignShipment:H,printDocuments:K,printShipmentsDocuments:X,openResendQRCodeDialog:W,openBulkResendQRCodeDialog:q}}r.$inject=["$q","dateTimeService","shipmentActionsService","navigationService","shipmentActionFavoriteService","returnLabelCreateReturnShipmentService","groupSwitcherService","shipmentActionCopyService","shipmentActionsModalService","gstActionsHandlersService","resendQRCodeService"],t.__esModule=!0,t["default"]=r;var o=n(5),u=i(o),a=n(12),c=i(a);r.NG_NAME="shipmentActionsHandlersService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i,r){"ngInject";function o(n){return t.showDialog({scope:Object.assign(e.$new(),{shipmentItem:n}),templateUrl:"/manage-shipments/create-favorite-popup.html"}).result}function a(e){var n=1===e.length?"/manage-shipments/remove-single-favorite-confirmation-popup.html":"/manage-shipments/remove-multiple-favorites-confirmation-popup.html";return t.showDialog({templateUrl:n}).result}function s(e){return i.showDeclineShipmentModal(e)}function l(){return t.showDialog({templateUrl:"/manage-shipments/cancel-assignment-popup.html"}).result}function d(){return t.showDialog({templateUrl:"/manage-shipments/cancel-shipment-popup.html"}).result}function f(){return t.showMessageDialog({message:r.MANAGE_SHIPMENTS.CREATE_NEW_BRAZIL_SHIPMENT,okButtonLabel:r.COMMON.COMMON_BUTTON_OK})}function p(n){return t.showDialog({templateUrl:"/manage-shipments/edit-shipment-popup.html",scope:Object.assign(e.$new(),{cancelledItems:n})}).result}function m(){return n.showDelimitersModal()}function _(){return t.showMessageDialog({message:r.MANAGE_SHIPMENTS.SHIPMENT_DETAILS_PICKUP_REQUEST_MSG_CONFIRMATION,okButtonLabel:r.COMMON.COMMON_BUTTON_OK})}function g(n){return t.showDialog({scope:Object.assign(e.$new(),{reason:n}),templateUrl:"/manage-shipments/reject-shipment-approval-popup-template.html"}).result}function E(e){return t.showDialog({templateUrl:"/manage-shipments/shipment-overdue-popup-template.html",controller:u["default"],controllerAs:"shipmentOverdueCtrl",resolve:e}).result}function S(n,i){return t.showDialog({scope:Object.assign(e.$new(),{shipmentId:n,shipmentData:i}),templateUrl:"reprint-modal.html"}).result}function C(e){return t.showDialog({templateUrl:"/bulk-print/bulk-print-modal.html",controller:c["default"],controllerAs:"bulkPrintCtrl",resolve:{shipments:function(){function t(){return e}return t}()}}).result}return{showCreateFavoriteModal:o,showRemoveFavoritesModal:a,showDeclineAssignmentsModal:s,showCancelAssignmentsModal:l,showCancelShipmentModal:d,showCreateNewBrazilShipmentModal:f,showEditShipmentModal:p,showDelimitersModal:m,showSendPickupRequestConfirmationModal:_,showRejectShipmentsModal:g,showCompleteApprovedOverdueModal:E,showPrintDocumentsModal:S,showPrintShipmentsDocumentsModal:C}}r.$inject=["$rootScope","modalService","delimitersModalService","declineAssignedShipmentModalService","Messages"],t.__esModule=!0,t["default"]=r;var o=n(2366),u=i(o),a=n(2367),c=i(a);r.NG_NAME="shipmentActionsModalService"},function(e,t,n){"use strict";function i(e,t,n,i,r){"ngInject";function o(t){return e(n,i)["finally"](t.close)}function u(e){return t(n)["finally"](e.close)}function a(){return r.isEndUser()}var c=this;Object.assign(c,{edit:o,cancel:u,isEndUser:a})}i.$inject=["editShipment","cancelShipment","shipmentId","shipmentData","userService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t,n,i,o,u){"ngInject";function a(e){if(E.documentsList){var i=n.getSelectedDocumentsInfo(E.documentsList);t.printShipmentsDocuments(S,i,E.downloadInsteadOfPrint).then(function(){return e.close()})}}function c(e){E.documentsList&&s().then(function(){return e.close()})}function s(){var e=n.getSelectedWaybillDocumentsInfo(E.documentsList);return C.isEplOrZplFormat?t.printThermalShipmentsDocuments(S,e,C):t.printShipmentsDocuments(S,e,E.downloadInsteadOfPrint)}function l(){return!!E.documentsList&&(m()&&E.documentsList.find(function(e){return r.WAYBILL_DOCUMENT_TYPES.includes(e.documentType)}))}function d(){return!E.documentsList||!n.isAnyDocumentCheckedInList(E.documentsList)}function f(){if(!E.documentsList)return!0;var e=E.documentsList.filter(function(e){return!e.isHidden});return!n.isWaybillCheckedInList(e)}function p(){return!E.documentsList||!n.isAnyDocumentCheckedExceptOfWaybillInList(E.documentsList)}function m(){return C.isThermalPrinter}function _(){return!u.javaEnabled()&&m()}function g(){return u.getClientHost()}var E=this,S=void 0,C={};Object.assign(E,{previewAttrs:{},printSelectedDocuments:a,printWaybillDocuments:c,isThermalPrinter:m,isBulkWaybillButtonVisible:l,isBulkAllDocumentsDisabled:d,isBulkWaybillDisabled:f,isBulkOtherDocumentsDisabled:p,isSilentPrintProgramNeeded:_,getClientHost:g}),function(){S=e.map(function(e){return e.key}),i.getDownloadInsteadOfPrintStatus().then(function(e){return E.downloadInsteadOfPrint=e}),o.preloadPrinterSettings().then(function(e){return C=e}),i.getPrintsMetadata(S).then(function(e){var t=e.documents;return E.documentsList=t})}()}i.$inject=["shipments","shipmentActionsPrintService","documentManagementService","shipmentPrintDataService","printerSettingsCacheService","silentPrintService"],t.__esModule=!0,t["default"]=i;var r=n(64)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n,i){"ngInject";function r(n,i){if(o(i))return e.showCreateNewBrazilShipmentModal();var r=i&&i.fromCountryCode;return t.isOneClickShipmentAndGstDataEnabled(r).then(function(e){var t=e[0],i=e[1];t||i?a(n,t,i):s(n)})}function o(e){return e&&e.fromCountryCode===l["default"].BRAZIL&&e.packagingType===c["default"].PACKAGE&&e.cteOption!==u["default"].MANUAL_NON_DOC_EXEMPT&&i.getUserCountry()===l["default"].BRAZIL}function a(e,t,i){n.redirectToCreateShipment({copiedShipmentId:e,isOneClickShipment:t,isGstDataEnabled:i})}function s(e){n.redirectToCreateShipment({copiedShipmentId:e})}return{copyShipmentAction:r}}r.$inject=["shipmentActionsModalService","oneClickShipmentService","navigationService","userService"],t.__esModule=!0,t["default"]=r;var o=n(61),u=i(o),a=n(9),c=i(a),s=n(4),l=i(s);r.NG_NAME="shipmentActionCopyService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(e){return angular.isArray(e)?e.map(function(e){return e.id||e.key}):angular.isString(e)&&[e]}function r(n){return e.getSourceData(e.CI_KEYS.CI0059_SHIPMENT_LOG_PURGE_PERIOD).then(function(e){var t=new Date;t.setUTCHours(0,0,0,0);var i=o(e,t);return u(n,i)}).then(function(e){return t.removeFromFavorites(i(e))})}function o(e,t){return function(n){var i=n.createdAt,r=n.shippingDate,o=new Date(r||i);o.setUTCHours(0,0,0,0);var u=o.getTime(),a=t.setMonth(t.getMonth()-e);return isNaN(u)||u>a}}function u(e,t){var i=e.filter(t);return e.length===i.length?e:n.showRemoveFavoritesModal(e).then(function(t){return t?i:e})}function a(e){var n=i(e);return n.length>1?t.markMultipleAsFavorite(n):c(n[0])}function c(e){var i={favoriteName:""};return n.showCreateFavoriteModal(i).then(function(){return t.markSingleAsFavorite(e,i.favoriteName)})}return{makeNotFavorite:r,makeFavorite:a}}i.$inject=["configService","shipmentActionsService","shipmentActionsModalService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="shipmentActionFavoriteService"},function(e,t,n){"use strict";function i(e,t,n){"ngInject";function i(n,i){var o=a(n),c=r(n,o,i);return u(n,i)&&c.push(t.downloadGstWaybillData(o)),e.all(c)}function r(e,i,r){if(r&&r.shipmentDetails)return o(r,i);var u=e.filter(function(e){return n.isCsbvShipment(e.typeCategory)});return e.length===u.length?[t.downloadGstCsb5Data(i)]:0===u.length?[t.downloadGstCsb4Data(i)]:[t.downloadGstCsb5Data(i),t.downloadGstCsb4Data(i)]}function o(e,i){return n.isCsbvShipment(e.shipmentDetails.typeCategory)?[t.downloadGstCsb5Data(i)]:[t.downloadGstCsb4Data(i)]}function u(e,t){return t?!!t.gstData.gstWaybillData:e.some(function(e){return e.hasGstWaybillData})}function a(e){return angular.isArray(e)?e.map(function(e){return e.id||e.key}):angular.isString(e)&&[e]}return{downloadGstData:i}}i.$inject=["$q","shipmentActionsService","indiaFlowService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="gstActionsHandlersService"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"optional-services-synopsis.html",controller:r,controllerAs:"optionalServicesSynopsisCtrl",bindings:{optionalServices:"<"+o,dangerousGoods:"<"+o+"DangerousGoods",dangerousGoodsSelected:"<"+o+"DangerousGoodsSelected"}})}function r(){function e(){n.optionalServicesSelected=n.optionalServices.filter(function(e){return e.selected})}function t(){return!n.optionalServicesSelected.length&&!n.dangerousGoodsSelected}var n=this;Object.assign(n,{$doCheck:e,noServicesSelected:t,optionalServicesSelected:[]})}i.$inject=["component"],t.__esModule=!0,t["default"]=i,t.OptionalServicesSynopsisController=r;var o=i.NG_NAME="ewfOptionalServicesSynopsis"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"product-services.html",controller:r,controllerAs:"productServicesCtrl",bindings:{model:"<"+o,shipmentProduct:"1?"s":"")}function m(e,i,r){var o=i.description,a=i.weightDetails;if(n.isDryIce(e)&&a){var c=[];a.forEach(function(e){var n=e.weight,i=e.numberOfPackages,r=A.somParams.userProfileCountrySom===u["default"].IMPERIAL?t.toMetricWeight(n.value,A.somParams):n.value,o=r>0?r.toFixed(N):"";o&&c.push(i+" x "+o+" Kg")});g(r,o+", Net "+c.join(", "))}}function _(e,t,i){var r=t.description,o=t.unNumberDetails;if(n.isExceptedQuantities(e)&&o){g(i,r+", "+o.map(function(e){var t=e.unNumber;return p(e.numberOfPackages)+" "+t}).join(", "))}}function g(e,t){e.includes(t)||e.push(t)}function E(){var e=A.optionalServicesInfo.dangerousGoods[0].price;return e&&e.currency}function S(){A.optionalServicesInfo.dangerousGoodsSelected||A.optionalServicesInfo.dangerousGoods.forEach(C)}function C(e){e.selected=!1,e.subcategories.forEach(function(e){return e.selected=!1})}function h(){return A.optionalServicesInfo.dangerousGoodsSelected&&!A.mailingList}function I(){return A.optionalServicesInfo.dangerousGoods.some(function(e){return e.selected})}var A=this,v={},N=2,T=void 0;Object.assign(A,{$onInit:i,$doCheck:r,calcAmount:c,getCurrency:E,handleDangerousGoodsSelection:S,isDangerousGoodsPriceVisible:h,isAnyDangerousGoodSelected:I})}i.$inject=["component"],r.$inject=["shipmentTypeService","uomConverter","productServicesService"],t.__esModule=!0,t["default"]=i,t.DangerousGoodsController=r;var o=n(39),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfDangerousGoods"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"dangerous-goods-item-layout.html",controller:r,controllerAs:"dgItemCtrl",bindings:{dangerousGoodsItem:"<"+o,userProfileCountrySom:"<"+o+"UserProfileCountrySom",onSelection:"&"+o+"OnSelection",numberOfPieces:"<"+o+"NumberOfPieces"}})}function r(e){"ngInject";function t(){var e,t=T.dangerousGoodsItem.subcategories.filter(function(e){return e.selected});(e=T.subcategories).push.apply(e,angular.copy(t))||c(),n(!0)}function n(e){T.dangerousGoodsItem.subcategories.forEach(function(t){var n=T.subcategories.find(function(e){return e.contentId===t.contentId});t.selected=!!n,i(n,t),o(n,t,e),a(n,t),r(n,t)}),T.dangerousGoodsItem.isSubcategoriesInitialized=!0}function i(e,t){var n=T.subcategories[0];1===T.dangerousGoodsItem.subcategories.length&&!e&&n&&(n.contentId=t.contentId)}function r(t,n){p()||e.isDryIce(T.dangerousGoodsItem)||!t||(n.numberOfPackages=t.numberOfPackages)}function o(t,n,i){if(e.isDryIce(T.dangerousGoodsItem)){var r=t||T.subcategories[0];n.weightDetails=i?u(r):r.weightDetails,r.weightDetails=angular.copy(n.weightDetails)}}function u(t){var n=t.weightDetails.length&&t.weightDetails[0].weight.unit||e.getDefaultWeightUnit(T.userProfileCountrySom);return t.weightDetails.length===T.numberOfPieces?t.weightDetails:Array(T.numberOfPieces).fill().map(function(){return{weight:{unit:n},numberOfPackages:M}})}function a(t,n){if(e.isExceptedQuantities(T.dangerousGoodsItem)){var i=t||T.subcategories[0];n.unNumberDetails=i.unNumberDetails,i.unNumberDetails=angular.copy(n.unNumberDetails)}}function c(){var t=e.createEmptySubcategory(T.dangerousGoodsItem,T.userProfileCountrySom);T.subcategories.push(t)}function s(e){T.subcategories.splice(e,1),n()}function l(e){return T.dangerousGoodsItem.subcategories.filter(function(t){return!t.selected||t.contentId===e})}function d(){return T.dangerousGoodsItem.selected&&e.isDryIce(T.dangerousGoodsItem)}function f(){return T.dangerousGoodsItem.selected&&p()}function p(){return e.isExceptedQuantities(T.dangerousGoodsItem)}function m(e){e.push({unNumber:y,numberOfPackages:M})}function _(e){var t=e[0].weight.unit;e.push({weight:{unit:t},numberOfPackages:M})}function g(e,t){e.splice(t,1),n()}function E(e,t){e.splice(t,1),n()}function S(){return T.subcategories.length1}function h(){T.dangerousGoodsItem.selected&&(T.onSelection({service:T.dangerousGoodsItem}),n(),I())}function I(){p()&&T.subcategories[0].unNumberDetails.forEach(function(e){e.unNumber=e.unNumber||y})}function A(){return!f()&&!d()&&T.dangerousGoodsItem.selected}function v(){return!T.dangerousGoodsItem.selected||N()}function N(){return T.dangerousGoodsItem.selected&&1===T.dangerousGoodsItem.subcategories.length}var T=this,M=1,y="UN";Object.assign(T,{subcategories:[],$onInit:t,actualizeSubcategories:n,addSubcategory:c,addUnNumber:m,addWeight:_,removeSubcategory:s,removeUnNumber:g,removeWeight:E,getFilteredOptions:l,isWeightVisible:d,isUnNumberVisible:f,isAddButtonVisible:S,isRemoveButtonVisible:C,handleSelectionChange:h,isNumberOfPackagesVisible:A,isSelectionDisabled:v,isSelectionHasOneSubcategory:N})}i.$inject=["component"],r.$inject=["productServicesService"],t.__esModule=!0,t["default"]=i,t.DangerousGoodsItemController=r;var o=i.NG_NAME="ewfDangerousGoodsItem"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"cash-on-delivery.html",controller:r,controllerAs:"cashOnDeliveryCtrl",bindings:{service:"="+o,cashOnDeliveryPaymentInfo:"="+o+"CashOnDeliveryPaymentInfo",fromCountryCode:"<"+o+"FromCountryCode",onSelection:"&"+o+"OnSelection"}})}function r(e){"ngInject";function t(){c.cashOnDeliveryPaymentInfo=c.cashOnDeliveryPaymentInfo||{},e.getCashOnDeliveryPaymentTypes(c.fromCountryCode).then(function(e){c.paymentTypes=n(e),c.selectedPaymentType=a(c.paymentTypes)||i(c.paymentTypes),r()})}function n(e){return e.filter(function(e){return e.enabled})}function i(e){return e.find(function(e){return e["default"]})||e[0]}function r(){c.cashOnDeliveryPaymentInfo.paymentTypeCode=o(c.selectedPaymentType.paymentTypeCode),c.cashOnDeliveryPaymentInfo.currency=u(c.selectedPaymentType.currencyCode)}function o(e){return e?e.value:""}function u(e){return e?e.value.value:""}function a(e){return e.find(function(e){return e.paymentTypeCode.value===c.cashOnDeliveryPaymentInfo.paymentTypeCode})}var c=this;Object.assign(c,{paymentTypes:[],selectedPaymentType:{},$onInit:t,onPaymentTypeSelection:r})}i.$inject=["component"],r.$inject=["productServicesService"],t.__esModule=!0,t["default"]=i,t.CashOnDeliveryController=r;var o=i.NG_NAME="ewfCashOnDelivery"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"cash-on-delivery-item-layout.html",controller:r,controllerAs:"cashOnDeliveryItemCtrl",bindings:{cashOnDeliveryPaymentInfo:"<"+o,fromCountryCode:"<"+o+"FromCountryCode",label:"<"+o+"Label"}})}function r(e){"ngInject";function t(){r.cashOnDeliveryPaymentInfo&&e.getCashOnDeliveryPaymentTypes(r.fromCountryCode).then(function(e){var t=n(e);r.item=t&&i(t)})}function n(e){return e.find(function(e){return e.paymentTypeCode.value===r.cashOnDeliveryPaymentInfo.paymentTypeCode})}function i(e){var t=e.paymentType,n=e.currencyCode;return{amount:r.cashOnDeliveryPaymentInfo.amount,currencyNlsKey:n.value.value,paymentTypeNlsKey:t.nls}}var r=this;Object.assign(r,{item:null,$onInit:t})}i.$inject=["component"],r.$inject=["productServicesService"],t.__esModule=!0,t["default"]=i,t.CashOnDeliveryItemController=r;var o=i.NG_NAME="ewfCashOnDeliveryItem"},function(e,t,n){"use strict";function i(){function e(e,t,n,i){function r(t,r){i[t]=e.$eval(n[r]),e.$watch(function(){return e.$eval(n[r])},function(e){i[t]=e,i.onLabellessOptionsChange(t)},!0)}var o={labellessModel:""+u,pickupModel:u+"PickupModel",addressDetailsModel:u+"AddressDetailsModel",shipmentTypeModel:u+"ShipmentTypeModel",shipmentProductsModel:u+"ShipmentProductsModel",optionalServicesModel:u+"OptionalServicesModel",totalNumberOfPieces:u+"TotalNumberOfPieces",isTransportationPaidWithCash:u+"IsTransportationPaidWithCash",isPaperless:u+"IsPaperless"};Object.keys(o).forEach(function(e){return r(e,o[e])})}return{restrict:"A",controller:o["default"],controllerAs:"labellessStepCtrl",link:e}}t.__esModule=!0,t["default"]=i;var r=n(2382),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=i.NG_NAME="ewfLabellessStep"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(){i().then(function(e){E.isLabellessStepAvailable=f(e)})}function i(){var t=c()||E.pickupModel.isLabellessAllowedForRpa||E.pickupModel.isDropOffAtServicePoint();return t?(a(),e.when(t)):E.labellessModel.isLabellessPossibleForAdvancedShipment?o().then(function(e){var t=e[0],n=e[1];return E.isLabellessFullyAllowed=t,t&&r.LABELLESS_DROP_OFF_OPTIONS.includes(n)}):e.when(!1)}function o(){var e=E.addressDetailsModel.model.fromContact;return t.isLabellessAllowed({shipperEmail:e.email,shippingDate:E.shipmentProductsModel.shippingDate,fromCountry:E.addressDetailsModel.getShipmentCountry(),fromCity:e.addressDetails.city,fromAddress:e.addressDetails.addrLine1,totalNumberOfPieces:E.totalNumberOfPieces,shipmentProduct:E.shipmentProductsModel.product,isDutiable:E.shipmentTypeModel.isDutiable,isPaperless:E.isPaperless,isCashPayment:E.isTransportationPaidWithCash,optionalServices:E.optionalServicesModel})}function a(){o().then(function(e){var t=e[0];E.isLabellessFullyAllowed=t})}function c(){var e=E.addressDetailsModel.getShipmentCountry();return E.pickupModel.isPickupStepLabellessAllowed&&(t.isLabellessPickup(E.pickupModel,e)||t.isLabellessDropOff(E.pickupModel)||t.isLabellessShipperWillSchedule(E.pickupModel,e))}function s(){return E.labellessModel.isEmailChecked&&!E.labellessModel.isSMSTextChecked}function l(){return!E.labellessModel.isEmailChecked&&E.labellessModel.isSMSTextChecked}function d(){return E.labellessModel.isEmailChecked&&E.labellessModel.isSMSTextChecked}function f(e){E.labellessModel.isLabelPrintingOptionsAvailable=e;var t=_();return e&&t?(E.labellessModel.printingType=t,E.labellessModel.email=E.addressDetailsModel.model.fromContact.email,E.labellessModel.isEmailChecked=!0,g(t),!1):e}function p(e){m(e)||n()}function m(e){return!["shipmentProductsModel","addressDetailsModel","totalNumberOfPieces","shipmentTypeModel","isPaperless","isTransportationPaidWithCash","optionalServicesModel","pickupModel"].includes(e)}function _(){var e=E.addressDetailsModel.getShipmentCountry(),n=t.isLabellessShipperWillSchedule(E.pickupModel,e),i=t.isShipmentImport(e);return n&&u["default"].SHIPPER_WILL_PRINT||i&&u["default"].GET_QR_CODE}function g(e){e===u["default"].GET_QR_CODE&&(E.labellessModel.isSMSTextChecked=!1)}var E=this;Object.assign(E,{isLabellessStepAvailable:!1,isLabellessFullyAllowed:!1,isSynopsisEmailLabelVisible:s,isSynopsisSmsLabelVisible:l,isSynopsisBothContactLabelsVisible:d,onLabellessOptionsChange:p})}i.$inject=["$q","labellessService"],t.__esModule=!0,t["default"]=i;var r=n(109),o=n(110),u=function(e){return e&&e.__esModule?e:{"default":e}}(o)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({templateUrl:"components/shipment/label-printing-options.html",controller:o,controllerAs:"labelPrintingOptionsCtrl",bindings:{labellessModel:"<"+l,addressDetailsModel:"<"+l+"AddressDetailsModel",paymentModel:"<"+l+"PaymentModel",packageDetailsModel:"<"+l+"PackageDetailsModel",pickupRequired:"<"+l+"PickupRequired",paymentOption:"<"+l+"PaymentOption",isDropOffAtServicePoint:"<"+l+"IsDropOffAtServicePoint",isLabellessFullyAllowed:"<"+l+"IsLabellessFullyAllowed"}})}function o(e,t,n,i){"ngInject";function r(){E.labellessModel.labelPrintingDefaultsApplied||(o(),u(),E.labellessModel.labelPrintingDefaultsApplied=!0,g())}function o(){e.isAuthorized()&&!E.labellessModel.selectedServicePoint&&n.getLabelPrintingOptionsDefaults().then(function(e){var t=e[0].servicePointId;e[1].defaultLabelless&&d(),t&&(E.labellessModel.selectedServicePoint={servicePointId:t})})}function u(){var e=E.addressDetailsModel.getShipperAddress(),t=e.email,n=e.phoneDetails;E.labellessModel.email=E.labellessModel.email||t,E.labellessModel.phoneDetails=E.labellessModel.phoneDetails&&E.labellessModel.phoneDetails.number?E.labellessModel.phoneDetails:c(n)}function c(e){var t=e&&[s["default"].OFFICE,s["default"].FAX].includes(e.phoneType),n=angular.copy(e);return t&&(delete n.phoneType,n.phone=""),n}function l(e){var t=e.pickupRequired,n=e.paymentOption,i=e.isLabellessFullyAllowed;t&&E.labellessModel.isNotMyPrinterTypeSelected()&&d(),n&&_(),i&&g()}function d(){E.labellessModel.printingType=E.pickupRequired?a["default"].GET_QR_CODE:a["default"].AT_SERVICE_POINT}function f(){E.labellessModel.pickupRequired=E.pickupRequired}function p(){return E.labellessModel.selectedServicePoint&&!E.labellessModel.selectedServicePoint.isLabellessServicePoint&&E.labellessModel.isPrinterTypeChecked(a["default"].ON_MY_PRINTER)}function m(){var e={ppcLimit:E.labelPrintingCapabilities,isRadiusLimited:!0};t.openLocatorPopup(E.addressDetailsModel.model.fromContact.addressDetails,e).then(function(e){var t=e.servicePoint,n=e.servicePointSelectionError;E.labellessModel.selectedServicePoint=t,E.isLocationSearchError=n})}function _(){i.getLabellessCapabilities(E.labellessModel,E.paymentModel).then(function(e){E.labelPrintingCapabilities=e})}function g(){E.isDropOffAtServicePoint&&!E.isLabellessFullyAllowed&&(E.labellessModel.printingType=a["default"].ON_MY_PRINTER)}var E=this;Object.assign(E,{$onInit:r,$onChanges:l,$doCheck:f,isOnMyPrinterOnlySelected:p,showLocatorPopup:m})}r.$inject=["component"],o.$inject=["userService","locatorPopupService","labelPrintingOptionsDefaultsService","labellessCapabilitiesService"],t.__esModule=!0,t["default"]=r,t.LabelPrintingOptionsController=o;var u=n(110),a=i(u),c=n(96),s=i(c),l=r.NG_NAME="ewfLabelPrintingOptions"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"labelPrintingOptionsSelectorCtrl",templateUrl:"components/shipment/label-printing-options-selector.html",bindings:{labellessModel:"<"+o,paymentModel:"<"+o+"PaymentModel",isOnMyPrinterOnlySelected:"<"+o+"IsOnMyPrinterOnlySelected",pickupRequired:"<"+o+"PickupRequired",isLabellessFullyAllowed:"<"+o+"IsLabellessFullyAllowed",labelPrintingCapabilities:"="+o+"Capabilities"}})}function r(e){"ngInject";function t(){e.getLabellessCapabilities(i.labellessModel,i.paymentModel).then(function(e){i.labelPrintingCapabilities=e})}function n(){return i.isOnMyPrinterOnlySelected||!i.isLabellessFullyAllowed}var i=this;Object.assign(i,{onPrintingTypeChange:t,isAtServicePointDisabled:n})}i.$inject=["component"],r.$inject=["labellessCapabilitiesService"],t.__esModule=!0,t["default"]=i,t.LabelPrintingOptionsSelectorController=r;var o=i.NG_NAME="ewfLabelPrintingOptionsSelector"},function(e,t,n){"use strict";function i(e){"ngInject";return e({controller:r,controllerAs:"labelPrintingOptionsContactsCtrl",bindings:{labellessModel:"<"+o+"Model",isModal:"'+o+"",trustAsHtml:!0})}return{getUpdateLocationError:n}}i.$inject=["replaceFilter","Messages"],t.__esModule=!0,t["default"]=i,i.NG_NAME="labelPrintingOptionsMessageService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(t,i){return e.getCapabilities().then(function(e){var r=n(i),a=u.CAPABILITIES_SCENARIOS_MAP[r][t.printingType];return a?e[a]:o["default"].ALL_POSSIBILITIES})}function n(e){return e.isAccountShipment()?u.LBL_PAYMENT_TYPES.ACCOUNT:e.isTransportationPaidWithOnlinePayment()?u.LBL_PAYMENT_TYPES.ONLINE:u.LBL_PAYMENT_TYPES.SERVICE_POINT}return{getLabellessCapabilities:t}}i.$inject=["locatorResource"],t.__esModule=!0,t["default"]=i;var r=n(73),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=n(109);i.NG_NAME="labellessCapabilitiesService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){"ngInject";function n(){return e.all([t.getBoolean(t.CI_KEYS.CI1362_SEARCH_MINIMUM_KEYWORD_LENGTH),t.getSourceData(t.CI_KEYS.CI1361_SHORT_WORD_SEARCH_OPTION),t.getSourceData(t.CI_KEYS.CI1365_LONG_WORD_SEARCH_OPTION),t.getSourceData(t.CI_KEYS.CI1366_NUMBER_SEARCH_OPTION),t.getBoolean(t.CI_KEYS.CI1367_USE_ENHANCED_MMS_SEARCH)]).then(function(e){return Object.keys(a).forEach(function(t,n){return a[t]=e[n]}),a})}function i(e,t){return o(r(e,t),e)}function r(e,t){var n=t.minimumKeywordLength,i=t.longWordSearchOption,r=t.shortWordSearchOption,o=t.numberSearchOption;return Number.isInteger(+e)?o:e.length>=n?i:r}function o(e,t){var n;return(n={},n[u["default"].EXACT_MATCH]=""+c["default"].NO_CHARS_BEFORE+t+c["default"].NO_CHARS_AFTER,n[u["default"].LEFT_WILDCARD]=""+t+c["default"].NO_CHARS_AFTER,n[u["default"].RIGHT_WILDCARD]=""+c["default"].NO_CHARS_BEFORE+t,n[u["default"].BOTH_SIDE_WILDCARDS]=t,n)[e]}var a={minimumKeywordLength:null,shortWordSearchOption:null,longWordSearchOption:null,numberSearchOption:null,useEnhancedSearch:null};return{getSearchConfig:n,getItemWithAppliedSearchConfig:i}}r.$inject=["$q","configService"],t.__esModule=!0,t["default"]=r;var o=n(2395),u=i(o),a=n(2396),c=i(a);r.NG_NAME="manageShipmentsHighlightService"},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={EXACT_MATCH:"EXACT_MATCH",LEFT_WILDCARD:"LEFT_WILDCARD",RIGHT_WILDCARD:"RIGHT_WILDCARD",BOTH_SIDE_WILDCARDS:"BOTH_SIDE_WILDCARDS"}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]={NO_CHARS_BEFORE:"(\\s|^)",NO_CHARS_AFTER:"(\\s|$)"}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){"ngInject";return e({bindings:{inputModel:"="+_,required:"<"+_+"Required",lengthConfig:"e.pickupCutoffTime,t.$apply()},s.prettify=function(e){return n.getFormattedPickupTime(e)},s}var q=this,z={},X=void 0,Q=void 0;Object.assign(q,{$onInit:a,displayPickupSlider:N,isPickupSliderShown:!1,rangeSliderOptions:{},isBookByMessageShown:!1})}r.$inject=["component"],o.$inject=["$q","$scope","pickupWindowService","pickupAddressService","pickupCutoffService","pathService"],t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t=e.numberOfAttemptsLimit&&n.lockUser()}function p(e){e.dhlAccount.number=null,i.isAuthorized()&&e.userAccount?e.userAccount=null:e.accountOption=null}return{isAlternateAccountOptionSelectedForDialog:r,redirectToCreateShipment:a,saveDashboardTemplateAndRedirectToPickup:s,showAccountDialog:d,onAccountCountryValidationFail:f,onRemove:p}}r.$inject=["labelReferenceService","modalService","schedulePickupAvailabilityService","userService"],t.__esModule=!0,t["default"]=r;var o=n(2478),u=i(o),a=n(640),c=i(a),s=n(5),l=i(s);r.NG_NAME="labelReferenceDialogService"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(){return n.getSubHeaderText(e.isDashboard)}function o(){return n.getSubmitButtonText(e.isDashboard)}function u(){return n.getTitle(e.isDashboard)}function a(){return!m.accountNumber||!!m.accountStatus&&!m.accountStatus.importAccount}function c(){return t.isEsecureValidationEnabled(m.accountNumber,m.countryCode)}function s(e){m.countryCode=e.code2}function l(e){m.accountInvalidError=e.isValid?null:e.msg}function d(e,t){e.cleanErrors();var i=m.accountNumber,r=m.countryCode,o=m.captcha,u=m.isRequestInProgress,a={accountNumber:i,countryCode:r,isRequestInProgress:u};n.isSubmitProhibited(a)||(m.isRequestInProgress=!0,n.requestAccountStatus({accountNumber:i,countryCode:r,captcha:o}).then(function(n){return m.accountStatus=n,f(e,t)})["catch"](function(t){var n=t.data;m.accountStatus=null,e.setErrorsFromResponse(n)})["finally"](function(){m.isRequestInProgress=!1,m.captcha&&m.captcha.refresh()}))}function f(e,t){if(m.accountStatus.validCountry=m.accountStatus.accountCountryCode===m.countryCode,p(),m.accountStatus.validCountry)return n.closeDialogAfterTimeout({labelReferenceAccountForm:e,ewfModalCtrl:t,account:{number:m.accountNumber,countryCode:m.countryCode}});i.onAccountCountryValidationFail(m)}function p(){m.accountStatus.importAccount||t.populateCountry(m)}var m=this;Object.assign(m,{accountNumber:"",accountStatus:null,captcha:null,countryCode:e.initialCountryCode,isRequestInProgress:!1,v2:e.v2,numberOfAttempts:0,numberOfAttemptsLimit:e.numberOfAttemptsLimit,getSubHeaderText:r,getSubmitButtonText:o,getTitle:u,isCountryFieldDisabled:a,isEsecureValidationEnabled:c,onCountrySelect:s,onEsecureValidationResult:l,submit:d})}i.$inject=["params","pickupAccountDialogService","labelReferenceAccountDialogService","labelReferenceDialogService"],t.__esModule=!0,t["default"]=i},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(t){var n=t.labelReferenceAccountForm,i=t.ewfModalCtrl,r=t.account;return e(function(){n.$valid&&i.close({account:r})},o["default"].defaultDebounceTimeout)}function u(t){var n=t.labelReferenceAccountForm,i=t.onContinue,r=t.onFormInvalid;return e(function(){n.$valid&&i?i():r()},o["default"].defaultDebounceTimeout)}function a(e){return e?i.SCHEDULE_MANAGE_PICKUP.LABEL_REFERENCE_ACCOUNT_DIALOG_SUB_HEADER_DASHBOARD:i.SCHEDULE_MANAGE_PICKUP.LABEL_REFERENCE_ACCOUNT_DIALOG_SUB_HEADER_STANDALONE}function c(e){return e?i.SCHEDULE_MANAGE_PICKUP.LABEL_REFERENCE_ACCOUNT_DIALOG_BUTTON_CONTINUE:i.SCHEDULE_MANAGE_PICKUP.LABEL_REFERENCE_ACCOUNT_DIALOG_BUTTON_ADD_ACCOUNT}function s(e){return e?i.SCHEDULE_MANAGE_PICKUP.LABEL_REFERENCE_ACCOUNT_DIALOG_HEADER_DASHBOARD:i.SCHEDULE_MANAGE_PICKUP.LABEL_REFERENCE_ACCOUNT_DIALOG_HEADER_STANDALONE}function l(e){var t=e.accountNumber,n=e.countryCode,i=e.isRequestInProgress;return!t||!n||i}function d(e){var i=e.accountNumber,r=e.countryCode,o=e.captcha;return n.putCaptchaCookie(o),t.requestAccountStatus({accountNumber:i,countryCode:r,isStandalonePickup:!0})}return{closeDialogAfterTimeout:r,continueAfterTimeout:u,getSubHeaderText:a,getSubmitButtonText:c,getTitle:s,isSubmitProhibited:l,requestAccountStatus:d}}i.$inject=["$timeout","accountValidationService","cookiesService","Messages"],t.__esModule=!0,t["default"]=i;var r=n(24),o=function(e){return e&&e.__esModule?e:{"default":e}}(r);i.NG_NAME="labelReferenceAccountDialogService"},function(e,t,n){"use strict";function i(e,t){"ngInject";function n(e,n){return!!(t.isAuthorized()&&e&&n)}function i(t,n){t||e.initPickupAddressFromPhone(n)}function r(n){t.isAuthorized()?n.countryCode=t.getUserCountry():e.getDashboardCountry().then(function(e){var t=e.code;return n.countryCode=t})}return{isEsecureValidationEnabled:n,onPhoneOrWaybillBlur:i,populateCountry:r}}i.$inject=["schedulePickupService","userService"],t.__esModule=!0,t["default"]=i,i.NG_NAME="pickupAccountDialogService"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=t.module=undefined;var r=n(2482),o=i(r),u=n(2483),a=i(u),c=n(0),s=i(c),l=n(69),d=i(l),f=n(201),p=i(f),m=angular.module("shipment.pickup.dropOffTeaser",[s["default"],d["default"],p["default"]]);m.directive(o["default"].NG_NAME,o["default"]).service(a["default"].NG_NAME,a["default"]),t.module=m,t["default"]="shipment.pickup.dropOffTeaser"},function(e,t,n){"use strict";function i(e){"ngInject";return e({templateUrl:"drop-off-teaser.html",controller:r,controllerAs:"dropOffTeaserCtrl",bindings:{pickupModel:"<"+a+"PickupModel",fromCountry:"<"+a+"FromCountry",fromCity:"<"+a+"FromCity",fromAddress:"<"+a+"FromAddress",shipperEmail:"<"+a+"ShipperEmail",shippingDate:"<"+a+"ShippingDate",isDutiable:"<"+a+"IsDutiable",isPaperless:"<"+a+"IsPaperless",isCashPayment:"<"+a+"IsCashPayment",isMandatoryForGuest:"<"+a+"IsMandatoryForGuest",totalNumberOfPieces:"<"+a+"TotalNumberOfPieces",shipmentProduct:"<"+a+"ShipmentProduct",optionalServicesModel:"<"+a+"OptionalServicesModel"}})}function r(e,t){"ngInject";function n(e){if(!r(e)){var n={shipperEmail:a.shipperEmail,shippingDate:a.shippingDate,fromCountry:a.fromCountry,fromCity:a.fromCity,fromAddress:a.fromAddress,totalNumberOfPieces:a.totalNumberOfPieces,shipmentProduct:a.shipmentProduct,isDutiable:a.isDutiable,isPaperless:a.isPaperless,isCashPayment:a.isCashPayment,isMandatoryForGuest:a.isMandatoryForGuest,optionalServices:a.optionalServicesModel};t.isDropOffTeaserAvailable(n).then(o)}}function i(){t.showDropOffTeaser(a.pickupModel)}function r(e){return["fromCountry","fromCity","fromAddress","shipperEmail","shippingDate","isDutiable","isCashPayment","isMandatoryForGuest","totalNumberOfPieces","shipmentProduct","isPaperless"].every(function(t){return!e[t]})}function o(t){a.isDropOffTeaserAvailable=t,!a.isDropOffTeaserAvailable||e[u["default"].DROP_OFF_TEASER_DO_NOT_SHOW_AGAIN]||a.pickupModel.wasDropOffTeaserDisplayed||i()}var a=this;Object.assign(a,{isDropOffTeaserAvailable:!1,$onChanges:n,showDropOffTeaser:i})}i.$inject=["component"],r.$inject=["$localStorage","dropOffTeaserService"],t.__esModule=!0,t["default"]=i,t.DropOffTeaserController=r;var o=n(19),u=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=i.NG_NAME="ewfDropOffTeaser"},function(e,t,n){"use strict";function i(e,t,n,i){"ngInject";function r(e){t.showDialog({controller:o["default"],controllerAs:"dropOffTeaserModalCtrl",templateUrl:"drop-off-teaser-modal.html",windowClass:"drop-off-teaser__modal"}).result["finally"](function(){e.wasDropOffTeaserDisplayed=!0})}function a(t){return t.isMandatoryForGuest||i.isShipmentImport(t.fromCountry)?e.when(!1):n.isLabellessAllowed(t).then(function(e){var t=e[0],n=e[1];return t&&u.LABELLESS_DROP_OFF_OPTIONS.includes(n)})}return{showDropOffTeaser:r,isDropOffTeaserAvailable:a}}i.$inject=["$q","modalService","labellessService","shipmentAddressService"],t.__esModule=!0,t["default"]=i;var r=n(2484),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),u=n(109);i.NG_NAME="dropOffTeaserService"},function(e,t,n){"use strict";function i(e){"ngInject";function t(){if(n.isDoNotShowAgainChecked)return void(e[o["default"].DROP_OFF_TEASER_DO_NOT_SHOW_AGAIN]=n.isDoNotShowAgainChecked);delete e[o["default"].DROP_OFF_TEASER_DO_NOT_SHOW_AGAIN]}var n=this;Object.assign(n,{onDoNotShowAgainChanged:t}),function(){n.isDoNotShowAgainChecked=e[o["default"].DROP_OFF_TEASER_DO_NOT_SHOW_AGAIN]}()}i.$inject=["$localStorage"],t.__esModule=!0,t["default"]=i;var r=n(19),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e){"ngInject";return e({bindings:{pickupModel:"="+s,shippingDate:"="+s+"ShippingDate",shipmentCountry:"<"+s+"ShipmentCountry",isAssignee:"<"+s+"IsAssignee",shipmentProduct:"<"+s+"ShipmentProduct",hasAccounts:"<"+s+"HasAccounts",isAccountShipment:"<"+s+"IsAccountShipment",shipperAddress:"<"+s+"ShipperAddress",totalWeight:"<"+s+"TotalWeight",paymentAccountId:"<"+s+"PaymentAccountId",paymentAccountNumber:"<"+s+"PaymentAccountNumber",isAlternateAccountPayment:"<"+s+"IsAlternateAccountPayment",isRestoredShipment:"<"+s+"IsRestoredShipment",shipperEmail:"<"+s+"ShipperEmail",isDutiable:"<"+s+"IsDutiable",isPaperless:"<"+s+"IsPaperless",totalNumberOfPieces:"<"+s+"TotalNumberOfPieces",originalShipmentProduct:"<"+s+"OriginalShipmentProduct",optionalServicesModel:"<"+s+"OptionalServicesModel",paymentModel:"<"+s+"PaymentModel",packageDetailsModel:"t}function b(e){return F(e)&&!e.knownDimensions}function R(){for(var e=arguments.length,t=Array(e),n=0;n