(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0fcfeff6"],{"0215":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-results-page"},[e("hts-page-hero",{attrs:{variant:"search",eyebrow:"Classification matches",title:"HTS codes for “".concat(t.query,"”"),description:"Compare the descriptions below, then open a result to review its full tariff information."},scopedSlots:t._u([{key:"aside",fn:function(){return[e("span",{staticClass:"result-count"},[t._v(t._s(t.isLoading?"—":t.response.length))]),e("strong",[t._v(t._s(1===t.response.length?"possible match":"possible matches"))]),e("span",[t._v("Always verify the full product description")])]},proxy:!0}])}),e("b-container",{staticClass:"results-container"},[e("b-row",{staticClass:"justify-content-center"},[e("b-col",{attrs:{cols:"12"}},[e("div",{staticClass:"results",attrs:{id:"landingSection"}},[t.contentData?e("div",[e("h2",{staticClass:"context-heading"},[t._v(" "+t._s(t.replacedH1)+" ")])]):t._e(),e("div",{staticClass:"results-heading"},[e("h2",[t._v("Classification results")]),e("span",[t._v("Search term: "+t._s(t.query))])]),e("div",[t.isLoading?e("Loader"):t.error?e("div",[e("div",{staticClass:"error-state"},[e("h2",[t._v("We could not load these results")]),e("p",[t._v("Please try the search again in a moment.")])])]):e("div",t._l(t.response,(function(t){return e("Hts4Row",{key:t.code,attrs:{item:t}})})),1)],1),t.contentData?e("ContentFulRichText",{attrs:{ContentfulData:t.contentData}}):t._e()],1)])],1)],1),e("hts-finance-cta")],1)},s=[],c=n("c14f"),i=n("1da1"),r=(n("99af"),n("ac1f"),n("5319"),n("5b81"),n("5e43")),o=n("e881"),l=n("555f"),u=n("c954"),d=n("a75d"),p=n("0c91"),f=n("365ce"),h={mixins:[o["a"]],name:"SearchResults",components:{HtsPageHero:r["a"],Loader:l["a"],Hts4Row:u["a"],ContentFulRichText:d["a"],HtsFinanceCta:p["a"]},data:function(){return{isLoading:!0,response:[],error:null,contentData:null}},metaInfo:function(){return{title:this.replacedTitle,meta:[{name:"description",content:this.replacedDescription},{name:"robots",content:this.robotsContent}],link:[{rel:"canonical",href:this.canonicalUrl}]}},computed:{query:function(){return this.$route.params.query},searchApi:function(){var t=this.$route.params.query,e="search",n=isNaN(parseInt(t.replace(/\./g,"")))?"description":"code";return"description"===n?"".concat(e,"/?search_query=").concat(t,"&all=true"):4===t.length?"".concat(e,"/four/?code=").concat(t):t.length>4&&t.length<8?"".concat(e,"/six/?code=").concat(t):"".concat(e,"/eight/?code=").concat(t)},replacedTitle:function(){var t;return(null===(t=this.contentData)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.replaceAll("CODE_VARIABLE",this.query))||"HTS codes for ".concat(this.query)},replacedDescription:function(){var t;return(null===(t=this.contentData)||void 0===t||null===(t=t.metaDescription)||void 0===t?void 0:t.replaceAll("CODE_VARIABLE",this.query))||"Review possible HTS classifications for ".concat(this.query,".")},replacedH1:function(){var t;return(null===(t=this.contentData)||void 0===t||null===(t=t.h1)||void 0===t?void 0:t.replaceAll("CODE_VARIABLE",this.query))||""},robotsContent:function(){var t=!this.isLoading&&(this.error||!Array.isArray(this.response)||!this.response.length);return t?"noindex, follow":"index, follow"},canonicalUrl:function(){return"https://www.dripcapital.com/hts-code/search/"+encodeURI(this.query)}},created:function(){var t=this;return Object(i["a"])(Object(c["a"])().m((function e(){var n,a,s,i;return Object(c["a"])().w((function(e){while(1)switch(e.n){case 0:return e.p=0,e.n=1,f["a"].defaulFlexibleApi(t.searchApi);case 1:n=e.v,t.response=n,e.n=3;break;case 2:e.p=2,s=e.v,console.log("SearchResults.vue defaulFlexibleApi",s),t.error=s;case 3:return e.p=3,t.isLoading=!1,e.f(3);case 4:return e.p=4,e.n=5,t.getContentfulData("search");case 5:t.contentData=null===(a=t.contentfulData)||void 0===a?void 0:a[0],e.n=7;break;case 6:e.p=6,i=e.v,console.error("Contentful fetch error:",i);case 7:return e.a(2)}}),e,null,[[4,6],[0,2,3,4]])})))()}},v=h,b=(n("0602"),n("2877")),m=Object(b["a"])(v,a,s,!1,null,"404c0453",null);e["default"]=m.exports},"0602":function(t,e,n){"use strict";n("25af")},"0c12":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var a=n("2b0e");e["b"]=new a["default"];var s="search-attempted"},"0c91":function(t,e,n){"use strict";var a=function(){var t=this,e=t._self._c;return e("b-container",{staticClass:"hts-finance-cta"},[e("div",{staticClass:"hts-finance-cta__card"},[e("div",{staticClass:"hts-finance-cta__text"},[e("p",{staticClass:"hts-finance-cta__eyebrow"},[t._v("Drip Capital · trade finance for US importers")]),e("h3",{staticClass:"hts-finance-cta__title"},[t._v(" Importing into the US? Finance the shipment — not just the tariff. ")]),e("p",{staticClass:"hts-finance-cta__subtitle"},[t._v(" Fund your purchase orders, inventory and import duties so cash keeps flowing. Collateral-free, fast approval. ")])]),e("div",{staticClass:"hts-finance-cta__actions"},[e("a",{staticClass:"hts-finance-cta__btn",attrs:{href:"https://www.dripcapital.com/en-us/apply",rel:"noopener"}},[t._v(" Get a free financing quote ")]),e("a",{staticClass:"hts-finance-cta__link",attrs:{href:"https://www.dripcapital.com/en-us/contact",rel:"noopener"}},[t._v(" or talk to our team ")])])])])},s=[],c={name:"HtsFinanceCta"},i=c,r=(n("3ed3"),n("2877")),o=Object(r["a"])(i,a,s,!1,null,"72462c42",null);e["a"]=o.exports},"25af":function(t,e,n){},"3ed3":function(t,e,n){"use strict";n("c260")},"5b81":function(t,e,n){"use strict";var a=n("23e7"),s=n("c65b"),c=n("e330"),i=n("1d80"),r=n("1626"),o=n("861d"),l=n("44e7"),u=n("577e"),d=n("dc4a"),p=n("90d8"),f=n("0cb2"),h=n("b622"),v=n("c430"),b=h("replace"),m=TypeError,_=c("".indexOf),g=c("".replace),C=c("".slice),w=Math.max;a({target:"String",proto:!0},{replaceAll:function(t,e){var n,a,c,h,y,x,D,k,A,H,R=i(this),q=0,S="";if(o(t)){if(n=l(t),n&&(a=u(i(p(t))),!~_(a,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(c=d(t,b),c)return s(c,t,R,e);if(v&&n)return g(u(R),t,e)}h=u(R),y=u(t),x=r(e),x||(e=u(e)),D=y.length,k=w(1,D),A=_(h,y);while(-1!==A)H=x?u(e(y,A,h)):f(y,h,A,[],void 0,e),S+=C(h,q,A)+H,q=A+D,A=A+k>h.length?-1:_(h,y,A+k);return q<h.length&&(S+=C(h,q)),S}})},8944:function(t,e,n){},c260:function(t,e,n){},c954:function(t,e,n){"use strict";n("a4d3"),n("e01a");var a=function(){var t=this,e=t._self._c;return e("div",{key:t.item.code},[e("b-card",{staticClass:"hts-result-card my-4",attrs:{"body-class":"pb-0"}},[e("b-row",{staticClass:"px-4 py-3 d-flex justify-content-between",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.navigateToHts6(t.item.code)}}},[e("b-col",[e("router-link",{staticClass:"text-decoration-none",attrs:{to:t.createRoute(t.item.code)}},[e("span",{staticClass:"result-kicker"},[t._v("Subheading")]),e("h2",{staticClass:"result-code"},[t._v("HTS code "+t._s(t.item.code))]),e("p",{staticClass:"mt-2 drip-body color-noble-blue-500 font-weight-normal"},[t._v(" "+t._s(t.item.description)+" ")])])],1),e("b-col",{staticClass:"d-flex align-items-center",attrs:{cols:"auto"}},[e("b-icon",{attrs:{icon:"chevron-right","font-scale":"1.5"}})],1)],1),e("div",{staticClass:"duty-action-row"},[e("b-button",{staticClass:"duty-action",attrs:{variant:"link"},on:{click:function(e){return t.toggleExpand(t.item.code)}}},[e("span",[t._v("View import duty")]),e("b-icon",{class:{"ml-2":!0,"rotate-180":t.expandedBox===t.item.code},attrs:{icon:"chevron-down"}})],1),e("b-collapse",{attrs:{visible:t.expandedBox===t.item.code}},[e("Hts6Details",{attrs:{code:t.item.code,hideBreadcrumbs:!0}})],1)],1)],1)],1)},s=[],c=(n("99af"),n("14d9"),n("fb6a"),n("ac1f"),n("5319"),n("5412")),i=n("0c12"),r={name:"Hts4Row",props:{item:{type:Object,required:!0}},components:{Hts6Details:c["a"]},data:function(){return{expandedBox:""}},methods:{createRoute:function(t){return t=t.replace(".",""),"/hts-code/".concat(t.slice(0,2),"/").concat(t.slice(2,4),"/").concat(t.slice(4,6))},toggleExpand:function(t){i["b"].$emit(i["a"]),this.expandedBox=this.expandedBox===t?"":t},navigateToHts6:function(t){this.$router.push(this.createRoute(t))}}},o=r,l=(n("cf03"),n("2877")),u=Object(l["a"])(o,a,s,!1,null,"551d1c9c",null);e["a"]=u.exports},cf03:function(t,e,n){"use strict";n("8944")}}]);
//# sourceMappingURL=chunk-0fcfeff6.86d0eeab.js.map