PageSourceSearch

https://login.commonsku.com/dist/react/components-CopyItemPopup.608491d1.chunk.js

js commonsku.com collected 2026-10-02 03:15:40 UTC 2,511 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[6852],{20948(e,t,s){s.r(t),s.d(t,{default:()=>p});var i=s(41594),a=s(98483),l=s(47203),o=s(58199),r=s(39913),n=s(22078),d=s(28027),c=s(51851),m=s(63988);const h=e=>{let{item:t,handleChange:s}=e;const i=t.options.filter(e=>0==e.hidden),a=i.length?i.map((e,i)=>(0,m.jsx)(c.o4,{index:i+1,base_item:t,option_item:e,convert:!0,handleChangeQuantity:s},e.item_id)):[(0,m.jsx)(c.o4,{index:1,base_item:t,convert:!0,handleChangeQuantity:s},t.item_id)];return(0,m.jsx)("tbody",{"data-test-name":"TableBody",style:{borderTop:"1px solid #ddd"},children:a.concat(t.item_costs.map(e=>(0,m.jsx)(c.oA,{convert:!0,base_item:t,item_cost:e},e.item_cost_id)))})},p=(0,a.Ng)((e,t)=>({job_number:Object.values(e.entities.projects)[0].job_number}),(e,t)=>({}))(e=>{const{item:t,add_to_order:s,job_number:c,index:p}=e,_=(0,a.wA)(),u=(0,l.Zp)(),[j,x]=(0,i.useState)(0),b=()=>{_((0,r.fs)())},y=(0,i.useCallback)(e=>{const t=e.target.value;x(t)},[]);return(0,m.jsxs)("div",{"data-test-name":"CopyItemPopup",id:"copy-modal",className:"reveal large",style:{display:"block",zIndex:d.z+p},"data-reveal":!0,"aria-labelledby":"modalTitle","aria-hidden":"true",role:"dialog",children:[(0,m.jsx)("div",{className:"row",children:(0,m.jsxs)("div",{className:"small-12 columns",children:[(0,m.jsx)("h3",{id:"modalTitle",children:"Copy Presentation Item"}),(0,m.jsxs)("a",{className:"button",style:{position:"fixed",right:"1rem",top:"1rem"},onClick:e=>{e.preventDefault(),((e,t,s,i,a)=>{_((0,o.HuJ)(e,null,s.order_id,i,a)),"SALES ORDER"===s.order_type?u("/project/"+a+"/sales-order/"+s.form_number):u("/project/"+a+"/"+s.order_type.toLowerCase()+"/"+s.form_number),b()})(t.item_id,0,s,j,c)},children:["Copy To ",(0,n.Sn)(s.order_type)]}),(0,m.jsx)("a",{className:"alert button",style:{position:"fixed",right:"11rem",top:"1rem"},onClick:e=>b(),children:"Cancel"})]})}),(0,m.jsx)("div",{className:"row popup-content",children:(0,m.jsx)("div",{className:"small-12 columns popup-size-limit",children:(0,m.jsxs)("table",{className:"convert-products-table",children:[(0,m.jsx)("thead",{children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("th",{width:"12%",children:"Quantity"}),(0,m.jsx)("th",{colSpan:"2",children:"Products"}),(0,m.jsx)("th",{children:"Units"}),(0,m.jsx)("th",{children:"Margin"}),(0,m.jsx)("th",{children:"Amount"})]})}),(0,m.jsx)(h,{item:t,handleChange:y})]})})})]})})}}]);
2//# sourceMappingURL=components-CopyItemPopup.608491d1.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.