1"use strict";(self.webpackChunklappa_app=self.webpackChunklappa_app||[]).push([[3725],{4788:(e,l,a)=>{a.r(l),a.d(l,{default:()=>_});var s=a(91232),o=a(26699),r=a(25686),i=a(37898),c=a(13397),p=a(21494),n=a(65043),t=a(83003),d=a(76930),u=a(52399),h=a(92929),k=a(33852),v=a(33587),x=a(70579);const _=()=>{const{t:e}=(0,d.Bd)("einvoice"),[l,a]=(0,n.useState)(""),{look_up:_,fetchingLookUp:m,fetchingLookUpError:j}=(0,t.d4)((e=>e.lookUp)),w=(0,u.Ay)(),[b,N]=(0,n.useState)("");return(0,x.jsx)(s.Y,{separator:!0,fullWidth:!0,title:(0,x.jsx)(o.E,{variant:"heading3xl",as:"span",children:e("pages.lookUp.title")}),subtitle:(0,x.jsx)(o.E,{variant:"bodyLg",as:"span",color:"subdued"}),children:(0,x.jsx)(r.P,{children:(0,x.jsx)(r.P.Section,{children:(0,x.jsxs)("div",{className:"lookup-wrapper",children:[(0,x.jsx)("div",{className:"lookup-wrapper_search",children:(0,x.jsxs)("div",{className:"lookup-wrapper_search-top",children:[(0,x.jsx)("div",{className:"lookup-wrapper_search-label",children:(0,x.jsx)(i.A,{type:"search",value:l,onChange:e=>a(e),autoComplete:"off"})}),(0,x.jsx)("p",{className:"lookup-wrapper_search-text",children:e("pages.lookUp.helperText")}),(0,x.jsxs)(c.$,{onClick:async()=>{N("");try{await w((0,h.br)({company_name:l}))}catch(a){N((0,v.SU)(a,e("pages.lookUp.searchFailed",{defaultValue:"Search failed"})))}},variant:"primary",tone:"success",disabled:!l,fullWidth:!0,children:[(0,x.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{marginRight:10},children:[(0,x.jsx)("circle",{cx:"7",cy:"7",r:"5",stroke:"#fff",strokeWidth:"2",fill:"none"}),(0,x.jsx)("line",{x1:"10",y1:"10",x2:"14",y2:"14",stroke:"#fff",strokeWidth:"2"})]}),e("buttons.search")]})]})}),(b||j)&&(0,x.jsx)(k.A,{status:"critical",message:b||j,onDismiss:()=>N("")}),(0,x.jsx)("div",{className:"lookup-wrapper_container",children:m?(0,x.jsx)(p.y,{}):(null===_||void 0===_?void 0:_.length)>0&&(null===_||void 0===_?void 0:_.map((l=>{var a;return(0,x.jsxs)("div",{className:"lookup-wrapper_container-block",children:[(0,x.jsxs)("div",{className:"lookup-wrapper_container-block_id",children:[(0,x.jsxs)("p",{className:"lookup-wrapper_container-block_id-title",children:[e("labels.peppolId"),":"]}),(0,x.jsx)("p",{className:"lookup-wrapper_container-block_id-value",children:null===l||void 0===l?void 0:l.peppol_id})]}),(0,x.jsxs)("div",{className:"lookup-wrapper_container-block_country",children:[(0,x.jsxs)("p",{className:"lookup-wrapper_container-block_country-title",children:[e("labels.country"),":"]}),(0,x.jsx)("p",{className:"lookup-wrapper_container-block_country-value",children:null===l||void 0===l||null===(a=l.country)||void 0===a?void 0:a.name})]}),(0,x.jsxs)("div",{className:"lookup-wrapper_container-block_name",children:[(0,x.jsxs)("p",{className:"lookup-wrapper_container-block_name-title",children:[e("labels.companyName"),":"]}),(0,x.jsx)("p",{className:"lookup-wrapper_container-block_name-value",children:null===l||void 0===l?void 0:l.company_name})]}),(0,x.jsxs)("div",{className:"lookup-wrapper_container-block_date",children:[(0,x.jsxs)("p",{className:"lookup-wrapper_container-block_date-title",children:[e("labels.registerDate"),":"]}),(0,x.jsx)("p",{className:"lookup-wrapper_container-block_date-value",children:null===l||void 0===l?void 0:l.reg_date})]})]},null===l||void 0===l?void 0:l.peppol_id)})))})]})})})})}}}]); 2//# sourceMappingURL=route-lookup.05ea8caa.chunk.js.map
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.