PageSourceSearch

https://portal.ziicloud.com/static/js/product-group.d7627edf.chunk.js

js ziicloud.com collected 2026-09-24 10:58:57 UTC 20,740 bytes, 2 lines download raw bytes

1(this["webpackJsonpzii-portal"]=this["webpackJsonpzii-portal"]||[]).push([[120],{1181:function(e,a,t){"use strict";t.r(a);var n=t(2),l=t.n(n),r=t(171),o=t(331),i=t(203),c=t(191),s=t(186),d=t(169),m=t(137),u=t(13),p=t(51),g=t(1210),b=t(771),E=t(773),v=t(1254),O=t(1255),h=t(1265),y=t(1266),C=t(167),f=t(172),T=t(173),N=t(166),S=t(34),M=t(181),w=t(537);const j={Code:"",Description:"",ApplyToZiiTO:!1,ApplyToKiosk:!1,ApplyToOnline:!1,ApplyToQRCode:!1},k=T.g().shape({Code:T.i().max(8).required(S.a.t("general:validation.canNotBeLeftBlack")),Description:T.i().max(24).required(S.a.t("general:validation.canNotBeLeftBlack"))});var q=e=>{let{modalOpen:a,toggleModal:t,currentGroup:r}=e;const{t:o}=Object(m.a)(),i=Object(n.useRef)(),[c,s]=Object(n.useState)({});Object(n.useEffect)(()=>{if(a){const e={...j,...r};s(e)}},[r,a]);const d=()=>{Object(N.b)(o("general:notice.delete"),async()=>{try{await u.Gb.remove(r.Code),Object(N.h)(o("general:status.deleted")),t(!0)}catch(e){Object(N.d)(`${o("general:action.delete")}${o("general:status.fail")}`,e.message)}})},p=()=>{var e;(null===(e=i.current)||void 0===e?void 0:e.dirty)?Object(N.a)(()=>{t(!1)}):t(!1)};return l.a.createElement(g.a,{isOpen:a,toggle:p,wrapClassName:"modal-right",backdrop:"static"},l.a.createElement(f.c,{initialValues:c,validationSchema:k,onSubmit:(e,a)=>{let{setSubmitting:n}=a;Object(N.b)(o("general:notice.save"),async()=>{try{r.Code?await u.Gb.update(e.Code,e):await u.Gb.create(e),Object(N.h)(o("general:status.saved")),t(!0)}catch(a){Object(N.d)(`${o("general:action.save")}${o("general:status.fail")}`,a.message)}n(!1)},()=>{n(!1)})},enableReinitialize:!0,innerRef:i},e=>{let{handleChange:a,handleBlur:t,setFieldValue:n,setFieldTouched:i,values:c,errors:s,touched:m,isSubmitting:u}=e;return l.a.createElement(f.b,null,l.a.createElement(b.a,{toggle:p},r.Code?`${o("general:action.edit")} - ${r.Code}`:o("general:action.new")),l.a.createElement(E.a,null,l.a.createElement(v.a,null,l.a.createElement(O.a,null,o("site:product.group.code")),l.a.createElement(C.f,{name:"Code",value:c.Code,onChange:a,onBlur:t,invali
1d:s.Code&&m.Code,disabled:u,readOnly:r.Code}),l.a.createElement(h.a,null,s.Code)),l.a.createElement(v.a,null,l.a.createElement(O.a,null,l.a.createElement(O.a,null,o("site:product.group.description"))),l.a.createElement(C.f,{name:"Description",value:c.Description,onChange:a,onBlur:t,invalid:s.Description&&m.Description,disabled:u}),l.a.createElement(h.a,null,s.Description)),l.a.createElement(v.a,null,l.a.createElement(O.a,null,o("site:product.avail-qr")),l.a.createElement(C.i,{name:"ApplyToQRCode",value:c.ApplyToQRCode,onChange:n,onBlur:i,disabled:u})),l.a.createElement(w.a,{actionBindState:"site_product_group"},l.a.createElement(v.a,null,l.a.createElement(O.a,null,o("site:product.avail-to")),l.a.createElement(C.i,{name:"ApplyToZiiTO",value:c.ApplyToZiiTO,onChange:n,onBlur:i,disabled:u})),l.a.createElement(v.a,null,l.a.createElement(O.a,null,o("site:product.avail-kiosk")),l.a.createElement(C.i,{name:"ApplyToKiosk",value:c.ApplyToKiosk,onChange:n,onBlur:i,disabled:u}))),l.a.createElement(v.a,null,l.a.createElement(O.a,null,o("site:product.avail-online")),l.a.createElement(C.i,{name:"ApplyToOnline",value:c.ApplyToOnline,onChange:n,onBlur:i,disabled:u}))),l.a.createElement(y.a,{className:"d-flex justify-content-between"},l.a.createElement(M.a,{showDelete:!!r.Code,handleDelete:d,showSubmit:!0,showCancel:!0,handleCancel:p,disabled:u,submitting:u})))}))},F=t(216),B=t(405),D=t(212),x=t(230),A=t(22),$=t.n(A),Y=t(168);const I=T.a().of(T.g().shape({TimeName:T.i().max(30).required(S.a.t("general:validation.canNotBeLeftBlack")),ModeOption:T.g().required(S.a.t("general:validation.canNotBeLeftBlack")),FrequencyOption:T.g().when(["ModeOption"],(e,a)=>(null===e||void 0===e?void 0:e.value)===Y.T.Universal?a.nullable().required(S.a.t("general:validation.canNotBeLeftBlack")):a.nullable()),FrequencyOptionArr:T.a().when(["ModeOption"],(e,a)=>(null===e||void 0===e?void 0:e.value)===Y.T.Weekday?a.nullable().required(S.a.t("general:validation.aSelOptReq")):a.nullable()),FrequencyOptionStr:T.i().when(["ModeOption"],(e,a)=>(null===e||void 0===e?void 0:e.value)===Y.T.SpecialDays?a.nullable().required(S.a.t("general:validation.canNotBeLeftBlack")):a.nullable()),StartTime:T.i().required(S.a.t("general:validation.canNotBeLeftBlack")),EndTime:T.i().required(S.a.t("general:validation.canNotBeLeftBlack")),MenuGroupCode:T.g().nullable().required(S.a.t("general:validation.canNotBeLeftBlack"))})),H=[{value:"Everyday",label:"Everyday"}];var G=e=>{let{modalOpen:a,toggleModal:t,groups:r,current:i}=e;const{t:c}=Object(m.a)(),s=Object(n.useRef)(),[d,p]=Object(n.useState)({});Object(n.useEffect)(()=>{if(a){let e=[...i];e=e.map(e=>{var a;if(e.ModeOption=Y.T.getSelectOptions()[(null!==(a=e.Mode)&&void 0!==a?a:1)-1],e.FrequencyOption=H[0],e.FrequencyOptionArr=[],e.FrequencyOptionStr="",e.ModeOption.value===Y.T.Universal)e.FrequencyOption=H[0];else if(e.ModeOption.value===Y.T.Weekday){const a=e.Frequency.split(",");e.FrequencyOptionArr=a.map(e=>Y.Xb.getSelectOptions().find(a=>a.value===parseInt(e)))}else{const a=e.Frequency.split("-");e.FrequencyStartTime=$()(a[0]).format("DD/MM/YYYY"),e.FrequencyEndTime=$()(a[1]).format("DD/MM/YYYY"),e.FrequencyOptionStr=e.Frequency}return e}),p(e)}},[i,a]);const T=()=>{var e;(null===(e=s.current)||void 0===e?void 0:e.dirty)?Object(N.a)(()=>{t(!1)}):t(!1)};return l.a.createElement(g.a,{isOpen:a,toggle:T,wrapClassName:"modal-center",backdrop:"static",size:"xl"},l.a.createElement(f.c,{initialValues:d,validationSchema:I,onSubmit:(e,a)=>{let{setSubmitting:n}=a;Object(N.b)(c("general:notice.save"),async()=>{try{await Promise.all(e.map(e=>e.isNew?u.Hb.create({TimeName:e.TimeName,StartTime:$()(e.StartTime).format("HH:mm"),EndTime:$()(e.EndTime).format("HH:mm"),MenuGroupCode:e.MenuGroupCode.value,Mode:e.ModeOption.value,Frequency:e.ModeOption.value===Y.T.Universal?e.FrequencyOption.value:e.ModeOption.value===Y.T.Weekday?(""+e.FrequencyOptionArr.map(e=>e.value)).replace("[","").replace("]",""):e.FrequencyOptionStr}):u.Hb.update(e.BuzId,{TimeName:e.TimeName,StartTime:$()(e.StartTime).format("HH:mm"),EndTime:$()(e.EndTime).format("HH:mm"),MenuGroupCode:e.MenuGroupCode.value,Mode:e.ModeOption.value,Frequency:e.ModeOption.value===Y.T.Universal?e.FrequencyOption.value:e.ModeOption.value===Y.T.Weekday?(""+e.FrequencyOptionArr.map(e=>e.value)).replace("[","").replace("]",""):e.FrequencyOptionStr})));const a=i.filter(a=>!e.find(e=>e.BuzId===a.BuzId));await Promise.all(a.map(e=>u.Hb.remove(e.BuzId))),Object(N.h)(c("general:status.saved")),t(!0)}catch(a){Object(N.d)(`${c("general:action.save")}${c("general:status.fail")}`,a.message)}n(!1)},()=>{n(!1)})},enableReinitialize:!0,innerRef:s},e=>{let{handleChange:a,handleBlur:t,setFieldValue:n,setFieldTouched:i,values:s,errors:d,touched:m,isSubmitting:u,setValues:p}=e;return l.a.createElement(f.b,null,l.a.createElement(b.a,{toggle:T},c("site:product.group.modify-avail-time")),l.a.createElement(E.a,null,l.a.createElement(O.a,{style:{whiteSpace:"pre-wrap"}},c("site:product.group.modify-note")),l.a.createElement(F.a,null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",
1null,c("site:menuTime.name")),l.a.createElement("th",{style:{width:"15%"}},c("site:menuTime.mode")),l.a.createElement("th",{style:{width:"25%"}},c("site:menuTime.frequency")),l.a.createElement("th",null,c("site:menuTime.startTime")),l.a.createElement("th",null,c("site:menuTime.endTime")),l.a.createElement("th",{style:{width:"160px"}},c("site:menuTime.menu")),l.a.createElement("th",null))),l.a.createElement("tbody",null,s.map((e,o)=>{var c,g,b;return l.a.createElement("tr",{key:`${e.BuzId}-${o}`},l.a.createElement("td",{className:"p-2"},l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.f,{name:`[${o}].TimeName`,value:e.TimeName,onChange:a,onBlur:t,invalid:d[o]&&d[o].TimeName&&m[o]&&m[o].TimeName,disabled:u}),l.a.createElement(h.a,null,d[o]&&d[o].TimeName))),l.a.createElement("td",{className:"p-2"},l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.h,{name:`[${o}].ModeOption`,options:Y.T.getSelectOptions(),value:e.ModeOption,onChange:(a,t)=>{var l,r;n(a,t),n(`[${o}].FrequencyOption`,H[0]),n(`[${o}].FrequencyOptionArr`,[]),n(`[${o}].FrequencyOptionStr`,`${$()(null!==(l=e.frequencyStartTime)&&void 0!==l?l:Date.now()).format("YYYYMMDD")}-${$()(null!==(r=e.frequencyEndTime)&&void 0!==r?r:Date.now()).format("YYYYMMDD")}`)}
1,onBlur:i,invalid:d[o]&&d[o].ModeOption&&m[o]&&m[o].ModeOption,disabled:u,isClearable:!1}),l.a.createElement(h.a,null,d[o]&&d[o].ModeOption))),l.a.createElement("td",{className:"p-2"},(null===(c=e.ModeOption)||void 0===c?void 0:c.value)===Y.T.Universal&&l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.h,{name:`[${o}].FrequencyOption`,options:H,value:e.FrequencyOption,onChange:n,onBlur:i,invalid:d[o]&&d[o].FrequencyOption&&m[o]&&m[o].FrequencyOption,disabled:u,isClearable:!1}),l.a.createElement(h.a,null,d[o]&&d[o].FrequencyOption)),(null===(g=e.ModeOption)||void 0===g?void 0:g.value)===Y.T.Weekday&&l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.h,{name:`[${o}].FrequencyOptionArr`,options:Y.Xb.getSelectOptions(),value:e.FrequencyOptionArr,onChange:n,onBlur:i,invalid:d[o]&&d[o].FrequencyOptionArr&&m[o]&&m[o].FrequencyOptionArr,disabled:u,isClearable:!1,isMulti:!0}),l.a.createElement(h.a,null,d[o]&&d[o].FrequencyOptionArr)),(null===(b=e.ModeOption)||void 0===b?void 0:b.value)===Y.T.SpecialDays&&l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.e,{startDate:e.FrequencyStartTime,endDate:e.FrequencyEndTime,onChange:(e,a)=>{n(`[${o}].FrequencyOptionStr`,`${$()(e).format("YYYYMMDD")}-${$()(a).format("YYYYMMDD")}`)},onBlur:()=>{},format:"DD/MM/YYYY",className:"w-100",disabled:u,open:"left"}),l.a.createElement(h.a,null,d[o]&&d[o].FrequencyOptionStr))),l.a.createElement("td",{className:"p-2"},l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.c,{name:`[${o}].StartTime`,value:e.StartTime,onChange:n,onBlur:i,disabled:u,invalid:d[o]&&d[o].StartTime&&m[o]&&m[o].StartTime,showTimeInput:!0,showTimeSelect:!0,showTimeSelectOnly:!0,timeIntervals:"15",dateFormat:"HH:mm"}),l.a.createElement(h.a,null,d[o]&&d[o].StartTime))),l.a.createElement("td",{className:"p-2"},l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.c,{name:`[${o}].EndTime`,value:e.EndTime,onChange:n,onBlur:i,disabled:u,invalid:d[o]&&d[o].EndTime&&m[o]&&m[o].EndTime,showTimeInput:!0,showTimeSelect:!0,showTimeSelectOnly:!0,timeIntervals:"15",dateFormat:"HH:mm"}),l.a.createElement(h.a,null,d[o]&&d[o].EndTime))),l.a.createElement("td",{className:"p-2"},l.a.createElement(v.a,{className:"mb-0"},l.a.createElement(C.h,{name:`[${o}].MenuGroupCode`,options:r.map(e=>({value:e.Code,label:e.Description})),value:e.MenuGroupCode,onChange:n,onBlur:i,invalid:d[o]&&d[o].MenuGroupCode&&m[o]&&m[o].MenuGroupCode,disabled:u,isClearable:!1}),l.a.createElement(h.a,null,d[o]&&d[o].MenuGroupCode))),l.a.createElement("td",{className:"p-2 text-center",style:{verticalAlign:"middle",width:"32px"}},l.a.createElement(B.a,{to:"#",color:"link",style:{textDecoration:"none",cursor:"pointer"},onClick:()=>{const e=[...s];e.splice(o,1),p(e)},className:"p-0 text-danger"},l.a.createElement(D.a,null))))})),l.a.createElement("tfoot",null,l.a.createElement("tr",null,l.a.createElement("td",{colSpan:5,className:"p-2"},l.a.createElement(o.a,{color:"primary",size:"sm",outline:!0,onClick:async()=>{const e=[...s];let a,t;if(e.length>0){const n=e[e.length-1],l=$()(n.StartTime),r=$()(n.EndTime),o=r.diff(l,"minutes");a=$()(r),t=$()(a).add(o,"minutes")}else a=$()().startOf("day"),t=$()(a).add(15,"minutes");p([...e,{BuzId:"new-"+(e.length+=1),Name:"",StartTime:a.toDate(),EndTime:t.toDate(),MenuGroupCode:null,isNew:!0}])}},l.a.createElement(x.a,null)," ",c("general:action.add"))))))),l.a.createElement(y.a,{className:"d-flex justify-content-between"},l.a.createElement(M.a,{showSubmit:!0,showCancel:!0,handleCancel:T,disabled:u,submitting:u})))}))},R=t(214),z=t(1271),L=t(163),U=t(658);var P=e=>{let{modalOpen:a,toggleModal:t,code:r}=e;const{t:i}=Object(m.a)(),[c,s]=Object(n.useState)(!1),[d,b]=Object(n.useState)([]),[v,O]=Object(n.useState)(""),[h,C]=Object(n.useState)({}),[f,T]=Object(n.useState)([]),[S,M]=Object(n.useState)(!1),w=Object(n.useCallback)(async()=>{try{const e=await u.Eb.listMenu(r);if(e.length>0){const a={},t=[];e.forEach(e=>{t.push({Code:e.Code,Name:e.CultureCategory,Category:e.Category,OrderIndex:e.OrderIndex}),a[e.Code]=e.MenuItems.filter(e=>
1(!e.Instruction||e.Instruction&&!e.OnlyShowOnSubMenu)&&!e.SubCategory).sort((e,a)=>e.OrderIndex-a.OrderIndex)}),b(t.sort((e,a)=>e.OrderIndex-a.OrderIndex)),C(a),O(t[0].Code),T(a[t[0].Code])}}catch(e){p.b.error(e.message,i("general:status.error"))}return[]},[r,i]);Object(n.useEffect)(()=>((async()=>{s(!0),await w(),s(!1)})(),()=>{b([]),C({}),O(""),T([])}),[w]);return l.a.createElement(g.a,{isOpen:a,toggle:t,backdrop:"static",wrapClassName:"modal-full menu-modal"},l.a.createElement(L.a,{isLoading:c,global:!1}),l.a.createElement(E.a,null,l.a.createElement("div",{className:"menu-container "},l.a.createElement("div",{className:"products-container"},l.a.createElement(R.ReactSortable,{list:f,setList:e=>{T(e),C(a=>{const t={...a};return t[v]=e,t})},className:"products"},f.map(e=>l.a.createElement("div",{key:e.ItemCode,"data-id":e.ItemCode,className:"mb-1 d-inline-block mr-1",style:{width:"138px",height:"138px",border:"1px solid #"+(e.BorderColor||"d7d7d7"),backgroundColor:"#e9ecef",overflow:"hidden",cursor:"move",lineHeight:"138px"}},e.PictureUrl&&l.a.createElement("div",{style:{width:"136px",height:"86px",lineHeight:"136px",overflow:"hidden",background:`url(${e.PictureUrl.replace("~","")}) center center no-repeat`,backgroundSize:"cover"}}),l.a.createElement("p",{className:"mb-0 h6 ",style:{height:e.PictureUrl?"50px":"136px",display:"table-cell",verticalAlign:"middle",width:"136px",textAlign:"center"}}
1,e.Instruction?"*":"",e.CultureDescription))))),l.a.createElement("div",{className:"categories-container"},l.a.createElement(R.ReactSortable,{list:d,setList:e=>{b(e)},className:"list-group list-group-flush categories",handle:".handle",tag:"ul"},d.map(e=>l.a.createElement(z.a,{"data-id":e.Code,key:e.Code,style:{borderBottom:"1px solid #d7d7d7",cursor:"move",backgroundColor:e.BorderColor?"#"+e.BorderColor:"none"},className:"px-1"},l.a.createElement(B.a,{className:"mb-0 p-0",onTouchStart:()=>{O(e.Code),T(h[e.Code])},onMouseDown:()=>{"ontouchstart"in document||(O(e.Code),T(h[e.Code]))},active:e.Code===v},l.a.createElement(U.a,{className:"handle mr-2"}),e.Name))))))),l.a.createElement(y.a,null,l.a.createElement("div",{className:"d-flex justify-content-between align-items-center w-100"},l.a.createElement("div",null,"Drag menu item or category to arrange"),l.a.createElement("div",null,l.a.createElement(o.a,{color:"primary",onClick:async()=>{Object(N.b)(i("general:notice.save"),async()=>{M(!0);try{await u.Fb.sort(d.map((e,a)=>({MainCode:r,KeyCode:e.Code,OrderIndex:a}))),Object.keys(h).forEach(async e=>{const a=h[e],t=d.find(a=>a.Code===e);await u.Eb.sort(a.map((e,a)=>({MainCode:t.Category,KeyCode:e.ItemCode,OrderIndex:a})))}),t(!0),Object(N.h)(i("general:status.saved"))}catch(e){Object(N.d)(`${i("general:action.save")}${i("general:status.fail")}`,e.message)}M(!1)},()=>{})},disabled:S},i(S?"general:status.submitting":"general:action.save"))," ",l.a.createElement(o.a,{color:"light",onClick:t,disabled:S},i("general:action.cancel"))))))};a.default=()=>{const{t:e}=Object(m.a)(),[a,t]=Object(n.useState)(!1),[g,b]=Object(n.useState)(!1),[E,v]=Object(n.useState)(!1),[O,h]=Object(n.useState)(!1),[y,C]=Object(n.useState)([]),[f,T]=Object(n.useState)({}),[N,S]=Object(n.useState)([]),M=Object(n.useCallback)(async()=>{h(!0);try{const e=await u.Gb.list();C(e);const a=await u.Hb.list();S(a)}catch(a){p.b.error(a.message,e("general:status.error"))}h(!1)},[e]),w=Object(n.useCallback)(async e=>{a&&T({}),t(!a),e&&(h(!0),await M(),h(!1))},[M,a]),j=async e=>{b(!g),e&&(h(!0),await M(),h(!1))},k=Object(n.useCallback)(()=>{v(!E)},[E]);Object(n.useEffect)(()=>{M()},[M]);const F=l.a.useMemo(()=>[{accessor:"Code",Header:e("site:product.group.code")},{accessor:"Description",Header:e("site:product.group.description")},{id:"available-time",Header:e("site:product.group.avail-time"),Cell:e=>{let{row:{original:a}}=e;const t=N&&N.filter(e=>e.MenuGroupCode===a.Code);return t&&t.map(e=>`${e.TimeName}(${e.StartTime} - ${e.EndTime})`).join(", ")||"All Day"}},{id:"action",Header:"",Cell:e=>{let{row:{original:a}}=e;return l.a.createElement("div",{className:"text-right"},l.a.createElement(o.a,{onClick:()=>{T(a),w()},color:"light",size:"sm"},"Edit")," ",l.a.createElement(o.a,{onClick:()=>{T(a),k()},color:"light",size:"sm"},"Arrange"))}}],[e,N,k,w]),B=Object(n.useRef)();return l.a.createElement(l.a.Fragment,null,l.a.createElement(r.a,{heading:"menu:site.product.group"}),l.a.createElement(i.a,{className:"mb-4"},l.a.createElement(c.a,null,l.a.createElement(s.a,{className:"d-flex justify-content-between"},l.a.createElement("span",null,l.a.createElement(o.a,{color:"light",onClick:()=>{j()}},e("site:product.group.modify-avail-time"))),l.a.createElement("span",null,l.a.createElement(o.a,{color:"light",onClick:()=>{B.current.resetFilters()},disabled:O},e("general:action.reset-filters"))," ",l.a.createElement(o.a,{color:"primary",onClick:()=>{T({}),w()}},e("general:action.new")))),l.a.createElement(d.a,{columns:F,data:y,showPageJump:!0,showPageSizeOptions:!0,loading:O,innerRef:B}),l.a.createElement(q,{modalOpen:a,toggleModal:w,currentGroup:f}),l.a.createElement(P,{modalOpen:E,toggleModal:k,code:f.Code}),l.a.createElement(G,{modalOpen:g,toggleModal:j,groups:y,current:N.map(e=>{var a;const t=e.StartTime.split(":"),n=e.EndTime.split(":"),l=new Date;l.setHours(t[0]),l.setMinutes(t[1]),l.setSeconds(0);const r=new Date;return r.setHours(n[0]),r.setMinutes(n[1]),l.setSeconds(0),{...e,StartTime:l,EndTime:r,MenuGroupCode:{value:e.MenuGroupCode,label:null===(a=y.find(a=>a.Code===e.MenuGroupCode))||void 0===a?void 0:a.Description}}})}))))}},181:function(e,a,t){"use strict";var n=t(2),l=t.n(n),r=t(137),o=t(331);a.a=e=>{let{showSubmit:a,showCancel:t,handleSubmit:n,handleCancel:i,showDelete:c,handleDelete:s,showDisable:d,handleDisable:m,showEnable:u,handleEnable:p,showUnbind:g,handleUnbind:b,showTest:E,handleTest:v,showClose:O,handleClose:h,showModify:y,handleModify:C,disabled:f,submitting:T,prependAdditions:N,appendAdditions:S}=e;const{t:M}=Object(r.a)();return l.a.createElement(l.a.Fragment,null,l.a.createElement("span",null,c&&l.a.createElement(o.a,{color:"danger",onClick:s,className:"mr-1"},M("general:action.delete")),u&&l.a.createElement(o.a,{color:"success",onClick:p,className:"mr-1"},M("general:action.enable")),d&&l.a.createElement(o.a,{color:"danger",onClick:m,className:"mr-1"},M("general:action.disable")),g&&l.a.createElement(o.a,{color:"danger",onClick:b,className:"mr-1"},M("general:action.unbind")),E&&l.a.createElement(o.a,{color:"primary",onClick:v,className:"mr-1"},M("general:action.test")),N),l.a.createElement("span",null,S,a&&l.a.createElement(o.a,{color:"primary",type:"submit",disabled:f,className:"ml-1",onClick:n},M(T?"general:status.submitting":"general:action.save")),t&&l.a.createElement(o.a,{color:"light",onClick:i,disabled:f,className:"ml-1"},M("general:action.cancel")),y&&l.a.createElement(o.a,{color:"light",onClick:C,className:"ml-1"},M("general:action.modify")),O&&l.a.createElement(o.a,{color:"light",onClick:h,className:"ml-1"},M("general:action.close"))))}},186:function(e,a,t){"use strict";
1var n=t(10),l=t(15),r=t(2),o=t.n(r),i=t(27),c=t.n(i),s=t(39),d=t.n(s),m=t(162),u=["className","cssModule","tag"],p={tag:m.q,className:c.a.string,cssModule:c.a.object},g=function(e){var a=e.className,t=e.cssModule,r=e.tag,i=Object(l.a)(e,u),c=Object(m.m)(d()(a,"card-title"),t);return o.a.createElement(r,Object(n.a)({},i,{className:c}))};g.propTypes=p,g.defaultProps={tag:"div"},a.a=g},191:function(e,a,t){"use strict";var n=t(10),l=t(15),r=t(2),o=t.n(r),i=t(27),c=t.n(i),s=t(39),d=t.n(s),m=t(162),u=["className","cssModule","innerRef","tag"],p={tag:m.q,className:c.a.string,cssModule:c.a.object,innerRef:c.a.oneOfType([c.a.object,c.a.string,c.a.func])},g=function(e){var a=e.className,t=e.cssModule,r=e.innerRef,i=e.tag,c=Object(l.a)(e,u),s=Object(m.m)(d()(a,"card-body"),t);return o.a.createElement(i,Object(n.a)({},c,{className:s,ref:r}))};g.propTypes=p,g.defaultProps={tag:"div"},a.a=g},537:function(e,a,t){"use strict";var n=t(50);a.a=Object(n.b)(e=>{let{versionAuth:a}=e;return{versionAuth:a}},{})(e=>{let{actionBindState:a,children:t,versionAuth:n}=e;return n.auth_state?t:n[a]?null:t})}}]);
2//# sourceMappingURL=product-group.d7627edf.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.