1!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]="c0e7f6b9-bf1b-4c9c-8761-5fb3b79f7bbd",e._sentryDebugIdIdentifier="sentry-dbid-c0e7f6b9-bf1b-4c9c-8761-5fb3b79f7bbd")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2026-23-Sep_07H-09M-57S_GMT-04:00"},(self.webpackChunkwebstaurantstore=self.webpackChunkwebstaurantstore||[]).push([[1203],{11203:(e,n,t)=>{t.r(n),t.d(n,{default:()=>m});var r=t(62540),a=t(63696),o=t(2804),i=t(79215),s=t(83144),c=t(26687);function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n,t,r,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,a)}function f(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){u(o,r,a,i,s,"next",e)}function s(e){u(o,r,a,i,s,"throw",e)}i(void 0)}))}}function d(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,o=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw a}}return o}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var b=function(e,n){var t,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=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=i.trys,(a=a.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=n.call(e,i)}catch(e){o=[6,e],r=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function m(e){var n=e.card,t=e.open,l=e.onOpenChange,u=e.onSubmit,m=(0,i.mN)({resolver:(0,c.zodResolver)(s.object({nickname:s.string().superRefine((function(e,n){/[a-zA-Z0-9]/.test(e)?/[<>]/.test(e)?n.addIssue({code:"custom",message:"Nickname cannot contain invalid characters. (<, >)"}):/(?:(4([-\s]*[\d]){14,15})|(?:(5[-\s]*[1-5]([-\s]*[\d]){14})|((2[-\s]*){3}[1-9]|(2[-\s]*){2}[3-9][-\s]*\d|2[-\s]*[3-6][-\s]*([-\s]*\d){2}|2[-\s]*7[-\s]*[01][-\s]*\d|2[-\s]*7[-\s]*2[-\s]*0)[-\s]*([-\s]*\d){12})|(3[-\s]*[47][-\s]*([-\s]*[\d]){13})|(6(?:[-\s]*0[-\s]*1[-\s]*1|5([-\s]*[\d]){2})([-\s]*[\d]){12}))(?!(\.JavaMail|&|\?\w|%|:))/.test(e)&&n.addIssue({code:"custom",message:"Nickname cannot contain a card number."}):n.addIssue({code:"custom",message:"Include at least one letter or number."})}))})),defaultValues:{nickname:n.nickname}}),h=d((0,a.useTransition)(),2),p=h[0],y=h[1];return(0,r.jsxs)(o.aF,{className:"min-w-[320px]",open:t,onOpenChange:l,theme:"wss",children:[(0,r.jsx)(o.rQ,{children:n.nickname?"Edit Nickname":"Add Nickname"}),(0,r.jsx)(o.cw,{children:(0,r.jsx)(o.lV,{id:"nickname-form","aria-label":"nickname form",form:m,onSubmit:m.handleSubmit((function(e){y(f((function(){return b(this,(function(t){switch(t.label){case 0:return[4,u(e.nickname,n.tokenId)];case 1:return t.sent(),[2]}}))})))})),children:(0,r.jsx)(o.eI,{name:"nickname",children:(0,r.jsx)(o.pd,{label:"Nickname"})})})}),(0,r.jsxs)(o.jl,{children:[n.nickname&&(0,r.jsx)(o.$n,{isLoading:p,variant:"secondary",color:"red",onClick:function(){y(f((function(){return b(this,(function(e){switch(e.label){case 0:return[4,u("",n.tokenId)];case 1:return e.sent(),[2]}}))})))},children:"Delete Nickname"})||(0,r.jsx)(o.$n,{variant:"primary",color:"white",onClick:function(){p||l(!1)},children:"Cancel"}),(0,r.jsx)(o.$n,{isLoading:p,type:"submit",variant:"primary",color:"green",form:"nickname-form",children:"Save"})]})]})}}}]); 2//# sourceMappingURL=1203.6601a0f2a91d92829d97.bundle.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.