PageSourceSearch

https://castreactor.web.app/static/js/937.27149579.chunk.js

js castreactor.web.app collected 2026-10-03 12:19:29 UTC 7,284 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkkioskReactorApp=self.webpackChunkkioskReactorApp||[]).push([[937],{13937:function(e,n,r){r.r(n);r(72791);var t=r(75348),a=r(45743),i=r(69160),d=r(76436),l=r(80184);n.default=function(){return(0,l.jsx)(d.Z,{title:t.Z.addAccount,mainButtons:null,children:(0,l.jsx)(i.Z,{modeEdit:a.jg})})}},69160:function(e,n,r){r.d(n,{Z:function(){return V}});var t=r(74165),a=r(1413),i=r(15861),d=r(72791),l=r(61889),o=r(45409),c=r(20890),u=r(85523),s=r(9955),m=r(8007),h=r(17834),p=r(45743),Z=r(96803),x=r(75348),b=r(57689),f=r(23543),C=r(81944),j=r(23887),g=r(76032),k=r(29439),v=r(45987),B=r(63466),I=r(13400),P=r(74223),T=r(80184),w=(0,P.Z)((0,T.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),y=(0,P.Z)((0,T.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),E=["value","title"];var K=function(e){var n=e.value,r=(e.title,(0,v.Z)(e,E)),t=(0,d.useState)(!1),i=(0,k.Z)(t,2),l=i[0],c=i[1];return(0,T.jsx)(o.Z,(0,a.Z)((0,a.Z)({type:l?"text":"password",value:n},r),{},{InputProps:{endAdornment:(0,T.jsx)(B.Z,{position:"end",children:(0,T.jsx)(I.Z,{onClick:function(){c(!l)},edge:"end",children:l?(0,T.jsx)(w,{}):(0,T.jsx)(y,{})})})}}))},L=r(561),W=r(83341),N=r(26413),V=(r(91402),function(e){e.className;var n=e.modeEdit,r=(0,h.Z)(),d=r.currentBrand,k=r.setBrand,v=r.userInDb,B=r.superAdmin,I=(r.user,(0,W.Z)().addError),P=(0,b.s0)();var w=function(){var e=(0,i.Z)((0,t.Z)().mark((function e(r){var i,l,o;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B||n!==p.jg){e.next=3;break}return I(x.Z.error.needSuperUser),e.abrupt("return");case 3:if(r.authKey||(r.authKey=(0,g.uuid)()),delete r.brandId,B&&n!==p.jg||(delete r.credit,delete r.minimalCreditToLock,delete r.blockWhenInsufficientCredit,delete r.useChargeOnline),d()&&n!=p.jg){e.next=23;break}return e.next=9,(0,Z.KV)((0,f.y1)(r));case 9:return i=e.sent,e.next=12,k(i.data.addBrand);case 12:if(d()){e.next=17;break}return e.next=15,(0,Z.KV)((0,C.Gb)((0,a.Z)((0,a.Z)({},v),{},{brandId:i.data.addBrand.id})));case 15:return e.next=17,k(i.data.addBrand);case 17:if(n!=p.jg){e.next=20;break}return e.next=20,(0,f.HV)([null===(l=i.data)||void 0===l?void 0:l.addBrand]);case 20:P("/"+N.ly,{replace:!0}),e.next=33;break;case 23:return e.next=25,(0,Z.KV)((B?j.$:f.HX)(B?(0,a.Z)((0,a.Z)({},r),{},{id:d().id,minimalCreditToLock:r.minimalCreditToLock?parseInt(r.minimalCreditToLock):null,credit:r.credit?parseInt(r.credit):null}):(0,a.Z)((0,a.Z)({},r),{},{id:d().id})));case 25:return o=e.sent,e.next=28,k(B?o.data.updateBrandAdmin:o.data.updateBrand);case 28:if(!B){e.next=32;break}return e.abrupt("return",o.data.updateBrandAdmin);case 32:return e.abrupt("return",o.data.updateBrand);case 33:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,T.jsx)(p.ZP,{getItemFunction:function(){return n==p.jg?null:d()},buildFormValues:function(e){var n;return{initialValues:{brandName:e.brandName||"",brandId:null===(n=d())||void 0===n?void 0:n.id,contactEmail:e.contactEmail||(null===v||void 0===v?void 0:v.email)||"",credit:e.credit||"0",minimalCreditToLock:e.minimalCreditToLock||"0",blockWhenInsufficientCredit:e.blockWhenInsufficientCredit||!1,loggingProjectId:e.loggingProjectId||"",authKey:e.authKey||"",useChargeOnline:e.useChargeOnline},validationSchema:{brandName:m.Z_().max(255).required(x.Z.check.fieldRequired),contactEmail:m.Z_().email(x.Z.check.badEmailFormat).required(x.Z.check.fieldRequired)}}},getCardContentForm:function(e){var r=e.errors,t=e.handleBlur,a=e.handleChange,i=(e.handleSubmit,e.isSubmitting,e.setFieldValue),m=e.touched,h=e.values;return(0,T.jsxs)(l.ZP,{container:!0,spacing:4,children:[(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(o.Z,{inputProps:{autocomplete:"new-password"},error:Boolean(m.brandName&&r.brandName),fullWidth:!0,helperText:m.brandName&&r.brandName,label:x.Z.brandName,name:"brandName",onBlur:t,onChange:a,required:!0,value:h.brandName})}),d()&&(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(L.Z,{inputProps:{autocomplete:"new-password"},error:Boolean(m.brandId&&r.brandId),fullWidth:!0,helperText:m.brandId&&r.brandId,label:x.Z.brandId,name:"brandId",onBlur:t,onChange:a,disabled:!0,value:h.brandId})}),(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(o.Z,{inputProps:{autocomplete:"new-password"},error:Boolean(m.contactEmail&&r.contactEmail),fullWidth:!0,helperText:m.contactEmail&&r.contactEmail,label:x.Z.contactEmail,name:"contactEmail",onBlur:t,onChange:a,required:!0,value:h.contactEmail})}),d()&&(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(K,{inputProps:{autocomplete:"new-password"},error:Boolean(m.authKey&&r.authKey),fullWidth:!0,helperText:m.authKey&&r.authKey,label:x.Z.authKey,name:"authKey",onBlur:t,onChange:a,disabled:!0,value:h.authKey})}),B&&n!==p.jg&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(c.Z,{children:x.Z.adminSection})}),(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(o.Z,{inputProps:{autocomplete:"new-password"},error:Boolean(m.credit&&r.credit),fullWidth:!0,helperText:m.credit&&r.credit,label:x.Z.credits,name:"credit",onBlur:t,onChange:a,required:!0,value:h.credit})}),(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(o.Z,{inputProps:{autocomplete:"new-password"},error:Boolean(m.minimalCreditToLock&&r.minimalCreditToLock),fullWidth:!0,helperText:m.minimalCreditToLock&&r.minimalCreditToLock,label:
1x.Z.minimalCreditToLock,name:"minimalCreditToLock",onBlur:t,onChange:a,required:!0,value:h.minimalCreditToLock})}),(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(u.Z,{control:(0,T.jsx)(s.Z,{checked:h.blockWhenInsufficientCredit,edge:"start",name:"direction",onChange:function(){i("blockWhenInsufficientCredit",!h.blockWhenInsufficientCredit)}}),label:x.Z.blockWhenInsufficientCredit})}),(0,T.jsx)(l.ZP,{item:!0,md:12,xs:12,children:(0,T.jsx)(u.Z,{control:(0,T.jsx)(s.Z,{checked:h.useChargeOnline,edge:"start",name:"direction",onChange:function(){i("useChargeOnline",!h.useChargeOnline)}}),label:x.Z.useChargeOnline})})]})]})},saveForm:function(){var e=(0,i.Z)((0,t.Z)().mark((function e(n,r){return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w(r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(n,r){return e.apply(this,arguments)}}(),applyButton:d()&&n!=p.jg?x.Z.update:x.Z.create,messageSuccess:d()&&n!=p.jg?x.Z.notif.brandUpdated:x.Z.notif.brandCreated,titleForm:d()&&n!=p.jg?x.Z.updateBrand:x.Z.createBrand,getPathToData:function(e){return e}})})}}]);
2//# sourceMappingURL=937.27149579.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.