PageSourceSearch

https://www.thailanding.us/_next/static/chunks/pages/tenant-page/l…/gift-card-5b5062d6a7fad089.js

js thailanding.us collected 2026-09-24 14:30:50 UTC 5,948 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61190],{2094:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tenant-page/lanternrestaurantbar/gift-card",function(){return n(34586)}])},50636:function(e,a){"use strict";a.Z={getAppInfo:"/api/referral/referral-info",getAppHref:"/api/gift/card/query-redeem-short-link"}},17333:function(e,a,n){"use strict";var o=n(85893),i=n(67294),l=n(24344),d=n(55251),s=n.n(d);a.Z=e=>{var a,n,d,t,r,c,_,p,u;let{appConfig:v,list:m,hidden:g,type:f="app"}=e,x=(0,l.hU)();(0,i.useMemo)(()=>{var e,a,n;if(!v)return;if(!(null===(e=v.app)||void 0===e?void 0:e.appName))return v.fullName;let o=null===(a=v.app)||void 0===a?void 0:a.appName.replace(/\s/g,"");return 0===o.length?v.fullName:null===(n=v.app)||void 0===n?void 0:n.appName},[v]);let h=(null===(a=v.app)||void 0===a?void 0:a.downloadSlogan)||"Earn points with every purchase",j=(null===(n=v.app)||void 0===n?void 0:n.downloadSubSlogan)||"Add your points and redeem for delicious rewards";return(0,o.jsx)("div",{className:"".concat(s().shop," ").concat(g&&s().hidden),style:{backgroundImage:"url(".concat(null==v?void 0:v.backgroundLogoUrl,")")},children:(0,o.jsxs)("div",{className:"".concat(s().shop_container),children:[(0,o.jsxs)("div",{className:s().text,children:[x.isPc&&(0,o.jsxs)("div",{className:s().text_title,children:[(0,o.jsx)("img",{src:null===(d=v.app)||void 0===d?void 0:d.appIconUrl,alt:""}),(null==v?void 0:null===(t=v.app)||void 0===t?void 0:t.appName)||(null==v?void 0:v.brandName)]}),(0,o.jsx)("div",{className:s().text_detail,children:"app"===f?(0,o.jsxs)(o.Fragment,{children:[h&&(0,o.jsx)("p",{className:s().download_slogan,children:h}),j&&(0,o.jsx)("div",{className:s().download_sub_slogan,dangerouslySetInnerHTML:{__html:j}})]}):(0,o.jsxs)(o.Fragment,{children:[(null===(r=v.app)||void 0===r?void 0:r.referralSlogan)&&(0,o.jsx)("p",{className:s().referral_slogan,children:null===(c=v.app)||void 0===c?void 0:c.referralSlogan}),(null===(_=v.app)||void 0===_?void 0:_.invitationContent)&&(0,o.jsx)("p",{className:s().invitation_content,children:null===(p=v.app)||void 0===p?void 0:p.invitationContent}),null==m?void 0:m.map((e,a)=>(0,o.jsx)("div",{className:"".concat(s().referred_item," ").concat(0===a?s().first_referred:""),dangerouslySetInnerHTML:{__html:e}},a))]})})]}),(0,o.jsx)("div",{className:s().pic,children:(0,o.jsx)("img",{src:null==v?void 0:null===(u=v.app)||void 0===u?void 0:u.appPhonePicUrl,alt:""})})]})})}},34586:function(e,a,n){"use strict";n.r(a);var o=n(85893),i=n(67294),l=n(10367),d=n.n(l),s=n(25142),t=n(11163),r=n(24344),c=n(17333),_=n(79514),p=n.n(_),u=n(88737),v=n(50636);a.default=()=>{var e,a,n,l,_,m;let g=(0,r.hU)(),{appConfig:f}=(0,r.s6)(),[x,h]=(0,i.useState)(!1),[j,N]=(0,i.useState)(!1),w=(0,t.useRouter)(),{from:b,orgId:k,id:S}=w.query,P=(0,r.QT)({url:v.Z.getAppHref,method:"get"}),I=async()=>{if(!g.isPc&&"mail"===b&&S&&(k||(null==f?void 0:f.defaultSaleChannelId)))try{let{data:e}=await P.send({giftCardId:S});w.push(e)}catch(e){console.error(e)}};return(0,i.useEffect)(()=>{let e=navigator.userAgent.toLowerCase(),a=e.indexOf("applewebkit")>-1&&-1==e.indexOf("android")&&-1==e.indexOf("adr"),n=e.indexOf("android")>-1||e.indexOf("adr")>-1&&-1==e.indexOf("applewebkit");a&&h(a),n&&N(n)},[]),(0,i.useEffect)(()=>{I()},[]),(0,o.jsxs)("div",{className:p().q_app,children:[(0,o.jsx)(s.NV,{}),(0,o.jsx)(s.$4,{title:(0,u.aR)("App")}),(0,o.jsx)(c.Z,{appConfig:f,list:f.sloganList,hidden:!0}),(0,o.jsx)("div",{className:p().download,children:(0,o.jsx)("div",{className:p().container,children:g.isPc?(0,o.jsxs)("div",{className:p().pc_download,children:[(0,o.jsx)("div",{className:p().qrcode,children:(0,o.jsx)("img",{src:null===(e=f.app)||void 0===e?void 0:e.downloadQRImageLink,alt:""})}),(0,o.jsxs)("div",{className:p().icons,children:[(0,o.jsxs)("p",{children:["Scan QR-code to download",(0,o.jsx)("small",{children:"or view on App Store / Google Play"})]}),(0,o.jsx)("a",{className:p().icon_apple,href:null===(a=f.app)||void 0===a?void 0:a.appStoreLink,target:"_blank"}),(0,o.jsx)("a",{className:p().icon_google,href:null===(n=f.app)||void 0===n?void 0:n.googlePlayLink,target:"_blank"})]})]}):(0,o.jsxs)("div",{className:p().app_icon,children:[(0,o.jsx)("img",{src:null===(l=f.app)||void 0===l?void 0:l.appIconUrl,alt:""}),(0,o.jsx)("div",{})]})})}),g.isPc?(0,o.jsx)(s.Ar.Footer,{}):(0,o.jsxs)("div",{className:p().buttons,children:[x&&(0,o.jsxs)(d(),{block:!0,className:p().button,href:null==f?void 0:null===(_=f.app)||void 0===_?void 0:_.appStoreLink,target:"_blank",children:[(0,o.jsx)("img",{src:"/icon_ios.svg",alt:""}),"Download App"]}),j&&(0,o.jsxs)(d(),{block:!0,className:p().button,href:null==f?void 0:null===(m=f.app)||void 0===m?void 0:m.googlePlayLink,target:"_blank",children:[(0,o.jsx)("img",{src:"/icon_android.svg",alt:""}),"Download App"]})]})]})}},55251:function(e){e.exports={shop:"mods_shop__k5Wmv",shop_container:"mods_shop_container__I0Gne",text:"mods_text__5p69e",text_title:"mods_text_title__LPpd4",text_detail:"mods_text_detail__r2Hgj",pic:"mods_pic__2ZsSv",hidden:"mods_hidden__5ZejW",referred_item:"mods_referred_item__j7KWm",first_referred:"mods_first_referred__uG5hd",referral_slogan:"mods_referral_slogan__zg_Wo",invitation_content:"mods_invitation_content__CoTMf",download_slogan:"mods_download_slogan__S_eXj",download_sub_slogan:"mods_download_sub_slogan__lcBPj","text-animation":"mods_text-animation___iWrs"}},79514:function(e){e.exports={q_app:"gift-card_q_app__35hnm",download:"gift-card_download__ZCtB0",container:"gift-card_container__Kv9c8",pc_download:"gift-card_pc_download__PIZEb",qrcode:"gift-card_qrcode__n1eDO",icons:"gift-card_icons__AFIjo",icon_apple:"gift-card_icon_apple__haw9L",icon_google:"gift-card_icon_google__kxhZ8",app_icon:"gift-card_app_icon__eUisI",buttons:"gift-card_buttons__2Hm8V","text-animation":"gift-card_text-animation__7Z5gX"}}},function(e){e.O(0,[49774,92888,40179],function(){return e(e.s=2094)}),_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.