PageSourceSearch

https://ailikeme.ai/static/6661.12e92552f64180eb2639.js

js ailikeme.ai collected 2026-10-05 15:30:10 UTC 13,935 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[1619,5852,6661],{91120(e,t,n){n.r(t),n.d(t,{default:()=>I});var r,l,a=n(39471),o=n(88477),i=n(18467),s=n(47281),c=n(39231),u=(n(89306),n(45126),n(16243)),d=n(55395),m=n(51794),p=n(28152),v=n(17705),h=n(45345),f=n(78854),g=n(32972),b=(n(58752),n(69287));function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}const S=e=>a.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:39,height:36,fill:"none"},e),r||(r=a.createElement("g",{fill:"#34B5B1",clipPath:"url(#requestImage_svg__a)"},a.createElement("path",{d:"M25.39 7.938c.793.72 1.435 1.313 2.09 1.895 1.976 1.761 3.974 3.5 5.92 5.289.31.287.55.767.561 1.164.052 2.217.028 4.44.024 6.661 0 .236-.028.472-.044.751H5.067c0-1.054-.012-2.088.012-3.122 0-.165.12-.362.251-.484 2.05-1.883 4.106-3.755 6.187-5.65l3.241 3.031L25.39 7.941zM10.126 12.125c-1.946.011-3.668-1.664-3.644-3.54.024-1.871 1.682-3.456 3.624-3.464 1.933-.008 3.6 1.565 3.648 3.445.043 1.868-1.663 3.547-3.624 3.558z"}),a.createElement("path",{d:"M9.751 36v-7.157c-.16-.008-.295-.02-.43-.02H5.062C2.113 28.817 0 26.729 0 23.81V5.045C0 2.387 1.607.495 4.25.043 4.5 0 4.764 0 5.019 0h29.018c2.83 0 4.959 2.108 4.959 4.9v19.067c0 2.344-1.619 4.29-3.95 4.747a6.3 6.3 0 0 1-1.193.098q-6.306.012-12.613 0c-.363 0-.662.078-.969.283a4514 4514 0 0 1-10.193 6.708c-.084.055-.172.103-.331.197zm2.452-4.49.406-.256c2.36-1.55 4.716-3.103 7.084-4.64.188-.122.447-.2.674-.2 4.54-.013 9.077-.009 13.618-.013 1.55 0 2.563-.99 2.567-2.528.004-6.304 0-12.611 0-18.914a3 3 0 0 0-.068-.72c-.287-1.16-1.235-1.84-2.555-1.84H21.204c-5.378 0-10.751.004-16.13-.012-1.582-.004-2.63 1.156-2.622 2.58.028 6.303.012 12.61.016 18.914 0 1.533 1.012 2.52 2.567 2.52h6.769c.124 0 .247.012.407.024v5.084z"}))),l||(l=a.createElement("defs",null,a.createElement("clipPath",{id:"requestImage_svg__a"},a.createElement("path",{fill:"#fff",d:"M0 0h39v36H0z"})))));var w=n(66502),C=n(49655),E=n(27714),x=n(52967),_=(n(33306),n(68103)),k=n(1834);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function j(e,t,n){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 n=t.call(e,"string");if("object"!=typeof n)return n;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:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,l,a,o,i=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){c=!0,l=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw l}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const I=e=>{var t,n,r,l,y,T,j,A,I,M,N;const B=[{name:"tip",type:"number",placeholder:"0.00",inputProps:{step:"0.01",min:"0",max:"5000",required:!0}}],F=P((0,a.useState)(!1),2),D=F[0],L=F[1],U=P((0,a.useState)(""),2),z=U[0],H=U[1],q=P((0,a.useState)(!1),2),K=q[0],$=q[1],V=P((0,a.useState)(!1),2),W=V[0],J=V[1],R=P((0,a.useState)(!1),2),Y=R[0],Z=R[1],G=P((0,a.useState)(!0),2),Q=G[0],X=G[1],ee=P((0,a.useState)(!1),2),te=ee[0],ne=ee[1],re=P((0,a.useState)(!1),2),le=re[0],ae=re[1],oe=P((0,a.useState)(!1),2),ie=oe[0],se=oe[1],ce=P((0,a.useState)(!1),2),ue=ce[0],de=ce[1],me=(0,k.KR)(e.websocket,null===(t=e.rdxSelectedChannel)||void 0===t?void 0:t.id,null===(n=e.rdxSelectedChannel)||void 0===n?void 0:n.inf_id);a.useEffect(()=>{e.onLoadingChange&&e.onLoadingChange(ue)},[ue]);const pe=P((0,a.useState)({tip:""}),2),ve=pe[0],he=pe[1],fe=P((0,a.useState)({}),2),ge=fe[0],be=fe[1],ye=(0,g.Zp)(),Se=P((0,a.useState)("oneTime"),2),we=Se[0],Ce=Se[1],Ee=P((0,a.useState)(!1),2),xe=Ee[0],_e=Ee[1],ke=P((0,a.useState)(null),2),Te=ke[0],Oe=ke[1],je=P((0,a.useState)("idle"),2),Pe=je[0],Ae=je[1],Ie=P((0,a.useState)(""),2),Me=Ie[0],Ne=Ie[1],Be=P((0,a.useState)(!1),2),Fe=Be[0],De=Be[1],Le=(0,i.d4)(e=>e.chatConfig),Ue=Le.mode,ze=Le.error,He=(0,i.wA)(),qe=e=>He((0,s.x0)(e)),Ke=P((0,a.useState)("monthly"),2),$e=Ke[0],Ve=Ke[1],We=()=>{if(!z.trim()&&!me.hasImages)return void Oe({message:"Empty message can't be sent.",severity:"error"});const t=z;H(""),de(!0),me.hasImages?(console.log("[MessageInput] Sending message with vision context"),me.sendMessageWithVision(t,e.sendTextMessage,(e,t)=>{de(!1),200===e.statusCode?ze&&qe(!1):403===e.statusCode&&null!=e&&e.error&&qe(!0)})):e.sendTextMessage(t,(e,t)=>{de(!1),200===e.statusCode&&ze&&qe(!1),403===e.statusCode&&null!=e&&e.error&&qe(!0)})},Je=e=>{const t=e.target,n=t.name,r=t.value;if("tip"===n){let e="";""===r?e="This field is required":isNaN(r)?e="Only numbers are allowed.":Number(r)<1?e="Tip must be atleast $1":Number(r)>5e3?e="Tip cannot exceed $5000":/^\d+\.\d{3,}$/.test(r)&&(e="Only up to 2 decimal places allowed."),he(e=>O(O({},e),{},{[n]:r})),be(t=>O(O({},t),{},{[n]:e}))}else he(e=>O(O({},e),{},{[n]:r})),be(e=>O(O({},e),{},{[n]:""}))},Re=t=>{t.preventDefault();let n={};
1B.forEach(e=>{ve[e.name]&&""!==ve[e.name].trim()?ge[e.name]&&(n[e.name]=ge[e.name]):n[e.name]="This field is required"}),be(n),0===Object.keys(n).length&&(se(!1),he({tip:""}),be({}),(async t=>{try{var n;const r=f.LK.payment.route;ye(r,{state:{amount:t,tip:!0,influencerId:null==e||null===(n=e.rdxSelectedChannel)||void 0===n?void 0:n.inf_id}})}catch(e){console.error(e)}})(Number(null==ve?void 0:ve.tip)))},Ye=(t,n)=>{console.log(n,"plannnn"),se(!1),he({tip:""}),be({}),(async(t,n)=>{try{var r;const l=f.LK.payment.route;ye(l,{state:{amount:n[t][0].amount,tip:!0,mode:"sub",plans:n,subType:t,influencerId:null==e||null===(r=e.rdxSelectedChannel)||void 0===r?void 0:r.inf_id}})}catch(e){console.error(e)}})(t,n)},Ze=async(t,n)=>{try{var r,l,a;const o=null===(r=n[t])||void 0===r?void 0:r[0];if(!o)throw new Error("Plan not found");await(0,m.gM)({influencer_id:null==e||null===(l=e.rdxSelectedChannel)||void 0===l?void 0:l.inf_id,plan:o.id}),Oe({message:"You have unsubscribed from ".concat(t," tips for ").concat(null==e||null===(a=e.rdxSelectedChannel)||void 0===a?void 0:a.name,"."),severity:"success"}),setTimeout(()=>{const e=document.getElementById("gallery-companion");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},500)}catch(e){Oe({message:"Failed to unsubscribe. Please try again.",severity:"error"})}finally{se(!1),he({tip:""}),be({})}};return a.createElement("div",{className:"pn-msg-input pn-msg-input--light bg-transparent border-t border-black border-solid"},a.createElement(k.lw,{images:me.uploadedImages,onRemove:me.removeImage}),a.createElement("div",{className:"pn-msg-input__wrapper"},a.createElement("div",{className:"pn-msg-input__icons icons-left"},a.createElement("button",{onClick:async()=>{try{var t,n;const r=await(0,m.mF)(null==e||null===(t=e.rdxSelectedChannel)||void 0===t?void 0:t.inf_id);null!=r&&null!==(n=r.data)&&void 0!==n&&n.tips_enabled?se(!0):_e(!0)}catch(e){console.error("Failed to fetch tip status",e),Oe({message:"Unable to check tip status. Please try again later.",severity:"error"})}}},a.createElement(C.A,null)),a.createElement("button",{onClick:()=>J(!0)},a.createElement(c.A,null)),a.createElement("button",{onClick:()=>Z(!0)},a.createElement(w.A,null)),a.createElement("button",{onClick:async()=>{var t;if(null!=e&&null!==(t=e.rdxSelectedChannel)&&void 0!==t&&t.id)try{await(0,m.kM)(e.rdxSelectedChannel.id)}catch(e){var n;Ne((null==e||null===(n=e.response)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.error)||"Failed to publish photo data."),De(!0)}}},a.createElement(S,null)),a.createElement(_.A,{channelId:null===(r=e.rdxSelectedChannel)||void 0===r?void 0:r.id,infId:null===(l=e.rdxSelectedChannel)||void 0===l?void 0:l.inf_id,onImageUploaded:me.handleImageUploaded,disabled:ue||!(null!==(y=e.rdxSelectedChannel)&&void 0!==y&&y.id)})),a.createElement("textarea",{className:"pn-msg-input__textarea resize-none sm:w-full mx-4","data-testid":"message-input",placeholder:"image-only"===Ue?"Describe Image":me.hasImages?"Ask about the uploaded image...":"Type your message",value:z,onChange:e=>{H(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),We())},style:{minHeight:"45px",maxHeight:"200px",overflowY:"auto",wordBreak:"break-word",whiteSpace:"pre-wrap",scrollbarWidth:"none",msOverflowStyle:"none"}}),a.createElement("div",{className:"pn-msg-input__icons icons-right"},a.createElement("button",{"aria-label":"Send",className:"pn-msg-input__send",title:"Send",onClick:We},a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"43",height:"43",viewBox:"0 0 43 43",fill:"none"},a.createElement("g",{clipPath:"url(#clip0_12118_2729)"},a.createElement("path",{d:"M38.8909 21.2132H19.4455M38.8909 21.2132L15.0261 32.7037L19.4455 21.2132M38.8909 21.2132L15.0261 9.72272L19.4455 21.2132",stroke:"#2B2A2A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_12118_2729"},a.createElement("rect",{width:"30",height:"30",fill:"white",transform:"translate(21.2133) rotate(45)"}))))),a.createElement("div",{className:"pn-msg-input__emoji-toggle"},a.createElement(o.rc,{showPicker:K,setShowPicker:$,handleEmojiButtonClick:()=>{$(!K)},handleEmojiSelect:e=>{H(t=>t+e.native),$(!1)}})))),Y&&a.createElement(d.A,{open:Y,title:"done"===Pe?"Upload Successful!":"Upload a PDF file",description:"done"===Pe?"Now you can chat with your companion about this PDF.":"Add a pdf to share content for a more detailed chat.",confirmText:"Browse",cancelText:"Cancel",onCancel:()=>{Z(!1),Ae("idle")},onConfirm:()=>"",height:"500px",showButton:Q,setShowButton:X,onFileUpload:async(t,n)=>{try{var r,l;return t.append("influencer_id",null==e||null===(r=e.rdxSelectedChannel)||void 0===r?void 0:r.inf_id),t.append("channel_id",null==e||null===(l=e.rdxSelectedChannel)||void 0===l?void 0:l.id),await(0,m.KJ)(t,n)}catch(e){var a;const t=(null===(a=e.response)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.error)||"Failed to upload PDF document.";throw Ae("error"),Ne(t),De(!0),e}},status:Pe,setStatus:Ae,notification:Te,setNotification:Oe}),a.createElement(u.A,{open:xe,description:"".concat(null==e||null===(T=e.rdxSelectedChannel)||void 0===T?void 0:T.name," is not receiving tips for now."),onCancel:()=>_e(!1),onConfirm:()=>_e(!1),showCancelButton:!1,confirmText:"OK"}),W&&a.createElement(v.A,{open:W,onClose:()=>{J(!1),ne(!1),ae(!1)},onShare:async t=>{try{var n,r;const l={influencer_id:null==e||null===(n=e.rdxSelectedChannel)||void 0===n?void 0:n.inf_id,channel_id:null==e||null===(r=e.rdxSelectedChannel)||void 0===r?void 0:r.id,youtube_url:t},a=await(0,m.bJ)(l);return ae(!0),setTimeout(()=>{J(!1),ae(!1),ne(!1)},2e3),a}catch(e){var l;const t=(null===(l=e.response)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.error)||"Failed to upload link.";throw ne(t),e}},success:le,error:te,setError:ne}),a.createElement(p.A,{message:null==Te?void 0:Te.message,severity:null==Te?void 0:Te.severity,onClose:()=>Oe(null),backgroundColor:"success"===(null==Te?void 0:Te.severity)?"#34B5B1":"#FF4D4F",icon:a.createElement(E.A,null),textColor:"#fff"}),ie&&a.createElement(b.A,{open:ie,onClose:()=>{se(!1),he({tip:""}),be({})},title:"Enter a Tip Amount",description:"".concat(null==e||null===(j=e.rdxSelectedChannel)||void 0===j?void 0:j.name," is grateful for supporters like you. Choose to give a one-time tip or subscribe to monthly tips or one yearly tip to get perks and awards."),fields:B,value:ve,errors:ge,onChange:Je,onSubmit:Re,onSubscribe:(e,t)=>
1Ye(e,t),onUnsubscribe:(e,t)=>Ze(e,t),submitText:"Send Tip",cancelText:"Cancel",selectedTipType:we,onTipTypeChange:e=>{Ce(e.target.value)},influencerId:null==e||null===(A=e.rdxSelectedChannel)||void 0===A?void 0:A.inf_id}),D&&a.createElement(x.A,{open:D,onClose:()=>{L(!1),he({tip:""}),be({})},title:"".concat(null==e||null===(I=e.rdxSelectedChannel)||void 0===I?void 0:I.name," Subscription"),description:"Subscribe to the monthly tip and yearly tip to get perks and rewards ".concat(null==e||null===(M=e.rdxSelectedChannel)||void 0===M?void 0:M.name," is grateful for supporters like you. "),fields:B,value:ve,errors:ge,onChange:Je,onSubmit:Re,submitText:"Send Tip",cancelText:"Cancel",selectedTipType:$e,onTipTypeChange:e=>{Ve(e.target.value)},onSubscribe:(e,t)=>Ye(e,t),onUnsubscribe:(e,t)=>Ze(e,t),influencerId:null==e||null===(N=e.rdxSelectedChannel)||void 0===N?void 0:N.inf_id}),a.createElement(h.A,{anchorOrigin:{vertical:"top",horizontal:"center"},open:Fe,onClose:()=>De(!1),message:Me,key:"topcenter"}))}}}]);

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.