1"use strict";(self.webpackChunkenucuzuweb=self.webpackChunkenucuzuweb||[]).push([[309],{20309:function(n,e,t){t.r(e),t.d(e,{default:function(){return T}});var i,r,o,c,a,l=t(74165),s=t(15861),d=t(29439),p=t(24518),x=t(79836),u=t(56890),h=t(35855),f=t(53994),m=t(53382),b=t(20068),g=t(13400),v=t(99875),Z=t(30168),j=t(79723),y=t(28789),k=(0,y.iv)(i||(i=(0,Z.Z)([""]))),w=(0,y.iv)(r||(r=(0,Z.Z)(["\n .page-head {\n margin-bottom: 50px;\n }\n .page-content {\n padding: 0;\n }\n .custom-table {\n thead {\n display: none;\n }\n tbody {\n tr {\n &:hover {\n td {\n background-color: transparent !important;\n }\n }\n border-radius: 6px;\n display: flex;\n flex-direction: column;\n border: solid 1px #eee !important;\n padding: 10px !important;\n margin-bottom: 15px;\n td {\n border: none !important;\n padding: 2px 0 !important;\n }\n }\n }\n }\n"]))),N=y.ZP.div(o||(o=(0,Z.Z)(["\n .page-head {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 24px;\n gap: 10px;\n .title {\n font-weight: 600;\n font-size: 16px;\n color: #303641;\n flex: 1;\n }\n }\n .page-content {\n background-color: #fff;\n border-radius: 6px;\n padding: 30px;\n\n .custom-table {\n margin-top: -30px;\n border-collapse: separate;\n border-spacing: 0 16px;\n tbody {\n tr {\n border-color: transparent;\n .buttons {\n display: flex;\n flex-direction: row;\n justify-content: end;\n align-items: center;\n gap: 10px;\n button,\n a {\n background-color: #f8f9fc;\n color: #646a76;\n border-radius: 6px;\n width: 30px;\n height: 30px;\n * {\n font-size: 17px;\n }\n }\n }\n &:hover {\n td {\n background-color: #eeeeee;\n }\n .buttons {\n button,\n a {\n background-color: var(--mui-palette-primary-main);\n color: #fff;\n }\n }\n }\n td {\n border-bottom: solid 1px #eee;\n border-top: solid 1px #eee;\n padding: 10px 16px;\n &:first-child {\n border-left: solid 1px #eee;\n border-radius: 6px 0 0 6px;\n }\n &:last-child {\n border-right: solid 1px #eee;\n border-radius: 0 6px 6px 0;\n }\n }\n }\n }\n\n .no-data {\n border: none !important;\n user-select: none;\n pointer-events: none;\n .box {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 60px 30px;\n font-size: 14px;\n color: #303641;\n\n .icon {\n background-color: rgb(0 152 194 / 10%);\n color: #0098c2;\n width: 58px;\n height: 58px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 6px;\n margin-bottom: 15px;\n * {\n font-size: 32px;\n }\n }\n }\n }\n }\n }\n ","\n ","\n"])),j.cy.lessThan("xltablet")(c||(c=(0,Z.Z)(["",""])),w),j.cy.lessThan("mobile")(a||(a=(0,Z.Z)(["",""])),k)),_=t(68087),z=t(31525),I=t(85577),B=t(72791),P=t(79685),S=t(68825),C=t(4170),A=t(41766),E=t(80184),T=function(){var n=(0,B.useState)([]),e=(0,d.Z)(n,2),t=e[0],i=e[1],r=(0,B.useState)(!0),o=(0,d.Z)(r,2),c=o[0],a=o[1],Z=function(){var n=(0,s.Z)((0,l.Z)().mark((function n(){return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a(!0),n.prev=1,n.next=4,P.Z.BillingInfo().then((function(n){var e=n.data;e.success&&(e.invoices_info&&i(e.invoices_info),a(!1))})).catch((function(n){console.log("err:",n),a(!1)}));case 4:n.next=10;break;case 6:n.prev=6,n.t0=n.catch(1),console.log("err:",n.t0),a(!1);case 10:case"end":return n.stop()}}),n,null,[[1,6]])})));return function(){return n.apply(this,arguments)}}(),j=function(){var n=(0,s.Z)((0,l.Z)().mark((function n(e){return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!confirm("".concat((0,S.t)("account.mybill.text.confirm")))){n.next=9;break}return n.prev=1,n.next=4,P.Z.DeleteBiiling({guid:e}).then((function(n){n.data.success&&Z()})).catch((function(n){console.log("err:",n)}
1));case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(1),console.log("err:",n.t0);case 9:case"end":return n.stop()}}),n,null,[[1,6]])})));return function(e){return n.apply(this,arguments)}}();return(0,B.useEffect)((function(){Z()}),[]),(0,E.jsx)(N,{children:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(C.Z,{title:(0,S.t)("account.mybill.text.title"),noindex:!0}),(0,E.jsxs)("div",{className:"page-head",children:[(0,E.jsx)("div",{className:"title",children:(0,S.t)("account.mybill.text.title")}),(0,E.jsx)(p.Z,{color:"primary",variant:"contained",size:"small",startIcon:(0,E.jsx)(_.Z,{}),href:z.P[I.Z.language].accountBillsAdd,children:(0,S.t)("button.addBill")})]}),(0,E.jsx)("div",{className:"page-content",children:(0,E.jsxs)(x.Z,{size:"small",className:"custom-table",children:[(0,E.jsx)(u.Z,{children:(0,E.jsxs)(h.Z,{children:[(0,E.jsx)(f.Z,{children:(0,S.t)("account.mybill.text.type")}),(0,E.jsx)(f.Z,{children:(0,S.t)("account.mybill.text.name")}),(0,E.jsx)(f.Z,{children:(0,S.t)("account.mybill.text.no")}),(0,E.jsx)(f.Z,{children:(0,S.t)("account.mybill.text.adress")}),(0,E.jsx)(f.Z,{})]})}),(0,E.jsx)(m.Z,{children:!c&&t.length>0?null===t||void 0===t?void 0:t.map((function(n,e){return(0,E.jsxs)(h.Z,{children:[(0,E.jsx)(f.Z,{children:"Individual"===n.invoice_type?(0,S.t)("flight.passenger.billInfo.individual"):"Institutional"===n.invoice_type?(0,S.t)("flight.passenger.billInfo.corporate"):""}),(0,E.jsx)(f.Z,{children:"Individual"===n.invoice_type?n.full_name:n.company_name}),(0,E.jsx)(f.Z,{children:"Individual"===n.invoice_type?n.identnumber:n.id_tax_number}),(0,E.jsxs)(f.Z,{children:[n.invoice_address," ",n.district,n.city?"/"+n.city:"",n.country?"-"+(0,S.t)("countries.".concat(n.country)):""]}),(0,E.jsx)(f.Z,{children:(0,E.jsxs)("div",{className:"buttons",children:[(0,E.jsx)(b.Z,{title:(0,S.t)("account.mybill.text.edit"),arrow:!0,componentsProps:{tooltip:{className:"primary"}},children:(0,E.jsx)(g.Z,{href:z.P[I.Z.language].accountBillsEdit+"/"+n.guid,children:(0,E.jsx)(v.Z,{children:"edit"})})}),(0,E.jsx)(b.Z,{title:(0,S.t)("account.mybill.text.delete"),arrow:!0,componentsProps:{tooltip:{className:"primary"}},children:(0,E.jsx)(g.Z,{onClick:function(){j(n.guid)},children:(0,E.jsx)(v.Z,{children:"delete"})})})]})})]},e)})):c?(0,E.jsx)("tr",{children:(0,E.jsx)("td",{colSpan:4,className:"no-data",children:(0,E.jsx)("div",{className:"box",children:(0,E.jsx)(A.g,{type:"box"})})})}):(0,E.jsx)("tr",{children:(0,E.jsx)("td",{colSpan:5,className:"no-data",children:(0,E.jsxs)("div",{className:"box",children:[(0,E.jsx)("div",{className:"icon",children:(0,E.jsx)(v.Z,{children:"article"})}),(0,S.t)("account.mybill.text.nofound")]})})})})]})})]})})}},68087:function(n,e,t){var i=t(76189),r=t(80184);e.Z=(0,i.Z)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add")}}]); 2//# sourceMappingURL=309.chunk.js.map?v=ccaa8cbf
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.