PageSourceSearch

https://sushiban.cl/_next/static/chunks/6-0af1875f7b3550ab.js?dpl=dpl_2JjKdRRaZyiHYwX5xSV6NiroSJrW

js sushiban.cl collected 2026-09-24 12:55:05 UTC 16,928 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6],{49259:function(e,t,n){n.d(t,{M:function(){return a}});var r=n(85893),o=n(67294);let a=(0,o.forwardRef)((e,t)=>{let{value:n,onChange:o,onClear:a,placeholder:s="Buscar...",className:l="",inputClassName:c="rounded-xl",...i}=e;return(0,r.jsxs)("div",{className:"relative ".concat(l),children:[(0,r.jsxs)("svg",{"aria-hidden":"true",className:"absolute left-3 top-1/2 -translate-y-1/2 text-content-subtle",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,r.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,r.jsx)("input",{ref:t,type:"text",value:n,onChange:e=>{o(e.target.value)},placeholder:s,className:"w-full border border-line bg-surface-subtle py-2.5 px-10 text-base text-content placeholder:text-content-subtle focus:border-primary focus:bg-surface focus:outline-none focus:ring-1 focus:ring-primary ".concat(c),...i}),n&&(0,r.jsx)("button",{type:"button",onClick:()=>{o(""),null==a||a()},className:"absolute right-3 top-1/2 -translate-y-1/2 rounded-full p-0.5 text-content-subtle hover:bg-surface-strong hover:text-content-tertiary","aria-label":"Limpiar b\xfasqueda",children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})});a.displayName="SearchInput"},29215:function(e,t,n){n.d(t,{N:function(){return s},O:function(){return a}});var r=n(85893);let o={none:"rounded-none",sm:"rounded",md:"rounded-lg",lg:"rounded-2xl",full:"rounded-full"};function a(e){let{className:t="",width:n,height:a,rounded:s="md"}=e;return(0,r.jsx)("div",{"aria-hidden":"true",role:"presentation",className:"animate-pulse bg-surface-strong ".concat(o[s]," ").concat(t),style:{width:n,height:a}})}function s(e){let{lines:t=3}=e;return(0,r.jsx)("div",{className:"space-y-2",children:Array.from({length:t}).map((e,n)=>(0,r.jsx)(a,{className:"h-4",width:n===t-1?"60%":"100%"},n))})}},80006:function(e,t,n){n.d(t,{Jg:function(){return a},Ct:function(){return l},zx:function(){return c.z},Zb:function(){return u},Af:function(){return d},yU:function(){return x},dy:function(){return w},u_:function(){return N},nk:function(){return L},Xi:function(){return _},cw:function(){return T},Mj:function(){return M.M},Od:function(){return I.O},N2:function(){return I.N},PH:function(){return R}});var r=n(85893),o=n(67294);let a=(0,o.forwardRef)((e,t)=>{let{value:n,onChange:o,onUseCurrentLocation:a,loading:s=!1,placeholder:l="Ingresa tu direcci\xf3n",className:c="",...i}=e;return(0,r.jsxs)("div",{className:"relative ".concat(c),children:[(0,r.jsxs)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-content-subtle",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),(0,r.jsx)("circle",{cx:"12",cy:"10",r:"3"})]}),(0,r.jsx)("input",{ref:t,type:"text",value:n,onChange:e=>o(e.target.value),placeholder:l,className:"w-full rounded-xl border border-line bg-surface-subtle py-3 pl-10 pr-12 text-base text-content placeholder:text-content-subtle focus:border-primary focus:bg-surface focus:outline-none focus:ring-1 focus:ring-primary",...i}),a&&(0,r.jsx)("button",{type:"button",onClick:a,disabled:s,className:"absolute right-3 top-1/2 -translate-y-1/2 text-primary hover:opacity-70 disabled:opacity-40","aria-label":"Usar mi ubicaci\xf3n",title:"Usar mi ubicaci\xf3n",children:s?(0,r.jsx)("span",{className:"inline-block h-5 w-5 animate-spin rounded-full border-2 border-primary border-t-transparent"}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,r.jsx)("polygon",{points:"3 11 22 2 13 21 11 13 3 11"})})})]})});a.displayName="AddressInput";let s={default:"bg-surface-muted text-content-secondary",primary:"bg-primary-100 text-primary",success:"bg-success-soft text-success-strong",warning:"bg-warning-soft text-warning-strong",error:"bg-error-soft text-error-emphasis"};function l(e){let{children:t,variant:n="default",className:o=""}=e;return(0,r.jsx)("span",{className:"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ".concat(s[n]," ").concat(o),children:t})}var c=n(74134);let i={none:"",sm:"p-3",md:"p-4",lg:"p-6"};function u(e){let{children:t,className:n="",onClick:o,padding:a="md"}=e,s=o?"button":"div";return(0,r.jsx)(s,{className:"rounded-2xl bg-surface shadow-sm ".concat(i[a]," ").concat(o?"cursor-pointer active:scale-[0.98] transition-transform":""," ").concat(n),onClick:o,children:t})}function d(e){let{children:t,active:n=!1,onClick:o,className:a=""}=e;return(0,r.jsx)("button",{type:"button",onClick:o,className:"\n        inline-flex items-center whitespace-nowrap rounded-full px-4 py-2 text-sm font-medium\n        transition-colors duration-150\n        ".concat(n?"!bg-catbar-active text-catbar-active-text shadow-sm":"!bg-catbar-chip-bg text-catbar-chip-text hover:!bg-catbar-chip-text/15","\n        ").concat(a,"\n      ").trim(),children:t})}let f="inline-flex h-[25px] items-center justify-center break-words bg-card-badge-bg text-sm font-semibold uppercase leading-none text-card-badge-text";function x(e){let{label:t,labelType:n,className:o=""}=e;return"ribbon"===n?(0,r.jsx)("span",{className:"".concat(f," relative w-[80px] shadow-[4px_4px_4px_rgba(0,0,0,0.25)] after:absolute after:left-0 after:top-full after:h-0 after:w-0 after:border-x-[40px] after:border-b-[10px] after:border-t-[5px] after:border-solid after:border-x-card-badge-bg after:border-b-transparent after:border-t-card-badge-bg after:content-[''] ").concat(o),children:t}):(0,r.jsx)("span",{className:"".concat(f," rounded-[5px] px-1.5 ").concat(o),children:t})}n(519);var m=n(26982);let b=0,h=0,p=null;function g(e){(0,o.useEffect)(()=>
1{if(e)return!function(){if(0===b){h=window.scrollY;let{body:e}=document;p={position:e.style.position,top:e.style.top,left:e.style.left,right:e.style.right,width:e.style.width,overflow:e.style.overflow},e.style.position="fixed",e.style.top="-".concat(h,"px"),e.style.left="0",e.style.right="0",e.style.width="100%",e.style.overflow="hidden"}b+=1}(),()=>(function(){if(0===(b=Math.max(0,b-1))&&p){let{body:e}=document,{position:t,top:n,left:r,right:o,width:a,overflow:s}=p;e.style.position=t,e.style.top=n,e.style.left=r,e.style.right=o,e.style.width=a,e.style.overflow=s,window.scrollTo(0,h),p=null}})()},[e])}let y='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function w(e){let{open:t,onClose:n,children:a,title:s,position:l,className:c="",footer:i,tone:u="surface"}=e,[d,f]=(0,o.useState)(!1),[x,b]=(0,o.useState)(!1),h=(0,o.useRef)(null),p=(0,o.useRef)(null),w=(0,o.useRef)(null),v=(0,o.useId)();(0,o.useEffect)(()=>{if(t){w.current=document.activeElement,f(!0),requestAnimationFrame(()=>b(!0));return}b(!1);let e=setTimeout(()=>{f(!1),w.current instanceof HTMLElement&&w.current.focus()},200);return()=>clearTimeout(e)},[t]),(0,o.useEffect)(()=>{if(t&&d&&p.current){let e=p.current.querySelector(y);e?e.focus():p.current.focus()}},[t,d]),g(t),(0,o.useEffect)(()=>{if(!t)return;let e=e=>{if("Escape"===e.key){n();return}if("Tab"===e.key&&p.current){let t=p.current.querySelectorAll(y);if(0===t.length)return;let n=t[0],r=t[t.length-1];if(!n||!r)return;e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),n.focus())}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,n]);let j=(0,o.useCallback)(e=>{e.target===h.current&&n()},[n]);if(!d)return null;let k="right"===l?"drawer-right":"bottom"===l?"drawer-bottom":"drawer-responsive";return(0,r.jsx)("div",{ref:h,onClick:j,className:"fixed inset-0 z-drawer bg-overlay/50 transition-opacity duration-200 ".concat(x?"opacity-100":"opacity-0"),children:(0,r.jsxs)("div",{ref:p,role:"dialog","aria-modal":"true","aria-labelledby":s?v:void 0,tabIndex:-1,className:"\n          ".concat("drawer-bottom"===k?"absolute bottom-0 left-0 right-0 max-h-[85vh] rounded-t-2xl":"","\n          ").concat("drawer-right"===k?"absolute right-0 top-0 bottom-0 w-full max-w-md":"","\n          ").concat("drawer-responsive"===k?"absolute bottom-0 left-0 right-0 max-h-[85vh] rounded-t-2xl sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:max-h-none sm:h-full sm:w-full sm:max-w-md sm:rounded-t-none":"","\n          flex flex-col ").concat("card"===u?"bg-card-bg":"bg-surface"," shadow-xl outline-none\n          transition-transform duration-200 ease-out\n          ").concat(x?"translate-y-0 sm:translate-x-0":"","\n          ").concat(x||"drawer-right"!==k?"":"translate-x-full","\n          ").concat(x||"drawer-right"===k?"":"translate-y-full sm:translate-y-0 sm:translate-x-full","\n          ").concat(c,"\n        ").trim(),children:["drawer-right"!==k&&(0,r.jsx)("div",{className:"flex shrink-0 justify-center pt-3 pb-1 sm:hidden",children:(0,r.jsx)("div",{className:"h-1 w-10 rounded-full ".concat("card"===u?"bg-card-text/20":"bg-surface-strong")})}),s&&(0,r.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b px-4 py-3 ".concat("card"===u?"border-card-text/10":"border-line-subtle"),children:[(0,r.jsx)("h2",{id:v,className:"text-lg font-semibold ".concat("card"===u?"text-card-text":"text-content"),children:s}),(0,r.jsx)("button",{type:"button",onClick:n,className:"rounded-full p-1 ".concat("card"===u?"text-card-text/60 hover:bg-card-text/10":"text-content-subtle hover:bg-surface-muted hover:text-content-tertiary"),"aria-label":m.ZP.t("V2Common:close"),children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),(0,r.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:a}),i&&(0,r.jsx)("div",{className:"shrink-0",children:i})]})})}n(62609);let v={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg"},j='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not
1([tabindex="-1"])';function k(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function N(e){let{open:t,onClose:n,children:a,title:s,className:l="",maxWidth:c="md",fullHeight:i=!1,footer:u,dismissible:d=!0}=e,[f,x]=(0,o.useState)(!1),[b,h]=(0,o.useState)(!1),p=(0,o.useRef)(null),y=(0,o.useRef)(null),w=(0,o.useRef)(null),N=(0,o.useId)();(0,o.useEffect)(()=>{if(t){w.current=document.activeElement,x(!0),requestAnimationFrame(()=>h(!0));return}h(!1);let e=setTimeout(()=>{x(!1),w.current instanceof HTMLElement&&w.current.focus()},200);return()=>clearTimeout(e)},[t]),(0,o.useEffect)(()=>{if(t&&f&&y.current){let e=y.current.querySelector(j);e?e.focus():y.current.focus()}},[t,f]),g(t);let C=(0,o.useCallback)(e=>{d&&e.target===p.current&&n()},[n,d]);if((0,o.useEffect)(()=>{if(!t)return;let e=e=>{if("Escape"===e.key){d&&n();return}if("Tab"===e.key&&y.current){let t=y.current.querySelectorAll(j);if(0===t.length)return;let n=t[0],r=t[t.length-1];if(!n||!r)return;e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),n.focus())}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,n,d]),!f)return null;let E=void 0!==s,L=E&&s,_=E&&!s&&d;return(0,r.jsx)("div",{ref:p,onClick:C,className:"fixed inset-0 z-modal flex items-center justify-center p-4 bg-overlay/50 transition-opacity duration-200 ".concat(b?"opacity-100":"opacity-0"),children:(0,r.jsxs)("div",{ref:y,role:"dialog","aria-modal":"true","aria-labelledby":L?N:void 0,tabIndex:-1,className:"\n          w-full ".concat(v[c]," rounded-2xl bg-surface shadow-xl\n          transition-all duration-200 outline-none\n          ").concat(i?"max-h-[90dvh] flex flex-col":"","\n          ").concat(b?"scale-100 opacity-100":"scale-95 opacity-0","\n          ").concat(l,"\n        ").trim(),children:[L&&(0,r.jsxs)("div",{className:"flex shrink-0 items-center justify-between px-5 py-4 border-b border-line-subtle",children:[(0,r.jsx)("h2",{id:N,className:"min-w-0 flex-1 truncate text-lg font-semibold text-content",children:s}),d&&(0,r.jsx)("button",{type:"button",onClick:n,className:"shrink-0 rounded-full p-1 text-content-subtle hover:bg-surface-muted hover:text-content-tertiary","aria-label":m.ZP.t("V2Common:close"),children:(0,r.jsx)(k,{})})]}),(0,r.jsxs)("div",{className:"relative p-5 ".concat(i?"min-h-0 flex-1 overflow-y-auto":""," ").concat(_?"pt-3":""),children:[_&&(0,r.jsx)("button",{type:"button",onClick:n,className:"absolute right-3 top-1 z-10 shrink-0 rounded-full p-1 text-content-subtle hover:bg-surface-muted hover:text-content-tertiary","aria-label":m.ZP.t("V2Common:close"),children:(0,r.jsx)(k,{})}),a]}),i&&u&&(0,r.jsx)("div",{className:"shrink-0 border-t border-line-subtle px-5 py-4",children:u})]})})}var C=n(44674);let E={sm:"text-sm",md:"text-base",lg:"text-xl"};function L(e){let{price:t,originalPrice:n,size:o="md",className:a=""}=e,s=null!=n&&n>t;return(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 ".concat(a),children:[(0,r.jsx)("span",{className:"font-semibold text-content ".concat(E[o]),children:(0,C.T4)(t)}),s&&(0,r.jsx)("s",{className:"text-sm text-content-subtle","aria-label":"Precio original: ".concat((0,C.T4)(n)),children:(0,C.T4)(n)})]})}function _(e){let{value:t,onChange:n,maxLength:o=30,id:a="product-instructions",labelClassName:s="text-content-secondary"}=e,{length:l}=t,c=l>=o;return(0,r.jsxs)("div",{className:"mt-4",children:[(0,r.jsx)("label",{htmlFor:a,className:"mb-1 block text-sm font-medium ".concat(s),children:m.ZP.t("V2ProductDetail:specialInstructions")}),(0,r.jsx)("textarea",{id:a,value:t,onChange:e=>n(e.target.value),placeholder:m.ZP.t("V2ProductDetail:specialInstructionsPlaceholder"),maxLength:o,rows:2,className:"w-full rounded-xl border bg-surface-subtle px-3 py-2 text-sm text-content placeholder:text-content-subtle focus:bg-surface focus:outline-none focus:ring-1 ".concat(c?"border-error focus:border-error focus:ring-error":"border-line focus:border-primary focus:ring-primary")}),(0,r.jsxs)("div",{className:"mt-1 flex justify-between gap-2 text-xs",children:[(0,r.jsx)("span",{className:"text-error",children:c?m.ZP.t("V2ProductDetail:instructionsMaxLengthReached"):""}),(0,r.jsxs)("span",{className:c?"text-error":"text-content-muted",children:[l,"/",o]})]})]})}let P={sm:{button:"h-7 w-7 text-sm",text:"w-7 text-sm"},md:{button:"h-9 w-9 text-base",text:"w-9 text-base"}};function T(e){let{value:t,onChange:n,min:o=1,max:a=99,size:s="md",disabled:l=!1}=e,c=P[s];return(0,r.jsxs)("div",{className:"inline-flex items-center rounded-full bg-surface-muted",children:[(0,r.jsx)("button",{type:"button",disabled:l||t<=o,onClick:()=>n(Math.max(o,t-1)),className:"".concat(c.button," flex items-center justify-center rounded-full font-medium text-content-secondary transition-colors hover:bg-surface-strong disabled:opacity-40"),"aria-label":"Disminuir cantidad, actual: ".concat(t),children:"-"}),(0,r.jsx)("span",{className:"".concat(c.text," text-center font-semibold text-content"),children:t}),(0,r.jsx)("button",{type:"button",disabled:l||t>=a,onClick:()=>n(Math.min(a,t+1)),className:"".concat(c.button," flex items-center justify-center rounded-full font-medium text-content-secondary transition-colors hover:bg-surface-strong disabled:opacity-40"),"aria-label":"Aumentar cantidad, actual: ".concat(t),children:"+"})]})}var M=n(49259),I=n(29215);function R(e){let{children:t,position:n="bottom",className:o=""}=e;return(0,r.jsx)("div",{className:"\n        fixed left-0 right-0 z-sticky-bar bg-surface px-4 py-3 shadow-[0_-2px_10px_rgba(0,0,0,0.08)]\n        ".concat("top"===n?"top-0 shadow-[0_2px_10px_rgba(0,0,0,0.08)]":"bottom-0","\n        ").concat(o,"\n      ").trim(),children:(0,r.jsx)("div",{className:"mx-auto max-w-app",children:t})})}}}]);

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.