PageSourceSearch

https://ailikeme.ai/static/1183.1fd8e837452d7aad8a66.js

js ailikeme.ai collected 2026-10-05 15:27:42 UTC 15,761 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_webpack_project=self.webpackChunkmy_webpack_project||[]).push([[1183],{21512(e,t,n){var l=n(88569);t.A=void 0;var a=l(n(89987)),r=n(47671);t.A=(0,a.default)((0,r.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star")},59806(e,t,n){var l=n(88569);t.A=void 0;var a=l(n(89987)),r=n(47671);t.A=(0,a.default)((0,r.jsx)("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"}),"StarBorder")},75237(e,t,n){n.r(t),n.d(t,{default:()=>U});var l=n(39471),a=n(32972),r=n(5185),i=n(31812),o=n(35256),c=n(6908),s=n(26172),u=n(12256),d=n(47613),m=n(73551),p=(n(64586),n(69674)),f=n(51794),v=n(18467),y=n(62064),h=n(28374),g=n(82390),x=n(60916),k=n(27714),E=(n(43671),n(21512)),b=n(59806),w=n(19499),S=n(16243),C=n(28152),A=(n(3806),n(8569)),_=n(29934),j=n(69158),O=n(50138),F=n(1996),I=n(21698),N=n(45457),T=n(29054),B=n(86287);const P=e=>{let t=e.open,n=e.title,a=e.header,r=e.description,o=e.actionButton,c=e.actionButtonText,s=e.onCancel,u=e.influencerData,d=(e.isAuthenticated,e.handleIconClick);return console.log(u,"adata"),l.createElement(O.A,{open:t,className:"alm-app flex justify-center",PaperProps:{className:"alm-card alm-card--data alm-card--flat"},sx:{"& .MuiPaper-root":{width:{xs:"100%",lg:"600px"},maxWidth:"100%"}}},l.createElement(F.A,{sx:{position:"relative"}},l.createElement(N.A,{onClick:s,sx:{position:"absolute",right:0,top:8}},l.createElement(T.A,null))),l.createElement(I.A,{className:"alm-ink flex flex-col justify-center"},l.createElement(i.Ay,{item:!0,xs:12,lg:4,style:{height:"100%"}},l.createElement("div",null,l.createElement("div",{className:"flex items-center justify-between"},l.createElement("p",{className:"text-[34px]"},n),l.createElement(B.A,{style:{fontWeight:"700"},className:"bg-[#8E368B] text-white  w-[88px] rounded-[10px] text-[18px]",onClick:o},c)),l.createElement("p",{className:"text-[16px]"},a),l.createElement("div",{className:"text-[16px] font-normal leading-[30px] break-all"},r),l.createElement("div",{className:"py-4 flex items-center justify-between flex-col "},l.createElement("div",{className:" w-full flex items-center justify-between mt-[28px]"},l.createElement("div",{style:{display:"flex",gap:"31px"}},(null==u?void 0:u.facebook_handle)&&l.createElement("div",{style:{cursor:"pointer"},onClick:()=>d(u.facebook_handle)},l.createElement(m.FacebookIcon,null)),(null==u?void 0:u.twitter_handle)&&l.createElement("div",{style:{cursor:"pointer"},onClick:()=>d(u.twitter_handle)},l.createElement(m.XIcon,null)),(null==u?void 0:u.threads_handle)&&l.createElement("div",{style:{cursor:"pointer"},onClick:()=>d(u.threads_handle)},l.createElement(m.ThreadsIcon,null)),(null==u?void 0:u.instagram_handle)&&l.createElement("div",{style:{cursor:"pointer"},onClick:()=>d(u.instagram_handle)},l.createElement(m.InstagramIcon,null)),(null==u?void 0:u.youtube_handle)&&l.createElement("div",{style:{cursor:"pointer"},onClick:()=>d(u.youtube_handle)},l.createElement(m.YouTubeIcon,null)),(null==u?void 0:u.twitch_handle)&&l.createElement("div",{style:{cursor:"pointer"},onClick:()=>d(u.twitch_handle)},l.createElement(m.TwitchIcon,null)),(null==u?void 0:u.linkedin_handle)&&l.createElement("div",{style:{cursor:"pointer",marginTop:"3px"},onClick:()=>d(u.linkedin_handle)},l.createElement(m.Linkden1,null)),(null==u?void 0:u.website)&&l.createElement("div",{style:{cursor:"pointer"},onClick:()=>d(u.website)},l.createElement(m.WebsiteIcon,null)))))))))};var z;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},L.apply(null,arguments)}const D=e=>l.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),z||(z=l.createElement("path",{fill:"#fff",d:"M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10c5.52-.006 9.994-4.48 10-10 0-5.523-4.477-10-10-10m0 19a8.96 8.96 0 0 1-6.187-2.47
15 6.5 6.5 0 0 1 4.315-4.25 6.5 6.5 0 0 1 8.06 4.249A8.96 8.96 0 0 1 10 19M7 8a3 3 0 1 1 6 0 3 3 0 0 1-6 0m9.952 7.715a7.49 7.49 0 0 0-4.75-4.381A3.997 3.997 0 0 0 10 4a4 4 0 0 0-4 4c0 1.393.713 2.616 1.792 3.333a7.5 7.5 0 0 0-4.75 4.375A9 9 0 0 1 10 1a9.01 9.01 0 0 1 9.001 9c0 2.17-.769 4.16-2.048 5.715"})));function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},M.apply(null,arguments)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,l)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Y(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 q(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 l,a,r,i,o=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(l=r.call(n)).done)&&(o.push(l.value),o.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(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)?G(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 G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}const U=()=>{var e,t,n,m,O,F;const I=(0,a.Zp)(),N=(0,a.g)().slug,T=(0,s.A)(),B=(0,c.A)(T.breakpoints.up("sm")),z=(0,c.A)(T.breakpoints.up("xl")),L=(0,c.A)(T.breakpoints.down("lg")),R=((0,c.A)("(min-width: 1600px)"),q((0,l.useState)(null),2)),Y=R[0],G=R[1],U=q((0,l.useState)(null),2),X=U[0],Z=U[1],$=q((0,l.useState)(null),2),H=$[0],J=$[1],K=q((0,l.useState)(!1),2),Q=K[0],V=K[1],ee=q((0,l.useState)(!1),2),te=ee[0],ne=ee[1],le=q((0,l.useState)(!1),2),ae=le[0],re=le[1],ie=q((0,l.useState)(!1),2),oe=ie[0],ce=ie[1],se=q((0,l.useState)(!1),2),ue=se[0],de=se[1],me=q((0,l.useState)(!1),2),pe=me[0],fe=me[1],ve=q((0,l.useState)(!1),2),ye=ve[0],he=ve[1],ge=q((0,l.useState)(!1),2),xe=ge[0],ke=ge[1],Ee=q((0,l.useState)(!1),2),be=Ee[0],we=Ee[1],Se=q((0,l.useState)(null==X?void 0:X.added),2),Ce=(Se[0],Se[1]),Ae=q((0,l.useState)(null),2),_e=(Ae[0],Ae[1]),je=q(l.useState(null),2),Oe=je[0],Fe=je[1],Ie=q(l.useState("error"),2),Ne=Ie[0],Te=Ie[1],Be=(0,a.zy)(),Pe=null===(e=Be.state)||void 0===e?void 0:e.hideSection,ze=null===(t=Be.state)||void 0===t?void 0:t.fromGallery,Le=null===(n=Be.state)||void 0===n?void 0:n.activeSkinId,De=q((0,l.useState)(0),2),Me=De[0],Re=De[1],We=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";Fe(e),Te(t)},Ye=(0,v.d4)(e=>e.user),qe=(Ye.api.loading,Ye.data),Ge=null==qe?void 0:qe.available_token;(0,l.useEffect)(()=>{Ce(null==X?void 0:X.added)},[X]);const Ue=(0,v.wA)(),Xe=(0,v.d4)(e=>e.auth),Ze=!!Xe.data&&!!Xe.data.key,$e=e=>Ue((0,h.BR)(e));return(0,l.useEffect)(()=>{(async()=>{try{var e;ke(!0);const t=await(0,f.Id)(N);if(Z(t.data),(null===(e=t.data)||void 0===e||null===(e=e.skins)||void 0===e?void 0:e.length)>0){let e=0;ze&&Le&&(e=t.data.skins.findIndex(e=>e.id===Le),-1===e&&(e=0)),Re(e),J(t.data.skins[e]),G(t.data.skins[e].skin_avatar)}}catch(e){e.response&&404===e.response.status&&"Not found."===e.response.data.detail?we(!0):setError(e.message)}finally{ke(!1)}})()},[N,ye,pe,ze,Le]),l.createElement(l.Fragment,null,be?l.createElement("div",{className:"flex flex-col w-[100%] justify-center items-center"},l.createElement(r.A,{variant:"h5"},"Influencer not found with the specified Slug"),l.createElement(A.A,{style:{backgroundColor:"#34B5B1",borderRadius:"10px",textTransform:"none",width:"200px",boxShadow:"none",marginBottom:"1.5rem",fontSize:"18px",marginTop:"1.5rem"},onClick:()=>I("/influencer"),variant:"contained"},"Go Back")):l.createElement("main",{style:{fontSize:"16px",fontWeight:400,width:"100%"}},l.createElement(i.Ay,{style:{height:B?"100%":"auto",width:"calc(100% + 31px)"},container:!0,spacing:4,direction:B?"row":"column"},l.createElement(i.Ay,{item:!0,xs:12,lg:12},l.createElement("div",{style:{marginTop:"2rem",position:"relative",display:"flex",flexDirection:"column",margin:Pe?"0 auto":"unset"}},l.createElement("div",{style:{height:z?"55vh":L?"67%":"74%",display:"flex",justifyContent:"center"}},xe?l.createElement("div",{style:{height:"inherit"},className:"flex justify-center items-center height-inherit"},l.createElement(o.A,null)):l.createElement(l.Fragment,null,l.createElement("img",{src:Y||j,alt:"avatar",style:{width:"100%",border:"1px solid var(--stroke-2)",objectFit:"contain"}}),l.createElement("div",{style:{position:"absolute",top:"0px",left:"0px",opacity:"80%",background:"#2B2A2A",padding:"0px 12px",borderTopLeftRadius:"4px",color:"#FFFFFF",fontFamily:"sans-serif",fontSize:"11px",display:"flex",alignItems:"center",gap:"8px",zIndex:10,paddingLeft:"20px",paddingBottom:!Pe&&"10px"}},l.createElement("div",null,Pe?l.createElement("div",{className:"flex items-center gap-2 cursor-pointer",style:{cursor:"pointer"}},l.createElement("div",{onClick:()=>I("/user-skins-gallery")},l.createElement("img",{src:u,alt:"Back",className:"w-12 h-12",onClick:()=>I("/user-skins-gallery")})),l.createElement("p",{onClick:()=>I("/user-skins-gallery"),style:{color:"#FFFFFF"}},"Back to Skin Collection")):l.createElement(l.Fragment,null,l.createElement("div",{className:"flex items-center gap-2 border border-white/25"},l.createElement(r.A,{style:{fontSize:"12px"},className:"font-normal text-xs underline w-full inline-block cursor-pointer",onClick:()=>{I("/influencer")}},"GALLERY OF COMPANIONS"),l.createElement("p",{className:"block border border-white/25 p-1"},N.toUpperCase())),l.createElement("div",{className:"flex gap-[10px] items-center"},l.createElement(D,{style:{width:"30px"}}),l.createElement(r.A,{style:{fontSize:"12px"},className:"font-normal underline w-full inline-block cursor-pointer",onClick:()=>de(!0)},"SEE PROFILE"))))))),(null==X?void 0:X.skins.length)>0&&l.createElement("div",{style:{height:"20%",marginTop:"0.5rem"}},l.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px"}},l.createElement("span",{className:"alm-on-fog",style:{alignSelf:"flex-start"}},null!=H&&H.is_unlocked?l.createElement("div",{style:{display:"flex",alignItems:"center",gap:"12px"}},l.createElement("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},l.createElement(x.A,null),"Owned"),null!=H&&H.is_default?l.createElement("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},l.createElement(E.A,{style:{fontSize:"20px",color:"#FFB762"}}),l.createElement("span",{style:{fontSize:"14px"}},"Default Skin")):l.createElement("div",{style:{display:"flex",alignItems:"center",gap:"4px",cursor:"pointer"},onClick:Ze?()=>ce(!0):()=>I("/login"),title:"Click to set this as your default skin"},l.createElement(b.A,{style:{fontSize:"20px",color:"#FFB762"}}),l.createElement("span",{style:{fontSize:"14px"}},"Set as Default Skin"))):l.createElement("div",{style:{display:"flex",alignItems:"center",gap:"4px"}},l.createElement("div",{onClick:Ze?()=>V(!0):()=>
1I("/login"),className:"w-12 h-8  flex justify-center items-center rounded-full"},l.createElement(d.A,null)),"Unlock")),l.createElement("span",{className:"text-wrap alm-on-fog"},null==H?void 0:H.skin_name)),l.createElement("div",null,(null==X?void 0:X.skins.length)>0&&l.createElement(p.A,{rooms:null==X?void 0:X.skins,onSlideChange:e=>{let t=e.activeIndex;const n=null==X?void 0:X.skins[t];G(null==n?void 0:n.skin_avatar),J(n)},isFromGallery:ze,initialIndex:Me})))))),l.createElement(w.A,M({open:Q,onClose:()=>V(!1),onConfirm:()=>(()=>{const e=e=>parseFloat(String(null!=e?e:"").replace(/[^0-9.]/g,""))||0;e(null==H?void 0:H.tokens_required)>e(Ge)?ne(!0):re(!0)})(),onCancel:()=>V(!1),cancelText:"Cancel",confirmText:"Confirm",image:Y||j,currentSkin:H,influencerName:null==X||null===(m=X.user_detail)||void 0===m?void 0:m.first_name,skinName:null==H?void 0:H.skin_name,imageStyle:{objectFit:"contain"}},Pe&&{showSkinText:!0})),l.createElement(S.A,{open:te,title:"You need ".concat(null==H?void 0:H.tokens_required," credits to unlock ").concat(null==H?void 0:H.skin_name),onCancel:()=>ne(!1),onConfirm:()=>I("/buy-tokens"),cancelText:"No, thanks",confirmText:"Buy Credits"}),l.createElement(S.A,{open:ae,title:"".concat(null==H?void 0:H.tokens_required," credits will be deducted from your balance of ").concat(Ge," credits"),onCancel:()=>re(!1),onConfirm:async()=>{try{await(0,f.Tu)({skin_id:null==H?void 0:H.id}),Ue((0,_.s7)()),We("You purchased ".concat(null==H?void 0:H.skin_name," for ").concat(null==H?void 0:H.tokens_required," Credits"),"success"),he(e=>!e),_e(H),J(e=>W(W({},e),{},{is_unlocked:!0}))}catch(e){console.log("Purchase successful:",e),We(e.response.data.error,"error"),console.error("Error purchasing skin:",e)}finally{V(!1),re(!1)}},cancelText:"No, thanks",confirmText:"Confirm"}),l.createElement(S.A,{open:oe,title:"Are you sure you want to set ".concat(null==H?void 0:H.skin_name," as your default skin?"),description:"This skin will be used as the default skin in the video calling sessions.",onCancel:()=>ce(!1),onConfirm:async()=>{try{await(0,f.FW)({skin_id:null==H?void 0:H.id}),We("".concat(null==H?void 0:H.skin_name," has been set as your default skin"),"success"),he(e=>!e)}catch(t){var e;console.error("Error setting default skin:",t),We((null===(e=t.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.error)||"Failed to set default skin","error")}finally{ce(!1)}},cancelText:"Cancel",confirmText:"Yes, Set as Default Skin"})),l.createElement(C.A,{message:Oe,severity:Ne,onClose:()=>Fe(null),backgroundColor:"#34B5B1",icon:l.createElement(k.A,null),textColor:"#fff",width:"600px"}),l.createElement(P,{title:(null==X||null===(O=X.user_detail)||void 0===O?void 0:O.first_name)+", "+(null==X||null===(F=X.user_detail)||void 0===F?void 0:F.last_name),isAuthenticated:Ze,influencerData:X,description:null==X?void 0:X.bio,header:"AiLikeMe.ai/".concat(null==X?void 0:X.slug),handleIconClick:e=>{window.open(e,"_blank")},actionButton:Ze?()=>(async()=>{if(Ze)if(null!=X&&X.added){let e=(0,y.im)(X,Xe.userData.id);$e(e);let t=g.Fr?"/m/chats":"/chats";I(t)}else try{await(async e=>{(0,f.cR)({influencer_id:e}).then(()=>{}).catch(()=>{})})(null==X?void 0:X.id),Ce(!0),fe(e=>!e);let e=(0,y.im)(X,Xe.userData.id);$e(e);let t=g.Fr?"/m/chats":"/chats";I(t)}catch(e){console.error("Error adding influencer:",e)}})():()=>I("/login"),actionButtonText:"Chat",open:ue,onCancel:()=>de(!1)}))}}}]);

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.