PageSourceSearch

https://ailikeme.ai/static/5291.1237db88c94e74d080a2.js

js ailikeme.ai collected 2026-10-05 15:29:37 UTC 31,457 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[5291],{13718(e,t,r){r.r(t);var n=r(39471),a=r(86287),l=r(28563),o=r(50256),i=r(49482),c=r(14191),s=r(93267),d=r(62945),u=r(61458),m=r(58480),p=r(71244),y=r(6726),g=r(51794),v=r(28152);const h=["onDropRow"];function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,o,i=[],c=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=l.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(null,arguments)}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _=m.A.Title,S=m.A.Text,C=e=>{let t=e.onDropRow,r=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,h);const a=r["data-row-index"];return n.createElement("tr",b({},r,{draggable:void 0!==a,onDragStart:e=>e.dataTransfer.setData("text/plain",String(a)),onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault();const r=Number(e.dataTransfer.getData("text/plain"));Number.isNaN(r)||r===a||t(r,a)},style:k(k({},r.style),{},{cursor:void 0!==a?"move":void 0})}))},A=/^https?:\/\/.+/i;r.d(t,["default",0,()=>{const e=f((0,n.useState)([]),2),t=e[0],r=e[1],m=f((0,n.useState)(!1),2),h=m[0],E=m[1],b=f((0,n.useState)(!1),2),x=b[0],w=b[1],F=f((0,n.useState)(!1),2),P=F[0],T=F[1],O=f((0,n.useState)(null),2),j=O[0],L=O[1],z=f((0,n.useState)({title:"",url:""}),2),I=z[0],D=z[1],R=f((0,n.useState)(null),2),H=R[0],B=R[1],U=f((0,n.useState)(""),2),M=U[0],N=U[1],Y=f((0,n.useState)({}),2),G=Y[0],V=Y[1],W=f((0,n.useState)(null),2),$=W[0],q=W[1],K=(0,n.useRef)(null),J=function(e){return q({message:e,severity:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success"})},Q=()=>{E(!0),(0,g.t0)().then(e=>{var t;return r((null==e||null===(t=e.data)||void 0===t?void 0:t.social_links)||[])}).catch(()=>J("Failed to load social links","error")).finally(()=>E(!1))};(0,n.useEffect)(()=>{Q()},[]);const X=(e,n)=>{const a=[...t],l=f(a.splice(e,1),1)[0];a.splice(n,0,l),r(a),(0,g.aY)(a.map(e=>e.id)).then(()=>J("Order saved")).catch(()=>{J("Reorder failed","error"),Q()})},Z=(0,n.useMemo)(()=>[{title:"Icon",dataIndex:"icon_url",width:70,render:e=>e?n.createElement("img",{src:e,alt:"",style:{width:28,height:28,objectFit:"contain"}}):n.createElement(S,{type:"secondary"},"—")},{title:"Title",dataIndex:"title"},{title:"URL",dataIndex:"url",render:e=>n.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"},e)},{title:"Active",dataIndex:"active",width:90,render:(e,t)=>n.createElement(d.A,{checked:e,onChange:e=>((e,t)=>{const r=new FormData;r.append("active",t?"true":"false"),(0,g.N$)(e.id,r).then(()=>{J(t?"Link shown":"Link hidden"),Q()}).catch(()=>J("Could not update","error"))})(t,e)})},{title:"Actions",width:150,render:(e,t)=>n.createElement(s.A,null,n.createElement(a.A,{size:"small",onClick:()=>(e=>{L(e),D({title:e.title,url:e.url}),B(null),N(e.icon_url||""),V({}),w(!0)})(t)},"Edit"),n.createElement(c.A,{title:"Delete this social link?",okText:"Delete",okButtonProps:{danger:!0},onConfirm:()=>(e=>{(0,g.xS)(e.id).then(()=>{J("Social link deleted"),Q()}).catch(()=>J("Delete failed","error"))})(t)},n.createElement(a.A,{size:"small",danger:!0},"Delete")))}],[t]);return n.createElement(l.A,null,n.createElement(v.A,{message:null==$?void 0:$.message,severity:null==$?void 0:$.severity,onClose:()=>q(null)}),n.createElement(s.A,{direction:"vertical",size:"large",style:{width:"100%"}},n.createElement("div",null,n.createElement(_,{level:4},"Social Links"),n.createElement(S,{type:"secondary",style:{display:"block",marginTop:8}},"The social icons shown across the site — in the app footer, the marketing footer and the mobile menu. Add a link, upload its icon (SVG or PNG), drag rows to reorder, and toggle Active to show or hide one without deleting it. Changes go live immediately.")),n.createElement("div",null,n.createElement(a.A,{type:"primary",icon:n.createElement(p.A,null),onClick:()=>{L(null),D({title:"",url:""}),B(null),N(""),V({}),w(!0)}},"Add social link")),n.createElement(u.A,{rowKey:"id",loading:h,columns:Z,dataSource:t,pagination:!1,components:{body:{row:C}},onRow:(e,t)=>({"data-row-index":t,onDropRow:X})}
1)),n.createElement(i.A,{title:j?"Edit social link":"Add social link",open:x,onOk:()=>{if(!(()=>{const e={};return I.title.trim()||(e.title="Title is required."),A.test(I.url.trim())||(e.url="Enter a full URL starting with http:// or https://."),j||H||(e.icon="An icon is required."),V(e),0===Object.keys(e).length})())return;const e=new FormData;e.append("title",I.title.trim()),e.append("url",I.url.trim()),H&&e.append("icon",H),T(!0),(j?(0,g.N$)(j.id,e):(0,g.GP)(e)).then(()=>{J(j?"Social link updated":"Social link added"),w(!1),Q()}).catch(e=>{var t,r;const n=null==e||null===(t=e.response)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.details;n?V(Object.fromEntries(Object.entries(n).map(e=>{let t=f(e,2),r=t[0],n=t[1];return[r,Array.isArray(n)?n[0]:String(n)]}))):J((null==e||null===(r=e.response)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.error)||"Save failed","error")}).finally(()=>T(!1))},confirmLoading:P,okText:j?"Save":"Add",onCancel:()=>w(!1),destroyOnClose:!0},n.createElement(s.A,{direction:"vertical",size:"middle",style:{width:"100%"}},n.createElement("div",null,n.createElement(S,{strong:!0},"Title"),n.createElement(o.A,{value:I.title,placeholder:"e.g. TikTok",status:G.title?"error":"",onChange:e=>D(t=>k(k({},t),{},{title:e.target.value}))}),G.title&&n.createElement(S,{type:"danger"},G.title)),n.createElement("div",null,n.createElement(S,{strong:!0},"URL"),n.createElement(o.A,{value:I.url,placeholder:"https://…",status:G.url?"error":"",onChange:e=>D(t=>k(k({},t),{},{url:e.target.value}))}),G.url&&n.createElement(S,{type:"danger"},G.url)),n.createElement("div",null,n.createElement(S,{strong:!0},"Icon ",j&&"(leave empty to keep current)"),n.createElement("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:8}},M?n.createElement("img",{src:M,alt:"",style:{width:40,height:40,objectFit:"contain",background:"#2b2a2a",borderRadius:6,padding:4}}):n.createElement("div",{style:{width:40,height:40,borderRadius:6,background:"#f0f0f0"}}),n.createElement("input",{ref:K,type:"file",accept:".svg,.png,image/svg+xml,image/png",style:{display:"none"},onChange:e=>{var t;const r=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!r)return;const n="."+(r.name.split(".").pop()||"").toLowerCase();[".svg",".png"].includes(n)?r.size>2097152?V(e=>k(k({},e),{},{icon:"Icon must be 2 MB or smaller."})):(V(e=>k(k({},e),{},{icon:void 0})),B(r),N(URL.createObjectURL(r))):V(e=>k(k({},e),{},{icon:"Icon must be an SVG or PNG file."}))}}),n.createElement(a.A,{icon:n.createElement(y.A,null),onClick:()=>{var e;return null===(e=K.current)||void 0===e?void 0:e.click()}},"Choose icon")),G.icon&&n.createElement(S,{type:"danger"},G.icon)))))}])},65291(e,t,r){r.r(t);var n=r(39471),a=r(86287),l=r(28563),o=r(1503),i=r(50256),c=r(49482),s=r(93267),d=r(48586),u=r(62945),m=r(29283),p=r(58480),y=r(43497),g=r(49756),v=r(6726),h=r(77123),f=r.n(h),E=r(51794),b=r(28152),x=r(13718);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(t){_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,o,i=[],c=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=l.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){s=!0,a=e}
1finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const A=[{key:"companions",label:"Companions section",hint:'The "Meet your heroes" block above the companion cards.',headingPlaceholder:"Meet your",accentPlaceholder:"heroes.",bodyPlaceholder:"Connect directly with the celebrities and creators you love — jump on video calls, trade texts, and swap voice notes with anyone in our talent base."},{key:"features",label:"Features section",hint:"The block above the four feature cards.",headingPlaceholder:"Four ways to say",accentPlaceholder:"hey.",bodyPlaceholder:"Every companion speaks, listens, and remembers across text, voice, video, and photos — one relationship, every modality."},{key:"demo",label:"Live demo section",hint:"The block above the live session preview.",headingPlaceholder:"Live video,",accentPlaceholder:"on demand.",bodyPlaceholder:"Whether you're here to chat, share a moment, or get exclusive insights, meeting the stars you admire finally feels effortless."},{key:"partner",label:"Partner section",hint:"The block above the Apply / Review / Launch steps.",headingPlaceholder:"Partner",accentPlaceholder:"with us.",bodyPlaceholder:"Creators, agencies, and brands — put a likeness to work. Tell us who you are, and we'll take it from there."}],F=p.A.Title,P=p.A.Text,T=c.A.confirm;r.d(t,["default",0,()=>{const e=S((0,n.useState)(!1),2),t=e[0],r=e[1],c=S((0,n.useState)(!0),2),p=c[0],h=c[1],k=S((0,n.useState)(null),2),_=k[0],C=k[1],O=S((0,n.useState)(""),2),j=O[0],L=O[1],z=S((0,n.useState)(""),2),I=z[0],D=z[1],R=S((0,n.useState)(null),2),H=R[0],B=R[1],U=S((0,n.useState)(!1),2),M=U[0],N=U[1],Y=S((0,n.useState)(""),2),G=Y[0],V=Y[1],W=S((0,n.useState)(""),2),$=W[0],q=W[1],K=S((0,n.useState)(null),2),J=K[0],Q=K[1],X=S((0,n.useState)(!1),2),Z=X[0],ee=X[1],te=S((0,n.useState)(""),2),re=te[0],ne=te[1],ae=S((0,n.useState)(""),2),le=ae[0],oe=ae[1],ie=S((0,n.useState)(null),2),ce=ie[0],se=ie[1],de=S((0,n.useState)(!1),2),ue=de[0],me=de[1],pe=S((0,n.useState)(""),2),ye=pe[0],ge=pe[1],ve=S((0,n.useState)(""),2),he=ve[0],fe=ve[1],Ee=S((0,n.useState)(null),2),be=Ee[0],xe=Ee[1],ke=S((0,n.useState)(!1),2),we=ke[0],_e=ke[1],Se=S((0,n.useState)(!1),2),Ce=Se[0],Ae=Se[1],Fe=S((0,n.useState)(""),2),Pe=Fe[0],Te=Fe[1],Oe=S((0,n.useState)(null),2),je=Oe[0],Le=Oe[1],ze=S((0,n.useState)(""),2),Ie=ze[0],De=ze[1],Re=S((0,n.useState)(null),2),He=Re[0],Be=Re[1],Ue=S((0,n.useState)(!1),2),Me=Ue[0],Ne=Ue[1],Ye=["hero_lede","companions_heading","companions_accent","companions_body","features_heading","features_accent","features_body","demo_heading","demo_accent","demo_body","partner_heading","partner_accent","partner_body"],Ge=S((0,n.useState)(Object.fromEntries(Ye.map(e=>[e,""]))),2),Ve=Ge[0],We=Ge[1],$e=(e,t)=>We(r=>w(w({},r),{},{[e]:t})),qe={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],["link"],[{align:[]}],[{color:[]},{background:[]}],["clean"]]},Ke=["header","bold","italic","underline","strike","list","bullet","indent","link","align","color","background"];(0,n.useEffect)(()=>{Qe(),Je()},[]);const Je=async()=>{try{const e=await E.tY.GetLandingPageSettings();200===e.status&&e.data&&(Ae(!!e.data.hero_video_enabled),Te(e.data.hero_video_url||""),De(e.data.hero_video_file_url||""),Le(e.data.updated_at),We(Object.fromEntries(Ye.map(t=>{var r;return[t,null!==(r=e.data[t])&&void 0!==r?r:""]}))))}catch(e){console.error("Error fetching landing page settings:",e)}},Qe=async()=>{h(!0);try{const e=await E.tY.GetSiteContent();if(console.log("Site Content API Response:",e),200===e.status&&e.data){const t=e.data;console.log("Site Content Data:",t),t.terms_of_service&&(L(t.terms_of_service.title||""),D(t.terms_of_service.html_content||""),B(t.terms_of_service.updated_at)),t.privacy_policy&&(V(t.privacy_policy.title||""),q(t.privacy_policy.html_content||""),Q(t.privacy_policy.updated_at)),t.influencer_terms&&(ne(t.influencer_terms.title||""),oe(t.influencer_terms.html_content||""),se(t.influencer_terms.updated_at)),t.cookies_policy&&(ge(t.cookies_policy.title||""),fe(t.cookies_policy.html_content||""),xe(t.cookies_policy.updated_at))}}catch(e){console.error("Error fetching site content:",e),C({message:"Failed to fetch site content",severity:"error",backgroundColor:"#FFFFFF",textColor:"#000000"})}finally{h(!1)}},Xe=(e,t)=>{T({title:"Send Email Notification?",icon:n.createElement(g.A,null),content:"Do you want to send email notifications to all users about the updated ".concat(t,"? This will notify all active users with verified email addresses."),okText:"Yes, Send Emails",cancelText:"No, Skip",onOk:async()=>{try{const t=await E.tY.SendSiteContentUpdateNotification(e);if(200===t.status){const e=t.data,r=e.sent,n=e.failed,a=e.total;C({message:"Email notifications sent: ".concat(r," sent, ").concat(n," failed out of ").concat(a," total users"),severity:r>0?"success":"warning",backgroundColor:"#FFFFFF",textColor:"#000000"})}}catch(e){console.error("Error sending notification emails:",e),C({message:"Failed to send notification emails",severity:"error",backgroundColor:"#FFFFFF",textColor:"#000000"})}},onCancel:()=>{console.log("User chose not to send notification emails")}})},Ze=e=>
1e?new Date(e).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",et=[{key:"homepage",label:"Homepage",children:n.createElement(l.A,null,n.createElement(s.A,{direction:"vertical",size:"large",style:{width:"100%"}},n.createElement("div",null,n.createElement(F,{level:4},"Homepage"),n.createElement(P,{type:"secondary"},"Last updated: ",Ze(je)),n.createElement(P,{type:"secondary",style:{display:"block",marginTop:"8px"}},"Everything on the public homepage: the hero video and the page text. Each section heading is split into two parts — a normal line and a highlighted line, which is shown in the page's glowing accent style. Leave a text field blank to restore its original wording. Changes go live as soon as you save — reload the homepage to see them.")),n.createElement(o.A,{orientation:"left",style:{margin:"4px 0"}},"Hero video"),n.createElement("div",{style:{display:"flex",alignItems:"center",gap:"12px"}},n.createElement(u.A,{checked:Ce,onChange:Ae}),n.createElement(P,{strong:!0},"Show hero video at the top of the homepage")),n.createElement("div",null,n.createElement(P,{strong:!0},"Hero video source"),n.createElement(i.A,{placeholder:"https://… (direct .mp4/.webm file, or a YouTube / Facebook video link)",value:Pe,onChange:e=>Te(e.target.value),style:{marginTop:"8px"},size:"large",allowClear:!0}),n.createElement(P,{type:"secondary",style:{display:"block",marginTop:"8px"}},'Paste a direct video file URL (.mp4, .webm, .ogg), or a YouTube or Facebook video link. Used only when no file is uploaded below. Note: a normal LinkedIn post link cannot be embedded (LinkedIn blocks it) — only its official "Embed this post" URL (linkedin.com/embed/…) works. For a reliable hero video, upload a file or use YouTube.')),n.createElement("div",null,n.createElement(P,{strong:!0},"Or upload a video file"),n.createElement("div",{style:{marginTop:"8px"}},n.createElement(y.A,{accept:"video/mp4,video/webm,video/ogg,video/quicktime",maxCount:1,beforeUpload:e=>(Be(e),Ne(!1),!1),fileList:He?[{uid:"-1",name:He.name,status:"done"}]:[],onRemove:()=>Be(null)},n.createElement(a.A,{icon:n.createElement(v.A,null)},"Select video file (MP4/WebM/OGG, ≤ 200 MB)"))),Ie&&!He&&n.createElement("div",{style:{marginTop:"10px"}},n.createElement(P,{type:"secondary"},"Current uploaded file: "),n.createElement("a",{href:Ie,target:"_blank",rel:"noopener noreferrer"},"view"),n.createElement(a.A,{size:"small",danger:!0,style:{marginLeft:"12px"},onClick:()=>Ne(!0)},"Remove uploaded file"),Me&&n.createElement(P,{type:"danger",style:{marginLeft:"8px"}},"(will be removed on save)")),n.createElement(P,{type:"secondary",style:{display:"block",marginTop:"8px"}},"An uploaded file takes precedence over the link. A direct file gives the smoothest autoplay loop.")),n.createElement(o.A,{orientation:"left",style:{margin:"4px 0"}},"Page text"),n.createElement("div",null,n.createElement(P,{strong:!0},"Hero paragraph"),n.createElement(P,{type:"secondary",style:{display:"block",marginBottom:"8px"}},'Shown under the "Tap. Talk. Connect." headline.'),n.createElement(i.A.TextArea,{rows:3,value:Ve.hero_lede,onChange:e=>$e("hero_lede",e.target.value),placeholder:"And you're on a video call with the creator you follow…",showCount:!0,maxLength:400})),n.createElement(o.A,{style:{margin:"4px 0"}}),A.map(e=>n.createElement("div",{key:e.key},n.createElement(P,{strong:!0},e.label),n.createElement(P,{type:"secondary",style:{display:"block",marginBottom:"8px"}},e.hint),n.createElement("div",{style:{display:"flex",gap:"12px",flexWrap:"wrap"}},n.createElement(i.A,{style:{flex:"1 1 240px"},addonBefore:"Heading",value:Ve["".concat(e.key,"_heading")],onChange:t=>$e("".concat(e.key,"_heading"),t.target.value),placeholder:e.headingPlaceholder,maxLength:120}),n.createElement(i.A,{style:{flex:"1 1 240px"},addonBefore:"Highlighted",value:Ve["".concat(e.key,"_accent")],onChange:t=>$e("".concat(e.key,"_accent"),t.target.value),placeholder:e.accentPlaceholder,maxLength:120})),n.createElement(i.A.TextArea,{rows:3,style:{marginTop:"12px"},value:Ve["".concat(e.key,"_body")],onChange:t=>$e("".concat(e.key,"_body"),t.target.value),placeholder:e.bodyPlaceholder,showCount:!0,maxLength:400}),n.createElement("div",{style:{marginTop:"10px",padding:"12px 16px",background:"#faf7f5",border:"1px solid #eee3dc",borderRadius:"8px"}},n.createElement(P,{type:"secondary",style:{fontSize:"12px"}},"PREVIEW"),n.createElement("div",{style:{fontSize:"22px",lineHeight:1.15,fontWeight:700,marginTop:"4px"}},n.createElement("div",null,Ve["".concat(e.key,"_heading")]||e.headingPlaceholder),n.createElement("div",{style:{fontWeight:300,color:"#34b5b1"}},Ve["".concat(e.key,"_accent")]||e.accentPlaceholder))),n.createElement(o.A,{style:{margin:"20px 0 4px"}}))),n.createElement("div",{style:{textAlign:"right"}},n.createElement(a.A,{type:"primary",onClick:async()=>{r(!0);try{const r=Object.fromEntries(Ye.map(e=>[e,(Ve[e]||"").trim()]));let n;He||Me?(n=new FormData,n.append("hero_video_enabled",Ce),n.append("hero_video_url",Pe.trim()),He&&n.append("hero_video_file",He),Me&&n.append("remove_hero_video_file","true"),Object.entries(r).forEach(e
1=>{let t=S(e,2),r=t[0],a=t[1];return n.append(r,a)})):n=w({hero_video_enabled:Ce,hero_video_url:Pe.trim()},r);const a=await E.tY.UpdateLandingPageSettings(n);var e,t;200!==a.status&&201!==a.status||(Le((null===(e=a.data)||void 0===e?void 0:e.updated_at)||null),De((null===(t=a.data)||void 0===t?void 0:t.hero_video_file_url)||""),Be(null),Ne(!1),C({message:"Homepage saved successfully",severity:"success",backgroundColor:"#FFFFFF",textColor:"#000000"}))}catch(e){var n,a;console.error("Error saving homepage:",e);const t=(null==e||null===(n=e.response)||void 0===n||null===(n=n.data)||void 0===n||null===(n=n.hero_video_file)||void 0===n?void 0:n[0])||(null==e||null===(a=e.response)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.hero_video_url)||void 0===a?void 0:a[0])||"Failed to save homepage";C({message:t,severity:"error",backgroundColor:"#FFFFFF",textColor:"#000000"})}finally{r(!1)}},loading:t,size:"large"},"Save Homepage"))))},{key:"terms",label:"Terms of Service",children:n.createElement(l.A,null,n.createElement(s.A,{direction:"vertical",size:"large",style:{width:"100%"}},n.createElement("div",null,n.createElement(F,{level:4},"Terms of Service"),n.createElement(P,{type:"secondary"},"Last updated: ",Ze(H))),n.createElement("div",null,n.createElement(P,{strong:!0},"Page Title"),n.createElement(i.A,{placeholder:"e.g., Terms of Service",value:j,onChange:e=>L(e.target.value),style:{marginTop:"8px",marginBottom:"20px"},size:"large"})),n.createElement("div",null,n.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"}},n.createElement(P,{strong:!0},"Page Content"),n.createElement(a.A,{size:"small",onClick:()=>N(!M),icon:M?n.createElement("span",null,"📝"):n.createElement("span",null,"</>")},M?"Visual Editor":"Source Code")),M?n.createElement("textarea",{value:I,onChange:e=>D(e.target.value),style:{width:"100%",minHeight:"500px",padding:"12px",fontFamily:"monospace",fontSize:"13px",border:"1px solid #d9d9d9",borderRadius:"4px",resize:"vertical"},placeholder:"Paste your HTML code here..."}):n.createElement("div",{style:{minHeight:"500px",marginTop:"8px"}},n.createElement(f(),{theme:"snow",value:I,onChange:D,modules:qe,formats:Ke,style:{height:"450px",marginBottom:"50px"}}))),n.createElement("div",{style:{textAlign:"right"}},n.createElement(a.A,{type:"primary",onClick:async()=>{r(!0);try{const e=await E.tY.UpdateSiteContent({content_type:"terms_of_service",title:j,html_content:I});200!==e.status&&201!==e.status||(C({message:"Terms of Service updated successfully",severity:"success",backgroundColor:"#FFFFFF",textColor:"#000000"}),e.data&&e.data.last_updated&&B(e.data.last_updated),Xe("terms_of_service","Terms of Service"))}catch(e){console.error("Error updating terms:",e),C({message:"Failed to update Terms of Service",severity:"error",backgroundColor:"#FFFFFF",textColor:"#000000"})}finally{r(!1)}},loading:t,size:"large"},"Save Terms of Service"))))},{key:"privacy",label:"Privacy Policy",children:n.createElement(l.A,null,n.createElement(s.A,{direction:"vertical",size:"large",style:{width:"100%"}},n.createElement("div",null,n.createElement(F,{level:4},"Privacy Policy"),n.createElement(P,{type:"secondary"},"Last updated: ",Ze(J))),n.createElement("div",null,n.createElement(P,{strong:!0},"Page Title"),n.createElement(i.A,{placeholder:"e.g., Privacy Policy",value:G,onChange:e=>V(e.target.value),style:{marginTop:"8px",marginBottom:"20px"},size:"large"})),n.createElement("div",null,n.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"}},n.createElement(P,{strong:!0},"Page Content"),n.createElement(a.A,{size:"small",onClick:()=>ee(!Z),icon:Z?n.createElement("span",null,"📝"):n.createElement("span",null,"</>")},Z?"Visual Editor":"Source Code")),Z?n.createElement("textarea",{value:$,onChange:e=>q(e.target.value),style:{width:"100%",minHeight:"500px",padding:"12px",fontFamily:"monospace",fontSize:"13px",border:"1px solid #d9d9d9",borderRadius:"4px",resize:"vertical"},placeholder:"Paste your HTML code here..."}):n.createElement("div",{style:{minHeight:"500px",marginTop:"8px"}},n.createElement(f(),{theme:"snow",value:$,onChange:q,modules:qe,formats:Ke,style:{height:"450px",marginBottom:"50px"}}))),n.createElement("div",{style:{textAlign:"right"}},n.createElement(a.A,{type:"primary",onClick:async()=>{r(!0);try{const e=await E.tY.UpdateSiteContent({content_type:"privacy_policy",title:G,html_content:$});200!==e.status&&201!==e.status||(C({message:"Privacy Policy updated successfully",severity:"success",backgroundColor:"#FFFFFF",textColor:"#000000"}),e.data&&e.data.last_updated&&Q(e.data.last_updated),Xe("privacy_policy","Privacy Policy"))}catch(e){console.error("Error updating privacy policy:",e),C({message:"Failed to update Privacy Policy",severity:"error",backgroundColor:"#FFFFFF",textColor:"#000000"})}finally{r(!1)}},loading:t,size:"large"},"Save Privacy Policy"))))},{key:"influencer_terms",label:"Influencer Terms",children:n.createElement(l.A,null,n.createElement(s.A,{direction:"vertical",size:"large",style:{width:"100%"}},n.createElement("div",null,n.createElement(F,{level:4},"Influencer Terms of Service"),n.createElement(P,{type:"secondary"},"Last updated: ",Ze(ce))),n.createElement("div",null,n.createElement(P,{strong:!0},"Page Title"),n.createElement(i.A,{placeholder:"e.g., Influencer Terms of Service",value:re,onChange:e=>ne(e.target.value),style:{marginTop:"8px",marginBottom:"20px"},size:"large"})),n.createElement("div",null,n.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"}},n.createElement(P,{strong:!0},"Page Content"),n.createElement(a.A,{size:"small",onClick:()=>me(!ue),icon:ue?n.createElement("span",null,"📝"):n.createElement("span",null,"</>")},ue?"Visual Editor":"Source Code")),ue?n.createElement("textarea",{value:le,onChange:e=>oe(e.target.value),style:{width:"100%",minHeight:"500px",padding:"12px",fontFamily:"monospace",fontSize:"13px",border:"1px solid #d9d9d9",borderRadius:"4px",resize:"vertical"},placeholder:"Paste your HTML code here..."}):n.createElement("div",{style:{minHeight:"500px",marginTop:"8px"}},n.createElement(f(),{theme:"snow",value:le,onChange:oe,modules:qe,formats:Ke,style:{height:"450px",marginBottom:"50px"}}))),n.createElement("div",{style:{textAlign:"right"}},n.createElement(a.A,{type:"primary",onClick:async()=>{r(!0);try{const e=await E.tY.UpdateSiteContent({content_type:"influencer_terms",title:re,html_content:le});200!==e.status&&201!==e.status||(C({message:"Influencer Terms of Service updated successfully",severity:"success",backgroundColor:"#FFFFFF",textColor:"#000000"}),e.data&&e.data.last_updated&&se(e.data.last_updated),Xe("influencer_terms","Influencer Terms of Service"))}catch(e){console.error("Error updating influencer terms:",e),C({message:"Failed to update Influencer Terms of Service",severity:"error",backgroundColor:"#FFFFFF",textColor:"#000000"})}finally{r(!1)}},loading:t,size:"large"},"Save Influencer Terms"))))},{key:"cookies_policy",label:"Cookies Policy",children:n.createElement(l.A,null,n.createElement(s.A,{direction:"vertical",size:"large",style:{width:"100%"}},n.createElement("div",null,n.createElement(F,{level:4},"Cookies Policy"),n.createElement(P,{type:"secondary"},"Last updated: ",Ze(be))),n.createElement("div",null,n.createElement(P,{strong:!0},"Page Title"),n.createElement(i.A,{placeholder:"e.g., Cookies Policy",value:ye,onChange:e=>ge(e.target.value),style:{marginTop:"8px",marginBottom:"20px"},size:"large"})),n.createElement("div",null,n.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"}},n.createElement(P,{strong:!0},"Page Content"),n.createElement(a.A,{size:"small",onClick:()=>_e(!we),icon:we?n.createElement("span",null,"📝"):n.createElement("span",null,"</>")},we?"Visual Editor":"Source Code")),we?n.createElement("textarea",{value:he,onCh
1ange:e=>fe(e.target.value),style:{width:"100%",minHeight:"500px",padding:"12px",fontFamily:"monospace",fontSize:"13px",border:"1px solid #d9d9d9",borderRadius:"4px",resize:"vertical"},placeholder:"Paste your HTML code here..."}):n.createElement("div",{style:{minHeight:"500px",marginTop:"8px"}},n.createElement(f(),{theme:"snow",value:he,onChange:fe,modules:qe,formats:Ke,style:{height:"450px",marginBottom:"50px"}}))),n.createElement("div",{style:{textAlign:"right"}},n.createElement(a.A,{type:"primary",onClick:async()=>{r(!0);try{const e=await E.tY.UpdateSiteContent({content_type:"cookies_policy",title:ye,html_content:he});200!==e.status&&201!==e.status||(C({message:"Cookies Policy updated successfully",severity:"success",backgroundColor:"#FFFFFF",textColor:"#000000"}),e.data&&e.data.last_updated&&xe(e.data.last_updated),Xe("cookies_policy","Cookies Policy"))}catch(e){console.error("Error updating cookies policy:",e),C({message:"Failed to update Cookies Policy",severity:"error",backgroundColor:"#FFFFFF",textColor:"#000000"})}finally{r(!1)}},loading:t,size:"large"},"Save Cookies Policy"))))},{key:"social_links",label:"Social Links",children:n.createElement(x.default,null)}];return p?n.createElement("div",{style:{textAlign:"center",padding:"100px 0"}},n.createElement(d.A,{size:"large",tip:"Loading site content..."})):n.createElement("div",{style:{padding:"24px"}},_&&n.createElement(b.A,{message:_.message,severity:_.severity,backgroundColor:_.backgroundColor,textColor:_.textColor,onClose:()=>C(null)}),n.createElement(F,{level:2},"Site Content Management"),n.createElement(P,{type:"secondary"},"Manage the landing page and legal content (Terms of Service, Privacy Policy, and more)"),n.createElement(o.A,null),n.createElement(m.A,{defaultActiveKey:"landing_page",items:et,size:"large"}))}])}}]);

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.