PageSourceSearch

https://www.ozdilekteyim.com/chunk-PX5HH3IK.js

js ozdilekteyim.com collected 2026-09-24 10:57:04 UTC 13,880 bytes, 1 lines download raw bytes

1import{a as ve}from"./chunk-RVMAMBDX.js";import{a as B}from"./chunk-I23MUBKJ.js";import{a as he,b as ye,c as ke,d as De,e as we}from"./chunk-KL7ZD5PF.js";import"./chunk-2EN6LHMF.js";import"./chunk-KQHIYMA5.js";import{a as fe,b as xe,c as ge}from"./chunk-QWGXMLW5.js";import"./chunk-OEV6Z5SQ.js";import"./chunk-J4LBBLXH.js";import"./chunk-X5DGY6DB.js";import{y as Ce}from"./chunk-NRGR3S53.js";import"./chunk-PV3LKO3I.js";import{r as Ae}from"./chunk-52XBPXFR.js";import{c as ue}from"./chunk-IRUUDLGX.js";import"./chunk-YLPUROS7.js";import{N as pe}from"./chunk-YPA54LAK.js";import"./chunk-BTFSSCIJ.js";import"./chunk-W2F6WWIK.js";import"./chunk-L4ZEWT37.js";import"./chunk-RISCHKDK.js";import"./chunk-LXJFCHQ7.js";import"./chunk-6E6BIMAS.js";import{b as me}from"./chunk-4FRM4NZ2.js";import"./chunk-5EHSVCUQ.js";import{Aa as re,Ba as le,Qa as ae,Va as ce,Ya as _e}from"./chunk-WB4ZKX5G.js";import{Ba as ee,Cd as de,Dd as se,Va as te,f as J,j as K,k as X,kd as oe,q as Z,vc as ie,yc as ne}from"./chunk-3IFILS7V.js";import{$b as P,Ac as I,Ad as N,Ba as L,Bc as E,Cc as h,Dc as r,Ec as l,Fc as D,Fd as m,Gd as p,Ib as _,Kd as S,Lc as O,Oa as a,Pa as c,Pc as y,Vb as A,W as $,Xb as j,Xc as f,Zc as d,_b as Y,bd as Q,cd as W,dc as G,dd as q,ec as b,hb as R,hd as C,md as x,nd as k,od as z,vc as g,w as V,wc as U,x as F,xc as v,zc as M,zd as H}from"./chunk-7U63JCID.js";import"./chunk-NCEQPEJE.js";var Me=["addressFormComponent"],be=i=>({additionalOrderOpacity:i}),Ie=()=>({isDefaultAddress:!0});function Ee(i,s){if(i&1){let e=y();r(0,"ozd-address-item",17),f("editForm",function(){a(e);let t=d(5),o=C(4);return c(t.openModal(o,t.selectedAddress,t.delivery,"checkoutAddress.editYourAddress"))})("deleteAddress",function(){a(e);let t=d(5),o=C(8);return c(t.openConfirmDeleteAddresslModal(o,t.selectedAddress.id))})("onAddressDropdownClick",function(){a(e);let t=d(5);return c(t.onShippingAddressDropdownClick())}),l()}if(i&2){let e=d(5);h("card",e.selectedAddress)("index",0)("inputName","shippingAddress")("selectedAddress",e.selectedAddress)("isShowDropDown",e.deliveryAddressSize>1)("addressDropdown",e.shippingAddressDropdown)("isAdditionalOrder",e.isAdditionalOrder)("addressType",e.delivery)}}function Oe(i,s){if(i&1){let e=y();r(0,"ozd-address-item",19),f("editForm",function(){a(e);let t=d().$implicit,o=d(5),u=C(4);return c(o.openModal(u,t,o.delivery,"checkoutAddress.editYourAddress"))})("deleteAddress",function(){a(e);let t=d().$implicit,o=d(5),u=C(8);return c(o.openConfirmDeleteAddresslModal(u,t.id))})("onAddressDropdownClick",function(){a(e);let t=d(6);return c(t.onShippingAddressDropdownClick())})("setDefaultShippingAddress",function(t){a(e);let o=d(6);return c(o.setDefaultShippingAddress(t))}),l()}if(i&2){let e=d(),n=e.$implicit,t=e.$index,o=d(5);h("card",n)("index",t)("inputName","shippingAddress")("selectedAddress",o.selectedAddress)("addressDropdown",o.shippingAddressDropdown)("isAdditionalOrder",o.isAdditionalOrder)("addressType",o.delivery)}}function ze(i,s){if(i&1&&g(0,Oe,1,7,"ozd-address-item",18),i&2){let e=s.$implicit,n=d(5);v(e.location!=null&&e.location.city&&e.id!=n.selectedAddress.id?0:-1)}}function Ne(i,s){if(i&1&&(r(0,"div",11)(1,"div",13)(2,"div",14)(3,"h3"),x(4),m(5,"cxTranslate"),l(),r(6,"div",15),g(7,Ee,1,8,"ozd-address-item",16),I(8,ze,1,1,null,null,M),l()()()()),i&2){let e=d(4);h("ngClass",N(5,be,e.isAdditionalOrder)),_(4),k(p(5,3,"checkoutAddress.shippingAddress")),_(3),v(e.selectedAddress&&(!(e.selectedAddress==null||e.selectedAddress.location==null)&&e.selectedAddress.location.city)?7:-1),_(),E(s)}}function $e(i,s){if(i&1){let e=y();r(0,"ozd-address-item",21),f("editForm",function(){a(e);let t=d(5),o=C(4);return c(t.openModal(o,t.selectedBillingAddress,t.billing,"checkoutAddress.editYourAddress"))})("deleteAddress",function(){a(e);let t=d(5),o=C(8);return c(t.openConfirmDeleteAddresslModal(o,t.selectedBillingAddress.id))})("onAddressDropdownClick",function(){a(e);let t=d(5);return c(t.onBillingAddressDropdownClick())}),l()}if(i&2){let e=d(5);h("card",e.selectedBillingAddress)("inputName","billingAddress")("index",0)("isShowDropDown",e.billingAddressSize>1)("selectedAddress",e.selectedBillingAddress)("addressDropdown",e.billingAddressDropdown)("isAdditionalOrder",e.isAdditionalOrder)("addressType",e.billing)}}
1function Le(i,s){if(i&1){let e=y();r(0,"ozd-address-item",21),f("editForm",function(){a(e);let t=d().$implicit,o=d(5),u=C(4);return c(o.openModal(u,t,o.billing,"checkoutAddress.editYourAddress"))})("deleteAddress",function(){a(e);let t=d().$implicit,o=d(5),u=C(8);return c(o.openConfirmDeleteAddresslModal(u,t.id))})("onAddressDropdownClick",function(){a(e);let t=d(6);return c(t.onBillingAddressDropdownClick())}),l()}if(i&2){let e=d(),n=e.$implicit,t=e.$index,o=d(5);h("card",n)("inputName","billingAddress")("index",t)("isShowDropDown",o.billingAddressSize>1)("selectedAddress",o.selectedBillingAddress)("addressDropdown",o.billingAddressDropdown)("isAdditionalOrder",o.isAdditionalOrder)("addressType",o.billing)}}function Re(i,s){if(i&1&&g(0,Le,1,8,"ozd-address-item",20),i&2){let e=s.$implicit,n=d(5);v(e.location!=null&&e.location.city&&e.id!=n.selectedBillingAddress.id?0:-1)}}function je(i,s){if(i&1&&(r(0,"div",12)(1,"div",13)(2,"div",14)(3,"h3"),x(4),m(5,"cxTranslate"),l(),r(6,"div",15),g(7,$e,1,8,"ozd-address-item",20),I(8,Re,1,1,null,null,M),l()()()()),i&2){let e=d(4);h("ngClass",N(5,be,e.isAdditionalOrder)),_(4),k(p(5,3,"checkoutAddress.billingAddress")),_(3),v(e.selectedBillingAddress&&(!(e.selectedBillingAddress==null||e.selectedBillingAddress.location==null)&&e.selectedBillingAddress.location.city)?7:-1),_(),E(s)}}function Ye(i,s){if(i&1){let e=y();r(0,"div",6)(1,"div",7)(2,"div",8)(3,"button",9),f("click",function(){a(e);let t=d(3),o=C(4);return c(t.openModal(o,null,t.deliverybilling,"checkoutAddress.addNewShippingAddress"))}),D(4,"i",10),x(5),m(6,"cxTranslate"),l()()()(),r(7,"div",6),g(8,Ne,10,7,"div",11),m(9,"async"),g(10,je,10,7,"div",12),m(11,"async"),l()}if(i&2){let e,n,t=d(3);_(5),z(" ",p(6,3,"addressBook.addNewAddress")),_(3),v((e=p(9,5,t.shippingCards$))?8:-1,e),_(2),v((n=p(11,7,t.billingCards$))?10:-1,n)}}function Pe(i,s){i&1&&O(0)}function Ge(i,s){if(i&1&&b(0,Pe,1,0,"ng-container",22),i&2){d(3);let e=C(6);h("ngTemplateOutlet",e)("ngTemplateOutletContext",H(2,Ie))}}function Ue(i,s){if(i&1&&(r(0,"div",4),g(1,Ye,12,9)(2,Ge,1,3,"ng-container"),l()),i&2){let e=d(2);_(),v(e.addressTotal?1:2)}}function Qe(i,s){i&1&&(r(0,"div",5),D(1,"cx-spinner"),l())}function We(i,s){if(i&1&&(g(0,Ue,3,1,"div",4),m(1,"async"),U(2,Qe,2,0,"div",5)),i&2){let e=d();v(!e.forceLoader&&p(1,1,e.isAddressLoading$)===!1?0:2)}}function qe(i,s){i&1&&O(0)}function He(i,s){if(i&1){let e=y();r(0,"div",23)(1,"h3",24),x(2),m(3,"cxTranslate"),l(),r(4,"button",25),f("click",function(){a(e);let t=d();return c(t.launchDialogService.closeDialog(""))}),r(5,"span",26),x(6,"\xD7"),l()()(),r(7,"div",27),b(8,qe,1,0,"ng-container",28),l()}if(i&2){d();let e=C(6);_(2),k(p(3,2,"checkoutAddress.editYourAddress")),_(6),h("ngTemplateOutlet",e)}}function Je(i,s){if(i&1){let e=y();D(0,"ozd-address-form",29,3),r(2,"div",30)(3,"button",31),f("click",function(){a(e);let t=C(1),o=d();return c(o.onSubmit(t.addressForm))}),x(4),m(5,"cxTranslate"),l()()}if(i&2){let e=s.isDefaultAddress,n=d();h("addressData",n.addressData)("defaultAddress",e)("addressFormType",n.selectedAddressType)("disableDefault",n.addressTotal===0),_(4),z(" ",p(5,5,"addressForm.saveButton")," ")}}function Ke(i,s){if(i&1){let e=y();r(0,"div",23),D(1,"h3",24),r(2,"button",32),f("click",function(){a(e);let t=d();return c(t.launchDialogService.closeDialog(""))}),r(3,"span",26),x(4,"\xD7"),l()()(),r(5,"div",27)(6,"p"),x(7),m(8,"cxTranslate"),l()(),r(9,"div",33)(10,"button",34),f("click",function(){a(e);let t=d();return c(t.deleteAddress(t.addressIdToDelete))}),x(11),m(12,"cxTranslate"),l(),r(13,"button",35),f("click",function(){a(e);let t=d();return c(t.closeModal())}),x(14),m(15,"cxTranslate"),l()()}i&2&&(_(7),k(p(8,3,"checkoutAddress.confirmDeleteAddress")),_(4),k(p(12,5,"checkoutAddress.yes")),_(3),k(p(15,7,"checkoutAddress.no")))}var T=class i extends he{constructor(e,n,t,o,u,w,Xe,Be,Te,Ve){super("all",o,u,t,w,Be,Te,Ve);this.service=e;this.translation=n;this.userAddressService=t;this.checkoutDeliveryService=o;this.globalMessageService=u;this.el=w;this.baseStoreService=Xe;this.launchDialogService=Be;this.vcr=Te;this.winRef=Ve;this.delivery=fe;this.billing=xe;this.deliverybilling=ge;this.selectedAddressType=this.deliverybilling;this.forceLoader=!1;this.isMarket=this.baseStoreService.getActiveTyp().includes("market");this.filterType=this.isMarket?"allmarket":"all"}ngOnInit(){this.init(),this.getAddressList(),this.userAddressService.loadAddresses(this.filterType)}getAddressList(){this.shippingCards$=F([this.addresses$]).pipe(V(([e])=>{if(this.forceLoader=!1,!e?.deliveryAddresses?.addresses)return this.selectedAddress=null,[];let n=e?.deliveryAddresses?.addresses;return n.length>0&&(this.selectedAddress=n.find(t=>t.defaultShippingAddress===!0)||n.at(0),this.deliveryAddressSize=n.length),n})),this.billingCards$=F([this.addresses$]).pipe(V(([e])=>{if(this.forceLoader=!1,!e?.paymentAddresses?.addresses)return this.selectedBillingAddress=null,[];let n=e?.paymentAddresses?.addresses;return n.length>0&&(this.selectedBillingAddress=n.at(0),this.billingAddressSize=n.length),n}))}onShippingAddressDropdownClick(){this.shippingAddressDropdown=!this.shippingAddressDropdown}onBillingAddressDropdownClick(){this.billingAddressDropdown=!this.billingAddressDropdown}setAddressAsDefault(e){this.userAddressService.setAddressAsDefault(e,"myaccount")}deleteAddress(e){this.userAddressService.deleteUserAddress(e,"myaccount"),this.launchDialogService.closeDialog("")}openModal(e,n,t=this.delivery,o){this.addressData=n;let u={content:e}
1,w=this.launchDialogService.openDialog(re.STATIC_MODAL,null,this.vcr,u);w&&w.pipe($(1)).subscribe()}closeModal(){this.launchDialogService.closeDialog(""),this.addressData=null}addAddress(e){this.forceLoader=!0,this.addressData?(this.userAddressService.updateUserAddress(this.addressData.id,e,"myaccount"),this.addressData=null):this.userAddressService.addUserAddress(e,"myaccount"),this.closeModal()}onSubmit(e){this.clearBillingFormAttributes(e),ve(e),e.valid?(this.addressForm=e,this.selectedAddressType===this.billing?(this.billingAddress=e.value,e.controls.corporate.value||(this.billingAddress.tcVergiNo=e.controls.tcNo.value),this.checkoutDeliveryService.verifyBillingAddress(e.value)):(this.deliveryAddress=e.getRawValue(),e.controls.corporate.value||(this.deliveryAddress.tcVergiNo=e.controls.tcNo.value),this.checkoutDeliveryService.verifyAddress(e.value))):(e.markAllAsTouched(),this.focusOnWrongInput())}setDefaultShippingAddress(e){this.addressData=e,this.deliveryAddress=e,this.checkoutDeliveryService.verifyAddress(e)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||i)(A(B),A(oe),A(ue),A(pe),A(ie),A(R),A(me),A(le),A(j),A(te))}}static{this.\u0275cmp=Y({type:i,selectors:[["ozd-address-book"]],viewQuery:function(n,t){if(n&1&&Q(Me,5),n&2){let o;W(o=q())&&(t.addressFormComponent=o.first)}},standalone:!1,features:[G],decls:9,vars:5,consts:[["modalAddressForm",""],["addressForm",""],["deleteAddressModal",""],["addressFormComponent",""],[1,"container-box"],[1,"cx-spinner"],[1,"row"],[1,"col"],[1,"container-header"],["type","button",1,"btn","btn-xs","btn-primary",3,"click"],[1,"fas","fa-plus"],[1,"col-md-6",3,"ngClass"],[1,"col-md-6","mt-3","mt-lg-0",3,"ngClass"],[1,"save-address-dropdown-box"],[1,"address-info-content"],["data-number","1",1,"card-list"],["location","address-book",3,"card","index","inputName","selectedAddress","isShowDropDown","addressDropdown","isAdditionalOrder","addressType"],["location","address-book",3,"editForm","deleteAddress","onAddressDropdownClick","card","index","inputName","selectedAddress","isShowDropDown","addressDropdown","isAdditionalOrder","addressType"],["location","address-book",3,"card","index","inputName","selectedAddress","addressDropdown","isAdditionalOrder","addressType"],["location","address-book",3,"editForm","deleteAddress","onAddressDropdownClick","setDefaultShippingAddress","card","index","inputName","selectedAddress","addressDropdown","isAdditionalOrder","addressType"],["location","address-book",3,"card","inputName","index","isShowDropDown","selectedAddress","addressDropdown","isAdditionalOrder","addressType"],["location","address-book",3,"editForm","deleteAddress","onAddressDropdownClick","card","inputName","index","isShowDropDown","selectedAddress","addressDropdown","isAdditionalOrder","addressType"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[4,"ngTemplateOutlet"],[3,"addressData","defaultAddress","addressFormType","disableDefault"],[1,"footer-buttons"],[1,"btn","btn-primary","btn-sm",3,"click"],["type","button","data-dismiss","modal",1,"close",3,"click"],[1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click"],[1,"btn","btn-sm","btn-primary",3,"click"]],template:function(n,t){n&1&&(g(0,We,3,3),m(1,"async"),m(2,"async"),b(3,He,9,4,"ng-template",null,0,S)(5,Je,6,7,"ng-template",null,1,S)(7,Ke,16,9,"ng-template",null,2,S)),n&2&&v(p(1,1,t.shippingCards$)||p(2,3,t.billingCards$)?0:-1)},dependencies:[J,K,ye,ae,ke,X,de],styles:[".container-header[_ngcontent-%COMP%]{display:flex;margin-bottom:1rem}.container-header[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin-left:auto}"]})}};var Se=class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=P({type:i})}static{this.\u0275inj=L({providers:[ee({cmsComponents:{AccountAddressBookComponent:{component:T,guards:[ne]}}}),B],imports:[Z,_e,De,ce,se,Ae,we,Ce]})}};export{Se as AddressBookModule};

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.