PageSourceSearch

https://web.mobileinventory.net/static/js/1547.06ea6086.chunk.js

js mobileinventory.net collected 2026-10-01 23:54:06 UTC 36,942 bytes, 4 lines download raw bytes

1/*! For license information please see 1547.06ea6086.chunk.js.LICENSE.txt */
2(self.webpackChunkmobileinventory=self.webpackChunkmobileinventory||[]).push([[1547],{21513:(e,t,n)=>{"use strict";n.d(t,{r:()=>A});var o,i,s,l,r,a,c,d,u,m,v,f,p,h,x,b,y,g=n(54167),_=n(793),w=n(25518);let A=(o=(0,w.v)(),i=(0,w.v)(),s=(0,w.v)(),l=(0,w.v)(),r=(0,w.v)(),a=(0,w.v)(),c=(0,w.v)(),d=(0,w.v)(),u=class{constructor(e,t,n,o,i,s,l,r){(0,g.A)(this,"idNomInventory",m,this),(0,g.A)(this,"name",v,this),(0,g.A)(this,"type",f,this),(0,g.A)(this,"inventoryDate",p,this),(0,g.A)(this,"lastSyncDate",h,this),(0,g.A)(this,"idNomInventoryFb",x,this),(0,g.A)(this,"state",b,this),(0,g.A)(this,"productCount",y,this),this.idNomInventory=e,this.idNomInventoryFb=t,this.name=n,this.type=o,this.inventoryDate=i,this.lastSyncDate=s,this.state=l,this.productCount=r}getIdItem(){return this.idNomInventory}getName(){return this.name}getIdItemFb(){return this.idNomInventoryFb}},m=(0,_.A)(u.prototype,"idNomInventory",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,_.A)(u.prototype,"name",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}
2),f=(0,_.A)(u.prototype,"type",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,_.A)(u.prototype,"inventoryDate",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,_.A)(u.prototype,"lastSyncDate",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,_.A)(u.prototype,"idNomInventoryFb",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,_.A)(u.prototype,"state",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,_.A)(u.prototype,"productCount",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u)},4578:(e,t,n)=>{"use strict";n.d(t,{a:()=>_});var o,i,s,l,r,a,c,d,u,m,v,f,p,h,x=n(54167),b=n(793),y=n(25518),g=n(87442);let _=(o=(0,y.v)(),i=(0,y.v)(),s=(0,y.v)(),l=(0,y.v)(),r=(0,y.v)(),a=(0,g.d)((e=>{var t,n;let{value:o,obj:i}=e;return Number(null!==(t=null!==(n=null!==o&&void 0!==o?o:null===i||void 0===i?void 0:i.IsDefaultLocation)&&void 0!==n?n:null===i||void 0===i?void 0:i.isDefaultLocation)&&void 0!==t?t:0)}),{toClassOnly:!0}),c=(0,y.v)({name:"IsDefaultLocation"}),d=class{constructor(e,t,n){(0,x.A)(this,"idNomLocation",u,this),(0,x.A)(this,"idNomLocationFb",m,this),(0,x.A)(this,"name",v,this),(0,x.A)(this,"manager",f,this),(0,x.A)(this,"observations",p,this),(0,x.A)(this,"isDefaultLocation",h,this),this.idNomLocation=e,this.idNomLocationFb=t,this.name=n}getIdItem(){return this.idNomLocation}getName(){return this.name}getIdItemFb(){return this.idNomLocationFb}},u=(0,b.A)(d.prototype,"idNomLocation",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,b.A)(d.prototype,"idNomLocationFb",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,b.A)(d.prototype,"name",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,b.A)(d.prototype,"manager",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,b.A)(d.prototype,"observations",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,b.A)(d.prototype,"isDefaultLocation",[a,c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),d)},96628:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,J:()=>s});n(9950);var o=n(44414);const i=e=>{let{children:t,value:n,disabled:i,ariaLabelledby:s,...l}=e;return(0,o.jsx)("option",{value:n,disabled:i,"aria-labelledby":s||t,...l,children:t})};i.defaultProps={disabled:!1,ariaLabelledby:null};const s=e=>{let{list:t}=e;return null===t||void 0===t?void 0:t.map((e=>(0,o.jsx)(i,{value:e.value,...e,children:e.text||e.label},e.value)))},l=i},35087:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(9950),i=n(48738),s=n.n(i),l=n(96628),r=n(10034),a=n(44414);const c=(0,o.forwardRef)(((e,t)=>{let{id:n,name:o,className:i,children:c=null,required:d=!1,placeholder:u,ariaDescribedby:m,ariaLabelledby:v,ariaLabel:f,list:p,multiple:h=!1,title:x,size:b,disabled:y=!1,value:g,defaultValue:_,isValid:w=!1,isTouched:A=!1,invalidFeedback:j,validFeedback:N,isValidMessage:I=!0,isTooltipFeedback:L=!1,onBlur:k,onChange:C,onFocus:S,onInput:T,onInvalid:E,onSelect:F,...D}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("select",{ref:t,id:n,className:s()("form-select",{["form-select-".concat(b)]:b,"text-muted":""===g&&u,"is-invalid":!w&&A&&j,"is-valid":!w&&A&&!j},i),name:o,"aria-label":f,"aria-describedby":m,"aria-labelledby":v,multiple:h,disabled:y,title:x,value:g,defaultValue:_,required:d,onBlur:k,onChange:C,onFocus:S,onInput:T,onInvalid:E,onSelect:F,...D,children:[u&&(0,a.jsx)(l.A,{value:"",hidden:!0,children:u}),c||p&&(0,a.jsx)(l.J,{list:p})]}),I&&(0,a.jsx)(r.A,{isTouched:A,invalidFeedback:j,validFeedback:N,isTooltip:L})]})}));c.displayName="Select";const d=c},3425:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});const o=(e,t,n)=>{var o;if(null===e||void 0===e||null===(o=e.appPermissions)||void 0===o||!o.inventoriesPermissions)return!1;if(!e.appPermissions.inventoriesPermissions[n])return!1;if(null!==t&&void 0!==t&&t.idNomInventoryFb&&e.inventoriesPermissions){const o=e.inventoriesPermissions[t.idNomInventoryFb];if(o&&!1===o[n])return!1}return!0}},60534:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});n(9950);var o=n(67818),i=n(8459),s=n(44414);const l=e=>{let{errorMessageProp:t}=e;return(0,s.jsxs)("div",{className:"alert alert-danger",style:{width:"auto"},children:[t,"\xa0\xa0\xa0",(0,s.jsx)(i.A,{color:"info",size:"sm",onClick:()=>{window.location.reload()},style:{width:"auto"},children:(0,s.jsx)(o.x6,{children:"trans_refresh"})})]})}},67657:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});n(9950);var o=n(67818),i=n(41825),s=n(8459),l=n(44414);const r=e=>{let{title:t,message:n,icon:r,showCtaButton:a,button_text:c,onButtonClick:d}=e;const{t:u}=(0,o.Bd)();return(0,l.jsxs)("div",{style:{textAlign:"center",margin:"20px"},children:[(0,l.jsx)(i.A,{icon:r,size:"4x"}),(0,l.jsx)("h1",{children:u(t)}),(0,l.jsx)("p",{children:u(n)}),a&&(0,l.jsx)(s.A,{size:"sm",color:"success",icon:"AddCircleOutline",onClick:d,children:(0,l.jsx)(o.x6,{children:c})})]})}},12696:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var o=n(9950),i=n(40368),s=n(30615),l=n(74172),r=n(8459),a=n(38213),c=n(40616),d=n(44414);const u=e=>{let{onItemSelected:t,onAddNew:n,selectedIdItem:u=[],defaultText:m,notFoundText:v,items:f,disabled:p,size:h="sm",className:x,isSearchable:b=!1,isTheFirstItemDisabled:y=!1,isClearable:g=!1,isMulti:_=!1,isVirtualized:w=!1,isLoadingAddNew:A=!1,renderOptionSuffix:j,optionSuffixLabel:N}=e;const{darkModeStatus:I}=(0,l.A)(),[L,k]=(0,o.useState)(""),[C,S]=(0,o.useState)(!1),T=(0,o.useRef)(null),E=f.map((e=>({value:null===e||void 0===e?void 0:e.getIdItem(),label:null===e||void 0===e?void 0:e.getName(),item:e}
2))),F={value:"0",label:m},D=()=>{T.current&&T.current.blur()},O={valueContainer:e=>({...e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#000077"}),menuPortal:e=>({...e,zIndex:9997}),menu:e=>({...e,backgroundColor:I?"#1e1e1e":"#FFF"})};let R=v||(0,a.t)("trans_not_found");const z={styles:O,className:x,menuPortalTarget:document.body,isDisabled:p,placeholder:m,options:E,formatOptionLabel:(e,t)=>{if(!j||"menu"!==(null===t||void 0===t?void 0:t.context))return e.label;const n=j(e.item);return null==n?e.label:(0,d.jsxs)("div",{className:"d-flex align-items-center justify-content-between w-100",children:[(0,d.jsx)("span",{className:"text-truncate",style:{minWidth:0},children:e.label}),(0,d.jsxs)("span",{className:"text-muted ms-3 flex-shrink-0",children:[null!=N&&(0,d.jsxs)("span",{className:"visually-hidden",children:[N,": "]}),n]})]})},onChange:e=>{if(_){const n=(Array.isArray(e)?e:e?[e]:[]).map((e=>f.find((t=>(null===t||void 0===t?void 0:t.getIdItem())===e.value)))).filter(Boolean);t(n)}else{const n=f.find((t=>(null===t||void 0===t?void 0:t.getIdItem())===(e?e.value:"")));t(n||null)}},value:_?E.filter((e=>Array.isArray(u)&&u.includes(e.value))):E.find((e=>e.value===u))||F,isSearchable:b,isClearable:g,isMulti:_,onInputChange:e=>k(e),noOptionsMessage:e=>{let{inputValue:t}=e;return t&&n?(0,d.jsxs)("div",{className:"flex flex-col items-center",children:[(0,d.jsx)("span",{children:R}),(0,d.jsx)("br",{}),(0,d.jsxs)(r.A,{size:"sm",onClick:()=>{n&&(S(!0),n(L,D).finally((()=>{S(!1)})))},className:"mt-2",icon:"Add",color:"info",isLight:!0,isDisable:A||C,children:["Add '",L,"'"]}),(A||C)&&(0,d.jsx)(c.A,{isSmall:!0})]}):v||(0,a.t)("trans_item_not_found")}};return w?(0,d.jsx)(i.Ay,{...z,ref:T}):(0,d.jsx)(s.default,{...z,ref:T})}},30697:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>G});var o=n(9950),i=n(67818),s=n(28429),l=n(68635),r=n(75475),a=n(74172),c=n(3302),d=n.n(c),u=n(27281),m=n(91007),v=n(3317),f=n(8459),p=n(79600),h=n(41825),x=(n(67206),n(21389),n(15407),n(62324),n(43070),n(50149),n(14657),n(80812),n(23526),n(5296),n(21513)),b=n(40616),y=n(12696),g=n(67527),_=n(84486),w=n(37451),A=n(59538),j=n(3425),N=(n(64603),n(68747)),I=n(80958),L=n(28812),k=n(4578),C=n(97516),S=n(23884),T=n(90373),E=n(24201),F=n(44414);const D=e=>{let{selectedInventory:t,isOpen:n,onClose:s,onLocationAdded:l,onLocationEdited:r,selectedLocation:a,locationsList:c}=e;const{t:d}=(0,i.Bd)(),u=(0,o.useRef)(null),m=null!=a,[p,h]=(m&&JSON.parse((null===a||void 0===a?void 0:a.options)||"{}"),(0,o.useState)(m&&a.name?a.name:"")),[x,y]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{if(n){u.current&&u.current.focus();let e="";m&&a&&(e=a.name),h(e)}}),[n]),(0,o.useEffect)((()=>{const e=e=>{"Enter"===e.key&&g()};return n&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[n,p]),(0,F.jsxs)(C.Ay,{id:"add-location-modal",isScrollable:!0,size:"sm",isStaticBackdrop:!1,setIsOpen:s,titleId:"example-title",isOpen:n,isAnimation:!1,children:[(0,F.jsx)(C.rQ,{setIsOpen:s,children:(0,F.jsx)(C.wt,{id:"example-title",children:m?(0,F.jsx)(i.x6,{children:"trans_edit_location"}):(0,F.jsx)(i.x6,{children:"trans_add_location"})})}),(0,F.jsx)(C.cw,{children:(0,F.jsx)("div",{className:"container",children:(0,F.jsx)("div",{className:"row",children:(0,F.jsxs)(S.A,{tag:"div",className:"mb-4",children:[(0,F.jsx)(E.A,{htmlFor:"name",style:{fontWeight:"bold"},children:d("trans_location_name")}),(0,F.jsx)(T.A,{ref:u,id:"name",value:p,onChange:e=>h(e.target.value)})]})})})}),(0,F.jsxs)(C.jl,{children:[(0,F.jsx)(f.A,{size:"lg",color:"success",onClick:()=>{g()},children:(0,F.jsx)(i.x6,{children:"trans_save"})}),x&&(0,F.jsx)(b.A,{isSmall:!0})]})]});function g(){if(x)return;const e=p.trim()||"";if(""===e)return void(0,A.A)(d("trans_warning")||"",d("trans_msg_you_have_to_enter_a_name")||"","warning");const n=e.toLowerCase();y(!0);try{const o=c.find((e=>(e.name||"").trim().toLowerCase()===n));if(o){if(!m||o.idNomLocation!==(null===a||void 0===a?void 0:a.idNomLocation))throw new Error(d("trans_location_already_exists")||"A location with this name already exists");j(e).then(_).catch(w).finally((()=>y(!1)))}else m?j(e).then(_).catch(w).finally((()=>y(!1))):function(e){const n=(0,L.EK)(),o=v.vZ.insertLocation(t.idNomInventory,t.idNomInventoryFb,e,n);return(0,v.w$)(o)}(e).then(_).catch(w).finally((()=>y(!1)))}catch(o){w(o),y(!1)}}function _(e){"0"!==e.status?((0,A.A)(e.message,"","success"),m?r():l(),s()):(0,A.A)(e.message,"","danger")}function w(e){e instanceof Response?e.json().then((e=>{console.error(e),(0,A.A)(e.message,"","danger")})):(console.error(e),(0,A.A)(e.message,"","danger"))}function j(e){const n=(0,L.EK)(),o=v.vZ.updateLocation(null===a||void 0===a?void 0:a.idNomLocation,null===a||void 0===a?void 0:a.idNomLocationFb,t.idNomInventory,t.idNomInventoryFb,e,n);return(0,v.w$)(o)}}
2,O=e=>{let{handleMenuItemClick:t,userInfo:n,selectedInventory:o}=e;const s=(0,j.g)(n,o,"editLocation"),l=(0,j.g)(n,o,"deleteLocation");return(0,F.jsxs)(N.W1,{id:"location-context-menu",children:[(0,F.jsx)(N.q7,{id:"1",onClick:t,style:{opacity:s?1:.5,cursor:s?"pointer":"not-allowed"},children:(0,F.jsx)(i.x6,{children:"trans_edit"})}),(0,F.jsx)(N.q7,{id:"3",onClick:t,children:(0,F.jsx)(i.x6,{children:"trans_set_default_location"})}),(0,F.jsx)(N.q7,{id:"2",onClick:t,style:{opacity:l?1:.5,cursor:l?"pointer":"not-allowed"},children:(0,F.jsx)(i.x6,{children:"trans_delete"})})]})};var R=n(67657),z=n(60534),B=n(84277),M=n(8495),P=n(26397);const V=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.find((e=>null!==e&&void 0!==e)),i=Number(o);return Number.isFinite(i)?i:0},Z=e=>(new Intl.NumberFormat).format(e),K=(e,t,n,o)=>((e,t)=>Object.entries(t||{}).reduce(((e,t)=>{let[n,o]=t;return e.replace(new RegExp("{{\\s*".concat(n,"\\s*}}"),"g"),String(o))}),e))(e(t,{defaultValue:n,...o}),o),J=(e,t,n,o,i,s,l)=>K(e,1===t?n:o,1===t?i:s,{count:Z(t),...l}),W={backgroundColor:"#eefaf4",borderColor:"#8fd8b2",color:"#123627"},$=e=>{let{label:t,value:n,tone:o="neutral"}=e;const i={success:"text-success",warning:"text-warning",neutral:"text-dark"}[o];return(0,F.jsxs)("div",{className:"border rounded p-3 h-100 bg-white",children:[(0,F.jsx)("div",{className:"text-muted small mb-1",children:t}),(0,F.jsx)("div",{className:"fw-bold fs-4 ".concat(i),children:Z(n)})]})},q=e=>{var t,n;let{isOpen:o,onClose:s,summary:l,inventoryName:r}=e;const{t:a}=(0,i.Bd)(),c=V(null===l||void 0===l||null===(t=l.locations)||void 0===t?void 0:t.created,null===l||void 0===l?void 0:l.insertedLocations),d=V(null===l||void 0===l||null===(n=l.locations)||void 0===n?void 0:n.skipped,null===l||void 0===l?void 0:l.skippedRows),u=V(null===l||void 0===l?void 0:l.totalRows,c+d),m=J(a,c,"trans_import_summary_location_imported_one","trans_import_summary_location_imported_other","{{count}} location imported","{{count}} locations imported"),v=r?J(a,u,"trans_import_summary_row_processed_in_inventory_one","trans_import_summary_row_processed_in_inventory_other","{{count}} row processed in {{inventoryName}}.","{{count}} rows processed in {{inventoryName}}.",{inventoryName:r}):J(a,u,"trans_import_summary_row_processed_one","trans_import_summary_row_processed_other","{{count}} row processed.","{{count}} rows processed.");return(0,F.jsxs)(C.Ay,{id:"import-locations-summary-modal",isOpen:o,setIsOpen:s,isStaticBackdrop:!1,isScrollable:!0,size:"lg",isAnimation:!1,children:[(0,F.jsx)(C.rQ,{setIsOpen:s,children:(0,F.jsx)(C.wt,{id:"import-locations-summary-title",children:K(a,"trans_import_locations_complete","Import Locations complete")})}),(0,F.jsxs)(C.cw,{children:[(0,F.jsxs)("div",{className:"rounded border p-3 mb-4",style:W,role:"status",children:[(0,F.jsx)("div",{className:"fw-semibold mb-1",children:m}),(0,F.jsx)("div",{className:"small",children:v})]}),(0,F.jsxs)("div",{className:"row g-3",children:[(0,F.jsx)("div",{className:"col-12 col-md-6",children:(0,F.jsx)($,{label:K(a,"trans_import_summary_locations_imported","Locations imported"),value:c,tone:"success"})}),(0,F.jsx)("div",{className:"col-12 col-md-6",children:(0,F.jsx)($,{label:K(a,"trans_import_summary_rows_skipped","Rows skipped"),value:d,tone:d>0?"warning":"neutral"})})]})]}),(0,F.jsx)(C.jl,{children:(0,F.jsx)(f.A,{color:"success",onClick:s,children:K(a,"trans_done","Done")})})]})},H=n(10346),U=n(69814);let Y;H.vfs=U.pdfMake.vfs,window.JSZip=n(28728);const X=e=>{var t;let{idInventory:n}=e;const l=(0,o.useRef)(null);null!=n&&void 0!==n&&""!==n||(n=localStorage.getItem("selectedidInventory")||"");const[r,a]=(0,o.useState)();(0,o.useEffect)((()=>{r&&localStorage.setItem("selectedidInventory",r.idNomInventory)}),[r]);const{t:c}=(0,i.Bd)(),{user:C,isLoading:S}=(0,o.useContext)(g.A),{userInfo:T,isLoading:E}=(0,o.useContext)(_.A),V=(0,s.Zp)(),Z=(0,s.zy)(),K=(0,o.useMemo)((()=>(0,j.g)(T,r,"exportInventory")),[T,r]),[J,W]=(0,o.useState)(!1),[$,H]=(0,o.useState)(null),[U,X]=(0,o.useState)(),[G,Q]=(0,o.useState)(!1),[ee,te]=(0,o.useState)(!1),[ne,oe]=(0,o.useState)(null),[ie,se]=(0,o.useState)([]),[le,re]=(0,o.useState)(!1),[ae,ce]=(0,o.useState)(!1),[de,ue]=(0,o.useState)(null),[me,ve]=(0,o.useState)(!1),[fe,pe]=(0,o.useState)(!1),[he,xe]=(0,o.useState)(!1),[be,ye]=(0,o.useState)(!1),[ge,_e]=(0,o.useState)(null),[we,Ae]=(0,o.useState)([]),[je,Ne]=(0,o.useState)(""),[Ie,Le]=(0,o.useState)("excel"),[ke,Ce]=(0,o.useState)([]),[Se,Te]=(0,o.useState)(!1),[Ee,Fe]=(0,o.useState)(null),[De,Oe]=(0,o.useState)(null),Re=e=>{e&&Oe(e)};(0,o.useEffect)((()=>(window.handleImageClick=Re,()=>{delete window.handleImageClick})),[Re]);const ze=async()=>
2{if(r)try{W(!0);let e=v.vZ.getLocations(null===r||void 0===r?void 0:r.idNomInventory,null===r||void 0===r?void 0:r.idNomInventoryFb,!1);const t=await(0,v.w$)(e);W(!1),X(t.data),H(null)}catch(e){H(e.message),console.error("Error fetching locations:",e)}finally{W(!1)}else(0,A.A)("Inventory is undefined","","warning")};(0,o.useEffect)((()=>{(async()=>{try{te(!0);let e=C?v.vZ.getInventories():v.vZ.getPublicInventories();const t=await(0,v.w$)(e);te(!1),Q(!0);const o=t.data?(0,u.om)(x.r,t.data):[];se(o);const i=null===o||void 0===o?void 0:o.find((e=>e.idNomInventory==n));a(i),oe(null)}catch(e){oe(e.message),console.error("Error fetching inventories:",e)}finally{te(!1)}})()}),[]),(0,o.useEffect)((()=>{r&&ze()}),[r]),window.handleActionClick=(e,t)=>{const n=e.clientX,o=e.clientY,i=Y.row(t).data();N.He.show({id:"location-context-menu",event:e,position:{x:n,y:o},props:{selectedLocation:i}})},(0,o.useLayoutEffect)((()=>{if(E)return;if(Y&&l.current&&d()(l.current).empty(),(null===U||void 0===U||!U.columns)&&(null===U||void 0===U||!U.rows))return;let e={rows:null===U||void 0===U?void 0:U.rows,columns:null===U||void 0===U?void 0:U.columns};if(!l.current||0==e.columns.length)return;const t=(e,t,n)=>{if(!Y)return!1;const o=Y.column(e),i=o.header();return!((null===i||void 0===i?void 0:i.className)||(null===n||void 0===n?void 0:n.className)||"").includes("c_options")&&o.visible()};e.rows.length,e.columns.forEach((e=>{e.title=(0,L.ZD)(c(e.title))})),e.columns.forEach(((e,t)=>{switch(e.render||(e.render=(e,t,n,o)=>e?"export"===t||"sort"===t?e:(0,L.ZD)(e):e),e.className){case"c_idnomlocation":case"c_idnomlocationfb":case"c_idinventory":case"c_idinventoryfb":e.visible=!1,e.searchable=!1,e.sorting=!1;break;case"c_manager":case"c_observations":e.visible=!1;break;case"c_added":e.className=e.className+" dt-center",e.render=(e,t,n,o)=>e?"export"===t||"sort"===t?e:(0,L.BT)(e):e;break;case"c_isdefaultlocation":e.className=e.className+" dt-center",e.render=(e,t,n,o)=>e?"sort"===t?e:"1"==e?c("trans_yes"):"-":"-";break;case"c_options":e.className=e.className+" dt-center",e.render=(e,t,n,o)=>e?'<img width="20px" src="https://web.mobileinventory.net/img/menu_threedots_horizontal.svg" style="cursor: pointer;" alt="Menu" onClick="handleActionClick(event, '+o.row+')" />':e,e.responsivePriority=1,e.searchable=!1,e.sorting=!1}}));const n=e.columns.length;let o=Array.from({length:n},((e,t)=>t));return["idNomLocation","idInventory","idInventoryFb","idNomLocationFb","options"].forEach((t=>{const n=e.columns.findIndex((e=>e.data===t));if(-1!==n){const e=o.indexOf(n);-1!==e&&o.splice(e,1)}})),Y=d()(l.current).DataTable({dom:"<'data-table-wrapper'<'row'<'col-md-6 my-auto'<'toolbar'>><'col-md-6'<'search-container'f>>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'><'col-sm-12 col-md-7'>B>>",columns:e.columns,data:e.rows,deferRender:!0,scrollCollapse:!0,scroller:!0,scrollY:300,buttons:[...K?[{extend:"excel",text:c("export_excel"),filename:function(){return(0,L.e8)()+" - "+c("trans_locations")+" - "+(null===r||void 0===r?void 0:r.name)},title:"",exportOptions:{columns:t,orthogonal:"export"}},{extend:"csv",text:c("export_csv"),filename:function(){return(0,L.e8)()+" - "+c("trans_locations")+" - "+(null===r||void 0===r?void 0:r.name)},title:"",exportOptions:{columns:t,orthogonal:"export"}},{extend:"pdfHtml5",text:c("export_pdf"),filename:function(){return(0,L.e8)()+" - "+c("trans_locations")+" - "+(null===r||void 0===r?void 0:r.name)},title:"",exportOptions:{columns:t,orthogonal:"export"}},{extend:"print",text:c("print"),filename:function(){return(0,L.e8)()+" - "+c("trans_locations")+" - "+(null===r||void 0===r?void 0:r.name)},title:"",exportOptions:{columns:t,orthogonal:"export"}}]:[],{extend:"colvis",text:c("show_hide_col"),collectionLayout:"fixed one-column",columns:o}],columnDefs:[],stateSave:!0,stateSaveCallback:function(e,t){localStorage.setItem("DataTables_products",JSON.stringify(t))},stateLoadCallback:function(e){const t=localStorage.getItem("DataTables_products");return t?JSON.parse(t):null},responsive:!0,language:{search:c("search"),emptyTable:c("table_no_records"),paginate:{first:c("first"),previous:c("previous"),next:c("next"),last:c("last")}}}),setTimeout((()=>{var e,t;null===(e=Y)||void 0===e||null===(t=e.scroller)||void 0===t||t.toPosition(0,!1)}),100),Y.clear(),Y.rows.add(e.rows),Y.draw(),()=>{if(Y)try{Y.destroy(!1)}finally{Y=null}}}),[U,K,E]);const Be=ee||J,Me=ne||$,Pe=r&&(0,j.g)(T,r,"addLocation")||!1;return(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"container-fluid",children:(0,F.jsxs)("div",{className:"row",children:[(0,F.jsx)("div",{className:"col-md-3",children:(0,F.jsx)(y.A,{selectedIdItem:null===r||void 0===r?void 0:r.idNomInventory,items:ie,isTheFirstItemDisabled:!0,onItemSelected:e=>{const t=null===ie||void 0===ie?void 0:ie.find((t=>t.idNomInventory===(null===e||void 0===e?void 0:e.getIdItem())));a(t),(e=>{const t=Z.pathname;let n=t;t.endsWith("/locations")?n="".concat(t,"/").concat(e):t.endsWith("/locations/")?n="".concat(t).concat(e):t.includes("/locations/")&&(n=t.replace(/[^/]+$/,e)),V(n)})(null===e||void 0===e?void 0:e.getIdItem())},defaultText:c("select_inventory")})}),(0,F.jsx)("div",{className:"col-md-3"}),(0,F.jsx)("div",{className:"col-md-3"}),(0,F.jsx)("div",{className:"col-md-3",children:r&&(0,F.jsxs)("div",{style:{display:"flex",gap:"8px",justifyContent:"flex-end"},children:[(0,F.jsx)(f.A,{style:{opacity:Pe?1:.5},size:"sm",color:"success",icon:"AddCircleOutline",onClick:()=>
2{if(Pe)re(!le);else{const e=c("trans_functionality_not_available");(0,A.A)(e,"","info")}},isDisable:!Pe,children:(0,F.jsx)(i.x6,{children:"trans_add_location"})}),(0,F.jsxs)(p.Ay,{isOpen:me,setIsOpen:ve,direction:"down",children:[(0,F.jsx)(p.C,{hasIcon:!0,children:(0,F.jsx)(f.A,{style:{opacity:Pe?1:.5},size:"sm",color:"success",icon:"Add",isLight:!0,children:(0,F.jsx)(i.x6,{children:"trans_more"})})}),(0,F.jsxs)(p.rI,{children:[(0,F.jsx)(p.tJ,{children:(0,F.jsxs)("div",{role:"button",tabIndex:0,className:"d-flex align-items-center w-100 ".concat(Pe?"":"text-muted"),style:{cursor:Pe?"pointer":"not-allowed",padding:"8px 12px",borderRadius:"4px",transition:"background-color 0.15s ease-in-out"},onClick:()=>{if(Pe)ve(!1),pe(!0);else{const e=c("trans_functionality_not_available");(0,A.A)(e,"","info")}},onKeyDown:e=>{if("Enter"===e.key||" "===e.key){if(!Pe){const e=c("trans_functionality_not_available");return void(0,A.A)(e,"","info")}ve(!1),pe(!0)}},children:[(0,F.jsx)(h.A,{icon:"CloudUpload",className:"me-2"}),(0,F.jsx)(i.x6,{children:"trans_import"})]})}),(0,F.jsx)(p.tJ,{children:(0,F.jsxs)("div",{role:"button",tabIndex:0,className:"d-flex align-items-center w-100",style:{cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"background-color 0.15s ease-in-out"},onClick:()=>{null!==r&&void 0!==r&&r.idNomInventory&&(ve(!1),V("/products/".concat(r.idNomInventory,"/stock-by-location")))},onKeyDown:e=>{if("Enter"===e.key||" "===e.key){if(null===r||void 0===r||!r.idNomInventory)return;ve(!1),V("/products/".concat(r.idNomInventory,"/stock-by-location"))}},children:[(0,F.jsx)(h.A,{icon:"LocationOn",className:"me-2"}),(0,F.jsx)(i.x6,{children:"trans_stock_by_location"})]})})]})]})]})})]})}),Me&&(0,F.jsx)("div",{children:"Could not fetch locations..."}),(0,F.jsxs)("div",{children:[Be&&(0,F.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2e3},children:(0,F.jsx)(b.A,{color:"success",size:"15vh"})}),!Be&&0===(null===U||void 0===U?void 0:U.rows.length)&&(0,F.jsx)(R.A,{title:"trans_no_locations",message:"trans_no_locations_message",icon:"LocationOn",showCtaButton:Pe,button_text:"trans_add_location",onButtonClick:()=>re(!0)}),(0,F.jsx)("div",{id:"table_parent",style:{position:"relative"},children:(0,F.jsx)("table",{ref:l,className:"display"})})]}),C&&!ne&&(!ie||0==ie.length)&&!ee&&G&&(0,F.jsx)(w.A,{isSync:(null===T||void 0===T||null===(t=T.configs)||void 0===t?void 0:t.sync)||!1}),ne&&(0,F.jsx)(z.A,{errorMessageProp:ne}),De&&(0,F.jsx)(m.Y,{medium:De,large:De,alt:"",hideDownload:!0,hideZoom:!0,onClose:()=>{Oe(null)}}),r&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(D,{selectedInventory:r,isOpen:le,onClose:()=>{re(!1),ue(null)},onLocationAdded:ze,onLocationEdited:ze,selectedLocation:de,locationsList:null===U||void 0===U?void 0:U.rows}),(0,F.jsx)(B.A,{selectedInventory:r,isOpen:fe,onClose:()=>{pe(!1)},title:c("Import Locations"),importType:"locations",onFileUploaded:(e,t,n,o,i)=>{var s;const l=(null===(s=e[0])||void 0===s?void 0:s.length)||0,r=(0,P.R)(l);e.unshift(r),Ae(e),Ne(t),Le(o),Ce(i||[]),pe(!1),xe(!0)}}),(0,F.jsx)(M.A,{selectedInventory:r,threeRowsData:we,fileCode:je,sourceType:Ie,sheetOptions:ke,isOpen:he,onClose:()=>{xe(!1)},onInventoryImported:e=>{xe(!1),_e((null===e||void 0===e?void 0:e.data)||null),ye(Boolean(null===e||void 0===e?void 0:e.data)),ze()},importType:"locations",title:c("Map Location Fields")}),(0,F.jsx)(q,{isOpen:be,onClose:()=>ye(!1),summary:ge,inventoryName:r.name})]}),(0,F.jsx)(O,{handleMenuItemClick:async e=>{await(async e=>{const{event:t,props:n,data:o,triggerEvent:i}=e;let s=e.id,l=(0,u.bj)(k.a,n.selectedLocation);var a;if((1==s||2==s)&&l&&l.idNomLocationFb&&"team_member"==(null===T||void 0===T||null===(a=T.configs)||void 0===a?void 0:a.role))return void(0,A.A)(c("trans_functionality_is_restricted_for_team_members")||"","","warning");if(1==s){if(!(0,j.g)(T,r,"editLocation")){const e=c("trans_functionality_not_available");return void(0,A.A)(e,"","info")}ue(l),re(!0)}else if(2==s){if(!(0,j.g)(T,r,"deleteLocation")){const e=c("trans_functionality_not_available");return void(0,A.A)(e,"","info")}if(l.isDefaultLocation)return void(0,A.A)("Default location cannot be deleted","","warning");Fe(l),Te(!0)}else if(3==s){if(!r)return;const e=v.vZ.setDefaultLocation(r.idNomInventory,r.idNomInventoryFb,null===l||void 0===l?void 0:l.idNomLocation,null===l||void 0===l?void 0:l.idNomLocationFb);try{let t=await(0,v.w$)(e);if("0"!==t.status){const e=c("trans_location_set_as_default");(0,A.A)(t.message,e,"success"),ze()}else(0,A.A)(t.message,"","danger")}catch(d){d instanceof Response?d.json().then((e=>{console.error(e),(0,A.A)(e.message,"","danger")})):(console.error(d),(0,A.A)(d.message,"","danger"))}}})(e)},userInfo:T,selectedInventory:r}),(0,F.jsx)(I.A,{titleText:c("trans_delete_location")||"",descriptionText:c("trans_delete_location_confirmation")||"",greyButtonText:c("trans_cancel_delete")||"",redButtonText:c("trans_confirm_delete")||"",isOpen:Se,onClose:()=>{Te(!1)},greyButtonClicked:()=>{Te(!1)},redButtonClicked:async()=>
2{if(!Ee)return;if(!r)return void(0,A.A)("Inventory is undefined","","warning");const e=v.vZ.deleteLocation(null===r||void 0===r?void 0:r.idNomInventory,null===r||void 0===r?void 0:r.idNomInventoryFb,Ee.idNomLocation,Ee.idNomLocationFb);try{let t=await(0,v.w$)(e);if("0"!==t.status){const e=c("trans_location_deleted");(0,A.A)(t.message,e,"success"),ze()}else(0,A.A)(t.message,"","danger");Te(!1)}catch(t){t instanceof Response?t.json().then((e=>{console.error(e),(0,A.A)(e.message,"","danger",!0)})):(console.error(t),(0,A.A)(t.message,"","danger",!0))}}})]})},G=()=>{const{darkModeStatus:e}=(0,a.A)(),{user:t}=(0,o.useContext)(g.A),{t:n}=(0,i.Bd)();var{idInventory:c}=(0,s.g)();void 0==c&&(c="");const d=n("trans_locations");return(0,F.jsx)(r.A,{title:d,children:(0,F.jsxs)(l.A,{container:"fluid",children:[(0,F.jsx)("div",{className:"display-5 fw-bold py-2",children:d}),(0,F.jsx)(X,{idInventory:c})]})})}},87442:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var o=n(3782);function i(e,t){return void 0===t&&(t={}),function(n,i){o.s.addTransformMetadata({target:n.constructor,propertyName:i,transformFn:e,options:t})}}},43070:(e,t,n)=>{var o,i;o=[n(3302),n(67206),n(16061)],void 0===(i=function(e){return function(e,t,n,o){"use strict";var i=e.fn.dataTable;return e.extend(i.ext.buttons,{colvis:function(e,t){var n=null,o={extend:"collection",init:function(e,t){n=t},text:function(e){return e.i18n("buttons.colvis","Column visibility")},className:"buttons-colvis",closeButton:!1,buttons:[{extend:"columnsToggle",columns:t.columns,columnText:t.columnText}]};return e.on("column-reorder.dt"+t.namespace,(function(o,i,s){e.button(null,e.button(null,n).node()).collectionRebuild([{extend:"columnsToggle",columns:t.columns,columnText:t.columnText}])})),o},columnsToggle:function(e,t){return e.columns(t.columns).indexes().map((function(e){return{extend:"columnToggle",columns:e,columnText:t.columnText}})).toArray()},columnToggle:function(e,t){return{extend:"columnVisibility",columns:t.columns,columnText:t.columnText}},columnsVisibility:function(e,t){return e.columns(t.columns).indexes().map((function(e){return{extend:"columnVisibility",columns:e,visibility:t.visibility,columnText:t.columnText}})).toArray()},columnVisibility:{columns:o,text:function(e,t,n){return n._columnText(e,n)},className:"buttons-columnVisibility",action:function(e,t,n,i){var s=t.columns(i.columns),l=s.visible();s.visible(i.visibility!==o?i.visibility:!(l.length&&l[0]))},init:function(e,t,n){var o=this;t.attr("data-cv-idx",n.columns),e.on("column-visibility.dt"+n.namespace,(function(t,i){i.bDestroying||i.nTable!=e.settings()[0].nTable||o.active(e.column(n.columns).visible())})).on("column-reorder.dt"+n.namespace,(function(t,i,s){n.destroying||1===e.columns(n.columns).count()&&(o.text(n._columnText(e,n)),o.active(e.column(n.columns).visible()))})),this.active(e.column(n.columns).visible())},destroy:function(e,t,n){e.off("column-visibility.dt"+n.namespace).off("column-reorder.dt"+n.namespace)},_columnText:function(e,t){var n=e.column(t.columns).index(),o=e.settings()[0].aoColumns[n].sTitle;return o||(o=e.column(n).header().innerHTML),o=o.replace(/\n/g," ").replace(/<br\s*\/?>/gi," ").replace(/<select(.*?)<\/select>/g,"").replace(/<!\-\-.*?\-\->/g,"").replace(/<.*?>/g,"").replace(/^\s+|\s+$/g,""),t.columnText?t.columnText(e,n,o):o}},colvisRestore:{className:"buttons-colvisRestore",text:function(e){return e.i18n("buttons.colvisRestore","Restore visibility")},init:function(e,t,n){n._visOriginal=e.columns().indexes().map((function(t){return e.column(t).visible()})).toArray()},action:function(e,t,n,o){t.columns().every((function(e){var n=t.colReorder&&t.colReorder.transpose?t.colReorder.transpose(e,"toOriginal"):e;this.visible(o._visOriginal[n])}))}},colvisGroup:{className:"buttons-colvisGroup",action:function(e,t,n,o){t.columns(o.show).visible(!0,!1),t.columns(o.hide).visible(!1,!1),t.columns.adjust()},show:[],hide:[]}}),i}(e,window,document)}.apply(t,o))||(e.exports=i)},64603:()=>{},68747:(e,t,n)=>{"use strict";n.d(t,{He:()=>v,W1:()=>g,q7:()=>_,wv:()=>w});var o=n(9950),i=n(2803),s=n(17119),l=(0,o.createContext)({}),r=()=>(0,o.useContext)(l),a=e=>o.createElement(l.Provider,{...e});var c=function(){let e=new Map;return{on(t,n){return e.has(t)?e.get(t).add(n):e.set(t,new Set([n])
2),this},off(t,n){return e.has(t)&&e.get(t).delete(n),this},emit(t,n){return e.has(t)&&e.get(t).forEach((e=>{e(n)})),this}}}(),d=()=>(0,o.useRef)(new Map).current,u=()=>{},m=["resize","contextmenu","click","scroll","blur"],v={show(e){let{event:t,id:n,props:o,position:i}=e;t.preventDefault&&t.preventDefault(),c.emit(0).emit(n,{event:t.nativeEvent||t,props:o,position:i})},hideAll(){c.emit(0)}};function f(){let e,t,n,o,i=new Map,s=!1;function l(){o[e].node.focus()}function r(){return-1!==e||(a(),!1)}function a(){e+1<o.length?e++:e+1===o.length&&(e=0),s&&c(),l()}function c(){if(r()&&!n){let r=i.get(t);t.classList.remove("contexify_submenu-isOpen"),o=r.items,t=r.parentNode,r.isRoot&&(n=!0,i.clear()),s||(e=r.focusedIndex,l())}}return{init:function(t){o=Array.from(t.values()),e=-1,n=!0},moveDown:a,moveUp:function(){-1===e||0===e?e=o.length-1:e-1<o.length&&e--,s&&c(),l()},openSubmenu:function(){if(r()&&e>=0&&o[e].isSubmenu){let r=Array.from(o[e].submenuRefTracker.values()),{node:a,setSubmenuPosition:c}=o[e];return i.set(a,{isRoot:n,focusedIndex:e,parentNode:t||a,items:o}),c(),a.classList.add("contexify_submenu-isOpen"),t=a,r.length>0?(e=0,o=r):s=!0,n=!1,l(),!0}return!1},closeSubmenu:c,matchKeys:function(e){!function t(n){for(let o of n)o.isSubmenu&&o.submenuRefTracker&&t(Array.from(o.submenuRefTracker.values())),o.keyMatcher&&o.keyMatcher(e)}(o)}}}function p(e){return"function"==typeof e}function h(e){return"string"==typeof e}function x(e,t){return o.Children.map(o.Children.toArray(e).filter(Boolean),(e=>(0,o.cloneElement)(e,t)))}function b(e,t){return p(e)?e(t):e}function y(e,t){return{...e,...p(t)?t(e):t}}var g=e=>{let{id:t,theme:n,style:l,className:r,children:u,animation:v="fade",preventDefaultOnKeydown:b=!0,disableBoundariesCheck:g=!1,onVisibilityChange:_,...w}=e,[A,j]=(0,o.useReducer)(y,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),N=(0,o.useRef)(null),I=d(),[L]=(0,o.useState)((()=>f())),k=(0,o.useRef)(),C=(0,o.useRef)();function S(e,t){if(N.current&&!g){let{innerWidth:n,innerHeight:o}=window,{offsetWidth:i,offsetHeight:s}=N.current;e+i>n&&(e-=e+i-n),t+s>o&&(t-=t+s-o)}return{x:e,y:t}}function T(e){let{event:t,props:n,position:o}=e;t.stopPropagation();let i=o||function(e){let t={x:e.clientX,y:e.clientY},n=e.changedTouches;return n&&(t.x=n[0].clientX,t.y=n[0].clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}(t),{x:l,y:r}=S(i.x,i.y);(0,s.flushSync)((()=>{j({visible:!0,willLeave:!1,x:l,y:r,triggerEvent:t,propsFromTrigger:n})})),clearTimeout(C.current),!k.current&&p(_)&&(_(!0),k.current=!0)}function E(e){null!=e&&(2===e.button||e.ctrlKey)&&"contextmenu"!==e.type||(v&&(h(v)||"exit"in v&&v.exit)?j((e=>({willLeave:e.visible}))):j((e=>({visible:!e.visible&&e.visible}))),C.current=setTimeout((()=>{p(_)&&_(!1),k.current=!1})))}(0,o.useEffect)((()=>(c.on(t,T).on(0,E),()=>{c.off(t,T).off(0,E)})),[t,v,g]),(0,o.useEffect)((()=>{A.visible?L.init(I):I.clear()}),[A.visible,L,I]),(0,o.useEffect)((()=>{A.visible&&j(S(A.x,A.y))}),[A.visible]),(0,o.useEffect)((()=>{function e(e){b&&e.preventDefault()}function t(t){switch(t.key){case"Enter":case" ":L.openSubmenu()||E();break;case"Escape":E();break;case"ArrowUp":e(t),L.moveUp();break;case"ArrowDown":e(t),L.moveDown();break;case"ArrowRight":e(t),L.openSubmenu();break;case"ArrowLeft":e(t),L.closeSubmenu();break;default:L.matchKeys(t)}}if(A.visible){window.addEventListener("keydown",t);for(let e of m)window.addEventListener(e,E)}return()=>{window.removeEventListener("keydown",t);for(let e of m)window.removeEventListener(e,E)}}),[A.visible,L,b]);let{visible:F,triggerEvent:D,propsFromTrigger:O,x:R,y:z,willLeave:B}=A,M=(0,i.A)("contexify",r,{["contexify_theme-".concat(n)]:n},h(v)?(0,i.A)({["contexify_willEnter-".concat(v)]:F&&!B,["contexify_willLeave-".concat(v," ","contexify_willLeave-","'disabled'")]:F&&B}):v&&"enter"in v&&"exit"in v?(0,i.A)({["contexify_willEnter-".concat(v.enter)]:v.enter&&F&&!B,["contexify_willLeave-".concat(v.exit," ","contexify_willLeave-","'disabled'")]:v.exit&&F&&B}):null);return o.createElement(a,{value:I},F&&o.createElement("div",{...w,className:M,onAnimationEnd:function(){A.willLeave&&A.visible&&(0,s.flushSync)((()=>j({visible:!1,willLeave:!1})))},style:{...l,left:R,top:z,opacity:1},ref:N,role:"menu"},x(u,{propsFromTrigger:O,triggerEvent:D})))},_=e=>{let{id:t,children:n,className:s,style:l,triggerEvent:a,data:c,propsFromTrigger:d,keyMatcher:m,onClick:f=u,disabled:h=!1,hidden:x=!1,closeOnClick:y=!0,handlerEvent:g="onClick",..._}=e,w=(0,o.useRef)(),A=r(),j={id:t,data:c,triggerEvent:a,props:d},N=b(h,j);function I(){let e=w.current;e.focus(),e.addEventListener("animationend",(()=>setTimeout(v.hideAll)),{once:!0}),e.classList.add("contexify_item-feedback"),f(j)}return b(x,j)?null:o.createElement("div",{..._,[g]:function(e){j.event=e,e.stopPropagation(),N||(y?I():f(j))},className:(0,i.A)("contexify_item",s,{"contexify_item-disabled":N}),style:l,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&
2(e.stopPropagation(),j.event=e,I())},ref:function(e){e&&!N&&(w.current=e,A.set(e,{node:e,isSubmenu:!1,keyMatcher:!N&&p(m)&&(e=>{m(e)&&(e.stopPropagation(),e.preventDefault(),j.event=e,I())})}))},tabIndex:-1,role:"menuitem","aria-disabled":N},o.createElement("div",{className:"contexify_itemContent"},n))},w=e=>{let{triggerEvent:t,data:n,propsFromTrigger:i,hidden:s=!1}=e;return b(s,{data:n,triggerEvent:t,props:i})?null:o.createElement("div",{className:"contexify_separator"})}}}]);
3!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b3144adc-534d-56b3-a01c-c87b51786fc4")}catch(e){}}();
4//# debugId=b3144adc-534d-56b3-a01c-c87b51786fc4

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.