PageSourceSearch

https://www.mobilaty.com/chunk-CJDJ4FND.js

js mobilaty.com collected 2026-09-26 06:39:27 UTC 18,052 bytes, 1 lines download raw bytes

1import{a as tt}from"./chunk-J2GXDGAH.js";import"./chunk-75VNUPBK.js";import"./chunk-WTQVHJ42.js";import"./chunk-VUKVUUH6.js";import"./chunk-QQ7JSLET.js";import{a as X}from"./chunk-GFIJJACK.js";import{a as Z}from"./chunk-2UA6TCCY.js";import"./chunk-IVBJ6QSI.js";import{b as Q}from"./chunk-UOYAFCYL.js";import"./chunk-HHMTH4HT.js";import"./chunk-A4EGP257.js";import"./chunk-4O3QRQZX.js";import"./chunk-STOFOLRO.js";import"./chunk-RASOJ5V5.js";import"./chunk-NUEFSQ46.js";import"./chunk-7U2BASOE.js";import{c as J}from"./chunk-72GGKWPE.js";import"./chunk-Q552C7ER.js";import"./chunk-SAFVDHRT.js";import"./chunk-RB2S46CA.js";import"./chunk-M6YBUOY2.js";import"./chunk-IU55SDP3.js";import"./chunk-3JK37A26.js";import"./chunk-NV435GZZ.js";import"./chunk-T2Y6O2DS.js";import"./chunk-TLLJAUWH.js";import{A as R,C as z,d as s,g as E,h as N,j as g,l as V,n as D}from"./chunk-ZBCB6LV4.js";import{b as U}from"./chunk-HL7BJZV6.js";import"./chunk-HDGWW4B5.js";import"./chunk-QTMS4CES.js";import"./chunk-67IT4HQ6.js";import"./chunk-5N6GHOEK.js";import"./chunk-KI2J3YBE.js";import"./chunk-YTKGCRFM.js";import"./chunk-SYYW42YP.js";import"./chunk-5CZSBVZS.js";import"./chunk-2QHSH4C5.js";import"./chunk-AZNDFKR7.js";import{a as H}from"./chunk-YASVH6IG.js";import"./chunk-T72KRGKQ.js";import"./chunk-BUAPEGGQ.js";import{b as j,k as L,m as $,p as G,q as W}from"./chunk-4RIR7WXT.js";import{e as B}from"./chunk-A6TC6UF3.js";import{f as q,j as Y}from"./chunk-U7C2VJFE.js";import{a as K}from"./chunk-TRQH7RF7.js";import"./chunk-INSLQN5H.js";import"./chunk-WA7XMA53.js";import"./chunk-M6GVYWVC.js";import{j as T,l as I}from"./chunk-REJHG727.js";import{$c as A,Fb as p,Mc as l,Nc as _,Oc as f,X as u,f as b,fc as a,gc as m,ha as C,hb as o,hc as d,ic as h,na as v,oa as y,pc as M,rd as w,sd as F,tb as i,vc as S,xc as x,ya as P,zb as k}from"./chunk-DQAZAY3R.js";import"./chunk-HGJ4MBLN.js";var dt=e=>({"mb-4":e});function lt(e,c){e&1&&(m(0,"p",16),l(1),d()),e&2&&(o(),_("*\u0633\u062A\u062C\u062F \u0631\u0642\u0645 \u0627\u0644\u0637\u0644\u0628 \u0645\u0630\u0643\u0648\u0631\u064B\u0627 \u0641\u064A \u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u062A\u0623\u0643\u064A\u062F \u0627\u0644\u062A\u064A \u0648\u0635\u0644\u062A\u0643 \u0639\u0628\u0631 \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0623\u0648 \u0641\u064A \u0631\u0633\u0627\u0644\u0629 \u0642\u0635\u064A\u0631\u0629 (SMS)."))}function ct(e,c){e&1&&(m(0,"p",16),l(1),d()),e&2&&(o(),_("*You can find your order number in the confirmation message sent to you by email or SMS."))}function ut(e,c){e&1&&(m(0,"div",17),h(1,"app-loading"),d())}function pt(e,c){if(e&1){let t=M();m(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"mat-card",8)(5,"h2",9),l(6),d(),m(7,"p",10),l(8),d(),p(9,lt,2,1,"p",11)(10,ct,2,1,"p",11),m(11,"form",12),h(12,"app-form-fields",13),m(13,"button",14),S("click",function(){v(t);let n=x();return y(n.onSubmit())}),l(14),p(15,ut,2,0,"div",15),d()()()()()()()}if(e&2){let t=x();o(6),f(" ",t.lang()==="en"?"Track Your Order":"\u062A\u062A\u0628\u0639 \u0637\u0644\u0628\u0643"," "),o(),a("ngClass",A(11,dt,t.lang()==="en")),o(),f(" ",t.lang()==="en"?"To track your order, please enter the order number and the phone number used when placing the order in the field below, then click on the Track button.":"\u0644\u062A\u062A\u0628\u0639 \u0637\u0644\u0628\u0643\u060C \u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0631\u0642\u0645 \u0627\u0644\u0637\u0644\u0628 \u0648\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641 \u0627\u0644\u0645\u0633\u062C\u0651\u0644 \u0628\u0647 \u0627\u0644\u0637\u0644\u0628 \u0641\u064A \u0627\u0644\u0645\u0631\u0628\u0639 \u0623\u062F\u0646\u0627\u0647\u060C \u062B\u0645 \u0627\u0644\u0636\u063A\u0637 \u0639\u0644\u0649 \u0632\u0631 \u062A\u062A\u0628\u0639 \u0627\u0644\u0637\u0644\u0628 ."," "),o(),a("ngIf",t.lang()=="ar"),o(),a("ngIf",t.lang()=="en"),o(),a("formGroup",t.trackOrderForm),o(),a("form",t.trackOrderForm)("fields",t.formFields()),o(),a("disabled",t.isSubmitted),o(),f(" ",t.lang()==="en"?"Track Order":"\u062A\u062A\u0628\u0639 \u0627\u0644\u0637\u0644\u0628"," "),o(),a("ngIf",t.isSubmitted)}}function ht(e,c){e&1&&(m(0,"div"),h(1,"app-order-details"),d())}var Yt=(()=>{class e{formBuilder;router;route;embryoService;translate;confgServ;metaService;toast;registerService;accountSettingService;storage;trackOrderForm;languageService=C(W);lang=this.languageService.currentLanguage;environmentVariables;isSubmitted=!1;isOrderDetails=!1;orderData=null;uuid="";showOrderDetails=!1;countries=P([]);selectedCountry;searchTxt="";destroy$=new b;constructor(t,r,n,et,rt,ot,it,nt,at,mt,st){this.formBuilder=t,this.router=r,this.route=n,this.embryoService=et,this.translate=rt,this.confgServ=ot,this.metaService=it,this.toast=nt,this.registerService=at,this.accountSettingService=mt,this.storage=st,this.confgServ.getenvConfig().pipe(u(this.destroy$)).subscribe(O=>{this.environmentVariables=O}),F(()=>{let O=this.lang();this.environmentVariables&&this.setPageTitle()})}ngOnInit(){this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS&&this.getCountries(),this.route.params.subscribe(t=>{this.uuid=t.id||"",this.uuid&&(this.isOrderDetails=!0)}),this.initializeForm(),setTimeout(()=>{this.setPageTitle()},1500)}setPageTitle(){this.lang()==="en"?this.metaService.setTitle(`Track Your Order - ${this.environmentVariables?.APP_NAME||""}`):this.metaService.setTitle(`\u062A\u062A\u0628\u0639 \u0637\u0644\u0628\u0643 - ${this.environmentVariables?.APP_NAME_AR||""}`)}formFields=w(()=>[{type:"input",controlName:"order_id",visible:!0,labelKey:this.lang()==="en"?"Order ID":"\u0631\u0642\u0645 \u0627\u0644\u0637\u0644\u0628",placeholderKey:this.lang()==="en"?"Order ID":"\u0631\u0642\u0645 \u0627\u0644\u0637\u0644\u0628",showRequiredAsterisk:!0,fieldClassFlex:"col-12",errors:[{condition:()=>!!(this.trackOrderForm?.controls?.order_id?.errors?.required&&(this.trackOrderForm?.controls?.order_id?.touched||this.trackOrderForm?.controls?.order_id?.dirty)),errorKey:this.lang()==="en"?"Order ID is required":"\u0631\u0642\u0645 \u0627\u0644\u0637\u0644\u0628 \u0645\u0637\u0644\u0648\u0628"}]},{type:"phone",controlName:"phone",visible:!this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS,labelKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.inputPhone":"input_text.inputPhone",placeholderKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.inputPhone":"input_text.inputPhone",showRequiredAsterisk:!0,minLength:this.environmentVariables?.localization?.phone_length<1e3?this.environmentVariables?.localization?.phone_length:void 0,maxLength:this.environmentVariables?.localization?.phone_length,onKeypress:t=>this.numberOnly(t),fieldClassFlex:"col-12",errors:[{condition:()=>!!(this.trackOrderForm?.controls?.phone?.errors?.required&&(this.trackOrderForm?.controls?.phone?.touched||this.trackOrderForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.requiredPhone":"validation_Input.requiredPhone"},{condition:()=>!!(this.trackOrderForm?.controls?.phone?.errors?.pattern&&(this.trackOrderForm?.controls?.phone?.touched||this.trackOrderForm?.controls?.phone?.dirty)&&!this.trackOrderForm?.controls?.phone?.errors?.required),errorKey:"validation_Input.phoneNumberPattern"}]},{type:"select-with-country",controlName:"phone",countryControlName:"phone_country_id",visible:!!this.environmentVariables?.ENABLE_INTERNATIONAL_ADDRESS,labelKey:this.lang()==="en"?"Phone Number":"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641",placeholderKey:this.lang()==="en"?"Phone Number":"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641",countries:this.countries(),selectedCountry:this.selectedCountry,searchTxt:this.searchTxt||"",onKeypress:t=>this.numberOnly(t),onCountryChange:t=>this.chooseCountry(t),onSearchChange:t=>{this.searchTxt=t},fieldClassFlex:"col-12",errors:[{condition:()=>!!(this.trackOrderForm?.controls?.phone?.errors?.required&&(this.trackOrderForm?.controls?.phone?.touched||this.trackOrderForm?.controls?.phone?.dirty)),errorKey:this.environmentVariables?.COUNTRY_CODE=="SA"?"ARSA.requiredPhone":"validation_Input.requiredPhone"},{condition:()=>!!(this.trackOrderForm?.controls?.phone?.errors?.pattern&&(this.trackOrderForm?.controls?.phone?.touched||this.trackOrderForm?.controls?.phone?.dirty)&&!this.trackOrderForm?.controls?.phone?.errors?.required),errorKey:"validation_Input.phoneNumberPattern"}]}]);initializeForm(){this.trackOrderForm=new N({order_id:new g("",[s.required]),phone:new g("",[s.required,s.minLength(this.environmentVariables?.localization?.phone_length<1e3?this.environmentVariables?.localization?.phone_length:0),s.maxLength(this.environmentVariables?.localization?.phone_length),s.pattern(this.environmentVariables?.localization?.phone_pattern)]),phone_country_id:new g("")}
1)}onSubmit(){if(this.trackOrderForm.valid){this.isSubmitted=!0;let t={order_id:this.trackOrderForm.value.order_id,phone:this.trackOrderForm.value.phone};this.accountSettingService.trackYourOrder(t).pipe(u(this.destroy$)).subscribe({next:r=>{if(this.isSubmitted=!1,r.code===200&&r.data){let n=r.data.uuid;this.router.navigate([`/${this.lang()}/account/track-your-order/${n}`],{replaceUrl:!0,skipLocationChange:!1})}else this.showOrderNotFoundError()},error:r=>{this.isSubmitted=!1,this.showOrderNotFoundError()}})}else this.trackOrderForm.markAllAsTouched()}showOrderNotFoundError(){this.toast.error(this.lang()==="en"?"We cannot find your order. Please check your order ID and phone number and try again.":"\u0644\u0627 \u064A\u0645\u0643\u0646\u0646\u0627 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0637\u0644\u0628\u0643. \u064A\u0631\u062C\u0649 \u0627\u0644\u062A\u062D\u0642\u0642 \u0645\u0646 \u0631\u0642\u0645 \u0627\u0644\u0637\u0644\u0628 \u0648\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062A\u0641 \u0648\u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.")}getCountries(){this.registerService.getCountries().pipe(u(this.destroy$)).subscribe(t=>{t?.code==200&&(this.countries.set(t.data),this.selectedCountry=this.countries()[0],this.trackOrderForm.get("phone_country_id")?.setValue(this.selectedCountry?.id),this.trackOrderForm.controls.phone.setValidators([s.required,s.pattern(this.selectedCountry.phone_pattern)]),this.trackOrderForm.controls.phone.updateValueAndValidity())})}chooseCountry(t){this.searchTxt="",this.selectedCountry=this.countries().find(r=>r.id==t),this.trackOrderForm.controls.phone.setValidators([s.required,s.pattern(this.selectedCountry.phone_pattern)]),this.trackOrderForm.controls.phone.updateValueAndValidity()}numberOnly(t){return t.charCode>=48&&t.charCode<=57&&t.charCode!=32}formControlValidator(t,r,n){if(t.controls[r].touched&&t.controls[r].dirty&&t.controls[r].errors)return t.controls[r].errors[n]}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(r){return new(r||e)(i(R),i(Y),i(q),i(G),i(j),i(B),i(J),i(L),i(X),i($),i(K))};static \u0275cmp=k({type:e,selectors:[["app-track-your-order"]],decls:4,vars:2,consts:[[1,"inner-container","bg-white"],[1,"container"],["class","fx-layout-row-wrap",4,"ngIf"],[4,"ngIf"],[1,"fx-layout-row-wrap"],[1,"fx-flex-xs-100","fx-flex-sm-100","fx-flex-md-100","fx-flex-lg-100","fx-flex-xl-100"],[1,"fx-layout-row-wrap","fx-layout-align-center-center"],[1,"fx-flex-xs-100","fx-flex-sm-100","fx-flex-md-60","fx-flex-lg-50","fx-flex-xl-50"],[1,"track-order-form","form-margin","text"],[1,"text-center",2,"font-size","1.4rem !important"],[1,"track-description","mb-0",3,"ngClass"],["class","track-description",4,"ngIf"],["autocomplete","off",1,"login-container",3,"formGroup"],[3,"form","fields"],["color","accent","mat-raised-button","","type","submit",1,"button-lg","mb-3",3,"click","disabled"],["class","toggle-loading",4,"ngIf"],[1,"track-description"],[1,"toggle-loading"]],template:function(r,n){r&1&&(m(0,"div",0)(1,"div",1),p(2,pt,16,13,"div",2)(3,ht,2,0,"div",3),d()()),r&2&&(o(2),a("ngIf",!n.isOrderDetails),o(),a("ngIf",n.isOrderDetails))},dependencies:[I,Z,T,z,V,E,D,Q,U,H,tt],styles:["form[_ngcontent-%COMP%]{background:#fff;padding:40px;border-radius:12px;box-shadow:0 2px 8px #00000014}@media(max-width:700px){form[_ngcontent-%COMP%]{padding:20px}}.track-order-form[_ngcontent-%COMP%]{padding:30px}.track-order-form[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-bottom:20px;color:var(--dynamic-menu-level-1-color)}.track-description[_ngcontent-%COMP%]{margin-bottom:30px;color:var(--text-secondary-color);line-height:1.6;font-size:14px}.login-container[_ngcontent-%COMP%]{width:100%}.login-container[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.form-margin[_ngcontent-%COMP%]{margin:20px 0}.w-100[_ngcontent-%COMP%]{width:100%}.mb-3[_ngcontent-%COMP%]{margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1.5rem}.section-gap-lg[_ngcontent-%COMP%]{padding:80px 0}.inner-container[_ngcontent-%COMP%]{min-height:60vh}.bg-white[_ngcontent-%COMP%]{background-color:#fff}.py-3[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:1rem}.object-fit-contain[_ngcontent-%COMP%]{object-fit:contain}@media(max-width:768px){.track-order-form[_ngcontent-%COMP%]{padding:20px;margin:10px}.section-gap-lg[_ngcontent-%COMP%]{padding:40px 0}.track-description[_ngcontent-%COMP%]{font-size:13px}}
1.country-picker-component[_ngcontent-%COMP%]{gap:12px;width:100%;max-width:100%;overflow:hidden}.country-picker-component[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;max-width:calc(50% - 6px)}.country-picker-component[_ngcontent-%COMP%] > mat-form-field[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;max-width:calc(50% - 6px)}.country-picker-component[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:0!important}.custom-search-input[_ngcontent-%COMP%]{padding:8px 12px;border-bottom:1px solid #ddd;margin-bottom:8px}.custom-search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;outline:none;width:100%;font-size:14px}.custom-search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#999}.countries-search[_ngcontent-%COMP%]{background:transparent!important}  .mat-option{display:flex;align-items:center;gap:8px}  .mat-option img{margin-right:8px}[_nghost-%COMP%]     .mat-form-field{width:100%;display:block}[_nghost-%COMP%]     .mat-form-field .mat-form-field-underline{display:none!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-wrapper{padding-bottom:1.25em!important;margin:0!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-flex{align-items:stretch!important;padding:0!important;background:#fafafa!important;border:1px solid #E0E0E0!important;border-radius:8px!important;transition:all .3s ease!important;position:relative!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-flex:hover{background:#f5f5f5!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-infix{padding:16px 20px!important;border-top:0!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-label-wrapper{display:none!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-label{display:none!important}[_nghost-%COMP%]     .mat-form-field.mat-focused .mat-form-field-flex{border-color:#bdbdbd!important;background:#fff!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-ripple{display:none!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-subscript-wrapper{position:static!important;margin-top:4px!important;padding:0!important;overflow:visible!important}[_nghost-%COMP%]     .mat-form-field .mat-input-element{height:24px!important;line-height:24px!important;font-size:16px!important;color:#424242!important}[_nghost-%COMP%]     .mat-form-field .mat-input-element::placeholder{color:#9e9e9e!important;opacity:1!important}[_nghost-%COMP%]     .mat-form-field .mat-error{font-size:12px!important;margin-top:0!important;padding:2px 4px!important;color:#f44336!important;line-height:1.4!important;display:block!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-suffix{top:0!important;display:flex!important;align-items:center!important;height:100%!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field-suffix .mat-icon{color:#757575!important}@media(max-width:700px){[_nghost-%COMP%]     .mat-form-field .mat-form-field-infix{padding:12px 8px!important}[_nghost-%COMP%]     .mat-form-field .mat-form-field.mat-form-field-type-mat-select .mat-form-field-infix{padding:12px 8px!important}}[_nghost-%COMP%]     .mat-form-field.mat-form-field-type-mat-select .mat-form-field-infix{padding:16px 20px!important}[_nghost-%COMP%]     .mat-form-field.mat-form-field-type-mat-select .mat-select{font-size:16px!important;color:#424242!important}[_nghost-%COMP%]     .mat-form-field.mat-form-field-type-mat-select .mat-select-placeholder{color:#9e9e9e!important}[_nghost-%COMP%]     .mat-form-field.mat-form-field-type-mat-select .mat-select-trigger{height:24px!important}[_nghost-%COMP%]     .mat-form-field.mat-form-field-type-mat-select .mat-select-value{color:#424242!important}.field-label[_ngcontent-%COMP%]{display:block;margin-bottom:12px;font-weight:400;color:var(--brand-color);font-size:14px!important;line-height:1.2}.field-label[_ngcontent-%COMP%]   .required-asterisk[_ngcontent-%COMP%]{color:#f44336;margin-left:2px}.button-lg[_ngcontent-%COMP%]{background-color:var(--brand-color);position:relative;margin-top:16px;width:100%!important;height:56px!important;border-radius:8px!important;font-size:18px!important;font-weight:600!important;text-transform:none!important;box-shadow:0 2px 8px #00000026}.button-lg[_ngcontent-%COMP%]:hover:not(:disabled){box-shadow:0 4px 12px #0003}.button-lg[_ngcontent-%COMP%]   .toggle-loading[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#ffffff4d;width:100%;height:100%}.button-lg[_ngcontent-%COMP%]   .toggle-loading[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:30px;height:30px;margin:auto;position:absolute;inset:0}"]})}return e})();export{Yt as TrackYourOrderComponent};

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.