PageSourceSearch

https://www.restaurantcasachina.cl/_next/static/chunks/pages/_site…/v2/mercat/privacy-b3ff3d7e9f15d989.js

js restaurantcasachina.cl collected 2026-09-24 12:56:35 UTC 13,282 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2076],{69637:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[site]/v2/mercat/privacy",function(){return r(54162)}])},95677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return a},default:function(){return i}});let n=r(38754),s=(r(67294),n._(r(8976)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function i(e,t){let r=s.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e}),n={...n,...t};let i=n.loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=i?i().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,a(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92254:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let n=r(38754),s=n._(r(67294)),o=s.default.createContext(null)},8976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(38754),s=n._(r(67294)),o=r(92254),a=[],i=[],l=!1;function u(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function a(){if(!n){let t=new c(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!l){let e=r.webpack?r.webpack():r.modules;e&&i.push(t=>{for(let r of e)if(t.includes(r))return a()})}function u(e,t){!function(){a();let e=s.default.useContext(o.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let i=s.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return s.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),s.default.useMemo(()=>{var t;return i.loading||i.error?s.default.createElement(r.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:n.retry}):i.loaded?s.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return u.preload=()=>a(),u.displayName="LoadableComponent",s.default.forwardRef(u)}(u,e)}function f(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>
1{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(l=!0,t());f(i,e).then(r,r)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},86452:function(e,t,r){"use strict";var n=r(85893);r(67294);var s=r(45697),o=r(94184),a=r.n(o),i=r(76119),l=r.n(i);function u(e){let{className:t,containerClassName:r}=e;return(0,n.jsx)("div",{className:a()("item-1 row middle center",r),children:(0,n.jsx)("div",{className:a()(l().spinner,t)})})}u.propTypes={className:s.string,containerClassName:s.string,color:s.string},t.Z=u},21702:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(85893),s=r(54479),o=r(26982),a=r(67294),i=r(465),l=r(86452),u=r(69223);function c(e){let{children:t}=e;return(0,n.jsx)("h4",{className:"scroll-m-20 text-xl font-semibold tracking-tight uppercase pt-5 pb-3 mb-4",children:t})}function d(e){let{children:t}=e;return(0,n.jsx)("h5",{className:"scroll-m-20 text-base font-semibold tracking-tight border-b-gray-300 border-b pt-5 pb-3 mb-4",children:t})}function f(e){let{children:t}=e;return(0,n.jsx)("p",{className:"leading-5",children:t})}function h(e){let{children:t}=e;return(0,n.jsx)("strong",{className:"font-bold",children:t})}var m=r(20808),p=r.n(m),b=r(91021),x=r(54635),y=e=>{let{showPoweredBy:t=!0}=e,[r,m]=(0,a.useState)(""),[y,g]=(0,a.useState)(!0),v=(0,b.z)();return(0,a.useEffect)(()=>{x.Z.getMercatTermsAndConditions().then(e=>{let{data:t}=e;return m(t)}).finally(()=>g(!1)).catch(()=>g(!1))},[]),(0,n.jsxs)("div",{className:"flex flex-col min-h-screen ".concat(p().className," text-sm text-gray-600"),children:[(0,n.jsx)("div",{className:"px-6 sm:px-12",children:(0,n.jsx)(u.Z,{})}),(0,n.jsx)("div",{className:"grow flex justify-center px-6 sm:px-12",children:y?(0,n.jsx)("div",{className:"mt-20",children:(0,n.jsx)(l.Z,{className:"before:!border-transparent before:!border-t-gray-800 after:!border-t-gray-800"})}):(0,n.jsx)("div",{className:"w-full mb-12",children:(0,n.jsx)(i.D,{components:{h1:c,h2:d,h3:d,h4:d,h5:d,p:f,strong:h},children:r})})}),t&&(0,n.jsx)(s.CQ,{poweredByText:o.ZP.t("Footer:poweredByLabel"),href:v})]})}},44674:function(e,t,r){"use strict";r.d(t,{DU:function(){return u},N:function(){return l},T4:function(){return i}});var n=r(82892),s=r(92077),o=r.n(s);let a={round:"0,0",decimal:"0,0.00"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.N.currencySymbol;return"".concat(t," ").concat(o()(e).format(n.N.withCents?a.decimal:a.round))},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.N.currencySymbol;return"".concat(t," ").concat(o()(e).format(a.round))},u=(e,t)=>Math.round(e*t/100)},69223:function(e,t,r){"use strict";var n=r(85893),s=r(54479),o=r(26982),a=r(53219),i=r(41664),l=r.n(i);r(67294),t.Z=function(){return(0,n.jsx)("div",{className:"flex w-full h-20 bg-white border-gray-300 border-b py-4",children:(0,n.jsxs)(s.zx,{as:l(),href:"/",variant:"link",size:"icon",className:"!text-base !font-bold",children:[(0,n.jsx)(a.Z,{strokeWidth:"3",className:"mr-2 h-6 w-6"}),o.ZP.t("TermsAndConditions:backtoHome")]})})}},64192:function(e,t,r){"use strict";r.d(t,{D:function(){return h}});var n=r(85893),s=r(5152),o=r.n(s),a=r(11163);r(67294);var i=r(26628),l=r(10379);let u=o()(()=>r.e(3121).then(r.bind(r,63121)).then(e=>e.Intercom),{loadableGenerated:{webpack:()=>[63121]}}),c=o()(()=>r.e(7108).then(r.bind(r,87108)),{loadableGenerated:{webpack:()=>[87108]}}),d=o()(()=>r.e(6244).then(r.bind(r,56244)),{loadableGenerated:{webpack:()=>[56244]}});var f=function(){let e=(0,a.useRouter)(),t=e.pathname.startsWith("/_sites/[site]/v2"),r=t&&e.pathname.includes("/checkout"),s=(0,i.v9)(e=>e.core.settings.intercomId),o=(0,i.v9)(e=>e.core.settings.brandSecondary),{facebookMessengerId:f,enabledFacebookMessenger:h,whatsappNumber:m,enabledWhatsappNumber:p}=(0,i.v9)(e=>e.searchStore.currentSubsidiary)||{};if(r)return null;let b=(0,l.p)(s,p,t);return(0,n.jsxs)(n.Fragment,{children:[s?(0,n.jsx)(u,{intercomAppId:s,actionColor:o,hideOnMobile:t}):null,p?(0,n.jsx)(d,{height:b.whatsapp(),whatsappNumber:m,hideOnMobile:t}):null,h?(0,n.jsx)(c,{height:b.messenger(),facebookMessengerId:f,hideOnMobile:t}):null]})};function h(){return(0,n.jsx)(f,{})}},91021:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(26628),s=r(24932),o=r(71217),a=r(88420);let i=()=>{let e=(0,n.v9)(e=>{var t,r,n;return null===(t=e.core)||void 0===t?void 0:null===(r=t.settings)||void 0===r?void 0:null===(n=r.country)||void 0===n?void 0:n.isoCountry});return(0,a.L)(o.dU,e?(0,a.v)(e):s.W.DEFAULT)}},54162:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return u}});var n=r(85893),s=r(21702),o=r(64192),a=r(31974),i=r(51776);let l=()=>(0,n.jsx)(s.Z,{showPoweredBy:!1});l.getLayout=function(e){return(0,n.jsxs)(a.p,{children:[(0,n.jsx)(i.Vw,{showCartBar:!1,children:e}),(0,n.jsx)(o.D,{})]})};var u=!0;t.default=l},74134:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(85893),s=r(67294);let o={primary:"!bg-primary text-content-inverse hover:opacity-90 active:opacity-80 disabled:opacity-50",secondary:"!bg-surface text-secondary border border-secondary hover:!bg-secondary-100 active:opacity-80 disabled:opacity-50",ghost:"!bg-transparent text-content-secondary hover:!bg-surface-muted active:!bg-surface-strong disabled:opacity-50",danger:"!bg-error-strong text-content-inverse hover:!bg-error-emphasis active:!bg-error-emphasis disabled:opacity-50"},a={sm:"px-3 py-1.5 text-sm rounded-lg",md:"px-4 py-2.5 text-base rounded-xl",lg:"px-6 py-3.5 text-lg rounded-xl"},i=(0,s.forwardRef)((e,t)=>{let{variant:r="primary",size:s="md",fullWidth:i=!1,loading:l=!1,disabled:u,className:c="",children:d,...f}=e;return(0,n.jsx)("button",{ref:t,disabled:u||l,className:"\n          inline-flex items-center justify-center font-semibold transition-all duration-150\n          ".concat(o[r],"\n          ").concat(a[s],"\n          ").concat(i?"w-full":"","\n          ").concat(c,"\n        ").trim(),...f,children:l?(0,n.jsx)("span",{className:"inline-block h-5 w-5 animate-spin rounded-full border-2 border-current border-t-transparent"}):d})});i.displayName="Button"},62609:function(e,t,r){"use strict";r.d(t,{KU:function(){return l},SV:function(){return i}});var n=r(85893),s=r(67294),o=r(74134);function a(e){let{onRetry:t}=e;return(0,n.jsxs)("div",{className:"flex min-h-[300px] flex-col items-center justify-center px-6 py-12 text-center",children:[(0,n.jsx)("div",{className:"mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-error-soft",children:(0,n.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-error",children:[(0,n.jsx)("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,n.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,n.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}),(0,n.jsx)("h2",{className:"mb-1 font-title text-lg font-bold text-content",children:"Algo sali\xf3 mal"}),(0,n.jsx)("p",{className:"mb-6 max-w-xs text-sm text-content-muted",children:"Ocurri\xf3 un error inesperado. Por favor, intenta nuevamente."}),(0,n.jsx)(o.z,{variant:"primary",onClick:t,children:"Reintentar"})]})}class i extends s.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){var r,n;let s=this.props.scope||"Unknown";console.error("[ErrorBoundary:".concat(s,"]"),e,t),null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,n.jsx)(a,{onRetry:this.handleRetry}):this.props.children}constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}}function l(e){let{children:t,scope:r}=e;return(0,n.jsx)(i,{scope:r,fallback:(0,n.jsx)("div",{className:"rounded-xl border border-error-soft bg-error-soft px-4 py-3 text-sm text-error-strong",children:"Esta secci\xf3n no pudo cargarse."}),children:t})}},76119:function(e){e.exports={spinner:"styles_spinner__JBJ2x"}},5152:function(e,t,r){e.exports=r(95677)},67166:function(e,t,r){"use strict";r.d(t,{N1:function(){return o},ac:function(){return s}});var n=r(67294);function s(e){let t=e=>{if("undefined"!=typeof window)return window.matchMedia(e).matches}
1,[r,s]=(0,n.useState)(t(e));function o(){s(t(e))}return(0,n.useEffect)(()=>{let t=window.matchMedia(e);return o(),t.addListener?t.addListener(o):t.addEventListener("change",o),()=>{t.removeListener?t.removeListener(o):t.removeEventListener("change",o)}},[e]),r}"undefined"!=typeof window&&n.useLayoutEffect;var o=e=>{if(!e)return null;let t=e.match(/<iframe([^>]*)>/);if(!t)return null;let r=t[1],n=a(r);return n},a=e=>{let t;let r={src:""},n=/\s*([^=\s]+)\s*=\s*("([^"]*)"|'([^']*)')/g;for(;t=n.exec(e);){let[e,n,,s]=t;"style"===n?r[n]=i(s):r[n]=s||""}return r},i=e=>{let t={},r=e.split(";").filter(e=>""!==e.trim());return r.forEach(e=>{let[r,n]=e.split(":");t[r.trim()]=n.trim()}),t}}},function(e){e.O(0,[3176,9306,9403,2300,4862,4643,1974,1776,9774,2888,179],function(){return e(e.s=69637)}),_N_E=e.O()}]);

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.