1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4954],{45042:function(e,t,n){"use strict";function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return memoize}})},96553:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var o=n(87462),a=n(67294),r=n(54142),i=a.forwardRef(function(e,t){return a.createElement(r.r,(0,o.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),a.createElement("path",{d:"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"}),a.createElement("path",{d:"M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"}))});i.displayName="Eye"},25137:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var o=n(87462),a=n(67294),r=n(54142),i=a.forwardRef(function(e,t){return a.createElement(r.r,(0,o.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 16 16"},e,{ref:t}),a.createElement("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"}),a.createElement("path",{fillRule:"evenodd",d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"}))});i.displayName="Trash"},94201:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/orders",function(){return n(58867)}])},58867:function(e,t,n){"use strict";n.r(t);var o=n(85893),a=n(25137),r=n(96553),i=n(5152),l=n.n(i),s=n(67294),c=n(67421),d=n(14416),u=n(22107),p=n(71178),h=n.n(p),m=n(25909),f=n(52091),b=n(33323),v=n(74500),g=n(84105);let y=l()(()=>n.e(44).then(n.bind(n,90044)),{loadableGenerated:{webpack:()=>[90044]}}),_=l()(()=>n.e(6744).then(n.bind(n,36744)),{loadableGenerated:{webpack:()=>[36744]}}),w=l()(()=>Promise.all([n.e(8689),n.e(3347)]).then(n.bind(n,3347)),{loadableGenerated:{webpack:()=>[3347]}}),x=l()(()=>n.e(1664).then(n.t.bind(n,41664,23)),{loadableGenerated:{webpack:()=>[41664]}}),OrderPage=()=>{let[e,t]=(0,s.useState)([]),[n,i]=(0,s.useState)(!1),[l,p]=(0,s.useState)(!1),[S,j]=(0,s.useState)(0),[C,O]=(0,s.useState)(1),[I,N]=(0,s.useState)(10),[P,E]=(0,s.useState)(""),[k,A]=(0,s.useState)(""),[T,D]=(0,s.use
1State)(""),[M,R]=(0,s.useState)(""),[B,z]=(0,s.useState)(""),{t:V}=(0,c.$G)(),decimalBalance=e=>Math.round(10*e)/10,formatPaymentMethod=e=>{let t=String(e||"").trim().toLowerCase();return t?t.includes("payu")?"PayU Money":t.includes("demand draft")||"dd"===t?"Demand Draft":e:""},F=(0,d.v9)(e=>e.settings),U=F.settingsData.currency.symbol,[H,W]=(0,s.useState)(!1),[G,Z]=(0,s.useState)(""),[L,q]=(0,s.useState)({Pending:0,"Ready to Ship":0,Shipped:0,Delivered:0,Cancelled:0}),[K,X]=(0,s.useState)([]),[J,Q]=(0,s.useState)(""),[$,Y]=(0,s.useState)(!1),ee=["Pending","Ready to Ship","Shipped","Delivered","Cancelled"],{session:et}=(0,d.v9)(e=>e.localSession),[en,eo]=(0,s.useState)({});(0,s.useEffect)(()=>{eo((0,m.wn)(et,"order"))},[et]);let openModal=e=>{Z(e),W(!0)},closeModal=()=>{W(!1)},fetchServerData=async(e,n,o)=>{try{i(!0);let a="",r=P;P.startsWith("status:")?(r=P.replace("status:",""),a=""):P&&(a=P,r="");let l="/api/order?pageSize=".concat(n,"&pageNumber=").concat(e,"&status=").concat(o||r).concat(a?"&queryText=".concat(a):"");T&&B&&(l+="&from=".concat(T,"&to=").concat(B)),M&&(l+="&payment_status=".concat(M));let s=await (0,m.gN)(l);s.success&&(t(s.order),j(s.total)),i(!1)}catch(e){i(!1)}},fetchAllOrders=async()=>{try{i(!0);let e="/api/order?pageSize=0";if(T&&B)e+="&from=".concat(T,"&to=").concat(B);else{let t=new Date().toISOString().split("T")[0];e+="&from=".concat(t,"&to=").concat(t)}M&&(e+="&payment_status=".concat(M));let t=await (0,m.gN)(e);return t.success?t.order:[]}catch(e){return[]}finally{i(!1)}},downloadCSV=async()=>{let e=await fetchAllOrders();if(!e||0===e.length){u.Am.error("No orders found");return}let t=[];t.push(["#","Order ID","Product Name","Product Code","Quantity","MRP","Selling Price","Order Date","Packing, Handling & Postal Charges","Amount","Payment Status","Payment Method","Tracking Number","Delivery Status","Billing Full Name","Billing Phone","Billing Email","Billing House","Billing City","Billing State","Billing Zip Code","Billing Country","Billing Address Title","Shipping Full Name","Shipping Phone","Shipping Email","Shipping House","Shipping City","Shipping State","Shipping Zip Code","Shipping Country","Shipping Address Title"]);let n=1;e.forEach(e=>{if(e.products&&Array.isArray(e.products)&&e.products.length>0)e.products.forEach((o,a)=>{var r,i,l,s,c,d,u,p,h,f,b,v,g,y,_,w,x,S,j,C;t.push([0===a?n:"",e.orderId,o.name||"",(null===(r=o.detail)||void 0===r?void 0:r.bookCode)||"",o.qty||"","".concat(U).concat(decimalBalance(o.mainPrice))||"","".concat(U).concat(decimalBalance(o.price))||"",0===a?(0,m.vc)(e.orderDate):"",0===a?"".concat(U).concat(decimalBalance(null===(i=e.deliveryInfo)||void 0===i?void 0:i.cost)):"",0===a?"".concat(U).concat(decimalBalance(e.payAmount)):"",0===a?e.paymentStatus:"",0===a?formatPaymentMethod(e.paymentMethod):"",0===a?e.courierTrakingId:"",0===a?e.status:"",0===a?null===(l=e.billingInfo)||void 0===l?void 0:l.fullName:"",0===a?null===(s=e.billingInfo)||void 0===s?void 0:s.phone:"",0===a?null===(c=e.billingInfo)||void 0===c?void 0:c.email:"",0===a?null===(d=e.billingInfo)||void 0===d?void 0:d.house:"",0===a?null===(u=e.billingInfo)||void 0===u?void 0:u.city:"",0===a?null===(p=e.billingInfo)||void 0===p?void 0:p.state:"",0===a?null===(h=e.billingInfo)||void 0===h?void 0:h.zipCode:"",0===a?null===(f=e.billingInfo)||void 0===f?void 0:f.country:"",0===a?null===(b=e.billingInfo)||void 0===b?void 0:b.addressTitle:"",0===a?null===(v=e.shippingInfo)||void 0===v?void 0:v.fullName:"",0===a?null===(g=e.shippingInfo)||void 0===g?void 0:g.phone:"",0===a?null===(y=e.shippingInfo)||void 0===y?void 0:y.email:"",0===a?null===(_=e.shippingInfo)||void 0===_?void 0:_.house:"",0===a?null===(w=e.shippingInfo)||void 0===w?void 0:w.city:"",0===a?null===(x=e.shippingInfo)||void 0===x?void 0:x.state:"",0===a?null===(S=e.shippingInfo)||void 0===S?void 0:S.zipCode:"",0===a?null===(j=e.shippingInfo)||void 0===j?void 0:j.country:"",0===a?null===(C=e.shippingInfo)||void 0===C?void 0:C.addressTitle:""])});else{var o,a,r,i,l,s,c,d,u,p,h,f,b,v,g,y,_,w;t.push([n,e.orderId||"","","","","","",(0,m.vc)(e.orderDate)||"","","".concat(U).concat(decimalBalance(e.payAmount))||"",e.paymentStatus||"",formatPaymentMethod(e.paymentMethod),e.courierTrakingId||"",e.status||"",(null===(o=e.b
1illingInfo)||void 0===o?void 0:o.fullName)||"",(null===(a=e.billingInfo)||void 0===a?void 0:a.phone)||"",(null===(r=e.billingInfo)||void 0===r?void 0:r.email)||"",(null===(i=e.billingInfo)||void 0===i?void 0:i.house)||"",(null===(l=e.billingInfo)||void 0===l?void 0:l.city)||"",(null===(s=e.billingInfo)||void 0===s?void 0:s.state)||"",(null===(c=e.billingInfo)||void 0===c?void 0:c.zipCode)||"",(null===(d=e.billingInfo)||void 0===d?void 0:d.country)||"",(null===(u=e.billingInfo)||void 0===u?void 0:u.addressTitle)||"",(null===(p=e.shippingInfo)||void 0===p?void 0:p.fullName)||"",(null===(h=e.shippingInfo)||void 0===h?void 0:h.phone)||"",(null===(f=e.shippingInfo)||void 0===f?void 0:f.email)||"",(null===(b=e.shippingInfo)||void 0===b?void 0:b.house)||"",(null===(v=e.shippingInfo)||void 0===v?void 0:v.city)||"",(null===(g=e.shippingInfo)||void 0===g?void 0:g.state)||"",(null===(y=e.shippingInfo)||void 0===y?void 0:y.zipCode)||"",(null===(_=e.shippingInfo)||void 0===_?void 0:_.country)||"",(null===(w=e.shippingInfo)||void 0===w?void 0:w.addressTitle)||""])}n++});let o=g.P6.aoa_to_sheet(t),a=g.P6.book_new();g.P6.book_append_sheet(a,o,"Orders");let r=g.cW(a,{bookType:"xlsx",type:"array"}),i=new Blob([r],{type:"application/octet-stream"}),l=window.URL.createObjectURL(i),s=document.createElement("a"),c=T&&B?"".concat(T,"_to_").concat(B):new Date().toISOString().split("T")[0];s.href=l,s.download="orders_".concat(c,".xlsx"),s.click(),window.URL.revokeObjectURL(l)},fetchCounts=async()=>{try{let e="/api/order/orderStatus";if(T&&B)e+="?from=".concat(T,"&to=").concat(B);else{let t=new Date().toISOString().split("T")[0];e+="?from=".concat(t,"&to=").concat(t)}M&&(e+="&payment_status=".concat(M));let t=await (0,m.gN)(e);if(t.success){let e=t.data,n={};ee.forEach(t=>{var o;n[t]=(null===(o=e[t])||void 0===o?void 0:o.count)||0}),q(n)}}catch(e){}};(0,s.useEffect)(()=>{fetchServerData(C,I,k),fetchCounts()},[C,I,P,k]),(0,s.useEffect)(()=>{fetchCounts()},[]);let handleMakeReady=async()=>{if(0===K.length){u.Am.error("Please select at least one order");return}i(!0);try{var e;let n=K.map(e=>e._id),o=(null===(e=K[0])||void 0===e?void 0:e.courierId)||"",a=await fetch("/api/order/updateAll",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({orderIds:n,courierId:o})}),r=await a.json();if(r.success)t(e=>e.map(e=>n.includes(e._id)?{...e,status:"Ready to Ship"}:e)),u.Am.success("Orders updated"),setTimeout(()=>{fetchServerData(C,I,k),fetchCounts()},100),X([]);else throw Error()}catch(e){u.Am.error("Something went wrong")}finally{i(!1)}},handleExportToSheets=async()=>{try{Y(!0);let e=await fetch("/api/admin/export/sheets",{method:"POST"}),t=await e.json();if(!t.success)throw Error(t.message||"Failed to start export");t.started&&t.jobId?(Q(t.jobId),u.Am.info(t.message||"Process started in background.")):u.Am.warning(t.message||"An export is already in progress.")}catch(e){u.Am.error(e.message||"Failed to start export process.")}finally{Y(!1)}};(0,s.useEffect)(()=>{if(!J)return;let e=!1,t=setInterval(async()=>{try{let o=await fetch("/api/admin/export/sheets?jobId=".concat(encodeURIComponent(J))),a=await o.json();if(!a.success||!a.job||e)return;let{job:r}=a;if("completed"===r.status){var t,n;u.Am.success("Export complete. Carts: ".concat((null===(t=r.result)||void 0===t?void 0:t.cartsExported)||0,", Orders: ").concat((null===(n=r.result)||void 0===n?void 0:n.ordersExported)||0,".")),Q("")}else"failed"===r.status&&(u.Am.error(r.error||"Export failed."),Q(""))}catch(t){e||(u.Am.error("Failed to fetch export status."),Q(""))}},2500);return()=>{e=!0,clearInterval(t)}},[J]);let calculateTotal=e=>{var t,n;if(!e||!e.products)return 0;let o=e.products.reduce((e,t)=>e+t.price*t.qty,0),a=0;if((null===(t=e.coupon)||void 0===t?void 0:t.discountType)&&e.coupon.discount){let t=e.coupon.discount;a="Percentage"===e.coupon.discountType?decimalBalance(o*(t/100)):decimalBalance(t)}let r=e.vat?Number(e.vat):0,i=e.tax?Number(e.tax):0,l=Number((null===(n=e.deliveryInfo)||void 0===n?void 0:n.cost)||0);return decimalBalance(o+r+i+l-a)},ea=s.useMemo(()=>(0,o.jsx)(_,{onFilter:e=>E(e),onClear:()=>{p(!l),P&&(E(""),O(1))},filterText:P,placeholder:V("tracking_number")}),[P]),er=[{name:V("order_id"),selector:e=>(0,o.jsxs)(o.Fragment,{children:[e.orderId,e.new&&(0,o.jsx)("span",{className:"badge rounded-pill bg-primary ms-1",children:"NEW"})]}),minWidth:"215px"},{name:V("order_date"),selector:e=>(0,m.vc)(e.orderDate),sortable:!0,wrap:!0},{name:V("amount"),selector:e=>U+calculateTotal(e),sortable:!0},{name:V("payment_status"),selector:e=>en.edit?(0,o.jsx)("div",{className:"dropdown",children:(0,o.jsxs)("select",{defaultValue:e.paymentStatus,onChange:t=>handlePaymentStatus(t,e.status,e._id),disabled:"Paid"===e.paymentStatus,className:"form-select form-select-sm",children:[(0,o.jsx)("option",{value:"Paid",children:"Paid"}),(0,o.jsx)("option",{value:"Unpaid",children:"Unpaid"})]},e.paymentStatus)}):e.paymentStatus.toUpperCase()},{name:V("delivery_status"),selector:e=>(0,o.jsx)("span",{className:"badge ".concat("Delivered"===e.status?"bg-success":"Shipped"===e.status?"bg-info":"Ready to Ship"===e.status?"bg-teal-500":"Pending"===e.status?"bg-warning":"bg-danger"),children:e.status}),sortable:!0},{name:V("action"),selector:e=>(0,o.jsxs)("div",{style:{overflow:"visible",paddingRight:90,width:"182px"},className:"d-flex align-items-center gap-2",children:[en.delete&&(0,o.jsx)("div",{className:h().button,onClick:()=>openModal(e._id),children:(0,o.jsx)(a.r,{width:22,height:22,title:"DELETE"})}),en.view&&(0,o.jsx)(x,{href:"/dashboard/orders/".concat(e._id),children:(0,o.jsx)("div",{className:h().button,children:(0,o.jsx)(r.b,{width:22,height:22,title:"VIEW"})})}),(0,o.jsx)("div",{className:h().button,children:(0,o.jsx)(v.WD,{document:(0,o.jsx)(b.Z,{orderData:e,isForAdmin:!0}),fileName:"invoice_".concat(e.orderId,".pdf"),style:{textDecoration:"none",color:"inherit",display:"flex",alignItems:"center"},children:(0,o.jsx)(f.aBF,{})})})]}),minWidth:"200px"}];return(0,o.jsx)("div",{children:(0,o.jsxs)("div",{className:h().container,children:[(0,o.jsx)("h4",{children:V("orders")}),(0,o.jsx)("div",{className:"d-flex align-items-end gap-4 flex-wrap mb-4 justify-content-between",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("label",{className:"fw-bold d-block mb-2",children:"Filter by Date"}),(0,o.jsxs)("div",{className:"d-flex align-items-center gap-2",children:[(0,o.jsx)("input",{type:"date",className:"form-control",style:{width:"160px"},value:T,onChange:e=>D(e.target.value)}),(0,o.jsx)("input",{type:"date",className:"form-control",style:{width:"160px"},value:B,onChange:e=>z(e.target.value)}),(0,o.jsxs)("select",{className:"form-select",style:{width:"140px"},value:M,onChange:e=>R(e.target.value),children:[(0,o.jsx)("option",{value:"",children:"All"}),(0,o.jsx)("option",{value:"Paid",children:"Paid"}),(0,o.jsx)("option",{value:"Unpaid",children:"Unpaid"})]}),(0,o.jsx)("button",{className:"btn btn-primary",onClick:()=>{fetchServerData(C,I,k),fetchCounts()},children:"Filter"})]})]})}),(0,o.jsxs)("div",{className:"d-flex gap-4 justify-content-start align-items-center",children:[(0,o.jsxs)("div",{className:"ms-3",children:[(0,o.jsx)("label",{className:"fw-bold d-block mb-2",children:"Action"}),(0,o.jsx)("button",{className:"btn btn-primary",onClick:downloadCSV,disabled:n,children:V("Download CSV")}),(0,o.jsx)("button",{className:"btn ms-2",style:{backgroundColor:"#6b46c1",borderColor:"#6b46c1",color:"white"},onMouseOver:e=>{e.target.style.backgroundColor="#553c9a",e.target.style.borderColor="#553c9a"},onMouseOut:e=>{e.target.style.backgroundColor="#6b46c1",e.target.style.borderColor="#6b46c1"},onClick:handleMakeReady,disabled:n,children:"Ready to Ship"}),(0,o.jsx)("button",{className:"btn btn-success ms-2",onClick:handleExportToSheets,disabled:$||!!J,children:$||J?"Export Running...":"Export Unsynced Carts + Unpaid Orders"})]}),(0,o.jsxs)("div",{className:"ms-3",children:[(0,o.jsx)("label",{className:"fw-bold d-block mb-2",children:"Filter by Status"}),(0,o.jsxs)("div",{className:"d-flex flex-wrap",children:[ee.map(e=>(0,o.jsx)("button",{className:"btn me-2 mb-2 ".concat("Delivered"===e?"btn-success":"Shipped"===e?"btn-info":"Ready to Ship"===e?"":"Pending"===e?"btn-warning":"btn-danger"," ").concat(k===e?"active":""),style:"Ready to Ship"===e?{backgroundColor:"#38b2ac",borderColor:"#38b2ac",color:"white"}:{},onClick:()=>{A(e),O(1),fetchCounts()},onMouseOver:t=>{"Ready to Ship"===e&&(t.target.style.backgroundColor="#319795",t.target.style.borderColor="#319795")},onMouseOut:t=>{"Ready to Ship"===e&&(t.target.style.backgroundColor="#38b2ac",t.target.style.borderColor="#38b2ac")},children:"".concat(e,": ").concat(L[e]||0)},e)),(0,o.jsx)("button",{className:"btn btn-secondary me-2 mb-2 ".concat(""===k?"active":""),onClick:()=>{A(""),O(1),fetchCounts()},children:"All Orders"})]})]})]}),(0,o.jsx)(y,{columns:er,data:e,pagination:!0,paginationServer:!0,paginationTotalRows:S,onChangePage:e=>{O(e)},onChangeRowsPerPage:(e,t)=>
1{N(e),O(t)},subHeader:!0,subHeaderComponent:ea,persistTableHead:!0,customStyles:{rows:{style:{minHeight:"92px",fontSize:"15px"}},headCells:{style:{fontSize:"15px"}}},progressPending:n,selectableRows:!0,onSelectedRowsChange:e=>{let{selectedRows:t}=e;return X(t)}}),(0,o.jsx)(w,{isOpen:H,handleCloseModal:closeModal,small:!0,children:(0,o.jsxs)("div",{className:h().modal_icon,children:[(0,o.jsx)(a.r,{width:90,height:90}),(0,o.jsx)("p",{children:"Are you sure, you want to delete?"}),(0,o.jsxs)("div",{children:[(0,o.jsx)("button",{className:h().danger_button,onClick:()=>deleteOrder(),children:"Delete"}),(0,o.jsx)("button",{className:h().success_button,onClick:()=>closeModal(),children:"Cancel"})]})]})})]})})};OrderPage.requireAuthAdmin=!0,OrderPage.dashboard=!0,t.default=OrderPage},71178:function(e){e.exports={container:"table_container__f1mC4",button:"table_button__LF8_5",modal_icon:"table_modal_icon__t_aHR",danger_button:"table_danger_button__jpS_l",success_button:"table_success_button__lcGr5",color_viewer:"table_color_viewer__54oBu",search_bar:"table_search_bar__anNGy",search_bar_button:"table_search_bar_button__OjZ8a",filter_wrap:"table_filter_wrap___h1pB",filter_input:"table_filter_input__E4Cxl",filter_btn:"table_filter_btn__OFIMV",filter_btn_clear:"table_filter_btn_clear__ftWqR"}},20067:function(){},72061:function(){},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return _objectWithoutProperties}});var o=n(63366);function _objectWithoutProperties(e,t){if(null==e)return{};var n,a,r=(0,o.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},25054:function(e,t,n){"use strict";n.d(t,{w_:function(){return GenIcon}});var o=n(67294),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r=o.createContext&&o.createContext(a),i=["attr","size","title"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){var o,a;o=t,a=n[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(o))in e?Object.defineProperty(e,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GenIcon(e){return t=>o.createElement(IconBase,_extends({attr:_objectSpread({},e.attr)},t),function Tree2Element(e){return e&&e.map((e,t)=>o.createElement(e.tag,_objectSpread({key:t},e.attr),Tree2Element(e.child)))}(e.child))}function IconBase(e){var elem=t=>{var n,{attr:a,size:r,title:l}=e,s=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,i),c=r||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",_extends({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,s,{className:n,style:_objectSpread(_objectSpread({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&o.createElement("title",null,l),e.children)};return void 0!==r?o.createElement(r.Consumer,null,e=>elem(e)):elem(a)}}},function(e){e.O(0,[3365,7439,1111,2191,4208,2251,4142,8764,452,1354,2184,4501,9774,2888,179],function(){return e(e.s=94201)}),_N_E=e.O()}]);
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.