"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9058],{75886:(e,o,n)=>{n.d(o,{A:()=>d});var t=n(24643),l=n(40099),a=n(84987);const i={id:"qr-code-wrapper-9e84af22",use:"qr-code-wrapper-9e84af22-usage",viewBox:"0 0 200 200",content:''};function d(e){const o=(0,l.useContext)(a.X);return(0,l.useLayoutEffect)((()=>(o.add(i),()=>{o.remove("qr-code-wrapper-9e84af22")})),[]),(0,t.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,t.jsx)("use",{xlinkHref:"#qr-code-wrapper-9e84af22"},void 0)}),void 0)}},39117:(e,o,n)=>{var t;n.d(o,{w4:()=>p}),function(e){e.Apple="apple",e.Amazon="amazon",e.Google="google",e.Download="download",e.Microsoft="microsoft"}(t||(t={}));const l=["ast","de","en","fr","it","ja","pt"],a="en",i=["microsoft","apple","amazon","google","download"],d={apple:"ios_app_store",google:"google_play",amazon:"amazon_store",download:"download_apk",microsoft:"microsoft_store"},r="officewebshare",s="normal";function p({lang:e,downloadLink:o={},isIOS:n=!1,isAndroid:t=!1}){var p;const c=e.split("-")[0],g=l.includes(c)&&!(null===(p=o.download)||void 0===p?void 0:p.visible)?c:a;return{iconLanguage:g,iconConfig:i.reduce(((e,l)=>{const a=o[l];return(null==a?void 0:a.visible)&&function({platform:e,isIOS:o,isAndroid:n}){switch(e){case"apple":return!n;case"google":case"download":case"amazon":return!o;default:return!0}}({platform:l,isAndroid:t,isIOS:n})&&e.push({platform:l,language:g,href:a[r]||a[s],alt:`${l}-store`,target:d[l]||l}),e}),[])}}},64046:(e,o,n)=>{n.d(o,{OS:()=>f,h5:()=>g,j5:()=>h,Rv:()=>m,ZR:()=>w});var t=n(62186),l=n(72153);const a=n.p+"25b0d4f3e6779acb114f.png",i=n.p+"1db62e2b736e1cc835a3.png",d=n.p+"f1596f39e85631c052c4.png",r=n.p+"b5b0c8fab7d18dff2e2a.png",s=n.p+"2097820e1be2c7a06bf8.png",p=n.p+"a028a67e740da091b89b.png",c=n.p+"0433f99adc0a040142f6.png",g=(0,t.default)("div",{target:"e1obx3ji0"})((({region:e})=>({marginTop:"US"===e?"40px":"16px",display:"flex",flexDirection:"row",width:"288px",flexWrap:"wrap",justifyContent:"space-between"})),"label:DivDownloadContainer;"),u={amazon:{backgroundPosition:"0 0"},apple:{backgroundPosition:"0 -43px"},google:{backgroundPosition:"0 -86px"}},f=(0,t.default)("a",{target:"e1obx3ji1"})({":nth-of-type(-n+2)":{marginBottom:"8px"}},"label:AIconContainer;"),h=(0,t.default)("img",{target:"e1obx3ji2"})((({platform:e,lang:o})=>function(e,o){return"download"===e?{backgroundImage:"url('https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/download.png~296x0.image')"}:"microsoft"!==e?Object.assign(Object.assign({},u[e]),{backgroundImage:`url(https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/${o}.png~296x0.image)`}):void 0}(e,o)),{width:"138px",height:"40px",backgroundSize:"138px",objectFit:"cover",borderRadius:"4px"},"label:ImgIcon;"),m=(0,t.default)("p",{target:"e1obx3ji3"})((({theme:e})=>(0,l.zy)({theme:e,typography:"P1",fontWeight:"semiBold"})),"label:PSubTitle;"),v={ast:a,de:i,en:d,fr:r,it:s,ja:p,pt:c},w=e=>v[e]},65467:(e,o,n)=>{n.d(o,{u:()=>L});var t=n(24643),l=n(41271),a=n(57432),i=n.n(a),d=n(40099),r=n(73635),s=n(25616),p=n(47926),c=n(85997),g=n(57456),u=n(39117),f=n(64046);const h=(0,d.memo)((function(e){const{iconLanguage:o,iconConfig:n}=(0,d.useMemo)((()=>(0,u.w4)(e)),[e]),{region:l=""}=e,a=(0,s.s)()("add_windows_store_badge_download_app_stores"),i=(0,d.useCallback)((e=>{c.jA.handleClickAppStore(e)}),[]);return(0,t.jsxs)(d.Fragment,{children:[(0,t.jsx)(f.Rv,{children:a}),(0,t.jsx)(f.h5,{region:l,children:n.map((({alt:e,href:n,platform:l})=>(0,t.jsx)(f.OS,{href:n,target:"_blank",rel:"nofollow noopener noreferrer",onClick:i.bind(null,l),children:(0,t.jsx)(f.j5,{src:"microsoft"===l?(0,f.ZR)(o):g,platform:l,alt:e,lang:o})},l)))})]})}));var m=n(50970),v=n(54888),w=n(1452),x=n(93981);const b=(0,n(47236).Ay)({resolved:{},chunkName:()=>"qrcode.react",isReady(e){const o=this.resolve(e);return!0===this.resolved[o]&&!n.m[o]},importAsync:()=>Promise.all([n.e(5080),n.e(7912)]).then(n.t.bind(n,57061,23)),requireAsync(e){const o=this.resolve(e);return this.resolved[o]=!1,this.importAsync(e).then((e=>(this.resolved[o]=!0,e)))},requireSync(e){const o=this.resolve(e);return n(o)},resolve:()=>57061});var _=n(62186),y=n(72153),k=n(75886);const C=(0,_.default)("div",{target:"eamnwhk0"})({textAlign:"center",maxWidth:"400px"},"label:DivLargeContentContainer;"),j=(0,_.default)("div",{target:"eamnwhk1"})((({theme:{direction:e,colors:o}})=>[{borderBottom:`0.5px solid ${o.LinePrimary}`,paddingTop:"24px",paddingBottom:"16px",maxWidth:"400px"},(0,y.mp)({direction:e,paddingStart:"24px",paddingEnd:"48px"})]),"label:DivModalHeader;"),A=(0,_.default)("p",{target:"eamnwhk2"})((({theme:e})=>(0,y.zy)({theme:e,typography:"P0",fontWeight:"bold"})),"label:PTitle;"),z=(0,_.default)("p",{target:"eamnwhk3"})((({theme:e})=>(0,y.zy)({theme:e,typography:"P1",fontWeight:"semiBold"})),{margin:"32px 0 24px 0",width:"auto",padding:"0 24px"},"label:PSubTitle;"),D=(0,_.default)("div",{target:"eamnwhk4"})({position:"relative",display:"flex",flexDirection:"column",alignItems:"center"},"label:DivQRContainer;"),S=(0,_.default)("div",{target:"eamnwhk5"})((({showDownloadOptions:e})=>[{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",margin:e?"":"0 0 47px 0"}]),"label:DivQRContentContainer;"),O=(0,_.default)(k.A,{target:"eamnwhk6"})({display:"block"},"label:StyledQrBg;"),I=(0,_.default)("div",{target:"eamnwhk7"})({position:"absolute",width:"174px",height:"174px",left:"50%",top:"50%",transform:"translate(-50%, -50%)",borderRadius:"4px",overflow:"hidden"},"label:DivQRCodeWrapper;"),M=(0,_.default)("img",{target:"eamnwhk8"})({width:"100%"},"label:ImgQRCode;"),E=(0,_.default)("div",{target:"eamnwhk13"})({display:"flex",flexDirection:"column",alignItems:"center",width:"400px",padding:"24px 24px 60px 24px"},"label:DivDownloadLContainer;"),T=(0,_.default)("div",{target:"eamnwhk14"})((({theme:{direction:e}})=>[{position:"absolute",top:"24px",borderRadius:"50%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1,width:"24px",height:"24px"},(0,y.mp)({direction:e,end:"24px"})]),"label:DivCloseWrapper;"),P=(0,d.memo)((function({appType:e,text:o,style:n={}}){const l="t"===e?x:w;return(0,t.jsxs)(D,{style:n,children:[(0,t.jsx)(O,{width:"176",height:"176"}),(0,t.jsx)(I,{children:o?(0,t.jsx)(b,{size:174,value:o}):(0,t.jsx)(M,{src:l})})]})})),L=(0,d.memo)((function(e){var o,n;const{visible:a,qrCodeText:c,onClose:g=i(),showAppStores:u=!0}=e,f=(0,s.s)(),w=null!==(o=e.title)&&void 0!==o?o:f("add_windows_store_badge_get_tiktok_app"),x=null!==(n=e.subTitle)&&void 0!==n?n:f("add_windows_store_badge_scan_qr"),{region:b,appType:_,lang:y}=(0,l.P)(m.L,{selector:e=>{var o,n;return{region:null===(o=e.appContext)||void 0===o?void 0:o.region,lang:e.lang,appType:null===(n=e.appContext)||void 0===n?void 0:n.appType}},dependencies:[]}),k=(0,l.P)(v.$,{selector:e=>{var o,n,t,l;return{isIOS:null===(o=e.bizContext)||void 0===o?void 0:o.isIOS,isAndroid:null===(n=e.bizContext)||void 0===n?void 0:n.isAndroid,downloadLink:null!==(l=null===(t=e.bizContext)||void 0===t?void 0:t.downloadLink)&&void 0!==l?l:{}}},dependencies:[]}),D=(0,d.useMemo)((()=>Object.assign({lang:y},k)),[y,k]);return(0,t.jsxs)(p.i,{isOpen:a,onClose:g,compact:!0,closeOnBackdropClick:!0,closeOnEsc:!0,children:[(0,t.jsxs)(j,{children:[(0,t.jsx)(T,{onClick:g,children:(0,t.jsx)(r.A,{width:24,height:24})}),(0,t.jsx)(A,{children:w})]}),(0,t.jsxs)(C,{children:[(0,t.jsxs)(S,{showDownloadOptions:u,children:[(0,t.jsx)(z,{children:x}),(0,t.jsx)(P,{appType:_,text:c})]}),u&&(0,t.jsx)(E,{children:(0,t.jsx)(h,Object.assign({},D,{region:b}))})]})]})}))},85997:(e,o,n)=>{n.d(o,{jA:()=>d});var t,l,a,i=n(93608);!function(e){e.Apple="apple",e.Amazon="amazon",e.Google="google",e.Download="download",e.Microsoft="microsoft"}(t||(t={})),function(e){e.Notify="download_app_notify",e.Confirm="download_app_confirm",e.Dismiss="download_app_dismiss",e.ClickAppStore="click_app_store",e.SwipeUpGuideShow="swipe_up_guide_show",e.SwipeUpGuideClose="swipe_up_guide_close"}(l||(l={})),function(e){e.XClose="x_close",e.ClickMask="click_mask",e.NotNow="not_now"}(a||(a={}));const d={handleClickAppStore:e=>{i.f.sendEvent("click_app_store",{channel:e,enter_from:"webapp_download_modal"})},handleDownloadShow:e=>{i.f.sendEvent("download_app_notify",e)},handleDownloadConfirm:e=>{i.f.sendEvent("download_app_confirm",e)},handleDownloadDismiss:e=>{i.f.sendEvent("download_app_dismiss",e)},handleNewUserGuideShow:e=>{i.f.sendEvent("swipe_up_guide_show",e)},handleNewUserGuideClose:e=>{i.f.sendEvent("swipe_up_guide_close",e)},tapDownloadConfirm:e=>{i.f.event("tap",Object.assign(Object.assign({},e),{duration:performance.now()})),window.__COIN_ACTIVITY_TAP_PARAMS&&i.f.event("luckycat_click_download",window.__COIN_ACTIVITY_TAP_PARAMS)}}},57456:(e,o,n)=>{e.exports=n.p+"d60c66b9f5dc9647f3a3.png"},1452:(e,o,n)=>{e.exports=n.p+"c287bca871661e22ee8a.png"},93981:(e,o,n)=>{e.exports=n.p+"47624c235266dedd8e4d.png"}}]);