1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8fbaa5a3-df2e-4376-9358-6250600e30e5",e._sentryDebugIdIdentifier="sentry-dbid-8fbaa5a3-df2e-4376-9358-6250600e30e5")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8259],{68259:function(e,t,n){n.r(t);var a=n(52322),o=n(42180),r=n(2784);let i=!1,s=(e,t)=>{let n=document.createElement("link");n.rel=e,n.href=t,n.crossOrigin="true",document.head.appendChild(n)},l=()=>{i||(s("preconnect","https://www.tiktok.com"),s("preconnect","https://mcs.us.tiktok.com"),s("preconnect","https://mon.us.tiktokv.com"),i=!0)};t.default=e=>{let{videoId:t,autoload:n=!1}=e,[i,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),{data:c}=(0,o.a)({queryKey:["tiktok-oembed",t],queryFn:async()=>{s(!0);let e=encodeURIComponent(t),n=await fetch("https://www.tiktok.com/oembed?url=https://www.tiktok.com/video/".concat(e));if(!n.ok)throw Error("Error fetching oEmbed data");return n.json()},enabled:!n&&!!t});(0,r.useEffect)(()=>{if(!d.current)return;let e=new IntersectionObserver(e=>{for(let t of e)!t.isIntersecting&&i?s(!1):t.isIntersecting&&n&&!i&&(l(),s(!0))},{root:null,rootMargin:"0px",threshold:0});return e.observe(d.current),()=>{e.disconnect()}},[n,i]);let p=()=>{i||s(!0)},u=c?c.thumbnail_url:"",f=c?c.title:"TikTok video";return(0,a.jsxs)("div",{className:"wp-article-block mr-auto ml-auto",ref:d,style:{contain:"content",display:"block",position:"relative",width:"325px",height:735},title:"Play: ".concat(f),"data-sentry-component":"LiteTTEmbed","data-sentry-source-file":"tiktok-embed.tsx",children:[(0,a.jsx)("style",{children:"\n #tiktok-embed, #tiktok-embed iframe {\n position: absolute;\n width: 100%;\n height: 101%;\n left: 0;\n }\n\n #embed-video-container {\n background-color: var(--theme-bg-color) !important;\n }\n\n #tiktok-embed {\n cursor: pointer;\n }\n\n #fake {\n display: flex;\n position: relative;\n height: 100%;\n justify-content: center;\n background: #000;\n width: 80%;\n margin: auto;\n }\n\n #logo {\n position: absolute;\n width: 48px;\n height: 48px;\n margin: 1rem;\n right: 0;\n }\n\n #fallbackPlaceholder {\n height: 100%;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n #playButton {\n width: 150px;\n height: 150px;\n background-color: transparent;\n z-index: 1;\n border: 0;\n }\n\n #playButton:before {\n content: '';\n border-style: solid;\n border-width: 22px 0 22px 40px;\n border-color: transparent transparent transparent #fff;\n }\n\n #playButton,\n #playButton:before {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate3d(-50%, -50%, 0);\n cursor: inherit;\n }\n\n .activated {\n cursor: unset;\n }\n\n .activated #fake {\n display: none;\n }\n "}),(0,a.jsxs)("div",{className:i?"activated":"",id:"tiktok-embed",onClick:p,onKeyDown:p,onPointerOver:()=>{l()},role:"button",tabIndex:0,title:"Play: ".concat(f),children:[(0,a.jsxs)("div",{id:"fake",children:[(0,a.jsxs)("picture",{"data-sentry-element":"picture","data-sentry-source-file":"tiktok-embed.tsx",children:[(0,a.jsx)("source",{id:"jpegPlaceholder",srcSet:u,type:"image/jpeg"}),(0,a.jsx)("img",{alt:"Play: ".concat(f),"aria-label":"Play: ".concat(f),id:"fallbackPlaceholder",loading:"lazy",referrerPolicy:"origin",src:u})]}),(0,a.jsx)("button",{"aria-label":"Play: ".concat(f),id:"playButton",type:"button"}),(0,a.jsxs)("svg",{"aria-hidden":"true",id:"logo",xmlns:"http://www.w3.org/2000/svg","data-sentry-element":"svg","data-sentry-source-file":"tiktok-embed.tsx",children:[(0,a.jsx)("path",{d:"M19.8 19.8v-1.6L18 18a12.1 12.1 0 0 0-7 22 12 12 0 0 1 8.6-20.3Z",fill:"#25F4EE","data-sentry-element":"path","data-sentry-source-file":"tiktok-embed.tsx"}),(0,a.jsx)("path",{d:"M20 37.4c3 0 5.5-2.4 5.6-5.3V5.7h4.8L30.3 4h-6.6v26.4a5.5 5.5 0 0 1-8.1 4.7c1 1.4 2.6 2.3 4.4 2.3Zm19.4-22.7v-1.5c-1.8 0-3.5-.6-
15-1.5a9 9 0 0 0 5 3Z",fill:"#25F4EE","data-sentry-element":"path","data-sentry-source-file":"tiktok-embed.tsx"}),(0,a.jsx)("path",{d:"M34.4 11.7a9.1 9.1 0 0 1-2.2-6h-1.8c.4 2.5 2 4.6 4 6ZM18.1 24.6c-3 0-5.6 2.5-5.6 5.6 0 2.1 1.3 4 3 4.9a5.5 5.5 0 0 1 6.2-8.5v-6.7l-1.7-.2h-.2v5.1l-1.7-.2Z",fill:"#FE2C55","data-sentry-element":"path","data-sentry-source-file":"tiktok-embed.tsx"}),(0,a.jsx)("path",{d:"M39.4 14.6v5.1c-3.4 0-6.6-1.1-9.2-3v13.5a12 12 0 0 1-19 10 12.1 12.1 0 0 0 21-8.3V18.5a16 16 0 0 0 9.1 3v-6.7c-.6 0-1.3 0-1.9-.2Z",fill:"#FE2C55","data-sentry-element":"path","data-sentry-source-file":"tiktok-embed.tsx"}),(0,a.jsx)("path",{d:"M30.3 30.2V16.8a15 15 0 0 0 9.1 3v-5.2c-2-.4-3.7-1.4-5-3a9.2 9.2 0 0 1-4-6h-4.8v26.5a5.5 5.5 0 0 1-10 3 5.5 5.5 0 0 1 4.2-10.2v-5.2a12.1 12.1 0 0 0-8.6 20.4 12 12 0 0 0 19-9.9Z",fill:"#fff","data-sentry-element":"path","data-sentry-source-file":"tiktok-embed.tsx"})]})]}),i?(0,a.jsx)("iframe",{frameBorder:"0",sandbox:"allow-popups allow-popups-to-escape-sandbox allow-scripts allow-top-navigation allow-same-origin",src:"https://www.tiktok.com/embed/v2/".concat(encodeURIComponent(t)),title:"Tiktok: ".concat(f)}):null]})]})}}}]);
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.