PageSourceSearch

https://customer.izi-logistics.com/static/js/166.7011e482.chunk.js

js izi-logistics.com collected 2026-10-02 15:04:19 UTC 14,287 bytes, 1 lines download raw bytes

1(this["webpackJsonp@izi-logistics/customer"]=this["webpackJsonp@izi-logistics/customer"]||[]).push([[166],{1669:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(33),i=n(112),l=n(12),c=n(435),u=n(62),s=n(13),f=n(2),m=n(26),d=n(9),p=n(137),h=n(1),y=n(6),b=n(504),v=n(58),g=n(3),E=n(503),w=n(42),_=n(35),O=function(){return(O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},j=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i},k=a.a.lazy((function(){return n.e(26).then(n.bind(null,1668))})),x=a.a.lazy((function(){return n.e(167).then(n.bind(null,1740))})),C=a.a.lazy((function(){return n.e(163).then(n.bind(null,1750))})),S=a.a.lazy((function(){return n.e(165).then(n.bind(null,1727))})),P=function(e){var t=Object(o.a)(f.a.APP),n=Object(w.p)(),r=j(a.a.useState(0),2),c=r[0],u=r[1],s=e.record,m=e.config,d=Object(v.a)(),p=Object(i.a)(d.breakpoints.down("sm")),h={record:s},y=[{name:t.t("ramp_help_direction"),component:a.a.createElement(_.a,null,a.a.createElement(S,O({},h,{config:m})))},{name:t.t("working_plan_working_days"),component:a.a.createElement(_.a,null,a.a.createElement(x,O({},h,{config:m})))},{name:t.t("none_work_time"),component:a.a.createElement(_.a,null,a.a.createElement(C,O({},h,{config:m})))},{name:t.t("working_plan_holidays"),component:a.a.createElement(_.a,null,a.a.createElement(k,O({},h,{config:m})))}],b=y.find((function(e,t){return t===c}));return a.a.createElement(l.a,{container:!0,direction:"column",style:{padding:g.a.spacing(1)}},a.a.createElement(l.a,{container:!0,justify:"flex-end"},a.a.createElement(E.f,{orientation:p?"vertical":"horizontal",style:{width:p?"100%":"initial"},value:c,textColor:"primary",variant:"fullWidth"},y.map((function(e,t){return a.a.createElement("div",{key:e.name,onClick:function(){return u(t)}},a.a.createElement(E.e,{label:e.name,color:"primary",selected:c===t,isLast:t===y.length-1}))})))),a.a.createElement(l.a,{container:!0,className:n.sectionItem,style:{padding:g.a.spacing(p?1:4)}},(null===b||void 0===b?void 0:b.component)||null))},z=n(128),I=n(100),R=n(46),A=n(14),F=n(73),W=n(257),D=n(150),T=n.n(D),L=n(16),M=n(169),U=n.n(M),B=n(195),G=n.n(B),H=n(7),K=function(){return(K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},N=function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(t){o(t)}}function l(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((r=r.apply(e,t||[])).next())}))},q=function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(l){o=[6,l],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},J=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Q=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i};var V=Object(s.b)("store")((function(e){var t=this,n=e.item,r=e.store.warehouseStore,i=e.onCh
1ange,c=J(e,["item","store","onChange"]),u=(Object(o.a)(f.a.OFFER_FORM),Object(o.a)(f.a.APP)),s=Object(o.a)(f.a.FORM),p=a.a.useRef(null),h=Q(a.a.useState(!1),2),y=h[0],b=h[1],v=1===n.selected,g={showFilters:!1,isSelectable:!1,hideSearch:!0,hideHeader:!0,rowContent:function(e){return a.a.createElement(d.e,{key:e._id,record:e},a.a.createElement(d.J,K({v4:!0,v3:!0,config:c.config},c,{order:e})))}},E={sortBy:"sorting_pickupAt"};E.fields=[{name:"status",value:H.E.ApprovedQuote},{name:"all-in-progress",value:1},{name:"warehouse",value:n.parent}];var w={isNotReloading:!0,client:c.config.client,useUrlQuery:!0,defaultFilter:E,query:m.qb};return a.a.createElement(a.a.Fragment,null,a.a.createElement(d.g,{v1:!0,onOk:function(){return N(t,void 0,void 0,(function(){var e;return q(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),n.selected?[2]:(b(!0),[4,r.updateWarehouse({_id:n._id,selected:1})]);case 1:return t.sent(),i&&i(n,d.a.DELETED),[3,4];case 2:return e=t.sent(),A.c.error(e.message),[3,4];case 3:return b(!1),[7];case 4:return[2]}}
1))}))},dialogProps:{fullWidth:!0,maxWidth:"md"},title:u.t("main_orders"),bodyStyle:{display:"flex"},body:a.a.createElement(l.a,{container:!0,justify:"center",alignItems:"center"},a.a.createElement(d.P,null,"Orders will be moved to new default ramp"),a.a.createElement(d.d,{options:w,config:g})),actionOkTitle:s.t("form_btn_confirm"),withoutWrapper:!0,actionInit:function(e){return a.a.createElement("input",{ref:p,type:"hidden",onClick:e})}}),a.a.createElement(G.a,{onClick:d.W},a.a.createElement(T.a,{disabled:y,control:a.a.createElement(L.a,{title:u.t(v?"mark_as_un_selected":"mark_as_selected")},a.a.createElement(U.a,{color:"primary",checked:v,onChange:function(e){return N(t,void 0,void 0,(function(){return q(this,(function(t){return Object(d.W)(e),n.selected||null===p||void 0===p||p.current.click(),[2]}))}))},name:"status"})),label:a.a.createElement(l.a,null)})))})),X=function(){return(X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Y=function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{c(r.next(e))}catch(t){o(t)}}function l(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((r=r.apply(e,t||[])).next())}))},Z=function(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(l){o=[6,l],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}},$=a.a.lazy((function(){return n.e(71).then(n.bind(null,1728))}
1)),ee=Object(s.b)("store")((function(e){var t=e.record,n=e.onChange,r=e.store.accountStore.currentUser,o=r._id,u=r.rolesV1,s=e.expandContent,f=e.handleExpandClick,p=e.config,h=e.headerColumns,y=u.find((function(e){var t;return null===(t=e.tools.general)||void 0===t?void 0:t.includes(F.b.GENERAL_can_edit_company_data)})),b=t.createdBy&&o===t.createdBy._id,v=Object(i.a)(g.a.breakpoints.down("sm")),E=[{content:a.a.createElement(c.a,{item:t,config:p,label:!0,onChange:n}),available:b||y},{content:a.a.createElement(d.k,{onOk:function(){return Y(void 0,void 0,void 0,(function(){var e;return Z(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,p.client.mutate({mutation:m.H,variables:{_id:t._id}})];case 1:return r.sent(),n(t,d.a.DELETED),[3,3];case 2:return e=r.sent(),A.c.error(e.message||e),[3,3];case 3:return[2]}}))}))},v1:!0,withoutWrapper:!0,withText:!0,value:t.name,disabled:!b}),available:b||y},u.find((function(e){var t;return null===(t=e.tools.general)||void 0===t?void 0:t.includes(F.b.GENERAL_can_merge_ramps)}))&&{content:a.a.createElement($,{onChange:n,config:p,label:!0,item:t}),available:!0}].filter((function(e){return null===e||void 0===e?void 0:e.available})),w=a.a.createElement(a.a.Fragment,null,a.a.createElement(V,{item:t,onChange:n,config:p}),E.length&&a.a.createElement(z.a,{show:!0,list:E,style:{marginRight:g.a.spacing(.5)}})||null,s),_=[{value:a.a.createElement(l.a,{item:!0,xs:12,container:!0,direction:"column",justify:"center",alignItems:"flex-start"},a.a.createElement(d.P,{v4:!0}," ",t.name||"-"),t.description&&a.a.createElement(d.P,{v4:!0,variant:"caption"},t.description))},{value:a.a.createElement(l.a,{item:!0,xs:12,container:!0,alignItems:"center"},a.a.createElement(d.P,null," ",t.timeSlotDuration||"-"))},{value:a.a.createElement(l.a,{item:!0,xs:12,container:!0,alignItems:"center"},a.a.createElement(d.P,null," ",t.emails.join(", ")||"-"))},{value:a.a.createElement(l.a,{item:!0,xs:12,container:!0,alignItems:"center"},a.a.createElement(I.b,{config:p,user:t.manager,more:!0}))},{value:a.a.createElement(l.a,{item:!0,xs:12,container:!0,alignItems:"center"},a.a.createElement(I.b,{config:p,user:t.createdBy,more:!0}))},{value:a.a.createElement(l.a,{item:!0,xs:12,container:!0,alignItems:"center",justify:"space-between"},a.a.createElement(l.a,{container:!0,alignItems:"center",justify:"center",style:X({},!v&&{maxWidth:"calc(100% - 140px)"})},Object(R.b)(t.createdAt)),v?null:a.a.createElement(l.a,{container:!0,alignItems:"center",justify:"center",style:{width:"fit-content"}},w))},v?{value:a.a.createElement(l.a,{item:!0,xs:12,container:!0,alignItems:"center",justify:v?"flex-start":"flex-end",style:{width:"initial"}},w)}:null].filter((function(e){return e}));return a.a.createElement(l.a,{container:!0,alignItems:"center",onClick:f,style:{padding:g.a.spacing(1)}},a.a.createElement(W.a,{v1:!0,headerColumns:h,childs:_}))})),te=function(){return(te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ne(e){var t=e.config,n=e.record,r=e.onChange,o=e.headerColumns;return a.a.createElement(b.a,te({},{record:n,onChange:r},{config:t,body:a.a.createElement(P,{record:n,config:t}),header:function(e,i){return a.a.createElement(ee,{headerColumns:o,config:t,record:n,onChange:r,expandContent:e,handleExpandClick:i})}}))}var re=function(){return(re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},ae=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i},oe=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ae(arguments[t]));return e};t.default=Object(s.b)("store")(Object(s.c)((function(e){var t=e.store,n=e.config,r=e.onChange,s=Object(o.a)(f.a.ORDER_LIST),b=Object(o.a)(f.a.FORM),v=Object(o.a)(f.a.APP),E=Object(i.a)(g.a.breakpoints.down("sm")),w=Object(u.d)((function(){return{key:1,onChange:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];w.key=Date.now(),r&&r.apply(void 0,oe(e))}}})),_={fields:[{name:"ramps",value:1},t.warehouseStore.item&&{name:"parent",value:t.warehouseStore.item._id}]}
1,O=re(re({},n),{defaultFilter:_,query:m.Ab,searchFields:["name"],sortFields:[{name:s.t("order_list_filter_sort_created_at"),value:"createdAt"},{name:b.t("form_input_name"),value:"name"},{name:b.t("form_input_name_emails"),value:"emails"}]}),j=[{size:2,name:b.t("form_input_name"),sortable:!0,sortKey:"name"},{size:1,name:v.t("warehouse_timeSlotDuration"),sortable:!0,sortKey:"timeSlotDuration"},{size:2,name:b.t("form_input_name_emails"),sortable:!0,sortKey:"emails"},{size:2,name:v.t("main_manager")},{size:2,name:s.t("order_list_filter_own")},{size:3,name:b.t("form_input_name_created_at"),sortable:!0,sortKey:"createdAt"},E?{size:2,name:b.t("form_input_actions"),style:{display:"flex",justifyContent:"flex-end"}}:null].filter((function(e){return e})),k={id:"warehouse-ramps",title:a.a.createElement(l.a,{container:!0,alignItems:"center",justify:"space-between"},a.a.createElement(d.P,{variant:"h6",style:{fontWeight:600}},v.t("warehouse_ramps")),a.a.createElement("div",null,[y.d.CUSTOMER,y.d.WAREHOUSE].find((function(e){return t.accountStore.currentUser.appType.includes(e)}))&&a.a.createElement(c.a,{item:Object(h.f)(p.a.create({parent:{_id:t.warehouseStore.item._id}})),onChange:w.onChange,config:n})||null)),hideSort:!E,hasHeaderSort:!0,searchMDSize:4,headerColumns:j,rowContent:function(e,t){return a.a.createElement(ne,{headerColumns:j,config:n,record:e,onChange:w.onChange})}};return a.a.createElement(d.d,{key:w.key,options:O,config:k})})))}}]);

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.