1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9214,2765,6101],{85249:function(t,e,n){n.d(e,{Z:function(){return c}});var r=n(69101),i=function(t){return{id:t.attributes.post.id,integrationId:t.attributes.post.integrationId,lang:t.attributes.post.language,meta:t.attributes.post.meta,profileImage:t.attributes.post.profileImage,query:t.attributes.post.queryIds,schema:t.attributes.post.schema,seo:t.attributes.post.seo,spec:t.attributes.post.spec||[],theme:t.attributes.post.theme||"light",title:t.attributes.post.title,url:t.attributes.post.url}},o=function(t){var e,n,r=(null===t||void 0===t||null===(e=t.attributes)||void 0===e||null===(n=e.basicAccordion)||void 0===n?void 0:n.childrens)||[],i=[];return r.forEach((function(t){var e={id:t.id,integrationId:t.integrationId,title:t.title,url:t.url,spec:t.spec,profileImage:t.profileImage,meta:[]};Object.keys(t).forEach((function(n){var r;null!==(r=t[n])&&void 0!==r&&r.type&&e.meta.push(t[n])})),i.push(e)})),i},s=function(t){return t.attributes.list.map((function(t){return{id:t.id,meta:t.metaFields,profileImage:t.profileImage,query:t.queryIds,schema:t.schema,seo:t.seo,theme:t.theme||"light",title:t.title,url:t.url,integrationId:t.integrationId,lang:t.language}}))},a=function(t){var e,n,r=(null===t||void 0===t||null===(e=t.attributes)||void 0===e||null===(n=e.basicAccordion)||void 0===n?void 0:n.childrens)||[],i=[];return r&&r.length&&r.forEach((function(t){var e={};Object.keys(t).forEach((function(n){var r;null!==(r=t[n])&&void 0!==r&&r.type?e[n]=t[n].data||"":e[n]=t[n]})),i.push(e)})),i},c={get:function(t,e){return(0,r.X)({url:"post/ui?url=".concat(t,"&lang=").concat(e)},i)},getAccordionList:function(t,e){return(0,r.X)({url:"post/list/basic-accordion?".concat(t,"&language=").concat(e)},o)},getByIntegrationIds:function(t,e){return(0,r.X)({url:"post/by-integration-id-list?ids=".concat(t,"&language=").concat(e)},s)},getByGroup:function(t,e){return(0,r.X)({url:"post/list/basic-accordion?".concat(t,"&language=").concat(e)},a)}}},69101:function(t,e,n){n.d(e,{X:function(){return u}});var r=n(92809),i=n(9669),o=n.n(i);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(t){return"".concat("https://cms-api.akmistanbul.gov.tr/core/akm","/").concat(t)};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=a(a({},t),{},{url:c(t.url)});return new Promise((function(t,r){o()(n).then((function(n){try{t(e(n.data))}catch(i){r({code:406,type:i.name,message:i.message})}})).catch((function(t){t.response?r(t.response.data||{code:t.response.status,message:t.message,type:t.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"})}))}))}},22765:function(t,e,n){n.r(e),n.d(e,{default:function(){return a}});var r=n(67294),i=n(11163),o=n(25189),s=n(40020),a=function(t){var e=t.page,n=(0,i.useRouter)(),a=(0,r.useContext)(s.T);return(0,r.useEffect)((function(){e&&e.href?0===e.href.indexOf("http")?window.location.href=e.href:n.push(o.ET.app(e.href)):n.push(o.ET.app(a.configs.routes.homepage))}),[]),null}},39214:function(t,e,n){n.r(e),n.d(e,{default:function(){return m}});var r=n(30266),i=n(809),o=n.n(i),s=n(67294),a=n(56154),c=n(40020),u=n(85249),l=n(80923),d=n(46101),f=n(85893),m=function(t){var e=t.backAnchor,n=t.children,i=t.data,m=void 0===i?[]:i,p=t.secondTitle,h=t.title,b=t.query,g=(0,s.useContext)(c.T),v=(0,s.useState)(m),y=v[0],j=v[1];(0,s.useEffect)((function(){b&&x()}),[]);var x=function(){var t=(0,r.Z)(o().mark((function t(){var e,n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.Z.getByGroup(b,g.configs.lang);case 2:e=t.sent,(n=e.map((function(t){return{title:t.title,secondTitle:t.secondTitle,anchor:{href:t.url}}}))).length&&j(n);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,f.jsxs)(d.default,{title:h,secondTitle:p,backAnchor:e,children:[n,null===y||void 0===y?void 0:y.map((function(t,e){var n,r;return(0,f.jsxs)(l.Z,{className:"mobile-instruments-list-button",href:0===(null===(n=t.anchor.href)||void 0===n?void 0:n.indexOf("tr"))?null===(r=t.anchor.href)||void 0===r?void 0:r.replace("tr",a.lu.QrCode):"".concat(a.lu.QrCode,"/").concat(t.anchor.href),children:[(0,f.jsx)("span",{className:"mobile-instruments-list-button-text mobile-instruments-list-button--left",children:t.title}),t.title!==t.secondTitle&&(0,f.jsx)("span",{className:"mobile-instruments-list-button-text mobile-instruments-list-button--right",children:t.secondTitle})]},e)}))]})}},46101:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var r=n(92809),i=n(67294),o=n(25189),s=n(56154),a=n(40020),c=n(31084),u=n(4694),l=n(80923),d=n(22765),f=n(85893);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?m(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(t){var e,n=t.audio,r=t.backAnchor,m=t.children,h=t.secondTitle,b=t.image,g=t.title,v=(0,i.useContext)(a.T),y=(0,i.useRef)(null),j=(0,i.useState)(!1),x=j[0],O=j[1],w=((null===v||void 0===v||null===(e=v.post)||void 0===e?void 0:e.meta)||[]).find((function(t){return"category"===t.name})),N=function(){y.current&&(x?y.current.pause():y.current.play(),O(!x))};return v.post.qr?(0,f.jsxs)("div",{className:"mobile-instruments",children:[(0,f.jsxs)("div",{className:"mobile-instruments-header",children:[(0,f.jsx)("h3",{className:"mobile-instruments-header-title",dangerouslySetInnerHTML:{__html:g}}),(0,f.jsx)("div",{className:"mobile-instruments-header-subtitle",dangerouslySetInnerHTML:{__html:h}})]}),function(){var t=(null===r||void 0===r?void 0:r.href)||(null===w||void 0===w?void 0:w.data.url);return t?(t=0===t.indexOf("tr")?t.replace("tr",s.lu.QrCode):"".concat(s.lu.QrCode,"/").concat(t),(0,f.jsxs)(l.Z,{className:"mobile-instruments-back",href:t,children:[(0,f.jsx)(c.default,{name:"icon-arrow-left"}),(0,f.jsx)("span",{className:"mobile-instruments-back-title",children:"Listeye D\xf6n"}),(0,f.jsx)("span",{className:"mobile-instruments-back-separator"}),(0,f.jsx)("span",{className:"mobile-instruments-back-second-title",children:"Back to list"})]})):null}(),(0,f.jsxs)("div",{className:"mobile-instruments-container",children:[null!==n&&void 0!==n&&n.src?(0,f.jsxs)("button",{className:"mobile-instruments-button",onClick:N,children:[(0,f.jsx)(c.default,{name:"icon-music"}),(0,f.jsxs)("div",{className:"mobile-instruments-button-text",children:[(0,f.jsx)("strong",{children:"\xc7alg\u0131 Sesi"}),(0,f.jsx)("span",{children:"Instrument Sound"})]}),(0,f.jsx)(c.default,{className:"mobile-instruments-button-icon--play",fill:"var(--N900)",name:x?"icon-pause-flat":"icon-play-flat"}),(0,f.jsx)("audio",{controls:!0,className:"mobile-instruments-sound",ref:y,children:(0,f.jsx)("source",{src:o.ET.storage(n.src),type:"audio/mpeg"})})]}):null,m,null!==b&&void 0!==b&&b.src?(0,f.jsx)(u.default,p(p({},b),{},{width:400,height:400})):null]}),(0,f.jsx)("div",{className:"mobile-instruments-footer",children:(0,f.jsx)(l.Z,{className:"mobile-instruments-footer-logo",href:v.configs.routes.homepage,children:(0,f.jsx)("img",{src:o.ET.storage(v.configs.themes.light.logo),width:142,height:48,alt:"AKM Resmi Web Sitesi"})})})]}):(0,f.jsx)(d.default,{page:{href:v.configs.routes.homepage}})}},30266:function(t,e,n){function r(t,e,n,r,i,o,s){try{var a=t[o](s),c=a.value}catch(u){return void n(u)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var s=t.apply(e,n);function a(t){r(s,i,o,a,c,"next",t)}function c(t){r(s,i,o,a,c,"throw",t)}a(void 0)}))}}n.d(e,{Z:function(){return i}})}}]);
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.