PageSourceSearch

https://www.ostadbank.com/front-main/C60nKdsm.js

js ostadbank.com collected 2026-09-25 08:06:14 UTC 4,758 bytes, 1 lines download raw bytes

1import{_ as M}from"./DR7x0a_L.js";import{_ as S}from"./44poQL-3.js";import{_ as L}from"./C5ufKix7.js";import{d as T,i as r,A as j,m as E,V as R,q as H,o as z,e as D,a as _,bH as O,b as f,g as h,f as n,ad as y,c as F,h as A,w,t as G}from"./CCtWM35f.js";import{u as J}from"./bI-CyMRd.js";import"./CQ8OQGZw.js";import"./AyEfXI1F.js";import"./ji9NWyqi.js";import"./Cpf9u4PU.js";import"./DjIw8RWC.js";import"./BjSFPpfP.js";import"./CwET0GzH.js";const K={class:"address_online"},P={key:0,class:"mt-6"},Q={key:1,class:"relative mt-6"},W={class:"rtl text-right"},X={__name:"address-details-online",setup(Y,{expose:$}){const i=r(null),s=r(null),d=r(null),g=r([]),m=r(null),p=r(null),v=r(null),x=r(!1),b=r(!1),l=J(),V=r(null),q=r(null),k=j(),B=E(()=>{var t;return(t=l.getAddressData)==null?void 0:t.zn_countries}),C=function(){var t,e,a,c,u;l.getAddressData.zn_country_id&&(i.value=l.getAddressData.zn_countries.find(o=>l.getAddressData.zn_country_id===o.id),p.value=(t=i.value)==null?void 0:t.phone_code),l.getAddressData.zn_province_id&&((e=i.value)!=null&&e.zn_provinces)&&(s.value=i.value.zn_provinces.find(o=>l.getAddressData.zn_province_id===o.id)),l.getAddressData.zn_city_id&&((a=s.value)!=null&&a.zn_cities)&&(d.value=s.value.zn_cities.find(o=>l.getAddressData.zn_city_id===o.id)),(c=l.getAddressData)!=null&&c.whatsapp&&(m.value=l.getAddressData.whatsapp.number,p.value=l.getAddressData.whatsapp.zn_country.phone_code),(u=l.getAddressData)!=null&&u.email&&(v.value=l.getAddressData.email)},N=function(t){p.value=t,q.value.focus()},U=function(t){if(g.value=[],s.value=null,d.value=null,m.value||(p.value=t.phone_code),V.value){const e=l.getAddressData.zn_countries.findIndex(a=>a.phone_code===p.value);V.value.selectCode(e)}},I=function(){var e,a,c,u;const t=l.getAddressData.zn_countries.find(o=>o.phone_code===p.value);return l.storeAddressAction({teacher_request_id:(e=k.query)==null?void 0:e.teacher_request_id,zn_country_id:(a=i.value)==null?void 0:a.id,zn_province_id:(c=s.value)==null?void 0:c.id,zn_city_id:(u=d.value)==null?void 0:u.id,whatsapp_country_id:t==null?void 0:t.id,whatsapp_number:m.value,email:v.value})};return R(i,function(t){x.value=t==null?void 0:t.whatsapp,b.value&&U(t),t.zn_provinces&&t.zn_provinces.length>0&&(g.value=t.zn_provinces)}),R(s,function(){b.value&&(d.value=null)}),H(async()=>{await C(),b.value=!0}),$({storeData:I}),(t,e)=>{const a=M,c=S,u=L;return z(),D("div",K,[e[11]||(e[11]=_("img",{src:O,width:"194",height:"204",class:"mx-auto w-[104px] h-[110px] lg:w-[194px] lg:h-[204px] rounded",alt:"country",loading:"lazy"},null,-1)),e[12]||(e[12]=f()),_("div",null,[h(a,{ref:"countryRef",modelValue:n(i),"onUpdate:modelValue":e[0]||(e[0]=o=>y(i)?i.value=o:null),name:"countries",title:t.$t("teacher_request.country.title"),holder:t.$t("teacher_request.country.placeholder"),options:n(B),label:"name","is-hidden-error":!0,size:"md"},null,8,["modelValue","title","holder","options"]),e[9]||(e[9]=f()),n(g).length>0?(z(),D("div",P,[h(a,{ref:"provinceRef",modelValue:n(s),"onUpdate:modelValue":e[1]||(e[1]=o=>y(s)?s.value=o:null),name:"province",title:t.$t("teacher_request.province.title"),holder:t.$t("teacher_request.province.placeholder"),options:n(g),label:"name","is-hidden-error":!0,size:"md",class:"mb-6"},null,8,["modelValue","title","holder","options"]),e[5]||(e[5]=f()),n(s)?(z(),F(a,{key:0,ref:"cityRef",modelValue:n(d),"onUpdate:modelValue":e[2]||(e[2]=o=>y(d)?d.value=o:null),name:"city",title:t.$t("teacher_request.city.title"),holder:t.$t("teacher_request.city.placeholder"),options:n(s).zn_cities,label:"name","is-hidden-error":!0,size:"md"},null,8,["modelValue","title","holder","options"])):A("",!0)])):A("",!0),e[10]||(e[10]=f()),n(x)?(z(),D("div",Q,[h(u,{ref_key:"inputMobileRef",ref:q,modelValue:n(m),"onUpdate:modelValue":e[3]||(e[3]=o=>y(m)?m.value=o:null),label:t.$t("teacher_request.whatsapp_contact.number"),"label-class":"text__body-2--regular text-body-text-1","input-class":"ltr",autocomplete:"off",type:"tel",name:"mobile","max-length":15,size:"md",placeholder:"."},{placeholder:w(()=>e[6]||(e[6]=[_("div",{class:"flex justify-between"},[_("span",null,"مثال:"),f(),_("span",{class:"ml-9 lg:ml-2"},"9123456789")],-1)])),"icon-left":w(()=>
1[h(c,{ref_key:"codeRef",ref:V,value:n(p),"countries-list":n(l).getAddressData.zn_countries,class:"w-16 divide-x border-r border-grey-label",onInput:N},null,8,["value","countries-list"])]),_:1},8,["modelValue","label"]),e[8]||(e[8]=f()),h(u,{modelValue:n(v),"onUpdate:modelValue":e[4]||(e[4]=o=>y(v)?v.value=o:null),class:"mt-6 ltr",label:t.$t("labels.email"),placeholder:"."},{placeholder:w(()=>[_("p",W,G(t.$t("placeholders.email")),1)]),_:1},8,["modelValue","label"])])):A("",!0)])])}}},pe=T(X,[["__scopeId","data-v-edf82ae1"]]);export{pe 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.