PageSourceSearch

https://app.dijitalajanslar.com/_nuxt/DV1HXexJ.js

js dijitalajanslar.com collected 2026-09-25 19:42:13 UTC 92,259 bytes, 1 lines download raw bytes

1import{e as X,h as le,L as Je,o as ee,a2 as ve,M as K,b as r,a8 as ae,r as L,j as e,p as u,l as j,v as O,t as o,c,F as z,y as te,q as R,A as h,z as F,a7 as ue,_ as de,G as Ce,d as ce,w as J,K as Ne,a0 as Be,C as Xe,b0 as et,f as ge,g as $e,i as Te,bc as Ee,n as fe,Y as E,a1 as ke,a3 as tt,u as ot,x as st,af as at,B as lt,ag as nt,ah as ie,aQ as rt,a5 as Me,E as it}from"./KM0hFIeW.js";import{b as ut}from"./CebEZSK-.js";import{p as dt}from"./5Ob8joCA.js";import{E as Q}from"./g5WpeoKo.js";import{_ as ct}from"./BTejFFR-.js";import{_ as Ve,a as Oe,b as Se,c as pt,d as mt,e as ft,f as vt,O as gt,g as ht,h as yt,i as bt}from"./DxZpbmE1.js";import{h as xt}from"./D0lj2aKn.js";import{E as ne}from"./CdO2zeS9.js";import{_ as Pe}from"./D4Z3kZ_J.js";/* empty css        */import{_ as me}from"./Bma9C-lI.js";import{_ as Le}from"./CJadnky7.js";import{E as wt}from"./CWkSelgS.js";import{p as _t}from"./Db6Wlrl1.js";import{_ as Ue}from"./CbJ9BYAB.js";import{p as Ct}from"./DmTARge3.js";import{_ as kt}from"./DHdZUJg3.js";import{g as Pt,u as It}from"./CS-SBfiD.js";import{m as Dt}from"./89F092cc.js";import{l as Nt}from"./BZcMGP45.js";import{b as Bt,c as Tt}from"./B-C71Oq_.js";import{_ as Et}from"./B2RxR3cy.js";import{_ as je}from"./bqs-ynRg.js";import{l as Mt}from"./CYzPG65z.js";import{u as Vt}from"./B25qMaCH.js";import{_ as Ot}from"./DkeoT8pD.js";import{u as St}from"./Du-twtkj.js";import{_ as Lt}from"./RLsvOWNk.js";import"./BG1QG-qw.js";import{_ as Ut}from"./fqWaayX7.js";import"./K6Dvbx-E.js";import{u as jt}from"./DBzA3RAe.js";import{d as At,l as Ft}from"./BNBl-cPI.js";import{_ as Ae}from"./C5RYe9u7.js";import{c as Rt}from"./BppqeBfL.js";import{usePayment as Ht}from"./C4E2IhQs.js";import{_ as qt}from"./Ds22KEUg.js";/* empty css        */import{u as Wt}from"./D8u5-iLu.js";import{u as Gt,l as zt}from"./NhNA1dv7.js";import{s as Zt}from"./x_rD_Ya3.js";import"./l0sNRNKZ.js";import"./BdsuEY6B.js";import"./B8ECP9Mg.js";import"./tCrwhbYN.js";import"./DLdhx_YY.js";import"./k_fZnoV_.js";import"./BrKeeQl0.js";import"./3CflmAd-.js";import"./C0zhIFLC.js";import"./BTHcLc87.js";import"./zNVCi2SP.js";import"./D84Kr2Dp.js";import"./DP2rzg_V.js";/* empty css        */import"./C6Kfwj0f.js";import"./B25CVI3W.js";import"./CEAEO73-.js";import"./CXbkLIwJ.js";import"./BuQ--fl9.js";import"./C6aID195.js";const Kt={key:0,class:"px-1 md:px-0"},Yt={class:"space-y-4 mb-6"},Qt={class:"flex items-center gap-2"},Jt=["src","alt"],Xt={key:1,class:"pt-4 border-t border-gray-100"},eo={class:"text-base md:text-lg font-semibold text-gray-800 mb-4"},to={key:0,class:"text-center py-4 text-gray-500"},oo={key:1,class:"space-y-3"},so={class:"text-right text-xs text-neutral-500"},ao={key:0},lo={key:0,class:"absolute -top-2.5 left-4 bg-primary-500 text-white text-xs font-semibold px-2 py-0.5 rounded-full"},no={key:0,class:"border-t pt-4 space-y-2"},ro={class:"flex justify-between text-gray-600"},io={key:0,class:"flex justify-between text-gray-600"},uo={class:"flex justify-between text-lg font-bold text-blue-600"},co={key:1,class:"text-center py-6"},po={class:"text-xl font-bold mb-2"},mo={class:"text-gray-500 mb-6"},fo={class:"flex justify-end w-full gap-3"},vo={__name:"Payment",setup(S){const{$bus:s}=X(),{t:p}=le(),f=Je("payment",null);let _=h([]),C=h(null),m=h(!1),b=h(0),w=h("TRY"),a=h(!1);f&&(console.log("Payment context available",f),_=f.cards,C=f.selectedCardId,m=f.canUseWallet,b=f.walletBalance,w=f.walletCurrency,a=f.isLoading);const k=h(!1),P=h([]),i=h(1),M=h(!1),U=F(()=>{if(!f||!f.paymentModel.value)return!1;const y=f.paymentModel.value;return f.canUseInstallments.value&&y.Currency==="TRY"&&C.value&&C.value!=="wallet"&&P.value.length>1}),n=async()=>{var q,oe,he,ye;if(!C.value||C.value==="wallet"){t();return}const y=_.value.find(se=>se.Id===C.value);if(!y||!y.BinNumber){t();return}const V=(q=f==null?void 0:f.paymentModel)==null?void 0:q.value;if(!V||V.Currency!=="TRY"){t();return}try{M.value=!0;const se=await Rt({BinNumber:y.BinNumber,Price:V.GrossPrice});(oe=se.data)!=null&&oe.IsSuccessful&&((ye=(he=se.data)==null?void 0:he.Data)!=null&&ye.InstallmentDetails)?(P.value=se.data.Data.InstallmentDetails.map((Y,be)=>({id:Y.InstallmentNumber,InstallmentNumber:Y.InstallmentNumber,label:Y.InstallmentNumber===1?p("payment.singlePayment"):p("payment.installment",{count:Y.InstallmentNumber}),monthly:Y.InstallmentNumber>1?Y.Price:null,total:Y.TotalPrice,Price:Y.Price,TotalPrice:Y.TotalPrice,badge:Y.InstallmentNumber<=3&&Y.InstallmentNumber>1?p("payment.sameAsFullPrice"):null,isChecked:be===0})),i.value=1,x(1,V.GrossPrice)):t()}catch(se){console.error("Failed to fetch installments:",se),t()}finally{M.value=!1}},t=()=>{var y;P.value=[],i.value=1,(y=f==null?void 0:f.paymentModel)!=null&&y.value&&x(1,f.paymentModel.value.GrossPrice)},x=(y,V)=>{f&&f.paymentModel.value&&(f.paymentModel.value={...f.paymentModel.value,PaidPrice:V,Installment:y})},I=h(null),N=y=>{console.log("selectCard",y),f?f.selectCard(y):C.value=y,f.canUseInstallments.value&&n()},d=y=>{i.value=y,P.value.forEach(q=>
1{q.isChecked=q.id===y});const V=P.value.find(q=>q.id===y);V&&x(V.InstallmentNumber,V.TotalPrice)},v=y=>{const V=y==null?void 0:y.toLowerCase();return V!=null&&V.includes("visa")?"/img/visa.svg":V!=null&&V.includes("master")?"/img/mastercard.svg":V!=null&&V.includes("discover")?"/img/discover.svg":V!=null&&V.includes("amex")?"/img/amex.svg":null},g=y=>w.value==="TRY"?`${y.toFixed(2)}₺`:`$${y.toFixed(2)}`,l=h(!1),B=()=>{l.value=!0},D=()=>{f?f.initiatePayment():s.emit("payment:initiate",{selectedCardId:C.value,installments:i.value})},T=()=>{k.value=!0},H=()=>{k.value=!1,t()},G=()=>{f&&f.fetchCards&&f.fetchCards()};return ee(()=>{s.on("payment:open-payment",T),s.on("payment:close-payment",H),s.on("payment:card-added",G),f&&f.fetchCards&&f.fetchCards()}),ve(()=>{s.off("payment:open-payment",T),s.off("payment:close-payment",H),s.off("payment:card-added",G)}),K(C,()=>{C.value&&C.value!=="wallet"?n():t()}),(y,V)=>(r(),ae(ne,{modelValue:k.value,"onUpdate:modelValue":V[2]||(V[2]=q=>k.value=q),title:y.$t("payment.title")},{body:L(()=>[j(_).length>0||j(m)?(r(),c("div",Kt,[e("div",Yt,[(r(!0),c(z,null,te(j(_),q=>(r(),ae(me,{key:q.Id,"model-value":j(C)===q.Id,label:`***${q.LastFourDigits}`,"is-bordered":!0,"onUpdate:modelValue":oe=>N(q.Id)},{trailing:L(()=>[e("div",Qt,[v(q.CardAssociationDisplay)?(r(),c("img",{key:0,src:v(q.CardAssociationDisplay),alt:q.CardAssociationDisplay,class:"w-10 h-6"},null,8,Jt)):R("",!0)])]),_:2},1032,["model-value","label","onUpdate:modelValue"]))),128)),j(m)?(r(),ae(me,{key:0,"model-value":j(C)==="wallet",label:`${j(b).toFixed(2)} ${j(w)}`,"is-bordered":!0,"onUpdate:modelValue":V[0]||(V[0]=q=>N("wallet")),class:"[&_span]:!text-white",style:{"background-image":'url("/img/wallet-bg.svg")',"background-size":"cover","background-position":"center"}},null,8,["model-value","label"])):R("",!0),u(Q,{onClick:B,variant:"secondary",class:"w-full mt-2"},{default:L(()=>[O(o(y.$t("payment.addNewCard")),1)]),_:1}),U.value?(r(),c("div",Xt,[e("h3",eo,o(y.$t("payment.installmentOptions")),1),M.value?(r(),c("div",to,o(y.$t("payment.loadingInstallments")),1)):(r(),c("div",oo,[(r(!0),c(z,null,te(P.value,q=>(r(),c("div",{key:q.id,class:"relative"},[u(me,{variant:"small","model-value":i.value===q.id,label:q.label,"is-bordered":!0,"onUpdate:modelValue":oe=>d(q.id)},{trailing:L(()=>[e("div",so,[q.monthly?(r(),c("div",ao,o(q.id)+" x ₺"+o(q.monthly.toLocaleString("tr-TR")),1)):R("",!0),e("div",null,"₺"+o(q.total.toLocaleString("tr-TR")),1)])]),_:2},1032,["model-value","label","onUpdate:modelValue"]),q.badge?(r(),c("div",lo,o(q.badge),1)):R("",!0)]))),128))]))])):R("",!0)]),I.value?(r(),c("div",no,[e("div",ro,[e("span",null,o(I.value.label),1),e("span",null,o(g(I.value.amount)),1)]),I.value.discount>0?(r(),c("div",io,[e("span",null,o(y.$t("payment.discount")),1),e("span",null,"-"+o(g(I.value.discount)),1)])):R("",!0),e("div",uo,[e("span",null,o(y.$t("payment.total")),1),e("span",null,o(g(I.value.total)),1)])])):R("",!0)])):(r(),c("div",co,[e("div",po,o(y.$t("payment.noCardsAvailable")),1),e("div",mo,o(y.$t("payment.addCardToContinue")),1),u(Q,{onClick:B,variant:"secondary",class:"w-full"},{default:L(()=>[O(o(y.$t("payment.addNewCard")),1)]),_:1})])),u(Ae,{modelValue:l.value,"onUpdate:modelValue":V[1]||(V[1]=q=>l.value=q)},null,8,["modelValue"])]),footer:L(()=>[e("div",fo,[u(Q,{variant:"primary",disabled:!j(C)||j(a),loading:j(a),onClick:D},{default:L(()=>[O(o(y.$t("payment.checkout")),1)]),_:1},8,["disabled","loading"])])]),_:1},8,["modelValue","title"]))}},go={class:"flex items-center gap-3"},ho={class:"text-neutral-300"},yo=ue({__name:"PlanFeature",props:{text:{}},setup(S){return(s,p)=>(r(),c("div",go,[p[0]||(p[0]=e("div",{class:"w-6 h-6 p-1 rounded-full bg-primary-100 flex items-center justify-center flex-shrink-0"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[e("path",{d:"M14.5306 5.03081L6.5306 13.0308C6.46092 13.1007 6.37813 13.1562 6.28696 13.1941C6.1958 13.2319 6.09806 13.2514 5.99935 13.2514C5.90064 13.2514 5.8029 13.2319 5.71173 13.1941C5.62057 13.1562 5.53778 13.1007 5.4681 13.0308L1.9681 9.53081C1.89833 9.46105 1.84299 9.37823 1.80524 9.28707C1.76748 9.19592 1.74805 9.09823 1.74805 8.99956C1.74805 8.9009 1.76748 8.80321 1.80524 8.71205C1.84299 8.6209 1.89833 8.53808 1.9681 8.46831C2.03786 8.39855 2.12069 8.34321 2.21184 8.30545C2.30299 8.2677 2.40069 8.24826 2.49935 8.24826C2.59801 8.24826 2.69571 8.2677 2.78686 8.30545C2.87801 8.34321 2.96083 8.39855 3.0306 8.46831L5.99997 11.4377L13.4693 3.96956C13.6102 3.82867 13.8013 3.74951 14.0006 3.74951C14.1999 3.74951 14.391 3.82867 14.5318 3.96956C14.6727 4.11046 14.7519 4.30156 14.7519 4.50081C14.7519 4.70007 14.6727 4.89117 14.5318 5.
103206L14.5306 5.03081Z",fill:"#0101FD"})])],-1)),e("span",ho,o(S.text),1)]))}}),bo=de(yo,[["__scopeId","data-v-58c0d353"]]),xo={class:"relative mx-auto w-full max-w-md max-h-full"},wo={class:"relative bg-white rounded-2xl shadow-2xl ring-1 ring-black/5 overflow-hidden"},_o={class:"pt-8 pb-4 px-6 text-center"},Co={class:"text-lg font-semibold text-gray-900"},$o={key:0,class:"text-xs text-gray-400 mt-1"},ko={key:0,class:"px-6 pb-6"},Po={key:0,class:"flex justify-center py-8"},Io={key:1,class:"flex flex-col gap-3"},Do=["onClick"],No={class:"font-medium text-gray-800 group-hover:text-primary transition-colors"},Bo={class:"ml-3 flex-shrink-0 inline-flex items-center px-3 py-1.5 rounded-lg text-sm font-bold bg-primary/10 text-primary group-hover:bg-primary group-hover:text-white transition-colors"},To={class:"px-6 pb-2"},Eo={class:"bg-gray-50/80 border border-gray-100 rounded-xl p-4"},Mo={class:"text-sm text-gray-600 leading-relaxed text-center"},Vo={key:0,class:"mt-3 flex items-center justify-between px-4 py-3 rounded-xl border border-gray-100"},Oo={class:"text-xs font-medium text-gray-500 uppercase tracking-wide"},So={class:"text-sm font-bold text-gray-900"},Lo={class:"flex gap-3 px-6 pb-6 pt-4"},Uo=ue({__name:"ProjectAccessView",setup(S){const{t:s}=le(),{$bus:p}=X(),f=Ce(),_=ce(),C=h(!0),m=h({}),b=h({}),w=h(!1),a=h(!1),k=h(!1),P=F(()=>_.profile),i=d=>{const v=d==null?void 0:d.AccessButtonAction,g=d==null?void 0:d.Options;return v==="GetSubscription"?!0:v!=="AccessContact"&&v!=="ShowOptions"?!1:!Array.isArray(g)||g.length===0?!0:g.every(l=>(l==null?void 0:l.Action)==="GetSubscription")},M=()=>{f.push("/premium/products"),N()},U=d=>{d.Action==="GetSubscription"?M():d.Action==="AccessContact"?k.value?n():I(d.Price):d.Action==="TopUpBalance"&&(f.push("/provider/payment"),t())},n=()=>{a.value=!0,dt(m.value.OfferKey).then(d=>{d.data.HasExceptionError||(b.value=d.data.Data.OfferMatchedProvider,_.fetchProfile(),p.emit("pool-agency-offer-message-pay",{OfferId:m.value.Id,Name:d.data.Data.Name,CompanyName:d.data.Data.CompanyName,OfferMatchedProvider:b.value}),x(d.data.Data.Name),setTimeout(()=>{N(),a.value=!1},200))}).catch(()=>{a.value=!1,N()})},t=()=>{p.emit("close-offer-access-pop-all"),p.emit("close-offer-detail-pop"),N()},x=d=>{var v,g;if((g=(v=b.value)==null?void 0:v.Message)!=null&&g.Id){f.push({path:"/provider/messages",query:{messageId:b.value.Message.Id}});return}f.push({path:"/provider/messages",query:{offerId:m.value.Id,offerKey:m.value.OfferKey,offerMatchedProviderId:b.value.Id,offerName:m.value.Name??m.value.Title,company:m.value.CompanyName}})},I=d=>{a.value=!0,ut({OfferId:m.value.Id,OfferMatchedProviderId:b.value.Id,OfferKey:m.value.OfferKey}).then(v=>{const g=v.data;g.HasExceptionError||(_.fetchProfile(),p.emit("agency-offer-message-pay",{OfferId:m.value.Id,Name:g.Data.Name,CompanyName:g.Data.CompanyName,OfferMatchedProvider:g.Data.OfferMatchedProvider}),x(g.Data.Name)),a.value=!1,setTimeout(()=>{t()},100)}).catch(v=>{a.value=!1,p.emit("notification",{message:v.response.data.Message,type:"error"}),setTimeout(()=>{t()},100)})},N=()=>{w.value=!1,b.value={},m.value={},C.value=!0,k.value=!1,a.value=!1};return K(w,d=>{d&&setTimeout(()=>{C.value=!1},300)}),ee(()=>{p.on("open-project-access-view",d=>{var v;if(i((v=d==null?void 0:d.Offer)==null?void 0:v.ButtonState)){M();return}b.value=d.MatchedProvider,m.value=d.Offer,k.value=d.IsPool,setTimeout(()=>{w.value=!0},20)}),p.on("close-offer-access-pop",()=>{N()})}),(d,v)=>{var g;return w.value?(r(),c("div",{key:0,class:"flex bg-black/50 backdrop-blur-[2px] overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-[110] justify-center items-center w-full md:inset-0 h-[calc(100%)] max-h-full px-4",onClick:J(t,["self"])},[e("div",xo,[e("div",wo,[e("button",{onClick:t,type:"button",class:"absolute right-4 top-4 z-10 text-gray-400 hover:text-gray-700 hover:bg-gray-100 rounded-full h-8 w-8 inline-flex justify-center items-center transition-colors"},[...v[1]||(v[1]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 14 14"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1),e("span",{class:"sr-only"},"Close",-1)])]),e("div",_o,[v[2]||(v[2]=e("div",{class:"w-14 h-14 mx-auto mb-4 rounded-2xl bg-primary/10 flex items-center justify-center"},[e("svg",{class:"w-7 h-7 text-primary",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})])],-1)),e("h3",Co,o(m.value.ButtonState.AccessButtonAction==="ShowOptions"?d.$t("oneShot.header"):d.$t("accessOffer.header")),1),m.value.OfferKey?(r(),c("p",$o,"#"+o(m.value.OfferKey),1)):R("",!0)]),m.value.ButtonState.AccessButtonAction==="ShowOptions"?(r(),c("div",ko,[C.value?(r(),c("div",Po,[...v[3]||(v[3]=[e("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):(r(),c("div",Io,[(r(!0),c(z,null,te(m.value.ButtonState.Options,l=>(r(),c("button",{key:l.Action,onClick:B=>U(l),class:"w-full flex items-center justify-between p-4 bg-gray-50/60 border border-gray-200 rounded-xl transition-all duration-200 group hover:border-primary hover:bg-primary/5 hover:shadow-sm text-left"},[e("span",No,o(l.Title),1),e("span",Bo,o(l.Price)+" "+o(l.Currency),1)],8,Do))),128))]))])):R("",!0),m.value.ButtonState.AccessButtonAction==="AccessContact"?(r(),c(z,{key:1},[e("div",To,[e("div",Eo,[e("p",Mo,o(m.value.ButtonState.Options[0].Description),1)]),((g=P.value)==null?void 0:g.WalletBalance)!==void 0?(r(),c("div",Vo,[e("span",Oo,o(d.$t("accessOffer.walletBalance")),1),e("span",So,o(P.value.WalletBalance)+" "+o(P.value.WalletCurrency),1)])):R("",!0)]),e("div",Lo,[e("button",{type:"button",onClick:t,class:"flex-1 px-4 py-2.5 rounded-lg border border-gray-200 text-sm font-medium text-gray-600 hover:bg-gray-50 transition-colors"},o(d.$t("general.close")),1),u(Q,{class:"flex-1 justify-center",loading:a.value,onClick:v[0]||(v[0]=l=>U(m.value.ButtonState.Options[0]))},{default:L(()=>[O(o(d.$t("general.approve")),1)]),_:1},8,["loading"])])],64)):R("",!0)])])])):R("",!0)}}}),jo={class:"space-y-4"},Ao={class:"text-neutral-500"},Fo={class:"space-y-2"},Ro={class:"flex items-center justify-center flex-shrink-0"},Ho={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"w-3 h-3 md:w-6 md:h-6"},qo={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"w-3 h-3 md:w-6 md:h-6"},Wo={__name:"NewMatchPopUp",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(S,{emit:s}){const{t:p}=le(),{$bus:f}=X(),_=S,C=s,m=h(!1),b=h(""),w=h(!1),a=h(""),k=h(""),P=h(""),i=[{value:"EXPENSIVE_PRICE",label:p("offerNewMatchPop.expensivePrices")},{value:"AGENCIES_IRRELEVANT",label:p("offerNewMatchPop.agenciesIrrelevant")},{value:"COULD_NOT_GET_RETURN_I_WANT",label:p("offerNewMatchPop.noReturn")},{value:"WANT_TO_MATCH_UPPER_SEGMENT_AGENCIES",label:p("offerNewMatchPop.topSegment")}],M={EXPENSIVE_PRICE:p("extraMatch.priceExpensive"),AGENCIES_IRRELEVANT:p("extraMatch.providersIrrelevant"),COULD_NOT_GET_RETURN_I_WANT:p("extraMatch.notResponse"),WANT_TO_MATCH_UPPER_SEGMENT_AGENCIES:p("extraMatch.premiumSegment"),OTHER:p("general.otherCategory")};K(()=>_.modelValue,I=>
1{m.value=I}),K(a,I=>{I!=="OTHER"&&(b.value="")}),K(m,I=>{I&&(a.value="",b.value="")});const U=I=>{a.value=I},n=()=>{m.value=!1,C("update:modelValue",!1)},t=()=>{if(a.value.length>0){let I=M[a.value];if(a.value==="OTHER"){if(b.value.length===0)return f.emit("notification",{message:p("general.fillError"),type:"error"}),!1;I=b.value}w.value=!0,xt({OfferKey:k.value,Type:a.value,Text:I}).then(N=>{w.value=!1,N.data.HasExceptionError===!1&&n()}).catch(()=>{w.value=!1})}else f.emit("notification",{message:p("general.fillError"),type:"error"})},x=I=>{m.value=!0,k.value=I.OfferKey,P.value=I.Id};return ee(()=>{f.on("offer-new-match-open",x)}),Ne(()=>{f.off("offer-new-match-open",x)}),(I,N)=>(r(),ae(ne,{modelValue:m.value,"onUpdate:modelValue":N[4]||(N[4]=d=>m.value=d),title:j(p)("offerNewMatchPop.modalTitle"),variant:"standart"},{footer:L(()=>[u(Q,{class:"flex-1",onClick:N[3]||(N[3]=d=>n()),variant:"red"},{default:L(()=>[O(o(j(p)("general.cancel")),1)]),_:1}),u(Q,{class:"flex-1",isLoading:w.value,onClick:t},{default:L(()=>[O(o(j(p)("general.save")),1)]),_:1},8,["isLoading"])]),default:L(()=>[e("div",jo,[e("div",null,[e("p",Ao,o(j(p)("offerNewMatchPop.modalDescription"))+" "+o(j(p)("offerNewMatchPop.reasonPrompt")),1)]),e("div",Fo,[(r(),c(z,null,te(i,d=>u(me,{key:d.value,label:d.label,modelValue:a.value===d.value,"onUpdate:modelValue":v=>v&&U(d.value)},null,8,["label","modelValue","onUpdate:modelValue"])),64)),e("div",{class:"flex items-center gap-3 cursor-pointer",onClick:N[2]||(N[2]=d=>U("OTHER"))},[e("div",Ro,[a.value==="OTHER"?(r(),c("svg",Ho,[...N[5]||(N[5]=[e("path",{d:"M21.75 12C21.75 13.9284 21.1782 15.8134 20.1068 17.4168C19.0355 19.0202 17.5127 20.2699 15.7312 21.0078C13.9496 21.7458 11.9892 21.9389 10.0979 21.5627C8.20656 21.1865 6.46927 20.2579 5.10571 18.8943C3.74215 17.5307 2.81355 15.7934 2.43735 13.9021C2.06114 12.0108 2.25422 10.0504 2.99218 8.26884C3.73013 6.48726 4.97982 4.96452 6.58319 3.89317C8.18657 2.82183 10.0716 2.25 12 2.25C14.585 2.25273 17.0634 3.28084 18.8913 5.10872C20.7192 6.93661 21.7473 9.41498 21.75 12Z",fill:"#0101FD"},null,-1)])])):(r(),c("svg",qo,[...N[6]||(N[6]=[e("path",{d:"M21.75 12C21.75 13.9284 21.1782 15.8134 20.1068 17.4168C19.0355 19.0202 17.5127 20.2699 15.7312 21.0078C13.9496 21.7458 11.9892 21.9389 10.0979 21.5627C8.20656 21.1865 6.46927 20.2579 5.10571 18.8943C3.74215 17.5307 2.81355 15.7934 2.43735 13.9021C2.06114 12.0108 2.25422 10.0504 2.99218 8.26884C3.73013 6.48726 4.97982 4.96452 6.58319 3.89317C8.18657 2.82183 10.0716 2.25 12 2.25C14.585 2.25273 17.0634 3.28084 18.8913 5.10872C20.7192 6.93661 21.7473 9.41498 21.75 12ZM20.25 12C20.25 10.3683 19.7661 8.77325 18.8596 7.41655C17.9531 6.05984 16.6646 5.00242 15.1571 4.37799C13.6497 3.75357 11.9909 3.59019 10.3905 3.90852C8.79017 4.22685 7.32016 5.01259 6.16637 6.16637C5.01259 7.32015 4.22685 8.79016 3.90853 10.3905C3.5902 11.9908 3.75358 13.6496 4.378 15.1571C5.00242 16.6646 6.05984 17.9531 7.41655 18.8596C8.77326 19.7661 10.3683 20.25 12 20.25C14.1873 20.2475 16.2843 19.3775 17.8309 17.8309C19.3775 16.2843 20.2475 14.1873 20.25 12Z",fill:"#C4C6C7"},null,-1)])]))]),u(Pe,{modelValue:b.value,"onUpdate:modelValue":N[0]||(N[0]=d=>b.value=d),disabled:a.value!=="OTHER",placeholder:j(p)("offerNewMatchPop.otherReason"),class:"flex-1 w-full",onClick:N[1]||(N[1]=J(()=>{},["stop"]))},null,8,["modelValue","disabled","placeholder"])])])])]),_:1},8,["modelValue","title"]))}};function Go(S){return Be.get(`v1/OfferOptionalProvider/${S}`)}function zo(S){return Be.post("v1/OfferOptionalProvider",S)}var Zo={};const Ko={class:"relative bg-white"},Yo={key:0,class:"p-4 text-center"},Qo={key:1},Jo={class:"w-full pt-2 pb-4"},Xo={class:"flex items-center gap-3"},es={class:"w-[42px] h-[42px] min-w-[42px] border rounded p-0.5 border-grayscale-400"},ts=["src","alt"],os={class:"text-sm font-medium text-neutral-500"},ss={class:"w-full pb-4"},as={class:"text-sm font-semibold text-neutral-500 block mb-2"},ls={class:"w-full pb-4"},ns={class:"text-sm font-semibold text-neutral-500 block mb-2"},rs={class:"w-full pb-4"},is={class:"text-sm font-semibold text-neutral-500 block mb-2"},us={class:"space-y-2"},ds={class:"flex gap-4"},cs={__name:"SendDirectPopUp",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(S,{emit:s}){const{$bus:p}=X(),{t:f}
1=le(),_=S,C=s,m=h(!1),b=h(!1),w=h(!1),a=h({}),k=h(""),P=h(""),i=h(""),M=h(!0),U=h(""),n=F(()=>a.value.Offers?a.value.Offers.map(d=>({value:d.Id,label:d.OptionText})):[]);K(()=>_.modelValue,d=>{m.value=d}),K(m,d=>{d||N(),C("update:modelValue",d)});const t=async d=>{b.value=!0;try{const v=await Go(d);a.value=v.data.Data,k.value=d,P.value=f("sendProjectToProvider.messageDefault"),b.value=!1}catch(v){b.value=!1,console.error("Error loading popup data:",v)}},x=async()=>{if(!i.value||i.value.length===0){p.emit("notification",{message:f("sendProjectToProvider.selectProjectError"),type:"error"});return}w.value=!0;try{(await zo({Message:P.value,ProviderId:k.value,OfferId:i.value,IsSendOtherProviders:M.value})).data.HasExceptionError||(w.value=!1,m.value=!1,p.emit("notification",{message:f("sendProjectToProvider.successMessage"),type:"success"}))}catch{w.value=!1,m.value=!1,p.emit("notification",{message:f("sendProjectToProvider.errorMessage"),type:"error"})}},I=()=>{m.value=!1},N=()=>{a.value={},b.value=!1,i.value="",P.value="",w.value=!1,k.value="",M.value=!0};return ee(()=>{U.value=Zo.basePhotoUrl||"",p.on("send-project-pop-up",d=>{t(d),m.value=!0})}),Ne(()=>{p.off("send-project-pop-up")}),(d,v)=>(r(),c("div",null,[u(ne,{variant:"standart",modelValue:m.value,"onUpdate:modelValue":v[5]||(v[5]=g=>m.value=g),title:d.$t("sendProjectToProvider.sendProject"),persistent:!0},{default:L(()=>[e("div",Ko,[b.value?(r(),c("div",Yo,[e("p",null,o(d.$t("common.loading")),1)])):(r(),c("div",Qo,[e("div",Jo,[e("div",Xo,[e("div",es,[e("img",{src:U.value+"100x100/"+a.value.ProviderImageUrl,alt:a.value.ProviderName,class:"w-full h-full object-cover rounded"},null,8,ts)]),e("span",os,o(a.value.ProviderName),1)])]),e("div",ss,[e("label",as,o(d.$t("sendProjectToProvider.message")),1),u(Le,{modelValue:P.value,"onUpdate:modelValue":v[0]||(v[0]=g=>P.value=g),placeholder:d.$t("sendProjectToProvider.messagePlaceholder"),rows:4,class:"w-full"},null,8,["modelValue","placeholder"])]),e("div",ls,[e("label",ns,o(d.$t("sendProjectToProvider.selectProject")),1),u(wt,{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=g=>i.value=g),options:n.value,placeholder:d.$t("sendProjectToProvider.select"),variant:"bordered",class:"w-full max-w-[300px]"},null,8,["modelValue","options","placeholder"])]),e("div",rs,[e("label",is,o(d.$t("sendProjectToProvider.selectedProviderText",[a.value.ProviderName])),1),e("div",us,[u(me,{label:d.$t("sendProjectToProvider.yes"),"model-value":M.value===!0,"onUpdate:modelValue":v[2]||(v[2]=g=>M.value=!0)},null,8,["label","model-value"]),u(me,{label:d.$t("sendProjectToProvider.no"),"model-value":M.value===!1,"onUpdate:modelValue":v[3]||(v[3]=g=>M.value=!1)},null,8,["label","model-value"])])]),e("div",ds,[u(Q,{class:"w-full",onClick:v[4]||(v[4]=g=>I()),variant:"red"},{default:L(()=>[O(o(d.$t("sendProjectToProvider.cancel")),1)]),_:1}),u(Q,{class:"w-full",loading:w.value,disabled:w.value||!i.value,onClick:x},{default:L(()=>[O(o(d.$t("sendProjectToProvider.send")),1)]),_:1},8,["loading","disabled"])])]))])]),_:1},8,["modelValue","title"])]))}},ps={key:0},ms={class:"px-5 font-light dark:border-gray-700"},fs={class:""},vs={class:"pl-3"},gs={class:"bg-edv-primary-50 text-white rounded-lg p-2 mb-8"},hs={key:0,class:"agency-input-header-l mt-2 text-edv-primary-50 text-sm"},ys={key:1,class:"agency-input-header-l mt-2 text-edv-primary-50 text-sm"},bs={key:2,class:"agency-input-header-l mt-2 text-edv-primary-50 text-sm"},xs=["onChange","onUpdate:modelValue"],ws={key:0,class:"opacity-50",value:"",selected:"",disabled:"",hidden:""},_s=["value"],Cs=["value"],$s={class:"flex justify-end gap-4 px-4"},ks={__name:"BestCategoryPopUp",props:{isBestCategoryPopUp:Boolean,categories:Array,selectedCategories:Array},emits:["close","save"],setup(S,{emit:s}){const p=S,f=s,{t:_}=le(),{$bus:C}=X(),m=h(!1),b=h(!1),w=h([{Id:"",Name:""},{Id:"",Name:""},{Id:"",Name:""}]);K(()=>p.isBestCategoryPopUp,i=>{m.value=i,i&&(w.value=JSON.parse(JSON.stringify(p.selectedCategories)))});const a=()=>{f("close")},k=async()=>{const i=w.value.map(U=>U.Id).filter(U=>U),M=new Set(i);if(i.length!==M.size){C.emit("notification",{message:_("opportunityPreferences.sameBestCategory"),type:"error"});return}b.value=!0;try{const U=w.value.map((n,t)=>({CategoryId:n.Id,OrderNumber:t+1})).filter(n=>n.CategoryId);await _t({Categories:U}),C.emit("notification",{message:_("opportunityPreferences.successMessage"),type:"success"}),a()}catch{C.emit("notification",{message:_("opportunityPreferences.bestCategoryErr"),type:"error"})}finally{b.value=!1}},P=(i,M)=>{const U=i.target.options[i.target.selectedIndex];w.value[M]={Id:i.target.value,Name:U.text}};return(i,M)=>{const U=Q,n=ne;return m.value?(r(),c("div",ps,[u(n,{open:m.value,onClose:a,title:j(_)("opportunityPreferences.areasOfExpertise")},{default:L(()=>[e("div",ms,[e("div",fs,[e("div",vs,[e("div",gs,o(j(_)("opportunityPreferences.selectBestCategories")),1),(r(),c(z,null,te(3,t=>e("div",{key:t,class:"agency-input-line mb-4"},[t===1?(r(),c("div",hs,o(j(_)("opportunityPreferences.bestArea")),1)):t===2?(r(),c("div",ys,o(j(_)("opportunityPreferences.goodArea")),1)):(r(),c("div",bs,o(j(_)("opportunityPreferences.goodArea")),1)),S.categories?Xe((r(),c("select",{key:3,onChange:x=>P(x,t-1),class:"select-pop w-50","onUpdate:modelValue":x=>w.value[t-1].Id=x},[w.value[t-1].Id===""?(r(),c("option",ws,o(j(_)("opportunityPreferences.choose
1Expertise")),1)):R("",!0),w.value[t-1].Id!==""?(r(),c("option",{key:1,value:w.value[t-1].Id,selected:"",disabled:"",hidden:""},o(w.value[t-1].Name),9,_s)):R("",!0),(r(!0),c(z,null,te(S.categories.filter(x=>x.CategoryTranslation),(x,I)=>(r(),c("option",{value:x.Id,key:x.Id+I+1e3},o(x.CategoryTranslation.Name),9,Cs))),128))],40,xs)),[[et,w.value[t-1].Id]]):R("",!0)])),64))]),M[1]||(M[1]=e("div",null,null,-1)),e("div",$s,[u(U,{text:j(_)("opportunityPreferences.saveButton"),isLoading:b.value,onClick:k},null,8,["text","isLoading"]),u(U,{onClick:M[0]||(M[0]=t=>a()),variant:"popup"},{default:L(()=>[O(o(j(_)("opportunityPreferences.cancelButton")),1)]),_:1})])])])]),_:1},8,["open","title"])])):R("",!0)}}},Ps={class:"px-3 pb-3"},Is={class:"mx-3 mb-4 rounded-xl border border-[#C7CCFE] bg-gradient-to-r from-[#EEF0FE] to-[#E6F0FF] p-4"},Ds={class:"flex items-start gap-3"},Ns={class:"flex-1"},Bs={class:"text-sm font-semibold text-neutral-500 mb-0.5"},Ts={class:"text-xs text-[#636363] leading-5"},Es={class:"w-full h-auto pt-0 pr-3 pb-3 pl-3"},Ms={class:"mb-2 text-gray-700 text-sm font-normal inline-block"},Vs={class:"w-full h-auto pt-0 pr-3 pb-3 pl-3"},Os={class:"mb-2 text-gray-700 text-sm font-normal inline-block"},Ss={class:"w-full h-auto pt-0 pr-3 pb-3 pl-3"},Ls={class:"mb-2 text-gray-700 text-sm font-normal inline-block"},Us={class:"w-full h-auto pt-0 pr-3 pb-3 pl-3"},js={class:"mb-2 text-gray-700 text-sm font-normal inline-block"},As="https://discord.com/api/webhooks/1290270809419550732/LPC3tY9kCTeZU4tkbxmEq4JxTS_heuCKnIWn2Pclrs0ibC7CsLzKcsRxGqTD8BGaPEwv",Fs="agreement_notify_pending_",De=500,Rs=ue({__name:"AgreementNotifyPopUp",setup(S){const{t:s}=le(),{$bus:p}=X(),f=ce(),_=ge(),C=h(!1),m=h(!1),b=h(null),w=h(null),a=h(null),k=h(""),P=h(null),i=h("USD"),M=h("one_time"),U=F(()=>[{text:"USD",value:"USD"},{text:"EUR",value:"EUR"},{text:"GBP",value:"GBP"},{text:"TRY",value:"TRY"}]),n=F(()=>[{text:s("recurring.monthly"),value:"monthly"},{text:s("recurring.yearly"),value:"yearly"},{text:s("recurring.one_time"),value:"one_time"}]),t=F(()=>{var l,B;return((l=_.currentUser)==null?void 0:l.Id)??((B=f.profile)==null?void 0:B.Id)??""}),x=l=>`${Fs}${t.value||"anon"}_${l}`,I=l=>{if(!(typeof window>"u"))try{window.localStorage.setItem(x(l),new Date().toISOString())}catch{}},N=()=>{var T,H,G;const l=f.profile,B=l==null?void 0:l.Provider,D=_.currentUser??l;return{embeds:[{title:"🤝 Anlaşma Bildirimi — 500 ₺ Onay Talebi",color:6909151,fields:[{name:"🏢 Ajans",value:(B==null?void 0:B.CompanyNickName)||(B==null?void 0:B.Name)||"-",inline:!0},{name:"🆔 User ID",value:String((D==null?void 0:D.Id)??(l==null?void 0:l.Id)??"-"),inline:!0},{name:"📧 E-posta",value:(D==null?void 0:D.Email)||(l==null?void 0:l.Email)||"-",inline:!1},{name:"📞 Telefon",value:(l==null?void 0:l.CellPhoneNumber)||(D==null?void 0:D.CellPhoneNumber)||"-",inline:!0},{name:"📌 İstek No",value:((T=a.value)==null?void 0:T.offerKey)||"-",inline:!0},{name:"🏷 Marka / Firma",value:((H=a.value)==null?void 0:H.brandName)||"-",inline:!0},{name:"👤 Kişi",value:((G=a.value)==null?void 0:G.personName)||"-",inline:!0},{name:"💰 Anlaşma Tutarı",value:`${P.value} ${i.value} / ${M.value}`,inline:!1},{name:"📝 Açıklama",value:k.value||"-",inline:!1},{name:"🎁 Ödül",value:`${De} ₺ — admin onayı bekleniyor`,inline:!1}],timestamp:new Date().toISOString()}]}},d=()=>{k.value="",P.value=null,b.value=null,w.value=null,a.value=null,i.value="USD",M.value="one_time",m.value=!1},v=l=>{d(),l&&(C.value=!1)},g=async()=>{var l,B,D,T,H,G;if(m.value=!0,!P.value||P.value<=0){p.emit("notification",{type:"error",message:s("general.fillError")}),m.value=!1;return}try{const y=w.value||b.value,V=await Ct({Data:{OfferId:y,Text:k.value,RecurringPeriod:M.value,Price:P.value,Currency:i.value}});if(V.data.HasExceptionError){console.error("AgreementNotify API response:",V.data);const q=((l=V.data)==null?void 0:l.ExceptionMessage)||((B=V.data)==null?void 0:B.Message)||((D=V.data)==null?void 0:D.ErrorMessage)||((G=(H=(T=V.data)==null?void 0:T.Errors)==null?void 0:H[0])==null?void 0:G.Message)||"API Exception";throw new Error(q)}try{await $fetch("/api/discord/webhook",{method:"POST",body:{webhookUrl:As,payload:N()}})}catch(q){console.warn("AgreementNotify discord webhook failed:",q)}b.value&&I(b.value),p.emit("notification",{type:"success",message:s("agreementNotify.toastSuccess",{amount:De.toLocaleStr
1ing("tr-TR")})}),v(!0)}catch(y){console.error("AgreementNotify post error:",y),p.emit("notification",{type:"error",message:y!=null&&y.message?`${s("agreement.notifyError")}: ${y.message}`:s("agreement.notifyError")})}finally{m.value=!1}};return ee(()=>{p.on("open-agreement-notify",l=>{typeof l=="string"?(b.value=l,w.value=null,a.value={id:l}):l&&typeof l=="object"&&(b.value=l.id,w.value=l.offerId??null,a.value=l),C.value=!0})}),(l,B)=>{const D=Pe,T=Ue,H=Q,G=ne;return r(),ae(G,{modelValue:C.value,"onUpdate:modelValue":B[5]||(B[5]=y=>C.value=y),title:l.$t("anlasma-bildir"),variant:"standart",closeable:!1,"close-on-esc":!0,onClose:B[6]||(B[6]=y=>v(!1))},{body:L(()=>[e("div",Ps,[e("div",Is,[e("div",Ds,[B[7]||(B[7]=e("div",{class:"flex-shrink-0 w-8 h-8 rounded-full bg-[#0101FD]/15 flex items-center justify-center"},[e("span",{class:"text-[#0101FD] text-base font-bold"},"₺")],-1)),e("div",Ns,[e("p",Bs,o(l.$t("agreementNotify.popupInfoTitle")),1),e("p",Ts,o(l.$t("agreementNotify.popupInfoDescription")),1)])])]),e("div",Es,[e("span",Ms,o(l.$t("productEdit.price")),1),u(D,{type:"number",class:"w-full",modelValue:P.value,"onUpdate:modelValue":B[0]||(B[0]=y=>P.value=y),modelModifiers:{number:!0},placeholder:l.$t("productEdit.price")},null,8,["modelValue","placeholder"])]),e("div",Vs,[e("span",Os,o(l.$t("productEdit.currency")),1),u(T,{class:"w-full",options:U.value,modelValue:i.value,"onUpdate:modelValue":B[1]||(B[1]=y=>i.value=y),placeholder:l.$t("productEdit.currency")},null,8,["options","modelValue","placeholder"])]),e("div",Ss,[e("span",Ls,o(l.$t("productEdit.recurringPeriod")),1),u(T,{class:"w-full",options:n.value,modelValue:M.value,"onUpdate:modelValue":B[2]||(B[2]=y=>M.value=y),placeholder:l.$t("productEdit.recurringPeriod")},null,8,["options","modelValue","placeholder"])]),e("div",Us,[e("span",js,o(l.$t("serviceDetail.description")),1),u(D,{class:"w-full",modelValue:k.value,"onUpdate:modelValue":B[3]||(B[3]=y=>k.value=y),placeholder:l.$t("productEdit.descPlaceholder")},null,8,["modelValue","placeholder"])])])]),footer:L(({close:y})=>[u(H,{onClick:B[4]||(B[4]=V=>v(!0)),variant:"red",class:"w-full",disabled:m.value},{default:L(()=>[O(o(l.$t("general.cancel")),1)]),_:1},8,["disabled"]),u(H,{onClick:g,variant:"main",class:"w-full",loading:m.value},{default:L(()=>[O(o(l.$t("general.sendApprove")),1)]),_:1},8,["loading"])]),_:1},8,["modelValue","title"])}}}),Hs={key:0},qs={class:"px-3 pb-3"},Ws={class:"py-5 px-5 font-light border-b border-gray-200 dark:border-gray-700"},Gs={class:""},zs={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},Zs={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},Ks={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},Ys={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},Qs={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},Js={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},Xs={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},ea={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},ta={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},oa={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},sa={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},aa={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},la={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},na={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},ra={class:"w-full h-auto overflow-hidden pt-0 pr-3 pb-3 pl-3"},ia={class:"mb-2 text-edv-primary-50 text-sm font-normal inline-block"},ua={class:"flex justify-end gap-4 px-4"},da={__name:"BillingInfoPop",props:{isBillingInfoPopUp:Boolean,billingInfo:Object,countries:Array},emits:["close","save"],setup(S,{emit:s}){const p=S,f=s,{t:_}=le(),{$bus:C}=X(),m=h(!1),b=h(!1),w=h(!1),a=h(null),k=h([]);K(()=>p.isBillingInfoPopUp,n=>{m.value=n,n&&(a.value=JSON.parse(JSON.stringify(p.billingInfo)),P(),i())});const P=async()=>{try{const n=await Nt();k.value=n.data.Data.map(t=>({value:t.Id,text:t.Name}))}catch(n){console.error("Error loading countries:",n)}},i=async()=>{try{const n=await Pt();a.value=n.data.Data}catch(n){console.error("Error loading billing info:",n)}},M=n=>{m.value=!1,f("close",n)},U=async()=>
1{if(a.value.CountryId==="5e9b717aa602024e8c66f68a"){if(!Bt(a.value.TaxNumber)&&!Tt(a.value.TaxNumber)){C.emit("notification",{type:"error",message:_("billingInfo.taxError")});return}}else if(!a.value.LegalName||a.value.LegalName.length===0||!a.value.LongAddress||a.value.LongAddress.length===0){C.emit("notification",{type:"error",message:$t("billingInfo.fillRequiredFields"),title:$t("common.error")});return}try{b.value=!0,w.value=!0,a.value.IsCompany=!0;try{const t=await Dt();t.data&&t.data.Data}catch(t){console.error("Error updating user:",t)}const n=await It({Data:a.value});n&&n.data&&n.data.IsSuccessful&&(C.emit("notification",{type:"success",message:_("billingInfo.billingInfoSaved")}),m.value=!1,f("save",a.value))}catch(n){console.error("Error saving billing info:",n),C.emit("notification",{type:"error",message:_("billingInfo.billingInfoError")})}finally{b.value=!1,w.value=!1}};return(n,t)=>{const x=Ue,I=Pe,N=Le,d=Q,v=ne,g=kt;return r(),c("div",null,[u(g,null,{default:L(()=>[u(v,{modelValue:m.value,onClose:t[9]||(t[9]=l=>M(!1)),title:n.$t("billingInfo.title")},{default:L(()=>[a.value!=null?(r(),c("div",Hs,[e("div",qs,[e("div",Ws,[e("div",Gs,[e("div",null,[e("div",zs,[e("span",Zs,o(n.$t("billingInfo.country")),1),u(x,{class:"w-full",options:k.value,modelValue:a.value.CountryId,"onUpdate:modelValue":t[0]||(t[0]=l=>a.value.CountryId=l)},null,8,["options","modelValue"])]),e("div",Ks,[e("span",Ys,o(n.$t("billingInfo.city")),1),u(I,{class:"w-full",modelValue:a.value.City,"onUpdate:modelValue":t[1]||(t[1]=l=>a.value.City=l),placeholder:n.$t("billingInfo.cityPlaceholder")},null,8,["modelValue","placeholder"])]),e("div",Qs,[e("span",Js,o(n.$t("billingInfo.districtOptional")),1),u(I,{class:"w-full",modelValue:a.value.District,"onUpdate:modelValue":t[2]||(t[2]=l=>a.value.District=l),placeholder:n.$t("billingInfo.districtOptionalPlaceholder")},null,8,["modelValue","placeholder"])]),e("div",Xs,[e("span",ea,o(n.$t("billingInfo.companyLegalName")),1),u(I,{class:"w-full",modelValue:a.value.LegalName,"onUpdate:modelValue":t[3]||(t[3]=l=>a.value.LegalName=l),placeholder:n.$t("billingInfo.companyLegalNamePlaceholder")},null,8,["modelValue","placeholder"])]),e("div",ta,[e("span",oa,o(n.$t("billingInfo.taxNumber")),1),u(I,{class:"w-full",modelValue:a.value.TaxNumber,"onUpdate:modelValue":t[4]||(t[4]=l=>a.value.TaxNumber=l),placeholder:n.$t("billingInfo.taxNumberPlaceholder")},null,8,["modelValue","placeholder"])]),e("div",sa,[e("span",aa,o(n.$t("billingInfo.taxAdminOptional")),1),u(I,{class:"w-full",modelValue:a.value.TaxOffice,"onUpdate:modelValue":t[5]||(t[5]=l=>a.value.TaxOffice=l),placeholder:n.$t("billingInfo.taxAdminOptionalPlaceholder")},null,8,["modelValue","placeholder"])]),e("div",la,[e("span",na,o(n.$t("billingInfo.zipCodeOptional")),1),u(I,{class:"w-full",modelValue:a.value.ZipCode,"onUpdate:modelValue":t[6]||(t[6]=l=>a.value.ZipCode=l),placeholder:n.$t("billingInfo.zipCodeOptionalPlaceholder")},null,8,["modelValue","placeholder"])]),e("div",ra,[e("span",ia,o(n.$t("billingInfo.companyLegalAddress")),1),u(N,{class:"w-full",modelValue:a.value.LongAddress,"onUpdate:modelValue":t[7]||(t[7]=l=>a.value.LongAddress=l),placeholder:n.$t("billingInfo.addressPlaceholder")},null,8,["modelValue","placeholder"])])])])]),e("div",ua,[u(d,{text:n.$t("billingInfo.save"),isLoading:b.value,onClick:U},null,8,["text","isLoading"]),u(d,{onClick:t[8]||(t[8]=l=>M(!1)),variant:"popup"},{default:L(()=>[O(o(n.$t("billingInfo.cancel")),1)]),_:1})])])])):R("",!0)]),_:1},8,["modelValue","title"])]),_:1})])}}},ca={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},Fe={__name:"CampaignsIcon",setup(S){return(s,p)=>(r(),c("svg",ca,[...p[0]||(p[0]=[e("path",{d:"M13.98 4.13437L8.48 1.125C8.33305 1.0438 8.16789 1.00121 8 1.00121C7.83211 1.00121 7.66695 1.0438 7.52 1.125L2.02 4.13562C1.86293 4.22156 1.73181 4.3481 1.64034 4.50201C1.54888 4.65593 1.50041 4.83158 1.5 5.01062V10.9881C1.50041 11.1672 1.54888 11.3428 1.64034 11.4967C1.73181 11.6506 1.86293 11.7772 2.02 11.8631L7.52 14.8737C7.66695 14.9549 7.83211 14.9975 8 14.9975C8.16789 14.9975 8.33305 14.9549 8.48 14.8737L13.98 11.8631C14.1371 11.7772 14.2682 11.6506 14.3597 11.4967C14.4511 11.3428 14.4996 11.1672 14.5 10.9881V5.01125C14.4999 4.83188 14.4516 4.65584 
114.3601 4.50157C14.2686 4.34729 14.1373 4.22046 13.98 4.13437ZM8 2L13.0212 4.75L11.1606 5.76875L6.13875 3.01875L8 2ZM8 7.5L2.97875 4.75L5.0975 3.59L10.1187 6.34L8 7.5ZM2.5 5.625L7.5 8.36125V13.7231L2.5 10.9887V5.625ZM13.5 10.9862L8.5 13.7231V8.36375L10.5 7.26937V9.5C10.5 9.6326 10.5527 9.75978 10.6464 9.85355C10.7402 9.94732 10.8674 10 11 10C11.1326 10 11.2598 9.94732 11.3536 9.85355C11.4473 9.75978 11.5 9.6326 11.5 9.5V6.72187L13.5 5.625V10.9856V10.9862Z",fill:"currentColor"},null,-1)])]))}},pa={},ma={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"};function fa(S,s){return r(),c("svg",ma,[...s[0]||(s[0]=[e("path",{d:"M2.5 5C2.5 4.70014 2.6317 4.41612 2.86612 4.18171C3.10054 3.94729 3.41848 3.81559 3.75 3.81559H16.25C16.5815 3.81559 16.8995 3.94729 17.1339 4.18171C17.3683 4.41612 17.5 4.70014 17.5 5V6.25C17.5 6.54986 17.3683 6.83387 17.1339 7.06829C16.8995 7.30271 16.5815 7.43441 16.25 7.43441H3.75C3.41848 7.43441 3.10054 7.30271 2.86612 7.06829C2.6317 6.83387 2.5 6.54986 2.5 6.25V5ZM16.25 10H3.75C3.41848 10 3.10054 10.1317 2.86612 10.3661C2.6317 10.6005 2.5 10.8845 2.5 11.1844V12.4344C2.5 12.7342 2.6317 13.0183 2.86612 13.2527C3.10054 13.4871 3.41848 13.6188 3.75 13.6188H16.25C16.5815 13.6188 16.8995 13.4871 17.1339 13.2527C17.3683 13.0183 17.5 12.7342 17.5 12.4344V11.1844C17.5 10.8845 17.3683 10.6005 17.1339 10.3661C16.8995 10.1317 16.5815 10 16.25 10ZM3.75 16.1844H16.25C16.5815 16.1844 16.8995 16.3161 17.1339 16.5505C17.3683 16.7849 17.5 17.069 17.5 17.3688V17.5H2.5V17.3688C2.5 17.069 2.6317 16.7849 2.86612 16.5505C3.10054 16.3161 3.41848 16.1844 3.75 16.1844Z",fill:"currentColor"},null,-1),e("path",{d:"M5 2.5C5 2.22386 5.22386 2 5.5 2H14.5C14.7761 2 15 2.22386 15 2.5V3.75H5V2.5Z",fill:"currentColor"},null,-1)])])}const va=de(pa,[["render",fa]]),ga={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none"},ha={__name:"AdvertisementIcon",setup(S){return(s,p)=>(r(),c("svg",ga,[...p[0]||(p[0]=[e("path",{stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.59 14.37a6 6 0 01-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 006.16-12.12A14.98 14.98 0 009.63 8.41m5.96 5.96a14.926 14.926 0 01-5.84 2.58m0 0a6 6 0 01-7.38-5.84h4.8"},null,-1)])]))}},ya={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},Re={__name:"OpportunityIcon",setup(S){return(s,p)=>(r(),c("svg",ya,[...p[0]||(p[0]=[e("path",{d:"M15.8937 6.74439L14.2987 3.55314C14.24 3.43568 14.1586 3.33094 14.0594 3.24492C13.9602 3.15889 13.845 3.09325 13.7203 3.05176C13.5957 3.01026 13.4642 2.99371 13.3332 3.00307C13.2022 3.01242 13.0743 3.04748 12.9568 3.10626L11.4025 3.88314L8.1281 3.01689C8.04408 2.99502 7.95587 2.99502 7.87185 3.01689L4.59747 3.88314L3.0431 3.10626C2.92565 3.04748 2.79777 3.01242 2.66677 3.00307C2.53577 2.99371 2.40421 3.01026 2.2796 3.05176C2.15499 3.09325 2.03978 3.15889 1.94054 3.24492C1.8413 3.33094 1.75998 3.43568 1.70122 3.55314L0.106223 6.74376C0.0474452 6.86121 0.0123791 6.98909 0.00302689 7.12009C-0.00632531 7.25109 0.0102196 7.38265 0.0517167 7.50726C0.0932138 7.63187 0.15885 7.74708 0.244878 7.84632C0.330906 7.94556 0.435639 8.02688 0.553098 8.08564L2.2406 8.93001L5.70872 11.4069C5.75983 11.4432 5.81727 11.4697 5.8781 11.485L9.8781 12.485C9.96187 12.506 10.0496 12.505 10.1329 12.482C10.2161 12.459 10.292 12.4148 10.3531 12.3538L13.795 8.91126L15.4462 8.08564C15.6833 7.96697 15.8635 7.75903 15.9473 7.50752C16.0311 7.25601 16.0116 6.98152 15.8931 6.74439H15.8937ZM12.4631 8.83001L10.3125 7.10751C10.2161 7.03035 10.0946 6.99156 9.97141 6.9986C9.84818 7.00564 9.73191 7.05801 9.64497 7.14564C8.53185 8.26689 7.29122 8.12501 6.49997 7.62501L9.20247 5.00001H11.1906L12.8912 8.40064L12.4631 8.83001ZM2.5956 4.00001L3.87497 4.63876L2.27685 7.82939L0.999973 7.19126L2.5956 4.00001ZM9.8456 11.4456L6.21372 10.5381L3.13872 8.34189L4.88872 4.84189L7.99997 4.01751L8.61247 4.17939L5.79997 6.90939L5.79497 6.91501C5.6891 7.02088 5.60836 7.14918 5.55869 7.29042C5.50903 7.43167 5.49172 7.58227 5.50803 7.7311C5.52435 7.87993 5.57388 8.0232 5.65297 8.15033C5.73205 8.27747 5.83868 8.38522 5.96497 8.46564C7.24997 9.28626 8.8006 9.15314 10.0218 8.15314L11.75 9.54126L9.8456 11.4456ZM13.7206 7.82876L12.1256 4.64126L13.4043 4.00001L15 7.19126L13.7206 7.82876ZM8.23622 13.6206C8.20921 13.7287 8.14689 13.8247 8.05914 13.8933C7.97139 13.9619 7.86324 13.9992 7.75185 13.9994C7.71077 13.9993 7.66984 13.9943 7.62997 13.9844L5.0256 13.3331C4.96468 13.3181 4.9072 13.2916 4.85622 
113.255L3.20935 12.0788C3.10809 11.9993 3.0414 11.8838 3.02316 11.7563C3.00493 11.6289 3.03656 11.4993 3.11147 11.3946C3.18638 11.2899 3.29879 11.2181 3.42529 11.1942C3.5518 11.1703 3.68265 11.1961 3.7906 11.2663L5.35997 12.3875L7.87497 13.015C8.00359 13.0472 8.11417 13.1291 8.18238 13.2428C8.25059 13.3565 8.27086 13.4926 8.23872 13.6213L8.23622 13.6206Z",fill:"currentColor"},null,-1)])]))}},ba={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},He={__name:"PaymentIcon",setup(S){return(s,p)=>(r(),c("svg",ba,[...p[0]||(p[0]=[e("path",{d:"M13.5 4H3.5C3.36739 4 3.24021 3.94732 3.14645 3.85355C3.05268 3.75979 3 3.63261 3 3.5C3 3.36739 3.05268 3.24021 3.14645 3.14645C3.24021 3.05268 3.36739 3 3.5 3H12C12.1326 3 12.2598 2.94732 12.3536 2.85355C12.4473 2.75979 12.5 2.63261 12.5 2.5C12.5 2.36739 12.4473 2.24021 12.3536 2.14645C12.2598 2.05268 12.1326 2 12 2H3.5C3.10218 2 2.72064 2.15804 2.43934 2.43934C2.15804 2.72064 2 3.10218 2 3.5V11.5C2 11.8978 2.15804 12.2794 2.43934 12.5607C2.72064 12.842 3.10218 13 3.5 13H13.5C13.7652 13 14.0196 12.8946 14.2071 12.7071C14.3946 12.5196 14.5 12.2652 14.5 12V5C14.5 4.73478 14.3946 4.48043 14.2071 4.29289C14.0196 4.10536 13.7652 4 13.5 4ZM13.5 12H3.5C3.36739 12 3.24021 11.9473 3.14645 11.8536C3.05268 11.7598 3 11.6326 3 11.5V4.91437C3.16055 4.97129 3.32966 5.00025 3.5 5H13.5V12ZM10.5 8.25C10.5 8.10166 10.544 7.95666 10.6264 7.83332C10.7088 7.70999 10.8259 7.61386 10.963 7.55709C11.1 7.50032 11.2508 7.48547 11.3963 7.51441C11.5418 7.54335 11.6754 7.61478 11.7803 7.71967C11.8852 7.82456 11.9566 7.9582 11.9856 8.10368C12.0145 8.24917 11.9997 8.39997 11.9429 8.53701C11.8861 8.67406 11.79 8.79119 11.6667 8.8736C11.5433 8.95601 11.3983 9 11.25 9C11.0511 9 10.8603 8.92098 10.7197 8.78033C10.579 8.63968 10.5 8.44891 10.5 8.25Z",fill:"currentColor"},null,-1)])]))}},xa={class:"hidden lg:flex w-[280px] bg-white p-6 flex-col h-full max-h-full overflow-y-auto border-r border-gray-100"},wa={class:"flex items-center mb-8"},_a=["src"],Ca={class:"flex justify-between items-start mb-2"},$a={class:"text-sm font-medium text-white/90"},ka={class:"text-[32px] font-bold tracking-tight"},Pa={class:"flex-1 space-y-2"},Ia={class:"pt-6 pb-2 px-4"},Da={class:"text-base font-medium text-[#4B5563]"},Na={key:0,class:"ml-auto bg-primary text-white text-xs rounded-full px-2 py-0.5"},Ba={key:0,class:"ml-auto bg-primary text-white text-xs rounded-full px-2 py-0.5"},Ta={class:"space-y-4 mt-auto pt-6"},Ea=["href"],Ma=ue({__name:"ProviderSidebar",props:{unreadCount:{},notificationCount:{}},setup(S){const s=F(()=>f.profile||p.currentUser),p=ge(),f=ce(),_=$e(),C=Te(),{locale:m}=le(),b=Ee("provider:hasTransactionHistory",()=>null),w=h(!1),a=async()=>{var t;if(!(b.value!==null||w.value)){w.value=!0;try{const x=await Mt({PageSize:1,PageIndex:0}),I=Array.isArray((t=x.data)==null?void 0:t.Data)?x.data.Data:[];b.value=I.length>0}catch(x){console.error("Error checking transaction history:",x),b.value=!1}finally{w.value=!1}}};ee(async()=>{_.initializePortal(),await a()});const k=F(()=>{var t;return(t=_.activePortal)==null?void 0:t.key}),P=F(()=>{var I,N;const t=((I=s.value)==null?void 0:I.DaSubscribeCount)||0,x=((N=s.value)==null?void 0:N.PackageCount)||0;return t>0||x>0}),i=t=>{const x=C.path,I=String(C.name||"");return t==="/provider/offers"?I==="provider-projects-offerKey-detail"||I==="provider-projects-offerKey-detail-provider"?!0:x.startsWith(t):t==="/client/projects"?x.startsWith(t):t==="/provider/settings"?x.startsWith("/provider/settings"):t==="/premium"?x.startsWith("/premium"):x===t},M=F(()=>{var x,I;const t=(I=(x=f.profile)==null?void 0:x.Provider)==null?void 0:I.Slug;return t?`https://www.dijitalajanslar.com/ajans/${t}`:"#"}),U=async()=>{await p.clearSession(),await f.clearProfile(),await fe("/login")},n=F(()=>{const t=C.path,x=C.fullPath;return t.includes("/provider/blog-create")||t.includes("/provider/job")||t.includes("/provider/draft-blogs")||t.includes("/provider/live-blogs")||t.includes("/provider/authors")||x.includes("columnist=true")});return(t,x)=>{const I=Ve,N=Fe,d=va,v=ha,g=Re,l=He,B=Et,D=je,T=Oe,H=Se,G=pt;return r(),c("aside",xa,[e("div",wa,[e("img",{src:j(_).logoPath,alt:"Portal Logo",class:"h-[30px]"},null,8,_a)]),e("div",{onClick:x[1]||(x[1]=y=>("navigateTo"in t?t.navigateTo:j(fe))("/provider/payment")),class:"w-full bg-[#0101FD] text-white rounded-2xl p-5 mb-8 cursor-pointer hover:bg-[#0000dd] transition-colors relative shadow-lg shadow-blue-200"},[e("div",Ca,[e("span",$a,o(t.$t("provider.sidebar.walletBalance")),1),x[2]||(x[2]=e("button",{class:"bg-white rounded-full p-0.5 hover:bg-gray-100 transition-colors"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-[#0101FD]",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z","clip-rule":"evenodd"})])],-1))]),e("p",ka,o(j(f).formattedWalletBalance),1),j(b)?(r(),c("button",{key:0,t
1ype:"button",class:"mt-3 text-xs text-white/90 underline underline-offset-2 hover:text-white transition-colors",onClick:x[0]||(x[0]=J(y=>("navigateTo"in t?t.navigateTo:j(fe))({path:"/provider/payment",hash:"#transaction-history"}),["stop"]))},o(t.$t("paymentPage.transactionHistory.title")),1)):R("",!0)]),e("nav",Pa,[e("a",{href:"/provider/dashboard",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/dashboard")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(I,{class:E(["h-5 w-5",i("/provider/dashboard")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.home")),1)],2),e("a",{href:"/client/projects",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/client/projects")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[(r(),c("svg",{xmlns:"http://www.w3.org/2000/svg",class:E(["h-5 w-5",i("/client/projects")?"text-white":"text-[#0101FD]"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[...x[3]||(x[3]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"},null,-1)])],2)),O(" "+o(t.$t("provider.sidebar.posts")),1)],2),e("a",{href:"/provider/blog-create",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",n.value?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(N,{class:E(["h-5 w-5",n.value?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.share.title")),1)],2),k.value=="DijitalAjanslar"&&P.value?(r(),c("a",{key:0,href:"/provider/pool",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/pool")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(d,{class:E(["h-5 w-5",i("/provider/pool")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.pool")),1)],2)):R("",!0),e("a",{href:"/premium/advertisement",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/premium/advertisement")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(v,{class:E(["h-5 w-5",i("/premium/advertisement")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.advertisement"))+" ",1),x[4]||(x[4]=e("span",{class:"ml-auto bg-gradient-to-r from-primary to-[#8B5CF6] text-white text-[10px] font-bold rounded-full px-2 py-0.5 uppercase tracking-wide"},"NEW",-1))],2),e("a",{href:"/provider/offers",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/offers")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(g,{class:E(["h-5 w-5",i("/provider/offers")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.opportunities")),1)],2),e("a",{href:"/premium/subscription",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/premium")&&j(C).path!=="/premium/advertisement"?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(l,{class:E(["h-5 w-5",i("/premium")&&j(C).path!=="/premium/advertisement"?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.subscription")),1)],2),e("a",{href:"/provider/partners",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/partners")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(B,{size:20,color:"currentColor",class:E(["h-5 w-5",i("/provider/partners")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.partners")),1)],2),e("div",Ia,[e("h3",Da,o(t.$t("provider.sidebar.profileSettings")),1)]),e("a",{href:"/provider/notification",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/notification")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])}
1,[u(D,{class:E(["h-5 w-5",i("/provider/notification")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.notifications"))+" ",1),(S.notificationCount||0)>0?(r(),c("span",Na,o(S.notificationCount),1)):R("",!0)],2),e("a",{href:"/provider/messages",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/messages")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(T,{class:E(["h-5 w-5",i("/provider/messages")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.messages"))+" ",1),(S.unreadCount||0)>0?(r(),c("span",Ba,o(S.unreadCount),1)):R("",!0)],2),e("a",{href:"/provider/proposals",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/proposals")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[(r(),c("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",class:E(["h-5 w-5",i("/provider/proposals")?"text-white":"text-[#0101FD]"])},[...x[5]||(x[5]=[e("path",{d:"M11.7 2.5H6a1.5 1.5 0 0 0-1.5 1.5v12A1.5 1.5 0 0 0 6 17.5h8a1.5 1.5 0 0 0 1.5-1.5V6.3L11.7 2.5Z",stroke:"currentColor","stroke-width":"1.3","stroke-linejoin":"round"},null,-1),e("path",{d:"M11.5 2.6V6.5h3.9M7.5 10.5h5M7.5 13.5h3",stroke:"currentColor","stroke-width":"1.3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])],2)),O(" "+o(t.$t("proposal.sidebar")),1)],2),e("a",{href:"/provider/settings/about",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/provider/settings")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(H,{class:E(["h-5 w-5",i("/provider/settings")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.settings")),1)],2),e("a",{href:"/support",class:E(["flex items-center px-4 py-3.5 gap-3 text-[14px] font-medium rounded-xl transition-all duration-300 ease-in-out",i("/support")?"bg-primary text-white shadow-md shadow-blue-200":"text-primary hover:bg-blue-50"])},[u(G,{class:E(["h-5 w-5",i("/support")?"text-white":"text-[#0101FD]"])},null,8,["class"]),O(" "+o(t.$t("provider.sidebar.support")),1)],2)]),e("div",Ta,[e("a",{href:M.value,target:"_blank",class:"flex items-center justify-center gap-2 w-full text-[14px] bg-white border border-[#0101FD] text-[#0101FD] rounded-xl py-3.5 hover:bg-blue-50 transition-colors font-medium cursor-pointer shadow-sm"},[x[6]||(x[6]=e("img",{src:"https://www.dijitalajanslar.com/img/da-fav.png",class:"h-5 w-5",alt:"Icon"},null,-1)),O(" "+o(t.$t("provider.sidebar.myProfile")),1)],8,Ea),e("button",{onClick:U,class:"w-full text-base font-medium text-white bg-[#333333] rounded-xl py-3.5 hover:bg-black transition-all duration-200"},o(t.$t("provider.sidebar.logout")),1)])])}}}),Va=de(Ma,[["__scopeId","data-v-dace7cee"]]),Oa={class:"text-xs font-medium text-neutral-300 max-w-[140px] truncate"},Sa={key:0,class:"absolute right-0 mt-2 w-64 bg-white rounded-xl shadow-2xl ring-1 ring-black/5 overflow-hidden z-50 origin-top-right"},La={key:0,class:"py-1 max-h-60 overflow-y-auto"},Ua=["onClick"],ja={class:"truncate"},Aa={key:0,class:"w-4 h-4 flex-shrink-0",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},Fa={__name:"WorkspaceMenu",setup(S){const s=St(),p=ce(),f=ge(),_=h(!1),C=h(null),m=F(()=>{var a,k,P,i;return((a=s.currentWorkspace)==null?void 0:a.companyNickName)||((P=(k=p.profile)==null?void 0:k.Provider)==null?void 0:P.CompanyNickName)||((i=f.currentUser)==null?void 0:i.FullName)||""}),b=async a=>{_.value=!1,await s.switchTo(a)},w=a=>{C.value&&!C.value.contains(a.target)&&(_.value=!1)};return ee(()=>{document.addEventListener("click",w),s.loaded||s.fetchWorkspaces()}),ve(()=>document.removeEventListener("click",w)),(a,k)=>{const P=Ot;return r(),c("div",{ref_key:"menuRef",ref:C,class:"relative inline-block"},[e("button",{type:"button",onClick:k[0]||(k[0]=i=>_.value=!_.value),class:"flex items-center gap-2 px-3 py-2 rounded-lg border border-neutral-50 hover:bg-grayscale-50 transition-colors focus:outline-none"},[k[2]||(k[2]=e("svg",{class:"w-4 h-4 text-neutral-300",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21"})],-1)),e("span",Oa,o(m.value),1),u(P,{class:E(["w-4 h-4 text-neutral-200 transition-transform duration-200",{"transform rotate-180":_.value}])},null,8,["class"])]),u(ke,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:L(()=>[_.value?(r(),c("div",Sa,[j(s).hasMultipleWorkspaces?(r(),c("div",La,[(r(!0),c(z,null,te(j(s).workspaces,i=>(r(),c("button",{key:i.workspaceId,type:"button",onClick:M=>b(i.workspaceId),class:E(["w-full flex items-center justify-between px-4 py-2.5 text-sm text-left hover:bg-grayscale-50 transition-colors",i.isCurrent?"text-primary font-medium":"text-gray-700"])},[e("span",ja,o(i.companyNickName),1),i.isCurrent?(r(),c("svg",Aa,[...k[3]||(k[3]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1)])])):R("",!0)],10,Ua))),128)),k[4]||(k[4]=e("div",{class:"my-1 border-t border-gray-100"},null,-1))])):R("",!0),e("a",{href:"/provider/settings/workspace",onClick:k[1]||(k[1]=i=>_.value=!1),class:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 transition-colors"},[k[5]||(k[5]=e("svg",{class:"w-4 h-4 text-gray-400",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.8",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z"})],-1)),e("span",null,o(a.$t("workspace.manageTeam")),1)])])):R("",!0)]),_:1})],512)}}},Ra={class:"bg-white px-4 py-4 relative z-20"},Ha={class:"flex items-center justify-between"},qa={class:"flex items-center gap-4"},Wa={class:"flex items-center space-x-4"},Ga={href:"/premium/subscription",class:"flex items-center space-x-2 cursor-pointer hover:opacity-80 transition-opacity"},za={class:"w-8 h-8 rounded-full flex items-center justify-center overflow-hidden"},Za=["src"],Ka={key:1,class:"w-full h-full bg-blue-500 flex items-center justify-center"},Ya={class:"text-white text-sm font-medium"},Qa={class:"hidden lg:block text-left"},Ja={class:"text-sm font-medium text-primary"},Xa=ue({__name:"ProviderHeader",setup(S){const{$bus:s}=X(),p=ge();$e();const f=Vt(),_=ce(),C=tt(),m=F(()=>_.profile||p.currentUser),b=C.public.basePhotoUrl||"",w=F(()=>{var n;return((n=_.profile)==null?void 0:n.ActingUser)||null}),a=F(()=>{var n;return w.value?`${w.value.Name||""} ${w.value.Surname||""}`.trim():((n=m.value)==null?void 0:n.FullName)||""}),k=F(()=>{var n,t;return((n=w.value)==null?void 0:n.ImageSrc)||((t=m.value)==null?void 0:t.ImageSrc)||""}),P=F(()=>(a.value||"User").split(" ").map(t=>t.charAt(0)).join("").toUpperCase().slice(0,2)),i=async()=>{await _.fetchPackageName()};ee(()=>{i()});const M=()=>{s.emit("open-mobile-menu")},U=()=>{f.UpdatePopUpStarterShow({isOfferStarterPopUpOpen:!0,slug:""})};return(n,t)=>(r(),c("header",Ra,[e("div",Ha,[e("div",qa,[e("button",{onClick:M,class:"lg:hidden p-1"},[...t[1]||(t[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e("path",{d:"M21 12C21 12.1989 20.921 12.3897 20.7803 12.5303C20.6397 12.671 20.4489 12.75 20.25 12.75H3.75C3.55109 12.75 3.36032 12.671 3.21967 12.5303C3.07902 12.3897 3 12.1989 3 12C3 11.8011 3.07902 11.6103 3.21967 11.4697C3.36032 11.329 3.55109 11.25 3.75 11.25H20.25C20.4489 11.25 20.6397 11.329 20.7803 11.4697C20.921 11.6103 21 11.8011 21 12ZM3.75 6.75H20.25C20.4489 6.75 20.6397 6.67098 20.7803 6.53033C20.921 6.38968 21 6.19891 21 6C21 5.80109 20.921 5.61032 20.7803 5.46967C20.6397 5.32902 20.4489 5.25 20.25 5.25H3.75C3.55109 5.25 3.36032 5.32902 3.21967 5.46967C3.07902 5.61032 3 5.80109 3 6C3 6.19891 3.07902 6.38968 3.21967 6.53033C3.36032 6.67098 3.55109 6.75 3.75 6.75ZM20.25 17.25H3.75C3.55109 17.25 3.36032 17.329 3.21967 17.4697C3.07902 17.6103 3 17.8011 3 18C3 18.1989 3.07902 18.3897 3.21967 18.5303C3.36032 18.671 3.55109 18.75 3.75 18.75H20.25C20.4489 18.75 20.6397 18.671 20.7803 18.5303C20.921 18.3897 21 18.1989 21 18C21 17.8011 20.921 17.6103 20.7803 17.4697C20.6397 17.329 20.4489 17.25 20.25 17.25Z",fill:"black"})],-1)])]),R("",!0)]),e("div",Wa,[e("button",{onClick:U,class:"hidden lg:flex items-center gap-2 px-4 py-2 bg-primary text-white rounded-lg text-sm font-medium hover:bg-primary-600 transition-colors"},[t[2]||(t[2]=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M10 4.16667V15.8333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}),e("path",{d:"M4.16667 10H15.8333",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})],-1)),O(" "+o(n.$t("common.getOffer")),1)]),u(Fa),e("a",Ga,[e("div",za,[k.value?(r(),c("img",{key:0,src:j(b)+k.value,class:"w-full h-full object-cover"},null,8,Za)):(r(),c("div",Ka,[e("span",Ya,o(P.value),1)]))]),e("div",Qa,[e("p",Ja,o(a.value),1)]),R("",!0)])])])]))}}),el=de(Xa,[["__scopeId","data-v-84a6323c"]]),tl={key:0,class:"fixed top-0 left-0 w-full bg-grayscale-100 h-full z-50 flex flex-col overflow-y-auto"},ol={class:"flex items-center justify-between p-5"},sl={class:"flex items-end space-x-2"},al=["src"],ll={class:"px-5 mb-4"},nl={class:"flex justify-between items-start mb-2"},rl={class:"text-sm font-medium text-white/90"},il={class:"text-[32px] font-bold tracking-tight"},ul={class:"flex-1 px-5"},dl={class:"mb-4"},cl={class:"text-xs text-[#C4C6C7] uppercase font-medium tracking-wider mb-2"},pl={class:"space-y-1 bg-white rounded-lg"},ml={class:"mb-4"},fl={class:"text-xs text-[#C4C6C7] uppercase font-medium tracking-wider mb-2"},vl={class:"space-y-1 bg-white rounded-lg"},gl={key:0,class:"ml-auto bg-primary text-white text-xs rounded-full px-2 py-0.5"},hl={key:0,class:"ml-auto bg-primary text-white text-xs rounded-full px-2 py-0.5"},yl={class:"p-5 space-y-3 mt-auto"},bl=["href"],xl=ue({__name:"MobileDrawer",props:{isOpen:{type:Boolean},unreadCount:{},notificationCount:{}},emits:["close"],setup(S,{emit:s}
1){const p=S,f=s,_=ge(),C=ce(),m=$e(),b=Te(),w=ot(),a=Ee("provider:hasTransactionHistory",()=>null),k=()=>{f("close")},P=n=>{k(),lt(()=>{w.push(n)})};K(()=>p.isOpen,n=>{n?document.body.style.overflow="hidden":document.body.style.overflow=""});const i=n=>{const t=String(b.name||"");return n==="/provider/offers"&&(t==="provider-projects-offerKey-detail"||t==="provider-projects-offerKey-detail-provider")?!0:b.path.startsWith(n)},M=F(()=>{var t,x;const n=(x=(t=C.profile)==null?void 0:t.Provider)==null?void 0:x.Slug;return n?`https://www.dijitalajanslar.com/ajanslar/${n}?cache=disabled`:"#"}),U=async()=>{k(),await _.clearSession(),await C.clearProfile(),await fe("/login")};return(n,t)=>{const x=Lt,I=Ve,N=st,d=Re,v=Fe,g=He,l=je,B=Oe,D=Se;return r(),ae(at,{to:"body"},[u(ke,{name:"fade"},{default:L(()=>[S.isOpen?(r(),c("div",{key:0,class:"fixed inset-0 bg-black/50 z-40",onClick:k})):R("",!0)]),_:1}),u(ke,{name:"slide"},{default:L(()=>[S.isOpen?(r(),c("aside",tl,[e("div",ol,[e("div",sl,[e("img",{src:j(m).logoPath,alt:"Portal Logo",class:"h-[30px]"},null,8,al)]),e("button",{onClick:k,class:"p-2"},[u(x,{size:20})])]),e("div",ll,[e("div",{onClick:t[1]||(t[1]=T=>("navigateTo"in n?n.navigateTo:j(fe))("/provider/payment")),class:"w-full bg-[#0101FD] text-white rounded-2xl p-5 cursor-pointer hover:bg-[#0000dd] transition-colors relative shadow-lg shadow-blue-200"},[e("div",nl,[e("span",rl,o(n.$t("provider.sidebar.totalBalance")),1),t[10]||(t[10]=e("button",{class:"bg-white rounded-full p-0.5 hover:bg-gray-100 transition-colors"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-[#0101FD]",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z","clip-rule":"evenodd"})])],-1))]),e("p",il,o(j(C).formattedWalletBalance),1),j(a)?(r(),c("button",{key:0,type:"button",class:"mt-3 text-xs text-white/90 underline underline-offset-2 hover:text-white transition-colors",onClick:t[0]||(t[0]=J(T=>P("/provider/payment#transaction-history"),["stop"]))},o(n.$t("paymentPage.transactionHistory.title")),1)):R("",!0)])]),e("nav",ul,[e("div",dl,[e("h3",cl,o(n.$t("provider.sidebar.workspace")),1),e("ul",pl,[e("li",null,[u(N,{to:"/provider/dashboard",onClick:t[2]||(t[2]=J(T=>P("/provider/dashboard"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/provider/dashboard")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>[u(I,{class:E(i("/provider/dashboard")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.dashboard")),1)]),_:1},8,["class"])]),e("li",null,[u(N,{to:"/provider/offers",onClick:t[3]||(t[3]=J(T=>P("/provider/offers"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/provider/offers")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>[u(d,{class:E(i("/provider/offers")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.opportunities")),1)]),_:1},8,["class"])]),e("li",null,[u(N,{to:"/client/projects",onClick:t[4]||(t[4]=J(T=>P("/client/projects"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/client/projects")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>[u(d,{class:E(i("/client/projects")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.myProjects")),1)]),_:1},8,["class"])]),e("li",null,[u(N,{to:"/premium/subscription",onClick:t[5]||(t[5]=J(T=>P("/premium/subscription"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/premium")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>[u(v,{class:E(i("/premium")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.campaignsPlans")),1)]),_:1},8,["class"])]),e("li",null,[u(N,{to:"/provider/payment",onClick:t[6]||(t[6]=J(T=>P("/provider/payment"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/provider/payment")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>[u(g,{class:E(i("/provider/payment")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.payment")),1)]),_:1},8,["class"])])])]),e("div",ml,[e("h3",fl,o(n.$t("provider.sidebar.assist")),1),e("ul",vl,[e("li",null,[u(N,{to:"/provider/notification",onClick:t[7]||(t[7]=J(T=>P("/provider/notification"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/provider/notification")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>[u(l,{class:E(i("/provider/notification")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.notifications"))+" ",1),(S.notificationCount||0)>0?(r(),c("span",gl,o(S.notificationCount),1)):R("",!0)]),_:1},8,["class"])]),e("li",null,[u(N,{to:"/provider/messages",onClick:t[8]||(t[8]=J(T=>P("/provider/messages"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/provider/messages")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>
1[u(B,{class:E(i("/provider/messages")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.messages"))+" ",1),(S.unreadCount||0)>0?(r(),c("span",hl,o(S.unreadCount),1)):R("",!0)]),_:1},8,["class"])]),e("li",null,[u(N,{to:"/provider/settings/about",onClick:t[9]||(t[9]=J(T=>P("/provider/settings/about"),["prevent"])),class:E(["flex items-center py-3 px-2 gap-3 text-sm font-medium border-b border-gray-100",i("/provider/settings")?"text-[#0101FD]":"text-[#7B7B7B]"])},{default:L(()=>[u(D,{class:E(i("/provider/settings")?"text-[#0101FD]":"text-[#7B7B7B]")},null,8,["class"]),O(" "+o(n.$t("provider.sidebar.settings")),1)]),_:1},8,["class"])])])])]),e("div",yl,[e("a",{href:M.value,target:"_blank",class:"flex items-center justify-center gap-2 w-full text-sm font-medium text-primary border border-primary shadow-soft rounded-lg px-5 py-3 hover:bg-primary-50 transition-colors text-center"},[...t[11]||(t[11]=[e("img",{src:"https://www.dijitalajanslar.com/img/da-fav.png",class:"h-5 w-5",alt:"Icon"},null,-1),O(" Dax Profilim ",-1)])],8,bl),e("button",{onClick:U,class:"w-full text-sm font-medium text-[#FF6565] border border-graycale-200 bg-tertiary-100 rounded-lg px-5 py-3 shadow-soft"},o(n.$t("provider.sidebar.logout")),1)])])):R("",!0)]),_:1})])}}}),wl=de(xl,[["__scopeId","data-v-4d9135a7"]]),_l={class:"flex justify-center mb-6"},Cl={class:"flex items-center"},$l={class:"bg-white rounded-lg mb-5"},kl={class:"flex justify-between items-center text-start mb-5"},Pl={class:"text-right"},Il={class:"text-6xl font-semibold text-primary-500"},Dl={class:"space-y-3"},Nl={key:0,class:"mt-4 space-y-3"},Bl=["onClick"],Tl={class:"font-medium text-gray-800"},El={key:0,class:"mt-2 text-gray-600 text-sm leading-relaxed"},Ml={class:"flex justify-between gap-4 w-full"},Vl={__name:"UpgradeEdvidoPlusDialog",props:{modelValue:Boolean,period:{type:Number,default:1}},emits:["update:modelValue"],setup(S,{emit:s}){const{formatPrice:p}=jt();Ce();const{$bus:f}=X(),_=S,C=s,m=F({get:()=>_.modelValue,set:v=>C("update:modelValue",v)}),b=h("yearly"),w=h([]),a=h(!0);K(()=>_.period,v=>{b.value=v===12?"yearly":"monthly"},{immediate:!0}),K(b,v=>{});const k=F(()=>"Upgrade Your Plan"),P=F(()=>b.value==="yearly"?12:1),i=async()=>{var v,g,l;try{a.value=!0;const B=await At();(v=B.data)!=null&&v.IsSuccessful&&((l=(g=B.data)==null?void 0:g.Data)==null?void 0:l.length)>0&&(w.value=B.data.Data)}catch(B){console.error("Failed to fetch pricing data:",B)}finally{a.value=!1}},M=F(()=>{if(w.value&&w.value.length>0){const v=w.value.find(g=>g.Name===(P.value==1?"PLUS_1":"PLUS_12"));if(v!=null&&v.GrossPrice)return v.GrossPrice}return 19}),U=F(()=>p(M.value)),n=()=>{var l;const v=b.value==="yearly"?12:1,g=(l=w.value)==null?void 0:l.find(B=>B.Name===(v==1?"PLUS_1":"PLUS_12"));if(g){const B={Type:"PLUS",packageName:"Edvido+",Id:g.Id,SubId:g.GeneralPricePlanId,Name:"Edvido+",Currency:g.Currency,Period:v,GrossPrice:g.GrossPrice,TaxFreePrice:g.TaxFreePrice,description:"Enhance your profile, draw in visitors, and transform them into loyal clients with Edvido+",features:x.value};m.value=!1,f&&f.emit("add-to-basket",B)}else console.error("Selected plan not found")},t=h(!1),x=h(["Everything in Free Plan","SEO Backlink to your website","Unlimited access to Business Opportunities","Listed on all directories","Promoted placement across Edvido"]),I=h([{question:"What is FAQHub?",answer:"FAQHub is a platform dedicated to providing answers to frequently asked questions across various topics.",open:!1},{question:"How can I submit a question?",answer:"You can submit a question through our contact form.",open:!1}]),N=()=>{t.value=!t.value},d=v=>{I.value[v].open=!I.value[v].open};return ee(async()=>{await i()}),(v,g)=>(r(),ae(ne,{variant:"standart",modelValue:m.value,"onUpdate:modelValue":g[3]||(g[3]=l=>m.value=l),title:k.value},{footer:L(()=>[e("div",Ml,[u(Q,{class:"flex-1",variant:"red",onClick:g[2]||(g[2]=l=>m.value=!1)},{default:L(()=>[...g[9]||(g[9]=[O("Cancel",-1)])]),_:1}),u(Q,{class:"flex-1",variant:"primary",onClick:n},{default:L(()=>[...g[10]||(g[10]=[O("Continue",-1)])]),_:1})])]),default:L(()=>[e("div",null,[e("div",_l,[e("div",Cl,[e("button",{onClick:g[0]||(g[0]=l=>b.value="yearly"),class:E(["px-4 py-1.5 rounded-full text-xl leading-6",b.value==="yearly"?"border-2 border-primary-500 text-primary-500 font-semibold":"text-primary-300"])}," Yearly ",2),e("button",{onClick:g[1]||(g[1]=l=>b.value="monthly"),class:E(["px-4 py-1.5 rounded-full text-xl leading-6",b.value==="monthly"?"border-2 border-primary-500 text-primary-500 font-semibold":"text-primary-300"])}," Monthly ",2)])]),e("div",$l,[e("div",kl,[g[5]||(g[5]=e("div",null,[e("h3",{class:"text-2xl font-semibold leading-8 tracking-[-0.72px]"}," Edvido+ "),e("p",{class:"text-tertiary-800 leading-6 tracking-[-0.48px]"}," For growing teams seeking visibility ")],-1)),e("div",Pl,[e("span",Il,o(U.value),1),g[4]||(g[4]=e("span",{class:"text-xl text-tertiary-800"},"/ per month",-1))])]),e("div",Dl,[(r(!0),c(z,null,te(x.value,l=>(r(),ae(bo,{key:l,text:l},null,8,["text"]))),128))])]),e("div",null,[e("button",{onClick:N,class:"w-full flex justify-between items-center py-4 text-left border-b border-gray-200"},[g[7]||(g[7]=e("h4",{class:"font-bold text-lg"},"Frequently Asked Questions",-1)),(r(),c("svg",{class:E([{"rotate-180":t.value},"w-5 h-5 transition-transform duration-200"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...g[6]||(g[6]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))]),t.value?(r(),c("div",Nl,[(r(!0),c(z,null,te(I.value,(l,B)=>(r(),c("div",{key:B,class:"border-b border-gray-100 pb-3"},[e("button",{onClick:D=>d(B),class:"w-full text-left flex justify-between items-center py-2"},[e("span",Tl,o(l.question),1),(r(),c("svg",{class:E([{"rotate-180":l.open},"w-4 h-4 transition-transform duration-200 text-gray-500"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...g[8]||(g[8]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],8,Bl),l.open?(r(),c("div",El,o(l.answer),1)):R("",!0)]))),128))])):R("",!0)])])]),_:1},8,["modelValue","title"]))}},Ol={class:"space-y-6"},Sl={class:"flex justify-center"},Ll={class:"inline-flex items-center bg-gray-100 rounded-full p-1"},Ul={class:"bg-gradient-to-br from-gray-50 to-white rounded-2xl p-5 border border-gray-100"},jl={class:"flex items-start justify-between mb-5"},Al={class:"flex items-center gap-3"},Fl={class:"w-12 h-12 rounded-xl bg-primary-50 flex items-center justify-center"},Rl={class:"text-lg font-bold text-gray-900"},Hl={class:"text-xs text-gray-500"},ql={class:"text-right"},Wl={class:"text-3xl font-black text-primary"},Gl={class:"text-xs text-gray-400"},zl={class:"space-y-2.5 max-h-[180px] overflow-y-auto scrollbar-thin pr-1"},Zl={class:"text-sm text-gray-600 leading-snug"},Kl={class:"border-t border-gray-100 pt-4"},Yl={class:"font-semibold text-sm text-gray-800"},Ql={key:0,class:"mt-3 space-y-2"},Jl=["onClick"],Xl={class:"font-medium text-sm text-gray-700"},en={key:0,class:"mt-1.5 text-gray-500 text-xs leading-relaxed"},tn={class:"flex gap-3 w-full"},on={__name:"UpgradeEdvidoPackageDialog",setup(S){const{t:s}=le();Ce();const{$bus:p}=X(),f=h(!1),_=h("LITE"),C=h(12),m=h("yearly"),b=h(null),w=h(!0),a=h(!1),k=D=>{D&&D.packageName&&(_.value=D.packageName,C.value=D.period||12,m.value=D.period===6?"sixMonths":"yearly",f.value=!0)};K(()=>C.value,D=>{m.value=D===12?"yearly":"sixMonths"},{immediate:!0});const P=F(()=>m.value==="yearly"?12:6),i=F(()=>{const D=_.value;return D==="LITE"?{render(){return ie("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[ie("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.59 14.37a6 6 0 01-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 006.16-12.12A14.98 14.98 0 009.63 8.41m5.96 5.96a14.926 14.926 0 01-5.84 2.58m0 0a6 6 0 01-7.38-5.84h4.8"})])}}:D==="GROWTH"?{render(){return ie("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[ie("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})])}}:{render(){return ie("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[ie("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 3l3.5 7 3.5-4 3.5 4 3.5-7v11a2 2 0 01-2 2H7a2 2 0 01-2-2V3z"}),ie("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 19h14"})])}}}),M=F(()=>{const D=H=>{const G=[];for(let y=1;y<=6;y++){const V=s(`premium.plans.${H}.features.${y}`);V&&!V.includes(`premium.plans.${H}.features.${y}`)&&G.push(V)}return G.length>0?G:null},T={LITE:{name:s("premium.plans.lite.name"),description:s("premium.plans.lite.description"),features:D("lite")||[s("premium.plans.lite.features.1"),s("premium.plans.lite.features.2"),s("premium.plans.lite.features.3"),s("premium.plans.lite.features.4"),s("premium.plans.lite.features.5"),s("premium.plans.lite.features.6")]},GROWTH:{name:s("premium.plans.growth.name"),description:s("premium.plans.growth.description"),features:D("growth")||[s("premium.plans.growth.features.1"),s("premium.plans.growth.features.2"),s("premium.plans.growth.features.3"),s("premium.plans.growth.features.4"),s("premium.plans.growth.features.5"),s("premium.plans.growth.features.6")]},ELITE:{name:s("premium.plans.elite.name"),description:s("premium.plans.elite.description"),features:D("elite")||[s("premium.plans.elite.features.1"),s("premium.plans.elite.features.2"),s("premium.plans.elite.features.3"),s("premium.plans.elite.features.4"),s("premium.plans.elite.features.5"),s("premium.plans.elite.features.6")]}};return T[_.value]||T.LITE}),U=F(()=>`${M.value.name} ${s("premium.package")}`),n=F(()=>M.value.name),t=F(()=>M.value.description),x=F(()=>M.value.features),I=async()=>{var D,T,H,G;try{w.value=!0;const y=await Ft();(D=y.data)!=null&&D.IsSuccessful&&((G=(H=(T=y.data)==null?void 0:T.Data)==null?void 0:H.Packages)==null?void 0:G.length)>0&&(b.value=y.data.Data.Packages)}catch(y){console.error("Failed to fetch pricing data:",y)}finally{w.value=!1}},N=F(()=>b.value&&b.value.length>0&&b.value.find(T=>T.Name===_.value&&T.Period===P.value)||null),d=F(()=>{var D,T;return(D=N.value)!=null&&D.GrossPrice?`₺${(T=N.value)==null?void 0:T.GrossPrice.toLocaleStr
1ing("tr-TR")}`:"₺0"}),v=()=>{if(N.value){const D={Type:"DA_LISTING",packageName:_.value,Id:N.value.Id,SubId:N.value.GeneralPricePlanId,Name:N.value.Name,Currency:N.value.Currency,Period:P.value,GrossPrice:N.value.GrossPrice,TaxFreePrice:N.value.TaxFreePrice,description:t.value,features:x.value};f.value=!1,p&&p.emit("add-to-basket",D)}else console.error("Selected package data not found")},g=h([{question:s("premium.faqs.faq1.question"),answer:s("premium.faqs.faq1.answer"),open:!1},{question:s("premium.faqs.faq2.question"),answer:s("premium.faqs.faq2.answer"),open:!1},{question:s("premium.faqs.faq3.question"),answer:s("premium.faqs.faq3.answer"),open:!1}]),l=()=>{a.value=!a.value},B=D=>{g.value[D].open=!g.value[D].open};return ee(async()=>{await I(),p.on("open-package-upgrade-dialog",k)}),ve(()=>{p.off("open-package-upgrade-dialog",k)}),(D,T)=>(r(),ae(ne,{variant:"standart",modelValue:f.value,"onUpdate:modelValue":T[3]||(T[3]=H=>f.value=H),title:U.value},{footer:L(()=>[e("div",tn,[e("button",{onClick:T[2]||(T[2]=H=>f.value=!1),class:"flex-1 h-11 rounded-xl border-2 border-gray-200 text-gray-600 font-semibold text-sm hover:border-gray-300 hover:bg-gray-50 transition-all duration-200"},o(D.$t("general.cancel")),1),e("button",{onClick:v,class:"flex-1 h-11 rounded-xl bg-primary text-white font-semibold text-sm shadow-md hover:shadow-lg hover:-translate-y-0.5 transition-all duration-200 flex items-center justify-center gap-1.5"},[O(o(D.$t("general.next"))+" ",1),T[7]||(T[7]=e("svg",{class:"w-4 h-4",viewBox:"0 0 20 20",fill:"none"},[e("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1))])])]),default:L(()=>[e("div",Ol,[e("div",Sl,[e("div",Ll,[e("button",{onClick:T[0]||(T[0]=H=>m.value="yearly"),class:E(["px-5 py-2 rounded-full text-sm font-semibold transition-all duration-200",m.value==="yearly"?"bg-white text-primary shadow-sm":"text-gray-500 hover:text-gray-700"])},o(D.$t("premium.yearly")),3),e("button",{onClick:T[1]||(T[1]=H=>m.value="sixMonths"),class:E(["px-5 py-2 rounded-full text-sm font-semibold transition-all duration-200",m.value==="sixMonths"?"bg-white text-primary shadow-sm":"text-gray-500 hover:text-gray-700"])},o(D.$t("premium.sixMonths")),3)])]),e("div",Ul,[e("div",jl,[e("div",Al,[e("div",Fl,[(r(),ae(nt(i.value),{class:"w-6 h-6 text-primary"}))]),e("div",null,[e("h3",Rl,o(n.value),1),e("p",Hl,o(t.value),1)])]),e("div",ql,[e("div",Wl,o(d.value),1),e("span",Gl," / "+o(m.value==="yearly"?D.$t("premium.perYear"):D.$t("premium.perSixMonths")),1)])]),e("div",zl,[(r(!0),c(z,null,te(x.value,(H,G)=>(r(),c("div",{key:G,class:"flex items-start gap-2.5"},[T[4]||(T[4]=e("div",{class:"mt-0.5 w-5 h-5 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0"},[e("svg",{class:"w-3 h-3 text-primary",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),e("span",Zl,o(H),1)]))),128))])]),e("div",Kl,[e("button",{onClick:l,class:"w-full flex justify-between items-center py-2 text-left"},[e("h4",Yl,o(D.$t("premium.faqTitle")),1),(r(),c("svg",{class:E([{"rotate-180":a.value},"w-4 h-4 transition-transform duration-200 text-gray-400"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...T[5]||(T[5]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))]),a.value?(r(),c("div",Ql,[(r(!0),c(z,null,te(g.value,(H,G)=>(r(),c("div",{key:G,class:"border-b border-gray-50 pb-2"},[e("button",{onClick:y=>B(G),class:"w-full text-left flex justify-between items-center py-1.5"},[e("span",Xl,o(H.question),1),(r(),c("svg",{class:E([{"rotate-180":H.open},"w-3.5 h-3.5 transition-transform duration-200 text-gray-400"]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...T[6]||(T[6]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],8,Jl),H.open?(r(),c("div",en,o(H.answer),1)):R("",!0)]))),128))])):R("",!0)])])]),_:1},8,["modelValue","title"]))}},sn=de(on,[["__scopeId","data-v-1809a2c9"]]),an=ue({__name:"PaymentProvider",setup(S){const{$bus:s}=X(),p=Ht();rt("payment",p);const f=()=>{p.openCardPopup()},_=()=>{p.fetchCards()},C=a=>{p.setPaymentModel(a),p.initiatePayment()},m=a=>{p.selectCard(a)},b=()=>{p.clearPaymentModel()},w=a=>{p.setPaymentModel(a)};return ee(()=>{s.on("payment:open-card-popup",f),s.on("payment:card-added",_),s.on("payment:initiate",C),s.on("payment:select-card",m),s.on("payment:clear",b),s.on("payment:set-model",w)}),ve(()=>{s.off("payment:open-card-popup",f),s.off("payment:card-added",_),s.off("payment:initiate",C),s.off("payment:select-card",m),s.off("payment:clear",b),s.off("payment:set-model",w)}),(a,k)=>(r(),c("div",null,[Me(a.$slots,"default")]))}}),ln={class:"provider-layout flex flex-col h-screen"},nn={key:0,class:"fixed top-4 left-1/2 -translate-x-1/2 bg-red-500 text-white py-2 px-4 z-50 shadow-lg rounded-lg max-w-2xl w-auto"},rn={class:"flex justify-between items-center gap-4"},un={class:"text-sm"},dn={class:"fixed top-0 left-0 right-0 z-[60] flex flex-col"},cn={class:"flex flex-1 overflow-hidden"},pn={class:"flex-1 flex flex-col overflow-hidden"},mn={__name:"provider",setup(S){const s=ce(),{initializeTracking:p}=Wt(),{connectToHub:f,disconnect:_,isConnected:C}=Gt(),m=(...$)=>{for(const W of $){const A=Number(W);if(Number.isFinite(A)&&A>=0)return A}return 0},b=F(()=>{var $,W,A,Z,re,xe,we,_e;return m(($=s.profile)==null?void 0:$.MessageCount,(W=s.profile)==null?void 0:W.UnreadMessageCount,(A=s.profile)==null?void 0:A.UnReadMessageCount,(Z=s.profile)==null?void 0:Z.NewMessageCount,(re=s.profile)==null?void 0:re.UnreadCount,(xe=s.profile)==null?void 0:xe.NotReadMessageCount,(_e=(we=s.profile)==null?void 0:we.Message)==null?void 0:_e.UnreadCount)}),w=h(0),a=h(0),k=h(!1),P=h(null),i=F(()=>Math.max(b.value,w.value,a.value)),M=F(()=>{var $,W,A,Z;return m(($=s.profile)==null?void 0:$.NotificationCount,(W=s.profile)==null?void 0:W.UnreadNotificationCount,(A=s.profile)==null?void 0:A.UnReadNotificationCount,(Z=s.profile)==null?void 0:Z.NewNotificationCount)});$e();const U=F(()=>{var $;return((($=s.profile)==null?void 0:$.TotalDaDebt)||0)>0}
1),n=F(()=>{var $;return((($=s.profile)==null?void 0:$.TotalPlusDebt)||0)>0}),t=F(()=>{var $;return((($=s.profile)==null?void 0:$.TotalPlusAddonDebt)||0)>0}),x=F(()=>{var $,W,A;return U.value?(($=s.profile)==null?void 0:$.TotalDaDebt)||0:n.value?((W=s.profile)==null?void 0:W.TotalPlusDebt)||0:t.value&&((A=s.profile)==null?void 0:A.TotalPlusAddonDebt)||0}),I=h(null),N=Ce(),d=it(),v=h(!1),g=h(!1),l=h(1),B=h(!1),D=h(null),T=h(!1),{$bus:H}=X(),G=$=>{$&&$.period&&(l.value=$.period),g.value=!0},y=()=>{v.value=!0},V=F(()=>!d.path.startsWith("/provider/messages")),q=($=[])=>$.reduce((W,A)=>W+m(A==null?void 0:A.UnSeenCount,A==null?void 0:A.UnseenCount,A==null?void 0:A.UnreadCount,A==null?void 0:A.UnReadCount,A==null?void 0:A.NotReadCount),0),oe=async()=>{var $;if(!V.value){a.value=b.value;return}if(!k.value)try{k.value=!0;const W=await zt({pageIndex:0,search:"",filter:"unread"}),A=Array.isArray(($=W==null?void 0:W.data)==null?void 0:$.Data)?W.data.Data:[];a.value=q(A)}catch(W){console.error("Error refreshing fallback unread count:",W)}finally{k.value=!1}},he=()=>{P.value&&clearInterval(P.value),P.value=Zt(()=>{oe()},15e3)},ye=()=>{P.value&&(clearInterval(P.value),P.value=null)},se=()=>{document.visibilityState==="visible"&&(s.fetchProfile(),oe())},Y=async $=>{var re;if(!V.value)return;const W=($==null?void 0:$.userId)??($==null?void 0:$.UserId)??($==null?void 0:$.senderId)??($==null?void 0:$.SenderId),A=(re=s.profile)==null?void 0:re.Id,Z=!W||W!==A;Z&&(w.value+=1),await s.fetchProfile(),await oe(),Z&&H.emit("notification",{type:"info",title:"Bilgi",message:"Yeni bir mesajınız var"})},be=async()=>{V.value&&!C.value?await f():!V.value&&C.value&&await _()},qe=()=>{U.value?N.push("/need-subscription-payment"):n.value?We():t.value&&Ge()},We=()=>{var $,W,A,Z;D.value={amount:(($=s.profile)==null?void 0:$.TotalPlusDebt)||0,currency:((W=s.profile)==null?void 0:W.WalletCurrency)||"TRY",type:"PLUS_DEBT_USER",name:"Edvido+",project:"DijitalAjanslar",period:1,basketItems:[{Id:"",GrossPrice:((A=s.profile)==null?void 0:A.TotalPlusDebt)||0,Name:"Edvido+",Currency:((Z=s.profile)==null?void 0:Z.WalletCurrency)||"TRY"}]},B.value=!0},Ge=()=>{var $,W,A,Z;D.value={amount:(($=s.profile)==null?void 0:$.TotalPlusAddonDebt)||0,currency:((W=s.profile)==null?void 0:W.WalletCurrency)||"TRY",type:"ADDON_DEBT_USER",name:"Edvido Addon",project:"DijitalAjanslar",period:1,basketItems:[{Id:"",GrossPrice:((A=s.profile)==null?void 0:A.TotalPlusAddonDebt)||0,Name:"Edvido Addon",Currency:((Z=s.profile)==null?void 0:Z.WalletCurrency)||"TRY"}]},B.value=!0},ze=()=>{s.fetchProfile()};return N.afterEach(()=>{I.value&&(I.value.scrollTop=0)}),K(()=>s.profile,$=>{(($==null?void 0:$.IsPhoneVerified)===!1||($==null?void 0:$.InitialPasswordHasSet)===!1)&&(T.value=!0)},{immediate:!0}),ee(()=>{p(),H.on("open-upgrade-dialog",G),H.on("open-mobile-menu",y),H.on("new-message-received",Y),be(),oe(),he(),document.addEventListener("visibilitychange",se)}),ve(()=>{H.off("open-upgrade-dialog",G),H.off("open-mobile-menu",y),H.off("new-message-received",Y),ye(),document.removeEventListener("visibilitychange",se),_()}),K(()=>d.path,async()=>{be(),await oe()}),K(b,$=>{w.value=$},{immediate:!0}),($,W)=>{var Ie;const A=Uo,Z=ct,re=mt,xe=ft,we=vt,_e=Wo,Ze=cs,Ke=ks,Ye=Rs,Qe=da;return r(),c("div",ln,[(U.value||n.value||t.value)&&j(d).path!=="/need-subscription-payment"?(r(),c("div",nn,[e("div",rn,[e("span",un,[U.value?(r(),c(z,{key:0},[O(o($.$t("debtBanner.subscriptionDebt")),1)],64)):n.value?(r(),c(z,{key:1},[O(o($.$t("debtBanner.plusDebt")),1)],64)):t.value?(r(),c(z,{key:2},[O(o($.$t("debtBanner.addonDebt")),1)],64)):R("",!0)]),e("button",{onClick:qe,class:"bg-white text-red-500 px-3 py-1 rounded text-sm hover:bg-gray-100 transition-colors font-medium whitespace-nowrap"},[((Ie=j(s).profile)==null?void 0:Ie.WalletCurrency)==="USD"?(r(),c(z,{key:0},[O(" $"+o(x.value)+" "+o($.$t("debtBanner.pay")),1)],64)):(r(),c(z,{key:1},[O(o(x.value)+" ₺ "+o($.$t("debtBanner.pay")),1)],64))])])])):R("",!0),e("div",dn,[R("",!0),R("",!0)]),e("div",cn,[u(Va,{"unread-count":i.value,notificationCount:M.value},null,8,["unread-count","notificationCount"]),u(wl,{"is-open":v.value,"unread-count":i.value,
1notificationCount:M.value,onClose:W[0]||(W[0]=pe=>v.value=!1)},null,8,["is-open","unread-count","notificationCount"]),e("div",pn,[u(el),e("main",{ref_key:"scrollArea",ref:I,class:"flex-1 overflow-y-auto bg-[#F9F9F9] rounded-tl-[12px] lg:rounded-tl-[12px] rounded-tl-none"},[Me($.$slots,"default",{},void 0,!0)],512)])]),u(Ut),u(A),u(Z,{isSchedule:!1}),u(re),u(xe),u(we),u(_e),u(Ze),u(Ke),u(Ye),u(Qe),u(an,null,{default:L(()=>[u(vo),u(Ae)]),_:1}),u(Vl,{modelValue:g.value,"onUpdate:modelValue":W[1]||(W[1]=pe=>g.value=pe),period:l.value},null,8,["modelValue","period"]),u(sn),u(qt,{modelValue:B.value,"onUpdate:modelValue":W[2]||(W[2]=pe=>B.value=pe),"payment-info":D.value,onPaymentSuccess:ze},null,8,["modelValue","payment-info"]),u(gt,{modelValue:T.value,"onUpdate:modelValue":W[3]||(W[3]=pe=>T.value=pe)},null,8,["modelValue"]),u(ht),R("",!0),u(yt),u(bt)])}}},wr=de(mn,[["__scopeId","data-v-05baaf35"]]);export{wr as default};

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.