PageSourceSearch

https://login.commonsku.com/dist/react/components-AddProductToOrderPopup.18596f1a.chunk.js

js commonsku.com collected 2026-10-02 03:14:59 UTC 2,329 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[8031],{4147(e,t,r){r.r(t),r.d(t,{default:()=>p});var s=r(41594),d=r(98483),a=r(73882),l=r(39913),o=r(58199),n=r(28027),i=r(63988);class h extends s.Component{constructor(e){super(e),this.state={order_id:"",parent_type:0==this.props.sales_orders.length&&0==this.props.estimates.length?"OPTION":"PRODUCT"},this.handleChangeOrder=this.handleChangeOrder.bind(this)}handleChangeOrder(e){this.setState({order_id:e})}render(){const{order_id:e,parent_type:t,parent_id:r,suggestion_id:s,event:d,onCreateAddItem:l,presentations:o,estimates:h,sales_orders:p,onClosePopup:u,index:c}=this.props,_=[{key:"",value:"Pick your orders"}].concat(0!=p.length?p:0!=h.length&&0==p.length?h:0!=o.length&&0==h.length&&0==p.length?o:null);return(0,i.jsxs)("div",{"data-test-name":"AddProductToOrderPopup.render",id:"add-product-to-order-modal",className:"reveal large",style:{display:"block",zIndex:n.z+c},"aria-labelledby":"modalTitle","aria-hidden":"true",role:"dialog",children:[(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"small-12 columns",children:(0,i.jsx)("h3",{id:"modalTitle",children:"Add Product to Order"})})}),(0,i.jsx)("div",{className:"row",children:(0,i.jsx)(a.A,{value:this.state.order_id,options:_,change:e=>this.handleChangeOrder(e)})}),(0,i.jsx)("button",{className:"tiny button",onClick:e=>{e.preventDefault(),l(this.state.order_id,this.state.parent_type,r,s,d),u()},children:"Import"}),(0,i.jsx)("button",{className:"close-button","aria-label":"Close modal",type:"button",onClick:e=>{e.preventDefault(),u()},children:(0,i.jsx)("span",{"aria-hidden":"true",children:"×"})})]})}}const p=(0,d.Ng)((e,t)=>({presentations:Object.values(e.entities.orders).filter(e=>"PRESENTATION"===e.order_type).map(e=>({key:e.order_id,value:e.form_number})),estimates:Object.values(e.entities.orders).filter(e=>"ESTIMATE"===e.order_type).map(e=>({key:e.order_id,value:e.form_number})),sales_orders:Object.values(e.entities.orders).filter(e=>"SALES ORDER"===e.order_type).map(e=>({key:e.order_id,value:e.form_number}))}),(e,t)=>({onClosePopup:()=>{e((0,l.fs)())},onCreateAddItem:(t,r,s,d,a)=>{e((0,o.hTJ)(t,r,s,null,"collaborate",d,a))}}))(h)}}]);
2//# sourceMappingURL=components-AddProductToOrderPopup.18596f1a.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.