1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2273],{51207:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[appSlug]",function(){return n(60730)}])},77554:function(e,t,n){"use strict";n.d(t,{M1:function(){return d},eY:function(){return g},i6:function(){return p},l:function(){return f}});var r=n(47568),a=n(26042),o=n(34051),i=n.n(o),s=n(9669),c=n.n(s),u=n(19911),l=n(82889),p=function(){var e=(0,r.Z)(i().mark((function e(t,n,r,o){var s,u,p,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s={"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},u={title:t.title,body:t.message},p={},o&&(u.image=o,t.campaign&&(p.image=o)),t.url&&(p.url=t.url),d={message:(0,a.Z)({topic:"".concat(n),notification:u},Object.keys(p).length>0&&{data:p})},e.prev=6,e.next=9,c().post("https://fcm.googleapis.com/v1/projects/api-project-151896860923/messages:send",d,{headers:s});case 9:return e.abrupt("return",e.sent);case 12:return e.prev=12,e.t0=e.catch(6),e.abrupt("return",(0,l.u)(e.t0));case 15:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(t,n,r,a){return e.apply(this,arguments)}}(),d=function(){var e=(0,r.Z)(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.Z.post("/subscribeToTopic",{token:t,topic:n}).then((function(e){return e.data}));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",(0,l.u)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=(0,r.Z)(i().mark((function e(t,n,r,a){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.Z.post("/notification",{title:t.title,message:t.message,topic_name:n,image_name:r,web_image_url:a}).then((function(e){return e.data}));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",(0,l.u)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,n,r,a){return e.apply(this,arguments)}}(),g=(function(){var e=(0,r.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.Z.get("/notification/".concat(t)).then((function(e){return e.data}));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",(0,l.u)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))}(),function(){var e=(0,r.Z)(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.Z.post("/notification/upload",t,n).then((function(e){return e.data}));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",(0,l.u)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,n){return e.apply(this,arguments)}}());!function(){var e=(0,r.Z)(i().mark((function e(t,n,r,a){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.Z.post("/device",{udid:t,topic_name:n,isWeb:r},a).then((function(e){return e.data}));case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",(0,l.u)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))}()},60730:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return xe},default:function(){return he}});var r=n(47568),a=n(26042),o=n(34051),i=n.n(o),s=n(85893),c=n(5603),u=n(85402),l=n(14670),p=n(33859),d=n(71577),f=n(69483),g=n.n(f),m=n(55440),x=n(5152),h=n.n(x),v=n(12918),y=n(9008),w=n.n(y),j=n(41664),b=n.n(j),k=n(11163),C=n(67294),_=n(42309),S=n(39043),Z=n.n(S),N=function(e){var t=e.id,n=e.name,r=e.contentsCount,a=e.appSlug,o=e.backgroundColor,i=void 0===o?"#dc3545":o,c=e.textColor,u=void 0===c?"#ffffff":c;return(0,s.jsx)(b(),{href:"/".concat(a,"/").concat(t),children:(0,s.jsxs)("a",{className:Z().categoryCard,style:{backgroundColor:i,
1color:u},children:[(0,s.jsx)("div",{className:Z().categoryContent,children:(0,s.jsx)("h3",{className:Z().categoryTitle,children:n})}),(0,s.jsxs)("div",{className:Z().categoryFooter,children:[(0,s.jsxs)("div",{className:Z().categoryCount,children:[(0,s.jsx)("span",{className:Z().count,children:r}),(0,s.jsx)("span",{className:Z().label,children:"Katalog"})]}),(0,s.jsx)("div",{className:Z().arrowIcon,children:(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"currentColor",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M10 8L14 12L10 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})]})})},I=n(87714),T=n.n(I),E=function(e){var t=e.categories,n=e.appSlug,r=e.backgroundColor,a=e.textColor,o=(0,m.$G)().t;return t&&0!==t.length?(0,s.jsxs)("div",{className:T().categoriesContainer,children:[(0,s.jsx)("div",{className:T().headerSection,children:(0,s.jsx)("h2",{className:T().pageTitle,children:o("content:catalogs-and-brochures")})}),(0,s.jsx)("div",{className:T().categoriesGrid,children:t.map((function(e){return(0,s.jsx)(N,{id:e.id,name:e.name,contentsCount:e.contents_count,appSlug:n,backgroundColor:r,textColor:a},e.id)}))})]}):(0,s.jsx)("div",{className:T().emptyState,children:(0,s.jsx)("p",{children:o("content:no-categories-yet")})})},P=n(40872),L=n(828),D=n(65936),R=n(30381),F=n.n(R),q=n(25675),W=n.n(q),z=n(89583),A=(n(68893),n(26126)),G=n(23850),U=(n(72821),n(30719)),V=n(60619),O=n(25519),B=n(84427),H=n(84828),M=n(65663),K=n(18239),$=n(45261),J=n(88386),Q=n(82889),X=n(3686),Y=n(14045),ee=n(95437),te=n(97949),ne=h()((function(){return Promise.all([n.e(296),n.e(9653)]).then(n.bind(n,69653)).then((function(e){return e.LordIcon}))}),{loadableGenerated:{webpack:function(){return[69653]}},ssr:!1}),re=function(e){var t=e.props,n=(0,k.useRouter)(),a=n.query,o=a.appSlug,c=a.contentSlug,u=a.reviewContent,l=(0,O.T)(),f=(0,O.C)((function(e){return e.contentView})),g=f.pageData,x=f.currentPage,h=f.pageDataStatus,y=f.pageDataError,w=f.direction,j=f.autoplay,_=f.flipSound,S=f.scale,Z=f.scaleRatio,N=(0,O.C)((function(e){return e.catalogHomeLayout})).currentContent,I=M.qD.setCurrentPage,T=M.qD.setScale,E=M.qD.setScaleRatio,R=M.qD.setAutoplay,q=M.qD.reset,re=(0,m.$G)().t,ae=(0,C.useRef)(null),oe=(0,L.Z)((0,V.Z)("/assets/sounds/page-flip.mp3"),1)[0],ie=(0,C.useState)(""),se=ie[0],ce=ie[1],ue=(0,C.useState)({country:"",city:"",district:""}),le=ue[0],pe=ue[1],de=(0,C.useState)(),fe=de[0],ge=de[1],me=(0,C.useState)("0"),xe=me[0],he=me[1],ve=(0,C.useState)("0"),ye=ve[0],we=ve[1],je=(0,C.useState)(!1),be=je[0],ke=je[1],Ce=F()(),_e=(0,C.useCallback)(function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),"string"===typeof o&&"string"===typeof c&&""!==se&&g!==K.Z&&(n=F()(),r={appSlug:o,contentSlug:c,device_id:se,page:x+1,duration:F().duration(n.diff(Ce)).asSeconds()},a=new Blob([JSON.stringify(r)],{type:"application/json"}),navigator.sendBeacon("".concat("https://galepress.com","/api/storePageView"),a));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,c,x,se,g,Ce]);(0,C.useEffect)((function(){return function(){l(q())}}),[l,q]),(0,C.useEffect)((function(){navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,a,o,s,c,u,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.coords,r=n.latitude,a=n.longitude,he(r.toString()),we(a.toString()),e.next=5,fetch("https://nominatim.openstreetmap.org/reverse?lat=".concat(r,"&lon=").concat(a,"&format=json"));case 5:return e.next=7,e.sent.json();case 7:(o=e.sent)&&(s=o.address,c=s.country,u=s.province,l=o.display_name,pe({country:c,city:u,district:l.split(",")[3].replace(u,"").trim().toLocaleUpperCase()}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),[]),(0,C.useEffect)((function(){1===g.layoutStatus&&("failed"===h&&B.Dj.purge(),t&&t.contents&&""===N&&l((0,H.mH)(t.contents[0].url_slug)))}),[g.layoutStatus,l,t,N,h]),(0,C.useEffect)((function(){return(0,r.Z)(i().mark((function e(){var t,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.ZP.load();case 2:return t=e.sent,e.next=5,t.get();case 5:if(r=e.sent.visitorId,ce(r),"string"!==typeof o||"string"!==typeof c||""===se||g===K.Z){e.next=11;break}return a=F()(),e.next=11,(0,J.Z)({appSlug:o,contentSlug:c,device_id:se,page:x+1,duration:F().duration(a.diff(Ce)).asSeconds()},{locale:n.locale});case 11:case"end":return e.stop()}}),e)})))(),window.addEventListener("beforeunload",_e),function(){(0,r.Z)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!==typeof o||"string"!==typeof c||""===se||g===K.Z){e.next=4;break}return t=F()(),e.next=4,(0,J.Z)({appSlug:o,contentSlug:c,device_id:se,page:x+1,duration:F().duration(t.diff(Ce)).asSeconds()},{locale:n.locale});case 4:case"end":return e.stop()}}),e)})))(),window.removeEventListener("beforeunload",_e)}}),[o,c,x,se,_e,xe,ye,g,n.locale,Ce]),(0,C.useEffect)((function(){"string"===typeof o&&("string"===typeof c?l("string"===typeof u?(0,M.aL)({appSlug:o,contentSlug:c,reviewContent:u,locale:n.locale}):(0,M.aL)({appSlug:o,contentSlug:c,reviewContent:"0",locale:n.locale})):"undefined"!==typeof t.contents&&(l((0,H.iT)(t.contents)),"1"===t.reviewContent?l((0,M.aL)({appSlug:o,contentSlug:""!==N?N:t.contents[0].url_slug,reviewContent:t.reviewContent,locale:n.locale})):l((0,M.aL)({appSlug:o,contentSlug:""!==N?N:t.contents[0].url_slug,reviewContent:"0",locale:n.locale}))))}),[l,o,c,u,t,n.locale,N]);var Se=(0,C.useCallback)((function(){var e=document.getElementById("pdf-container");if(e&&"failed"!==h){var t=g.pages[x],n=t.width,r=t.height;
1l(E((0,X.wq)({screenWidth:e.offsetWidth,screenHeight:1===g.layoutStatus?window.innerHeight-220:window.innerHeight-125,imageWidth:n,imageHeight:r,zoomFit:!0})))}}),[x,l,g.layoutStatus,g.pages,h,E]);if((0,C.useEffect)((function(){return Se(),window.addEventListener("resize",Se),function(){window.removeEventListener("resize",Se)}}),[l,x,g.pages,h,E,Se]),(0,C.useEffect)((function(){var e;null===(e=ae.current)||void 0===e||e.swiper.slideTo(x)}),[x]),(0,C.useEffect)((function(){null!==ae.current&&(ae.current.swiper.allowTouchMove=!(S>1))}),[S]),(0,C.useEffect)((function(){null!==ae.current&&(j?ae.current.swiper.autoplay.start():ae.current.swiper.autoplay.stop())}),[j]),(0,C.useEffect)((function(){(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!==typeof o){e.next=6;break}return e.t0=ge,e.next=4,(0,$.Qn)(o);case 4:e.t1=e.sent,(0,e.t0)(e.t1);case 6:case"end":return e.stop()}}),e)})))()}),[o]),!fe)return(0,s.jsx)("div",{className:"spinner",children:(0,s.jsx)(ne,{src:"https://cdn.lordicon.com/wxnxiano.json",trigger:"loop",width:200,height:200,colors:{primary:"#121331",secondary:"#121331"}})});if((0,Q.V)(fe))return(0,s.jsx)(v.default,{statusCode:fe.status,title:"".concat((0,Y.A5)(fe.data.message))});if("loading"===h&&g===K.Z)return(0,s.jsx)("div",{className:"spinner",children:(0,s.jsx)(ne,{src:"https://cdn.lordicon.com/wxnxiano.json",trigger:"loop",width:200,height:200,colors:{primary:"#121331",secondary:"#1D5F85"}})});if("failed"===h&&y.message)return(0,s.jsx)(p.ZP,{status:"404",title:"404",subTitle:"".concat((0,Y.A5)(y.message)),extra:(0,s.jsx)(b(),{href:"/".concat(o),children:(0,s.jsx)("a",{children:(0,s.jsx)(d.Z,{type:"primary",children:re("common:go-catalogs")})})})});if(9===fe.package.id||10===fe.package.id||12===fe.package.id||14===fe.package.id||15===fe.package.id||1===g.layoutStatus&&"undefined"===typeof t)return(0,s.jsx)(p.ZP,{status:"404",title:"404",subTitle:re("common:not-found-page"),extra:(0,s.jsx)(b(),{href:"/",children:(0,s.jsx)("a",{children:(0,s.jsx)(d.Z,{type:"primary",children:re("common:back-home")})})})});var Ze=g.pages,Ne={width:Ze[x].width*Z,height:Ze[x].height*Z,"--swiper-pagination-color":"#1d5f85",border:"0.1px solid lightgray",borderRadius:2},Ie=!!j&&{delay:4e3,disableOnInteraction:!0,pauseOnMouseEnter:!0,waitForTransition:!1},Te=function(e){ke(!1),l(I(e))};return(0,s.jsx)(te.Z,{title:g.contentName,country:le.country&&le.country,city:le.city&&le.city,district:le.district&&le.district,lat:xe,long:ye,udid:se,children:(0,s.jsx)(U.tq,{modules:[G.W_,G.tl,G.N1,G.Gk,G.pt,G.gI,G.eZ],virtual:!0,pagination:{clickable:!0,dynamicBullets:!0,renderBullet:function(e,t){return'<span class="'.concat(t,'"></span>')}},style:Ne,navigation:"horizontal"===w,grabCursor:!0,effect:"creative",zoom:{minRatio:1,maxRatio:2},keyboard:{enabled:!0},direction:w,mousewheel:!1,speed:2200,autoplay:Ie,className:"mySwiper",onNavigationNext:function(e){return Te(e.activeIndex)},onNavigationPrev:function(e){return Te(e.activeIndex)},onPaginationUpdate:function(e){return Te(e.activeIndex)},onKeyPress:function(e){return Te(e.activeIndex)},onScroll:function(e){return Te(e.activeIndex)},rewind:!0,a11y:{enabled:!0},ref:ae,onSlideChange:function(){_&&oe()},onAutoplayStop:function(){j&&l(R())},children:g.pages.map((function(e){return(0,s.jsx)(U.o5,{onLoad:function(){return Se()},virtualIndex:e.id,className:"".concat(j?"disableAnimation":"fixed disableAnimation"),children:function(){return(0,s.jsx)(A.d$,{wheel:{step:.03},panning:{disabled:!(S>1)},maxScale:2.1,doubleClick:{step:.3},onZoom:function(e){l(T(e.state.scale))},children:function(t){var n=(0,P.Z)({},t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:{position:"absolute",bottom:10,left:10,margin:"auto 0",height:60,zIndex:99,display:"flex",flexDirection:"column",justifyContent:"space-between"},className:"swiper-no-swiping",children:[(0,s.jsx)(z.wEH,{style:{padding:4,backgroundColor:"#F9F9F9",borderRadius:4,cursor:"pointer",border:"0.1px solid lightgray"},onClick:function(){l(T(n.state.scale+.1)),n.zoomIn(.3)},size:"1.4rem"}),(0,s.jsx)(z.iFH,{style:{padding:4,backgroundColor:"#F9F9F9",borderRadius:4,cursor:"pointer",border:"0.1px solid lightgray"},onClick:function(){l(T(n.state.scale-.1)),n.zoomOut(.3)},size:"1.4rem"})]}),(0,s.jsxs)(A.Uv,{wrapperStyle:{boxShadow:"0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)"},children:[(0,s.jsx)(W(),{src:"".concat("https://galepress.com/api","/").concat(e.file_path,"/").concat(Ze[x].file_name),alt:"catalogPage",width:Ze[x].width*Z,height:Ze[x].height*Z,onLoadingComplete:function(){return ke(!0)},priority:!0,placeholder:"blur",quality:80,blurDataURL:"".concat(Ze[x].blurDataUrl)},"catalogPage-".concat(x)),be&&Ze[x].pageComponents.map((function(e){var t=e.pageComponentId,n=e.componentId,r=e.properties;return(0,s.jsx)(ee.Z,{componentId:n,properties:r,packageId:fe.package.id},t)}))]})]})}})}},e.file_name)}))})})},ae=function(){var e=(0,C.useState)(!1),t=e[0],n=e[1];return(0,s.jsxs)("div",{children:[(0,s.jsx)(d.Z,{type:"link",onClick:function(){return n(!0)},children:"Microsoft Edge"}),(0,s.jsx)(u.Z,{title:"Microsoft Edge",centered:!0,open:t,onCancel:function(){return n(!1)}
1,width:1e3,footer:null,children:(0,s.jsx)(W(),{src:"/assets/png/microsoft-edge-notification-popup-location.png",width:500,height:300,alt:"microsoft-edge-notification-popup-location",sizes:"100vw",style:{objectFit:"contain",objectPosition:"center",width:"100%",height:"auto"}})})]})},oe=n(65955),ie=n(61697),se=n(69396),ce=n(81923),ue=n.n(ce),le=n(55678),pe=(n(83400),n(77554)),de={index:function(){return window.location.pathname.split("/").length-1},tokenInlocalforage:(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",g().getItem("fcm_token"));case 1:case"end":return e.stop()}}),e)}))),appSlugInlocalforage:(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",g().getItem(window.location.pathname.split("/")[this.index()]));case 1:case"end":return e.stop()}}),e,this)}))),init:function(e){var t=e.options,n=e.registration;e.bearerToken;return(0,r.Z)(i().mark((function e(){var r,a,o,s,c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ue().apps.length<1&&ue().initializeApp(t),e.prev=1,r=ue().messaging(),e.next=5,this.tokenInlocalforage();case 5:return a=e.sent,e.next=8,this.appSlugInlocalforage();case 8:if(o=e.sent,s=window.location.pathname.split("/")[this.index()],null===a||null===o){e.next=12;break}return e.abrupt("return",a);case 12:return e.next=14,Notification.requestPermission();case 14:if(!(c=e.sent)||"granted"!==c){e.next=27;break}return e.next=18,r.getToken({serviceWorkerRegistration:n});case 18:if(!(u=e.sent)){e.next=27;break}return e.next=22,g().setItem("fcm_token",u);case 22:return e.next=24,g().setItem(s,s);case 24:return e.next=26,(0,pe.M1)(u,s);case 26:return e.abrupt("return",u);case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(1),console.log(e.t0);case 32:case"end":return e.stop()}}),e,this,[[1,29]])}))).apply(this)}},fe=function(){var e=(0,r.Z)(i().mark((function e(t,n,o){var c,u,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=function(){return l.apply(this,arguments)},l=function(){return l=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de.init({options:t,registration:o,bearerToken:n});case 2:e.sent&&c();case 4:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)},"serviceWorker"in navigator&&void 0!==window.workbox&&navigator.serviceWorker.ready.then((0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Notification.requestPermission();case 2:case"end":return e.stop()}}),e)})))),c=function(){var e=ue().messaging();window.clients;e.onMessage(function(){var e=(0,r.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("granted"!==Notification.permission){e.next=7;break}if(!navigator.serviceWorker){e.next=5;break}navigator.serviceWorker.getRegistration().then(function(){var e=(0,r.Z)(i().mark((function e(n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n&&(r={title:t.data.title,body:t.data.body,image:t.data.image,icon:t.data.image,data:{url:""}},t.data&&t.data.url&&(r=(0,se.Z)((0,a.Z)({},r),{data:{url:t.data.url}})),le.Am.info((0,s.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},onClick:function(){return""!==r.data.url&&window.open(r.data.url)},children:[(0,s.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,s.jsx)("h4",{style:{marginBottom:0},children:r.title}),(0,s.jsx)("p",{children:r.body})]}),r.image&&(0,s.jsx)("img",{src:r.image,width:40,height:40})]}),{icon:!1,autoClose:!1}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=7;break;case 5:return e.next=7,Notification.requestPermission();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},e.next=8,u();case 8:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),ge=fe,me=h()((function(){return Promise.all([n.e(296),n.e(9653)]).then(n.bind(n,69653)).then((function(e){return e.LordIcon}))}),{loadableGenerated:{webpack:function(){return[69653]}},ssr:!1}),xe=!0,he=function(e){var t=e.response,n=e.responseV2,o=e.categoryResponse,f=e.categoriesResponse,x=e.applicationPackage,h=e.seoData,y=e.token,j=e.options,S=(0,C.useState)(0),Z=S[0],N=S[1],I=(0,k.useRouter)().query,T=I.appSlug,P=I.reviewContents,L=(0,m.$G)().t,D=(0,C.useCallback)((function(e){u.Z.confirm({title:L("notification:notification-modal-title"),icon:(0,s.jsx)(c.Z,{}),content:(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{children:L("notification:notification-modal-content")}),(0,s.jsx)(l.Z,{message:(0,s.jsx)("b",{style:{fontSize:13},children:L("notification:notification-modal-browser-warning")}),type:"warning"}),(0,s.jsx)(ae,{})]}),okText:L("notification:notification-modal-allow-text"),cancelText:L("notification:notification-modal-denied-text"),closable:!1,onOk:(0,r.Z)(i().mark((function t(){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ge(j,y,e);case 2:n=(new Date).getTime(),localStorage.setItem("lastPermissionRequest",String(n));case 4:case"end":return t.stop()}}),t)}))),onCancel:function(){var e=(new Date).getTime();localStorage.setItem("lastPermissionRequest",String(e))}})}),[L,j,y]);if((0,C.useEffect)((function(){Z<1&&N(Z+1)}),[Z]),(0,C.useEffect)((function(){(0,r.Z)(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g().getItem("fcm_token");case 2:return t=e.sent,e.next=5,g().getItem(T);case 5:if(n=e.sent,t&&n){e.next=10;break}setTimeout((function(){var e=localStorage.getItem("lastPermissionRequest"),t=(new Date).getTime();
1if("serviceWorker"in navigator){navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}).then((function(n){e&&t-Number(e)<12096e5||D(n)})).catch((function(e){console.error("Service Worker registration failed: ",e)}))}}),3e4),e.next=12;break;case 10:return e.next=12,ge(j,y);case 12:case"end":return e.stop()}}),e)})))()}),[T,D,j,y]),!x)return(0,s.jsx)("div",{className:"spinner",children:(0,s.jsx)(me,{src:"https://cdn.lordicon.com/wxnxiano.json",trigger:"loop",width:200,height:200,colors:{primary:"#121331",secondary:"#121331"}})});if((0,Q.V)(x))return(0,s.jsx)(v.default,{statusCode:x.status,title:"".concat((0,Y.A5)(x.data.message))});if(9===x.package.id||10===x.package.id||12===x.package.id||14===x.package.id)return(0,s.jsx)(p.ZP,{status:"404",title:"404",subTitle:L("common:not-found-page"),extra:(0,s.jsx)(b(),{href:"/",children:(0,s.jsx)("a",{children:(0,s.jsx)(d.Z,{type:"primary",children:L("common:back-home")})})})});if((0,Q.V)(t))return(0,s.jsx)(v.default,{statusCode:t.status,title:"".concat((0,Y.A5)(t.data.message))});if((0,Q.V)(n))return(0,s.jsx)(v.default,{statusCode:n.status,title:"".concat((0,Y.A5)(n.data.message))});if((0,Q.V)(o))return(0,s.jsx)(v.default,{statusCode:o.status,title:"".concat((0,Y.A5)(o.data.message))});if((0,Q.V)(f))return(0,s.jsx)(v.default,{statusCode:f.status,title:"".concat((0,Y.A5)(f.data.message))});if((0,Q.V)(h))return(0,s.jsx)(v.default,{statusCode:h.status,title:"".concat((0,Y.A5)(h.data.message))});var R=t.application,F={"@context":"https://schema.org","@type":"ItemList",name:R.applicationName,description:R.detail,url:h.ogUrl,itemListElement:h.products.map((function(e){return(0,a.Z)({"@type":"Product",offers:{"@type":"Offer",price:"0",priceCurrency:"TRY",availability:"https://schema.org/InStock",url:null===h||void 0===h?void 0:h.ogUrl}},e)}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(w(),{children:[(0,s.jsx)("title",{children:R.applicationName},"title"),(0,s.jsx)("meta",{name:"description",content:R.detail},"desc"),(0,s.jsx)("meta",{property:"og:url",content:h.ogUrl}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:title",content:R.applicationName}),(0,s.jsx)("meta",{property:"og:description",content:R.detail}),(0,s.jsx)("meta",{property:"og:image",content:h.imageUrl}),(0,s.jsx)("meta",{name:"twitter:card",content:h.imageUrl}),(0,s.jsx)("meta",{property:"twitter:domain",content:h.domain}),(0,s.jsx)("meta",{property:"twitter:url",content:h.ogUrl}),(0,s.jsx)("meta",{name:"twitter:title",content:R.applicationName}),(0,s.jsx)("meta",{name:"twitter:description",content:R.detail}),(0,s.jsx)("meta",{name:"twitter:image",content:h.imageUrl}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(F)}})]}),(0,s.jsx)(_.Z,{application:R,packageId:x.package.id}),1===R.layout_status?(0,s.jsx)(re,{props:{reviewContent:P,contents:t.contents}}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(E,{categories:f.categories,appSlug:T,backgroundColor:R.catalog_category_background_color,textColor:R.catalog_category_title_color}),(0,s.jsx)(oe.Z,{}),(0,s.jsx)(ie.Z,{})]})]})}},87714:function(e){e.exports={categoriesContainer:"CategoriesGrid_categoriesContainer__e1Y3I",headerSection:"CategoriesGrid_headerSection__ToWxx",pageTitle:"CategoriesGrid_pageTitle__rX4aD",categoriesGrid:"CategoriesGrid_categoriesGrid__7_Lve",emptyState:"CategoriesGrid_emptyState__RjknN"}},39043:function(e){e.exports={categoryCard:"CategoryCard_categoryCard__mxT8B",categoryContent:"CategoryCard_categoryContent__fQsVa",categoryTitle:"CategoryCard_categoryTitle__NfbFv",categoryFooter:"CategoryCard_categoryFooter__jJLQK",categoryCount:"CategoryCard_categoryCount__v2z7L",count:"CategoryCard_count__tK0l_",label:"CategoryCard_label__v1Uy7",arrowIcon:"CategoryCard_arrowIcon__fLFgx"}}},function(e){e.O(0,[4980,2013,6158,9866,9401,8907,4774,1228,5937,5445,260,3874,9570,1827,1778,3609,3909,44,8562,1554,5675,1876,737,494,1082,1852,3859,1700,5936,5324,1980,7238,7947,7979,1032,3051,2398,9774,2888,179],(function(){return t=51207,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.