PageSourceSearch

https://soffa.mx/_next/static/chunks/e3099eb36b64cd71.js

js soffa.mx collected 2026-10-09 21:59:54 UTC 13,995 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,411818,986305,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(326999),s=e.i(995926),n=e.i(647163);function i({...e}){return(0,t.jsx)(r.Root,{"data-slot":"dialog",...e})}function o({...e}){return(0,t.jsx)(r.Portal,{"data-slot":"dialog-portal",...e})}function l({className:e,...a}){return(0,t.jsx)(r.Overlay,{"data-slot":"dialog-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50","bg-brand-neutral_3/85",e),...a})}function d({className:e,children:a,showCloseButton:i=!0,...d}){return(0,t.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,t.jsx)(l,{}),(0,t.jsxs)(r.Content,{"data-slot":"dialog-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none","max-w-lg sm:rounded-lg bg-white rounded-xl border-brand-neutral_1",e),...d,children:[a,i&&(0,t.jsxs)(r.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(s.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u({className:e,...a}){return(0,t.jsx)(r.Title,{"data-slot":"dialog-title",className:(0,n.cn)("text-lg leading-none font-semibold",e),...a})}var c=e.i(207670);function m({children:e,isOpen:r,setIsOpen:s,classNameContent:o,showCloseButton:l}){let m=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=document.createElement("span");return e.id="custom-portal-container",document.body.appendChild(e),m.current=e,()=>{m.current&&document.body.removeChild(m.current)}},[]),(0,t.jsx)(i,{open:r,onOpenChange:s,children:(0,t.jsxs)(d,{className:(0,c.default)((0,n.cn)("px-5 md:px-10 py-10 max-h-[calc(100vh-1rem)]! overflow-y-auto",o),{"gap-0":!l}),showCloseButton:l,children:[(0,t.jsx)(u,{}),e]})})}e.s(["DialogBase",()=>m],986305),e.s([],411818)},10708,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(174080);var r=e.i(991918),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{let n=(0,r.createSlot)(`Primitive.${s}`),i=a.forwardRef((e,a)=>{let{asChild:r,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(r?n:s,{...i,ref:a})});return i.displayName=`Primitive.${s}`,{...e,[s]:i}},{}),n=a.forwardRef((e,a)=>(0,t.jsx)(s.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));n.displayName="Label";var i=e.i(647163);function o({className:e,...a}){return(0,t.jsx)(n,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}e.s(["Label",()=>o],10708)},23750,e=>{"use strict";var t=e.i(843476),a=e.i(647163);function r({className:e,type:r,...s}){return(0,t.jsx)("input",{type:r,"data-slot":"input",className:(0,a.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-white border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...s})}e.s(["Input",()=>r])},187510,744902,e=>{"use strict";var t=e.i(843476),a=e.i(23750),r=e.i(207670),s=e.i(647163),n=e.i(494201),i=e.i(948148);e.i(908753);var o=e.i(484927);function l(e){let{placeholder:l,disabled:d=!1,"aria-invalid":u,value:c,onChange:m,onClick:p,type:g="text",isrightcomplement:f,className:x,...v}=e,h=(0,i.useTranslations)("input");return(0,t.jsx)(o.Text14,{className:(0,r.default)((0,s.cn)("",x,n.styleInput),{"border-gray-500":d,"border-brand-carbon_200":!d,"border-brand-primary/60!":u,"rounded-[0px_4px_4px_0px]":f}),children:(0,t.jsx)(a.Input,{...v,type:g,value:c,onChange:m,onClick:p,placeholder:h(`placeholder.${l}`),className:(0,s.cn)("",n.fontInput),disabled:d})})}e.s(["InputText",()=>l],744902),e.s([],187510)},39390,682671,e=>{"use strict";var t=e.i(843476),a=e.i(23750),r=e.i(207670),s=e.i(271645),n=e.i(647163),i=e.i(494201),o=e.i(948148);e.i(908753);var l=e.i(484927);function d({className:e=""}){return(0,t.jsxs)("svg",{className:(0,n.cn)("stroke-black stroke-[2]",e),viewBox:"0 0 28 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M13.4482 1.16309C16.2538 1.07821 19.0231 1.80409 21.417 3.25C23.68 4.61696 25.5136 6.57222 26.7227 8.89551C25.6152 11.1978 23.888 13.16 21.7236 14.5625C19.4278 16.0501 16.7411 16.8437 13.9941 16.8438C11.2471 16.8438 8.5606 16.0502 6.26465 14.5625C4.09878 13.1591 2.37012 11.1958 1.2627 8.8916C2.38348 6.72866 4.04898 4.88231 6.10254 3.53223C8.2863 2.09662 10.8264 1.27652 13.4482 1.16309Z",strokeMiterlimit:"10"}),(0,t.jsx)("path",{d:"M14.0134 5.06738C16.1903 5.06738 17.9363 6.80956 17.9363 8.93457C17.9361 11.0595 16.1903 12.8008 14.0134 12.8008C11.8368 12.8006 10.0917 11.0593 10.0916 8.93457C10.0916 6.8097 11.8367 5.06761 14.0134 5.06738Z",strokeMiterlimit:"10"})]})}function u(e){let{placeholder:u,disabled:c=!1,"aria-invalid":m,value:p,onChange:g,onClick:f,isrightcomplement:x,className:v,...h}
1=e,[b,w]=(0,s.useState)(!1),y=(0,o.useTranslations)("input");return(0,t.jsxs)(l.Text14,{className:(0,r.default)((0,n.cn)("flex items-center space-x-3",v,i.styleInput),{"border-gray-500":c,"border-brand-carbon_200":!c,"border-brand-primary/60!":m,"rounded-[0px_4px_4px_0px]!":x}),children:[(0,t.jsx)(a.Input,{...h,type:b?"text":"password",value:p,onChange:g,onClick:f,placeholder:y(`placeholder.${u}`),className:(0,n.cn)("",i.fontInput),disabled:c}),(0,t.jsxs)("div",{className:"w-9 group cursor-pointer relative",onClick:()=>w(!b),children:[(0,t.jsx)(d,{className:"w-full stroke-brand-primary group-hover:stroke-brand-secondary_dark duration-200"}),!b&&(0,t.jsx)("div",{className:"h-0.5 w-full bg-brand-primary absolute transform rotate-45 top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] group-hover:bg-brand-secondary_dark transition-200"})]})]})}e.s(["InputPassword",()=>u],682671),e.s([],39390)},654637,e=>{"use strict";var t,a=((t=a||{}).login="login",t.signUp="sign_up",t.service="service",t.beginCheckout="begin_checkout",t.selectItem="select_item",t.purchase="purchase",t.refund="refund",t.clickSelectDate="click_select_date",t.addPaymentInfo="add_payment_info",t.editReservation="edit_reservation",t);e.s(["default",0,a])},768834,579473,e=>{"use strict";var t=e.i(271645);let a=e=>{let t,a=new Set,r=(e,r)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=r?r:"object"!=typeof s||null===s)?s:Object.assign({},t,s),a.forEach(a=>a(t,e))}},s=()=>t,n={setState:r,getState:s,getInitialState:()=>i,subscribe:e=>(a.add(e),()=>a.delete(e))},i=t=e(r,s,n);return n},r=e=>{let r=e?a(e):a,s=e=>(function(e,a=e=>e){let r=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>a(e.getState()),[e,a]),t.default.useCallback(()=>a(e.getInitialState()),[e,a]));return t.default.useDebugValue(r),r})(r,e);return Object.assign(s,r),s},s=e=>e?r(e):r;e.s(["create",()=>s],768834);let n=e=>t=>{try{let a=e(t);if(a instanceof Promise)return a;return{then:e=>n(e)(a),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>n(t)(e)}}},i=(e,t)=>(a,r,s)=>{let i,o={storage:function(e,t){let a;try{a=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),s=null!=(t=a.getItem(e))?t:null;return s instanceof Promise?s.then(r):r(s)},setItem:(e,t)=>a.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>a.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,d=new Set,u=new Set,c=o.storage;if(!c)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),a(...e)},r,s);let m=()=>{let e=o.partialize({...r()});return c.setItem(o.name,{state:e,version:o.version})},p=s.setState;s.setState=(e,t)=>(p(e,t),m());let g=e((...e)=>(a(...e),m()),r,s);s.getInitialState=()=>g;let f=()=>{var e,t;if(!c)return;l=!1,d.forEach(e=>{var t;return e(null!=(t=r())?t:g)});let s=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:g))||void 0;return n(c.getItem.bind(c))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[s,n]=e;if(a(i=o.merge(n,null!=(t=r())?t:g),!0),s)return m()}).then(()=>{null==s||s(i,void 0),i=r(),l=!0,u.forEach(e=>e(i))}).catch(e=>{null==s||s(void 0,e)})};return s.persist={setOptions:e=>{o={...o,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>f(),hasHydrated:()=>l,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},o.skipHydration||f(),i||g};e.s(["persist",()=>i],579473)},930928,e=>{"use strict";var t=e.i(768834),a=e.i(579473);let r=(0,t.create)()((0,a.persist)(e=>({step:0,setStep:t=>e({step:t}),hourStartDate:"",setHourStartDate:t=>e({hourStartDate:t}),hourEndDate:"",setHourEndDate:t=>e({hourEndDate:t}),priceHour:"",setPriceHour:t=>e({priceHour:t})}),{name:"widget-storage"}));e.s(["widgetReservationStore",0,r])},733595,e=>{"use strict";var t=e.i(768834),a=e.i(579473);let r=(0,t.create)()((0,a.persist)(e=>({isShowMessage:!1,setIsShowMesage:t=>e({isShowMessage:t})}),{name:"soffa-storage"}));e.s(["useStore",0,r])},849600,e=>{"use strict";var t=e.i(843476),a=e.i(994814),r=e.i(653145),s=e.i(681307),n=e.i(846696),i=e.i(874946),o=e.i(948148),l=e.i(271645),d=e.i(618566);e.i(271371);var u=e.i(12050);e.i(187510);var c=e.i(744902);e.i(72180);var m=e.i(483014);e.i(398975);var p=e.i(513238),g=e.i(217255),f=e.i(522016);e.i(39390);var x=e.i(682671);function v({locale:e}){let v=(0,d.useRouter)(),[h,b]=(0,l.useTransition)(),w=(0,o.useTranslations)("PageLogin"),y=(0,o.useTranslations)("form"),j=(0,o.useTranslations)("button"),N=s.z.object({email:s.z.string().email(y("validation.InvalidEmailFormat")),password:s.z.string().min(1,y("validation.Required"))}),S=(0,r.useForm)({resolver:(0,a.zodResolver)(N),defaultValues:{email:"",password:""}});return(0,t.jsx)(i.Form,{...S,children:(0,t.jsxs)("form",{onSubmit:S.handleSubmit(function(t){b(async()=>{let a=await (0,g.signIn)("email-password",{email:t.email,password:t.password,locale:e,redirect:!1});a?.status===200?(n.toast.success(y("success.text_1")),v.push("/dashboard")):n.toast.error(y("error.text_1"))})}),children:[(0,t.jsxs)("div",{className:"w-full md:w-7/12 mx-auto 
1space-y-1",children:[(0,t.jsx)(i.FormField,{control:S.control,name:"email",render:({field:e})=>(0,t.jsx)(u.FormItemElement,{title:"Email",className:"w-full",children:(0,t.jsx)(c.InputText,{placeholder:"text_1",...e})})}),(0,t.jsx)(i.FormField,{control:S.control,name:"password",render:({field:e})=>(0,t.jsx)(u.FormItemElement,{title:"Password",className:"w-full",children:(0,t.jsx)(x.InputPassword,{placeholder:"text_2",...e})})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(p.LocaleLink,{href:"/login/recover",children:w("text_4")})})]}),(0,t.jsxs)("div",{className:"w-fit mx-auto space-y-5 mt-8",children:[(0,t.jsx)("div",{className:"",children:(0,t.jsx)(m.ButtonLargePrimary,{className:"w-full",type:"submit",load:h,children:j("LogIn_2")})}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(f.default,{href:"/login/register",children:(0,t.jsx)(m.ButtonLargSecundary,{className:"w-full",type:"button",children:j("CreateNewAccount")})})})]})]})})}e.s(["default",()=>v])},475442,e=>{"use strict";var t=e.i(843476);e.i(72180);var a=e.i(483014);e.i(411818);var r=e.i(986305);e.i(908753);var s=e.i(484927),n=e.i(733595),i=e.i(948148),o=e.i(271645);function l(){let[e,l]=(0,o.useState)(!1),{setIsShowMesage:d}=(0,n.useStore)(),u=(0,n.useStore)(e=>e.isShowMessage),c=(0,i.useTranslations)("PageDashboardDeleteAcount"),m=(0,i.useTranslations)("button");return(0,o.useEffect)(()=>{u&&(l(u),d(!1))},[u]),(0,t.jsx)(r.DialogBase,{isOpen:e,setIsOpen:l,classNameContent:"max-w-xl",children:(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)("div",{className:"mx-auto w-fit",children:(0,t.jsx)("object",{className:"w-52",type:"image/svg+xml",data:"/svg/illustration/human_3.svg","aria-label":"logo",children:"svg-logo"})}),(0,t.jsx)(s.Text34,{className:"text-center",children:c("title_2")}),(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsx)(s.Text18,{children:c("text_7")}),(0,t.jsx)(s.Text18,{className:"text-brand-carbon_400",children:c("text_8")})]}),(0,t.jsx)("div",{className:"w-fit mx-auto",children:(0,t.jsx)(a.ButtonLargSecundary,{className:"w-full",onClick:()=>l(!1),children:m("Close")})})]})})}e.s(["DialogDeleteAccount",()=>l])}]);

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.