1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[796],{34349:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shops/[slug]/terms",function(){return s(86396)}])},20507:function(e,t,s){"use strict";var l=s(24246),n=s(72298),a=s(60802),i=s(28747),o=s(51506),r=s(90104),d=s.n(r),c=s(49948),u=s(84353);let m=e=>e.toLowerCase().split(" ").join("_"),g=e=>{let{term:t}=e,{t:s}=(0,c.$G)(),n=(0,u.t)({description:null==t?void 0:t.description});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"text-lg md:text-xl lg:text-2xl text-heading font-bold mb-4",children:s("".concat(null==t?void 0:t.title))}),n?(0,l.jsx)("div",{className:"text-heading text-sm leading-7 lg:text-base lg:leading-loose react-editor-description",dangerouslySetInnerHTML:{__html:n}}):""]})};t.ZP=e=>{let{isLoading:t,terms:s,hasNextPage:r,loadMore:u,isLoadingMore:f}=e,{t:x}=(0,c.$G)();return(0,l.jsx)(l.Fragment,{children:t?(0,l.jsx)(o.default,{className:"!h-auto"}):d()(s)?(0,l.jsx)(n.Z,{text:"No terms's and conditions found \uD83D\uDE1E."}):(0,l.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,l.jsx)("nav",{className:"md:w-72 xl:w-3/12 mb-8 md:mb-0",children:(0,l.jsx)("ol",{className:"sticky md:top-16 lg:top-28 z-10",children:null==s?void 0:s.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(i.rU,{spy:!0,offset:-120,smooth:!0,duration:500,to:m(e.title),activeClass:"text-heading font-semibold",className:"block cursor-pointer py-3 lg:py-3.5 text-sm lg:text-base text-gray-700 uppercase",children:(t<=9?"0":"")+t+" "+x("".concat(e.title))})},e.id))})}),(0,l.jsxs)("div",{className:"md:w-9/12 ltr:md:pl-8 rtl:md:pr-8",children:[null==s?void 0:s.map((e,t)=>(0,l.jsx)(i.W_,{id:m(null==e?void 0:e.title),className:"mb-10",name:null==e?void 0:e.title,children:(0,l.jsx)(g,{term:e})},t)),r&&(0,l.jsx)("div",{className:"mt-8 grid place-content-center md:mt-10",children:(0,l.jsx)(a.Z,{onClick:u,disabled:f,loading:f,children:x("button-load-more")})})]})]})})}},83962:function(e,t,s){"use strict";s.d(t,{U:function(){return o}});var l=s(11163),n=s(56552),a=s(37786),i=s(49260);function o(e,t){var s,o;let{locale:r}=(0,l.useRouter)(),d={...e,language:r},{data:c,isLoading:u,error:m,fetchNextPage:g,hasNextPage:f,isFetchingNextPage:x}=(0,n.useInfiniteQuery)([a.P.TERMS_AND_CONDITIONS,d],e=>{let{queryKey:t,pageParam:s}=e;return i.Z.termsAndConditions.all(Object.assign({},t[1],s))},{getNextPageParam:e=>{let{current_page:t,last_page:s}=e;return s>t&&{page:t+1}},...t});return{termsAndConditions:null!==(o=null==c?void 0:null===(s=c.pages)||void 0===s?void 0:s.flatMap(e=>e.data))&&void 0!==o?o:[],paginatorInfo:Array.isArray(null==c?void 0:c.pages)?null==c?void 0:c.pages[c.pages.length-1]:null,hasNextPage:f,isLoadingMore:x,isLoading:u,error:m,loadMore:function(){g()}}}},84353:function(e,t,s){"use strict";s.d(t,{t:function(){return i}});var l=s(27378),n=s(64926),a=s.n(n);function i(e){var t,s;let{description:n}=e,[i,o]=(0,l.useState)(!1);if((0,l.useEffect)(()=>{o(!0)},[]),!n)return;let r=a()(n,{allowedTags:null===a()||void 0===a()?void 0:null===(s=a().defaults)||void 0===s?void 0:null===(t=s.allowedTags)||void 0===t?void 0:t.concat(["img","iframe"]),allowedAttributes:{p:["style","class"],strong:["style","class"],em:["style","class"],u:["style","class"],pre:["style","class"],sub:["style"],sup:["style"],span:["style","class"],a:["style","href","data-*","name","target","class"],img:["src","srcset","alt","title","width","height","loading","class"],li:["style","class"],iframe:["src","frameborder","allowfullscreen","class"]},allowedIframeHostnames:["www.youtube.com","player.vimeo.com"],allowedStyles:{"*":{color:[/^#(0x)?[0-9a-f]+$/i,/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/],"background-color":[/^#(0x)?[0-9a-f]+$/i,/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/],"text-align":[/^left$/,/^right$/,/^center$/],"font-size":[/^\d+(?:px|em|%)$/]}},allowedSchemesByTag:{img:["data","http","https"]}});return i?r:""}},86396:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return x},default:function(){return p}});
1var l=s(24246),n=s(3175),a=s(84306),i=s(72125),o=s(85092),r=s(45957),d=s(83962),c=s(20507),u=s(90096),m=s(27378),g=s(11163),f=s(97425),x=!0;function p(e){var t;let{data:s}=e,a=(0,g.useRouter)(),{id:x,slug:p}=s.shop,{termsAndConditions:h,isLoading:v,error:y,loadMore:b,hasNextPage:j,isLoadingMore:_}=(0,d.U)({shop_id:x,limit:10,orderBy:"created_at",sortedBy:"DESC"},{enable:!!x}),{data:N,isLoading:w}=(0,u.r)(),E=null==N?void 0:null===(t=N.options)||void 0===t?void 0:t.enableTerms;return((0,m.useEffect)(()=>{E||a.replace(f.Z.SHOP_URL(p))},[N,p,w]),y)?(0,l.jsx)(r.Z,{message:null==y?void 0:y.message}):(0,l.jsxs)("div",{className:"border-t border-gray-300",children:[(null==s?void 0:s.shop)&&(0,l.jsx)(i.Z,{data:s.shop,children:(0,l.jsx)(c.ZP,{hasNextPage:!!j,isLoading:v,isLoadingMore:_,loadMore:b,terms:h})}),(0,l.jsx)(o.Z,{children:(0,l.jsx)(n.Z,{})})]})}p.getLayout=a.G},15710:function(){},90473:function(){},35426:function(){},80984:function(){}},function(e){e.O(0,[737,1229,4694,4926,2746,8747,659,9490,5962,5109,9774,2888,179],function(){return e(e.s=34349)}),_N_E=e.O()}]);
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.