(this["webpackJsonp6th-street"]=this["webpackJsonp6th-street"]||[]).push([[34],{1511:function(e,t,n){"use strict";(function(e){var i=n(18),o=n(1512),a=n(14),s=n(21),r=n(1513),c=n(1776),l=n(47),d=n(9),u=n(1514),p=n(13).checkBEMProps;class h extends c.a{constructor(){super(...arguments),this.onPageLoad=e=>{const{location:{pathname:t},updateMeta:n,setHeaderState:o,updateBreadcrumbs:a}=this.props,{content_heading:s,meta_title:c,title:u}=e;Object(l.b)(this.setOfflineNoticeSize,r.a)(),a(e),n({title:c||u}),t!==Object(d.a)("/")&&"/"!==t&&o({name:i.s,title:s,onBackClick:()=>history.goBack()}),this.setState({page:e,isLoading:!1})}}async requestPage(){const{id:e}=this.getRequestQueryParams(),{cmsPage:t}=await Object(l.f)(o.a.getQuery({id:e}));this.onPageLoad(t)}render(){return p(e,u.a,Object.assign({},this.props,this.state))}}t.a=Object(s.j)(Object(a.b)(c.c,c.b)(Object(s.j)(h)))}).call(this,n(1))},1512:function(e,t,n){"use strict";var i=n(8);t.a=new class{getQuery(e){let{id:t}=e;return new i.a("cmsPage").addArgument("id","Int!",t).addFieldList(["title","content","content_heading","meta_title"])}}},1513:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=300},1514:function(e,t,n){"use strict";(function(e,i){var o=n(214),a=n(1777),s=n(11),r=n(16),c=n(1780),l=(n(1783),n(13).checkBEMProps);class d extends a.a{constructor(){super(...arguments),this.state={isArabic:Object(s.h)(),isMobile:r.a.any()}}renderTitle(){return location.pathname.match(/faq/)?e("FAQ"):location.pathname.match(/cookies-policy/)?e("Cookies Policy"):location.pathname.match(/shipping-policy/)?e("Shipping Policy"):location.pathname.match(/privacy-policy/)?e("Privacy Policy"):e("Return Policy")}renderTitleMobile(){return location.href.match(/private-sales/)?"Private sales":location.href.match(/about-apparel-group/)?"About Apparel Group":location.href.match(/about-club-apparel/)?"About Club Apparel":location.href.match(/terms-and-conditions/)?e("Terms & Conditions"):location.href.match(/reward-points/)?"Reward Points":location.href.match(/try-again-later/)?"Try Again Later":location.href.match(/liked-products/)?"Liked Products":null}renderCloseButton(){const{isArabic:e}=this.state,{history:t}=this.props;return location.href.match(/source=mobileApp/)?null:l(i,"button",{elem:"Button",block:"MyAccountMobileHeader",onClick:()=>t.goBack(),mods:{isArabic:e}})}shouldUrlRewritesHaveNoPadding(){document.getElementById("UrlRewrites").classList.add("noPadding")}renderContent(){var e,t,n;const{isLoading:a,page:{content:s},location:{pathname:r=""}}=this.props,{isMobile:d}=this.state;if(a)return l(i,i.Fragment,null,l(i,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),l(i,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),l(i,"div",{block:"CmsPage",elem:"SectionPlaceholder"}));if(!a&&!s)return null;const u=document.createElement("html");u.innerHTML=s;const p=null===u||void 0===u||null===(e=u.lastChild)||void 0===e||null===(t=e.firstChild)||void 0===t||null===(n=t.firstChild)||void 0===n?void 0:n.firstChild,h=(null===p||void 0===p?void 0:p.innerHTML)?String(p.innerHTML).replace(/&lt;/g,"<").replace(/&gt;/g,">"):s,m=r.slice(1),b=document.querySelectorAll(".faq-page-toggle")||[];return b&&b.length>0&&b.forEach(e=>{e.addEventListener("click",e=>{const t=e.target.nextSibling,n=e.target.nextSibling.nextSibling;t.classList.toggle("open"),n.classList.toggle("open")})}),location.href.match(/terms-and-conditions/)?l(i,"div",{block:m},d?l(i,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),l(i,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitleMobile())):null,l(i,"div",{className:"cmspagecontentwrap"},l(i,c.a,{hideTitle:!0}))):location.href.match(/private-sales/)||location.href.match(/about-apparel-group/)||location.href.match(/about-club-aivi/)||location.href.match(/reward-points/)||location.href.match(/try-again-later/)||location.href.match(/liked-products/)?l(i,"div",{block:m},d?l(i,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),l(i,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitleMobile())):null,l(i,"div",{className:"cmspagecontentwrap"},l(i,o.a,{content:s}))):l(i,"div",{block:m},this.shouldUrlRewritesHaveNoPadding(),d?l(i,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),l(i,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitle())):null,l(i,o.a,{content:h}))}}t.a=d}).call(this,n(28),n(1))},1776:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return P})),n.d(t,"b",(function(){return C})),n.d(t,"a",(function(){return O}));var i=n(7),o=n.n(i),a=n(14),s=n(18),r=n(1512),c=n(181),l=n(72),d=n(50),u=n(43),p=n(120),h=n(71),m=n(27),b=n(47),g=n(227),f=n(9),k=n(1514),v=n(1513);const A=n.e(107).then(n.bind(null,444)),P=e=>({isOffline:e.OfflineReducer.isOffline}),C=e=>({updateBreadcrumbs:t=>A.then(n=>{let{default:i}=n;return i.updateWithCmsPage(t,e)}),setHeaderState:t=>e(Object(d.c)(u.b,t)),setBigOfflineNotice:t=>e(Object(p.c)(t)),updateMeta:t=>e(Object(l.b)(t)),toggleBreadcrumbs:t=>{A.then(t=>{let{default:n}=t;return n.update([],e)}),e(Object(c.c)(t))}});var T=n(13).checkBEMProps;class O extends g.a{constructor(e){super(e),this.state={page:{},isLoading:!0},this.setOfflineNoticeSize=()=>{const{setBigOfflineNotice:e}=this.props,{isLoading:t}=this.state;e(!!t)},this.onPageLoad=e=>{let{cmsPage:t}=e;const{location:{pathname:n},updateMeta:i,setHeaderState:o,updateBreadcrumbs:a}=this.props,{content_heading:r,meta_title:c,title:l}=t;Object(b.b)(this.setOfflineNoticeSize,v.a)(),a(t),i({title:c||l}),n!==Object(f.a)("/")&&"/"!==n&&o({name:s.s,title:r,onBackClick:()=>m.a.goBack()}),this.setState({page:t,isLoading:!1})},this.updateBreadcrumbs()}updateBreadcrumbs(){const{toggleBreadcrumbs:e,isBreadcrumbsActive:t}=this.props;e(t)}componentDidMount(){const{isOffline:e,isOnlyPlaceholder:t}=this.props,{isLoading:n}=this.state;e&&n&&Object(b.b)(this.setOfflineNoticeSize,v.a)(),t||this.requestPage()}componentDidUpdate(e){const{location:{pathname:t},pageIdentifiers:n,pageIds:i}=this.props,{location:{pathname:o},pageIdentifiers:a,pageIds:s}=e;t===o&&i===s&&n===a||this.requestPage()}getRequestQueryParams(){const{location:e,match:t,pageIdentifiers:n,pageIds:i}=this.props;if(n)return{identifier:n};if(-1!==i)return{id:i};return{identifier:Object(f.k)(t,e)}}requestPage(){const e=this.getRequestQueryParams(),{id:t,identifier:n}=e;(t||n)&&(this.setState({isLoading:!0}),this.fetchData([r.a.getQuery(e)],this.onPageLoad))}render(){return T(e,k.a,Object.assign({},this.props,this.state))}}O.propTypes={match:h.d.isRequired,setHeaderState:o.a.func.isRequired,updateBreadcrumbs:o.a.func.isRequired,setBigOfflineNotice:o.a.func.isRequired,location:h.c.isRequired,toggleBreadcrumbs:o.a.func.isRequired,pageIds:o.a.number,pageIdentifiers:o.a.string,isOnlyPlaceholder:o.a.bool,isBreadcrumbsActive:o.a.bool},O.defaultProps={pageIds:-1,pageIdentifiers:"",isOnlyPlaceholder:!1,isBreadcrumbsActive:!0};Object(a.b)(P,C)(O)}).call(this,n(1))},1777:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));n(1778);var i=n(1),o=n(214),a=n(711),s=(n(1779),n(13).checkBEMProps);class r extends i.PureComponent{renderHeading(){const{page:{content_heading:t}}=this.props;return t?s(e,"h1",{block:"CmsPage",elem:"Heading"},s(e,a.a,{content:t})):null}renderContent(){const{isLoading:t,page:{content:n}}=this.props;return t?s(e,e.Fragment,null,s(e,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),s(e,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),s(e,"div",{block:"CmsPage",elem:"SectionPlaceholder"})):t||n?s(e,o.a,{content:n}):null}render(){const{page:t,isBreadcrumbsActive:n}=this.props,{page_width:i}=t;return s(e,"main",{block:"CmsPage",mods:{isBreadcrumbsHidden:!n}},s(e,"div",{block:"CmsPage",elem:"Wrapper",mods:{page_width:i}},this.renderHeading(),s(e,"div",{block:"CmsPage",elem:"Content"},this.renderContent())))}}r.defaultProps={isBreadcrumbsActive:!0}}).call(this,n(1))},1778:function(e,t,n){},1779:function(e,t,n){"use strict";var i=n(7),o=n.n(i);o.a.shape({title:o.a.string,content:o.a.string,meta_title:o.a.string,meta_description:o.a.string,meta_keywords:o.a.string});const a=o.a.shape({title:o.a.string,content:o.a.string});o.a.shape({items:o.a.objectOf(a)})},1780:function(e,t,n){"use strict";(function(e){var i=n(1),o=n(14),a=n(113),s=n(1781),r=n(9),c=n(11),l=n(16),d=(n(1782),n(27));var u=n(13).checkBEMProps;const p=t=>{let{hideTitle:n}=t;const[o,p]=Object(i.useState)(null),[h,m]=Object(i.useState)(null),[b,g]=Object(i.useState)(!0),[f,k]=Object(i.useState)(null),v=Object(c.h)();l.a.any()||l.a.tablet();Object(i.useEffect)(()=>{A()},[]);const A=async()=>{try{const e=await Object(s.a)();if(e){const t=Object(r.i)().toLowerCase(),n="ar"===t?e.ar:e.en;n?(n.image&&m(n.image),n.content&&n.content.length>0?p(n.content):p([]),g(!1)):(g(!1),k(null),p([]))}}catch(f){g(!1),k(!0),p([])}},P=(t,n)=>{return u(e,"div",{key:"desc_".concat(n),block:"UnifiedAppTermsAndCondition",elem:"SubSection"},(null===t||void 0===t?void 0:t.subTitle)&&u(e,"h5",{block:"UnifiedAppTermsAndCondition",elem:"SubTitle"},t.subTitle),(null===t||void 0===t?void 0:t.text)&&u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"DescWrapper"},u(e,"p",{block:"UnifiedAppTermsAndCondition",elem:"BaseText"},(t=>{if(!t)return null;const n=/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g;return t.split(n).map((t,i)=>n.test(t)?(n.lastIndex=0,u(e,"a",{key:"email_".concat(i),href:"mailto:".concat(t),block:"UnifiedAppTermsAndCondition",elem:"EmailLink",title:t},t)):u(e,"span",{key:"text_".concat(i)},t))})(t.text)," ",(null===t||void 0===t?void 0:t.link)&&u(e,"a",{block:"UnifiedAppTermsAndCondition",elem:"Link",onClick:()=>{var e;(e=t.link.url)&&d.a.push(e)},href:t.link.url,target:"_blank",rel:"noopener noreferrer",title:t.link.label},t.link.label))),(i=null===t||void 0===t?void 0:t.points)&&0!==i.length?u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"PointsWrapper"},i.map((t,n)=>u(e,"div",{key:"point_".concat(n),block:"UnifiedAppTermsAndCondition",elem:"PointRow"},u(e,"span",{block:"UnifiedAppTermsAndCondition",elem:"Bullet"}),u(e,"span",{block:"UnifiedAppTermsAndCondition",elem:"PointText"},t.text)))):null);var i};return b?u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"LoaderWrapper"},u(e,a.a,{isLoading:!0})):o&&0!==o.length?u(e,"div",{block:"UnifiedAppTermsAndCondition",mods:{isArabic:v}},u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"ScrollView"},h&&u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"LogoContainer"},u(e,"img",{src:h,alt:"Terms and Conditions",block:"UnifiedAppTermsAndCondition",elem:"Logo"})),u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"ContentWrapper"},o.map((t,n)=>((t,n)=>u(e,"div",{key:"content_".concat(n),block:"UnifiedAppTermsAndCondition",elem:"ContentBlock"},(null===t||void 0===t?void 0:t.title)&&u(e,"h5",{block:"UnifiedAppTermsAndCondition",elem:"ContentTitle"},t.title),(null===t||void 0===t?void 0:t.description)&&u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"InnerContent"},t.description.map((e,t)=>P(e,t)))))(t,n))))):null};p.defaultProps={hideTitle:!1},t.a=Object(o.b)(()=>({}),()=>({}))(p)}).call(this,n(1))},1781:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(48);const o=()=>i.a.get("".concat("config/v1","/").concat("unified_terms_and_conditions.json")).then(e=>e||(console.warn("No Terms and Conditions data received from API"),null)).catch(e=>(console.error("Error fetching Terms and Conditions data:",e),null))},1782:function(e,t,n){},1783:function(e,t,n){},362:function(e,t,n){"use strict";n.r(t);var i=n(1511);n.d(t,"default",(function(){return i.a}))},638:function(e,t,n){"use strict";(function(e){n(834);var i=n(1),o=(n(71),n(13).checkBEMProps);class a extends i.PureComponent{render(){const{content:t,length:n,mix:i}=this.props;return t||o(e,"span",{mix:i,block:"TextPlaceholder",mods:{length:n}})}}a.defaultProps={content:"",length:"short",mix:{}},t.a=a}).call(this,n(1))},711:function(e,t,n){"use strict";var i=n(638);n.d(t,"a",(function(){return i.a}))},834:function(e,t,n){}}]);