1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4691],{55579:function(e,n,t){t.d(n,{U:function(){return c},F:function(){return a}});var r=t(69101),o=t(25189),c=function(e){return(0,r.X)({method:"POST",headers:{"accept-language":o.pR.get("lang")},url:"subscriber",data:(n=e,{email:n.email})});var n},a=function(e){return(0,r.X)({method:"DELETE",url:"subscriber/"+e})}},69101:function(e,n,t){t.d(n,{X:function(){return u}});var r=t(92809),o=t(9669),c=t.n(o);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var i=function(e){return"".concat("https://cms-api.akmistanbul.gov.tr/core/akm","/").concat(e)};function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},t=s(s({},e),{},{url:i(e.url)});return new Promise((function(e,r){c()(t).then((function(t){try{e(n(t.data))}catch(o){r({code:406,type:o.name,message:o.message})}})).catch((function(e){e.response?r(e.response.data||{code:e.response.status,message:e.message,type:e.response.statusText}):r({code:503,message:"Sunucuya ula\u015f\u0131lam\u0131yor, internet ba\u011flant\u0131s\u0131n\u0131 kontrol edin ve tekrar deneyin.",type:"Service Unavailable"})}))}))}},40795:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(67294),o=t(40020),c=t(80164),a=t(85893),s=function(e){var n=e.entity,t=e.onClose,s=(0,r.useContext)(o.T);return n?(0,a.jsx)(c.Z,{actions:[{appearance:"danger",children:s.configs.locale.close,onClick:t}],appearance:"danger",heading:n.title||s.configs.locale.errorModalTitle,onClose:t,width:"narrow",children:(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:n.message}})}):null}},85975:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(67294),o=t(40020),c=t(80164),a=t(85893),s=function(e){var n=e.entity,t=e.onClose,s=(0,r.useContext)(o.T);return n?(0,a.jsx)(c.Z,{actions:[{appearance:"success",children:s.configs.locale.ok,onClick:t}],heading:n.title||s.configs.locale.everythingOk,onClose:t,width:"narrow",children:(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:n.message}})}):null}},4691:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var r=t(67294),o=t(40020),c=t(55579),a=t(40795),s=t(85975),i=t(78856),u=t(85893),l=function(){var e=(0,r.useState)(),n=e[0],t=e[1],l=(0,r.useState)(),f=l[0],g=l[1],d=(0,r.useContext)(o.T),p=(0,r.useState)(!0),h=p[0],m=p[1];return(0,r.useEffect)((function(){var e=new URL(window.location.href),n=e.searchParams.get("email")&&e.searchParams.get("email").toString();n?(0,c.F)(n).then((function(){m(!1),t({title:d.configs.locale.subscribeOutSuccessTitle,message:d.configs.locale.subscribeOutSuccessMessage})})).catch((function(e){m(!1),g({message:e.message})})):m(!1)}),[]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Z,{entity:n,onClose:function(){return window.location.href="/"}}),(0,u.jsx)(a.Z,{entity:f,onClose:function(){return window.location.href="/"}}),h&&(0,u.jsx)(i.Z,{})]})}}}]);
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.