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EAAAA,gBAAgB,EAACrB,GAAIkB,EAAQlB,EAAE,EAE3C,C,UAPK,Q,aAAA,6B,YAAA,E,MAAA,C,MASA,mB,IAAL,QAAK,IAAcU,CAAU,CAAVA,OAAAA,QAAAA,CAAAA,GAAd,4BAA0B,CAA1B,IACCM,EADKM,EAAN,QACH,GAAI,OAAAN,CAAAA,EAAAA,EAAOG,IAAI,GAAXH,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAAaI,UAAU,CAACE,EAAKvB,IAAI,EACnC,OAAOuB,EAAKX,OAAO,C,UAFlB,Q,aAAA,6B,YAAA,E,MAAA,C,EAML,OAAO,gDAAGK,EAAOG,IAAI,CACvB,EAaMI,EAAWC,CAAAA,EAAAA,EAAAA,WAAW,EAAC,SAE7BC,CAAAA,EAAAA,EAAAA,SAAS,EACP,wBAACC,EAAAA,UAAU,EAACC,SAAUJ,EAAUvD,MAAM,2BAA2B4D,UAdnE,WACE,OACE,wBAACC,EAAAA,MAAM,MACL,wBAACC,EAAAA,KAAK,EAAC/B,KAAK,IAAIY,QAAS,wBAAChG,EAAAA,aAAa,M,EACrC,wBAACmH,EAAAA,KAAK,EAAC/B,KAAK,QAAQY,QAAS,wBAACI,EAAAA,K,IAEhC,wBAACe,EAAAA,KAAK,EAAC/B,KAAK,gBAAgBY,QAAS,wBAACoB,EAAAA,OAAY,M,GAGxD,C,GAMEC,SAASC,cAAc,CAAC,Q","sources":["components/Auth/PrivateRoute.tsx","containers/Agreements/PackagesPage.tsx","containers/Agreements/StarlingKeys.ts","containers/Agreements/SubscriptionGeneralTerms.tsx","pages/terms/index.tsx"],"sourcesContent":["/**\n * 检查用户是否已登录\n */\nimport React, { useLayoutEffect, useState } from 'react';\nimport { message } from '@byte-design/ui';\nimport { useTranslation } from 'react-i18next';\nimport { observer } from 'mobx-react';\nimport { Outlet } from 'react-router-dom';\nimport { globalInfoStore } from '@/models/global';\nimport { goToLogin } from '@/utils';\n\nconst usePrivateRoute = (fetchingUserInfo: boolean, alreadyLoggedIn: boolean) => {\n const [t] = useTranslation();\n const [loggedIn, setLoggedIn] = useState(false);\n\n useLayoutEffect(() => {\n if (!alreadyLoggedIn) {\n // 用户信息接口调用还没结束\n if (fetchingUserInfo) {\n return;\n }\n\n message.error(t('not_login_error') || 'You have not logged in');\n // 未登录跳转到登录页面,默认以当前地址为回调地址\n goToLogin();\n return;\n }\n\n setLoggedIn(true);\n }, [fetchingUserInfo, alreadyLoggedIn]);\n\n return loggedIn;\n};\n\nconst PrivateRoute = ({ children }: { children: React.ReactNode }) => {\n const loggedIn = usePrivateRoute(globalInfoStore.loading, globalInfoStore.loggedIn);\n\n return <>{loggedIn ? children : null};\n};\n\nexport const PrivateOutlet = observer(() => {\n const loggedIn = usePrivateRoute(globalInfoStore.loading, globalInfoStore.loggedIn);\n\n return <>{loggedIn ? : null};\n});\n\nexport default observer(PrivateRoute);\n","import './index.module.scss';\n\nimport React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { observer } from 'mobx-react';\nimport { PartnerSOWRateCard } from '@ad/ad_utils_react/src/components/business/TTCX/AddOn/types';\nimport { useLoadingEffect } from '@ad/ad_utils_react/src/utils/hooks/loading';\nimport { checkSuccessResponse } from '@ad/ad_utils/src';\nimport { globalInfoStore, UserRoleEnum } from '@/models/global';\nimport projectApis from '@/apis/projectApis';\nimport TTCXPackageCard, { CardType } from '../TTCXPackageCard';\nimport { RevertRegionTextMap } from '../BusinessRelatedParams/consts';\nimport SubscriptionGeneralTerms from './SubscriptionGeneralTerms';\n\nfunction PackagesPage() {\n const [t] = useTranslation();\n\n useEffect(() => {\n globalInfoStore.setShowHeader(false);\n\n return () => {\n globalInfoStore.setShowHeader(true);\n };\n }, []);\n\n const [packageCard, setPackageCard] = useState([]);\n const [gettingPackageCard, getPackageCard] = useLoadingEffect(async () => {\n const res = await projectApis.getExhibit();\n if (checkSuccessResponse(res.code)) {\n const exhibit = Object.values(res.data.exhibitA);\n setPackageCard(exhibit as PartnerSOWRateCard[]);\n }\n });\n\n useEffect(() => {\n (async () => {\n await getPackageCard();\n })();\n }, []);\n\n return (\n
\n

{t('exhibit_a', 'Exhibit A')}

\n \n
\n
\n
\n
\n

{t('ttcx_packages', 'TTCX Packages')}

\n {packageCard.map((item) => {\n return (\n
\n \n
\n );\n })}\n
\n
\n );\n}\n\nexport default observer(PackagesPage);\n","export const GENERAL_SUBSCRIPTION_TERMS = {\n title: {\n starlingKey: 'general_subscription_terms_title',\n fallbackText: 'Additional Terms for Subscriptions and Add-ons (\"Terms\")'\n },\n addOnDescription: {\n starlingKey: 'general_subscription_terms_add_ons_desc',\n fallbackText:\n '“Add-on” means optional extras, as set out in applicable region rate card in this Exhibit A, that Advertisers can purchase to add to selected TTCX Content Production Package(s) in accordance with these Terms.'\n },\n subscriptionDescription: {\n starlingKey: 'general_subscription_terms_subscription_desc',\n fallbackText:\n '“Subscription” means where a Creative Partner accepts an Advertiser’s subscription request to work with Creative Partner on an ongoing basis on selected TTCX Content Production Package(s) in accordance with these Terms.'\n },\n termsDisclaimer: {\n starlingKey: 'general_subscription_terms_disclaimer',\n fallbackText:\n 'For the avoidance of doubt, any capitalized terms in these Terms should be construed in accordance with the definitions set out in the TikTok Creative Exchange Content Production Package Terms.'\n },\n term1: {\n starlingKey: 'general_subscription_terms_1',\n fallbackText:\n \"Subscription Requests. To initiate a subscription request, Advertiser must use the TTCX Platform to select: (i) the Creative Partner it wishes to work with; and (ii) the TTCX Content Production Package it requires to be delivered by the selected Creative Partner for the duration and at such intervals (for example, to receive Creative Assets on a monthly, weekly or biweekly basis, as applicable) set out therein (“Subscription Request”). Advertiser acknowledges and agrees that the types of packages available for Subscription may change from time to time as updated in this Exhibit A, at TikTok's sole discretion. The maximum Subscriptions per Advertiser at any one time varies by region as detailed below.\"\n },\n term2: {\n starlingKey: 'general_subscription_terms_2',\n fallbackText:\n 'Acceptance of a Subscription Request. Creative Partner must accept the Subscription Request in order to activate the Subscription. Once the Subscription Request is accepted by Creative Partner, the selected Creative Partner and TTCX Content Production Package is binding for the duration of the Subscription until terminated, as provided below.  Advertiser agrees that if the Creative Partner does not accept the Subscription Request, neither Creative Partner nor TikTok shall have any further obligation regarding the Subscription Request.'\n },\n term3: {\n starlingKey: 'general_subscription_terms_3',\n fallbackText:\n \"Creative Brief. Once a Creative Partner accepts an Advertiser’s Subscription Request, the requesting Advertiser must provide a Creative Brief to the Creative Partner for their acceptance. Advertiser must then promptly conduct a kickoff call with the Creative Partner to align on creative requirements. Advertiser’s Creative Brief submission date will be selected by the Advertiser at the time of Advertiser’s initial Subscription Request (“Brief Submission Date”). Advertiser will have until each subsequent Brief Submission Date to submit an updated new Creative Brief. If Advertiser does not submit a new Creative Brief by 11:59 pm GMT on the Brief Submission Date in Advertiser’s local timezone, Advertiser's existing Creative Brief will automatically be submitted to the Creative Partner.\"\n },\n term4: {\n starlingKey: 'general_subscription_terms_4',\n fallbackText:\n 'Subscription Minimum Spend. Minimum Spend is assessed and calculated on a per package basis. For example, if an Advertiser selects two TTCX Content Production Packages (Package A and Package B), each with a $X Minimum Spend, it must spend at least $X on Creative Assets from Package A and $X on Creative Assets from Package B in order for Affiliated Media Services Fees to be waived on both TTCX Content Production Packages. Advertiser may allocate spend across all Creative Assets in each TTCX Content Production Package it selects in any manner it wishes, provided that such allocation when added together is at least equal to the Minimum Spend for that TTCX Content Production Package. Subscription availability is dependent on Advertiser’s geographic location. For some locations, access to Subscription may be restricted to whitelisted Advertisers. Subscription terms may vary by region and are subject to change at any time by TikTok as updated in this Exhibit A.'\n },\n term5: {\n starlingKey: 'general_subscription_terms_5',\n fallbackText:\n \"Terminating or Modifying a Subscription. If Advertiser wishes to select a different Creative Partner or change its TTCX Content Production Package selection, it must terminate its existing Subscription in accordance with the below termination process and submit a new Subscription Request. Unless otherwise agreed in writing by TikTok, Subscriptions cannot be paused after being accepted by the Creative Partner without prior written consent from TikTok. Unused TTCX Content Production Packages cannot be credited or rolled over. Subscriptions shall continue until terminated by either Advertiser or TikTok. Subscriptions can be terminated by Advertiser by providing TikTok with written notice at least fourteen (14) calendar days' prior to the forthcoming Brief Submission Date by using the cancellation button on the TTCX Platform. If Advertiser fails to provide the requisite notice, it will remain liable for the Minimum Spend or Affiliated Media Services Fees for the applicable Subscription TTCX Content Production Package. Subscriptions can be terminated by TikTok at any time in its sole discretion.\"\n },\n term6: {\n starlingKey: 'general_subscription_terms_6',\n fallbackText:\n 'Add-on Requests. Add-ons may be requested by Advertiser on the TTCX Platform in relation to an existing Subscription or TTCX Content Production Package. If Advertiser chooses to purchase an Add-on, Creative Partner needs to accept the Add-on request in order for the Add-on to be binding. Advertiser agrees that if the Creative Partner does not accept the Add-on request, neither Creative Partner nor TikTok shall have any further obligation regarding the Advertiser’s Add-on request.'\n },\n term7: {\n starlingKey: 'general_subscription_terms_7',\n fallbackText:\n 'Add-ons to Subscriptions. Add-ons are not binding for the duration of the Subscription but will be automatically duplicated and applied throughout the Subscription term unless Advertiser makes changes to the Add-ons in the TTCX Platform prior to the next Brief Submission Date.  For the avoidance of doubt, Advertiser may change its Add-on preferences (including selecting no add-ons) prior to each Brief Submission Date for the duration of the Subscription.'\n },\n term8: {\n starlingKey: 'general_subscription_terms_8',\n fallbackText:\n 'Add-ons Minimum Spend. Choosing an Add-on will modify your selected TTCX Content Production Package and require additional Minimum Spend, as well as potentially incurring additional Affiliated Media Services Fees, as set out below. Affiliated Media Services Fees will be assessed if you fail to meet the Minimum Spend for your selected TTCX Content Production Package and Add-ons. If Advertiser selects an Add-on that includes an additional Minimum Spend of $Y, which is added on to Package A with Minimum Spend of $X, Advertiser must spend at least $X+$Y on Creative Assets from Package A and/or any Add-on Creative Assets in order for Affiliated Media Services Fees to be waived on Package A (which, for the avoidance of doubt, includes the Add-on). Add-on availability is dependent on Advertiser’s geographic location. For some locations, access to Add-ons may be restricted to whitelisted Advertisers. Add-on terms may vary by region and are subject to change at any time by TikTok as updated in this Exhibit A.'\n }\n};\n","import { StarlingText } from '@ad/ad_utils_react/src/components/business/TTCX/AddOn/types';\nimport { TFunction } from 'i18next';\nimport React from 'react';\nimport { Trans, useTranslation } from 'react-i18next';\nimport { GENERAL_SUBSCRIPTION_TERMS } from './StarlingKeys';\n\nfunction SubscriptionGeneralTerms() {\n const [t] = useTranslation();\n\n function convertT(\n tFunc: TFunction<'translation', undefined>,\n content: StarlingText | undefined,\n isStyle = false\n ) {\n return isStyle ? (\n ,\n b: \n }}\n />\n ) : (\n tFunc(content?.starlingKey || '', content?.fallbackText)\n );\n }\n\n return (\n
\n

{convertT(t, GENERAL_SUBSCRIPTION_TERMS.title)}

\n
{convertT(t, GENERAL_SUBSCRIPTION_TERMS.addOnDescription, true)}
\n
{convertT(t, GENERAL_SUBSCRIPTION_TERMS.subscriptionDescription, true)}
\n
{convertT(t, GENERAL_SUBSCRIPTION_TERMS.termsDisclaimer)}
\n
    \n
  1. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term1, true)}
  2. \n
  3. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term2, true)}
  4. \n
  5. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term3, true)}
  6. \n
  7. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term4, true)}
  8. \n
  9. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term5, true)}
  10. \n
  11. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term6, true)}
  12. \n
  13. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term7, true)}
  14. \n
  15. {convertT(t, GENERAL_SUBSCRIPTION_TERMS.term8, true)}
  16. \n
\n
\n );\n}\n\nexport default SubscriptionGeneralTerms;\n","import React from 'react';\nimport { Route, Routes, useParams } from 'react-router-dom';\nimport { AppWrapper, renderApp } from '@/utils/createApp';\nimport { getBaseName } from '@/utils';\nimport { PrivateOutlet } from '@/components/Auth/PrivateRoute';\nimport { AdvertiserTerms, IpTransferAgreement, AgreementFromTcc, FundedTerms } from '@/components/Agreement';\nimport { AgreementID } from '@/containers/BusinessRelatedParams/consts';\nimport PackagesPage from '@/containers/Agreements/PackagesPage';\n\nconst hotModule = module as any;\nif (hotModule.hot) {\n hotModule.hot.accept();\n}\n\nconst tccTerms = [\n {\n path: 'partner-agreement',\n id: AgreementID.Partner\n },\n {\n path: 'partner-shared-folder',\n id: AgreementID.SharedFolderWithoutRevShare\n },\n {\n path: 'partner-shared-folder-with-rev-share',\n id: AgreementID.SharedFolderWithRevShare\n },\n {\n path: 'partner-subscription-agreement',\n id: AgreementID.SubscriptionAddendumForPartner\n },\n {\n path: 'advertiser-platform-agreement',\n id: AgreementID.AdvertiserPlatformTerm\n },\n {\n path: 'partner-platform-agreement',\n id: AgreementID.PartnerPlatformTerm\n },\n {\n path: 'video-content-package-agreement',\n aliasPath: 'advertiser-agreement', // for supporting legacy paths\n id: AgreementID.TTCXPackageTerm\n }\n];\n\nconst otherTerms = [\n {\n path: 'ip-transfer-agreement',\n element: \n },\n {\n path: 'terms-advertiser',\n element: \n },\n {\n path: 'funded-terms',\n element: \n }\n];\n\nconst TermsSwitch = () => {\n const params = useParams();\n for (const tccTerm of tccTerms) {\n if (\n params.name?.startsWith(tccTerm.path) ||\n (tccTerm.aliasPath && params.name?.startsWith(tccTerm.aliasPath))\n ) {\n return ;\n }\n }\n\n for (const term of otherTerms) {\n if (params.name?.startsWith(term.path)) {\n return term.element;\n }\n }\n\n return <>{params.name};\n};\n\nfunction TermsPage() {\n return (\n \n }>\n } />\n \n } />\n \n );\n}\n\nconst basename = getBaseName('terms');\n\nrenderApp(\n ,\n document.getElementById('root')!\n);\n"],"names":["PrivateOutlet","usePrivateRoute","fetchingUserInfo","alreadyLoggedIn","t","useTranslation","useState","loggedIn","setLoggedIn","useLayoutEffect","message","error","goToLogin","observer","globalInfoStore","loading","Outlet","children","useEffect","setShowHeader","packageCard","setPackageCard","useLoadingEffect","res","projectApis","getExhibit","checkSuccessResponse","code","Object","values","data","exhibitA","getPackageCard","div","className","h1","SubscriptionGeneralTerms","br","h2","map","item","key","region","TTCXPackageCard","cardType","CardType","ttcxPackage","RevertRegionTextMap","card","userRole","UserRoleEnum","Advertiser","GENERAL_SUBSCRIPTION_TERMS","title","starlingKey","fallbackText","addOnDescription","subscriptionDescription","termsDisclaimer","term1","term2","term3","term4","term5","term6","term7","term8","convertT","tFunc","content","isStyle","Trans","i18nKey","defaults","components","b","h4","ol","li","hotModule","module","hot","accept","tccTerms","path","id","AgreementID","Partner","SharedFolderWithoutRevShare","SharedFolderWithRevShare","SubscriptionAddendumForPartner","AdvertiserPlatformTerm","PartnerPlatformTerm","aliasPath","TTCXPackageTerm","otherTerms","element","IpTransferAgreement","AdvertiserTerms","FundedTerms","TermsSwitch","params","useParams","tccTerm","name","startsWith","AgreementFromTcc","term","basename","getBaseName","renderApp","AppWrapper","baseName","Component","Routes","Route","PackagesPage","document","getElementById"],"sourceRoot":""}