PageSourceSearch

https://tadreamk.com/static/js/691.29aa8e5c.chunk.js

js tadreamk.com collected 2026-10-08 12:27:11 UTC 27,522 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfront_end_main_website=self.webpackChunkfront_end_main_website||[]).push([[691],{3911:(e,t,a)=>{a.d(t,{A:()=>s});a(5043);var l=a(4117),r=a(579);const s=e=>{let{onBackClick:t,categoryName:a="Page",buttonText:s,colorClass:n="text-violet-300 hover:text-violet-200",className:i=""}=e;const{t:c}=(0,l.Bd)("common"),o=s||"".concat(c("navigation.backTo")," ").concat(a);return(0,r.jsx)("div",{className:"mb-8 ".concat(i),children:(0,r.jsxs)("button",{onClick:t,className:"inline-flex items-center space-x-2 ".concat(n," transition-colors duration-300 group"),children:[(0,r.jsx)("svg",{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),(0,r.jsx)("span",{className:"font-medium",children:o})]})})}},5691:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ae});var l=a(5043),r=a(4117),s=a(8497),n=a(8533),i=a(4999),c=a(2732),o=a(2629),d=a(6386);const m=e=>"zh-CN"===e?{"IP Law":{title:"\u77e5\u8bc6\u4ea7\u6743\u6cd5",prefix:"\u77e5\u8bc6\u4ea7\u6743",highlight:"\u6cd5",suffix:""},"TadReamk AI":{title:"TadReamk \u4eba\u5de5\u667a\u80fd",prefix:"TadReamk",highlight:"\u4eba\u5de5\u667a\u80fd",suffix:""},"TadReamk Design":{title:"TadReamk \u8bbe\u8ba1",prefix:"TadReamk",highlight:"\u8bbe\u8ba1",suffix:""},"TadReamk-AIGC":{title:"TadReamk AIGC",prefix:"TadReamk",highlight:"AIGC",suffix:""},"TadReamk-ERP":{title:"TadReamk ERP",prefix:"TadReamk",highlight:"ERP",suffix:""}}:"zh-TW"===e?{"IP Law":{title:"\u667a\u6167\u8ca1\u7522\u6b0a\u6cd5",prefix:"\u667a\u6167\u8ca1\u7522\u6b0a",highlight:"\u6cd5",suffix:""},"TadReamk AI":{title:"TadReamk \u4eba\u5de5\u667a\u6167",prefix:"TadReamk",highlight:"\u4eba\u5de5\u667a\u6167",suffix:""},"TadReamk Design":{title:"TadReamk \u8a2d\u8a08",prefix:"TadReamk",highlight:"\u8a2d\u8a08",suffix:""},"TadReamk-AIGC":{title:"TadReamk AIGC",prefix:"TadReamk",highlight:"AIGC",suffix:""},"TadReamk-ERP":{title:"TadReamk ERP",prefix:"TadReamk",highlight:"ERP",suffix:""}}:{"IP Law":{title:"IP Law",prefix:"IP",highlight:"Law",suffix:""},"TadReamk AI":{title:"TadReamk AI",prefix:"TadReamk",highlight:"AI",suffix:""},"TadReamk Design":{title:"TadReamk Design",prefix:"TadReamk",highlight:"Design",suffix:""},"TadReamk-AIGC":{title:"TadReamk AIGC",prefix:"TadReamk",highlight:"AIGC",suffix:""},"TadReamk-ERP":{title:"TadReamk ERP",prefix:"TadReamk",highlight:"ERP",suffix:""}},u=e=>{let{category:t,innovationTextClasses:a}=e;const{i18n:l}=(0,r.Bd)("home"),s=m(l.language);return(0,d.GV)(s,t,a,t)};m("en");var x=a(9700),h=a(579);const g=e=>{let{title:t,abstract:a,category:l}=e;const{getPrimaryHeading:r,getSupportingText:s}=(0,x.EE)(),{getInnovationTextClasses:n}=(0,x.WA)(),i=n();if("News"===l)return(0,h.jsxs)("div",{className:"text-center mb-16",children:[(0,h.jsxs)("h2",{className:r("hero"),children:["Latest ",(0,h.jsx)("span",{className:i,children:"News"})]}),(0,h.jsx)("p",{className:"".concat(s("subtitle")," max-w-3xl mx-auto"),children:a})]});return["IP Law","TadReamk AI","TadReamk Design","TadReamk-AIGC","TadReamk-ERP"].includes(l)?(0,h.jsxs)("div",{className:"text-center mb-16",children:[(0,h.jsx)("h2",{className:r("product"),children:(0,h.jsx)(u,{category:l,innovationTextClasses:i})}),(0,h.jsx)("p",{className:"".concat(s("subtitle")," max-w-3xl mx-auto"),children:a})]}):(0,h.jsxs)("div",{className:"text-center mb-16",children:[(0,h.jsx)("h2",{className:r("product"),children:t}),(0,h.jsx)("p",{className:"".concat(s("subtitle")," max-w-3xl mx-auto"),children:a})]})},p=(e,t)=>{return"News"===e?{title:"Latest News",abstract:"Stay up to date with the latest developments, product updates, and announcements from TadReamk"}:"IP Law"===e?{title:t("categories.ipLaw.title",{defaultValue:(null===(a=o.m[e])||void 0===a?void 0:a.title)||e}),abstract:t("categories.ipLaw.description",{defaultValue:(null===(l=o.m[e])||void 0===l?void 0:l.abstract)||"Explore our collection of ".concat(e," articles and insights.")})}:"TadReamk AI"===e?{title:t("categories.tadreamkAI.title",{defaultValue:(null===(r=o.m[e])||void 0===r?void 0:r.title)||e}),abstract:t("categories.tadreamkAI.description",{defaultValue:(null===(s=o.m[e])||void 0===s?void 0:s.abstract)||"Explore our collection of ".concat(e," articles and insights.")})}:"TadReamk Design"===e?{title:t("categories.tadreamkDesign.title",{defaultValue:(null===(n=o.m[e])||void 0===n?void 0:n.title)||e}),abstract:t("categories.tadreamkDesign.description",{defaultValue:(null===(i=o.m[e])||void 0===i?void 0:i.abstract)||"Explore our collection of ".concat(e," articles and insights.")})}
1:"TadReamk-AIGC"===e?{title:t("categories.tadreamkAIGC.title",{defaultValue:(null===(c=o.m[e])||void 0===c?void 0:c.title)||e}),abstract:t("categories.tadreamkAIGC.description",{defaultValue:(null===(d=o.m[e])||void 0===d?void 0:d.abstract)||"Explore our collection of ".concat(e," articles and insights.")})}:"TadReamk-ERP"===e?{title:t("categories.tadreamkERP.title",{defaultValue:(null===(m=o.m[e])||void 0===m?void 0:m.title)||e}),abstract:t("categories.tadreamkERP.description",{defaultValue:(null===(u=o.m[e])||void 0===u?void 0:u.abstract)||"Explore our collection of ".concat(e," articles and insights.")})}:o.m[e]||{title:e,abstract:"Explore our collection of ".concat(e," articles and insights.")};var a,l,r,s,n,i,c,d,m,u};function f(e){let{category:t="News",username:a=null,userImageUrl:l=null,logoUrl:o,customArticles:d=null,onArticleSelect:m=null,loading:u=!1}=e;const{t:f}=(0,r.Bd)("articles"),{getSupportingText:y}=(0,x.EE)(),v=null!==d&&void 0!==d?d:[],b=p(t,f);return(0,h.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-gray-900 via-purple-900 to-violet-900",children:[(0,h.jsx)(s.A,{username:a,user_image_url:l,logoUrl:o}),(0,h.jsx)("main",{children:(0,h.jsxs)(c.A,{children:[(0,h.jsx)(g,{title:b.title,abstract:b.abstract,category:t}),u?(0,h.jsx)("div",{className:"text-center py-16",children:(0,h.jsx)("div",{className:"text-gray-300 ".concat(y("medium")),children:"Loading articles..."})}):v.length>0?(0,h.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:v.map(e=>(0,h.jsx)(i.A,{image:e.image,title:e.title,excerpt:e.excerpt,author:e.author,date:e.date,readTime:e.readTime,category:e.category,imageAlt:e.imageAlt,articleUrl:e.articleUrl,onClick:m,article:e},e.id))}):(0,h.jsx)("div",{className:"text-center py-16",children:(0,h.jsx)("div",{className:"text-gray-400 ".concat(y("medium")),children:f("common.noArticlesAvailable",{category:t,defaultValue:"No articles available for ".concat(t," at the moment.")})})})]})}),(0,h.jsx)(n.A,{logoUrl:o})]})}var y=a(9179);const v=e=>{let{audioPath:t,className:a=""}=e;const{t:s}=(0,r.Bd)("articles"),[n,i]=(0,l.useState)(!1),[c,o]=(0,l.useState)(!1),d=(0,l.useRef)(null);return t?(0,h.jsx)("div",{className:"mb-4 ".concat(a),children:(0,h.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,h.jsx)("div",{className:"flex items-center justify-center space-x-4",children:(0,h.jsxs)("div",{className:"flex items-center space-x-3 bg-blue-900/20 px-4 py-2 rounded-full border border-blue-600/30",children:[(0,h.jsx)("button",{onClick:async()=>{if(d.current)try{n?(d.current.pause(),i(!1)):(o(!0),await d.current.play(),i(!0))}catch(e){console.error("Error playing audio:",e)}finally{o(!1)}},disabled:c,className:"flex items-center justify-center w-12 h-12 bg-blue-600 hover:bg-blue-700 rounded-full text-white transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed",children:c?(0,h.jsx)(y.A,{size:"sm"}):n?(0,h.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,h.jsx)("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})}):(0,h.jsx)("svg",{className:"w-5 h-5 ml-0.5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,h.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82z"})})}),(0,h.jsx)("div",{className:"text-blue-300",children:(0,h.jsx)("span",{className:"text-sm font-medium",children:s(n?"audio.nowPlaying":"audio.listenToArticle")})})]})}),(0,h.jsx)("audio",{ref:d,src:t,onEnded:()=>{i(!1)},onError:()=>{o(!1),i(!1)},preload:"metadata"})]})}):null};var b=a(4450);const j=e=>{let{title:t,articleUrl:a,className:l=""}=e;const{t:s}=(0,r.Bd)("articles"),n=a||window.location.href,i=encodeURIComponent("Check out this article: ".concat(t)),c="https://twitter.com/intent/tweet?text=".concat(i,"&url=").concat(encodeURIComponent(n)),o="https://www.linkedin.com/sharing/share-offsite/?url=".concat(encodeURIComponent(n));return(0,h.jsx)("div",{className:"border-t border-gray-700/50 pt-8 mb-16 ".concat(l),children:(0,h.jsxs)("div",{className:"text-center",children:[(0,h.jsx)("h3",{className:"text-xl font-semibold text-white mb-6",children:s("share.title")}),(0,h.jsxs)("div",{className:"flex justify-center space-x-4",children:[(0,h.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:(0,h.jsx)(b.A,{color:"blue",variant:"primary",children:s("share.shareOnX")})}),(0,h.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:(0,h.jsx)(b.A,{color:"blue",variant:"secondary",children:s("share.shareOnLinkedIn")})})]})]})})};var N=a(3911),w=a(3610),k=a(9379);const T=e=>{const t=e.imagePath||e.image_path;return t?t.src||t.url?(0,k.A)((0,k.A)({},t),{},{src:t.src||t.url}):t:null},A=e=>({en:"en","zh-CN":"zh","zh-TW":"zh-TW"}[e]||e),R=(e,t)=>{if(!e.markdownContent)return null;if("en"===t||!e.translations)return e.markdownContent;const a=A(t),l=e.translations[a];return l&&"string"===typeof l.content?l.content:e.markdownContent},_=(e,t)=>
1{try{var a,l;if(e.markdownContent)return[];if("en"===t||!e.translations)return(null===(l=e.structuredContent)||void 0===l?void 0:l.sections)||[];const n=A(t),i=e.translations[n];var r;if(!i)return console.warn("No translation found for language: ".concat(n)),(null===(r=e.structuredContent)||void 0===r?void 0:r.sections)||[];const c=i.sections||[],o=(null===(a=e.structuredContent)||void 0===a?void 0:a.sections)||[];var s;return Array.isArray(c)?c.map((e,t)=>{const a=o[t];if(e.imagePath||e.image_path)return e;const l=(null===a||void 0===a?void 0:a.imagePath)||(null===a||void 0===a?void 0:a.image_path);return l?(0,k.A)((0,k.A)({},e),{},{image_path:l}):e}):(console.error("Translated sections is not an array:",c),(null===(s=e.structuredContent)||void 0===s?void 0:s.sections)||[])}catch(i){var n;return console.error("Error getting sections:",i),(null===(n=e.structuredContent)||void 0===n?void 0:n.sections)||[]}},C=e=>{let{content:t}=e;return(0,h.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-6 pb-3 border-b border-violet-600/30",children:t})},I=e=>{let{content:t}=e;return(0,h.jsx)("div",{className:"mb-6",children:(0,h.jsx)("h3",{className:"text-xl md:text-2xl font-semibold text-violet-300 mb-4 leading-snug",dangerouslySetInnerHTML:{__html:t}})})},S=e=>{let{content:t}=e;return(0,h.jsx)("div",{className:"mb-6",children:(0,h.jsx)("p",{className:"text-xl font-bold text-white mb-4 leading-snug",dangerouslySetInnerHTML:{__html:t}})})},P=e=>{let{bullets:t}=e,a=[];if(Array.isArray(t))a=t;else{if("string"!==typeof t)return console.warn("Bullets content is neither array nor string:",t),null;a=t.split(/(?=[1-9]\ufe0f\u20e3)|(?=\n[1-9]\.\s)/).map(e=>e.trim()).filter(e=>e.length>0).map(e=>e.replace(/^[1-9]\ufe0f\u20e3\s*/,"").replace(/^[1-9]\.\s*/,""))}return(0,h.jsx)("div",{className:"mb-8",children:(0,h.jsx)("ul",{className:"list-disc pl-6 space-y-4 text-gray-300",children:a.map((e,t)=>(0,h.jsx)("li",{className:"leading-relaxed",children:(0,h.jsx)("div",{className:"text-lg leading-relaxed text-justify",dangerouslySetInnerHTML:{__html:(0,w.g2)(e)}})},t))})})},E=e=>{let{content:t}=e;const a=t.includes("complex-equation");if(t.includes("math-equations-group"))return(0,h.jsx)("div",{className:"mb-8 max-w-4xl mx-auto",children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})});const l=a?"math-equation has-complex-equation":"math-equation";return(0,h.jsx)("div",{className:"mb-8 max-w-4xl mx-auto",children:(0,h.jsx)("div",{className:l,dangerouslySetInnerHTML:{__html:t}})})},L=e=>{let{src:t,alt:a,scale:l=.8,caption:r}=e;return(0,h.jsxs)("div",{className:"text-center max-w-full",children:[(0,h.jsx)("img",{src:t,alt:a,className:"rounded-2xl shadow-2xl border border-gray-700/50 mx-auto block",style:{maxWidth:"".concat(100*l,"%"),height:"auto"}}),r&&(0,h.jsx)("p",{className:"text-sm text-gray-400 mt-4 font-medium text-center",children:r})]})},B=e=>{let{section:t,index:a,allSections:l}=e;const r=T(t);if(!r)return null;const s=r.alignment||"center";if("left"===s||"right"===s){const e=[];let t=a+1;for(;t<l.length;){const a=l[t];if(!a||!a.content||"paragraph"!==a.category&&3!==a.section_level)break;e.push(a),l[t]._processed=!0,t++}if(e.length>0)return(0,h.jsx)("div",{className:"mb-8 max-w-4xl mx-auto",children:(0,h.jsxs)("div",{className:"flex items-start gap-6",children:["left"===s&&(0,h.jsxs)("div",{className:"flex-shrink-0",style:{maxWidth:"".concat(300*(r.scale||.8),"px")},children:[(0,h.jsx)("img",{src:r.src,alt:r.alt,className:"rounded-2xl shadow-2xl border border-gray-700/50 w-full",style:{height:"auto"}}),r.caption&&(0,h.jsx)("p",{className:"text-xs text-gray-400 mt-2 font-medium text-center",children:r.caption})]}),(0,h.jsx)("div",{className:"flex-1 space-y-4",children:e.map((e,t)=>(0,h.jsx)("p",{className:"text-lg text-gray-300 leading-relaxed text-justify",dangerouslySetInnerHTML:{__html:(0,w.g2)(e.content)}},t))}),"right"===s&&(0,h.jsxs)("div",{className:"flex-shrink-0",style:{maxWidth:"".concat(300*(r.scale||.8),"px")},children:[(0,h.jsx)("img",{src:r.src,alt:r.alt,className:"rounded-2xl shadow-2xl border border-gray-700/50 w-full",style:{height:"auto"}}),r.caption&&(0,h.jsx)("p",{className:"text-xs text-gray-400 mt-2 font-medium text-center",children:r.caption})]})]})})}return(0,h.jsx)("div",{className:"w-full flex flex-col items-center justify-center mb-12",children:(0,h.jsx)(L,{src:r.src,alt:r.alt,scale:r.scale||.8,caption:r.caption})})},U=e=>{let{section:t,index:a,allSections:l}=e;try{if(!t||"object"!==typeof t)return console.warn("Invalid section at index",a,t),null;const e=T(t);return e&&!t.content?(0,h.jsx)(B,{section:t,index:a,allSections:l}):t._processed?null:t.content?(0,h.jsxs)("div",{className:"mb-8 max-w-4xl mx-auto",children:["section"===t.category||1===t.section_level?(0,h.jsx)(C,{content:t.content}):"sub-section"===t.category||2===t.section_level?(0,h.jsx)(I,{content:t.content}):"sub-sub-section"===t.category?(0,h.jsx)(S,{content:t.content}):"bullets"===t.category||"bullets"===t.section_level?(0,h.jsx)(P,{bullets:t.content}):"maths"===t.category?(0,h.jsx)(E,{content:t.content}):"paragraph"===t.category||3===t.section_level?(0,h.jsx)("div",{className:0===a?"mb-12":"mb-6",children:0===a?(0,h.jsx)("p",{className:"text-lg md:text-xl text-gray-300 leading-relaxed font-light text-ju
1stify",dangerouslySetInnerHTML:{__html:t.content}}):t.content.includes('<span style="color:')?(0,h.jsx)("p",{className:"text-lg text-gray-300 leading-relaxed font-medium text-justify",dangerouslySetInnerHTML:{__html:(0,w.g2)(t.content)}}):t.content.includes('<div style="border-left: 4px solid #573cbe;')?(0,h.jsx)("div",{className:"text-lg text-gray-300 leading-relaxed text-justify",dangerouslySetInnerHTML:{__html:t.content}}):(0,h.jsx)("p",{className:"text-lg text-gray-300 leading-relaxed text-justify",dangerouslySetInnerHTML:{__html:(0,w.g2)(t.content)}})}):(0,h.jsx)("p",{className:"text-lg text-gray-300 leading-relaxed text-justify",dangerouslySetInnerHTML:{__html:(0,w.g2)(t.content)}}),e&&(0,h.jsx)("div",{className:"w-full flex flex-col items-center justify-center mb-8",children:(0,h.jsx)(L,{src:e.src,alt:e.alt,scale:e.scale||.8,caption:e.caption})})]}):null}catch(r){return console.error("Error rendering section at index",a,r,t),null}};var z=a(3986),V=a(4419),G=a(5832),H=a(285),M=a(6989),W=a(1704),D=a(4187);const q=["node","inline","className","children"];function F(e){let{content:t}=e;return t?(0,h.jsx)("div",{className:"prose prose-invert prose-purple max-w-4xl mx-auto mb-16 [&_p:has(>em:only-child)]:text-center",children:(0,h.jsx)(V.oz,{remarkPlugins:[G.A,H.A],rehypePlugins:[M.A],components:{code(e){let{node:t,inline:a,className:l,children:r}=e,s=(0,z.A)(e,q);const n=/language-(\w+)/.exec(l||"");return!a&&n?(0,h.jsx)(W.A,(0,k.A)((0,k.A)({style:D.A,language:n[1],PreTag:"div",className:"rounded-lg !bg-gray-900/80 !my-4"},s),{},{children:String(r).replace(/\n$/,"")})):(0,h.jsx)("code",(0,k.A)((0,k.A)({className:"bg-gray-800 px-1.5 py-0.5 rounded text-purple-300 text-sm"},s),{},{children:r}))},h1:e=>{let{children:t}=e;return(0,h.jsx)("h1",{className:"text-3xl font-bold text-white mt-8 mb-4 pb-2 border-b border-gray-700",children:t})},h2:e=>{let{children:t}=e;return(0,h.jsx)("h2",{className:"text-2xl font-bold text-white mt-6 mb-3",children:t})},h3:e=>{let{children:t}=e;return(0,h.jsx)("h3",{className:"text-xl font-semibold text-white mt-4 mb-2",children:t})},p:e=>{let{children:t}=e;return(0,h.jsx)("p",{className:"text-gray-300 leading-relaxed mb-4",children:t})},ul:e=>{let{children:t}=e;return(0,h.jsx)("ul",{className:"list-disc list-inside text-gray-300 space-y-2 mb-4 ml-4",children:t})},ol:e=>{let{children:t}=e;return(0,h.jsx)("ol",{className:"list-decimal list-inside text-gray-300 space-y-2 mb-4 ml-4",children:t})},li:e=>{let{children:t}=e;return(0,h.jsx)("li",{className:"text-gray-300",children:t})},blockquote:e=>{let{children:t}=e;return(0,h.jsx)("blockquote",{className:"border-l-4 border-purple-500 pl-4 py-2 my-4 bg-gray-800/50 rounded-r-lg italic text-gray-400",children:t})},a:e=>{let{href:t,children:a}=e;const l=null===t||void 0===t?void 0:t.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([\w-]+)/);if(l)return(0,h.jsx)("div",{className:"my-4",children:(0,h.jsx)("iframe",{width:"100%",height:"400",src:"https://www.youtube.com/embed/".concat(l[1]),title:"YouTube video",style:{border:0},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"rounded-lg"})});const r=null===t||void 0===t?void 0:t.match(/bilibili\.com\/video\/(BV[\w]+)/);if(r)return(0,h.jsx)("div",{className:"my-4",children:(0,h.jsx)("iframe",{width:"100%",height:"400",src:"https://player.bilibili.com/player.html?bvid=".concat(r[1],"&autoplay=0"),title:"Bilibili video",style:{border:0},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"rounded-lg",sandbox:"allow-same-origin allow-scripts allow-popups"})});const s=null===t||void 0===t?void 0:t.match(/douyin\.com\/video\/(\d+)/);return s?(0,h.jsx)("div",{className:"my-4 flex justify-center",children:(0,h.jsx)("div",{className:"rounded-lg",style:{width:"100%",maxWidth:"400px",aspectRatio:"9 / 16",overflow:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",WebkitOverflowScrolling:"touch"},children:(0,h.jsx)("iframe",{width:"100%",height:"105%",src:"https://open.douyin.com/player/video?vid=".concat(s[1],"&autoplay=0"),title:"Douyin video",style:{border:0,display:"block"},allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,sandbox:"allow-same-origin allow-scripts allow-popups",scrolling:"no"})})}):(0,h.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-purple-400 hover:text-purple-300 underline",children:a})},img:e=>{let{src:t,alt:a}=e,l=a||"";const r={};let s=null;const n=l.split("|");if(n.length>=2){l=n[0];for(let e=1;e<n.length;e++){const t=n[e].trim().toLowerCase();if(["center","left","right"].includes(t))s=t;else{const e=t.match(/^(\d+)(?:x(\d+))?$/);e&&(r.width="".concat(e[1],"px"),e[2]&&(r.height="".concat(e[2],"px")))}}}const i=s?{textAlign:s,display:"block"}:{};return(0,h.jsx)("span",{style:i,children:(0,h.jsx)("img",{src:t,alt:l,style:r,className:"max-w-full h-auto rounded-lg my-4 inline-block"})})},table:e=>{let{children:t}=e;return(0,h.jsx)("div",{className:"overflow-x-auto my-4",children:(0,h.jsx)("table",{className:"min-w-full divide-y divide-gray-700 border border-gray-700 rounded-lg overflow-hidden",children:t})})},th:e=>{let{children:t}=e;return(0,h.jsx)("th",{className:"px-4 py-3 bg-gray-800 text-left text-sm font-semibold text-gray-200",children:t})},td:e=>{let{children:t}=e;return(0,h.jsx)("td",{className:"px-4 py-3 text-sm text-gray-300 border-t border-gray-700",children:t})},hr:()=>(0,h.jsx)("hr",{className:"my-8 border-gray-700"}),strong:e=>{let{children:t}=e;return(0,h.jsx)("strong",{className:"font-semibold text-white",children:t})},em:e=>{let{children:t}=e;return(0,h.jsx)("em",{className:"italic text-gray-200",children:t})}},children:t})}):null}function O(e){let{article:t}=e;const{t:a,i18n:l}=(0,r.Bd)("articles"),s=l.language;if(!t)return(0,h.jsx)("div",{className:"text-center py-16",children:(0,h.jsx)("div",{className:"text-gray-400 text-lg",children:a("common.articleContentNotAvailable")})});const n=R(t,s);if(n)return(0,h.jsx)(F,{content:n});const i=_(t,s);return i.length>0?(0,h.jsx)("div",{className:"mb-16",children:i.map((e,t)=>(0,h.jsx)(U,{section:e,index:t,allSections:i}
1,t)).filter(Boolean)}):t.content?(0,h.jsx)("div",{className:"prose prose-invert prose-lg max-w-4xl mx-auto mb-16",children:(0,h.jsx)("div",{className:"text-gray-300 leading-relaxed space-y-6 text-justify",dangerouslySetInnerHTML:{__html:(0,w.g2)(t.content)}})}):(0,h.jsx)("div",{className:"text-center py-16",children:(0,h.jsx)("div",{className:"text-gray-400 text-lg",children:a("common.noContentAvailable")})})}const $=e=>{let{title:t,excerpt:a}=e;return(0,h.jsx)("div",{className:"relative mb-20",children:(0,h.jsx)("div",{className:"max-w-4xl mx-auto",children:(0,h.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-white mb-8 tracking-tight text-center",style:{lineHeight:"1.5"},children:t})})})},X=e=>{let{author:t,date:a,readTime:l,category:s}=e;const{t:n}=(0,r.Bd)("articles");return(0,h.jsx)("div",{className:"mb-16",children:(0,h.jsxs)("div",{className:"max-w-4xl mx-auto py-8 border-t border-b border-gray-700/30 flex flex-col md:flex-row md:items-center md:justify-between",children:[(0,h.jsxs)("div",{className:"flex items-center space-x-6 mb-4 md:mb-0",children:[(0,h.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,h.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-violet-600 to-purple-600 rounded-full flex items-center justify-center text-white font-bold text-lg shadow-lg",children:t.charAt(0)}),(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"text-white font-semibold text-lg",children:t}),(0,h.jsx)("div",{className:"text-gray-400 text-sm font-light",children:a})]})]}),(0,h.jsxs)("div",{className:"text-gray-300 text-sm font-medium",children:[(0,h.jsx)("span",{className:"text-violet-400",children:"\u2022"})," ",l," ",n("common.minRead")]})]}),(0,h.jsx)("div",{className:"flex justify-center md:justify-end",children:(0,h.jsx)("div",{className:"inline-block px-4 py-2 bg-violet-600/20 text-violet-300 text-sm font-semibold rounded-full border border-violet-600/30",children:s})})]})})},Y=e=>{let{onBackClick:t,categoryName:a}=e;return(0,h.jsx)(N.A,{onBackClick:t,categoryName:a})};function Z(e){var t;let{article:a,username:l=null,userImageUrl:i=null,logoUrl:o,onBackClick:d,categoryName:m="Articles"}=e;const{t:u,i18n:x}=(0,r.Bd)("articles"),g=x.language;if(!a)return(0,h.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-gray-900 via-purple-900 to-violet-900",children:[(0,h.jsx)(s.A,{username:l,user_image_url:i,logoUrl:o}),(0,h.jsx)("main",{children:(0,h.jsx)(c.A,{children:(0,h.jsx)("div",{className:"text-center py-16",children:(0,h.jsx)("div",{className:"text-gray-400 text-lg",children:u("common.articleNotFound",{defaultValue:"Article not found."})})})})}),(0,h.jsx)(n.A,{logoUrl:o})]});const p=(()=>
1{if("en"===g||!a.translations)return{title:a.title,excerpt:a.excerpt,author:a.author};const e={en:"en","zh-CN":"zh","zh-TW":"zh-TW"}[t=g]||t;var t;const l=a.translations[e];return l?{title:l.title||a.title,excerpt:l.summary||a.excerpt,author:l.author||a.author}:{title:a.title,excerpt:a.excerpt,author:a.author}})();return(0,h.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-gray-900 via-purple-900 to-violet-900",children:[(0,h.jsx)(s.A,{username:l,user_image_url:i,logoUrl:o}),(0,h.jsx)("main",{children:(0,h.jsxs)(c.A,{children:[(0,h.jsx)(Y,{onBackClick:d,categoryName:m}),(0,h.jsx)($,{title:p.title,excerpt:p.excerpt}),(0,h.jsx)(X,{author:p.author,date:a.date,readTime:a.readTime,category:a.category}),(0,h.jsx)(v,{audioPath:(null===(t=a.structuredContent)||void 0===t?void 0:t.audioPath)||a.audioPath||null}),(0,h.jsx)(O,{article:a}),(0,h.jsx)(j,{title:a.title,articleUrl:a.articleUrl})]})}),(0,h.jsx)(n.A,{logoUrl:o})]})}var J=a(7904),K=a(5358);const Q=e=>{const[t,a]=(0,l.useState)([]),[r,s]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(["News","TadReamk AI","TadReamk Design","IP Law","TadReamk-AIGC","TadReamk-ERP"].includes(e)){(async()=>{s(!0);const t=await J.A.getArticles(e);if(t.success){const e=t.data.map(e=>{const t=new Date(e.publish_date||e.created_at).toLocaleDateString("en-GB",{year:"numeric",month:"2-digit",day:"2-digit"});return{id:e.id,slug:e.slug,title:e.title,excerpt:e.summary,author:e.author,date:t,readTime:e.read_time,category:e.category,image:e.cover_image_url,articleUrl:"https://www.tadreamk.com".concat((0,K._)(e.category),"/").concat(e.slug),markdownContent:e.content,translations:e.translations||{},meta:{title:e.title,date:t,author:e.author,category:e.category,coverImage:e.cover_image_url,readTime:e.read_time,summary:e.summary}}});a(e)}else console.error("Failed to fetch ".concat(e," articles:"),t.error),a([]);s(!1)})()}},[e]),{backendArticles:t,loadingArticles:r}};var ee=a(9981);const te=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const[s,n]=(0,l.useState)("list"),[i,c]=(0,l.useState)(null),o=(0,ee.zy)(),d=(0,ee.Zp)(),{articleSlug:m}=(0,ee.g)(),{i18n:u}=(0,r.Bd)();(0,l.useEffect)(()=>{if(m){const l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const l=(e,t)=>{if(e.slug)return e.slug===t;const a=e.originalTitle||e.title;return(0,K.z)(a)===t};if(e&&"all"!==e){const r=function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]}(e,a);return r.find(e=>l(e,t))}return a.find(e=>l(e,t))}(e,m,t);if(l)c(l),n("article"),window.scrollTo({top:0,behavior:"smooth"});else if(!a&&t.length>0){const e=o.pathname.replace("/".concat(m),"");d(e,{replace:!0}),n("list"),c(null)}}else n("list"),c(null),window.scrollTo({top:0,behavior:"smooth"})},[m,e,o.pathname,d,u.language,t,a]);return{currentView:s,selectedArticle:i,handleArticleSelect:e=>{const t=e.slug||(0,K.z)(e.originalTitle||e.title),a=o.pathname.endsWith("/")?o.pathname.slice(0,-1):o.pathname;d("".concat(a,"/").concat(t))},handleBackToCategory:()=>{const e=o.pathname.replace("/".concat(m),"");d(e)}}};function ae(e){let{category:t="News",username:a=null,userImageUrl:l=null,logoUrl:r}=e;const{backendArticles:s,loadingArticles:n}=Q(t),{currentView:i,selectedArticle:c,handleArticleSelect:o,handleBackToCategory:d}=te(t,s,n);return"article"===i&&c?(0,h.jsx)(Z,{article:c,username:a,userImageUrl:l,logoUrl:r,onBackClick:d,categoryName:t}):(0,h.jsx)(f,{category:t,username:a,userImageUrl:l,logoUrl:r,customArticles:s,onArticleSelect:o,loading:n})}}}]);
2//# sourceMappingURL=691.29aa8e5c.chunk.js.map

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.