1(self.webpackChunksmartb=self.webpackChunksmartb||[]).push([[200,1262,1577,2091,3057,3958,4434,4472,5438,6339,6815,7329,7819,8295,8405,8720,8881,9196,9710],{2578:function(R,g){var u,S;void 0!==(S="function"==typeof(u=function(){"use strict";function E(s,l,f){var e=new XMLHttpRequest;e.open("GET",s),e.responseType="blob",e.onload=function(){D(e.response,l,f)},e.onerror=function(){console.error("could not download file")},e.send()}function _(s){var l=new XMLHttpRequest;l.open("HEAD",s,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function I(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(l)}}var v="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,D=v.saveAs||("object"!=typeof window||window!==v?function(){}:"download"in HTMLAnchorElement.prototype?function(s,l,f){var e=v.URL||v.webkitURL,r=document.createElement("a");r.download=l=l||s.name||"download",r.rel="noopener","string"==typeof s?(r.href=s,r.origin===location.origin?I(r):_(r.href)?E(s,l,f):I(r,r.target="_blank")):(r.href=e.createObjectURL(s),setTimeout(function(){e.revokeObjectURL(r.href)},4e4),setTimeout(function(){I(r)},0))}:"msSaveOrOpenBlob"in navigator?function(s,l,f){if(l=l||s.name||"download","string"!=typeof s)navigator.msSaveOrOpenBlob(function b(s,l){return typeof l>"u"?l={autoBom:!1}:"object"!=typeof l&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\ufeff",s],{type:s.type}):s}(s,f),l);else if(_(s))E(s,l,f);else{var e=document.createElement("a");e.href=s,e.target="_blank",setTimeout(function(){I(e)})}}:function(s,l,f,e){if((e=e||open("","_blank"))&&(e.document.title=e.document.body.innerText="downloading..."),"string"==typeof s)return E(s,l,f);var r="application/octet-stream"===s.type,c=/constructor/i.test(v.HTMLElement)||v.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||r&&c)&&"object"==typeof FileReader){var t=new FileReader;t.onloadend=function(){var n=t.result;n=o?n:n.replace(/^data:[^;]*;/,"data:attachment/file;"),e?e.location.href=n:location=n,e=null},t.readAsDataURL(s)}else{var a=v.URL||v.webkitURL,i=a.createObjectURL(s);e?e.location=i:location.href=i,e=null,setTimeout(function(){a.revokeObjectURL(i)},4e4)}});v.saveAs=D.saveAs=D,R.exports=D})?u.apply(g,[]):u)&&(R.exports=S)},2987:(R,g,u)=>{"use strict";u.d(g,{T:()=>m});const m={abitools:"/abitoolsapi",sbcommon:"/sbcommonapi",platform:"/platformapi",proforma:"/proformaapi",product:"/productapi",lect:"/ecommerceapi",ace:"/aceapi",aci:"/aciapi",pga:"/pgaapi",usmca:"/usmcaapi",isf:"/isfapi",drawback:"/drawbackapi",export:"/aesapi",entry:"/entryapi",lumberpermit:"/lumberpermitapi",bol:"/bolapi",dis:"/disapi",inbond:"/inbondapi",abiInbondControl:"/inbond/abiinbondcontrol",autoexports:"/smiautoexportapi",recon:"/reconapi",riv:"/rivapi",cci:"/cciapi",caentry:"/caentryapi",caproduct:"/caproductapi",caprofile:"/caprofileapi",ccd:"/ccdapi",ticketing:"/ticketingapi",coda:"/liicodaapi"}},62091:(R,g,u)=>{"use strict";u.d(g,{F:()=>E});var m=u(44204),b=u(77955);const E=new m.InjectionToken("ENV_CONFIG",{providedIn:"root",factory:()=>b.c})},73958:(R,g,u)=>{"use strict";u.d(g,{V:()=>D,r:()=>l});var m=u(94072),S=u(54235),b=u(60051),E=u(74669),_=u(62091),I=u(75635),v=u(2578);class D{get tdsID(){return this.appStateManagerService.getState().currentTdsID}constructor(e,r,c,o){this.postWithBody=!1,this.postBody={},this.getWrongParams=()=>this.callSrGet("GetPartyInfo",[{name:"wrongParam",value:"wrongParam"}]),this.clearTDS=()=>this.callPublicPost("ClearTDS",[{name:"tdsID",value:this.tdsID.toString()}]),this.getSignalRConnectionID=()=>this.hub.signalrConnectionID,this.getHelpTexts=t=>this.callGet("GetHelpTexts",[{name:"moduleKey",value:t}]),this.getListDocumentDetails=t=>this.callGet("GetListDocumentDetails",[{name:"documentID",value:t.toString()}]),this.getDocumentStatus=t=>this.callGet("GetDocumentStatus",[{name:"documentID",value:t.toString()}]),this.getDefaultReportTemplates=t=>this.callGet("GetDefaultReportTemplates",[{name:"moduleKey",value:t}]),this.callXmlGet=(t,a,i=!1)=>this.executeAuthenticatedServiceApiCall(t,"get",a,i,!0),this.callContentDownload=(t,a,i="content")=>this.callGet(t,a,!0,!0).subscribe(n=>{if("OK"==n.status){var p=n.content;const d=URL.createObjectURL(p.body);var h=i;p.headers.get("Content-Disposition")&&(h=p.headers.get("content-disposition").split(";")[1].split("=")[1].replace(/\"/g,"")),v(d,h)}}),this.callGet=(t,a,i=!1,n=!1)=>this.executeAuthenticatedServiceApiCall(t,"get",a,i,!1,n),this.callSrGet=(t,a,i=!1)=>this.executeSignalRServiceApiCall(t,"get",a,i),this.callPublicGet=(t,a,i=!1)=>this.executePublicServiceApiCall(t,"get",a,i),this.callPost=(t,a)=>this.executeAuthenticatedServiceApiCall(t,"post",a),this.callPostWB=(t,a,i,n=!1)=>(this.postWithBody=!0,this.postBody=i,this.executeAuthenticatedServiceApiCall(t,"post",a,n)),this.createValidationExcelExport=(t,a)=>this.callPostWB("ExportValidationMessagesToExcel",[{name:"filename",value:t}],a,!0),this.callSrPost=(t,a)=>this.executeSignalRServiceApiCall(t,"post",a),this.callDelete=(t,a)=>this.executeAuthenticatedServiceApiCall(t,"delete",a),this.callPublicPost=(t,a)=>this.executePublicServiceApiCall(t,"post",a),this.callPublicPostWB=(t,a,i)=>(this.postWithBody=!0,this.postBody=i,this.executePublicServiceApiCall(t,"post",a)),this.callPublicDelete=(t,a)=>this.executePublicServiceApiCall(t,"delete",a),this.postFormCallWithParams=(t,a,i=[])=>{const n=`${this.baseUrl}/${this.serviceName}/${t}`;let p=new m.HttpParams;for(const h of i)p=p.append(h.name,h.value);return this.http.post(n,a,{params:p}).pipe((0,b.map)(h=>({status:"OK",content:h})),(0,b.catchError)(h=>new S.Observable(A=>A.error(h))))},this.serviceName=e,this.hub=r,this.http=c.get(m.HttpClient),this.appStateManagerService=c.get(E.Pi),this.environment=c.get(_.F),this.baseUrl=localStorage.getItem("apiUrl")?localStorage.getItem("apiUrl"):this.getBaseUrl(this.environment,o)}getBaseUrl(e,r){return r?e.BASE_URL+e.API_PATHS[r]:e.API_URL}getToken(){return this.appStateManagerService.getState().currentUser?this.appStateManagerService.getState().currentUser.Token:""}populateObjectFromService(e,r,c=[]){if(e&&e.length>0)for(var o=0;o<e.length;o++){const t=(0,I.f0)(JSON.parse(e[o].RowJson),c);t.TDSRowID=e[o].TDSRowID,r.push(t)}}executeSignalRServiceApiCall(e,r,c,o=!1){return c.unshift({name:"signalrConnectionID",value:this.hub.signalrConnectionID}),this.executeAuthenticatedServiceApiCall(e,r,c,o)}executeAuthenticatedServiceApiCall(e,r,c,o=!1,t=!1,a=!1){const i=this.getToken(),n=new m.HttpHeaders({Authorization:`Bearer ${i}`});return this.executeServiceApiCall(e,r,c,o,t,a,n)}executePublicServiceApiCall(e,r,c,o=!1){return this.executeServiceApiCall(e,r,c,o)}executeServiceApiCall(e,r,c,o=!1,t=!1,a=!1,i){return this.executeApiCall(`${this.baseUrl}/${this.serviceName}/${e}`,r,c,o,t,a,i)}executeApiCall(e,r,c,o=!1,t=!1,a=!1,i){e.includes("Tick")||this.appStateManagerService.addLoadingQuery();let n=new m.HttpParams({encoder:new s});for(const d of c)void 0!==d.value&&(n=n.append(d.name,d.value));let h,A,p="get"==r||"delete"==r||this.postWithBody?{params:n}:n;return t?p=a?{responseType:"text",params:n,observe:"response"}:{responseType:"text",params:n}:o&&(p=a?{responseType:"blob",params:n,observe:"response"}:{responseType:"blob",params:n}),i&&(p.headers=i),this.postWithBody?(h=this.http[r](e,this.postBody,p),this.postWithBody=!1):h="post"==r?this.http[r](e,n,p):this.http[r](e,p),A=h.pipe((0,b.map)(d=>(e.includes("Tick")||(parseInt(localStorage.getItem("EasterEggsState"),10)>=1?setTimeout(()=>{this.appStateManagerService.deleteLoadingQuery()},1e3):this.appStateManagerService.deleteLoadingQuery()),o&&a?{status:"OK",content:{...d,fileName:this.getFileNameFromContentDisposition(d)}}:{status:"OK",content:d}))),A.pipe((0,b.catchError)(d=>new S.Observable(P=>{if(d.error instanceof Blob)return void this.getBlobError(d).then(C=>P.next({status:"Fail",content:C}));const y=this.getErrorMessage(d);return e.includes("Tick")||(this.appStateManagerService.deleteLoadingQuery(),this.appStateManagerService.setLoadingSpinnerState(!1)),400==d.status||404==d.status?P.next({status:"Fail",content:y}):P.error(new Error(y))})))}getErrorMessage(e){return e?e.error?"string"==typeof e.error?e.error:e.error.ExceptionMessage?e.error.ExceptionMessage:e.error.Detail?e.error.Message+": "+e.error.Detail:e.error.Message:e.message?e.message:e.text&&null!=e.text()?e.text():null:null}getBlobError(e){return new Promise((r,c)=>{const o=new FileReader;o.onload=()=>{r(JSON.stringify(JSON.parse(o.result.toString())))},o.onerror=c,o.readAsText(e.error)})}getFileNameFromContentDisposition(e){const r=e.headers.get("content-disposition");if(!r)return;const c=r.match(/filename\*=UTF-8''([^;=\n]*)/);if(c&&c[1])return decodeURIComponent(c[1]);const o=r.match(/filename="?([^;=\n"]*)"?/);return o&&o[1]?o[1]:void 0}}class s{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}
1class l extends D{constructor(e,r,c,o){super(e,r,c,o),this.getSearch=(t,a,i=null,n=null)=>this.callGet("GetSearch",[{name:"searchID",value:t},{name:"profileID",value:a},{name:"startRow",value:i},{name:"take",value:n}]),this.getCompleteSearch=(t,a,i=null,n=null,p="")=>this.callGet("GetCompleteSearch",[{name:"searchID",value:t},{name:"profileID",value:a},{name:"startRow",value:i},{name:"take",value:0},{name:"sort",value:p}]),this.getTdsSearch=(t,a,i="",n=null,p=null)=>this.callSrGet("GetTdsSearch",[{name:"tdsId",value:t},{name:"profileID",value:a},{name:"startRow",value:n},{name:"take",value:p},{name:"filters",value:i}]),this.getFullSearch=(t,a)=>this.callGet("GetFullSearch",[{name:"searchID",value:t},{name:"profileID",value:a}]),this.getQuickSearch=(t,a,i)=>this.callGet("GetQuickSearch",[{name:"searchID",value:t},{name:"searchText",value:a},{name:"profileID",value:i}]),this.getSearchList=(t=null)=>this.callSrGet("getSearchList",[{name:"adhocReportName",value:t}]),this.getFilteredSearch=(t,a,i,n,p=null,h=null,A=null,d="")=>this.callGet("GetFilteredSearch",[{name:"searchID",value:t},{name:"profileID",value:a},{name:"filters",value:i},{name:"searchText",value:n},{name:"startRow",value:p},{name:"take",value:h??0},{name:"isNewGrid",value:A},{name:"sort",value:d}]),this.getFullFilteredSearch=(t,a,i,n)=>this.callGet("GetFullFilteredSearch",[{name:"searchID",value:t},{name:"profileID",value:a},{name:"filters",value:i},{name:"searchText",value:n}]),this.getModulesWithDefinitions=t=>this.callSrGet("GetModulesWithDefinitions",[{name:"searchText",value:t}]),this.getModuleByKey=t=>this.callSrGet("GetModuleByKey",[{name:"moduleKey",value:t}]),this.downloadReportFile=(t,a)=>this.callContentDownload("DownloadReportFile",[{name:"reportId",value:t.toString()},{name:"filters",value:a}]),this.needsReportUserInputs=t=>this.callGet("NeedsReportUserInputs",[{name:"reportId",value:t.toString()}])}}},77955:(R,g,u)=>{"use strict";u.d(g,{c:()=>S});const S={production:!1,API_URL:"https://batman.smartborder.com/platformapi",BASE_URL:"https://batman.smartborder.com",SIGNALR_URL:"https://batman.smartborder.com/platformapi",ROLLBAR_TOKEN:"d12b237257e74209891a5766f5e99906",ROLLBAR_ENV:"STABLE_WASP",APP_LOGO:"https://cniweb.customsnow.com/downloads/LOGO_cn_avatar.svg",APP_LOGIN_LOGO:"https://cniweb.customsnow.com/downloads/LOGO_cn_logo_cmyk_wgrad.gif",APP_DISPLAY_NAME:"Customs Now",APP_FAVICON_URL:"https://cniweb.customsnow.com/downloads/LOGO_cn_avatar.ico",APP_HELP_DESK_MAIL:"[email protected]",APP_PROFILE_NAME_ADDRESS_GUIDELINE:"https://cniweb.customsnow.com/downloads/NameAndAddressGuidelines.html",LII_REFERRER_URL_REGEX:"livingston",USE_SSO_CONTROLLER:"True",clarityID:"scykmmnfbo",API_PATHS:{...u(2987).T},isMonolith:!1,showCanadaModules:!0,filterUsModules:!1}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.