(this["webpackJsonp6th-street"]=this["webpackJsonp6th-street"]||[]).push([[53],{1418:function(e,t,i){"use strict";(function(e){var n=i(16),o=i(1419),a=i(14),s=i(21),r=i(1420),c=i(1674),l=i(39),d=i(9),u=i(1421),p=i(11).checkBEMProps;class h extends c.a{constructor(){super(...arguments),this.onPageLoad=e=>{const{location:{pathname:t},updateMeta:i,setHeaderState:o,updateBreadcrumbs:a}=this.props,{content_heading:s,meta_title:c,title:u}=e;Object(l.b)(this.setOfflineNoticeSize,r.a)(),a(e),i({title:c||u}),t!==Object(d.a)("/")&&"/"!==t&&o({name:n.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,i(0))},1419:function(e,t,i){"use strict";var n=i(6);t.a=new class{getQuery(e){let{id:t}=e;return new n.a("cmsPage").addArgument("id","Int!",t).addFieldList(["title","content","content_heading","meta_title"])}}},1420:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));const n=300},1421:function(e,t,i){"use strict";(function(e,n){var o=i(205),a=i(1675),s=i(12),r=i(15),c=i(1678),l=(i(1681),i(11).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("\u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0648\u0627\u0644\u0623\u062c\u0648\u0628\u0629"):location.pathname.match(/cookies-policy/)?e("\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u0643\u0648\u0643\u064a\u0632"):location.pathname.match(/shipping-policy/)?e("\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0634\u062d\u0646"):location.pathname.match(/privacy-policy/)?e("\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629"):e("\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u0625\u0631\u062c\u0627\u0639")}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("\u0627\u0644\u0634\u0631\u0648\u0637 \u0648\u0627\u0644\u0623\u062d\u0643\u0627\u0645"):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(n,"button",{elem:"Button",block:"MyAccountMobileHeader",onClick:()=>t.goBack(),mods:{isArabic:e}})}shouldUrlRewritesHaveNoPadding(){document.getElementById("UrlRewrites").classList.add("noPadding")}renderContent(){var e,t,i;const{isLoading:a,page:{content:s},location:{pathname:r=""}}=this.props,{isMobile:d}=this.state;if(a)return l(n,n.Fragment,null,l(n,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),l(n,"div",{block:"CmsPage",elem:"SectionPlaceholder"}),l(n,"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===(i=t.firstChild)||void 0===i?void 0:i.firstChild,h=(null===p||void 0===p?void 0:p.innerHTML)?String(p.innerHTML).replace(/</g,"<").replace(/>/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,i=e.target.nextSibling.nextSibling;t.classList.toggle("open"),i.classList.toggle("open")})}),location.href.match(/terms-and-conditions/)?l(n,"div",{block:m},d?l(n,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),l(n,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitleMobile())):null,l(n,"div",{className:"cmspagecontentwrap"},l(n,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(n,"div",{block:m},d?l(n,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),l(n,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitleMobile())):null,l(n,"div",{className:"cmspagecontentwrap"},l(n,o.a,{content:s}))):l(n,"div",{block:m},this.shouldUrlRewritesHaveNoPadding(),d?l(n,"div",{block:"MyAccountMobileHeader",elem:"TabOptionHeader"},this.renderCloseButton(),l(n,"h1",{block:"MyAccountMobileHeader",elem:"Heading"},this.renderTitle())):null,l(n,o.a,{content:h}))}}t.a=d}).call(this,i(29),i(0))},1674:function(e,t,i){"use strict";(function(e){i.d(t,"c",(function(){return C})),i.d(t,"b",(function(){return P})),i.d(t,"a",(function(){return T}));var n=i(4),o=i.n(n),a=i(14),s=i(16),r=i(1419),c=i(172),l=i(70),d=i(47),u=i(41),p=i(116),h=i(63),m=i(36),b=i(39),g=i(222),f=i(9),k=i(1421),v=i(1420);const A=i.e(139).then(i.bind(null,427)),C=e=>({isOffline:e.OfflineReducer.isOffline}),P=e=>({updateBreadcrumbs:t=>A.then(i=>{let{default:n}=i;return n.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:i}=t;return i.update([],e)}),e(Object(c.c)(t))}});var O=i(11).checkBEMProps;class T 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:i},updateMeta:n,setHeaderState:o,updateBreadcrumbs:a}=this.props,{content_heading:r,meta_title:c,title:l}=t;Object(b.b)(this.setOfflineNoticeSize,v.a)(),a(t),n({title:c||l}),i!==Object(f.a)("/")&&"/"!==i&&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:i}=this.state;e&&i&&Object(b.b)(this.setOfflineNoticeSize,v.a)(),t||this.requestPage()}componentDidUpdate(e){const{location:{pathname:t},pageIdentifiers:i,pageIds:n}=this.props,{location:{pathname:o},pageIdentifiers:a,pageIds:s}=e;t===o&&n===s&&i===a||this.requestPage()}getRequestQueryParams(){const{location:e,match:t,pageIdentifiers:i,pageIds:n}=this.props;if(i)return{identifier:i};if(-1!==n)return{id:n};return{identifier:Object(f.k)(t,e)}}requestPage(){const e=this.getRequestQueryParams(),{id:t,identifier:i}=e;(t||i)&&(this.setState({isLoading:!0}),this.fetchData([r.a.getQuery(e)],this.onPageLoad))}render(){return O(e,k.a,Object.assign({},this.props,this.state))}}T.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},T.defaultProps={pageIds:-1,pageIdentifiers:"",isOnlyPlaceholder:!1,isBreadcrumbsActive:!0};Object(a.b)(C,P)(T)}).call(this,i(0))},1675:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return r}));i(1676);var n=i(0),o=i(205),a=i(201),s=(i(1677),i(11).checkBEMProps);class r extends n.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:i}}=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||i?s(e,o.a,{content:i}):null}render(){const{page:t,isBreadcrumbsActive:i}=this.props,{page_width:n}=t;return s(e,"main",{block:"CmsPage",mods:{isBreadcrumbsHidden:!i}},s(e,"div",{block:"CmsPage",elem:"Wrapper",mods:{page_width:n}},this.renderHeading(),s(e,"div",{block:"CmsPage",elem:"Content"},this.renderContent())))}}r.defaultProps={isBreadcrumbsActive:!0}}).call(this,i(0))},1676:function(e,t,i){},1677:function(e,t,i){"use strict";var n=i(4),o=i.n(n);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)})},1678:function(e,t,i){"use strict";(function(e){var n=i(0),o=i(14),a=i(108),s=i(1679),r=i(9),c=i(12),l=i(15),d=(i(1680),i(36));var u=i(11).checkBEMProps;const p=t=>{let{hideTitle:i}=t;const[o,p]=Object(n.useState)(null),[h,m]=Object(n.useState)(null),[b,g]=Object(n.useState)(!0),[f,k]=Object(n.useState)(null),v=Object(c.h)();l.a.any()||l.a.tablet();Object(n.useEffect)(()=>{A()},[]);const A=async()=>{try{const e=await Object(s.a)();if(e){const t=Object(r.i)().toLowerCase(),i="ar"===t?e.ar:e.en;i?(i.image&&m(i.image),i.content&&i.content.length>0?p(i.content):p([]),g(!1)):(g(!1),k(null),p([]))}}catch(f){g(!1),k(!0),p([])}},C=(t,i)=>{return u(e,"div",{key:"desc_".concat(i),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 i=/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g;return t.split(i).map((t,n)=>i.test(t)?(i.lastIndex=0,u(e,"a",{key:"email_".concat(n),href:"mailto:".concat(t),block:"UnifiedAppTermsAndCondition",elem:"EmailLink",title:t},t)):u(e,"span",{key:"text_".concat(n)},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))),(n=null===t||void 0===t?void 0:t.points)&&0!==n.length?u(e,"div",{block:"UnifiedAppTermsAndCondition",elem:"PointsWrapper"},n.map((t,i)=>u(e,"div",{key:"point_".concat(i),block:"UnifiedAppTermsAndCondition",elem:"PointRow"},u(e,"span",{block:"UnifiedAppTermsAndCondition",elem:"Bullet"}),u(e,"span",{block:"UnifiedAppTermsAndCondition",elem:"PointText"},t.text)))):null);var n};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,i)=>((t,i)=>u(e,"div",{key:"content_".concat(i),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)=>C(e,t)))))(t,i))))):null};p.defaultProps={hideTitle:!1},t.a=Object(o.b)(()=>({}),()=>({}))(p)}).call(this,i(0))},1679:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i(44);const o=()=>n.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))},1680:function(e,t,i){},1681:function(e,t,i){},352:function(e,t,i){"use strict";i.r(t);var n=i(1418);i.d(t,"default",(function(){return n.a}))}}]);