{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6************************","webpack:///webpack/bootstrap 52b6ebf3e30eddd9d599?f5e4************************","webpack:///external \"React\"?9de9************************","webpack:///./Views/src/Common/news-home-list-view.tsx"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA,2CAA2C,cAAc;;QAEzD;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;;AChEA,+C;;;;;;;;;;;;;;;;;;;;;;;ACAA,mCAA8B;AAsB9B;IASI;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,EAAK,CAAC;IAChC,CAAC;IACL,4BAAC;AAAD,CAAC;AAED;IAAA;IAOA,CAAC;IAAD,gCAAC;AAAD,CAAC;AAED;IAAsC,oCAAyF;IAC3H,0BAAY,KAA6B;QAAzC,YACI,kBAAM,KAAK,CAAC,SAIf;QAHG,IAAI,MAAM,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAChC,KAAI,CAAC,KAAK,GAAG,CAAC,CAAC,KAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,qBAAqB,EAA6B,CAAC,CAAC,CAAC,KAAI,CAAC,KAAK,CAAC,YAAY,CAAC;;IAC/H,CAAC;IAED,4CAAiB,GAA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AG;wCACjF,6BAAK,SAAS,EAAC,WAAW;4CACtB,2BAAG,SAAS,EAAC,WAAW;gDAAC,2BAAG,SAAS,EAAC,iBAAiB,GAAK;;gDAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAK;4CACpK,2BAAG,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,IAAE,KAAK,CAAC,KAAK,GAAC,EAAE,IAAG,KAAK,CAAC,KAAK,IAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAC,GAAG,EAAC,MAAK,CAAC,KAAK,IAAE,CAAC,KAAK,CAAC,KAAK,GAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAC,GAAG,CAAC,GAAC,MAAM,EAAC,MAAK,CAAC,KAAK,CAAK;4CACxK,6BAAK,SAAS,EAAC,kBAAkB;gDAC7B,2BAAG,IAAI,EAAE,KAAK,CAAC,QAAQ;oDAAG,2BAAG,SAAS,EAAC,yBAAyB,GAAK,CAAI,CACvE,CACJ,CACJ,CACJ;4BACV,CAAC,CAAC,CACA,CACJ,CACJ,CACJ,CACJ,CACA;IACd,CAAC;IACL,uBAAC;AAAD,CAAC,CA/FqC,KAAK,CAAC,SAAS,GA+FpD;AA/FY,4CAAgB","file":"news-home-list-view.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"React\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"React\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"React\")) : factory(root[\"React\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 13);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 52b6ebf3e30eddd9d599","module.exports = __WEBPACK_EXTERNAL_MODULE_0__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"React\"\n// module id = 0\n// module chunks = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37","import * as React from \"react\"\r\nimport * as ReactDOM from \"react-dom\"\r\n\r\ninterface INewsHomeListViewProps {\r\n WebpartTitle: string;\r\n WebpartSubTitle: string;\r\n WebpartDescription: string;\r\n WebpartAllLinkText: string;\r\n WebpartAllLinkUrl: string;\r\n OpenInNewWindow: boolean;\r\n DateFormat: string;\r\n itemProperties: {\r\n Id: number;\r\n Title: string;\r\n PageLink: string;\r\n ImageSource: string;\r\n Date: string;\r\n spCategory: string;\r\n };\r\n initialState: NewsHomeListViewModel;\r\n}\r\n\r\nclass NewsHomeListViewModel {\r\n WebpartTitle: string;\r\n WebpartSubTitle: string;\r\n WebpartDescription: string;\r\n WebpartAllLinkText: string;\r\n WebpartAllLinkUrl: string;\r\n OpenInNewWindow: boolean;\r\n DateFormat: string;\r\n items: Array;\r\n constructor() {\r\n this.items = new Array();\r\n }\r\n}\r\n\r\nclass NewsHomeListViewItemModel {\r\n Id: number;\r\n Title: string;\r\n PageLink: string;\r\n ImageSource: string;\r\n Date: string;\r\n spCategory: string;\r\n}\r\n\r\nexport class NewsHomeListView extends React.Component>{\r\n constructor(props: INewsHomeListViewProps) {\r\n super(props);\r\n var locale = _spPageContextInfo.currentCultureName.substring(0, 2);\r\n window[\"moment\"].locale(locale);\r\n this.state = (!this.props.initialState) ? new NewsHomeListViewModel() : this.props.initialState;\r\n }\r\n\r\n componentDidMount() {\r\n let swiperConfig = {};\r\n swiperConfig = {\r\n slidesPerView: 1,\r\n spaceBetween: 15,\r\n navigation: {\r\n nextEl: '.swiper-right',\r\n prevEl: '.swiper-left',\r\n },\r\n breakpoints: {\r\n // when window width is >= 768\r\n 768: {\r\n slidesPerView: 2,\r\n spaceBetween: 15\r\n }\r\n\r\n },\r\n }\r\n\r\n new window[\"Swiper\"](\".news-slider\", swiperConfig);\r\n const uniqueTags = [];\r\n this.state.items.map((value) => {\r\n let cat =value&& value.spCategory.split(\";\");\r\n cat.map(c => {\r\n let _c = c.replace(\"#\", \"\")\r\n if (uniqueTags.indexOf(_c) == -1) {\r\n if (_c != \"\") {\r\n uniqueTags.push('

\")[1] + '\">' + _c.split(\">\")[0] + '

')\r\n }\r\n }\r\n }\r\n )\r\n })\r\n new window[\"Typed\"]('.element', {\r\n strings: uniqueTags,\r\n typeSpeed: 10,\r\n backSpeed: 10,\r\n loop: true,\r\n fadeOut: true,\r\n smartBackspace: true\r\n });\r\n\r\n }\r\n render() {\r\n\r\n return
\r\n
\r\n
\r\n
\r\n
\r\n

{this.state.WebpartTitle}

\r\n
\r\n
\r\n

 

\r\n
\r\n

{this.state.WebpartDescription}

\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {this.state.items.map((value, index, array) => {\r\n return
\r\n
\r\n \"...\"\r\n
\r\n

{window[\"moment\"](value.Date).format(this.state.DateFormat ? this.state.DateFormat : \"DD.MM.YYYY\")}

\r\n

{value.Title&&value.Title.length>200?value.Title&&(value.Title+\"\").substring(0,200)+\" ...\":value.Title}

\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
\r\n }\r\n}\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// ./Views/src/Common/news-home-list-view.tsx"],"sourceRoot":""}