import{c as A,o as u,w as I,a as h,F as x,r as N,n as U,b as o,t as b,T as B,d as L,e as g,f as F,g as C,h as E,i as M,j as f,v as y,k as V,l as H,m as R,p as S}from"./vue-vendor.BKvPJiPW.js";import{a as p}from"./axios-vendor.B9ygI19o.js";import{M as O}from"./frontend-templates.BhTenXHY.js";import{U as j}from"./frontend-components-large.D6ajlMg-.js";const D=(e,t)=>{const i=e.__vccOpts||e;for(const[r,s]of t)i[r]=s;return i},q={name:"Toast",data(){return{toasts:[]}},methods:{show(e,t="success"){const i=Date.now()+Math.random(),r={id:i,message:e,type:t};this.toasts.push(r),setTimeout(()=>{this.removeToast(i)},5e3)},removeToast(e){const t=this.toasts.findIndex(i=>i.id===e);t>-1&&this.toasts.splice(t,1)},getIcon(e){switch(e){case"success":return"fas fa-check-circle";case"error":return"fas fa-exclamation-circle";case"warning":return"fas fa-exclamation-triangle";case"info":return"fas fa-info-circle";default:return"fas fa-info-circle"}}},mounted(){this.$root.$toast=this}},P={class:"toast-icon"},W={class:"toast-content"},K={class:"toast-message"},G=["onClick"];function Y(e,t,i,r,s,n){return u(),A(B,{name:"toast",tag:"div",class:"toast-container"},{default:I(()=>[(u(!0),h(x,null,N(s.toasts,a=>(u(),h("div",{key:a.id,class:U(["toast",`toast-${a.type}`])},[o("div",P,[o("i",{class:U(n.getIcon(a.type))},null,2)]),o("div",W,[o("div",K,b(a.message),1)]),o("button",{onClick:d=>n.removeToast(a.id),class:"toast-close"},[...t[0]||(t[0]=[o("i",{class:"fas fa-times"},null,-1)])],8,G)],2))),128))]),_:1})}const Ae=D(q,[["render",Y],["__scopeId","data-v-abf47c17"]]),z={name:"ContentComponent",components:{Module:O},props:{componentData:{type:Object,default:null}},data(){return{article:null,isLoading:!0,showNotFound:!1,notFoundTimeout:null,modulesCache:{},modulesLoaded:!1}},created(){if(this.componentData){const e=this.componentData.componentData||this.componentData;e&&e.id&&(this.article=e,this.isLoading=!1,this.showNotFound=!1)}},async mounted(){if(this.article&&this.article.id){this.updateHits();return}if(this.showNotFound=!1,await this.$nextTick(),this.componentData){const e=this.componentData.componentData||this.componentData;if(e&&e.id){this.article=e,this.isLoading=!1,this.showNotFound=!1,this.updateHits();return}}this.isLoading=!0,this.showNotFound=!1},beforeUnmount(){this.notFoundTimeout&&(clearTimeout(this.notFoundTimeout),this.notFoundTimeout=null)},watch:{$route(){},componentData:{handler(e,t){if(this.notFoundTimeout&&(clearTimeout(this.notFoundTimeout),this.notFoundTimeout=null),!e){this.article=null,this.isLoading=!0,this.showNotFound=!1;return}const i=e.componentData||e;i&&i.id?(this.article=i,this.isLoading=!1,this.showNotFound=!1,this.loadModulesFromContent(),this.updateHits()):(this.article=null,this.isLoading=!0,this.showNotFound=!1)},immediate:!0,deep:!0},article:{handler(e){e&&e.fulltext&&this.loadModulesFromContent()},immediate:!0}},computed:{showTitle(){var t;const e=(t=this.componentData)==null?void 0:t.menuItem;return e&&e.show_title!==void 0?e.show_title===1||e.show_title===!0:this.article&&this.article.show_title!==void 0?this.article.show_title===1||this.article.show_title===!0:!0},displayTitle(){var t;const e=(t=this.componentData)==null?void 0:t.menuItem;return e&&e.title?e.title:this.article?this.article.title:""},processedIntrotext(){return!this.article||!this.article.introtext?"":this.processContent(this.article.introtext)},fulltextParts(){if(!this.article||!this.article.fulltext)return[];const e=[],t=this.article.fulltext,i=/\{\{moduleid\s+(\d+)\}\}/gi;let r=0,s;for(;(s=i.exec(t))!==null;){if(s.index>r){const d=t.substring(r,s.index);d.trim()&&e.push({type:"html",content:this.processContent(d)})}const n=parseInt(s[1]),a=this.modulesCache[n];a&&e.push({type:"module",module:a}),r=s.index+s[0].length}if(rn.alias===t&&n.published),this.article?(this.isLoading=!1,this.showNotFound=!1,this.loadModulesFromContent(),this.updateHits()):(this.isLoading=!1,this.notFoundTimeout=setTimeout(()=>{!this.article&&!this.isLoading&&(this.showNotFound=!0)},1e3))}catch(r){console.error("Error loading article:",r),this.article=null,this.isLoading=!1,this.notFoundTimeout=setTimeout(()=>{!this.article&&!this.isLoading&&(this.showNotFound=!0)},1e3)}},async updateHits(){if(!(!this.article||!this.article.id))try{await p.put(`/articles/${this.article.id}`,{...this.article})}catch(e){console.error("Error updating hits:",e)}},getImageUrl(e){return e?e.startsWith("/media/")||e.startsWith("media/")?e.startsWith("/")?e:`/${e}`:`/media/${e}`:""},processContent(e){return e?e.replace(/]*?)src=["']([^"']+)["']([^>]*?)>/gi,(i,r,s,n)=>{const a=this.getImageUrl(s);return``}):""},async loadModulesFromContent(){if(!this.article||!this.article.fulltext)return;const e=/\{\{moduleid\s+(\d+)\}\}/gi,t=[];let i;for(;(i=e.exec(this.article.fulltext))!==null;){const r=parseInt(i[1]);t.includes(r)||t.push(r)}t.length>0&&await this.loadModules(t)},async loadModules(e){try{const t=e.filter(s=>!this.modulesCache[s]);if(t.length===0){this.modulesLoaded=!0;return}const r=(await p.get("/modules?published=1")).data.data||[];t.forEach(s=>{const n=r.find(a=>a.id===s&&a.published);n&&(this.modulesCache[s]=n)}),this.modulesLoaded=!0}catch(t){console.error("Error loading modules:",t),this.modulesLoaded=!0}}}},J={class:"content-component"},Q={key:0,class:"article"},X={key:0},Z={key:1,class:"article-image"},tt=["src","alt"],et=["innerHTML"],st={key:3,class:"article-content"},ot=["innerHTML"],at={key:1,class:"inline-module"},nt={key:1,class:"article-not-found"};function it(e,t,i,r,s,n){const a=L("Module");return u(),h("div",J,[s.article?(u(),h("div",Q,[n.showTitle?(u(),h("h1",X,b(n.displayTitle),1)):g("",!0),s.article.featured_image?(u(),h("div",Z,[o("img",{src:n.getImageUrl(s.article.featured_image),alt:s.article.title},null,8,tt)])):g("",!0),s.article.introtext?(u(),h("div",{key:2,class:"article-intro",innerHTML:n.processedIntrotext},null,8,et)):g("",!0),s.article.fulltext?(u(),h("div",st,[(u(!0),h(x,null,N(n.fulltextParts,(d,c)=>(u(),h(x,{key:c},[d.type==="html"?(u(),h("div",{key:0,innerHTML:d.content},null,8,ot)):d.type==="module"?(u(),h("div",at,[F(a,{module:d.module},null,8,["module"])])):g("",!0)],64))),128))])):g("",!0)])):s.showNotFound?(u(),h("div",nt,[...t[0]||(t[0]=[o("h2",null,"מאמר לא נמצא",-1),o("p",null,"המאמר המבוקש לא קיים או נמחק.",-1)])])):g("",!0)])}const rt=D(z,[["render",it],["__scopeId","data-v-0b7009b3"]]),lt={name:"CategoryComponent",props:{componentData:{type:Object,default:null}},computed:{showTitle(){return this.category&&this.category.show_title!==void 0?this.category.show_title===1||this.category.show_title===!0:!0}},data(){return{category:null,articles:[]}},created(){if(this.componentData){const e=this.componentData.componentData||this.componentData;e&&e.id&&(this.category=e,e.articles?this.articles=e.articles:this.loadArticles())}},async mounted(){this.category||await this.loadCategory()},watch:{$route(){this.loadCategory()},componentData:{handler(e){if(e){const t=e.componentData||e;t&&t.id&&(this.category=t,this.loadArticles())}},immediate:!0,deep:!0}},methods:{async loadCategory(){if(this.componentData){const t=this.componentData.componentData||this.componentData;if(t&&t.id){this.category=t,await this.loadArticles();return}}const e=this.$route.params.alias||this.$route.path.split("/").pop();try{const i=(await p.get("/categories?published=1")).data.data||[];this.category=i.find(r=>r.alias===e),this.category&&await this.loadArticles()}catch(t){console.error("Error loading category:",t)}},async loadArticles(){if(!(!this.category||!this.category.id))try{const e=await p.get(`/articles?category_id=${this.category.id}&published=1`);this.articles=e.data.data||[]}catch(e){console.error("Error loading articles:",e)}}}},ct={class:"category-component"},dt={key:0,class:"category-header"},ut={key:0},ht={key:1,class:"category-description"},mt={key:1,class:"articles-list"},pt=["innerHTML"],ft={class:"article-meta"},gt={key:0},yt={key:2,class:"no-articles"};function bt(e,t,i,r,s,n){const a=L("router-link");return u(),h("div",ct,[s.category?(u(),h("div",dt,[n.showTitle?(u(),h("h1",ut,b(s.category.title),1)):g("",!0),s.category.description?(u(),h("p",ht,b(s.category.description),1)):g("",!0)])):g("",!0),s.articles.length?(u(),h("div",mt,[(u(!0),h(x,null,N(s.articles,d=>(u(),h("article",{key:d.id,class:"article-card"},[o("h2",null,[F(a,{to:`/article/${d.alias}`},{default:I(()=>[C(b(d.title),1)]),_:2},1032,["to"])]),d.introtext?(u(),h("div",{key:0,class:"article-intro",innerHTML:d.introtext},null,8,pt)):g("",!0),o("div",ft,[d.author?(u(),h("span",gt,"מחבר: "+b(d.author),1)):g("",!0),o("span",null,"צפיות: "+b(d.hits),1)]),F(a,{to:`/article/${d.alias}`,class:"read-more"},{default:I(()=>[...t[0]||(t[0]=[C("קרא עוד →",-1)])]),_:1},8,["to"])]))),128))])):(u(),h("div",yt,[...t[1]||(t[1]=[o("p",null,"אין מאמרים בקטגוריה זו עדיין.",-1)])]))])}const vt=D(lt,[["render",bt],["__scopeId","data-v-43940179"]]),_t={name:"EmptyComponent",props:{componentData:{type:Object,default:null}},computed:{menuItem(){return this.componentData?this.componentData.menuItem||this.componentData:null},displayTitle(){return this.menuItem&&this.menuItem.title||""},showTitle(){return this.menuItem&&this.menuItem.show_title!==void 0?this.menuItem.show_title===1||this.menuItem.show_title===!0:!0}}},Ct={class:"empty-component"},Dt={key:0};function wt(e,t,i,r,s,n){return u(),h("div",Ct,[n.showTitle?(u(),h("h1",Dt,b(n.displayTitle),1)):g("",!0)])}const kt=D(_t,[["render",wt],["__scopeId","data-v-216dac74"]]),Tt={name:"ContactComponent",props:{componentData:{type:Object,default:null}},data(){return{formData:{fullName:"",phone:"",email:"",subject:"",message:""},isSubmitting:!1,isSubmitted:!1,csrfToken:null}},async mounted(){try{const e=await p.get("/auth/csrf-token");e.data&&e.data.success&&(this.csrfToken=e.data.csrf_token)}catch(e){console.error("Error fetching CSRF token:",e)}this.loadRecaptcha()},methods:{loadRecaptcha(){const e=this;if(typeof grecaptcha<"u"){this.renderRecaptcha();return}if(document.querySelector('script[src*="recaptcha"]')){this.waitForRecaptcha();return}const t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?render=explicit",t.async=!0,t.defer=!0,t.onload=function(){e.$nextTick(function(){e.renderRecaptcha()})},t.onerror=function(){console.error("Failed to load reCAPTCHA script")},document.head.appendChild(t)},waitForRecaptcha(){const e=setInterval(()=>{typeof grecaptcha<"u"&&(clearInterval(e),this.$nextTick(()=>{this.renderRecaptcha()}))},100);setTimeout(()=>{clearInterval(e),typeof grecaptcha>"u"&&console.error("reCAPTCHA script failed to load")},1e4)},renderRecaptcha(){if(this.$refs.recaptchaContainer){if(typeof grecaptcha>"u"){console.error("grecaptcha is not defined");return}this.$refs.recaptchaContainer.innerHTML="";try{grecaptcha.render(this.$refs.recaptchaContainer,{sitekey:"6LfBxA0pAAAAANJoH_iWyyDRmoQrihebgvP75IcG"})}catch(e){console.error("Error rendering reCAPTCHA:",e)}}},async submitForm(){var t,i,r,s,n,a,d,c,l,v,w;if(this.isSubmitting)return;if(typeof grecaptcha>"u"){(t=this.$root.$toast)==null||t.show("reCAPTCHA לא נטען. אנא רעננו את הדף.","error");return}const e=grecaptcha.getResponse();if(!e){(i=this.$root.$toast)==null||i.show("אנא אשרו שאתם לא רובוט","error");return}if(!this.csrfToken)try{const m=await p.get("/auth/csrf-token");m.data&&m.data.success&&(this.csrfToken=m.data.csrf_token)}catch(m){console.error("Error fetching CSRF token:",m)}this.isSubmitting=!0;try{const m={...this.formData,csrf_token:this.csrfToken,recaptcha_token:e},k=await p.post("/contact",m,{headers:{"X-CSRF-Token":this.csrfToken}});if(k.data&&k.data.success){this.isSubmitted=!0,grecaptcha.reset();try{const _=await p.get("/auth/csrf-token");_.data&&_.data.success&&(this.csrfToken=_.data.csrf_token)}catch(_){console.error("Error refreshing CSRF token:",_)}}else{grecaptcha.reset();const _=((r=k.data)==null?void 0:r.message)||"אירעה שגיאה בשליחת הטופס. אנא נסו שוב.";(s=this.$root.$toast)==null||s.show(_,"error")}}catch(m){console.error("Error submitting form:",m),grecaptcha.reset();const k=((a=(n=m.response)==null?void 0:n.data)==null?void 0:a.message)||"אירעה שגיאה בשליחת הטופס. אנא נסו שוב.";if((d=this.$root.$toast)==null||d.show(k,"error"),((c=m.response)==null?void 0:c.status)===403&&((w=(v=(l=m.response)==null?void 0:l.data)==null?void 0:v.message)!=null&&w.includes("CSRF")))try{const _=await p.get("/auth/csrf-token");_.data&&_.data.success&&(this.csrfToken=_.data.csrf_token)}catch(_){console.error("Error refreshing CSRF token:",_)}}finally{this.isSubmitting=!1}}}},$t={class:"contact-component"},xt={class:"contact-container"},St={class:"contact-form-section"},It={key:0,class:"success-message"},Ft={key:1},Et={class:"form-row"},Nt={class:"form-group"},Mt={class:"form-group"},Ut={class:"form-group"},Rt={class:"form-group"},At={class:"select-wrapper"},Lt={class:"form-group"},Bt={class:"form-group recaptcha-group"},Vt={ref:"recaptchaContainer",id:"recaptcha-container"},Ht={class:"form-footer"},Ot=["disabled"];function jt(e,t,i,r,s,n){return u(),h("div",$t,[o("div",xt,[t[16]||(t[16]=E('
נשמח לשמוע מכם

שאלות, הצעות או שיתוף פעולה?

צוות BikeBox כאן בשבילכם. השאירו פרטים ונחזור אליכם בהקדם, או צרו קשר ישירות באמצעי התקשורת הבאים.

שעות פעילות המוקד:

א'-ה' 08:00-20:00, ו' 08:00-13:00

לדיווח על תקלה דחופה במתקן – ניתן לפנות 24/7 דרך האפליקציה.

',1)),o("div",St,[s.isSubmitted?(u(),h("div",It,[...t[6]||(t[6]=[o("div",{class:"success-icon"},[o("i",{class:"fas fa-check-circle"})],-1),o("h2",{class:"success-title"},"תודה!",-1),o("p",{class:"success-text"}," פנייתכם התקבלה ונחזור אליכם בהקדם. ",-1)])])):(u(),h("div",Ft,[t[14]||(t[14]=o("h2",{class:"form-title"},"מלאו פרטים ונחזור אליכם",-1)),t[15]||(t[15]=o("p",{class:"form-subtitle"},"בדרך כלל חוזרים בתוך יום עסקים אחד.",-1)),o("form",{onSubmit:t[5]||(t[5]=M((...a)=>n.submitForm&&n.submitForm(...a),["prevent"])),class:"contact-form"},[o("div",Et,[o("div",Nt,[t[7]||(t[7]=o("label",{for:"fullName"},"שם מלא",-1)),f(o("input",{type:"text",id:"fullName","onUpdate:modelValue":t[0]||(t[0]=a=>s.formData.fullName=a),placeholder:"כיתבו את שמכם",required:""},null,512),[[y,s.formData.fullName]])]),o("div",Mt,[t[8]||(t[8]=o("label",{for:"phone"},"טלפון",-1)),f(o("input",{type:"tel",id:"phone","onUpdate:modelValue":t[1]||(t[1]=a=>s.formData.phone=a),placeholder:"לדוגמה: 050-1234567",required:""},null,512),[[y,s.formData.phone]])])]),o("div",Ut,[t[9]||(t[9]=o("label",{for:"email"},"כתובת מייל",-1)),f(o("input",{type:"email",id:"email","onUpdate:modelValue":t[2]||(t[2]=a=>s.formData.email=a),placeholder:"you@example.com",required:""},null,512),[[y,s.formData.email]])]),o("div",Rt,[t[12]||(t[12]=o("label",{for:"subject"},"נושא הפנייה",-1)),o("div",At,[f(o("select",{id:"subject","onUpdate:modelValue":t[3]||(t[3]=a=>s.formData.subject=a),required:""},[...t[10]||(t[10]=[E('',6)])],512),[[V,s.formData.subject]]),t[11]||(t[11]=o("i",{class:"fas fa-chevron-down select-icon"},null,-1))])]),o("div",Lt,[t[13]||(t[13]=o("label",{for:"message"},"הודעה",-1)),f(o("textarea",{id:"message","onUpdate:modelValue":t[4]||(t[4]=a=>s.formData.message=a),rows:"5",placeholder:"ספרו לנו קצת יותר איך נוכל לעזור...",required:""},null,512),[[y,s.formData.message]])]),o("div",Bt,[o("div",Vt,null,512)]),o("div",Ht,[o("button",{type:"submit",class:"submit-btn",disabled:s.isSubmitting},b(s.isSubmitting?"שולח...":"שליחת פנייה"),9,Ot)])],32)]))])])])}const qt=D(Tt,[["render",jt],["__scopeId","data-v-a99bbb3a"]]),Pt={name:"ConfirmModal",props:{show:{type:Boolean,default:!1},title:{type:String,default:"אישור פעולה"},message:{type:String,required:!0},confirmText:{type:String,default:"אישור"}},emits:["confirm","cancel"],methods:{handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel")}}},Wt={class:"modal-container"},Kt={class:"modal-header"},Gt={class:"modal-body"},Yt={class:"modal-footer"};function zt(e,t,i,r,s,n){return i.show?(u(),h("div",{key:0,class:"modal-overlay",onClick:t[3]||(t[3]=M((...a)=>n.handleCancel&&n.handleCancel(...a),["self"]))},[o("div",Wt,[o("div",Kt,[o("h3",null,b(i.title),1),o("button",{onClick:t[0]||(t[0]=(...a)=>n.handleCancel&&n.handleCancel(...a)),class:"modal-close"},[...t[4]||(t[4]=[o("i",{class:"fas fa-times"},null,-1)])])]),o("div",Gt,[o("p",null,b(i.message),1)]),o("div",Yt,[o("button",{onClick:t[1]||(t[1]=(...a)=>n.handleCancel&&n.handleCancel(...a)),class:"btn-secondary"}," ביטול "),o("button",{onClick:t[2]||(t[2]=(...a)=>n.handleConfirm&&n.handleConfirm(...a)),class:"btn-danger"},[t[5]||(t[5]=o("i",{class:"fas fa-sign-out-alt"},null,-1)),C(" "+b(i.confirmText),1)])])])])):g("",!0)}const Le=D(Pt,[["render",zt],["__scopeId","data-v-2e847fa0"]]),Jt={name:"ComponentRouter",components:{ContentComponent:rt,CategoryComponent:vt,EmptyComponent:kt,ContactComponent:qt,UserComponent:j},data(){var r;let e=null,t=null,i=null;try{const s=(r=this.$route)==null?void 0:r.meta;if(s&&s.componentData){e=s.componentData;const n=s.componentData.menuItem;n&&(n.item_type==="article"?(t="ContentComponent",i="com_content"):n.item_type==="category"?(t="CategoryComponent",i="com_categories"):n.item_type==="contact"?(t="ContactComponent",i="com_contact"):n.item_type==="user"?(t="UserComponent",i="com_user"):n.item_type==="empty"&&(t="EmptyComponent",i="com_empty"))}}catch{}return{currentComponent:t,componentName:i,componentData:e,showNotFound:!1,notFoundTimeout:null,componentsCache:{}}},computed:{effectiveComponentData(){var e;if(this.componentData)return this.componentData;try{const t=(e=this.$route)==null?void 0:e.meta;if(t&&t.componentData)return t.componentData}catch{}return null}},provide(){return{componentData:()=>this.effectiveComponentData}},created(){const e=this.$route.meta;if(e&&e.componentData){this.componentData||(this.componentData=e.componentData);const t=e.componentData.menuItem;t&&!this.currentComponent&&(t.item_type==="article"?(this.currentComponent="ContentComponent",this.componentName="com_content"):t.item_type==="category"?(this.currentComponent="CategoryComponent",this.componentName="com_categories"):t.item_type==="contact"?(this.currentComponent="ContactComponent",this.componentName="com_contact"):t.item_type==="user"?(this.currentComponent="UserComponent",this.componentName="com_user"):t.item_type==="empty"&&(this.currentComponent="EmptyComponent",this.componentName="com_empty")),e.seo||t&&(this.$route.meta={...this.$route.meta,seo:{meta_title:t.meta_title||t.title||"",meta_description:t.meta_description||"",meta_keywords:t.meta_keywords||""}})}},activated(){this.loadComponent()},async mounted(){await this.$nextTick();const e=this.$route.meta;if(e&&e.componentData){if(this.componentData||(this.componentData=e.componentData),!this.currentComponent){const t=e.componentData.menuItem;t&&(t.item_type==="article"?(this.currentComponent="ContentComponent",this.componentName="com_content"):t.item_type==="category"?(this.currentComponent="CategoryComponent",this.componentName="com_categories"):t.item_type==="contact"?(this.currentComponent="ContactComponent",this.componentName="com_contact"):t.item_type==="user"?(this.currentComponent="UserComponent",this.componentName="com_user"):t.item_type==="empty"&&(this.currentComponent="EmptyComponent",this.componentName="com_empty"))}await this.$nextTick()}else await this.loadComponent()},beforeUnmount(){this.notFoundTimeout&&(clearTimeout(this.notFoundTimeout),this.notFoundTimeout=null)},watch:{$route(){this.loadComponent()},currentComponent(e,t){this.notFoundTimeout&&(clearTimeout(this.notFoundTimeout),this.notFoundTimeout=null),e?this.showNotFound=!1:t!=null?this.showNotFound=!1:this.notFoundTimeout=setTimeout(()=>{this.currentComponent||(this.showNotFound=!0)},1e3)}},methods:{triggerSEOTagsUpdate(){this.$root.$emit("update-seo-tags",this.$route),this.$root&&typeof this.$root.updateSEOTags=="function"&&this.$root.updateSEOTags(this.$route)},async loadComponent(){const e=this.$route.path;if(e==="/"||e==="")await this.loadDefaultMenuItem();else{const t=e.split("/").filter(i=>i);t.length===0?await this.loadDefaultMenuItem():await this.findMenuItemByAlias(t[0])}},async loadDefaultMenuItem(){var e;try{const i=(await p.get("/menus")).data.data||[];for(const r of i){const s=await p.get(`/menus/${r.id}`),a=this.flattenMenuItems(((e=s.data.data)==null?void 0:e.items)||[]).find(d=>(d.is_default===1||d.is_default==="1"||d.is_default===!0)&&d.published);if(a){await this.loadContentByMenuItem(a);return}}this.componentName=null,this.currentComponent=null}catch(t){console.error("Error loading default menu item:",t),this.componentName=null,this.currentComponent=null}},async findMenuItemByAlias(e){var t;try{const i=decodeURIComponent(e||""),s=(await p.get("/menus")).data.data||[];for(const n of s){const a=await p.get(`/menus/${n.id}`),c=this.flattenMenuItems(((t=a.data.data)==null?void 0:t.items)||[]).find(l=>l.alias===i&&l.published);if(c){if((c.is_default===1||c.is_default==="1"||c.is_default===!0)&&this.$route.path!=="/"){this.$router.replace("/");return}await this.loadContentByMenuItem(c),this.$nextTick(()=>{this.$root&&this.$root.$options.methods&&this.$root.$options.methods.updateSEOTags&&this.$root.updateSEOTags(this.$route)});return}}this.currentComponent=null,this.componentName=null,this.componentData=null,this.showNotFound=!0,this.$route.meta={seo:null,componentData:null}}catch(i){console.error("Error finding menu item:",i),this.currentComponent=null,this.componentName=null,this.componentData=null,this.showNotFound=!0,this.$route.meta={seo:null,componentData:null}}},async loadContentByMenuItem(e){if(e.item_type==="article"){if(!await this.isComponentEnabled("com_content")){this.currentComponent=null,this.componentData=null,this.showNotFound=!0;return}}else if(e.item_type==="category"){if(!await this.isComponentEnabled("com_categories")){this.currentComponent=null,this.componentData=null,this.showNotFound=!0;return}}else if(e.item_type==="contact"){if(!await this.isComponentEnabled("com_contact")){this.currentComponent=null,this.componentData=null,this.showNotFound=!0;return}}else if(e.item_type==="user"&&!await this.isComponentEnabled("com_user")){this.currentComponent=null,this.componentData=null,this.showNotFound=!0;return}if(e.component_id&&e.component_enabled!==void 0&&e.component_enabled!=1){this.currentComponent=null,this.componentData=null,this.showNotFound=!0;return}if(e.item_type==="external"){if(e.link){window.location.href=e.link;return}this.currentComponent=null,this.componentData=null}else if(e.item_type==="contact")this.componentName="com_contact",this.currentComponent="ContactComponent",this.componentData={menuItem:e},this.$route.meta={...this.$route.meta,componentData:{menuItem:e},seo:{meta_title:e.meta_title||e.title||"Contact",meta_description:e.meta_description||"",meta_keywords:e.meta_keywords||""}},this.$nextTick(()=>{this.triggerSEOTagsUpdate()});else if(e.item_type==="user")this.componentName="com_user",this.currentComponent="UserComponent",this.componentData={menuItem:e},this.$route.meta={...this.$route.meta,componentData:{menuItem:e},seo:{meta_title:e.meta_title||e.title||"User Cabinet",meta_description:e.meta_description||"",meta_keywords:e.meta_keywords||""}},this.$nextTick(()=>{this.triggerSEOTagsUpdate()});else if(e.item_type==="empty")this.componentName="com_empty",this.currentComponent="EmptyComponent",this.componentData={menuItem:e},this.$route.meta={...this.$route.meta,componentData:{menuItem:e},seo:{meta_title:e.meta_title||e.title||"CMS Site",meta_description:e.meta_description||"",meta_keywords:e.meta_keywords||""}},this.$nextTick(()=>{this.triggerSEOTagsUpdate()});else if(e.item_type==="article"&&e.article_id)this.componentName="com_content",this.currentComponent="ContentComponent",await this.loadArticleById(e.article_id,e);else if(e.item_type==="category"&&e.category_id)this.componentName="com_categories",this.currentComponent="CategoryComponent",await this.loadCategoryById(e.category_id,e);else{this.$route.meta={...this.$route.meta,componentData:{menuItem:e},seo:{meta_title:e.meta_title||e.title||"CMS Site",meta_description:e.meta_description||"",meta_keywords:e.meta_keywords||""}},this.$nextTick(()=>{this.triggerSEOTagsUpdate()});const t=e.component_name;t&&await this.loadComponentByType(t,e.alias)}},flattenMenuItems(e){const t=[];return e.forEach(i=>{t.push(i),i.children&&t.push(...this.flattenMenuItems(i.children))}),t},async loadComponentByType(e,t){switch(e){case"com_content":this.currentComponent="ContentComponent",await this.loadArticleByAlias(t);break;case"com_categories":this.currentComponent="CategoryComponent",await this.loadCategoryByAlias(t);break;default:this.currentComponent=null}},async loadArticleById(e,t=null){try{const i=await p.get(`/articles/${e}`);if(i.data.success&&i.data.data){const r=i.data.data;r.published?(t&&(r.show_title=t.show_title!==void 0?t.show_title:1,r.meta_title=t.meta_title||null,r.meta_description=t.meta_description||null,r.meta_keywords=t.meta_keywords||null),this.componentData={componentData:r,menuItem:t},t?(this.$route.meta={...this.$route.meta,componentData:{componentData:r,menuItem:t},seo:{meta_title:t.meta_title||r.title,meta_description:t.meta_description||r.introtext||"",meta_keywords:t.meta_keywords||""}},this.$nextTick(()=>{this.triggerSEOTagsUpdate()})):this.$route.meta={...this.$route.meta,componentData:{componentData:r},seo:{meta_title:r.title,meta_description:r.introtext||"",meta_keywords:""}}):(console.warn("loadArticleById: Article is not published:",e),this.componentData=null)}else console.warn("loadArticleById: Article not found or failed:",e),this.componentData=null}catch(i){console.error("loadArticleById: Error loading article by ID:",i),this.componentData=null}},async loadArticleByAlias(e){try{const t=decodeURIComponent(e||""),s=((await p.get("/articles?published=1")).data.data||[]).find(n=>n.alias===t&&n.published);this.componentData=s}catch(t){console.error("Error loading article by alias:",t),this.componentData=null}},async loadCategoryById(e,t=null){try{const i=await p.get(`/categories/${e}`);if(i.data.success&&i.data.data){const r=i.data.data;this.componentData={componentData:r,menuItem:t},t?(this.$route.meta={...this.$route.meta,componentData:{componentData:r,menuItem:t},seo:{meta_title:t.meta_title||r.title,meta_description:t.meta_description||r.description||"",meta_keywords:t.meta_keywords||""}},this.$nextTick(()=>{this.triggerSEOTagsUpdate()})):this.$route.meta={...this.$route.meta,componentData:{componentData:r},seo:{meta_title:r.title,meta_description:r.description||"",meta_keywords:""}}}}catch(i){console.error("Error loading category by ID:",i),this.componentData=null}},async loadCategoryByAlias(e){try{const t=decodeURIComponent(e||""),s=((await p.get("/categories?published=1")).data.data||[]).find(n=>n.alias===t&&n.published);this.componentData=s}catch(t){console.error("Error loading category by alias:",t),this.componentData=null}},async isComponentEnabled(e){if(this.componentsCache[e]!==void 0)return this.componentsCache[e];try{const r=((await p.get("/components")).data.data||[]).find(n=>n.name===e),s=r?r.enabled===1||r.enabled===!0:!0;return this.componentsCache[e]=s,s}catch(t){return console.error("Error checking component status:",t),this.componentsCache[e]=!0,!0}}},provide(){return{componentData:this}}},Qt={class:"component-router"},Xt={key:1,class:"component-not-found"};function Zt(e,t,i,r,s,n){return u(),h("div",Qt,[s.currentComponent?(u(),A(H(s.currentComponent),{key:0,"component-data":n.effectiveComponentData},null,8,["component-data"])):s.showNotFound?(u(),h("div",Xt,[...t[0]||(t[0]=[o("h1",null,"דף לא נמצא",-1),o("p",null,"הרכיב לא נמצא או לא זמין.",-1)])])):g("",!0)])}const Be=D(Jt,[["render",Zt],["__scopeId","data-v-3f06d0c7"]]),T=p.create({baseURL:"https://bikebox.co.il/crm/api",withCredentials:!1,timeout:1e4,headers:{"Content-Type":"application/x-www-form-urlencoded"}});function $(e){const t=new URLSearchParams;for(const i in e)e[i]!==null&&e[i]!==void 0&&t.append(i,e[i]);return t.toString()}const te={name:"LoginModal",props:{show:{type:Boolean,default:!1},defaultTab:{type:String,default:"login"}},emits:["close"],data(){return{currentStep:"phone",isSubmitting:!1,formData:{phone:"",password:""},registrationData:{name:"",passport:"",email:"",phone:"",address:"",ravkav:"",agreeTerms:!1,agreePrivacy:!1,auth:null},cardData:{cardHolder:"",cardNumber:"",month:"",year:"",cvv:"",agree:!1}}},computed:{canRegister(){return this.registrationData.name&&this.registrationData.passport&&this.registrationData.email&&this.registrationData.agreeTerms&&this.registrationData.agreePrivacy},canSubmitCard(){return this.cardData.cardHolder&&this.cardData.cardNumber&&this.cardData.month&&this.cardData.year&&this.cardData.cvv&&this.cardData.agree}},watch:{show(e){e&&this.resetForm()}},methods:{close(){this.$emit("close"),this.resetForm()},resetForm(){this.currentStep="phone",this.isSubmitting=!1,this.formData={phone:"",password:""},this.registrationData={name:"",passport:"",email:"",phone:this.formData.phone,address:"",ravkav:"",agreeTerms:!1,agreePrivacy:!1,auth:null},this.cardData={cardHolder:"",cardNumber:"",month:"",year:"",cvv:"",agree:!1}},async checkId(){var e,t;if(!(!this.formData.phone||this.isSubmitting)){this.isSubmitting=!0;try{const i=this.formData.phone.replace(/-/g,""),r=await T.post("/checkId",$({type:2,phone:i})),s=(e=r.data)!=null&&e.code?Number(r.data.code):null,n=((t=r.data)==null?void 0:t.error)||s!==null&&s>=50;if(r.data&&n){const a=r.data.error||"שגיאה בבדיקת מספר טלפון",d=(c,l=0)=>{setTimeout(()=>{var w,m;const v=(w=this.$root)==null?void 0:w.$toast;v&&typeof v.show=="function"?v.show(c,"error"):l<500?d(c,l+100):(console.warn("Toast not available after retries, using alert",{root:this.$root,toast:(m=this.$root)==null?void 0:m.$toast}),d(c))},l)};d(a);return}else r.data&&(r.data.user_id||r.data.success||s!==null&&s<50&&s!==20)?this.currentStep="password":(this.registrationData.phone=i,this.currentStep="registration")}catch(i){console.error("Error checking ID:",i);const r=this.formData.phone.replace(/-/g,"");this.registrationData.phone=r,this.currentStep="registration"}finally{this.isSubmitting=!1}}},async login(){var e,t,i,r;if(!(!this.formData.password||this.isSubmitting)){this.isSubmitting=!0;try{const s=this.formData.phone.replace(/-/g,""),n=await T.post("/login",$({user:s,pass:this.formData.password}));if(n.data&&n.data.result==="reg")this.registrationData.phone=s,n.data.auth&&(this.registrationData.auth=n.data.auth),this.currentStep="registration";else if(n.data&&(n.data.id||n.data.user_id)){const a=n.data.id||n.data.user_id;try{await p.post("/auth/sync",{user_id:a,phone:s,email:n.data.email||null,user:n.data.user||null,auth:n.data.auth||null}),this.close(),this.$emit("user-updated"),this.$router.push("/user")}catch(d){console.error("Error syncing session:",d),this.close(),this.$emit("user-updated"),this.$router.push("/user")}}else(e=this.$root.$toast)==null||e.show("קוד שגוי או משתמש לא קיים. אנא נסה שוב.","error")}catch(s){console.error("Error logging in:",s);const n=((i=(t=s.response)==null?void 0:t.data)==null?void 0:i.error)||"שגיאה בהתחברות";(r=this.$root.$toast)==null||r.show(n,"error")}finally{this.isSubmitting=!1}}},async register(){var e,t,i,r,s,n,a;if(!(!this.canRegister||this.isSubmitting)){this.isSubmitting=!0;try{const d={name:this.registrationData.name,passport:this.registrationData.passport,email:this.registrationData.email,phone:this.registrationData.phone,address:this.registrationData.address||"",ravkav:this.registrationData.ravkav||""};this.registrationData.auth&&(d.auth=this.registrationData.auth);const c=await T.post("/registration",$(d));if(c.data&&c.data.error)(e=this.$root.$toast)==null||e.show(c.data.error,"error");else if(c.data&&(c.data.email||c.data.pass||c.data.card)){const l=[];c.data.email&&l.push(c.data.email),c.data.pass&&l.push(c.data.pass),c.data.card&&l.push(c.data.card),l.length>0&&((t=this.$root.$toast)==null||t.show(l.join(", "),"error"))}else c.data&&(c.data.id||c.data.result===1)?this.currentStep="card":(i=this.$root.$toast)==null||i.show("שגיאה בהרשמה. אנא נסה שוב.","error")}catch(d){if(console.error("Error registering:",d),(r=d.response)!=null&&r.data){const c=d.response.data,l=[];c.error&&l.push(c.error),c.email&&l.push(c.email),c.pass&&l.push(c.pass),c.card&&l.push(c.card),l.length>0?(s=this.$root.$toast)==null||s.show(l.join(", "),"error"):(n=this.$root.$toast)==null||n.show("שגיאה בהרשמה. אנא נסה שוב.","error")}else(a=this.$root.$toast)==null||a.show("שגיאה בהרשמה. אנא נסה שוב.","error")}finally{this.isSubmitting=!1}}},async registerWithCard(){var e,t,i,r,s,n,a,d;if(!(!this.canSubmitCard||this.isSubmitting)){this.isSubmitting=!0;try{const c={"fields[card_holder]":this.cardData.cardHolder,"fields[card_number]":this.cardData.cardNumber,"fields[year]":this.cardData.year,"fields[month]":this.cardData.month,"fields[cv]":this.cardData.cvv,"fields[agree]":this.cardData.agree?"on":"",name:this.registrationData.name,passport:this.registrationData.passport,email:this.registrationData.email,phone:this.registrationData.phone,address:this.registrationData.address||"",ravkav:this.registrationData.ravkav||""};this.registrationData.auth&&(c.auth=this.registrationData.auth);const l=await T.post("/registration",$(c)),v=l.data&&l.data.id,w=l.data&&l.data.result;if(v||w){const m=l.data.id,k=this.registrationData.phone;try{await p.post("/auth/sync",{user_id:m,phone:k,email:l.data.email||null,user:l.data.user||null,auth:l.data.auth||null}),this.close(),this.$emit("user-updated"),this.$router.push("/user")}catch(_){console.error("Error syncing session:",_),this.close(),this.$emit("user-updated"),this.$router.push("/user")}}else if(l.data&&l.data.error)(e=this.$root.$toast)==null||e.show(l.data.error,"error");else if(l.data&&(l.data.email||l.data.pass||l.data.card)){const m=[];l.data.email&&typeof l.data.email=="string"&&(l.data.email.includes("כבר")||l.data.email.includes("שגיאה"))&&m.push(l.data.email),l.data.pass&&typeof l.data.pass=="string"&&(l.data.pass.includes("כבר")||l.data.pass.includes("שגיאה"))&&m.push(l.data.pass),l.data.card&&typeof l.data.card=="string"&&(l.data.card.includes("כבר")||l.data.card.includes("שגיאה"))&&m.push(l.data.card),m.length>0?(t=this.$root.$toast)==null||t.show(m.join(", "),"error"):(i=this.$root.$toast)==null||i.show("שגיאה בהרשמה. אנא נסה שוב.","error")}else(r=this.$root.$toast)==null||r.show("שגיאה בהרשמה. אנא נסה שוב.","error")}catch(c){if(console.error("Error registering with card:",c),(s=c.response)!=null&&s.data){const l=c.response.data,v=[];l.error&&v.push(l.error),l.email&&v.push(l.email),l.pass&&v.push(l.pass),l.card&&v.push(l.card),v.length>0?(n=this.$root.$toast)==null||n.show(v.join(", "),"error"):(a=this.$root.$toast)==null||a.show("שגיאה בהרשמה. אנא נסה שוב.","error")}else(d=this.$root.$toast)==null||d.show("שגיאה בהרשמה. אנא נסה שוב.","error")}finally{this.isSubmitting=!1}}}}},ee={class:"auth-modal"},se={class:"auth-body"},oe={key:0,class:"auth-form"},ae={class:"auth-input"},ne=["disabled"],ie={key:1,class:"auth-form"},re={class:"auth-input"},le=["disabled"],ce={key:2,class:"auth-form"},de={class:"auth-input"},ue={class:"auth-input"},he={class:"auth-input"},me={class:"auth-input"},pe={class:"auth-input"},fe={class:"auth-input"},ge={class:"auth-checkboxes"},ye={class:"auth-checkbox"},be={class:"auth-checkbox"},ve=["disabled"],_e={key:3,class:"auth-form"},Ce={class:"auth-input"},De={class:"auth-input"},we={class:"form-row"},ke={class:"form-group-half"},Te={class:"auth-input"},$e={class:"form-group-half"},xe={class:"auth-input"},Se={class:"auth-input"},Ie={class:"auth-checkbox"},Fe=["disabled"];function Ee(e,t,i,r,s,n){return i.show?(u(),h("div",{key:0,class:"auth-overlay",onClick:t[24]||(t[24]=M((...a)=>n.close&&n.close(...a),["self"]))},[o("div",ee,[o("button",{class:"auth-close",onClick:t[0]||(t[0]=(...a)=>n.close&&n.close(...a)),"aria-label":"Close"},[...t[25]||(t[25]=[o("i",{class:"fas fa-times"},null,-1)])]),t[55]||(t[55]=E('
BikeBox אזור אישי
התחברו או הירשמו למערכת באמצעות הזנת מספר טלפון לניהול חניה, נתונים ותעריפים
',1)),o("div",se,[s.currentStep==="phone"?(u(),h("div",oe,[t[27]||(t[27]=o("label",{class:"auth-label"},"מספר נייד",-1)),o("div",ae,[f(o("input",{type:"tel","onUpdate:modelValue":t[1]||(t[1]=a=>s.formData.phone=a),placeholder:"050-0000000",onKeyup:t[2]||(t[2]=R((...a)=>n.checkId&&n.checkId(...a),["enter"]))},null,544),[[y,s.formData.phone]]),t[26]||(t[26]=o("i",{class:"fas fa-mobile-alt"},null,-1))]),o("button",{class:"auth-primary",onClick:t[3]||(t[3]=(...a)=>n.checkId&&n.checkId(...a)),disabled:!s.formData.phone||s.isSubmitting},b(s.isSubmitting?"בודק...":"המשך"),9,ne)])):g("",!0),s.currentStep==="password"?(u(),h("div",ie,[t[29]||(t[29]=o("label",{class:"auth-label"},"סיסמה",-1)),o("div",re,[f(o("input",{type:"password","onUpdate:modelValue":t[4]||(t[4]=a=>s.formData.password=a),placeholder:"הזן סיסמה",onKeyup:t[5]||(t[5]=R((...a)=>n.login&&n.login(...a),["enter"]))},null,544),[[y,s.formData.password]]),t[28]||(t[28]=o("i",{class:"fas fa-lock"},null,-1))]),o("div",{class:"auth-link",onClick:t[6]||(t[6]=a=>s.currentStep="phone")},"חזור"),o("button",{class:"auth-primary",onClick:t[7]||(t[7]=(...a)=>n.login&&n.login(...a)),disabled:!s.formData.password||s.isSubmitting},b(s.isSubmitting?"מתחבר...":"כניסה למערכת"),9,le)])):g("",!0),s.currentStep==="registration"?(u(),h("div",ce,[t[38]||(t[38]=o("h3",{class:"form-step-title"},"יצירת חשבון חדש",-1)),t[39]||(t[39]=o("label",{class:"auth-label"},[C("שם פרטי ושם משפחה "),o("span",{class:"required"},"*")],-1)),o("div",de,[f(o("input",{type:"text","onUpdate:modelValue":t[8]||(t[8]=a=>s.registrationData.name=a),placeholder:"ישראל ישראלי"},null,512),[[y,s.registrationData.name]]),t[30]||(t[30]=o("i",{class:"fas fa-user"},null,-1))]),t[40]||(t[40]=o("label",{class:"auth-label"},[C("מספר ת.ז. "),o("span",{class:"required"},"*")],-1)),o("div",ue,[f(o("input",{type:"text","onUpdate:modelValue":t[9]||(t[9]=a=>s.registrationData.passport=a),placeholder:"מספר תעודת זהות"},null,512),[[y,s.registrationData.passport]]),t[31]||(t[31]=o("i",{class:"fas fa-id-card"},null,-1))]),t[41]||(t[41]=o("label",{class:"auth-label"},[C('דוא"ל '),o("span",{class:"required"},"*")],-1)),o("div",he,[f(o("input",{type:"email","onUpdate:modelValue":t[10]||(t[10]=a=>s.registrationData.email=a),placeholder:"your@email.com"},null,512),[[y,s.registrationData.email]]),t[32]||(t[32]=o("i",{class:"fas fa-envelope"},null,-1))]),t[42]||(t[42]=o("label",{class:"auth-label"},"מספר נייד",-1)),o("div",me,[f(o("input",{type:"tel","onUpdate:modelValue":t[11]||(t[11]=a=>s.registrationData.phone=a),placeholder:"050-0000000",readonly:""},null,512),[[y,s.registrationData.phone]]),t[33]||(t[33]=o("i",{class:"fas fa-mobile-alt"},null,-1))]),t[43]||(t[43]=o("label",{class:"auth-label"},"כתובת מגורים",-1)),o("div",pe,[f(o("input",{type:"text","onUpdate:modelValue":t[12]||(t[12]=a=>s.registrationData.address=a),placeholder:"כתובת מגורים"},null,512),[[y,s.registrationData.address]]),t[34]||(t[34]=o("i",{class:"fas fa-map-marker-alt"},null,-1))]),t[44]||(t[44]=o("label",{class:"auth-label"},"מספר רב קו",-1)),o("div",fe,[f(o("input",{type:"text","onUpdate:modelValue":t[13]||(t[13]=a=>s.registrationData.ravkav=a),placeholder:"מספר רב קו"},null,512),[[y,s.registrationData.ravkav]]),t[35]||(t[35]=o("i",{class:"fas fa-bus"},null,-1))]),o("div",ge,[o("label",ye,[f(o("input",{type:"checkbox","onUpdate:modelValue":t[14]||(t[14]=a=>s.registrationData.agreeTerms=a)},null,512),[[S,s.registrationData.agreeTerms]]),t[36]||(t[36]=o("span",null,[C("אני מסכים ל"),o("a",{href:"/מדיניות-הפרטיות",target:"_blank"},"תנאי השימוש")],-1))]),o("label",be,[f(o("input",{type:"checkbox","onUpdate:modelValue":t[15]||(t[15]=a=>s.registrationData.agreePrivacy=a)},null,512),[[S,s.registrationData.agreePrivacy]]),t[37]||(t[37]=o("span",null,[C("אני מסכים ל"),o("a",{href:"/מדיניות-הפרטיות",target:"_blank"},"מדיניות הפרטיות")],-1))])]),o("button",{class:"auth-primary",onClick:t[16]||(t[16]=(...a)=>n.register&&n.register(...a)),disabled:!n.canRegister||s.isSubmitting},b(s.isSubmitting?"נרשם...":"המשך להרשמה"),9,ve)])):g("",!0),s.currentStep==="card"?(u(),h("div",_e,[t[51]||(t[51]=o("h3",{class:"form-step-title"},"הוספת כרטיס אשראי",-1)),t[52]||(t[52]=o("label",{class:"auth-label"},"שם בעל הכרטיס",-1)),o("div",Ce,[f(o("input",{type:"text","onUpdate:modelValue":t[17]||(t[17]=a=>s.cardData.cardHolder=a),placeholder:"שם בעל הכרטיס"},null,512),[[y,s.cardData.cardHolder]]),t[45]||(t[45]=o("i",{class:"fas fa-user"},null,-1))]),t[53]||(t[53]=o("label",{class:"auth-label"},"מספר כרטיס אשראי",-1)),o("div",De,[f(o("input",{type:"text","onUpdate:modelValue":t[18]||(t[18]=a=>s.cardData.cardNumber=a),placeholder:"מספר כרטיס אשראי",maxlength:"16"},null,512),[[y,s.cardData.cardNumber]]),t[46]||(t[46]=o("i",{class:"fas fa-credit-card"},null,-1))]),o("div",we,[o("div",ke,[t[47]||(t[47]=o("label",{class:"auth-label"},"חודש",-1)),o("div",Te,[f(o("input",{type:"text","onUpdate:modelValue":t[19]||(t[19]=a=>s.cardData.month=a),placeholder:"MM",maxlength:"2"},null,512),[[y,s.cardData.month]])])]),o("div",$e,[t[48]||(t[48]=o("label",{class:"auth-label"},"בתוקף עד שנה",-1)),o("div",xe,[f(o("input",{type:"text","onUpdate:modelValue":t[20]||(t[20]=a=>s.cardData.year=a),placeholder:"YY",maxlength:"2"},null,512),[[y,s.cardData.year]])])])]),t[54]||(t[54]=o("label",{class:"auth-label"},[o("i",{class:"fas fa-search"}),C(" 3 ספרות בגב הכרטיס ")],-1)),o("div",Se,[f(o("input",{type:"text","onUpdate:modelValue":t[21]||(t[21]=a=>s.cardData.cvv=a),placeholder:"CV",maxlength:"3"},null,512),[[y,s.cardData.cvv]]),t[49]||(t[49]=o("i",{class:"fas fa-lock"},null,-1))]),o("label",Ie,[f(o("input",{type:"checkbox","onUpdate:modelValue":t[22]||(t[22]=a=>s.cardData.agree=a)},null,512),[[S,s.cardData.agree]]),t[50]||(t[50]=o("span",null,[C("אני מסכים ל"),o("a",{href:"/מדיניות-הפרטיות",target:"_blank"},"תנאים והגבלות")],-1))]),o("button",{class:"auth-primary",onClick:t[23]||(t[23]=(...a)=>n.registerWithCard&&n.registerWithCard(...a)),disabled:!n.canSubmitCard||s.isSubmitting},b(s.isSubmitting?"נרשם...":"הירשם"),9,Fe)])):g("",!0)])])])):g("",!0)}const Ve=D(te,[["render",Ee],["__scopeId","data-v-41ce4ef2"]]);export{Le as C,Ve as L,Ae as T,D as _,Be as a};