1import{r as b,O as e,dq as O,aY as M,bb as D,a6 as x,cp as B,cO as I,b0 as z}from"./vendor-DAhHXCkI.js";import{u as V,C as j,e as R,f as H,I as u,D as C,h as w,g as f,i as S,j as A,k as P,L as n,w as v,x as T,y as k,z as _,A as E,a as G,af as W,ag as U,ah as L,ai as m,aj as Y,ak as l,B as d}from"./index-ErfH8nLi.js";const q=[{id:"1",gln:"6281234567890",location_name:"Cairo Manufacturing Plant",address:"Industrial Zone, 10th of Ramadan City, Cairo",partner_type:"Manufacturer",regulatory_role:"Reporting Entity",license_number:"MFG-EG-2024-001",gln_validation_status:"Verified",compliance_status:"Active"},{id:"2",gln:"6281234567891",location_name:"Alexandria Distribution Center",address:"Free Zone, Alexandria, Egypt",partner_type:"Distributor",regulatory_role:"Receiving Entity",license_number:"DST-EG-2024-015",gln_validation_status:"Verified",compliance_status:"Active"},{id:"3",gln:"6281234567892",location_name:"Giza Central Pharmacy",address:"Dokki, Giza, Egypt",partner_type:"Pharmacy",regulatory_role:"Receiving Entity",license_number:"PHR-EG-2024-102",gln_validation_status:"Pending",compliance_status:"Active"}],F=["Manufacturer","Importer","Distributor","Pharmacy","Hospital","3PL"],K=["Reporting Entity","Receiving Entity"];function $(){const t=V(),[h,y]=b.useState(q),[p,N]=b.useState(""),[r,s]=b.useState(!1),[i,a]=b.useState({gln:"",location_name:"",address:"",partner_type:"",regulatory_role:"",license_number:""}),c=h.filter(o=>o.location_name.toLowerCase().includes(p.toLowerCase())||o.gln.includes(p)||o.partner_type.toLowerCase().includes(p.toLowerCase())),g=()=>{if(!i.gln||!i.location_name||!i.address||!i.partner_type||!i.regulatory_role||!i.license_number){x.error("All fields are mandatory");return}const o={id:crypto.randomUUID(),...i,gln_validation_status:"Pending",compliance_status:"Active"};y([o,...h]),s(!1),a({gln:"",location_name:"",address:"",partner_type:"",regulatory_role:"",license_number:""}),x.success("Location registered successfully")};return e.jsxDEV(j,{children:[e.jsxDEV(R,{className:"flex flex-row items-center justify-between space-y-0 pb-4",children:[e.jsxDEV(H,{className:"flex items-center gap-2",children:[e.jsxDEV(O,{className:"h-5 w-5"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:97,columnNumber:11},this),t("components.track-trace.location.LocationRegistryTab.location_registry","Location Registry")]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:96,columnNumber:9},this),e.jsxDEV("div",{className:"flex items-center gap-2",children:[e.jsxDEV("div",{className:"relative",children:[e.jsxDEV(M,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:102,columnNumber:13},this),e.jsxDEV(u,{placeholder:t("components.track-trace.location.LocationRegistryTab.placeholder_search_locations","Search locations..."),className:"pl-8 w-64",value:p,onChange:o=>N(o.target.value)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:103,columnNumber:13},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:101,columnNumber:11},this),e.jsxDEV(C,{open:r,onOpenChange:s,children:[e.jsxDEV(w,{asChild:!0,children:e.jsxDEV(f,{size:"sm",children:[e.jsxDEV(D,{className:"h-4 w-4 mr-1"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:107,columnNumber:33},this)," ",t("components.track-trace.location.LocationRegistryTab.add_location","Add Location")]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:107,columnNumber:15},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:106,columnNumber:13},this),e.jsxDEV(S,{children:[e.jsxDEV(A,{children:e.jsxDEV(P,{children:t("components.track-trace.location.LocationRegistryTab.register_new_location","Register New Location")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:111,columnNumber:17},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:110,columnNumber:15},this),e.jsxDEV("div",{className:"space-y-4",children:[e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationRegistryTab.gln_global_location_number","GLN (Global Location Number) *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:115,columnNumber:19},this),e.jsxDEV(u,{value:i.gln,onChange:o=>a({...i,gln:o.target.value}),placeholder:t("components.track-trace.location.LocationRegistryTab.placeholder_13_digit_gln","13-digit GLN")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:116,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:114,columnNumber:17},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationRegistryTab.location_name","Location Name *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:122,columnNumber:19},this),e.jsxDEV(u,{value:i.location_name,onChange:o=>a({...i,location_name:o.target.value})},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:123,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:121,columnNumber:17},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationRegistryTab.address","Address *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:129,columnNumber:19},this),e.jsxDEV(u,{value:i.address,onChange:o=>a({...i,address:o.target.value})},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:130,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:128,columnNumber:17},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationRegistryTab.partner_type","Partner Type *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:136,columnNumber:19},this),e.jsxDEV(v,{value:i.partner_type,onValueChange:o=>a({...i,partner_type:o}),children:[e.jsxDEV(T,{children:e.jsxDEV(k,{placeholder:t("components.track-trace.location.LocationRegistryTab.placeholder_select_type","Select type")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:141,columnNumber:36},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:141,columnNumber:21},this),e.jsxDEV(_,{children:F.map(o=>e.jsxDEV(E,{value:o,children:o},o,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:143,columnNumber:47},this))},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:142,columnNumber:21},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:137,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:135,columnNumber:17},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationRegistryTab.regulatory_role","Regulatory Role *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:148,columnNumber:19},this),e.jsxDEV(v,{value:i.regulatory_role,onValueChange:o=>a({...i,regulatory_role:o}),children:[e.jsxDEV(T,{children:e.jsxDEV(k,{placeholder:t("components.track-trace.location.LocationRegistryTab.placeholder_select_role","Select role")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:153,columnNumber:36},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:153,columnNumber:21},this),e.jsxDEV(_,{children:K.map(o=>e.jsxDEV(E,{value:o,children:o},o,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:155,columnNumber:50},this))},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:154,columnNumber:21},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:149,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:147,columnNumber:17},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationRegistryTab.license_number","License Number *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:160,columnNumber:19},this),e.jsxDEV(u,{value:i.license_number,onChange:o=>a({...i,license_number:o.target.value})},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:161,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:159,columnNumber:17},this),e.jsxDEV(f,{onClick:g,className:"w-full",children:t("components.track-trace.location.LocationRegistryTab.register_location","Register Location")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:166,columnNumber:17},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:113,columnNumber:15},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:109,columnNumber:13},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:105,columnNumber:11},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:100,columnNumber:9},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:95,columnNumber:7},this),e.jsxDEV(G,{children:e.jsxDEV(W,{children:[e.jsxDEV(U,{children:e.jsxDEV(L,{children:[e.jsxDEV(m,{children:"GLN"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:176,columnNumber:15},this),e.jsxDEV(m,{children:t("components.track-trace.location.LocationRegistryTab.location_name_2","Location Name")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:177,columnNumber:15},this),e.jsxDEV(m,{children:t("components.track-trace.location.LocationRegistryTab.address_2","Address")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:178,columnNumber:15},this),e.jsxDEV(m,{children:t("components.track-trace.location.LocationRegistryTab.partner_type_2","Partner Type")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:179,columnNumber:15},this),e.jsxDEV(m,{children:t("components.track-trace.location.LocationRegistryTab.regulatory_role_2","Regulatory Role")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:180,columnNumber:15},this),e.jsxDEV(m,{children:t("components.track-trace.location.LocationRegistryTab.license","License #")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:181,columnNumber:15},this),e.jsxDEV(m,{children:t("components.track-trace.location.LocationRegistryTab.gln_status","GLN Status")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:182,columnNumber:15},this),e.jsxDEV(m,{children:t("components.track-trace.location.LocationRegistryTab.compliance","Compliance")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:183,columnNumber:15},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:175,columnNumber:13},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:174,columnNumber:11},this),e.jsxDEV(Y,{children:[c.map(o=>e.jsxDEV(L,{children:[e.jsxDEV(l,{className:"font-mono text-xs",children:o.gln},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:188,columnNumber:17},this),e.jsxDEV(l,{className:"font-medium",children:o.location_name},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:189,columnNumber:17},this),e.jsxDEV(l,{className:"text-sm text-muted-foreground max-w-[200px] truncate",children:o.address},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:190,columnNumber:17},this),e.jsxDEV(l,{children:e.jsxDEV(d,{variant:"outline",children:o.partner_type},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:191,columnNumber:28},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:191,columnNumber:17},this),e.jsxDEV(l,{className:"text-sm",children:o.regulatory_role},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:192,columnNumber:17},this),e.jsxDEV(l,{className:"font-mono text-xs",children:o.license_number},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:193,columnNumber:17},this),e.jsxDEV(l,{children:e.jsxDEV(d,{variant:o.gln_validation_status==="Verified"?"default":"secondary",children:o.gln_validation_status},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:195,columnNumber:19},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:194,columnNumber:17},this),e.jsxDEV(l,{children:e.jsxDEV(d,{variant:o.compliance_status==="Active"?"default":"destructive",children:o.compliance_status},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:200,columnNumber:19},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:199,columnNumber:17},this)]},o.id,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:187,columnNumber:34},this)),c.length===0&&e.jsxDEV(L,{children:e.jsxDEV(l,{colSpan:8,className:"text-center text-muted-foreground py-8",children:t("components.track-trace.location.LocationRegistryTab.no_locations_foun
1d","No locations found")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:206,columnNumber:17},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:205,columnNumber:39},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:186,columnNumber:11},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:173,columnNumber:9},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:172,columnNumber:7},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationRegistryTab.tsx",lineNumber:94,columnNumber:10},this)}const Z=[{id:"1",parent_location:"Cairo Manufacturing Plant",parent_gln:"6281234567890",children:[{name:"Warehouse A - Raw Materials",gln:"6281234567893",type:"Warehouse"},{name:"Warehouse B - Finished Goods",gln:"6281234567894",type:"Warehouse"},{name:"Packaging Line 1",gln:"6281234567895",type:"Production"}]},{id:"2",parent_location:"Alexandria Distribution Center",parent_gln:"6281234567891",children:[{name:"Cold Storage Unit",gln:"6281234567896",type:"Storage"},{name:"Dispatch Bay",gln:"6281234567897",type:"Logistics"}]}],Q=[{name:"Cairo Manufacturing Plant",gln:"6281234567890"},{name:"Alexandria Distribution Center",gln:"6281234567891"},{name:"Giza Central Pharmacy",gln:"6281234567892"}];function ee(){const t=V(),[h,y]=b.useState(Z),[p,N]=b.useState(!1),[r,s]=b.useState({parent_gln:"",child_name:"",child_gln:"",child_type:""}),i=()=>{if(!r.parent_gln||!r.child_name||!r.child_gln){x.error("Please fill all required fields");return}y(a=>a.map(c=>c.parent_gln===r.parent_gln?{...c,children:[...c.children,{name:r.child_name,gln:r.child_gln,type:r.child_type||"Branch"}]}:c)),N(!1),s({parent_gln:"",child_name:"",child_gln:"",child_type:""}),x.success("Child location linked successfully")};return e.jsxDEV(j,{children:[e.jsxDEV(R,{className:"flex flex-row items-center justify-between space-y-0 pb-4",children:[e.jsxDEV(H,{className:"flex items-center gap-2",children:[e.jsxDEV(B,{className:"h-5 w-5"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:98,columnNumber:11},this),t("components.track-trace.location.LocationHierarchyTab.location_hierarchy","Location Hierarchy")]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:97,columnNumber:9},this),e.jsxDEV(C,{open:p,onOpenChange:N,children:[e.jsxDEV(w,{asChild:!0,children:e.jsxDEV(f,{size:"sm",children:[e.jsxDEV(D,{className:"h-4 w-4 mr-1"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:103,columnNumber:31},this)," ",t("components.track-trace.location.LocationHierarchyTab.link_child_location","Link Child Location")]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:103,columnNumber:13},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:102,columnNumber:11},this),e.jsxDEV(S,{children:[e.jsxDEV(A,{children:e.jsxDEV(P,{children:t("components.track-trace.location.LocationHierarchyTab.link_child_location_2","Link Child Location")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:107,columnNumber:15},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:106,columnNumber:13},this),e.jsxDEV("div",{className:"space-y-4",children:[e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationHierarchyTab.parent_location","Parent Location *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:111,columnNumber:17},this),e.jsxDEV(v,{value:r.parent_gln,onValueChange:a=>s({...r,parent_gln:a}),children:[e.jsxDEV(T,{children:e.jsxDEV(k,{placeholder:t("components.track-trace.location.LocationHierarchyTab.placeholder_select_parent","Select parent")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:116,columnNumber:34},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:116,columnNumber:19},this),e.jsxDEV(_,{children:Q.map(a=>e.jsxDEV(E,{value:a.gln,children:a.name},a.gln,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:118,columnNumber:48},this))},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:117,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:112,columnNumber:17},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:110,columnNumber:15},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationHierarchyTab.child_location_name","Child Location Name *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:123,columnNumber:17},this),e.jsxDEV(u,{value:r.child_name,onChange:a=>s({...r,child_name:a.target.value})},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:124,columnNumber:17},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:122,columnNumber:15},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationHierarchyTab.child_gln","Child GLN *")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:130,columnNumber:17},this),e.jsxDEV(u,{value:r.child_gln,onChange:a=>s({...r,child_gln:a.target.value}),placeholder:t("components.track-trace.location.LocationHierarchyTab.placeholder_13_digit_gln","13-digit GLN")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:131,columnNumber:17},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:129,columnNumber:15},this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(n,{children:t("components.track-trace.location.LocationHierarchyTab.location_type","Location Type")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:137,columnNumber:17}
1,this),e.jsxDEV(u,{value:r.child_type,onChange:a=>s({...r,child_type:a.target.value}),placeholder:t("components.track-trace.location.LocationHierarchyTab.placeholder_e_g_warehouse_branch","e.g. Warehouse, Branch")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:138,columnNumber:17},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:136,columnNumber:15},this),e.jsxDEV(f,{onClick:i,className:"w-full",children:t("components.track-trace.location.LocationHierarchyTab.link_location","Link Location")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:143,columnNumber:15},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:109,columnNumber:13},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:105,columnNumber:11},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:101,columnNumber:9},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:96,columnNumber:7},this),e.jsxDEV(G,{children:e.jsxDEV("div",{className:"space-y-6",children:h.map(a=>e.jsxDEV("div",{className:"border rounded-lg p-4",children:[e.jsxDEV("div",{className:"flex items-center gap-3 mb-3",children:[e.jsxDEV(I,{className:"h-5 w-5 text-primary"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:152,columnNumber:17},this),e.jsxDEV("div",{children:[e.jsxDEV("p",{className:"font-semibold",children:a.parent_location},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:154,columnNumber:19},this),e.jsxDEV("p",{className:"text-xs text-muted-foreground font-mono",children:[t("components.track-trace.location.LocationHierarchyTab.gln","GLN:")," ",a.parent_gln]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:155,columnNumber:19},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:153,columnNumber:17},this),e.jsxDEV(d,{variant:"outline",className:"ml-auto",children:t("components.track-trace.location.LocationHierarchyTab.hq_main","HQ / Main")},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:157,columnNumber:17},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:151,columnNumber:15},this),e.jsxDEV("div",{className:"ml-8 space-y-2",children:a.children.map((c,g)=>e.jsxDEV("div",{className:"flex items-center gap-2 p-2 bg-muted/50 rounded-md",children:[e.jsxDEV(z,{className:"h-4 w-4 text-muted-foreground"},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:161,columnNumber:21},this),e.jsxDEV("div",{className:"flex-1",children:[e.jsxDEV("p",{className:"text-sm font-medium",children:c.name},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:163,columnNumber:23},this),e.jsxDEV("p",{className:"text-xs text-muted-foreground font-mono",children:[t("components.track-trace.location.LocationHierarchyTab.gln_2","GLN:")," ",c.gln]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:164,columnNumber:23},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:162,columnNumber:21},this),e.jsxDEV(d,{variant:"secondary",className:"text-xs",children:c.type},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:166,columnNumber:21},this)]},g,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:160,columnNumber:52},this))},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:159,columnNumber:15},this)]},a.id,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:150,columnNumber:34},this))},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:149,columnNumber:9},this)},void 0,!1,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:148,columnNumber:7},this)]},void 0,!0,{fileName:"/opt/buildhome/repo/src/components/track-trace/location/LocationHierarchyTab.tsx",lineNumber:95,columnNumber:10},this)}export{$ as L,ee as a};
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.