PageSourceSearch

https://www.rappi.cl/static-home/_next/static/chunks/pages/merchant-link-a8f6861efbc03112.js

js rappi.cl collected 2026-09-29 03:47:12 UTC 5,715 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1182],{48634:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/merchant-link",function(){return t(40729)}])},91803:function(n,e,t){"use strict";var r=t(26042),a=t(99534),i=t(85893),s=t(13763),l=t(25675),o=t.n(l),u=t(67294),c=function(n){var e=n.src,t=n.blurDataURL,l=void 0===t?s.mL:t,c=n.fallbackUrl,d=void 0===c?s.kW:c,x=(0,a.Z)(n,["src","blurDataURL","fallbackUrl"]),p=(0,u.useState)(e),h=p[0],A=p[1];return(0,u.useEffect)(function(){A(e)},[e]),(0,i.jsx)(o(),(0,r.Z)({unoptimized:!0,onError:function(){return A(d)},blurDataURL:l,src:h},x))};e.Z=c},13763:function(n,e,t){"use strict";t.d(e,{A2:function(){return s},kW:function(){return a},mL:function(){return i}});var r=t(95760),a="".concat(r.O.resources.base_assets_cms,"/images/placeholder_e9b471e2af.svg"),i="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",s="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mN89vpjPQAIxANDL98MsgAAAABJRU5ErkJggg==";r.O.api.url_services},40729:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return G},default:function(){return Z}});var r,a,i,s=t(47568),l=t(97582),o=t(85893),u=t(27239),c=t(48783),d=t(14e3),x=t(93717),p=t(27210),h=t.n(p),A=t(77332),g=t.n(A),f=t(38817),m=t(93589),b=function(n){var e=n.onSubmit,t=n.inputValue,r=n.setInputValue,a=n.isLoading,i=n.hasError,s=n.placeholderText,l=n.errorText,u=n.buttonText,p=n.isNumberInput;return(0,o.jsxs)(c.g,{children:[(0,o.jsxs)(x.k,{children:[(0,o.jsx)(h(),{height:["12",null,"14"],fontSize:["sm",null,"lg"],pl:[f.Spacing.Spacing4,null,f.Spacing.Spacing6],width:["2xs",null,"sm"],rounded:"full",id:"input",type:p?"number":"text",placeholder:s,value:t,onChange:function(n){return r(function(e){return n.target.validity.valid?n.target.value:e})},pattern:p?"[0-9]*":void 0}),(0,o.jsx)(g(),{onClick:e,isRounded:!0,size:"big",height:["12",null,"14"],minW:["140px",null,"160px"],isDisabled:""===t,isLoading:a,loadingText:u,ml:["-70px",null,"-80px"],children:u})]}),i&&(0,o.jsx)(d.x,{variant:m.Variants.Tiny212,color:"secondary.3100",alignSelf:"flex-start",pl:f.Spacing.Spacing6,children:l})]})},_=t(95760),j=t(9669),v=t.n(j),S={getBrandData:(r=(0,s.Z)(function(n){var e;return(0,l.__generator)(this,function(t){switch(t.label){case 0:return[4,v().post("/api/web-gateway/web/restaurants-bus/store/id/".concat(n),{lat:"".concat(_.O.infoCountry.location.lat),lng:"".concat(_.O.infoCountry.location.lng),store_type:"restaurant"})];case 1:return[2,{storeId:(e=t.sent().data).store_id,brandName:e.brand_name,brandId:e.brand_id}]}})}),function(n){return r.apply(this,arguments)})},w=t(67294),k=t(9008),C=t.n(k),y=t(26793),E=t(5152),N=t.n(E),L=t(96),R=t(49017),I=t(31611),T=t(57747),B=t(59251),O=t(93114),U=t.n(O),V=function(){var n=_.O.infoCountry.base_domain.replace("https://",""),e=(0,y.$)("merchantLink").t;return(0,o.jsxs)(c.g,{spacing:"3",backgroundColor:"gray.10",rounded:"2xl",p:"4",m:"3",alignItems:"flex-start",children:[(0,o.jsxs)(u.M,{w:"100%",children:[(0,o.jsx)(T.xu,{hideBelow:"md",flexGrow:"0",children:(0,o.jsx)(U(),{})}),(0,o.jsx)(d.x,{variant:"Base216",justifySelf:"center",as:"h2",textAlign:"center",flexGrow:"1",children:e("install.subtitle")})]}),(0,o.jsx)(d.x,{variant:"Small114",children:(0,o.jsx)(B.c,{i18nKey:"merchantLink:install.step_by_step",components:{br:(0,o.jsx)("br",{})},values:{root_path:n}})}),(0,o.jsx)(d.x,{variant:"Small114",children:e("install.other_doubts")}),(0,o.jsx)(d.x,{variant:"Small214",children:e("install.welcome")})]})},D=t(91803),M=function(){return(0,o.jsxs)(u.M,{flexDirection:["column",null,"row"],gap:"4",children:[(0,o.jsx)(u.M,{minW:"300px",h:"300px",border:"1px solid",borderColor:"gray.400",rounded:"xl",overflow:"hidden",children:(0,o.jsx)(D.Z,{src:"/assets/merchant_link_example.webp",alt:"Pide por Rappi",objectFit:"contain",width:"300px",height:"300px"})}),(0,o.jsx)(d.x,{variant:"Base116",children:(0,o.jsx)(B.c,{i18nKey:"merchantLink:description",components:{br:(0,o.jsx)("br",{})}})})]})},K=N()(function(){return Promise.all([t.e(4429),t.e(6628)]).then(t.bind(t,6628))},{loadableGenerated:{webpack:function(){return[6628]}}}),G=!0,Z=function(){var n,e=(0,w.useState)(""),t=e[0],r=e[1],a=(0,w.useState)(!1),i=a[0],x=a[1],p=(0,w.useState)(!1),h=p[0],A=p[1],g=(0,w.useState)(!1),f=g[0],m=g[1],_=w.useRef(null),j=(0,y.$)("merchantLink").t,v=(n=(0,s.Z)(function(){var n,e;return(0,l.__generator)(this,function(r){switch(r.label){case 0:x(!0),A(!1),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,S.getBrandData(t)];case 2:return n=r.sent(),_.current=n,x(!1),m(!0),[3,4];case 3:return e=r.sent(),x(!1),A(!0),I.k.error({page:"/merchant-link",error:(0,R.v)(e),message:"Error trying to get Brand data in MerchantLink page"}),[3,4];case 4:return L.AnalyticsActions.buttonClick({source:"FOOTER",storeId:t,error:h,buttonId:"MERCHANT_LINKS",buttonName:"MERCHANT_LINKS"}),[2]}})}),function(){return n.apply(this,arguments)});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(C(),{children:[(0,o.jsxs)("title",{children:[" ",j("meta_title")]}),(0,o.jsx)("meta",{name:"title",content:j("meta_title")})]}),(0,o.jsxs)(u.M,{m:"4",children:[(0,o.jsxs)(c.g,{spacing:"8",maxW:"3xl",children:[(0,o.jsx)(d.x,{as:"h1",variant:"L220",mt:"4",children:j("title")}),(0,o.jsx)(V,{}),(0,o.jsx)(b,{onSubmit:v,placeholderText:j("input.placeholder"),errorText:j("input.error"),buttonText:j("input.button"),isLoading:i,hasError:h,inputValue:t,setInputValue:r,isNumberInput:!0}),(0,o.jsx)(M,{})]}),f&&(0,o.jsx)(K,{onClose:function(){return m(!1)},store:_})]})]})}}},function(n){n.O(0,[4e3,5411,4198,844,3406,9774,2888,179],function(){return n(n.s=48634)}),_N_E=n.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.