{"version":3,"sources":["components/NavMenu.js","components/Layout.js"],"names":["NavMenu","Component","constructor","props","super","this","toggleNavbar","bind","state","collapsed","setState","render","React","createElement","Navbar","className","light","Container","NavbarBrand","tag","Link","to","style","height","src","NavbarToggler","onClick","Collapse","isOpen","navbar","ayarlar","IsIlanlari","NavItem","NavLink","Market","Bultenler","Iletisim","Layout","_ref","children","search","useLocation","searchParams","URLSearchParams","embed","window","location","href","includes","bg","get","_bgcolor","tc","_textcolor","bc","_btncolor","btnColor","isDark","hex","result","exec","parseInt","darken","amount","_amount","reduce","color","width","backgroundColor","Fragment","float","rel","target","cursor","alt","aria-roledescription","marginBottom","fontSize","opacity","fontFamily"],"mappings":"+PAKO,MAAMA,UAAgBC,YAEzBC,YAAYC,GACRC,MAAMD,GAENE,KAAKC,aAAeD,KAAKC,aAAaC,KAAKF,MAC3CA,KAAKG,MAAQ,CACTC,WAAW,GAInBH,eACID,KAAKK,SAAS,CACVD,WAAYJ,KAAKG,MAAMC,YAI/BE,SACI,OACIC,IAAAC,cAAA,cACID,IAAAC,cAACC,IAAM,CAACC,UAAU,0FAA0FC,OAAK,GAC7GJ,IAAAC,cAACI,IAAS,KACNL,IAAAC,cAACK,IAAW,CAACC,IAAKC,IAAMC,GAAG,KAAIT,IAAAC,cAAA,OAAKS,MAAO,CAACC,OAAO,QAAUC,IAAI,gCACjEZ,IAAAC,cAACY,IAAa,CAACC,QAASrB,KAAKC,aAAcS,UAAU,SACrDH,IAAAC,cAACc,IAAQ,CAACZ,UAAU,uCAAuCa,QAASvB,KAAKG,MAAMC,UAAWoB,QAAM,GAC5FjB,IAAAC,cAAA,MAAIE,UAAU,wBAENV,KAAKF,MAAM2B,QAAQC,YAAcnB,IAAAC,cAACmB,IAAO,KACrCpB,IAAAC,cAACoB,IAAO,CAACd,IAAKC,IAAML,UAAU,+BAA+BM,GAAG,eAAc,oCAKlFhB,KAAKF,MAAM2B,QAAQI,QAAUtB,IAAAC,cAACmB,IAAO,KACjCpB,IAAAC,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AU,OAAQC,QAAS,GAAIC,WAAY,2CAA6CR,IAAI,sBAAsBC,OAAQ,UAAU","file":"static/js/15.ca672128.chunk.js","sourcesContent":["import React, { Component } from 'react';\r\nimport { Collapse, Container, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from 'reactstrap';\r\nimport { Link } from 'react-router-dom';\r\nimport './NavMenu.css';\r\n\r\nexport class NavMenu extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n this.toggleNavbar = this.toggleNavbar.bind(this);\r\n this.state = {\r\n collapsed: true\r\n };\r\n }\r\n\r\n toggleNavbar() {\r\n this.setState({\r\n collapsed: !this.state.collapsed\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {\r\n this.props.ayarlar.IsIlanlari && \r\n İş İlanları\r\n \r\n }\r\n\r\n {\r\n this.props.ayarlar.Market && \r\n Tales Market\r\n \r\n }\r\n {\r\n this.props.ayarlar.Bultenler && \r\n Bültenler\r\n \r\n }\r\n {\r\n this.props.ayarlar.Iletisim && \r\n İletişim\r\n \r\n }\r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n","import React, { useState, useRef } from 'react';\r\nimport { NavMenu } from './NavMenu';\r\nimport { useLocation } from 'react-router-dom';\r\nimport { Modal, Input } from 'antd';\r\nimport { notify } from \"../App\"\r\nimport { Footer } from \"antd/es/layout/layout\";\r\n\r\nconst Layout = ({ children, ayarlar }) => {\r\n const search = useLocation().search\r\n const searchParams = new URLSearchParams(search);\r\n var embed = window.location.href.includes(\"/embed/\");\r\n\r\n let bg = searchParams.get(\"bg\");\r\n if (embed && bg != null) {\r\n window._bgcolor = bg;\r\n }\r\n else {\r\n bg = window._bgcolor;\r\n }\r\n let tc = searchParams.get(\"tc\");\r\n if (embed && tc != null) {\r\n window._textcolor = tc;\r\n }\r\n else {\r\n tc = window._textcolor;\r\n }\r\n let bc = searchParams.get(\"bc\");\r\n if (embed && bc != null) {\r\n window._btncolor = bc;\r\n }\r\n else {\r\n bc = window._btncolor;\r\n }\r\n\r\n var btnColor = \"28a745\";\r\n if (embed && bc) {\r\n btnColor = bc;\r\n }\r\n\r\n function isDark(hex) {\r\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\r\n return result ?\r\n ((parseInt(result[1], 16) +\r\n parseInt(result[2], 16) +\r\n parseInt(result[3], 16)) / 3) < 170\r\n : false;\r\n }\r\n\r\n function darken(hex, amount) {\r\n amount = amount ?? 10;\r\n var reduce = (color) => {\r\n if (color < amount) {\r\n return 0;\r\n }\r\n else {\r\n return color - amount;\r\n }\r\n }\r\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\r\n return result ? \"rgb(\" + reduce(parseInt(result[1], 16)) + \",\" + reduce(parseInt(result[2], 16)) + \",\" + reduce(parseInt(result[3], 16)) + \")\"\r\n : null;\r\n }\r\n\r\n return (\r\n
\r\n {\r\n }\r\n {\r\n embed ? <> : \r\n }\r\n
\r\n {children}\r\n
\r\n {!embed && <>
\r\n
\r\n \r\n \"TalesErp\"\r\n \r\n
\r\n
\r\n
\r\n 2023 © PiData Bilişim Teknolojileri A.Ş. \r\n
\r\n
\r\n
\r\n }\r\n
\r\n );\r\n}\r\n\r\nexport default Layout;"],"sourceRoot":""}