1import{_ as m,a as p,b as S,c as k}from"./AddToHomeScreen.CqBC5UC6.js";import{_,a as C,b as L}from"./safariAddToHomeScreen.CwtSNfkW.js";import{_ as b}from"./icon.nwqz69NR.js";import{a as y,o,c as a,b as t,F as i,q as f,x,t as c,z as h,g as w,n as v}from"./entry.BXoBKzgO.js";const U={name:"NewIOSAddToHomeScreen",props:{url:{type:String,default:"https://www.gitori.com"}},data(){return{showSuccess:!1,steps:[{number:1,title:"Copy Gitori's URL"},{number:2,title:"Open Gitori in Safari"},{number:3,title:"Open Safari's menu"},{number:4,title:"Tap the Share menu item"},{number:5,title:"Add to Home Screen"},{number:6,title:"You're all set!"}]}},methods:{copyURL(){const r=this.url;navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(r).then(()=>{this.showSuccessMessage()}).catch(()=>{this.fallbackCopyText(r)}):this.fallbackCopyText(r)},fallbackCopyText(r){const e=document.createElement("textarea");e.value=r,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy"),this.showSuccessMessage()}catch(l){console.error("Copy failed:",l)}document.body.removeChild(e)},showSuccessMessage(){this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},3e3)}}},T={class:"p-6"},R={class:"flex items-center mb-4"},$={class:"inline-flex items-center justify-center w-7 h-7 bg-white/30 text-white rounded-full text-base font-semibold mr-3 shadow-md"},j={class:"text-base font-medium text-white"},A={class:"ml-10"};function G(r,e,l,g,n,d){return o(),a("div",null,[t("div",T,[(o(!0),a(i,null,f(n.steps,s=>(o(),a("div",{key:s.number,class:"mb-8 opacity-0 animate-fadeInUp",style:x({animationDelay:`${s.number*.1}s`})},[t("div",R,[t("div",$,c(s.number),1),t("div",j,c(s.title),1)]),t("div",A,[s.number===1?(o(),a(i,{key:0},[e[1]||(e[1]=t("p",{class:"text-white opacity-80 text-base mb-4"},"Click the button below to copy the URL to your clipboard",-1)),t("button",{class:"bg-gradient-to-br from-rose-500 to-rose-600 border-none text-white py-3 px-6 rounded-xl text-base font-medium cursor-pointer w-full transition shadow-lg hover:-translate-y-0.5 hover:shadow-xl active:translate-y-0",onClick:e[0]||(e[0]=(...u)=>d.copyURL&&d.copyURL(...u))},"Copy URL")],64)):s.number===2?(o(),a(i,{key:1},[e[2]||(e[2]=h('<p class="text-white opacity-80 mb-4" data-v-f446ea84>Open Safari and paste the URL you copied in the address bar and press return</p><div class="bg-white/5 rounded-xl p-5 text-center border border-white/10" data-v-f446ea84><div class="flex w-full justify-center" data-v-f446ea84><div class="flex flex-col gap-4" data-v-f446ea84><div class="w-full flex justify-center" data-v-f446ea84><img class="w-36 rounded-xl" src="'+m+'" alt="" data-v-f446ea84></div><img class="w-72" src="'+p+'" alt="" data-v-f446ea84></div></div></div>',2))],64)):s.number===3?(o(),a(i,{key:2},[e[3]||(e[3]=t("p",{class:"text-white opacity-80 mb-4"},"Tap the ... icon in Safari's toolbar",-1)),e[4]||(e[4]=t("div",{class:"bg-white/5 rounded-xl p-5 text-center border border-white/10"},[t("img",{class:"w-72",src:_,alt:""})],-1))],64)):s.number===4?(o(),a(i,{key:3},[e[5]||(e[5]=t("p",{class:"text-white opacity-80 mb-4"},"Look for the share icon in Safari's toolbar",-1)),e[6]||(e[6]=t("div",{class:"bg-white/5 rounded-xl p-5 text-center border border-white/10"},[t("img",{class:"w-72",src:C,alt:""})],-1))],64)):s.number===5?(o(),a(i,{key:4},[e[7]||(e[7]=t("p",{class:"text-white opacity-80 mb-4"},'Select "Add to Home Screen" from the share menu',-1)),e[8]||(e[8]=t("img",{class:"w-64",src:L,alt:""},null,-1))],64)):s.number===6?(o(),a(i,{key:5},[e[9]||(e[9]=t("p",{class:"text-white opacity-80 mb-4"},"And that's it. Now you should have a Gitori icon on your Home Screen just like an app installed from an app store",-1)),e[10]||(e[10]=t("div",{class:"flex justify-center mt-4"},[t("img",{class:"w-20 rounded-lg",src:b,alt:"Gitori Icon"})],-1))],64)):w("",!0)])],4))),128))]),t("div",{class:v(["fixed top-5 right-5 bg-green-500 text-white px-4 py-2 rounded-lg font-bold shadow-lg text-base opacity-0 translate-y-[-20px] transition-all duration-300 z-50",{"opacity-100 translate-y-0":n.showSuccess}]),id:"successMessage"}," URL copied to clipboard! â ",2)])}const Y=y(U,[["render",G],["__scopeId","data-v-f446ea84"]]),H={name:"OldIOSAddToHomeScreen",props:{url:{type:String,default:"https://www.gitori.com"}},data(){return{showSuccess:!1,steps:[{number:1,title:"Copy Gitori's URL"},{number:2,title:"Open Gitori in Safari"},{number:3,title:"Tap the Share button"},{number:4,title:"Add to Home Screen"},{number:5,title:"You're all set!"}]}},methods:{copyURL(){const r=this.url;navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(r).then(()=>{this.showSuccessMessage()}).catch(()=>{this.fallbackCopyText(r)}):this.fallbackCopyText(r)},fallbackCopyText(r){const e=document.createElement("textarea");e.value=r,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy"),this.showSuccessMessage()}catch(l){console.error("Copy failed:",l)}document.body.removeChild(e)},showSuccessMessage(){this.showSuccess=!0,setTimeout(()=>{this.showSuccess=!1},3e3)}}},I={class:"p-6"},M={class:"flex items-center mb-4"},O={class:"inline-flex items-center justify-center w-7 h-7 bg-white/30 text-white rounded-full text-base font-semibold mr-3 shadow-md"},N={class:"text-base font-medium text-white"},z={class:"ml-10"};function B(r,e,l,g,n,d){return o(),a("div",null,[t("div",I,[(o(!0),a(i,null,f(n.steps,s=>(o(),a("div",{key:s.number,class:"mb-8 opacity-0 animate-fadeInUp",style:x({animationDelay:`${s.number*.1}s`})},[t("div",M,[t("div",O,c(s.number),1),t("div",N,c(s.title),1)]),t("div",z,[s.number===1?(o(),a(i,{key:0},[e[1]||(e[1]=t("p",{class:"text-white opacity-80 text-base mb-4"},"Click the button below to copy the URL to your clipboard",-1)),t("button",{class:"bg-gradient-to-br from-rose-500 to-rose-600 border-none text-white py-3 px-6 rounded-xl text-base font-medium cursor-pointer w-full transition shadow-lg hover:-translate-y-0.5 hover:shadow-xl active:translate-y-0",onClick:e[0]||(e[0]=(...u)=>d.copyURL&&d.copyURL(...u))},"Copy URL")],64)):s.number===2?(o(),a(i,{key:1},[e[2]||(e[2]=h('<p class="text-white opacity-80 mb-4" data-v-9061bd9a>Open Safari and paste the URL you copied in the address bar and press return</p><div class="bg-white/5 rounded-xl p-5 text-center border border-white/10" data-v-9061bd9a><div class="flex w-full justify-center" data-v-9061bd9a><div class="flex flex-col gap-4" data-v-9061bd9a><div class="w-full flex justify-center" data-v-9061bd9a><img class="w-36 rounded-xl" src="'+m+'" alt="" data-v-9061bd9a></div><img class="w-72" src="'+p+'" alt="" data-v-9061bd9a></div></div></div>',2))],64)):s.number===3?(o(),a(i,{key:2},[e[3]||(e[3]=t("p",{class:"text-white opacity-80 mb-4"},"Look for the share icon in Safari's toolbar",-1)),e[4]||(e[4]=t("div",{class:"bg-white/5 rounded-xl p-5 text-center border border-white/10"},[t("img",{class:"w-72",src:S,alt:""})],-1))],64)):s.number===4?(o(),a(i,{key:3},[e[5]||(e[5]=t("p",{class:"text-white opacity-80 mb-4"},'Select "Add to Home Screen" from the share menu',-1)),e[6]||(e[6]=t("img",{class:"w-64",src:k,alt:""},null,-1))],64)):s.number===5?(o(),a(i,{key:4},[e[7]||(e[7]=t("p",{class:"text-white opacity-80 mb-4"},"And that's it. Now you should have a Gitori icon on your Home Screen just like an app installed from an app store",-1)),e[8]||(e[8]=t("div",{class:"flex justify-center mt-4"},[t("img",{class:"w-20 rounded-lg",src:b,alt:"Gitori Icon"})],-1))],64)):w("",!0)])],4))),128))]),t("div",{class:v(["fixed top-5 right-5 bg-green-500 text-white px-4 py-2 rounded-lg font-bold shadow-lg text-base opacity-0 translate-y-[-20px] transition-all duration-300 z-50",{"opacity-100 translate-y-0":n.showSuccess}]),id:"successMessage"}," URL copied to clipboard! â ",2)])}const q=y(H,[["render",B],["__scopeId","data-v-9061bd9a"]]);export{Y as _,q as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.