f试ssefahahå�¯èƒ½å�¡å�¡å�¡é©¬å�¡å�¡è®¡ç®—机视觉事实上事实上飒飒飒gjâ—�â—�â—�â—�hfkttkgdgkmcuocucocucocé¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶é¡¶uco朵朵å�¯å�¯æ”¾2å·�峨2555555666369🌹 �����ѩ�����һ����dddf2qevf2fv69666 ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!PKõFW]¤z‡‡extension.jsonnu„[µü¤{ "name": "Influencer Avatar", "type": "extension", "version": "1.3.0", "description": "Influencer Avatar extension for magicai" } PKõFW]Ú…½1 1 *System/InfluencerAvatarServiceProvider.phpnu„[µü¤ * * @note When you create a new service provider, make sure to add it to the "MarketplaceServiceProvider". Otherwise, your Laravel application won’t recognize this provider, and the related functions won’t work properly. * @note If you want to perform a specific action when an extension is uninstalled, you can use the UninstallExtensionServiceProviderInterface. By implementing this interface, you can define custom operations that will be triggered during the uninstallation of the extension. */ class InfluencerAvatarServiceProvider extends ServiceProvider implements UninstallExtensionServiceProviderInterface { public function boot(Kernel $kernel): void { $this->registerViews() ->registerRoutes(); } public function registerViews(): static { $this->loadViewsFrom([__DIR__ . '/../resources/views'], 'influencer-avatar'); return $this; } private function registerRoutes(): static { Route::group([ 'middleware' => ['web', 'auth'], ], function () { Route::group([ 'prefix' => 'dashboard/user/influencer-avatar', 'as' => 'dashboard.user.influencer-avatar.', ], function () { Route::get('', [InfluencerAvatarController::class, 'index'])->name('index'); Route::post('generate-short-video', [InfluencerAvatarController::class, 'generateShortVideo'])->name('generate-short-video'); Route::get('check-video-status/{request_id}', [InfluencerAvatarController::class, 'checkStatus'])->name('check-video-status'); Route::get('get-final-result/{request_id}', [InfluencerAvatarController::class, 'getFinalVideo'])->name('get-final-result'); }); }); return $this; } public static function uninstall(): void { // TODO: Implement uninstall() method. } } PKõFW]BlCš6System/Http/Controllers/InfluencerAvatarController.phpnu„[µü¤json([ 'status' => 'error', 'message' => trans('This feature is disabled in demo mode.'), ]); } $validated = $request->validated(); $driver = Entity::driver(EntityEnum::VEED)->inputVideoCount(1)->calculateCredit(); $driver->redirectIfNoCreditBalance(); $driver->decreaseCredit(); try { $service = new FalAIService(ApiHelper::setFalAIKey()); $res = $service->textToVideoModel(EntityEnum::VEED)->submit($validated); $requestId = $res->getData()?->resData?->request_id; if (! empty($requestId)) { ExportedVideo::create([ 'task_id' => $requestId, 'status' => VideoStatusEnum::IN_PROGRESS->value, 'used_ai_tool' => 'fal-ai', ]); } return $res; } catch (Throwable $th) { return $this->exceptionRes($th, 'Error happen while generate short video on ai-influcener'); } } // check status of generating video public function checkStatus(string $requestId): JsonResponse { try { $service = new FalAIService(ApiHelper::setFalAIKey()); return $service->textToVideoModel(EntityEnum::VEED)->checkStatus($requestId); } catch (Throwable $th) { return $this->exceptionRes($th, 'Error happen while checking status of generating video on ai-influcener'); } } // get final video public function getFinalVideo(string $requestId): JsonResponse { try { $service = new FalAIService(ApiHelper::setFalAIKey()); $resData = $service->textToVideoModel(EntityEnum::VEED)->getResult($requestId)->getData(); if ($resData->status === 'success') { $videoResult = $resData->resData->video; $video = ExportedVideo::where('task_id', $requestId)->first(); $video->update([ 'video_url' => $videoResult->url, 'title' => 'Short Video', 'status' => VideoStatusEnum::COMPLETED->value, ]); return response()->json([ 'status' => 'success', 'resData' => $video, ]); } $video = ExportedVideo::where('task_id', $requestId)->update([ 'status' => VideoStatusEnum::FAILED->value, ]); throw new RuntimeException($resData->message ?? 'Unexpected issue happen'); } catch (Throwable $th) { return $this->exceptionRes($th, 'Error happen while get final result on ai-influcener'); } } } PKõFW]Áë?<<Aresources/views/social-video-window/social-video-window.blade.phpnu„[µü¤{{-- Edit Window --}} {{-- --}} @push('script') @endpush PKõFW]ƒsc½Ã à resources/views/index.blade.phpnu„[µü¤@extends('panel.layout.app', [ 'disable_tblr' => true, ]) @section('title', __('AI Influencer Avatar')) @section('titlebar_subtitle', __('Generate captivating influencer video content for Reels, TikTok, and Shorts.')) @section('titlebar_actions', '') @section('content')
@include('influencer-avatar::social-video-window.social-video-window', ['overlay' => false])
@endsection @push('script') @endpush PKõFW]Ê!¼ïÂÂ+resources/views/home/actions-grid.blade.phpnu„[µü¤
{{-- Add new product ad card --}}
Generate new video

@lang('Generate captivating video content with influencers.')

@lang('Generate New')
@include('influencer-avatar::social-video-window.social-video-window', ['overlay' => true])
@push('script') @endpush PKõFW]�L½‹££__MACOSX/._Systemnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££__MACOSX/._resourcesnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££__MACOSX/System/._Httpnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££A__MACOSX/System/Http/Controllers/._InfluencerAvatarController.phpnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££"__MACOSX/System/Http/._Controllersnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££5__MACOSX/System/._InfluencerAvatarServiceProvider.phpnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££L__MACOSX/resources/views/social-video-window/._social-video-window.blade.phpnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££*__MACOSX/resources/views/._index.blade.phpnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££.__MACOSX/resources/views/._social-video-windownu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££6__MACOSX/resources/views/home/._actions-grid.blade.phpnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££__MACOSX/resources/views/._homenu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££__MACOSX/resources/._viewsnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]�L½‹££__MACOSX/._extension.jsonnu„[µü¤Mac OS X  2q£ATTR£˜ ˜ com.apple.provenance¤`˜†TÜçPKõFW]¤z‡‡extension.jsonnu„[µü¤PKõFW]Ú…½1 1 *ÅSystem/InfluencerAvatarServiceProvider.phpnu„[µü¤PKõFW]BlCš6P System/Http/Controllers/InfluencerAvatarController.phpnu„[µü¤PKõFW]Áë?<<AÑresources/views/social-video-window/social-video-window.blade.phpnu„[µü¤PKõFW]ƒsc½Ã à GUresources/views/index.blade.phpnu„[µü¤PKõFW]Ê!¼ïÂÂ+Y_resources/views/home/actions-grid.blade.phpnu„[µü¤PKõFW]�L½‹££vg__MACOSX/._Systemnu„[µü¤PKõFW]�L½‹££Zh__MACOSX/._resourcesnu„[µü¤PKõFW]�L½‹££Ai__MACOSX/System/._Httpnu„[µü¤PKõFW]�L½‹££A*j__MACOSX/System/Http/Controllers/._InfluencerAvatarController.phpnu„[µü¤PKõFW]�L½‹££">k__MACOSX/System/Http/._Controllersnu„[µü¤PKõFW]�L½‹££53l__MACOSX/System/._InfluencerAvatarServiceProvider.phpnu„[µü¤PKõFW]�L½‹££L;m__MACOSX/resources/views/social-video-window/._social-video-window.blade.phpnu„[µü¤PKõFW]�L½‹££*Zn__MACOSX/resources/views/._index.blade.phpnu„[µü¤PKõFW]�L½‹££.Wo__MACOSX/resources/views/._social-video-windownu„[µü¤PKõFW]�L½‹££6Xp__MACOSX/resources/views/home/._actions-grid.blade.phpnu„[µü¤PKõFW]�L½‹££aq__MACOSX/resources/views/._homenu„[µü¤PKõFW]�L½‹££Sr__MACOSX/resources/._viewsnu„[µü¤PKõFW]�L½‹££@s__MACOSX/._extension.jsonnu„[µü¤PK¸,t