diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index deb8694..f81f8bf 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -20,7 +20,7 @@ protected function schedule(Schedule $schedule) { $schedule->command('sitemap:generate')->everySixHours()->name('sitemap-generate-every-six-hours'); - + $schedule->call(function () { $url_to_crawl = UrlToCrawl::where('is_crawling', false)->inRandomOrder()->first(); diff --git a/app/Helpers/FirstParty/SitemapCrawler/CustomCrawlProfile.php b/app/Helpers/FirstParty/SitemapCrawler/CustomCrawlProfile.php index 5b231f5..87c1db3 100644 --- a/app/Helpers/FirstParty/SitemapCrawler/CustomCrawlProfile.php +++ b/app/Helpers/FirstParty/SitemapCrawler/CustomCrawlProfile.php @@ -2,8 +2,8 @@ namespace App\Helpers\FirstParty\SitemapCrawler; -use Spatie\Crawler\CrawlProfiles\CrawlProfile; use Psr\Http\Message\UriInterface; +use Spatie\Crawler\CrawlProfiles\CrawlProfile; class CustomCrawlProfile extends CrawlProfile { @@ -20,9 +20,7 @@ public function shouldCrawl(UriInterface $url): bool if ($url->getQuery() !== '') { return false; } - return ($this->callback)($url); } - } diff --git a/app/Http/Controllers/BasicAuthAdmin/AIToolListController.php b/app/Http/Controllers/BasicAuthAdmin/AIToolListController.php new file mode 100644 index 0000000..f506608 --- /dev/null +++ b/app/Http/Controllers/BasicAuthAdmin/AIToolListController.php @@ -0,0 +1,54 @@ +input('view', 'all'); + + $ai_tool_list = AiTool::orderBy('created_at', 'DESC') + ->when($view == 'emailed', function ($query) { + $query->where('has_emailed', true); + }) + ->when($view == 'not_emailed', function ($query) { + $query->where('has_emailed', false); + }) + ->when($view == 'all', function ($query) { + + }) + ->orderBy('created_at', 'DESC') + ->paginate(50); + + $ai_tool_list_count = + + $counts = (object) [ + 'all' => AiTool::count(), + 'emailed' => AiTool::where('has_emailed', true)->count(), + 'not_emailed' => AiTool::where('has_emailed', false)->count(), + ]; + + return view('ba.aitoollist', compact('ai_tool_list', 'counts', 'view')); + } + + public function setToEmailed(Request $request) + { + $ai_tool = AiTool::find($request->input('id')); + + if (is_null($ai_tool)) { + return redirect()->back()->with('error', 'AI Tool not found.'); + } + + $ai_tool->has_emailed = true; + $ai_tool->email = $request->input('email'); + + if ($ai_tool->save()) { + return redirect()->back()->with('success', 'Saved successfully.'); + } + } +} diff --git a/app/Http/Controllers/Front/FrontSubmitToolController.php b/app/Http/Controllers/Front/FrontSubmitToolController.php index bf53581..1f70c5a 100644 --- a/app/Http/Controllers/Front/FrontSubmitToolController.php +++ b/app/Http/Controllers/Front/FrontSubmitToolController.php @@ -6,23 +6,21 @@ use App\Models\SubmitTool; use App\Models\UrlToCrawl; use App\Notifications\AiToolSubmitted; +use Artesaos\SEOTools\Facades\SEOTools; use Illuminate\Http\Request; use Notification; -use Artesaos\SEOTools\Facades\SEOMeta; -use Artesaos\SEOTools\Facades\SEOTools; - class FrontSubmitToolController extends Controller { public function index(Request $request) { - SEOTools::metatags(); - SEOTools::twitter(); - SEOTools::opengraph(); - SEOTools::jsonLd(); - SEOTools::setTitle('Free AI Tool Submission', false); - SEOTools::setDescription('Submit your AI tool for free into AIBuddyTool to get free backlinks and traffic. Limited slots available!'); + SEOTools::metatags(); + SEOTools::twitter(); + SEOTools::opengraph(); + SEOTools::jsonLd(); + SEOTools::setTitle('Free AI Tool Submission', false); + SEOTools::setDescription('Submit your AI tool for free into AIBuddyTool to get free backlinks and traffic. Limited slots available!'); $submitted_tool_count = SubmitTool::whereIn('status', ['initial', 'queued_for_crawl', 'crawled'])->count(); diff --git a/app/Models/AiTool.php b/app/Models/AiTool.php index e7ce55d..330d11e 100644 --- a/app/Models/AiTool.php +++ b/app/Models/AiTool.php @@ -44,6 +44,7 @@ class AiTool extends Model 'view_count' => 'int', 'is_ai_tool' => 'bool', 'qna' => 'object', + 'has_emailed' => 'bool', ]; protected $fillable = [ @@ -62,6 +63,8 @@ class AiTool extends Model 'qna', 'external_url ', + 'has_emailed', + 'email', ]; protected function screenshotImg(): Attribute diff --git a/config/sitemap.php b/config/sitemap.php index 2007c5e..ce2bc85 100644 --- a/config/sitemap.php +++ b/config/sitemap.php @@ -2,7 +2,6 @@ use App\Helpers\FirstParty\SitemapCrawler\CustomCrawlProfile; use GuzzleHttp\RequestOptions; -use Spatie\Sitemap\Crawler\Profile; return [ diff --git a/database/migrations/2023_12_07_041950_add_has_emailed_to_ai_tools_table.php b/database/migrations/2023_12_07_041950_add_has_emailed_to_ai_tools_table.php new file mode 100644 index 0000000..d4f31f8 --- /dev/null +++ b/database/migrations/2023_12_07_041950_add_has_emailed_to_ai_tools_table.php @@ -0,0 +1,30 @@ +boolean('has_emailed')->default(false); + $table->string('email')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('ai_tools', function (Blueprint $table) { + $table->dropColumn('has_emailed'); + $table->dropColumn(('email')); + }); + } +}; diff --git a/public/build/assets/GetEmbedCode-1d44bdf3.js.gz b/public/build/assets/GetEmbedCode-1d44bdf3.js.gz deleted file mode 100644 index 7817211..0000000 Binary files a/public/build/assets/GetEmbedCode-1d44bdf3.js.gz and /dev/null differ diff --git a/public/build/assets/GetEmbedCode-1d44bdf3.js b/public/build/assets/GetEmbedCode-6f92c617.js similarity index 90% rename from public/build/assets/GetEmbedCode-1d44bdf3.js rename to public/build/assets/GetEmbedCode-6f92c617.js index 0aa5202..641f0cb 100644 --- a/public/build/assets/GetEmbedCode-1d44bdf3.js +++ b/public/build/assets/GetEmbedCode-6f92c617.js @@ -1 +1 @@ -import{_ as a,l as r,c as n,a as t,o as c}from"./app-front-d6902e40.js";const m={name:"GetEmbedCode",mixins:[],components:{},props:["url","name"],data:()=>({imgSrc:"https://cdn.aibuddytool.com/featured-on-aibuddytool-1-1000.webp",showToast:!1}),computed:{embedCode(){return"'+this.name+''}},methods:{getEmbedCode(){const e=document.createElement("textarea");e.value=this.embedCode,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),r("Copied! Paste the HTML embed code at the bottom of your business website footer.",{position:"bottom-center",type:"success",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:!0,icon:!0,rtl:!1})}},mounted(){}},u={class:"d-grid gap-2 mx-auto",style:{width:"250px"}},i=["src"];function l(e,o,b,p,h,s){return c(),n("div",null,[t("div",u,[t("img",{style:{width:"250px",height:"auto"},src:e.imgSrc,alt:"Featured banner"},null,8,i),t("button",{onClick:o[0]||(o[0]=(...d)=>s.getEmbedCode&&s.getEmbedCode(...d)),class:"btn btn-sm btn-outline-primary px-3"}," Get HTML embed code ")])])}const f=a(m,[["render",l]]);export{f as default}; +import{_ as a,l as r,c as n,a as t,o as c}from"./app-front-b9536f4d.js";const m={name:"GetEmbedCode",mixins:[],components:{},props:["url","name"],data:()=>({imgSrc:"https://cdn.aibuddytool.com/featured-on-aibuddytool-1-1000.webp",showToast:!1}),computed:{embedCode(){return"'+this.name+''}},methods:{getEmbedCode(){const e=document.createElement("textarea");e.value=this.embedCode,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),r("Copied! Paste the HTML embed code at the bottom of your business website footer.",{position:"bottom-center",type:"success",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:!0,icon:!0,rtl:!1})}},mounted(){}},u={class:"d-grid gap-2 mx-auto",style:{width:"250px"}},i=["src"];function l(e,o,b,p,h,s){return c(),n("div",null,[t("div",u,[t("img",{style:{width:"250px",height:"auto"},src:e.imgSrc,alt:"Featured banner"},null,8,i),t("button",{onClick:o[0]||(o[0]=(...d)=>s.getEmbedCode&&s.getEmbedCode(...d)),class:"btn btn-sm btn-outline-primary px-3"}," Get HTML embed code ")])])}const f=a(m,[["render",l]]);export{f as default}; diff --git a/public/build/assets/GetEmbedCode-6f92c617.js.gz b/public/build/assets/GetEmbedCode-6f92c617.js.gz new file mode 100644 index 0000000..aaa5d47 Binary files /dev/null and b/public/build/assets/GetEmbedCode-6f92c617.js.gz differ diff --git a/public/build/assets/NativeImageBlock-3623204f.js.gz b/public/build/assets/NativeImageBlock-3623204f.js.gz deleted file mode 100644 index f86fdeb..0000000 Binary files a/public/build/assets/NativeImageBlock-3623204f.js.gz and /dev/null differ diff --git a/public/build/assets/NativeImageBlock-3623204f.js b/public/build/assets/NativeImageBlock-68fd4e62.js similarity index 99% rename from public/build/assets/NativeImageBlock-3623204f.js rename to public/build/assets/NativeImageBlock-68fd4e62.js index 9b49c10..a41d11f 100644 --- a/public/build/assets/NativeImageBlock-3623204f.js +++ b/public/build/assets/NativeImageBlock-68fd4e62.js @@ -1 +1 @@ -import{Z as _,_ as y,b,c as g,a as c,H as w,J as $,o as f,$ as S,a0 as I}from"./app-front-d6902e40.js";var m=_();class p{constructor(e,t,r){this.name=e,this.definition=t,this.bindings=t.bindings??{},this.wheres=t.wheres??{},this.config=r}get template(){return`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"")}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var e;return((e=this.template.match(/{[^}?]+\??}/g))==null?void 0:e.map(t=>({name:t.replace(/{|\??}/g,""),required:!/\?}$/.test(t)})))??[]}matchesUrl(e){if(!this.definition.methods.includes("GET"))return!1;const t=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(n,l,u,h)=>{var d;const a=`(?<${u}>${((d=this.wheres[u])==null?void 0:d.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return h?`(${l}${a})?`:`${l}${a}`}).replace(/^\w+:\/\//,""),[r,s]=e.replace(/^\w+:\/\//,"").split("?"),i=new RegExp(`^${t}/?$`).exec(r);if(i){for(const n in i.groups)i.groups[n]=typeof i.groups[n]=="string"?decodeURIComponent(i.groups[n]):i.groups[n];return{params:i.groups,query:m.parse(s)}}return!1}compile(e){const t=this.parameterSegments;return t.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,s,i)=>{if(!i&&[null,void 0].includes(e[s]))throw new Error(`Ziggy error: '${s}' parameter is required for route '${this.name}'.`);if(this.wheres[s]){if(!new RegExp(`^${i?`(${this.wheres[s]})?`:this.wheres[s]}$`).test(e[s]??""))throw new Error(`Ziggy error: '${s}' parameter does not match required format '${this.wheres[s]}' for route '${this.name}'.`);if(t[t.length-1].name===s)return encodeURIComponent(e[s]??"").replace(/%2F/g,"/")}return encodeURIComponent(e[s]??"")}).replace(`${this.origin}//`,`${this.origin}/`).replace(/\/+$/,""):this.template}}class v extends String{constructor(e,t,r=!0,s){if(super(),this._config=s??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this._config={...this._config,absolute:r},e){if(!this._config.routes[e])throw new Error(`Ziggy error: route '${e}' is not in the route list.`);this._route=new p(e,this._config.routes[e],this._config),this._params=this._parse(t)}}toString(){const e=Object.keys(this._params).filter(t=>!this._route.parameterSegments.some(({name:r})=>r===t)).filter(t=>t!=="_query").reduce((t,r)=>({...t,[r]:this._params[r]}),{});return this._route.compile(this._params)+m.stringify({...e,...this._params._query},{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(t,r)=>typeof t=="boolean"?Number(t):r(t)})}_unresolve(e){e?this._config.absolute&&e.startsWith("/")&&(e=this._location().host+e):e=this._currentUrl();let t={};const[r,s]=Object.entries(this._config.routes).find(([i,n])=>t=new p(i,n,this._config).matchesUrl(e))||[void 0,void 0];return{name:r,...t,route:s}}_currentUrl(){const{host:e,pathname:t,search:r}=this._location();return(this._config.absolute?e+t:t.replace(this._config.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+r}current(e,t){const{name:r,params:s,query:i,route:n}=this._unresolve();if(!e)return r;const l=new RegExp(`^${e.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(r);if([null,void 0].includes(t)||!l)return l;const u=new p(r,n,this._config);t=this._parse(t,u);const h={...s,...i};return Object.values(t).every(a=>!a)&&!Object.values(h).some(a=>a!==void 0)?!0:Object.entries(t).every(([a,d])=>h[a]==d)}_location(){var s,i,n;const{host:e="",pathname:t="",search:r=""}=typeof window<"u"?window.location:{};return{host:((s=this._config.location)==null?void 0:s.host)??e,pathname:((i=this._config.location)==null?void 0:i.pathname)??t,search:((n=this._config.location)==null?void 0:n.search)??r}}get params(){const{params:e,query:t}=this._unresolve();return{...e,...t}}has(e){return Object.keys(this._config.routes).includes(e)}_parse(e={},t=this._route){e??(e={}),e=["string","number"].includes(typeof e)?[e]:e;const r=t.parameterSegments.filter(({name:s})=>!this._config.defaults[s]);return Array.isArray(e)?e=e.reduce((s,i,n)=>r[n]?{...s,[r[n].name]:i}:typeof i=="object"?{...s,...i}:{...s,[i]:""},{}):r.length===1&&!e[r[0].name]&&(e.hasOwnProperty(Object.values(t.bindings)[0])||e.hasOwnProperty("id"))&&(e={[r[0].name]:e}),{...this._defaults(t),...this._substituteBindings(e,t)}}_defaults(e){return e.parameterSegments.filter(({name:t})=>this._config.defaults[t]).reduce((t,{name:r},s)=>({...t,[r]:this._config.defaults[r]}),{})}_substituteBindings(e,{bindings:t,parameterSegments:r}){return Object.entries(e).reduce((s,[i,n])=>{if(!n||typeof n!="object"||Array.isArray(n)||!r.some(({name:l})=>l===i))return{...s,[i]:n};if(!n.hasOwnProperty(t[i]))if(n.hasOwnProperty("id"))t[i]="id";else throw new Error(`Ziggy error: object passed as '${i}' parameter is missing route model binding key '${t[i]}'.`);return{...s,[i]:n[t[i]]}},{})}valueOf(){return this.toString()}check(e){return this.has(e)}}function x(o,e,t,r){const s=new v(o,e,t,r);return o?s.toString():s}const O={name:"NativeImageBlock",props:{inputImage:{type:String,default:null}},data:()=>({isLoaded:!1,isUploading:!1,imgSrc:null,placeholderSrc:"https://placekitten.com/g/2100/900"}),computed:{getButtonName(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?"Change featured image":"Upload featured image"},getBlurPx(){return this.imgSrc?0:12},bgStyle(){return{backgroundImage:`url(${this.getImgSrc})`,backgroundPosition:"center",backgroundSize:"cover",filter:`blur(${this.getBlurPx}px)`,webkitFilter:`blur(${this.getBlurPx}px)`}},getImgSrc(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?this.imgSrc:this.placeholderSrc}},methods:{openFileInput(){this.$refs.fileInput.click()},handleFileChange(o){const e=o.target.files[0];e&&this.uploadImage(e)},uploadImage(o){this.isUploading=!0;const e=new FormData;e.append("file",o),e.append("forceSize","true"),b.post(x("api.admin.upload.cloud.image"),e,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{t.data.success===1&&t.data.file&&t.data.file.url?(this.imgSrc=t.data.file.url,this.$emit("saved",t.data.file.url)):console.error("Image upload failed. Invalid response format.")}).catch(t=>{console.error("Image upload failed:",t.response)}).finally(()=>{this.isUploading=!1})},setInputImage(){var o;this.inputImage!=null&&((o=this.inputImage)==null?void 0:o.length)>0&&(this.imgSrc=this.inputImage),this.isLoaded=!0}},mounted(){this.isUploading=!1,setTimeout((function(){this.setInputImage(),this.isLoaded=!0}).bind(this),3e3)}},j=o=>(S("data-v-d3857a0e"),o=o(),I(),o),k={class:"card"},B={class:"card-body ratio ratio-21x9 bg-dark overflow-hidden"},P={class:"position-absolute w-100 h-100 d-flex justify-content-center text-center"},U={key:0,class:"align-self-center"},q=j(()=>c("div",{class:"spinner-border text-light",role:"status"},[c("span",{class:"visually-hidden"},"Loading...")],-1)),C=[q],E={key:1,class:"align-self-center"};function F(o,e,t,r,s,i){return f(),g("div",null,[c("div",k,[c("div",B,[c("div",{class:"d-flex justify-content-center text-center rounded-2",style:w(i.bgStyle)},null,4),c("div",P,[o.isUploading||!o.isLoaded?(f(),g("div",U,C)):(f(),g("div",E,[c("input",{type:"file",onChange:e[0]||(e[0]=(...n)=>i.handleFileChange&&i.handleFileChange(...n)),accept:"image/*",ref:"fileInput",style:{display:"none"}},null,544),c("button",{class:"btn btn-primary",onClick:e[1]||(e[1]=(...n)=>i.openFileInput&&i.openFileInput(...n))},$(i.getButtonName),1)]))])])])])}const N=y(O,[["render",F],["__scopeId","data-v-d3857a0e"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{Z as N,N as _,x as r}; +import{Z as _,_ as y,b,c as g,a as c,H as w,J as $,o as f,$ as S,a0 as I}from"./app-front-b9536f4d.js";var m=_();class p{constructor(e,t,r){this.name=e,this.definition=t,this.bindings=t.bindings??{},this.wheres=t.wheres??{},this.config=r}get template(){return`${this.origin}/${this.definition.uri}`.replace(/\/+$/,"")}get origin(){return this.config.absolute?this.definition.domain?`${this.config.url.match(/^\w+:\/\//)[0]}${this.definition.domain}${this.config.port?`:${this.config.port}`:""}`:this.config.url:""}get parameterSegments(){var e;return((e=this.template.match(/{[^}?]+\??}/g))==null?void 0:e.map(t=>({name:t.replace(/{|\??}/g,""),required:!/\?}$/.test(t)})))??[]}matchesUrl(e){if(!this.definition.methods.includes("GET"))return!1;const t=this.template.replace(/(\/?){([^}?]*)(\??)}/g,(n,l,u,h)=>{var d;const a=`(?<${u}>${((d=this.wheres[u])==null?void 0:d.replace(/(^\^)|(\$$)/g,""))||"[^/?]+"})`;return h?`(${l}${a})?`:`${l}${a}`}).replace(/^\w+:\/\//,""),[r,s]=e.replace(/^\w+:\/\//,"").split("?"),i=new RegExp(`^${t}/?$`).exec(r);if(i){for(const n in i.groups)i.groups[n]=typeof i.groups[n]=="string"?decodeURIComponent(i.groups[n]):i.groups[n];return{params:i.groups,query:m.parse(s)}}return!1}compile(e){const t=this.parameterSegments;return t.length?this.template.replace(/{([^}?]+)(\??)}/g,(r,s,i)=>{if(!i&&[null,void 0].includes(e[s]))throw new Error(`Ziggy error: '${s}' parameter is required for route '${this.name}'.`);if(this.wheres[s]){if(!new RegExp(`^${i?`(${this.wheres[s]})?`:this.wheres[s]}$`).test(e[s]??""))throw new Error(`Ziggy error: '${s}' parameter does not match required format '${this.wheres[s]}' for route '${this.name}'.`);if(t[t.length-1].name===s)return encodeURIComponent(e[s]??"").replace(/%2F/g,"/")}return encodeURIComponent(e[s]??"")}).replace(`${this.origin}//`,`${this.origin}/`).replace(/\/+$/,""):this.template}}class v extends String{constructor(e,t,r=!0,s){if(super(),this._config=s??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),this._config={...this._config,absolute:r},e){if(!this._config.routes[e])throw new Error(`Ziggy error: route '${e}' is not in the route list.`);this._route=new p(e,this._config.routes[e],this._config),this._params=this._parse(t)}}toString(){const e=Object.keys(this._params).filter(t=>!this._route.parameterSegments.some(({name:r})=>r===t)).filter(t=>t!=="_query").reduce((t,r)=>({...t,[r]:this._params[r]}),{});return this._route.compile(this._params)+m.stringify({...e,...this._params._query},{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:(t,r)=>typeof t=="boolean"?Number(t):r(t)})}_unresolve(e){e?this._config.absolute&&e.startsWith("/")&&(e=this._location().host+e):e=this._currentUrl();let t={};const[r,s]=Object.entries(this._config.routes).find(([i,n])=>t=new p(i,n,this._config).matchesUrl(e))||[void 0,void 0];return{name:r,...t,route:s}}_currentUrl(){const{host:e,pathname:t,search:r}=this._location();return(this._config.absolute?e+t:t.replace(this._config.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+r}current(e,t){const{name:r,params:s,query:i,route:n}=this._unresolve();if(!e)return r;const l=new RegExp(`^${e.replace(/\./g,"\\.").replace(/\*/g,".*")}$`).test(r);if([null,void 0].includes(t)||!l)return l;const u=new p(r,n,this._config);t=this._parse(t,u);const h={...s,...i};return Object.values(t).every(a=>!a)&&!Object.values(h).some(a=>a!==void 0)?!0:Object.entries(t).every(([a,d])=>h[a]==d)}_location(){var s,i,n;const{host:e="",pathname:t="",search:r=""}=typeof window<"u"?window.location:{};return{host:((s=this._config.location)==null?void 0:s.host)??e,pathname:((i=this._config.location)==null?void 0:i.pathname)??t,search:((n=this._config.location)==null?void 0:n.search)??r}}get params(){const{params:e,query:t}=this._unresolve();return{...e,...t}}has(e){return Object.keys(this._config.routes).includes(e)}_parse(e={},t=this._route){e??(e={}),e=["string","number"].includes(typeof e)?[e]:e;const r=t.parameterSegments.filter(({name:s})=>!this._config.defaults[s]);return Array.isArray(e)?e=e.reduce((s,i,n)=>r[n]?{...s,[r[n].name]:i}:typeof i=="object"?{...s,...i}:{...s,[i]:""},{}):r.length===1&&!e[r[0].name]&&(e.hasOwnProperty(Object.values(t.bindings)[0])||e.hasOwnProperty("id"))&&(e={[r[0].name]:e}),{...this._defaults(t),...this._substituteBindings(e,t)}}_defaults(e){return e.parameterSegments.filter(({name:t})=>this._config.defaults[t]).reduce((t,{name:r},s)=>({...t,[r]:this._config.defaults[r]}),{})}_substituteBindings(e,{bindings:t,parameterSegments:r}){return Object.entries(e).reduce((s,[i,n])=>{if(!n||typeof n!="object"||Array.isArray(n)||!r.some(({name:l})=>l===i))return{...s,[i]:n};if(!n.hasOwnProperty(t[i]))if(n.hasOwnProperty("id"))t[i]="id";else throw new Error(`Ziggy error: object passed as '${i}' parameter is missing route model binding key '${t[i]}'.`);return{...s,[i]:n[t[i]]}},{})}valueOf(){return this.toString()}check(e){return this.has(e)}}function x(o,e,t,r){const s=new v(o,e,t,r);return o?s.toString():s}const O={name:"NativeImageBlock",props:{inputImage:{type:String,default:null}},data:()=>({isLoaded:!1,isUploading:!1,imgSrc:null,placeholderSrc:"https://placekitten.com/g/2100/900"}),computed:{getButtonName(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?"Change featured image":"Upload featured image"},getBlurPx(){return this.imgSrc?0:12},bgStyle(){return{backgroundImage:`url(${this.getImgSrc})`,backgroundPosition:"center",backgroundSize:"cover",filter:`blur(${this.getBlurPx}px)`,webkitFilter:`blur(${this.getBlurPx}px)`}},getImgSrc(){var o;return this.imgSrc!=null&&((o=this.imgSrc)==null?void 0:o.length)>0?this.imgSrc:this.placeholderSrc}},methods:{openFileInput(){this.$refs.fileInput.click()},handleFileChange(o){const e=o.target.files[0];e&&this.uploadImage(e)},uploadImage(o){this.isUploading=!0;const e=new FormData;e.append("file",o),e.append("forceSize","true"),b.post(x("api.admin.upload.cloud.image"),e,{headers:{"Content-Type":"multipart/form-data"}}).then(t=>{t.data.success===1&&t.data.file&&t.data.file.url?(this.imgSrc=t.data.file.url,this.$emit("saved",t.data.file.url)):console.error("Image upload failed. Invalid response format.")}).catch(t=>{console.error("Image upload failed:",t.response)}).finally(()=>{this.isUploading=!1})},setInputImage(){var o;this.inputImage!=null&&((o=this.inputImage)==null?void 0:o.length)>0&&(this.imgSrc=this.inputImage),this.isLoaded=!0}},mounted(){this.isUploading=!1,setTimeout((function(){this.setInputImage(),this.isLoaded=!0}).bind(this),3e3)}},j=o=>(S("data-v-d3857a0e"),o=o(),I(),o),k={class:"card"},B={class:"card-body ratio ratio-21x9 bg-dark overflow-hidden"},P={class:"position-absolute w-100 h-100 d-flex justify-content-center text-center"},U={key:0,class:"align-self-center"},q=j(()=>c("div",{class:"spinner-border text-light",role:"status"},[c("span",{class:"visually-hidden"},"Loading...")],-1)),C=[q],E={key:1,class:"align-self-center"};function F(o,e,t,r,s,i){return f(),g("div",null,[c("div",k,[c("div",B,[c("div",{class:"d-flex justify-content-center text-center rounded-2",style:w(i.bgStyle)},null,4),c("div",P,[o.isUploading||!o.isLoaded?(f(),g("div",U,C)):(f(),g("div",E,[c("input",{type:"file",onChange:e[0]||(e[0]=(...n)=>i.handleFileChange&&i.handleFileChange(...n)),accept:"image/*",ref:"fileInput",style:{display:"none"}},null,544),c("button",{class:"btn btn-primary",onClick:e[1]||(e[1]=(...n)=>i.openFileInput&&i.openFileInput(...n))},$(i.getButtonName),1)]))])])])])}const N=y(O,[["render",F],["__scopeId","data-v-d3857a0e"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{Z as N,N as _,x as r}; diff --git a/public/build/assets/NativeImageBlock-68fd4e62.js.gz b/public/build/assets/NativeImageBlock-68fd4e62.js.gz new file mode 100644 index 0000000..4a9323e Binary files /dev/null and b/public/build/assets/NativeImageBlock-68fd4e62.js.gz differ diff --git a/public/build/assets/PostEditor-3a06f7cf.js.gz b/public/build/assets/PostEditor-3a06f7cf.js.gz deleted file mode 100644 index 21ced36..0000000 Binary files a/public/build/assets/PostEditor-3a06f7cf.js.gz and /dev/null differ diff --git a/public/build/assets/PostEditor-3a06f7cf.js b/public/build/assets/PostEditor-404ecaec.js similarity index 99% rename from public/build/assets/PostEditor-3a06f7cf.js rename to public/build/assets/PostEditor-404ecaec.js index 506912c..b88c7ba 100644 --- a/public/build/assets/PostEditor-3a06f7cf.js +++ b/public/build/assets/PostEditor-404ecaec.js @@ -1,4 +1,4 @@ -import Qn from"./VueEditorJs-c40f6d08.js";import{r as Ft,_ as Mr}from"./NativeImageBlock-3623204f.js";import{L as hn}from"./bundle-f4b2cd77.js";import{H as yn}from"./bundle-7ca97fea.js";import{g as Cr,d as Pr,b as ua,r as zt,e as ne,f as vt,u as nn,t as da,h as ct,i as rn,w as Nt,j as Z,o as R,c as Q,k as _t,m as nt,n as Fe,p as _e,q as ie,s as ze,v as ft,x as j,y as Qe,z as gn,A as Pe,B as G,C as Gn,T as Sr,D as Ce,E as he,a as J,F as ot,G as we,H as It,I as rt,J as Ve,K as Zt,L as At,M as yt,N as wa,O as Or,P as Nr,Q as Ar,_ as $r,R as Ir,S as Er,U as Yr,V as Ia,W as Ur,X as Lr,Y as wn}from"./app-front-d6902e40.js";var Xn={exports:{}};/*! +import Qn from"./VueEditorJs-04c9fa58.js";import{r as Ft,_ as Mr}from"./NativeImageBlock-68fd4e62.js";import{L as hn}from"./bundle-84836216.js";import{H as yn}from"./bundle-1ccfe0bb.js";import{g as Cr,d as Pr,b as ua,r as zt,e as ne,f as vt,u as nn,t as da,h as ct,i as rn,w as Nt,j as Z,o as R,c as Q,k as _t,m as nt,n as Fe,p as _e,q as ie,s as ze,v as ft,x as j,y as Qe,z as gn,A as Pe,B as G,C as Gn,T as Sr,D as Ce,E as he,a as J,F as ot,G as we,H as It,I as rt,J as Ve,K as Zt,L as At,M as yt,N as wa,O as Or,P as Nr,Q as Ar,_ as $r,R as Ir,S as Er,U as Yr,V as Ia,W as Ur,X as Lr,Y as wn}from"./app-front-b9536f4d.js";var Xn={exports:{}};/*! * Image tool * * @version 2.8.1 diff --git a/public/build/assets/PostEditor-404ecaec.js.gz b/public/build/assets/PostEditor-404ecaec.js.gz new file mode 100644 index 0000000..40233de Binary files /dev/null and b/public/build/assets/PostEditor-404ecaec.js.gz differ diff --git a/public/build/assets/PostEditor-8d534a4a.css.gz b/public/build/assets/PostEditor-8d534a4a.css.gz index 5f8a13f..7b7419b 100644 Binary files a/public/build/assets/PostEditor-8d534a4a.css.gz and b/public/build/assets/PostEditor-8d534a4a.css.gz differ diff --git a/public/build/assets/ToastMessage-cef385bb.js b/public/build/assets/ToastMessage-35fcfb39.js similarity index 92% rename from public/build/assets/ToastMessage-cef385bb.js rename to public/build/assets/ToastMessage-35fcfb39.js index 609a65c..ce31d5f 100644 --- a/public/build/assets/ToastMessage-cef385bb.js +++ b/public/build/assets/ToastMessage-35fcfb39.js @@ -1 +1 @@ -import{_ as t,l as e,c as s,o}from"./app-front-d6902e40.js";const r={name:"ToastMessage",mixins:[],components:{},props:["type","message","timeout"],data:()=>({}),watch:{},computed:{},methods:{triggerMounted(){this.type=="error"&&e(this.message,{position:"bottom-center",type:"error",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:!0,icon:!0,rtl:!1}),this.type=="success"&&e(this.message,{position:"bottom-center",type:"success",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:!0,icon:!0,rtl:!1})}},mounted(){this.triggerMounted()}};function a(n,u,c,i,l,p){return o(),s("div")}const m=t(r,[["render",a]]);export{m as default}; +import{_ as t,l as e,c as s,o}from"./app-front-b9536f4d.js";const r={name:"ToastMessage",mixins:[],components:{},props:["type","message","timeout"],data:()=>({}),watch:{},computed:{},methods:{triggerMounted(){this.type=="error"&&e(this.message,{position:"bottom-center",type:"error",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:!0,icon:!0,rtl:!1}),this.type=="success"&&e(this.message,{position:"bottom-center",type:"success",timeout:3e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!1,closeButton:!0,icon:!0,rtl:!1})}},mounted(){this.triggerMounted()}};function a(n,u,c,i,l,p){return o(),s("div")}const m=t(r,[["render",a]]);export{m as default}; diff --git a/public/build/assets/VueEditorJs-c40f6d08.js b/public/build/assets/VueEditorJs-04c9fa58.js similarity index 99% rename from public/build/assets/VueEditorJs-c40f6d08.js rename to public/build/assets/VueEditorJs-04c9fa58.js index 782a61a..c633ffc 100644 --- a/public/build/assets/VueEditorJs-c40f6d08.js +++ b/public/build/assets/VueEditorJs-04c9fa58.js @@ -1,4 +1,4 @@ -import{_ as Oe,a1 as Zt,f as Ne,c as De,r as Re,h as Pe,o as Fe}from"./app-front-d6902e40.js";var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ct(){}Object.assign(Ct,{default:Ct,register:Ct,revert:function(){},__esModule:!0});Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){const t=(this.document||this.ownerDocument).querySelectorAll(s);let e=t.length;for(;--e>=0&&t.item(e)!==this;);return e>-1});Element.prototype.closest||(Element.prototype.closest=function(s){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(s))return t;t=t.parentElement||t.parentNode}while(t!==null);return null});Element.prototype.prepend||(Element.prototype.prepend=function(s){const t=document.createDocumentFragment();Array.isArray(s)||(s=[s]),s.forEach(e=>{const o=e instanceof Node;t.appendChild(o?e:document.createTextNode(e))}),this.insertBefore(t,this.firstChild)});Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(s){s=arguments.length===0?!0:!!s;const t=this.parentNode,e=window.getComputedStyle(t,null),o=parseInt(e.getPropertyValue("border-top-width")),i=parseInt(e.getPropertyValue("border-left-width")),n=this.offsetTop-t.offsetTopt.scrollTop+t.clientHeight,a=this.offsetLeft-t.offsetLeftt.scrollLeft+t.clientWidth,c=n&&!r;(n||r)&&s&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-o+this.clientHeight/2),(a||l)&&s&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(n||r||a||l)&&!s&&this.scrollIntoView(c)});window.requestIdleCallback=window.requestIdleCallback||function(s){const t=Date.now();return setTimeout(function(){s({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};window.cancelIdleCallback=window.cancelIdleCallback||function(s){clearTimeout(s)};let je=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");var se=(s=>(s.VERBOSE="VERBOSE",s.INFO="INFO",s.WARN="WARN",s.ERROR="ERROR",s))(se||{});const E={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91},ze={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};function mt(s,t,e="log",o,i="color: inherit"){if(!("console"in window)||!window.console[e])return;const n=["info","log","warn","error"].includes(e),r=[];switch(mt.logLevel){case"ERROR":if(e!=="error")return;break;case"WARN":if(!["error","warn"].includes(e))return;break;case"INFO":if(!n||s)return;break}o&&r.push(o);const a="Editor.js 2.28.0",l=`line-height: 1em; +import{_ as Oe,a1 as Zt,f as Ne,c as De,r as Re,h as Pe,o as Fe}from"./app-front-b9536f4d.js";var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ct(){}Object.assign(Ct,{default:Ct,register:Ct,revert:function(){},__esModule:!0});Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){const t=(this.document||this.ownerDocument).querySelectorAll(s);let e=t.length;for(;--e>=0&&t.item(e)!==this;);return e>-1});Element.prototype.closest||(Element.prototype.closest=function(s){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(s))return t;t=t.parentElement||t.parentNode}while(t!==null);return null});Element.prototype.prepend||(Element.prototype.prepend=function(s){const t=document.createDocumentFragment();Array.isArray(s)||(s=[s]),s.forEach(e=>{const o=e instanceof Node;t.appendChild(o?e:document.createTextNode(e))}),this.insertBefore(t,this.firstChild)});Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(s){s=arguments.length===0?!0:!!s;const t=this.parentNode,e=window.getComputedStyle(t,null),o=parseInt(e.getPropertyValue("border-top-width")),i=parseInt(e.getPropertyValue("border-left-width")),n=this.offsetTop-t.offsetTopt.scrollTop+t.clientHeight,a=this.offsetLeft-t.offsetLeftt.scrollLeft+t.clientWidth,c=n&&!r;(n||r)&&s&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-o+this.clientHeight/2),(a||l)&&s&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(n||r||a||l)&&!s&&this.scrollIntoView(c)});window.requestIdleCallback=window.requestIdleCallback||function(s){const t=Date.now();return setTimeout(function(){s({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};window.cancelIdleCallback=window.cancelIdleCallback||function(s){clearTimeout(s)};let je=(s=21)=>crypto.getRandomValues(new Uint8Array(s)).reduce((t,e)=>(e&=63,e<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");var se=(s=>(s.VERBOSE="VERBOSE",s.INFO="INFO",s.WARN="WARN",s.ERROR="ERROR",s))(se||{});const E={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,META:91},ze={LEFT:0,WHEEL:1,RIGHT:2,BACKWARD:3,FORWARD:4};function mt(s,t,e="log",o,i="color: inherit"){if(!("console"in window)||!window.console[e])return;const n=["info","log","warn","error"].includes(e),r=[];switch(mt.logLevel){case"ERROR":if(e!=="error")return;break;case"WARN":if(!["error","warn"].includes(e))return;break;case"INFO":if(!n||s)return;break}o&&r.push(o);const a="Editor.js 2.28.0",l=`line-height: 1em; color: #006FEA; display: inline-block; font-size: 11px; @@ -80,4 +80,4 @@ import{_ as Oe,a1 as Zt,f as Ne,c as De,r as Re,h as Pe,o as Fe}from"./app-front * @license Apache-2.0 * @see Editor.js * @author CodeX Team - */class Si{static get version(){return"2.28.0"}constructor(t){let e=()=>{};z(t)&&R(t.onReady)&&(e=t.onReady);const o=new Ti(t);this.isReady=o.isReady.then(()=>{this.exportAPI(o),e()})}exportAPI(t){const e=["configuration"],o=()=>{Object.values(t.moduleInstances).forEach(i=>{R(i.destroy)&&i.destroy(),i.listeners.removeAll()}),t=null;for(const i in this)Object.prototype.hasOwnProperty.call(this,i)&&delete this[i];Object.setPrototypeOf(this,null)};e.forEach(i=>{this[i]=t[i]}),this.destroy=o,Object.setPrototypeOf(this,t.moduleInstances.API.methods),delete this.exportAPI,Object.entries({blocks:{clear:"clear",render:"render"},caret:{focus:"focus"},events:{on:"on",off:"off",emit:"emit"},saver:{save:"save"}}).forEach(([i,n])=>{Object.entries(n).forEach(([r,a])=>{this[a]=t.moduleInstances.API.methods[i][r]})})}}const Tt={header:Zt(()=>import("./bundle-7ca97fea.js").then(s=>s.b),["assets/bundle-7ca97fea.js","assets/app-front-d6902e40.js","assets/app-front-935fc652.css"]),list:Zt(()=>import("./bundle-f4b2cd77.js").then(s=>s.b),["assets/bundle-f4b2cd77.js","assets/app-front-d6902e40.js","assets/app-front-935fc652.css"])},Ii=Ne({name:"vue-editor-js",props:{holder:{type:String,default:()=>"vue-editor-js",require:!0},config:{type:Object,default:()=>({}),require:!0},initialized:{type:Function,default:()=>{}}},setup:(s,t)=>{const e=Re({editor:null});function o(r){i(),e.editor=new Si({holder:r.holder||"vue-editor-js",...r.config,onChange:(a,l)=>{n()}}),r.initialized(e.editor)}function i(){e.editor&&(e.editor.destroy(),e.editor=null)}function n(){console.log("saveEditor"),e.editor&&e.editor.save().then(r=>{console.log(r),t.emit("saved",r)})}return Pe(r=>o(s)),{props:s,state:e}},methods:{useTools(s,t){const e=Object.keys(Tt),o={...s.customTools};return e.every(i=>!s[i])?(e.forEach(i=>o[i]={class:Tt[i]}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o):(e.forEach(i=>{const n=s[i];if(n&&(o[i]={class:Tt[i]},typeof n=="object")){const r=Object.assign({},s[i]);delete r.class,o[i]=Object.assign(o[i],r)}}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o)}}}),Mi=["id"];function _i(s,t,e,o,i,n){return Fe(),De("div",{id:s.holder},null,8,Mi)}const Li=Oe(Ii,[["render",_i]]);export{Tt as PLUGINS,Li as default}; + */class Si{static get version(){return"2.28.0"}constructor(t){let e=()=>{};z(t)&&R(t.onReady)&&(e=t.onReady);const o=new Ti(t);this.isReady=o.isReady.then(()=>{this.exportAPI(o),e()})}exportAPI(t){const e=["configuration"],o=()=>{Object.values(t.moduleInstances).forEach(i=>{R(i.destroy)&&i.destroy(),i.listeners.removeAll()}),t=null;for(const i in this)Object.prototype.hasOwnProperty.call(this,i)&&delete this[i];Object.setPrototypeOf(this,null)};e.forEach(i=>{this[i]=t[i]}),this.destroy=o,Object.setPrototypeOf(this,t.moduleInstances.API.methods),delete this.exportAPI,Object.entries({blocks:{clear:"clear",render:"render"},caret:{focus:"focus"},events:{on:"on",off:"off",emit:"emit"},saver:{save:"save"}}).forEach(([i,n])=>{Object.entries(n).forEach(([r,a])=>{this[a]=t.moduleInstances.API.methods[i][r]})})}}const Tt={header:Zt(()=>import("./bundle-1ccfe0bb.js").then(s=>s.b),["assets/bundle-1ccfe0bb.js","assets/app-front-b9536f4d.js","assets/app-front-935fc652.css"]),list:Zt(()=>import("./bundle-84836216.js").then(s=>s.b),["assets/bundle-84836216.js","assets/app-front-b9536f4d.js","assets/app-front-935fc652.css"])},Ii=Ne({name:"vue-editor-js",props:{holder:{type:String,default:()=>"vue-editor-js",require:!0},config:{type:Object,default:()=>({}),require:!0},initialized:{type:Function,default:()=>{}}},setup:(s,t)=>{const e=Re({editor:null});function o(r){i(),e.editor=new Si({holder:r.holder||"vue-editor-js",...r.config,onChange:(a,l)=>{n()}}),r.initialized(e.editor)}function i(){e.editor&&(e.editor.destroy(),e.editor=null)}function n(){console.log("saveEditor"),e.editor&&e.editor.save().then(r=>{console.log(r),t.emit("saved",r)})}return Pe(r=>o(s)),{props:s,state:e}},methods:{useTools(s,t){const e=Object.keys(Tt),o={...s.customTools};return e.every(i=>!s[i])?(e.forEach(i=>o[i]={class:Tt[i]}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o):(e.forEach(i=>{const n=s[i];if(n&&(o[i]={class:Tt[i]},typeof n=="object")){const r=Object.assign({},s[i]);delete r.class,o[i]=Object.assign(o[i],r)}}),Object.keys(t).forEach(i=>{o[i]!==void 0&&o[i]!==null&&(o[i].config=t[i])}),o)}}}),Mi=["id"];function _i(s,t,e,o,i,n){return Fe(),De("div",{id:s.holder},null,8,Mi)}const Li=Oe(Ii,[["render",_i]]);export{Tt as PLUGINS,Li as default}; diff --git a/public/build/assets/VueEditorJs-04c9fa58.js.gz b/public/build/assets/VueEditorJs-04c9fa58.js.gz new file mode 100644 index 0000000..a4a6ebb Binary files /dev/null and b/public/build/assets/VueEditorJs-04c9fa58.js.gz differ diff --git a/public/build/assets/VueEditorJs-c40f6d08.js.gz b/public/build/assets/VueEditorJs-c40f6d08.js.gz deleted file mode 100644 index 7ae361c..0000000 Binary files a/public/build/assets/VueEditorJs-c40f6d08.js.gz and /dev/null differ diff --git a/public/build/assets/app-front-935fc652.css.gz b/public/build/assets/app-front-935fc652.css.gz index a63dadb..3585491 100644 Binary files a/public/build/assets/app-front-935fc652.css.gz and b/public/build/assets/app-front-935fc652.css.gz differ diff --git a/public/build/assets/app-front-d6902e40.js b/public/build/assets/app-front-b9536f4d.js similarity index 94% rename from public/build/assets/app-front-d6902e40.js rename to public/build/assets/app-front-b9536f4d.js index 228cad7..3a746b1 100644 --- a/public/build/assets/app-front-d6902e40.js +++ b/public/build/assets/app-front-b9536f4d.js @@ -16,4 +16,4 @@ const Zg="modulepreload",Qg=function(t){return"/build/"+t},Pc={},mr=function(e,n * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let Rg;const ma=t=>Rg=t,Lg=Symbol();function Hl(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Mr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Mr||(Mr={}));function EO(){const t=ku(!0),e=t.run(()=>Ge({}));let n=[],s=[];const r=pi({install(i){ma(r),r._a=i,i.provide(Lg,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!_O?s.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const Fg=()=>{};function Pd(t,e,n,s=Fg){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&Nu()&&gp(r),r}function vs(t,...e){t.slice().forEach(n=>{n(...e)})}const yO=t=>t();function Ul(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,s)=>t.set(s,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Hl(r)&&Hl(s)&&t.hasOwnProperty(n)&&!be(s)&&!tn(s)?t[n]=Ul(r,s):t[n]=s}return t}const vO=Symbol();function bO(t){return!Hl(t)||!t.hasOwnProperty(vO)}const{assign:gn}=Object;function AO(t){return!!(be(t)&&t.effect)}function TO(t,e,n,s){const{state:r,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=r?r():{});const c=Dp(n.state.value[t]);return gn(c,i,Object.keys(o||{}).reduce((f,m)=>(f[m]=pi(ke(()=>{ma(n);const p=n._s.get(t);return o[m].call(p,p)})),f),{}))}return l=Mg(t,u,e,n,s,!0),l}function Mg(t,e,n={},s,r,i){let o;const a=gn({actions:{}},n),l={deep:!0};let u,c,f=[],m=[],p;const E=s.state.value[t];!i&&!E&&(s.state.value[t]={}),Ge({});let d;function y(v){let w;u=c=!1,typeof v=="function"?(v(s.state.value[t]),w={type:Mr.patchFunction,storeId:t,events:p}):(Ul(s.state.value[t],v),w={type:Mr.patchObject,payload:v,storeId:t,events:p});const k=d=Symbol();fr().then(()=>{d===k&&(u=!0)}),c=!0,vs(f,w,s.state.value[t])}const _=i?function(){const{state:w}=n,k=w?w():{};this.$patch(N=>{gn(N,k)})}:Fg;function h(){o.stop(),f=[],m=[],s._s.delete(t)}function b(v,w){return function(){ma(s);const k=Array.from(arguments),N=[],P=[];function R(W){N.push(W)}function B(W){P.push(W)}vs(m,{args:k,name:v,store:A,after:R,onError:B});let X;try{X=w.apply(this&&this.$id===t?this:A,k)}catch(W){throw vs(P,W),W}return X instanceof Promise?X.then(W=>(vs(N,W),W)).catch(W=>(vs(P,W),Promise.reject(W))):(vs(N,X),X)}}const g={_p:s,$id:t,$onAction:Pd.bind(null,m),$patch:y,$reset:_,$subscribe(v,w={}){const k=Pd(f,v,w.detached,()=>N()),N=o.run(()=>yn(()=>s.state.value[t],P=>{(w.flush==="sync"?c:u)&&v({storeId:t,type:Mr.direct,events:p},P)},gn({},l,w)));return k},$dispose:h},A=Dt(g);s._s.set(t,A);const S=s._a&&s._a.runWithContext||yO,O=s._e.run(()=>(o=ku(),S(()=>o.run(e))));for(const v in O){const w=O[v];if(be(w)&&!AO(w)||tn(w))i||(E&&bO(w)&&(be(w)?w.value=E[v]:Ul(w,E[v])),s.state.value[t][v]=w);else if(typeof w=="function"){const k=b(v,w);O[v]=k,a.actions[v]=w}}return gn(A,O),gn(Q(A),O),Object.defineProperty(A,"$state",{get:()=>s.state.value[t],set:v=>{y(w=>{gn(w,v)})}}),s._p.forEach(v=>{gn(A,o.run(()=>v({store:A,app:s._a,pinia:s,options:a})))}),E&&i&&n.hydrate&&n.hydrate(A.$state,E),u=!0,c=!0,A}function xg(t,e,n){let s,r;const i=typeof e=="function";typeof t=="string"?(s=t,r=i?n:e):(r=t,s=t.id);function o(a,l){const u=om();return a=a||(u?Fs(Lg,null):null),a&&ma(a),a=Rg,a._s.has(s)||(i?Mg(s,e,r,a):TO(s,r,a)),a._s.get(s)}return o.$id=s,o}function Ok(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(){return t(this.$pinia)[s]},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(){const r=t(this.$pinia),i=e[s];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function kk(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[s](...r)},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[e[s]](...r)},n),{})}const Bg=xg("error",{state:()=>({message:null,errors:{}})});/*! js-cookie v3.0.5 | MIT */function qi(t){for(var e=1;e"u")){o=qi({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=r+"="+t.write(i,r)+a}}function s(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;ast.get("/sanctum/csrf-cookie");st.interceptors.request.use(function(t){return Bg().$reset(),ql.get("XSRF-TOKEN")?t:CO().then(e=>t)},function(t){return Promise.reject(t)});st.interceptors.response.use(function(t){var e,n,s,r,i,o;return(((s=(n=(e=t==null?void 0:t.data)==null?void 0:e.data)==null?void 0:n.csrf_token)==null?void 0:s.length)>0||((o=(i=(r=t==null?void 0:t.data)==null?void 0:r.data)==null?void 0:i.token)==null?void 0:o.length)>0)&&ql.set("XSRF-TOKEN",t.data.data.csrf_token),t},function(t){switch(t.response.status){case 401:localStorage.removeItem("token"),window.location.reload();break;case 403:case 404:console.error("404");break;case 422:Bg().$state=t.response.data;break;default:console.log(t.response.data)}return Promise.reject(t)});function Fo(t){return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fo(t)}function ro(t,e){if(!t.vueAxiosInstalled){var n=$g(e)?kO(e):e;if(NO(n)){var s=PO(t);if(s){var r=s<3?wO:OO;Object.keys(n).forEach(function(i){r(t,i,n[i])}),t.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function wO(t,e,n){Object.defineProperty(t.prototype,e,{get:function(){return n}}),t[e]=n}function OO(t,e,n){t.config.globalProperties[e]=n,t[e]=n}function $g(t){return t&&typeof t.get=="function"&&typeof t.post=="function"}function kO(t){return{axios:t,$http:t}}function NO(t){return Fo(t)==="object"&&Object.keys(t).every(function(e){return $g(t[e])})}function PO(t){return t&&t.version&&Number(t.version.split(".")[0])}(typeof exports>"u"?"undefined":Fo(exports))=="object"?module.exports=ro:typeof define=="function"&&define.amd?define([],function(){return ro}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(ro,window.axios);const Ya=xg("auth",{state:()=>({loggedIn:!!localStorage.getItem("token"),user:null}),getters:{},actions:{async login(t){await st.get("sanctum/csrf-cookie");const e=(await st.post("api/login",t)).data;if(e){const n=`Bearer ${e.token}`;localStorage.setItem("token",n),st.defaults.headers.common.Authorization=n,await this.ftechUser()}},async logout(){(await st.post("api/logout")).data&&(localStorage.removeItem("token"),this.$reset())},async ftechUser(){this.user=(await st.get("api/me")).data,this.loggedIn=!0}}}),DO={install:({config:t})=>{t.globalProperties.$auth=Ya(),Ya().loggedIn&&Ya().ftechUser()}};function IO(t){return{all:t=t||new Map,on:function(e,n){var s=t.get(e);s?s.push(n):t.set(e,[n])},off:function(e,n){var s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var s=t.get(e);s&&s.slice().map(function(r){r(n)}),(s=t.get("*"))&&s.slice().map(function(r){r(e,n)})}}}const RO={install:(t,e)=>{t.config.globalProperties.$eventBus=IO()}},Ai={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},er={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},We={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},LO={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom"},Vg={dangerouslyHTMLString:!1,multiple:!0,position:Ai.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},FO={rtl:!1,newestOnTop:!1,toastClassName:""},jg={...Vg,...FO};({...Vg,type:We.DEFAULT});var fe=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(fe||{}),Kl=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(Kl||{});const MO={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},xO={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},BO={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},$O={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"};function Hg(t){let e=MO;if(!t||typeof t=="string")switch(t){case"flip":e=$O;break;case"zoom":e=BO;break;case"slide":e=xO;break}else e=t;return e}function VO(t){return t.containerId||String(t.position)}const ga="will-unmount";function jO(t=Ai.TOP_RIGHT){return!!document.querySelector(".".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(t))}function HO(t=Ai.TOP_RIGHT){return"".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(t)}function UO(t,e,n=!1){const s=["".concat(fe.CSS_NAMESPACE,"__toast-container"),"".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(t),n?"".concat(fe.CSS_NAMESPACE,"__toast-container--rtl"):null].filter(Boolean).join(" ");return Ms(e)?e({position:t,rtl:n,defaultClassName:s}):"".concat(s," ").concat(e||"")}function WO(t){var e;const{position:n,containerClassName:s,rtl:r=!1,style:i={}}=t,o=fe.CSS_NAMESPACE,a=HO(n),l=document.querySelector(".".concat(o)),u=document.querySelector(".".concat(a)),c=!!u&&!((e=u.className)!=null&&e.includes(ga)),f=l||document.createElement("div"),m=document.createElement("div");m.className=UO(n,s,r),m.dataset.testid="".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(n),m.id=VO(t);for(const p in i)if(Object.prototype.hasOwnProperty.call(i,p)){const E=i[p];m.style[p]=E}return l||(f.className=fe.CSS_NAMESPACE,document.body.appendChild(f)),c||f.appendChild(m),m}function zl(t){var e,n,s;const r=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),i=document.getElementById(r);i&&i.removeEventListener("animationend",zl,!1);try{ei[r].unmount(),(s=document.getElementById(r))==null||s.remove(),delete ei[r],delete Re[r]}catch{}}const ei=Dt({});function qO(t,e){const n=document.getElementById(String(e));n&&(ei[n.id]=t)}function Gl(t,e=!0){const n=String(t);if(!ei[n])return;const s=document.getElementById(n);s&&s.classList.add(ga),e?(zO(t),s&&s.addEventListener("animationend",zl,!1)):zl(n),Wt.items=Wt.items.filter(r=>r.containerId!==t)}function KO(t){for(const e in ei)Gl(e,t);Wt.items=[]}function Ug(t,e){const n=document.getElementById(t.toastId);if(n){let s=t;s={...s,...Hg(s.transition)};const r=s.appendPosition?"".concat(s.exit,"--").concat(s.position):s.exit;n.className+=" ".concat(r),e&&e(n)}}function zO(t){for(const e in Re)if(e===t)for(const n of Re[e]||[])Ug(n)}function GO(t){const e=Ti().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function Sc(t){return document.getElementById(t)}function YO(t){const e=Sc(t.containerId);return e&&e.classList.contains(ga)}function Dd(t){var e;const n=Ut(t.content)?Q(t.content.props):null;return n??Q((e=t.data)!=null?e:{})}function XO(t){return t?Wt.items.filter(e=>e.containerId===t).length>0:Wt.items.length>0}function JO(){if(Wt.items.length>0){const t=Wt.items.shift();io(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const Re=Dt({}),Wt=Dt({items:[]});function Ti(){const t=Q(Re);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function ZO(t){return Ti().find(e=>e.toastId===t)}function io(t,e={}){if(YO(e)){const n=Sc(e.containerId);n&&n.addEventListener("animationend",Yl.bind(null,t,e),!1)}else Yl(t,e)}function Yl(t,e={}){const n=Sc(e.containerId);n&&n.removeEventListener("animationend",Yl.bind(null,t,e),!1);const s=Re[e.containerId]||[],r=s.length>0;if(!r&&!jO(e.position)){const i=WO(e),o=rc(_k,e);o.mount(i),qO(o,i.id)}r&&(e.position=s[0].position),fr(()=>{e.updateId?jt.update(e):jt.add(t,e)})}const jt={add(t,e){const{containerId:n=""}=e;n&&(Re[n]=Re[n]||[],Re[n].find(s=>s.toastId===e.toastId)||setTimeout(()=>{var s,r;e.newestOnTop?(s=Re[n])==null||s.unshift(e):(r=Re[n])==null||r.push(e),e.onOpen&&e.onOpen(Dd(e))},e.delay||0))},remove(t){if(t){const e=GO(t);if(e){const n=Re[e];let s=n.find(r=>r.toastId===t);Re[e]=n.filter(r=>r.toastId!==t),!Re[e].length&&!XO(e)&&Gl(e,!1),JO(),fr(()=>{s!=null&&s.onClose&&(s.onClose(Dd(s)),s=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){Re[e]=Re[e]||[];const n=Re[e].find(s=>s.toastId===t.toastId);n&&setTimeout(()=>{for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const r=t[s];n[s]=r}},t.delay||0)}},clear(t,e=!0){t?Gl(t,e):KO(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,s=document.getElementById(n);s&&(s.removeEventListener("animationend",jt.dismissCallback,!1),setTimeout(()=>{jt.remove(n)}))},dismiss(t){if(t){const e=Ti();for(const n of e)if(n.toastId===t){Ug(n,s=>{s.addEventListener("animationend",jt.dismissCallback,!1)});break}}}},Wg=Dt({}),Mo=Dt({});function qg(){return Math.random().toString(36).substring(2,9)}function QO(t){return typeof t=="number"&&!isNaN(t)}function Xl(t){return typeof t=="string"}function Ms(t){return typeof t=="function"}function _a(...t){return Kt(...t)}function oo(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function ek(t={}){Wg["".concat(fe.CSS_NAMESPACE,"-default-options")]=t}function tk(){return Wg["".concat(fe.CSS_NAMESPACE,"-default-options")]||jg}function nk(){return document.documentElement.classList.contains("dark")?"dark":"light"}var ao=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(ao||{});const Kg={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:Ai.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:er.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:We.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},sk={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:We.DEFAULT},theme:{type:String,required:!1,default:er.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},rk=hs({name:"ProgressBar",props:sk,setup(t,{attrs:e}){const n=Ge(),s=ke(()=>t.hide?"true":"false"),r=ke(()=>({...e.style||{},animationDuration:"".concat(t.autoClose===!0?5e3:t.autoClose,"ms"),animationPlayState:t.isRunning?"running":"paused",opacity:t.hide?0:1,transform:t.controlledProgress?"scaleX(".concat(t.progress,")"):"none"})),i=ke(()=>["".concat(fe.CSS_NAMESPACE,"__progress-bar"),t.controlledProgress?"".concat(fe.CSS_NAMESPACE,"__progress-bar--controlled"):"".concat(fe.CSS_NAMESPACE,"__progress-bar--animated"),"".concat(fe.CSS_NAMESPACE,"__progress-bar-theme--").concat(t.theme),"".concat(fe.CSS_NAMESPACE,"__progress-bar--").concat(t.type),t.rtl?"".concat(fe.CSS_NAMESPACE,"__progress-bar--rtl"):null].filter(Boolean).join(" ")),o=ke(()=>"".concat(i.value," ").concat((e==null?void 0:e.class)||"")),a=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),a())},u=ke(()=>t.controlledProgress?null:l),c=ke(()=>t.controlledProgress?l:null);return Nr(()=>{n.value&&(a(),n.value.onanimationend=u.value,n.value.ontransitionend=c.value)}),()=>te("div",{ref:n,role:"progressbar","aria-hidden":s.value,"aria-label":"notification timer",class:o.value,style:r.value},null)}}),ik=hs({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:er.AUTO},type:{type:String,required:!1,default:er.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>te("button",{class:"".concat(fe.CSS_NAMESPACE,"__close-button ").concat(fe.CSS_NAMESPACE,"__close-button--").concat(t.theme),type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[te("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[te("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),Ea=({theme:t,type:e,path:n,...s})=>te("svg",Kt({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":"var(--toastify-icon-color-".concat(e,")")},s),[te("path",{d:n},null)]);function ok(t){return te(Ea,Kt(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function ak(t){return te(Ea,Kt(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function lk(t){return te(Ea,Kt(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function uk(t){return te(Ea,Kt(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function ck(){return te("div",{class:"".concat(fe.CSS_NAMESPACE,"__spinner")},null)}const Jl={info:ak,warning:ok,success:lk,error:uk,spinner:ck},fk=t=>t in Jl;function dk({theme:t,type:e,isLoading:n,icon:s}){let r;const i={theme:t,type:e};return n?r=Jl.spinner():s===!1?r=void 0:oo(s)?r=Q(s):Ms(s)?r=s(i):Ut(s)?r=Nt(s,i):Xl(s)||QO(s)?r=s:fk(e)&&(r=Jl[e](i)),r}const hk=()=>{};function pk(t,e,n=fe.COLLAPSE_DURATION){const{scrollHeight:s,style:r}=t,i=n;requestAnimationFrame(()=>{r.minHeight="initial",r.height=s+"px",r.transition="all ".concat(i,"ms"),requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,i)})})}function mk(t){const e=Ge(!1),n=Ge(!1),s=Ge(!1),r=Ge(ao.Enter),i=Dt({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||fe.COLLAPSE_DURATION}),o=i.done||hk,a=ke(()=>i.appendPosition?"".concat(i.enter,"--").concat(i.position):i.enter),l=ke(()=>i.appendPosition?"".concat(i.exit,"--").concat(i.position):i.exit),u=ke(()=>t.pauseOnHover?{onMouseenter:y,onMouseleave:d}:{});function c(){const h=a.value.split(" ");m().addEventListener(Kl.ENTRANCE_ANIMATION_END,d,{once:!0});const b=A=>{const S=m();A.target===S&&(S.dispatchEvent(new Event(Kl.ENTRANCE_ANIMATION_END)),S.removeEventListener("animationend",b),S.removeEventListener("animationcancel",b),r.value===ao.Enter&&A.type!=="animationcancel"&&S.classList.remove(...h))},g=()=>{const A=m();A.classList.add(...h),A.addEventListener("animationend",b),A.addEventListener("animationcancel",b)};t.pauseOnFocusLoss&&p(),g()}function f(){if(!m())return;const h=()=>{const g=m();g.removeEventListener("animationend",h),i.collapse?pk(g,o,i.collapseDuration):o()},b=()=>{const g=m();r.value=ao.Exit,g&&(g.className+=" ".concat(l.value),g.addEventListener("animationend",h))};n.value||(s.value?h():setTimeout(b))}function m(){return t.toastRef.value}function p(){document.hasFocus()||y(),window.addEventListener("focus",d),window.addEventListener("blur",y)}function E(){window.removeEventListener("focus",d),window.removeEventListener("blur",y)}function d(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function y(){e.value=!1}function _(h){h&&(h.stopPropagation(),h.preventDefault()),n.value=!1}return Nr(f),Nr(()=>{const h=Ti();n.value=h.findIndex(b=>b.toastId===i.toastId)>-1}),Nr(()=>{t.isLoading!==void 0&&(t.loading.value?y():d())}),ps(c),dr(()=>{t.pauseOnFocusLoss&&E()}),{isIn:n,isRunning:e,hideToast:_,eventHandlers:u}}const gk=hs({name:"ToastItem",inheritAttrs:!1,props:Kg,setup(t){const e=Ge(),n=ke(()=>!!t.isLoading),s=ke(()=>t.progress!==void 0&&t.progress!==null),r=ke(()=>dk(t)),i=ke(()=>["".concat(fe.CSS_NAMESPACE,"__toast"),"".concat(fe.CSS_NAMESPACE,"__toast-theme--").concat(t.theme),"".concat(fe.CSS_NAMESPACE,"__toast--").concat(t.type),t.rtl?"".concat(fe.CSS_NAMESPACE,"__toast--rtl"):void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:a,hideToast:l,eventHandlers:u}=mk({toastRef:e,loading:n,done:()=>{jt.remove(t.toastId)},...Hg(t.transition),...t});return()=>te("div",Kt({id:t.toastId,class:i.value,style:t.toastStyle||{},ref:e,"data-testid":"toast-item-".concat(t.toastId),onClick:c=>{t.closeOnClick&&l(),t.onClick&&t.onClick(c)}},u.value),[te("div",{role:t.role,"data-testid":"toast-body",class:"".concat(fe.CSS_NAMESPACE,"__toast-body ").concat(t.bodyClassName||"")},[r.value!=null&&te("div",{"data-testid":"toast-icon-".concat(t.type),class:["".concat(fe.CSS_NAMESPACE,"__toast-icon"),t.isLoading?"":"".concat(fe.CSS_NAMESPACE,"--animate-icon ").concat(fe.CSS_NAMESPACE,"__zoom-enter")].join(" ")},[oo(r.value)?ws(Q(r.value),{theme:t.theme,type:t.type}):Ms(r.value)?r.value({theme:t.theme,type:t.type}):r.value]),te("div",{"data-testid":"toast-content"},[oo(t.content)?ws(Q(t.content),{toastProps:Q(t),closeToast:l,data:t.data}):Ms(t.content)?t.content({toastProps:Q(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?ws("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&te(ik,{theme:t.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),l()}},null),oo(t.closeButton)?ws(Q(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):Ms(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,te(rk,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:a.value,type:t.type,hide:t.hideProgressBar,isRunning:o.value,autoClose:t.autoClose,controlledProgress:s.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let xr=0;function zg(){typeof window>"u"||(xr&&window.cancelAnimationFrame(xr),xr=window.requestAnimationFrame(zg),Mo.lastUrl!==window.location.href&&(Mo.lastUrl=window.location.href,jt.clear()))}const _k=hs({name:"ToastifyContainer",inheritAttrs:!1,props:Kg,setup(t){const e=ke(()=>t.containerId),n=ke(()=>Re[e.value]||[]),s=ke(()=>n.value.filter(r=>r.position===t.position));return ps(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(zg)}),dr(()=>{typeof window<"u"&&xr&&(window.cancelAnimationFrame(xr),Mo.lastUrl="")}),()=>te(Pe,null,[s.value.map(r=>{const{toastId:i=""}=r;return te(gk,Kt({key:i},r),null)})])}});let Xa=!1;function Gg(){const t=[];return Ti().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(ga)&&t.push(e)}),t}function Ek(t){const e=Gg().length,n=t??0;return n>0&&e+Wt.items.length>=n}function yk(t){Ek(t.limit)&&!t.updateId&&Wt.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function Ln(t,e,n={}){if(Xa)return;n=_a(tk(),{type:e},Q(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=qg()),n={...n,content:t,containerId:n.containerId||String(n.position)};const s=Number(n==null?void 0:n.progress);return s<0&&(n.progress=0),s>1&&(n.progress=1),n.theme==="auto"&&(n.theme=nk()),yk(n),Mo.lastUrl=window.location.href,n.multiple?Wt.items.length?n.updateId&&io(t,n):io(t,n):(Xa=!0,Ee.clearAll(void 0,!1),setTimeout(()=>{io(t,n)},0),setTimeout(()=>{Xa=!1},390)),n.toastId}const Ee=(t,e)=>Ln(t,We.DEFAULT,e);Ee.info=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.INFO});Ee.error=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.ERROR});Ee.warning=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.WARNING});Ee.warn=Ee.warning;Ee.success=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.SUCCESS});Ee.loading=(t,e)=>Ln(t,We.DEFAULT,_a(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));Ee.dark=(t,e)=>Ln(t,We.DEFAULT,_a(e,{theme:er.DARK}));Ee.remove=t=>{t?jt.dismiss(t):jt.clear()};Ee.clearAll=(t,e)=>{jt.clear(t,e)};Ee.isActive=t=>{let e=!1;return e=Gg().findIndex(n=>n.toastId===t)>-1,e};Ee.update=(t,e={})=>{setTimeout(()=>{const n=ZO(t);if(n){const s=Q(n),{content:r}=s,i={...s,...e,toastId:e.toastId||t,updateId:qg()},o=i.render||r;delete i.render,Ln(o,i.type,i)}},0)};Ee.done=t=>{Ee.update(t,{isLoading:!1,progress:1})};Ee.promise=vk;function vk(t,{pending:e,error:n,success:s},r){var i,o,a;let l;const u={...r||{},autoClose:!1};e&&(l=Xl(e)?Ee.loading(e,u):Ee.loading(e.render,{...u,...e}));const c={autoClose:(i=r==null?void 0:r.autoClose)!=null?i:!0,closeOnClick:(o=r==null?void 0:r.closeOnClick)!=null?o:!0,closeButton:(a=r==null?void 0:r.autoClose)!=null?a:null,isLoading:void 0,draggable:null,delay:100},f=(p,E,d)=>{if(E==null){Ee.remove(l);return}const y={type:p,...c,...r,data:d},_=Xl(E)?{render:E}:E;return l?Ee.update(l,{...y,..._,isLoading:!1}):Ee(_.render,{...y,..._,isLoading:!1}),d},m=Ms(t)?t():t;return m.then(p=>{f("success",s,p)}).catch(p=>{f("error",n,p)}),m}Ee.POSITION=Ai;Ee.THEME=er;Ee.TYPE=We;Ee.TRANSITIONS=LO;const Yg={install(t,e={}){bk(e)}};typeof window<"u"&&(window.Vue3Toastify=Yg);function bk(t={}){const e=_a(jg,t);ek(e)}const Cc={url:"https://aibuddytool.com",port:null,defaults:{},routes:{"debugbar.openhandler":{uri:"_debugbar/open",methods:["GET","HEAD"]},"debugbar.clockwork":{uri:"_debugbar/clockwork/{id}",methods:["GET","HEAD"],parameters:["id"]},"debugbar.assets.css":{uri:"_debugbar/assets/stylesheets",methods:["GET","HEAD"]},"debugbar.assets.js":{uri:"_debugbar/assets/javascript",methods:["GET","HEAD"]},"debugbar.cache.delete":{uri:"_debugbar/cache/{key}/{tags?}",methods:["DELETE"],parameters:["key","tags"]},"horizon.stats.index":{uri:"chorizo/api/stats",methods:["GET","HEAD"]},"horizon.workload.index":{uri:"chorizo/api/workload",methods:["GET","HEAD"]},"horizon.masters.index":{uri:"chorizo/api/masters",methods:["GET","HEAD"]},"horizon.monitoring.index":{uri:"chorizo/api/monitoring",methods:["GET","HEAD"]},"horizon.monitoring.store":{uri:"chorizo/api/monitoring",methods:["POST"]},"horizon.monitoring-tag.paginate":{uri:"chorizo/api/monitoring/{tag}",methods:["GET","HEAD"],parameters:["tag"]},"horizon.monitoring-tag.destroy":{uri:"chorizo/api/monitoring/{tag}",methods:["DELETE"],wheres:{tag:".*"},parameters:["tag"]},"horizon.jobs-metrics.index":{uri:"chorizo/api/metrics/jobs",methods:["GET","HEAD"]},"horizon.jobs-metrics.show":{uri:"chorizo/api/metrics/jobs/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.queues-metrics.index":{uri:"chorizo/api/metrics/queues",methods:["GET","HEAD"]},"horizon.queues-metrics.show":{uri:"chorizo/api/metrics/queues/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.jobs-batches.index":{uri:"chorizo/api/batches",methods:["GET","HEAD"]},"horizon.jobs-batches.show":{uri:"chorizo/api/batches/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.jobs-batches.retry":{uri:"chorizo/api/batches/retry/{id}",methods:["POST"],parameters:["id"]},"horizon.pending-jobs.index":{uri:"chorizo/api/jobs/pending",methods:["GET","HEAD"]},"horizon.completed-jobs.index":{uri:"chorizo/api/jobs/completed",methods:["GET","HEAD"]},"horizon.silenced-jobs.index":{uri:"chorizo/api/jobs/silenced",methods:["GET","HEAD"]},"horizon.failed-jobs.index":{uri:"chorizo/api/jobs/failed",methods:["GET","HEAD"]},"horizon.failed-jobs.show":{uri:"chorizo/api/jobs/failed/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.retry-jobs.show":{uri:"chorizo/api/jobs/retry/{id}",methods:["POST"],parameters:["id"]},"horizon.jobs.show":{uri:"chorizo/api/jobs/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.index":{uri:"chorizo/{view?}",methods:["GET","HEAD"],wheres:{view:"(.*)"},parameters:["view"]},"sanctum.csrf-cookie":{uri:"sanctum/csrf-cookie",methods:["GET","HEAD"]},"ignition.healthCheck":{uri:"_ignition/health-check",methods:["GET","HEAD"]},"ignition.executeSolution":{uri:"_ignition/execute-solution",methods:["POST"]},"ignition.updateConfig":{uri:"_ignition/update-config",methods:["POST"]},"api.auth.login.post":{uri:"api/login",methods:["POST"]},"api.auth.logout.post":{uri:"api/logout",methods:["POST"]},"api.admin.post.get":{uri:"api/admin/post/{id}",methods:["GET","HEAD"],parameters:["id"]},"api.admin.country-locales":{uri:"api/admin/country-locales",methods:["GET","HEAD"]},"api.admin.categories":{uri:"api/admin/categories/{country_locale_slug}",methods:["GET","HEAD"],parameters:["country_locale_slug"]},"api.admin.authors":{uri:"api/admin/authors",methods:["GET","HEAD"]},"api.admin.upload.cloud.image":{uri:"api/admin/image/upload",methods:["POST"]},"api.admin.post.upsert":{uri:"api/admin/admin/post/upsert",methods:["POST"]},"feeds.main":{uri:"posts.rss",methods:["GET","HEAD"]},login:{uri:"login",methods:["GET","HEAD"]},logout:{uri:"logout",methods:["POST"]},register:{uri:"register",methods:["GET","HEAD"]},"password.request":{uri:"password/reset",methods:["GET","HEAD"]},"password.email":{uri:"password/email",methods:["POST"]},"password.reset":{uri:"password/reset/{token}",methods:["GET","HEAD"],parameters:["token"]},"password.update":{uri:"password/reset",methods:["POST"]},"password.confirm":{uri:"password/confirm",methods:["GET","HEAD"]},"front.home":{uri:"/",methods:["GET","HEAD"]},"front.discover.home":{uri:"discover",methods:["GET","HEAD"]},"front.discover.category":{uri:"discover/{category_slug}",methods:["GET","HEAD"],parameters:["category_slug"]},"front.search.post":{uri:"ai-search",methods:["POST"]},"front.search.results":{uri:"ai-search/{query}",methods:["GET","HEAD"],parameters:["query"]},"front.aitool.show":{uri:"ai-tool/{ai_tool_slug}",methods:["GET","HEAD"],parameters:["ai_tool_slug"]},"front.submit-tool":{uri:"submit-ai-tool-for-free",methods:["GET","HEAD"]},"front.submit-tool.post":{uri:"submit-ai-tool-for-free",methods:["POST"]},"front.terms":{uri:"terms",methods:["GET","HEAD"]},"front.privacy":{uri:"privacy",methods:["GET","HEAD"]},"front.disclaimer":{uri:"disclaimer",methods:["GET","HEAD"]}}};typeof window<"u"&&typeof window.Ziggy<"u"&&Object.assign(Cc.routes,window.Ziggy.routes);var Ak=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nk(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zl={exports:{}},Ja,Id;function wc(){if(Id)return Ja;Id=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Ja={default:n.RFC3986,formatters:{RFC1738:function(s){return t.call(s,e,"+")},RFC3986:function(s){return String(s)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Ja}var Za,Rd;function Xg(){if(Rd)return Za;Rd=1;var t=wc(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s=function(){for(var d=[],y=0;y<256;++y)d.push("%"+((y<16?"0":"")+y.toString(16)).toUpperCase());return d}(),r=function(y){for(;y.length>1;){var _=y.pop(),h=_.obj[_.prop];if(n(h)){for(var b=[],g=0;g=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||g===t.RFC1738&&(v===40||v===41)){S+=A.charAt(O);continue}if(v<128){S=S+s[v];continue}if(v<2048){S=S+(s[192|v>>6]+s[128|v&63]);continue}if(v<55296||v>=57344){S=S+(s[224|v>>12]+s[128|v>>6&63]+s[128|v&63]);continue}O+=1,v=65536+((v&1023)<<10|A.charCodeAt(O)&1023),S+=s[240|v>>18]+s[128|v>>12&63]+s[128|v>>6&63]+s[128|v&63]}return S},c=function(y){for(var _=[{obj:{o:y},prop:"o"}],h=[],b=0;b<_.length;++b)for(var g=_[b],A=g.obj[g.prop],S=Object.keys(A),O=0;O"u")return se;var _e;if(_==="comma"&&r(R))_e=[{value:R.length>0?R.join(",")||null:void 0}];else if(r(A))_e=A;else{var dt=Object.keys(R);_e=S?dt.sort(S):dt}for(var Be=0;Be<_e.length;++Be){var ye=_e[Be],It=typeof ye=="object"&&typeof ye.value<"u"?ye.value:R[ye];if(!(b&&It===null)){var Rt=r(R)?typeof _=="function"?_(y,ye):y:y+(O?"."+ye:"["+ye+"]");a(se,E(It,Rt,_,h,b,g,A,S,O,v,w,k,N,P))}}return se},p=function(d){if(!d)return c;if(d.encoder!==null&&typeof d.encoder<"u"&&typeof d.encoder!="function")throw new TypeError("Encoder has to be a function.");var y=d.charset||c.charset;if(typeof d.charset<"u"&&d.charset!=="utf-8"&&d.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var _=e.default;if(typeof d.format<"u"){if(!n.call(e.formatters,d.format))throw new TypeError("Unknown format option provided.");_=d.format}var h=e.formatters[_],b=c.filter;return(typeof d.filter=="function"||r(d.filter))&&(b=d.filter),{addQueryPrefix:typeof d.addQueryPrefix=="boolean"?d.addQueryPrefix:c.addQueryPrefix,allowDots:typeof d.allowDots>"u"?c.allowDots:!!d.allowDots,charset:y,charsetSentinel:typeof d.charsetSentinel=="boolean"?d.charsetSentinel:c.charsetSentinel,delimiter:typeof d.delimiter>"u"?c.delimiter:d.delimiter,encode:typeof d.encode=="boolean"?d.encode:c.encode,encoder:typeof d.encoder=="function"?d.encoder:c.encoder,encodeValuesOnly:typeof d.encodeValuesOnly=="boolean"?d.encodeValuesOnly:c.encodeValuesOnly,filter:b,format:_,formatter:h,serializeDate:typeof d.serializeDate=="function"?d.serializeDate:c.serializeDate,skipNulls:typeof d.skipNulls=="boolean"?d.skipNulls:c.skipNulls,sort:typeof d.sort=="function"?d.sort:null,strictNullHandling:typeof d.strictNullHandling=="boolean"?d.strictNullHandling:c.strictNullHandling}};return Qa=function(E,d){var y=E,_=p(d),h,b;typeof _.filter=="function"?(b=_.filter,y=b("",y)):r(_.filter)&&(b=_.filter,h=b);var g=[];if(typeof y!="object"||y===null)return"";var A;d&&d.arrayFormat in s?A=d.arrayFormat:d&&"indices"in d?A=d.indices?"indices":"repeat":A="indices";var S=s[A];h||(h=Object.keys(y)),_.sort&&h.sort(_.sort);for(var O=0;O0?k+w:""},Qa}var el,Fd;function Sk(){if(Fd)return el;Fd=1;var t=Xg(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},r=function(m){return m.replace(/&#(\d+);/g,function(p,E){return String.fromCharCode(parseInt(E,10))})},i=function(m,p){return m&&typeof m=="string"&&p.comma&&m.indexOf(",")>-1?m.split(","):m},o="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",l=function(p,E){var d={},y=E.ignoreQueryPrefix?p.replace(/^\?/,""):p,_=E.parameterLimit===1/0?void 0:E.parameterLimit,h=y.split(E.delimiter,_),b=-1,g,A=E.charset;if(E.charsetSentinel)for(g=0;g-1&&(k=n(k)?[k]:k),e.call(d,w)?d[w]=t.combine(d[w],k):d[w]=k}return d},u=function(m,p,E,d){for(var y=d?p:i(p,E),_=m.length-1;_>=0;--_){var h,b=m[_];if(b==="[]"&&E.parseArrays)h=[].concat(y);else{h=E.plainObjects?Object.create(null):{};var g=b.charAt(0)==="["&&b.charAt(b.length-1)==="]"?b.slice(1,-1):b,A=parseInt(g,10);!E.parseArrays&&g===""?h={0:y}:!isNaN(A)&&b!==g&&String(A)===g&&A>=0&&E.parseArrays&&A<=E.arrayLimit?(h=[],h[A]=y):g!=="__proto__"&&(h[g]=y)}y=h}return y},c=function(p,E,d,y){if(p){var _=d.allowDots?p.replace(/\.([^.[]+)/g,"[$1]"):p,h=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,g=d.depth>0&&h.exec(_),A=g?_.slice(0,g.index):_,S=[];if(A){if(!d.plainObjects&&e.call(Object.prototype,A)&&!d.allowPrototypes)return;S.push(A)}for(var O=0;d.depth>0&&(g=b.exec(_))!==null&&O"u"?s.charset:p.charset;return{allowDots:typeof p.allowDots>"u"?s.allowDots:!!p.allowDots,allowPrototypes:typeof p.allowPrototypes=="boolean"?p.allowPrototypes:s.allowPrototypes,arrayLimit:typeof p.arrayLimit=="number"?p.arrayLimit:s.arrayLimit,charset:E,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:s.charsetSentinel,comma:typeof p.comma=="boolean"?p.comma:s.comma,decoder:typeof p.decoder=="function"?p.decoder:s.decoder,delimiter:typeof p.delimiter=="string"||t.isRegExp(p.delimiter)?p.delimiter:s.delimiter,depth:typeof p.depth=="number"||p.depth===!1?+p.depth:s.depth,ignoreQueryPrefix:p.ignoreQueryPrefix===!0,interpretNumericEntities:typeof p.interpretNumericEntities=="boolean"?p.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:typeof p.parameterLimit=="number"?p.parameterLimit:s.parameterLimit,parseArrays:p.parseArrays!==!1,plainObjects:typeof p.plainObjects=="boolean"?p.plainObjects:s.plainObjects,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:s.strictNullHandling}};return el=function(m,p){var E=f(p);if(m===""||m===null||typeof m>"u")return E.plainObjects?Object.create(null):{};for(var d=typeof m=="string"?l(m,E):m,y=E.plainObjects?Object.create(null):{},_=Object.keys(d),h=0;h<_.length;++h){var b=_[h],g=c(b,d[b],E,typeof m=="string");y=t.merge(y,g,E)}return t.compact(y)},el}var tl,Md;function Ck(){if(Md)return tl;Md=1;var t=Tk(),e=Sk(),n=wc();return tl={formats:n,parse:e,stringify:t},tl}(function(t,e){(function(n,s){s(e,Ck())})(Ak,function(n,s){function r(p,E){for(var d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct.bind():function(y,_,h){var b=[null];b.push.apply(b,_);var g=new(Function.bind.apply(y,b));return h&&l(g,h.prototype),g},u.apply(null,arguments)}function c(p){var E=typeof Map=="function"?new Map:void 0;return c=function(d){if(d===null||Function.toString.call(d).indexOf("[native code]")===-1)return d;if(typeof d!="function")throw new TypeError("Super expression must either be null or a function");if(E!==void 0){if(E.has(d))return E.get(d);E.set(d,y)}function y(){return u(d,arguments,a(this).constructor)}return y.prototype=Object.create(d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),l(y,d)},c(p)}var f=function(){function p(d,y,_){var h,b;this.name=d,this.definition=y,this.bindings=(h=y.bindings)!=null?h:{},this.wheres=(b=y.wheres)!=null?b:{},this.config=_}var E=p.prototype;return E.matchesUrl=function(d){var y=this;if(!this.definition.methods.includes("GET"))return!1;var _=this.template.replace(/(\/?){([^}?]*)(\??)}/g,function(O,v,w,k){var N,P="(?<"+w+">"+(((N=y.wheres[w])==null?void 0:N.replace(/(^\^)|(\$$)/g,""))||"[^/?]+")+")";return k?"("+v+P+")?":""+v+P}).replace(/^\w+:\/\//,""),h=d.replace(/^\w+:\/\//,"").split("?"),b=h[0],g=h[1],A=new RegExp("^"+_+"/?$").exec(b);if(A){for(var S in A.groups)A.groups[S]=typeof A.groups[S]=="string"?decodeURIComponent(A.groups[S]):A.groups[S];return{params:A.groups,query:s.parse(g)}}return!1},E.compile=function(d){var y=this,_=this.parameterSegments;return _.length?this.template.replace(/{([^}?]+)(\??)}/g,function(h,b,g){var A;if(!g&&[null,void 0].includes(d[b]))throw new Error("Ziggy error: '"+b+"' parameter is required for route '"+y.name+"'.");if(y.wheres[b]){var S,O;if(!new RegExp("^"+(g?"("+y.wheres[b]+")?":y.wheres[b])+"$").test((S=d[b])!=null?S:""))throw new Error("Ziggy error: '"+b+"' parameter does not match required format '"+y.wheres[b]+"' for route '"+y.name+"'.");if(_[_.length-1].name===b)return encodeURIComponent((O=d[b])!=null?O:"").replace(/%2F/g,"/")}return encodeURIComponent((A=d[b])!=null?A:"")}).replace(this.origin+"//",this.origin+"/").replace(/\/+$/,""):this.template},i(p,[{key:"template",get:function(){return(this.origin+"/"+this.definition.uri).replace(/\/+$/,"")}},{key:"origin",get:function(){return this.config.absolute?this.definition.domain?""+this.config.url.match(/^\w+:\/\//)[0]+this.definition.domain+(this.config.port?":"+this.config.port:""):this.config.url:""}},{key:"parameterSegments",get:function(){var d,y;return(d=(y=this.template.match(/{[^}?]+\??}/g))==null?void 0:y.map(function(_){return{name:_.replace(/{|\??}/g,""),required:!/\?}$/.test(_)}}))!=null?d:[]}}]),p}(),m=function(p){var E,d;function y(h,b,g,A){var S;if(g===void 0&&(g=!0),(S=p.call(this)||this).t=A??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),S.t=o({},S.t,{absolute:g}),h){if(!S.t.routes[h])throw new Error("Ziggy error: route '"+h+"' is not in the route list.");S.i=new f(h,S.t.routes[h],S.t),S.u=S.o(b)}return S}d=p,(E=y).prototype=Object.create(d.prototype),E.prototype.constructor=E,l(E,d);var _=y.prototype;return _.toString=function(){var h=this,b=Object.keys(this.u).filter(function(g){return!h.i.parameterSegments.some(function(A){return A.name===g})}).filter(function(g){return g!=="_query"}).reduce(function(g,A){var S;return o({},g,((S={})[A]=h.u[A],S))},{});return this.i.compile(this.u)+s.stringify(o({},b,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:function(g,A){return typeof g=="boolean"?Number(g):A(g)}})},_.l=function(h){var b=this;h?this.t.absolute&&h.startsWith("/")&&(h=this.h().host+h):h=this.v();var g={},A=Object.entries(this.t.routes).find(function(S){return g=new f(S[0],S[1],b.t).matchesUrl(h)})||[void 0,void 0];return o({name:A[0]},g,{route:A[1]})},_.v=function(){var h=this.h(),b=h.pathname,g=h.search;return(this.t.absolute?h.host+b:b.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+g},_.current=function(h,b){var g=this.l(),A=g.name,S=g.params,O=g.query,v=g.route;if(!h)return A;var w=new RegExp("^"+h.replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(A);if([null,void 0].includes(b)||!w)return w;var k=new f(A,v,this.t);b=this.o(b,k);var N=o({},S,O);return!(!Object.values(b).every(function(P){return!P})||Object.values(N).some(function(P){return P!==void 0}))||Object.entries(b).every(function(P){return N[P[0]]==P[1]})},_.h=function(){var h,b,g,A,S,O,v=typeof window<"u"?window.location:{},w=v.host,k=v.pathname,N=v.search;return{host:(h=(b=this.t.location)==null?void 0:b.host)!=null?h:w===void 0?"":w,pathname:(g=(A=this.t.location)==null?void 0:A.pathname)!=null?g:k===void 0?"":k,search:(S=(O=this.t.location)==null?void 0:O.search)!=null?S:N===void 0?"":N}},_.has=function(h){return Object.keys(this.t.routes).includes(h)},_.o=function(h,b){var g=this;h===void 0&&(h={}),b===void 0&&(b=this.i),h!=null||(h={}),h=["string","number"].includes(typeof h)?[h]:h;var A=b.parameterSegments.filter(function(O){return!g.t.defaults[O.name]});if(Array.isArray(h))h=h.reduce(function(O,v,w){var k,N;return o({},O,A[w]?((k={})[A[w].name]=v,k):typeof v=="object"?v:((N={})[v]="",N))},{});else if(A.length===1&&!h[A[0].name]&&(h.hasOwnProperty(Object.values(b.bindings)[0])||h.hasOwnProperty("id"))){var S;(S={})[A[0].name]=h,h=S}return o({},this.p(b),this.g(h,b))},_.p=function(h){var b=this;return h.parameterSegments.filter(function(g){return b.t.defaults[g.name]}).reduce(function(g,A,S){var O,v=A.name;return o({},g,((O={})[v]=b.t.defaults[v],O))},{})},_.g=function(h,b){var g=b.bindings,A=b.parameterSegments;return Object.entries(h).reduce(function(S,O){var v,w,k=O[0],N=O[1];if(!N||typeof N!="object"||Array.isArray(N)||!A.some(function(P){return P.name===k}))return o({},S,((w={})[k]=N,w));if(!N.hasOwnProperty(g[k])){if(!N.hasOwnProperty("id"))throw new Error("Ziggy error: object passed as '"+k+"' parameter is missing route model binding key '"+g[k]+"'.");g[k]="id"}return o({},S,((v={})[k]=N[g[k]],v))},{})},_.valueOf=function(){return this.toString()},_.check=function(h){return this.has(h)},i(y,[{key:"params",get:function(){var h=this.l();return o({},h.params,h.query)}}]),y}(c(String));n.ZiggyVue={install:function(p,E){var d=function(y,_,h,b){return b===void 0&&(b=E),function(g,A,S,O){var v=new m(g,A,S,O);return g?v.toString():v}(y,_,h,b)};p.mixin({methods:{route:d}}),parseInt(p.version)>2&&p.provide("route",d)}}})})(Zl,Zl.exports);var wk=Zl.exports;const Fn=rc({FrontApp:gO}),Jg=Object.assign({"/resources/js/vue/GetEmbedCode.vue":()=>mr(()=>import("./GetEmbedCode-1d44bdf3.js"),[]),"/resources/js/vue/NativeImageBlock.vue":()=>mr(()=>import("./NativeImageBlock-3623204f.js").then(t=>t.N),["assets/NativeImageBlock-3623204f.js","assets/NativeImageBlock-e3b0c442.css"]),"/resources/js/vue/PostEditor.vue":()=>mr(()=>import("./PostEditor-3a06f7cf.js"),["assets/PostEditor-3a06f7cf.js","assets/VueEditorJs-c40f6d08.js","assets/NativeImageBlock-3623204f.js","assets/NativeImageBlock-e3b0c442.css","assets/bundle-f4b2cd77.js","assets/bundle-7ca97fea.js","assets/PostEditor-8d534a4a.css"]),"/resources/js/vue/ToastMessage.vue":()=>mr(()=>import("./ToastMessage-cef385bb.js"),[]),"/resources/js/vue/VueEditorJs.vue":()=>mr(()=>import("./VueEditorJs-c40f6d08.js"),[])});console.log(Jg);Fn.use(EO());Fn.use(ro,st);Fn.use(DO);Fn.use(RO);Fn.use(Yg);Fn.use(wk.ZiggyVue,Cc);window.Ziggy=Cc;Object.entries({...Jg}).forEach(([t,e])=>{const n=t.split("/").pop().replace(/\.\w+$/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();Fn.component(n,Wp(e))});Fn.mount("#app");export{fS as $,Xu as A,AC as B,LS as C,di as D,g1 as E,p1 as F,Pe as G,fi as H,Zu as I,pT as J,tc as K,fr as L,OS as M,Um as N,Yp as O,Nu as P,gp as Q,Ok as R,kk as S,EC as T,RS as U,To as V,nc as W,bC as X,sc as Y,Ck as Z,hO as _,Ju as a,dS as a0,mr as a1,st as b,Em as c,xg as d,Ge as e,hs as f,Nk as g,ps as h,dr as i,ke as j,te as k,Ee as l,xS as m,MS as n,_i as o,Vu as p,BS as q,Dt as r,rT as s,tS as t,GS as u,vm as v,yn as w,Mu as x,Kt as y,be as z}; + */let Rg;const ma=t=>Rg=t,Lg=Symbol();function Hl(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Mr;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Mr||(Mr={}));function EO(){const t=ku(!0),e=t.run(()=>Ge({}));let n=[],s=[];const r=pi({install(i){ma(r),r._a=i,i.provide(Lg,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!_O?s.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const Fg=()=>{};function Pd(t,e,n,s=Fg){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&Nu()&&gp(r),r}function vs(t,...e){t.slice().forEach(n=>{n(...e)})}const yO=t=>t();function Ul(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,s)=>t.set(s,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Hl(r)&&Hl(s)&&t.hasOwnProperty(n)&&!be(s)&&!tn(s)?t[n]=Ul(r,s):t[n]=s}return t}const vO=Symbol();function bO(t){return!Hl(t)||!t.hasOwnProperty(vO)}const{assign:gn}=Object;function AO(t){return!!(be(t)&&t.effect)}function TO(t,e,n,s){const{state:r,actions:i,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=r?r():{});const c=Dp(n.state.value[t]);return gn(c,i,Object.keys(o||{}).reduce((f,m)=>(f[m]=pi(ke(()=>{ma(n);const p=n._s.get(t);return o[m].call(p,p)})),f),{}))}return l=Mg(t,u,e,n,s,!0),l}function Mg(t,e,n={},s,r,i){let o;const a=gn({actions:{}},n),l={deep:!0};let u,c,f=[],m=[],p;const E=s.state.value[t];!i&&!E&&(s.state.value[t]={}),Ge({});let d;function y(v){let w;u=c=!1,typeof v=="function"?(v(s.state.value[t]),w={type:Mr.patchFunction,storeId:t,events:p}):(Ul(s.state.value[t],v),w={type:Mr.patchObject,payload:v,storeId:t,events:p});const k=d=Symbol();fr().then(()=>{d===k&&(u=!0)}),c=!0,vs(f,w,s.state.value[t])}const _=i?function(){const{state:w}=n,k=w?w():{};this.$patch(N=>{gn(N,k)})}:Fg;function h(){o.stop(),f=[],m=[],s._s.delete(t)}function b(v,w){return function(){ma(s);const k=Array.from(arguments),N=[],P=[];function R(W){N.push(W)}function B(W){P.push(W)}vs(m,{args:k,name:v,store:A,after:R,onError:B});let X;try{X=w.apply(this&&this.$id===t?this:A,k)}catch(W){throw vs(P,W),W}return X instanceof Promise?X.then(W=>(vs(N,W),W)).catch(W=>(vs(P,W),Promise.reject(W))):(vs(N,X),X)}}const g={_p:s,$id:t,$onAction:Pd.bind(null,m),$patch:y,$reset:_,$subscribe(v,w={}){const k=Pd(f,v,w.detached,()=>N()),N=o.run(()=>yn(()=>s.state.value[t],P=>{(w.flush==="sync"?c:u)&&v({storeId:t,type:Mr.direct,events:p},P)},gn({},l,w)));return k},$dispose:h},A=Dt(g);s._s.set(t,A);const S=s._a&&s._a.runWithContext||yO,O=s._e.run(()=>(o=ku(),S(()=>o.run(e))));for(const v in O){const w=O[v];if(be(w)&&!AO(w)||tn(w))i||(E&&bO(w)&&(be(w)?w.value=E[v]:Ul(w,E[v])),s.state.value[t][v]=w);else if(typeof w=="function"){const k=b(v,w);O[v]=k,a.actions[v]=w}}return gn(A,O),gn(Q(A),O),Object.defineProperty(A,"$state",{get:()=>s.state.value[t],set:v=>{y(w=>{gn(w,v)})}}),s._p.forEach(v=>{gn(A,o.run(()=>v({store:A,app:s._a,pinia:s,options:a})))}),E&&i&&n.hydrate&&n.hydrate(A.$state,E),u=!0,c=!0,A}function xg(t,e,n){let s,r;const i=typeof e=="function";typeof t=="string"?(s=t,r=i?n:e):(r=t,s=t.id);function o(a,l){const u=om();return a=a||(u?Fs(Lg,null):null),a&&ma(a),a=Rg,a._s.has(s)||(i?Mg(s,e,r,a):TO(s,r,a)),a._s.get(s)}return o.$id=s,o}function Ok(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(){return t(this.$pinia)[s]},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(){const r=t(this.$pinia),i=e[s];return typeof i=="function"?i.call(this,r):r[i]},n),{})}function kk(t,e){return Array.isArray(e)?e.reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[s](...r)},n),{}):Object.keys(e).reduce((n,s)=>(n[s]=function(...r){return t(this.$pinia)[e[s]](...r)},n),{})}const Bg=xg("error",{state:()=>({message:null,errors:{}})});/*! js-cookie v3.0.5 | MIT */function qi(t){for(var e=1;e"u")){o=qi({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=r+"="+t.write(i,r)+a}}function s(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;ast.get("/sanctum/csrf-cookie");st.interceptors.request.use(function(t){return Bg().$reset(),ql.get("XSRF-TOKEN")?t:CO().then(e=>t)},function(t){return Promise.reject(t)});st.interceptors.response.use(function(t){var e,n,s,r,i,o;return(((s=(n=(e=t==null?void 0:t.data)==null?void 0:e.data)==null?void 0:n.csrf_token)==null?void 0:s.length)>0||((o=(i=(r=t==null?void 0:t.data)==null?void 0:r.data)==null?void 0:i.token)==null?void 0:o.length)>0)&&ql.set("XSRF-TOKEN",t.data.data.csrf_token),t},function(t){switch(t.response.status){case 401:localStorage.removeItem("token"),window.location.reload();break;case 403:case 404:console.error("404");break;case 422:Bg().$state=t.response.data;break;default:console.log(t.response.data)}return Promise.reject(t)});function Fo(t){return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fo(t)}function ro(t,e){if(!t.vueAxiosInstalled){var n=$g(e)?kO(e):e;if(NO(n)){var s=PO(t);if(s){var r=s<3?wO:OO;Object.keys(n).forEach(function(i){r(t,i,n[i])}),t.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either or { : }")}}function wO(t,e,n){Object.defineProperty(t.prototype,e,{get:function(){return n}}),t[e]=n}function OO(t,e,n){t.config.globalProperties[e]=n,t[e]=n}function $g(t){return t&&typeof t.get=="function"&&typeof t.post=="function"}function kO(t){return{axios:t,$http:t}}function NO(t){return Fo(t)==="object"&&Object.keys(t).every(function(e){return $g(t[e])})}function PO(t){return t&&t.version&&Number(t.version.split(".")[0])}(typeof exports>"u"?"undefined":Fo(exports))=="object"?module.exports=ro:typeof define=="function"&&define.amd?define([],function(){return ro}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(ro,window.axios);const Ya=xg("auth",{state:()=>({loggedIn:!!localStorage.getItem("token"),user:null}),getters:{},actions:{async login(t){await st.get("sanctum/csrf-cookie");const e=(await st.post("api/login",t)).data;if(e){const n=`Bearer ${e.token}`;localStorage.setItem("token",n),st.defaults.headers.common.Authorization=n,await this.ftechUser()}},async logout(){(await st.post("api/logout")).data&&(localStorage.removeItem("token"),this.$reset())},async ftechUser(){this.user=(await st.get("api/me")).data,this.loggedIn=!0}}}),DO={install:({config:t})=>{t.globalProperties.$auth=Ya(),Ya().loggedIn&&Ya().ftechUser()}};function IO(t){return{all:t=t||new Map,on:function(e,n){var s=t.get(e);s?s.push(n):t.set(e,[n])},off:function(e,n){var s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var s=t.get(e);s&&s.slice().map(function(r){r(n)}),(s=t.get("*"))&&s.slice().map(function(r){r(e,n)})}}}const RO={install:(t,e)=>{t.config.globalProperties.$eventBus=IO()}},Ai={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},er={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},We={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},LO={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom"},Vg={dangerouslyHTMLString:!1,multiple:!0,position:Ai.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},FO={rtl:!1,newestOnTop:!1,toastClassName:""},jg={...Vg,...FO};({...Vg,type:We.DEFAULT});var fe=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(fe||{}),Kl=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(Kl||{});const MO={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},xO={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},BO={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},$O={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"};function Hg(t){let e=MO;if(!t||typeof t=="string")switch(t){case"flip":e=$O;break;case"zoom":e=BO;break;case"slide":e=xO;break}else e=t;return e}function VO(t){return t.containerId||String(t.position)}const ga="will-unmount";function jO(t=Ai.TOP_RIGHT){return!!document.querySelector(".".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(t))}function HO(t=Ai.TOP_RIGHT){return"".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(t)}function UO(t,e,n=!1){const s=["".concat(fe.CSS_NAMESPACE,"__toast-container"),"".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(t),n?"".concat(fe.CSS_NAMESPACE,"__toast-container--rtl"):null].filter(Boolean).join(" ");return Ms(e)?e({position:t,rtl:n,defaultClassName:s}):"".concat(s," ").concat(e||"")}function WO(t){var e;const{position:n,containerClassName:s,rtl:r=!1,style:i={}}=t,o=fe.CSS_NAMESPACE,a=HO(n),l=document.querySelector(".".concat(o)),u=document.querySelector(".".concat(a)),c=!!u&&!((e=u.className)!=null&&e.includes(ga)),f=l||document.createElement("div"),m=document.createElement("div");m.className=UO(n,s,r),m.dataset.testid="".concat(fe.CSS_NAMESPACE,"__toast-container--").concat(n),m.id=VO(t);for(const p in i)if(Object.prototype.hasOwnProperty.call(i,p)){const E=i[p];m.style[p]=E}return l||(f.className=fe.CSS_NAMESPACE,document.body.appendChild(f)),c||f.appendChild(m),m}function zl(t){var e,n,s;const r=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),i=document.getElementById(r);i&&i.removeEventListener("animationend",zl,!1);try{ei[r].unmount(),(s=document.getElementById(r))==null||s.remove(),delete ei[r],delete Re[r]}catch{}}const ei=Dt({});function qO(t,e){const n=document.getElementById(String(e));n&&(ei[n.id]=t)}function Gl(t,e=!0){const n=String(t);if(!ei[n])return;const s=document.getElementById(n);s&&s.classList.add(ga),e?(zO(t),s&&s.addEventListener("animationend",zl,!1)):zl(n),Wt.items=Wt.items.filter(r=>r.containerId!==t)}function KO(t){for(const e in ei)Gl(e,t);Wt.items=[]}function Ug(t,e){const n=document.getElementById(t.toastId);if(n){let s=t;s={...s,...Hg(s.transition)};const r=s.appendPosition?"".concat(s.exit,"--").concat(s.position):s.exit;n.className+=" ".concat(r),e&&e(n)}}function zO(t){for(const e in Re)if(e===t)for(const n of Re[e]||[])Ug(n)}function GO(t){const e=Ti().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function Sc(t){return document.getElementById(t)}function YO(t){const e=Sc(t.containerId);return e&&e.classList.contains(ga)}function Dd(t){var e;const n=Ut(t.content)?Q(t.content.props):null;return n??Q((e=t.data)!=null?e:{})}function XO(t){return t?Wt.items.filter(e=>e.containerId===t).length>0:Wt.items.length>0}function JO(){if(Wt.items.length>0){const t=Wt.items.shift();io(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const Re=Dt({}),Wt=Dt({items:[]});function Ti(){const t=Q(Re);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function ZO(t){return Ti().find(e=>e.toastId===t)}function io(t,e={}){if(YO(e)){const n=Sc(e.containerId);n&&n.addEventListener("animationend",Yl.bind(null,t,e),!1)}else Yl(t,e)}function Yl(t,e={}){const n=Sc(e.containerId);n&&n.removeEventListener("animationend",Yl.bind(null,t,e),!1);const s=Re[e.containerId]||[],r=s.length>0;if(!r&&!jO(e.position)){const i=WO(e),o=rc(_k,e);o.mount(i),qO(o,i.id)}r&&(e.position=s[0].position),fr(()=>{e.updateId?jt.update(e):jt.add(t,e)})}const jt={add(t,e){const{containerId:n=""}=e;n&&(Re[n]=Re[n]||[],Re[n].find(s=>s.toastId===e.toastId)||setTimeout(()=>{var s,r;e.newestOnTop?(s=Re[n])==null||s.unshift(e):(r=Re[n])==null||r.push(e),e.onOpen&&e.onOpen(Dd(e))},e.delay||0))},remove(t){if(t){const e=GO(t);if(e){const n=Re[e];let s=n.find(r=>r.toastId===t);Re[e]=n.filter(r=>r.toastId!==t),!Re[e].length&&!XO(e)&&Gl(e,!1),JO(),fr(()=>{s!=null&&s.onClose&&(s.onClose(Dd(s)),s=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){Re[e]=Re[e]||[];const n=Re[e].find(s=>s.toastId===t.toastId);n&&setTimeout(()=>{for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const r=t[s];n[s]=r}},t.delay||0)}},clear(t,e=!0){t?Gl(t,e):KO(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,s=document.getElementById(n);s&&(s.removeEventListener("animationend",jt.dismissCallback,!1),setTimeout(()=>{jt.remove(n)}))},dismiss(t){if(t){const e=Ti();for(const n of e)if(n.toastId===t){Ug(n,s=>{s.addEventListener("animationend",jt.dismissCallback,!1)});break}}}},Wg=Dt({}),Mo=Dt({});function qg(){return Math.random().toString(36).substring(2,9)}function QO(t){return typeof t=="number"&&!isNaN(t)}function Xl(t){return typeof t=="string"}function Ms(t){return typeof t=="function"}function _a(...t){return Kt(...t)}function oo(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function ek(t={}){Wg["".concat(fe.CSS_NAMESPACE,"-default-options")]=t}function tk(){return Wg["".concat(fe.CSS_NAMESPACE,"-default-options")]||jg}function nk(){return document.documentElement.classList.contains("dark")?"dark":"light"}var ao=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(ao||{});const Kg={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:Ai.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:er.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:We.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},sk={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:We.DEFAULT},theme:{type:String,required:!1,default:er.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},rk=hs({name:"ProgressBar",props:sk,setup(t,{attrs:e}){const n=Ge(),s=ke(()=>t.hide?"true":"false"),r=ke(()=>({...e.style||{},animationDuration:"".concat(t.autoClose===!0?5e3:t.autoClose,"ms"),animationPlayState:t.isRunning?"running":"paused",opacity:t.hide?0:1,transform:t.controlledProgress?"scaleX(".concat(t.progress,")"):"none"})),i=ke(()=>["".concat(fe.CSS_NAMESPACE,"__progress-bar"),t.controlledProgress?"".concat(fe.CSS_NAMESPACE,"__progress-bar--controlled"):"".concat(fe.CSS_NAMESPACE,"__progress-bar--animated"),"".concat(fe.CSS_NAMESPACE,"__progress-bar-theme--").concat(t.theme),"".concat(fe.CSS_NAMESPACE,"__progress-bar--").concat(t.type),t.rtl?"".concat(fe.CSS_NAMESPACE,"__progress-bar--rtl"):null].filter(Boolean).join(" ")),o=ke(()=>"".concat(i.value," ").concat((e==null?void 0:e.class)||"")),a=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),a())},u=ke(()=>t.controlledProgress?null:l),c=ke(()=>t.controlledProgress?l:null);return Nr(()=>{n.value&&(a(),n.value.onanimationend=u.value,n.value.ontransitionend=c.value)}),()=>te("div",{ref:n,role:"progressbar","aria-hidden":s.value,"aria-label":"notification timer",class:o.value,style:r.value},null)}}),ik=hs({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:er.AUTO},type:{type:String,required:!1,default:er.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>te("button",{class:"".concat(fe.CSS_NAMESPACE,"__close-button ").concat(fe.CSS_NAMESPACE,"__close-button--").concat(t.theme),type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[te("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[te("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),Ea=({theme:t,type:e,path:n,...s})=>te("svg",Kt({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":"var(--toastify-icon-color-".concat(e,")")},s),[te("path",{d:n},null)]);function ok(t){return te(Ea,Kt(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function ak(t){return te(Ea,Kt(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function lk(t){return te(Ea,Kt(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function uk(t){return te(Ea,Kt(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function ck(){return te("div",{class:"".concat(fe.CSS_NAMESPACE,"__spinner")},null)}const Jl={info:ak,warning:ok,success:lk,error:uk,spinner:ck},fk=t=>t in Jl;function dk({theme:t,type:e,isLoading:n,icon:s}){let r;const i={theme:t,type:e};return n?r=Jl.spinner():s===!1?r=void 0:oo(s)?r=Q(s):Ms(s)?r=s(i):Ut(s)?r=Nt(s,i):Xl(s)||QO(s)?r=s:fk(e)&&(r=Jl[e](i)),r}const hk=()=>{};function pk(t,e,n=fe.COLLAPSE_DURATION){const{scrollHeight:s,style:r}=t,i=n;requestAnimationFrame(()=>{r.minHeight="initial",r.height=s+"px",r.transition="all ".concat(i,"ms"),requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(e,i)})})}function mk(t){const e=Ge(!1),n=Ge(!1),s=Ge(!1),r=Ge(ao.Enter),i=Dt({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||fe.COLLAPSE_DURATION}),o=i.done||hk,a=ke(()=>i.appendPosition?"".concat(i.enter,"--").concat(i.position):i.enter),l=ke(()=>i.appendPosition?"".concat(i.exit,"--").concat(i.position):i.exit),u=ke(()=>t.pauseOnHover?{onMouseenter:y,onMouseleave:d}:{});function c(){const h=a.value.split(" ");m().addEventListener(Kl.ENTRANCE_ANIMATION_END,d,{once:!0});const b=A=>{const S=m();A.target===S&&(S.dispatchEvent(new Event(Kl.ENTRANCE_ANIMATION_END)),S.removeEventListener("animationend",b),S.removeEventListener("animationcancel",b),r.value===ao.Enter&&A.type!=="animationcancel"&&S.classList.remove(...h))},g=()=>{const A=m();A.classList.add(...h),A.addEventListener("animationend",b),A.addEventListener("animationcancel",b)};t.pauseOnFocusLoss&&p(),g()}function f(){if(!m())return;const h=()=>{const g=m();g.removeEventListener("animationend",h),i.collapse?pk(g,o,i.collapseDuration):o()},b=()=>{const g=m();r.value=ao.Exit,g&&(g.className+=" ".concat(l.value),g.addEventListener("animationend",h))};n.value||(s.value?h():setTimeout(b))}function m(){return t.toastRef.value}function p(){document.hasFocus()||y(),window.addEventListener("focus",d),window.addEventListener("blur",y)}function E(){window.removeEventListener("focus",d),window.removeEventListener("blur",y)}function d(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function y(){e.value=!1}function _(h){h&&(h.stopPropagation(),h.preventDefault()),n.value=!1}return Nr(f),Nr(()=>{const h=Ti();n.value=h.findIndex(b=>b.toastId===i.toastId)>-1}),Nr(()=>{t.isLoading!==void 0&&(t.loading.value?y():d())}),ps(c),dr(()=>{t.pauseOnFocusLoss&&E()}),{isIn:n,isRunning:e,hideToast:_,eventHandlers:u}}const gk=hs({name:"ToastItem",inheritAttrs:!1,props:Kg,setup(t){const e=Ge(),n=ke(()=>!!t.isLoading),s=ke(()=>t.progress!==void 0&&t.progress!==null),r=ke(()=>dk(t)),i=ke(()=>["".concat(fe.CSS_NAMESPACE,"__toast"),"".concat(fe.CSS_NAMESPACE,"__toast-theme--").concat(t.theme),"".concat(fe.CSS_NAMESPACE,"__toast--").concat(t.type),t.rtl?"".concat(fe.CSS_NAMESPACE,"__toast--rtl"):void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:a,hideToast:l,eventHandlers:u}=mk({toastRef:e,loading:n,done:()=>{jt.remove(t.toastId)},...Hg(t.transition),...t});return()=>te("div",Kt({id:t.toastId,class:i.value,style:t.toastStyle||{},ref:e,"data-testid":"toast-item-".concat(t.toastId),onClick:c=>{t.closeOnClick&&l(),t.onClick&&t.onClick(c)}},u.value),[te("div",{role:t.role,"data-testid":"toast-body",class:"".concat(fe.CSS_NAMESPACE,"__toast-body ").concat(t.bodyClassName||"")},[r.value!=null&&te("div",{"data-testid":"toast-icon-".concat(t.type),class:["".concat(fe.CSS_NAMESPACE,"__toast-icon"),t.isLoading?"":"".concat(fe.CSS_NAMESPACE,"--animate-icon ").concat(fe.CSS_NAMESPACE,"__zoom-enter")].join(" ")},[oo(r.value)?ws(Q(r.value),{theme:t.theme,type:t.type}):Ms(r.value)?r.value({theme:t.theme,type:t.type}):r.value]),te("div",{"data-testid":"toast-content"},[oo(t.content)?ws(Q(t.content),{toastProps:Q(t),closeToast:l,data:t.data}):Ms(t.content)?t.content({toastProps:Q(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?ws("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&te(ik,{theme:t.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),l()}},null),oo(t.closeButton)?ws(Q(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):Ms(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,te(rk,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:a.value,type:t.type,hide:t.hideProgressBar,isRunning:o.value,autoClose:t.autoClose,controlledProgress:s.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let xr=0;function zg(){typeof window>"u"||(xr&&window.cancelAnimationFrame(xr),xr=window.requestAnimationFrame(zg),Mo.lastUrl!==window.location.href&&(Mo.lastUrl=window.location.href,jt.clear()))}const _k=hs({name:"ToastifyContainer",inheritAttrs:!1,props:Kg,setup(t){const e=ke(()=>t.containerId),n=ke(()=>Re[e.value]||[]),s=ke(()=>n.value.filter(r=>r.position===t.position));return ps(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(zg)}),dr(()=>{typeof window<"u"&&xr&&(window.cancelAnimationFrame(xr),Mo.lastUrl="")}),()=>te(Pe,null,[s.value.map(r=>{const{toastId:i=""}=r;return te(gk,Kt({key:i},r),null)})])}});let Xa=!1;function Gg(){const t=[];return Ti().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(ga)&&t.push(e)}),t}function Ek(t){const e=Gg().length,n=t??0;return n>0&&e+Wt.items.length>=n}function yk(t){Ek(t.limit)&&!t.updateId&&Wt.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function Ln(t,e,n={}){if(Xa)return;n=_a(tk(),{type:e},Q(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=qg()),n={...n,content:t,containerId:n.containerId||String(n.position)};const s=Number(n==null?void 0:n.progress);return s<0&&(n.progress=0),s>1&&(n.progress=1),n.theme==="auto"&&(n.theme=nk()),yk(n),Mo.lastUrl=window.location.href,n.multiple?Wt.items.length?n.updateId&&io(t,n):io(t,n):(Xa=!0,Ee.clearAll(void 0,!1),setTimeout(()=>{io(t,n)},0),setTimeout(()=>{Xa=!1},390)),n.toastId}const Ee=(t,e)=>Ln(t,We.DEFAULT,e);Ee.info=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.INFO});Ee.error=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.ERROR});Ee.warning=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.WARNING});Ee.warn=Ee.warning;Ee.success=(t,e)=>Ln(t,We.DEFAULT,{...e,type:We.SUCCESS});Ee.loading=(t,e)=>Ln(t,We.DEFAULT,_a(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));Ee.dark=(t,e)=>Ln(t,We.DEFAULT,_a(e,{theme:er.DARK}));Ee.remove=t=>{t?jt.dismiss(t):jt.clear()};Ee.clearAll=(t,e)=>{jt.clear(t,e)};Ee.isActive=t=>{let e=!1;return e=Gg().findIndex(n=>n.toastId===t)>-1,e};Ee.update=(t,e={})=>{setTimeout(()=>{const n=ZO(t);if(n){const s=Q(n),{content:r}=s,i={...s,...e,toastId:e.toastId||t,updateId:qg()},o=i.render||r;delete i.render,Ln(o,i.type,i)}},0)};Ee.done=t=>{Ee.update(t,{isLoading:!1,progress:1})};Ee.promise=vk;function vk(t,{pending:e,error:n,success:s},r){var i,o,a;let l;const u={...r||{},autoClose:!1};e&&(l=Xl(e)?Ee.loading(e,u):Ee.loading(e.render,{...u,...e}));const c={autoClose:(i=r==null?void 0:r.autoClose)!=null?i:!0,closeOnClick:(o=r==null?void 0:r.closeOnClick)!=null?o:!0,closeButton:(a=r==null?void 0:r.autoClose)!=null?a:null,isLoading:void 0,draggable:null,delay:100},f=(p,E,d)=>{if(E==null){Ee.remove(l);return}const y={type:p,...c,...r,data:d},_=Xl(E)?{render:E}:E;return l?Ee.update(l,{...y,..._,isLoading:!1}):Ee(_.render,{...y,..._,isLoading:!1}),d},m=Ms(t)?t():t;return m.then(p=>{f("success",s,p)}).catch(p=>{f("error",n,p)}),m}Ee.POSITION=Ai;Ee.THEME=er;Ee.TYPE=We;Ee.TRANSITIONS=LO;const Yg={install(t,e={}){bk(e)}};typeof window<"u"&&(window.Vue3Toastify=Yg);function bk(t={}){const e=_a(jg,t);ek(e)}const Cc={url:"https://aibuddytool.com",port:null,defaults:{},routes:{"debugbar.openhandler":{uri:"_debugbar/open",methods:["GET","HEAD"]},"debugbar.clockwork":{uri:"_debugbar/clockwork/{id}",methods:["GET","HEAD"],parameters:["id"]},"debugbar.assets.css":{uri:"_debugbar/assets/stylesheets",methods:["GET","HEAD"]},"debugbar.assets.js":{uri:"_debugbar/assets/javascript",methods:["GET","HEAD"]},"debugbar.cache.delete":{uri:"_debugbar/cache/{key}/{tags?}",methods:["DELETE"],parameters:["key","tags"]},"horizon.stats.index":{uri:"chorizo/api/stats",methods:["GET","HEAD"]},"horizon.workload.index":{uri:"chorizo/api/workload",methods:["GET","HEAD"]},"horizon.masters.index":{uri:"chorizo/api/masters",methods:["GET","HEAD"]},"horizon.monitoring.index":{uri:"chorizo/api/monitoring",methods:["GET","HEAD"]},"horizon.monitoring.store":{uri:"chorizo/api/monitoring",methods:["POST"]},"horizon.monitoring-tag.paginate":{uri:"chorizo/api/monitoring/{tag}",methods:["GET","HEAD"],parameters:["tag"]},"horizon.monitoring-tag.destroy":{uri:"chorizo/api/monitoring/{tag}",methods:["DELETE"],wheres:{tag:".*"},parameters:["tag"]},"horizon.jobs-metrics.index":{uri:"chorizo/api/metrics/jobs",methods:["GET","HEAD"]},"horizon.jobs-metrics.show":{uri:"chorizo/api/metrics/jobs/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.queues-metrics.index":{uri:"chorizo/api/metrics/queues",methods:["GET","HEAD"]},"horizon.queues-metrics.show":{uri:"chorizo/api/metrics/queues/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.jobs-batches.index":{uri:"chorizo/api/batches",methods:["GET","HEAD"]},"horizon.jobs-batches.show":{uri:"chorizo/api/batches/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.jobs-batches.retry":{uri:"chorizo/api/batches/retry/{id}",methods:["POST"],parameters:["id"]},"horizon.pending-jobs.index":{uri:"chorizo/api/jobs/pending",methods:["GET","HEAD"]},"horizon.completed-jobs.index":{uri:"chorizo/api/jobs/completed",methods:["GET","HEAD"]},"horizon.silenced-jobs.index":{uri:"chorizo/api/jobs/silenced",methods:["GET","HEAD"]},"horizon.failed-jobs.index":{uri:"chorizo/api/jobs/failed",methods:["GET","HEAD"]},"horizon.failed-jobs.show":{uri:"chorizo/api/jobs/failed/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.retry-jobs.show":{uri:"chorizo/api/jobs/retry/{id}",methods:["POST"],parameters:["id"]},"horizon.jobs.show":{uri:"chorizo/api/jobs/{id}",methods:["GET","HEAD"],parameters:["id"]},"horizon.index":{uri:"chorizo/{view?}",methods:["GET","HEAD"],wheres:{view:"(.*)"},parameters:["view"]},"sanctum.csrf-cookie":{uri:"sanctum/csrf-cookie",methods:["GET","HEAD"]},"ignition.healthCheck":{uri:"_ignition/health-check",methods:["GET","HEAD"]},"ignition.executeSolution":{uri:"_ignition/execute-solution",methods:["POST"]},"ignition.updateConfig":{uri:"_ignition/update-config",methods:["POST"]},"api.auth.login.post":{uri:"api/login",methods:["POST"]},"api.auth.logout.post":{uri:"api/logout",methods:["POST"]},"api.admin.post.get":{uri:"api/admin/post/{id}",methods:["GET","HEAD"],parameters:["id"]},"api.admin.country-locales":{uri:"api/admin/country-locales",methods:["GET","HEAD"]},"api.admin.categories":{uri:"api/admin/categories/{country_locale_slug}",methods:["GET","HEAD"],parameters:["country_locale_slug"]},"api.admin.authors":{uri:"api/admin/authors",methods:["GET","HEAD"]},"api.admin.upload.cloud.image":{uri:"api/admin/image/upload",methods:["POST"]},"api.admin.post.upsert":{uri:"api/admin/admin/post/upsert",methods:["POST"]},"feeds.main":{uri:"posts.rss",methods:["GET","HEAD"]},login:{uri:"login",methods:["GET","HEAD"]},logout:{uri:"logout",methods:["POST"]},register:{uri:"register",methods:["GET","HEAD"]},"password.request":{uri:"password/reset",methods:["GET","HEAD"]},"password.email":{uri:"password/email",methods:["POST"]},"password.reset":{uri:"password/reset/{token}",methods:["GET","HEAD"],parameters:["token"]},"password.update":{uri:"password/reset",methods:["POST"]},"password.confirm":{uri:"password/confirm",methods:["GET","HEAD"]},"front.home":{uri:"/",methods:["GET","HEAD"]},"front.discover.home":{uri:"discover",methods:["GET","HEAD"]},"front.discover.category":{uri:"discover/{category_slug}",methods:["GET","HEAD"],parameters:["category_slug"]},"front.search.post":{uri:"ai-search",methods:["POST"]},"front.search.results":{uri:"ai-search/{query}",methods:["GET","HEAD"],parameters:["query"]},"front.aitool.show":{uri:"ai-tool/{ai_tool_slug}",methods:["GET","HEAD"],parameters:["ai_tool_slug"]},"front.terms":{uri:"terms",methods:["GET","HEAD"]},"front.privacy":{uri:"privacy",methods:["GET","HEAD"]},"front.disclaimer":{uri:"disclaimer",methods:["GET","HEAD"]},"ba.ai-tool-list":{uri:"ba/ai-tool-list",methods:["GET","HEAD"]},"ba.ai-tool-list.post":{uri:"ba/ai-tool-list/set-to-emailed",methods:["POST"]}}};typeof window<"u"&&typeof window.Ziggy<"u"&&Object.assign(Cc.routes,window.Ziggy.routes);var Ak=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nk(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zl={exports:{}},Ja,Id;function wc(){if(Id)return Ja;Id=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Ja={default:n.RFC3986,formatters:{RFC1738:function(s){return t.call(s,e,"+")},RFC3986:function(s){return String(s)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Ja}var Za,Rd;function Xg(){if(Rd)return Za;Rd=1;var t=wc(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s=function(){for(var d=[],y=0;y<256;++y)d.push("%"+((y<16?"0":"")+y.toString(16)).toUpperCase());return d}(),r=function(y){for(;y.length>1;){var _=y.pop(),h=_.obj[_.prop];if(n(h)){for(var b=[],g=0;g=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||g===t.RFC1738&&(v===40||v===41)){S+=A.charAt(O);continue}if(v<128){S=S+s[v];continue}if(v<2048){S=S+(s[192|v>>6]+s[128|v&63]);continue}if(v<55296||v>=57344){S=S+(s[224|v>>12]+s[128|v>>6&63]+s[128|v&63]);continue}O+=1,v=65536+((v&1023)<<10|A.charCodeAt(O)&1023),S+=s[240|v>>18]+s[128|v>>12&63]+s[128|v>>6&63]+s[128|v&63]}return S},c=function(y){for(var _=[{obj:{o:y},prop:"o"}],h=[],b=0;b<_.length;++b)for(var g=_[b],A=g.obj[g.prop],S=Object.keys(A),O=0;O"u")return se;var _e;if(_==="comma"&&r(R))_e=[{value:R.length>0?R.join(",")||null:void 0}];else if(r(A))_e=A;else{var dt=Object.keys(R);_e=S?dt.sort(S):dt}for(var Be=0;Be<_e.length;++Be){var ye=_e[Be],It=typeof ye=="object"&&typeof ye.value<"u"?ye.value:R[ye];if(!(b&&It===null)){var Rt=r(R)?typeof _=="function"?_(y,ye):y:y+(O?"."+ye:"["+ye+"]");a(se,E(It,Rt,_,h,b,g,A,S,O,v,w,k,N,P))}}return se},p=function(d){if(!d)return c;if(d.encoder!==null&&typeof d.encoder<"u"&&typeof d.encoder!="function")throw new TypeError("Encoder has to be a function.");var y=d.charset||c.charset;if(typeof d.charset<"u"&&d.charset!=="utf-8"&&d.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var _=e.default;if(typeof d.format<"u"){if(!n.call(e.formatters,d.format))throw new TypeError("Unknown format option provided.");_=d.format}var h=e.formatters[_],b=c.filter;return(typeof d.filter=="function"||r(d.filter))&&(b=d.filter),{addQueryPrefix:typeof d.addQueryPrefix=="boolean"?d.addQueryPrefix:c.addQueryPrefix,allowDots:typeof d.allowDots>"u"?c.allowDots:!!d.allowDots,charset:y,charsetSentinel:typeof d.charsetSentinel=="boolean"?d.charsetSentinel:c.charsetSentinel,delimiter:typeof d.delimiter>"u"?c.delimiter:d.delimiter,encode:typeof d.encode=="boolean"?d.encode:c.encode,encoder:typeof d.encoder=="function"?d.encoder:c.encoder,encodeValuesOnly:typeof d.encodeValuesOnly=="boolean"?d.encodeValuesOnly:c.encodeValuesOnly,filter:b,format:_,formatter:h,serializeDate:typeof d.serializeDate=="function"?d.serializeDate:c.serializeDate,skipNulls:typeof d.skipNulls=="boolean"?d.skipNulls:c.skipNulls,sort:typeof d.sort=="function"?d.sort:null,strictNullHandling:typeof d.strictNullHandling=="boolean"?d.strictNullHandling:c.strictNullHandling}};return Qa=function(E,d){var y=E,_=p(d),h,b;typeof _.filter=="function"?(b=_.filter,y=b("",y)):r(_.filter)&&(b=_.filter,h=b);var g=[];if(typeof y!="object"||y===null)return"";var A;d&&d.arrayFormat in s?A=d.arrayFormat:d&&"indices"in d?A=d.indices?"indices":"repeat":A="indices";var S=s[A];h||(h=Object.keys(y)),_.sort&&h.sort(_.sort);for(var O=0;O0?k+w:""},Qa}var el,Fd;function Sk(){if(Fd)return el;Fd=1;var t=Xg(),e=Object.prototype.hasOwnProperty,n=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},r=function(m){return m.replace(/&#(\d+);/g,function(p,E){return String.fromCharCode(parseInt(E,10))})},i=function(m,p){return m&&typeof m=="string"&&p.comma&&m.indexOf(",")>-1?m.split(","):m},o="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",l=function(p,E){var d={},y=E.ignoreQueryPrefix?p.replace(/^\?/,""):p,_=E.parameterLimit===1/0?void 0:E.parameterLimit,h=y.split(E.delimiter,_),b=-1,g,A=E.charset;if(E.charsetSentinel)for(g=0;g-1&&(k=n(k)?[k]:k),e.call(d,w)?d[w]=t.combine(d[w],k):d[w]=k}return d},u=function(m,p,E,d){for(var y=d?p:i(p,E),_=m.length-1;_>=0;--_){var h,b=m[_];if(b==="[]"&&E.parseArrays)h=[].concat(y);else{h=E.plainObjects?Object.create(null):{};var g=b.charAt(0)==="["&&b.charAt(b.length-1)==="]"?b.slice(1,-1):b,A=parseInt(g,10);!E.parseArrays&&g===""?h={0:y}:!isNaN(A)&&b!==g&&String(A)===g&&A>=0&&E.parseArrays&&A<=E.arrayLimit?(h=[],h[A]=y):g!=="__proto__"&&(h[g]=y)}y=h}return y},c=function(p,E,d,y){if(p){var _=d.allowDots?p.replace(/\.([^.[]+)/g,"[$1]"):p,h=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,g=d.depth>0&&h.exec(_),A=g?_.slice(0,g.index):_,S=[];if(A){if(!d.plainObjects&&e.call(Object.prototype,A)&&!d.allowPrototypes)return;S.push(A)}for(var O=0;d.depth>0&&(g=b.exec(_))!==null&&O"u"?s.charset:p.charset;return{allowDots:typeof p.allowDots>"u"?s.allowDots:!!p.allowDots,allowPrototypes:typeof p.allowPrototypes=="boolean"?p.allowPrototypes:s.allowPrototypes,arrayLimit:typeof p.arrayLimit=="number"?p.arrayLimit:s.arrayLimit,charset:E,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:s.charsetSentinel,comma:typeof p.comma=="boolean"?p.comma:s.comma,decoder:typeof p.decoder=="function"?p.decoder:s.decoder,delimiter:typeof p.delimiter=="string"||t.isRegExp(p.delimiter)?p.delimiter:s.delimiter,depth:typeof p.depth=="number"||p.depth===!1?+p.depth:s.depth,ignoreQueryPrefix:p.ignoreQueryPrefix===!0,interpretNumericEntities:typeof p.interpretNumericEntities=="boolean"?p.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:typeof p.parameterLimit=="number"?p.parameterLimit:s.parameterLimit,parseArrays:p.parseArrays!==!1,plainObjects:typeof p.plainObjects=="boolean"?p.plainObjects:s.plainObjects,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:s.strictNullHandling}};return el=function(m,p){var E=f(p);if(m===""||m===null||typeof m>"u")return E.plainObjects?Object.create(null):{};for(var d=typeof m=="string"?l(m,E):m,y=E.plainObjects?Object.create(null):{},_=Object.keys(d),h=0;h<_.length;++h){var b=_[h],g=c(b,d[b],E,typeof m=="string");y=t.merge(y,g,E)}return t.compact(y)},el}var tl,Md;function Ck(){if(Md)return tl;Md=1;var t=Tk(),e=Sk(),n=wc();return tl={formats:n,parse:e,stringify:t},tl}(function(t,e){(function(n,s){s(e,Ck())})(Ak,function(n,s){function r(p,E){for(var d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct.bind():function(y,_,h){var b=[null];b.push.apply(b,_);var g=new(Function.bind.apply(y,b));return h&&l(g,h.prototype),g},u.apply(null,arguments)}function c(p){var E=typeof Map=="function"?new Map:void 0;return c=function(d){if(d===null||Function.toString.call(d).indexOf("[native code]")===-1)return d;if(typeof d!="function")throw new TypeError("Super expression must either be null or a function");if(E!==void 0){if(E.has(d))return E.get(d);E.set(d,y)}function y(){return u(d,arguments,a(this).constructor)}return y.prototype=Object.create(d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),l(y,d)},c(p)}var f=function(){function p(d,y,_){var h,b;this.name=d,this.definition=y,this.bindings=(h=y.bindings)!=null?h:{},this.wheres=(b=y.wheres)!=null?b:{},this.config=_}var E=p.prototype;return E.matchesUrl=function(d){var y=this;if(!this.definition.methods.includes("GET"))return!1;var _=this.template.replace(/(\/?){([^}?]*)(\??)}/g,function(O,v,w,k){var N,P="(?<"+w+">"+(((N=y.wheres[w])==null?void 0:N.replace(/(^\^)|(\$$)/g,""))||"[^/?]+")+")";return k?"("+v+P+")?":""+v+P}).replace(/^\w+:\/\//,""),h=d.replace(/^\w+:\/\//,"").split("?"),b=h[0],g=h[1],A=new RegExp("^"+_+"/?$").exec(b);if(A){for(var S in A.groups)A.groups[S]=typeof A.groups[S]=="string"?decodeURIComponent(A.groups[S]):A.groups[S];return{params:A.groups,query:s.parse(g)}}return!1},E.compile=function(d){var y=this,_=this.parameterSegments;return _.length?this.template.replace(/{([^}?]+)(\??)}/g,function(h,b,g){var A;if(!g&&[null,void 0].includes(d[b]))throw new Error("Ziggy error: '"+b+"' parameter is required for route '"+y.name+"'.");if(y.wheres[b]){var S,O;if(!new RegExp("^"+(g?"("+y.wheres[b]+")?":y.wheres[b])+"$").test((S=d[b])!=null?S:""))throw new Error("Ziggy error: '"+b+"' parameter does not match required format '"+y.wheres[b]+"' for route '"+y.name+"'.");if(_[_.length-1].name===b)return encodeURIComponent((O=d[b])!=null?O:"").replace(/%2F/g,"/")}return encodeURIComponent((A=d[b])!=null?A:"")}).replace(this.origin+"//",this.origin+"/").replace(/\/+$/,""):this.template},i(p,[{key:"template",get:function(){return(this.origin+"/"+this.definition.uri).replace(/\/+$/,"")}},{key:"origin",get:function(){return this.config.absolute?this.definition.domain?""+this.config.url.match(/^\w+:\/\//)[0]+this.definition.domain+(this.config.port?":"+this.config.port:""):this.config.url:""}},{key:"parameterSegments",get:function(){var d,y;return(d=(y=this.template.match(/{[^}?]+\??}/g))==null?void 0:y.map(function(_){return{name:_.replace(/{|\??}/g,""),required:!/\?}$/.test(_)}}))!=null?d:[]}}]),p}(),m=function(p){var E,d;function y(h,b,g,A){var S;if(g===void 0&&(g=!0),(S=p.call(this)||this).t=A??(typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy),S.t=o({},S.t,{absolute:g}),h){if(!S.t.routes[h])throw new Error("Ziggy error: route '"+h+"' is not in the route list.");S.i=new f(h,S.t.routes[h],S.t),S.u=S.o(b)}return S}d=p,(E=y).prototype=Object.create(d.prototype),E.prototype.constructor=E,l(E,d);var _=y.prototype;return _.toString=function(){var h=this,b=Object.keys(this.u).filter(function(g){return!h.i.parameterSegments.some(function(A){return A.name===g})}).filter(function(g){return g!=="_query"}).reduce(function(g,A){var S;return o({},g,((S={})[A]=h.u[A],S))},{});return this.i.compile(this.u)+s.stringify(o({},b,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:function(g,A){return typeof g=="boolean"?Number(g):A(g)}})},_.l=function(h){var b=this;h?this.t.absolute&&h.startsWith("/")&&(h=this.h().host+h):h=this.v();var g={},A=Object.entries(this.t.routes).find(function(S){return g=new f(S[0],S[1],b.t).matchesUrl(h)})||[void 0,void 0];return o({name:A[0]},g,{route:A[1]})},_.v=function(){var h=this.h(),b=h.pathname,g=h.search;return(this.t.absolute?h.host+b:b.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+g},_.current=function(h,b){var g=this.l(),A=g.name,S=g.params,O=g.query,v=g.route;if(!h)return A;var w=new RegExp("^"+h.replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(A);if([null,void 0].includes(b)||!w)return w;var k=new f(A,v,this.t);b=this.o(b,k);var N=o({},S,O);return!(!Object.values(b).every(function(P){return!P})||Object.values(N).some(function(P){return P!==void 0}))||Object.entries(b).every(function(P){return N[P[0]]==P[1]})},_.h=function(){var h,b,g,A,S,O,v=typeof window<"u"?window.location:{},w=v.host,k=v.pathname,N=v.search;return{host:(h=(b=this.t.location)==null?void 0:b.host)!=null?h:w===void 0?"":w,pathname:(g=(A=this.t.location)==null?void 0:A.pathname)!=null?g:k===void 0?"":k,search:(S=(O=this.t.location)==null?void 0:O.search)!=null?S:N===void 0?"":N}},_.has=function(h){return Object.keys(this.t.routes).includes(h)},_.o=function(h,b){var g=this;h===void 0&&(h={}),b===void 0&&(b=this.i),h!=null||(h={}),h=["string","number"].includes(typeof h)?[h]:h;var A=b.parameterSegments.filter(function(O){return!g.t.defaults[O.name]});if(Array.isArray(h))h=h.reduce(function(O,v,w){var k,N;return o({},O,A[w]?((k={})[A[w].name]=v,k):typeof v=="object"?v:((N={})[v]="",N))},{});else if(A.length===1&&!h[A[0].name]&&(h.hasOwnProperty(Object.values(b.bindings)[0])||h.hasOwnProperty("id"))){var S;(S={})[A[0].name]=h,h=S}return o({},this.p(b),this.g(h,b))},_.p=function(h){var b=this;return h.parameterSegments.filter(function(g){return b.t.defaults[g.name]}).reduce(function(g,A,S){var O,v=A.name;return o({},g,((O={})[v]=b.t.defaults[v],O))},{})},_.g=function(h,b){var g=b.bindings,A=b.parameterSegments;return Object.entries(h).reduce(function(S,O){var v,w,k=O[0],N=O[1];if(!N||typeof N!="object"||Array.isArray(N)||!A.some(function(P){return P.name===k}))return o({},S,((w={})[k]=N,w));if(!N.hasOwnProperty(g[k])){if(!N.hasOwnProperty("id"))throw new Error("Ziggy error: object passed as '"+k+"' parameter is missing route model binding key '"+g[k]+"'.");g[k]="id"}return o({},S,((v={})[k]=N[g[k]],v))},{})},_.valueOf=function(){return this.toString()},_.check=function(h){return this.has(h)},i(y,[{key:"params",get:function(){var h=this.l();return o({},h.params,h.query)}}]),y}(c(String));n.ZiggyVue={install:function(p,E){var d=function(y,_,h,b){return b===void 0&&(b=E),function(g,A,S,O){var v=new m(g,A,S,O);return g?v.toString():v}(y,_,h,b)};p.mixin({methods:{route:d}}),parseInt(p.version)>2&&p.provide("route",d)}}})})(Zl,Zl.exports);var wk=Zl.exports;const Fn=rc({FrontApp:gO}),Jg=Object.assign({"/resources/js/vue/GetEmbedCode.vue":()=>mr(()=>import("./GetEmbedCode-6f92c617.js"),[]),"/resources/js/vue/NativeImageBlock.vue":()=>mr(()=>import("./NativeImageBlock-68fd4e62.js").then(t=>t.N),["assets/NativeImageBlock-68fd4e62.js","assets/NativeImageBlock-e3b0c442.css"]),"/resources/js/vue/PostEditor.vue":()=>mr(()=>import("./PostEditor-404ecaec.js"),["assets/PostEditor-404ecaec.js","assets/VueEditorJs-04c9fa58.js","assets/NativeImageBlock-68fd4e62.js","assets/NativeImageBlock-e3b0c442.css","assets/bundle-84836216.js","assets/bundle-1ccfe0bb.js","assets/PostEditor-8d534a4a.css"]),"/resources/js/vue/ToastMessage.vue":()=>mr(()=>import("./ToastMessage-35fcfb39.js"),[]),"/resources/js/vue/VueEditorJs.vue":()=>mr(()=>import("./VueEditorJs-04c9fa58.js"),[])});console.log(Jg);Fn.use(EO());Fn.use(ro,st);Fn.use(DO);Fn.use(RO);Fn.use(Yg);Fn.use(wk.ZiggyVue,Cc);window.Ziggy=Cc;Object.entries({...Jg}).forEach(([t,e])=>{const n=t.split("/").pop().replace(/\.\w+$/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();Fn.component(n,Wp(e))});Fn.mount("#app");export{fS as $,Xu as A,AC as B,LS as C,di as D,g1 as E,p1 as F,Pe as G,fi as H,Zu as I,pT as J,tc as K,fr as L,OS as M,Um as N,Yp as O,Nu as P,gp as Q,Ok as R,kk as S,EC as T,RS as U,To as V,nc as W,bC as X,sc as Y,Ck as Z,hO as _,Ju as a,dS as a0,mr as a1,st as b,Em as c,xg as d,Ge as e,hs as f,Nk as g,ps as h,dr as i,ke as j,te as k,Ee as l,xS as m,MS as n,_i as o,Vu as p,BS as q,Dt as r,rT as s,tS as t,GS as u,vm as v,yn as w,Mu as x,Kt as y,be as z}; diff --git a/public/build/assets/app-front-b9536f4d.js.gz b/public/build/assets/app-front-b9536f4d.js.gz new file mode 100644 index 0000000..e907fb5 Binary files /dev/null and b/public/build/assets/app-front-b9536f4d.js.gz differ diff --git a/public/build/assets/app-front-d6902e40.js.gz b/public/build/assets/app-front-d6902e40.js.gz deleted file mode 100644 index f73e552..0000000 Binary files a/public/build/assets/app-front-d6902e40.js.gz and /dev/null differ diff --git a/public/build/assets/app-front-f0fa37a6.css.gz b/public/build/assets/app-front-f0fa37a6.css.gz index 3bbf8b9..13000cc 100644 Binary files a/public/build/assets/app-front-f0fa37a6.css.gz and b/public/build/assets/app-front-f0fa37a6.css.gz differ diff --git a/public/build/assets/bundle-7ca97fea.js b/public/build/assets/bundle-1ccfe0bb.js similarity index 99% rename from public/build/assets/bundle-7ca97fea.js rename to public/build/assets/bundle-1ccfe0bb.js index 3f2cdf8..bfd2bb6 100644 --- a/public/build/assets/bundle-7ca97fea.js +++ b/public/build/assets/bundle-1ccfe0bb.js @@ -1,4 +1,4 @@ -import{g as N}from"./app-front-d6902e40.js";function P(x,H){for(var g=0;gb[l]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(x,H){(function(g,b){x.exports=b()})(window,function(){return function(g){var b={};function l(n){if(b[n])return b[n].exports;var i=b[n]={i:n,l:!1,exports:{}};return g[n].call(i.exports,i,i.exports,l),i.l=!0,i.exports}return l.m=g,l.c=b,l.d=function(n,i,h){l.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:h})},l.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,i){if(1&i&&(n=l(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var h=Object.create(null);if(l.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var m in n)l.d(h,m,(function(f){return n[f]}).bind(null,m));return h},l.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(i,"a",i),i},l.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},l.p="/",l(l.s=5)}([function(g,b,l){var n=l(1);typeof n=="string"&&(n=[[g.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};l(3)(n,i),n.locals&&(g.exports=n.locals)},function(g,b,l){(g.exports=l(2)(!1)).push([g.i,`/** +import{g as N}from"./app-front-b9536f4d.js";function P(x,H){for(var g=0;gb[l]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(x,H){(function(g,b){x.exports=b()})(window,function(){return function(g){var b={};function l(n){if(b[n])return b[n].exports;var i=b[n]={i:n,l:!1,exports:{}};return g[n].call(i.exports,i,i.exports,l),i.l=!0,i.exports}return l.m=g,l.c=b,l.d=function(n,i,h){l.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:h})},l.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,i){if(1&i&&(n=l(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var h=Object.create(null);if(l.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var m in n)l.d(h,m,(function(f){return n[f]}).bind(null,m));return h},l.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(i,"a",i),i},l.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},l.p="/",l(l.s=5)}([function(g,b,l){var n=l(1);typeof n=="string"&&(n=[[g.i,n,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};l(3)(n,i),n.locals&&(g.exports=n.locals)},function(g,b,l){(g.exports=l(2)(!1)).push([g.i,`/** * Plugin styles */ .ce-header { diff --git a/public/build/assets/bundle-1ccfe0bb.js.gz b/public/build/assets/bundle-1ccfe0bb.js.gz new file mode 100644 index 0000000..1e85e4e Binary files /dev/null and b/public/build/assets/bundle-1ccfe0bb.js.gz differ diff --git a/public/build/assets/bundle-7ca97fea.js.gz b/public/build/assets/bundle-7ca97fea.js.gz deleted file mode 100644 index 39120ff..0000000 Binary files a/public/build/assets/bundle-7ca97fea.js.gz and /dev/null differ diff --git a/public/build/assets/bundle-f4b2cd77.js b/public/build/assets/bundle-84836216.js similarity index 99% rename from public/build/assets/bundle-f4b2cd77.js rename to public/build/assets/bundle-84836216.js index 10d75a9..f33a38e 100644 --- a/public/build/assets/bundle-f4b2cd77.js +++ b/public/build/assets/bundle-84836216.js @@ -1,4 +1,4 @@ -import{g as E}from"./app-front-d6902e40.js";function P(_,j){for(var v=0;vp[c]})}}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(_,j){(function(v,p){_.exports=p()})(window,function(){return function(v){var p={};function c(o){if(p[o])return p[o].exports;var l=p[o]={i:o,l:!1,exports:{}};return v[o].call(l.exports,l,l.exports,c),l.l=!0,l.exports}return c.m=v,c.c=p,c.d=function(o,l,d){c.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:d})},c.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},c.t=function(o,l){if(1&l&&(o=c(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var d=Object.create(null);if(c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var f in o)c.d(d,f,(function(b){return o[b]}).bind(null,f));return d},c.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return c.d(l,"a",l),l},c.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},c.p="/",c(c.s=4)}([function(v,p,c){var o=c(1),l=c(2);typeof(l=l.__esModule?l.default:l)=="string"&&(l=[[v.i,l,""]]);var d={insert:"head",singleton:!1};o(l,d),v.exports=l.locals||{}},function(v,p,c){var o,l=function(){return o===void 0&&(o=!!(window&&document&&document.all&&!window.atob)),o},d=function(){var r={};return function(i){if(r[i]===void 0){var s=document.querySelector(i);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch{s=null}r[i]=s}return r[i]}}(),f=[];function b(r){for(var i=-1,s=0;sp[c]})}}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(_,j){(function(v,p){_.exports=p()})(window,function(){return function(v){var p={};function c(o){if(p[o])return p[o].exports;var l=p[o]={i:o,l:!1,exports:{}};return v[o].call(l.exports,l,l.exports,c),l.l=!0,l.exports}return c.m=v,c.c=p,c.d=function(o,l,d){c.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:d})},c.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},c.t=function(o,l){if(1&l&&(o=c(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var d=Object.create(null);if(c.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var f in o)c.d(d,f,(function(b){return o[b]}).bind(null,f));return d},c.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return c.d(l,"a",l),l},c.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},c.p="/",c(c.s=4)}([function(v,p,c){var o=c(1),l=c(2);typeof(l=l.__esModule?l.default:l)=="string"&&(l=[[v.i,l,""]]);var d={insert:"head",singleton:!1};o(l,d),v.exports=l.locals||{}},function(v,p,c){var o,l=function(){return o===void 0&&(o=!!(window&&document&&document.all&&!window.atob)),o},d=function(){var r={};return function(i){if(r[i]===void 0){var s=document.querySelector(i);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch{s=null}r[i]=s}return r[i]}}(),f=[];function b(r){for(var i=-1,s=0;s